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 GRAPHVIZ 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
5057 # Extract the first word of "Graphviz", so it can be a program name with args.
5058 set dummy Graphviz; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo GraphViz"
5087 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5089 if test -n "$GRAPHVIZ"; then
5090 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5091 echo "${ECHO_T}$GRAPHVIZ" >&6
5093 echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6
5097 if test "$GRAPHVIZ" != "echo GraphViz" ; then
5099 cat >>confdefs.h <<\_ACEOF
5100 #define HAVE_GRAPHVIZ 1
5105 # Find a good install program. We prefer a C program (faster),
5106 # so one script is as good as another. But avoid the broken or
5107 # incompatible versions:
5108 # SysV /etc/install, /usr/sbin/install
5109 # SunOS /usr/etc/install
5110 # IRIX /sbin/install
5112 # AmigaOS /C/install, which installs bootblocks on floppy discs
5113 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5114 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5115 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5116 # OS/2's system install, which has a completely different semantic
5117 # ./install, which can be erroneously created by make from ./install.sh.
5118 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5119 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5120 if test -z "$INSTALL"; then
5121 if test "${ac_cv_path_install+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 # Account for people who put trailing slashes in PATH elements.
5131 ./ | .// | /cC/* | \
5132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5133 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5136 # OSF1 and SCO ODT 3.0 have their own names for install.
5137 # Don't use installbsd from OSF since it installs stuff as root
5139 for ac_prog in ginstall scoinst install; do
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5142 if test $ac_prog = install &&
5143 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5144 # AIX install. It has an incompatible calling convention.
5146 elif test $ac_prog = install &&
5147 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5148 # program-specific install script used by HP pwplus--don't use.
5151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5163 if test "${ac_cv_path_install+set}" = set; then
5164 INSTALL=$ac_cv_path_install
5166 # As a last resort, use the slow shell script. We don't cache a
5167 # path for INSTALL within a source directory, because that will
5168 # break other packages using the cache if that directory is
5169 # removed, or if the path is relative.
5170 INSTALL=$ac_install_sh
5173 echo "$as_me:$LINENO: result: $INSTALL" >&5
5174 echo "${ECHO_T}$INSTALL" >&6
5176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5177 # It thinks the first close brace ends the variable substitution.
5178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5185 # Extract the first word of "bzip2", so it can be a program name with args.
5186 set dummy bzip2; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_path_BZIP2+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5215 BZIP2=$ac_cv_path_BZIP2
5217 if test -n "$BZIP2"; then
5218 echo "$as_me:$LINENO: result: $BZIP2" >&5
5219 echo "${ECHO_T}$BZIP2" >&6
5221 echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6
5225 # Extract the first word of "dot", so it can be a program name with args.
5226 set dummy dot; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_path_DOT+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5257 if test -n "$DOT"; then
5258 echo "$as_me:$LINENO: result: $DOT" >&5
5259 echo "${ECHO_T}$DOT" >&6
5261 echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6
5265 # Extract the first word of "doxygen", so it can be a program name with args.
5266 set dummy doxygen; ac_word=$2
5267 echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5295 DOXYGEN=$ac_cv_path_DOXYGEN
5297 if test -n "$DOXYGEN"; then
5298 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5299 echo "${ECHO_T}$DOXYGEN" >&6
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5305 # Extract the first word of "etags", so it can be a program name with args.
5306 set dummy etags; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_path_ETAGS+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5335 ETAGS=$ac_cv_path_ETAGS
5337 if test -n "$ETAGS"; then
5338 echo "$as_me:$LINENO: result: $ETAGS" >&5
5339 echo "${ECHO_T}$ETAGS" >&6
5341 echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5345 # Extract the first word of "groff", so it can be a program name with args.
5346 set dummy groff; ac_word=$2
5347 echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349 if test "${ac_cv_path_GROFF+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5375 GROFF=$ac_cv_path_GROFF
5377 if test -n "$GROFF"; then
5378 echo "$as_me:$LINENO: result: $GROFF" >&5
5379 echo "${ECHO_T}$GROFF" >&6
5381 echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5385 # Extract the first word of "gzip", so it can be a program name with args.
5386 set dummy gzip; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_GZIP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5415 GZIP=$ac_cv_path_GZIP
5417 if test -n "$GZIP"; then
5418 echo "$as_me:$LINENO: result: $GZIP" >&5
5419 echo "${ECHO_T}$GZIP" >&6
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5425 # Extract the first word of "pod2html", so it can be a program name with args.
5426 set dummy pod2html; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_POD2HTML+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5455 POD2HTML=$ac_cv_path_POD2HTML
5457 if test -n "$POD2HTML"; then
5458 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5459 echo "${ECHO_T}$POD2HTML" >&6
5461 echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5465 # Extract the first word of "pod2man", so it can be a program name with args.
5466 set dummy pod2man; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_path_POD2MAN+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5495 POD2MAN=$ac_cv_path_POD2MAN
5497 if test -n "$POD2MAN"; then
5498 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5499 echo "${ECHO_T}$POD2MAN" >&6
5501 echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5505 # Extract the first word of "runtest", so it can be a program name with args.
5506 set dummy runtest; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_path_RUNTEST+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5535 RUNTEST=$ac_cv_path_RUNTEST
5537 if test -n "$RUNTEST"; then
5538 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5539 echo "${ECHO_T}$RUNTEST" >&6
5541 echo "$as_me:$LINENO: result: no" >&5
5542 echo "${ECHO_T}no" >&6
5547 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5548 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5550 # Check whether --with-tclinclude or --without-tclinclude was given.
5551 if test "${with_tclinclude+set}" = set; then
5552 withval="$with_tclinclude"
5553 with_tclinclude=${withval}
5557 if test "${ac_cv_path_tclsh+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if test x"${with_tclinclude}" != x ; then
5562 if test -f ${with_tclinclude}/tclsh ; then
5563 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5564 elif test -f ${with_tclinclude}/src/tclsh ; then
5565 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5567 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5568 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5569 { (exit 1); exit 1; }; }
5573 if test x"${ac_cv_path_tclsh}" = x ; then
5574 echo "$as_me:$LINENO: result: none" >&5
5575 echo "${ECHO_T}none" >&6
5576 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
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582 if test "${ac_cv_path_TCLSH+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 TCLSH=$ac_cv_path_TCLSH
5609 if test -n "$TCLSH"; then
5610 echo "$as_me:$LINENO: result: $TCLSH" >&5
5611 echo "${ECHO_T}$TCLSH" >&6
5613 echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5617 test -n "$TCLSH" && break
5620 if test x"${TCLSH}" = x ; then
5621 ac_cv_path_tclsh='';
5623 ac_cv_path_tclsh="${TCLSH}";
5626 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5627 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5628 TCLSH="${ac_cv_path_tclsh}"
5634 # Extract the first word of "zip", so it can be a program name with args.
5635 set dummy zip; ac_word=$2
5636 echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5638 if test "${ac_cv_path_ZIP+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5666 if test -n "$ZIP"; then
5667 echo "$as_me:$LINENO: result: $ZIP" >&5
5668 echo "${ECHO_T}$ZIP" >&6
5670 echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5675 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5676 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5677 if test "${llvm_cv_link_use_r+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687 CFLAGS="$CFLAGS -Wl,-R."
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5698 int main() { return 0; }
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>conftest.er1
5707 grep -v '^ *+' conftest.er1 >conftest.err
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -z "$ac_c_werror_flag"
5713 || test ! -s conftest.err'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 llvm_cv_link_use_r=yes
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 llvm_cv_link_use_r=no
5732 rm -f conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5744 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5745 if test "$llvm_cv_link_use_r" = yes ; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_LINK_R 1
5756 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5758 if test "${ac_cv_c_const+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5771 /* FIXME: Include the comments suggested by Paul. */
5773 /* Ultrix mips cc rejects this. */
5774 typedef int charset[2];
5776 /* SunOS 4.1.1 cc rejects this. */
5777 char const *const *ccp;
5779 /* NEC SVR4.0.2 mips cc rejects this. */
5780 struct point {int x, y;};
5781 static struct point const zero = {0,0};
5782 /* AIX XL C 1.02.0.0 rejects this.
5783 It does not let you subtract one const X* pointer from another in
5784 an arm of an if-expression whose if-part is not a constant
5786 const char *g = "string";
5787 ccp = &g + (g ? g-g : 0);
5788 /* HPUX 7.0 cc rejects these. */
5791 ccp = (char const *const *) p;
5792 { /* SCO 3.2v4 cc rejects this. */
5794 char const *s = 0 ? (char *) 0 : (char const *) 0;
5798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5800 const int *foo = &x[0];
5803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5804 typedef const int *iptr;
5808 { /* AIX XL C 1.02.0.0 rejects this saying
5809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5810 struct s { int j; const int *ap[3]; };
5811 struct s *b; b->j = 5;
5813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5826 grep -v '^ *+' conftest.er1 >conftest.err
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5854 echo "${ECHO_T}$ac_cv_c_const" >&6
5855 if test $ac_cv_c_const = no; then
5857 cat >>confdefs.h <<\_ACEOF
5864 echo "$as_me:$LINENO: checking for egrep" >&5
5865 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5866 if test "${ac_cv_prog_egrep+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5870 then ac_cv_prog_egrep='grep -E'
5871 else ac_cv_prog_egrep='egrep'
5874 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5875 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5876 EGREP=$ac_cv_prog_egrep
5879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5881 if test "${ac_cv_header_stdc+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_cv_header_stdc=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_cv_header_stdc=no
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5934 if test $ac_cv_header_stdc = yes; then
5935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "memchr" >/dev/null 2>&1; then
5949 ac_cv_header_stdc=no
5955 if test $ac_cv_header_stdc = yes; then
5956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5967 $EGREP "free" >/dev/null 2>&1; then
5970 ac_cv_header_stdc=no
5976 if test $ac_cv_header_stdc = yes; then
5977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5978 if test "$cross_compiling" = yes; then
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5988 #if ((' ' & 0x0FF) == 0x020)
5989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5992 # define ISLOWER(c) \
5993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
5996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
6006 || toupper (i) != TOUPPER (i))
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_cv_header_stdc=no
6031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6037 if test $ac_cv_header_stdc = yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define STDC_HEADERS 1
6051 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6052 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6053 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6054 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 #include <sys/types.h>
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 eval "$as_ac_Header=yes"
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 eval "$as_ac_Header=no"
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6110 cat >>confdefs.h <<_ACEOF
6111 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6114 ac_header_dirent=$ac_hdr; break
6118 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6119 if test $ac_header_dirent = dirent.h; then
6120 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6122 if test "${ac_cv_search_opendir+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 ac_func_search_save_LIBS=$LIBS
6126 ac_cv_search_opendir=no
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>conftest.er1
6153 grep -v '^ *+' conftest.er1 >conftest.err
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
6158 { ac_try='test -z "$ac_c_werror_flag"
6159 || test ! -s conftest.err'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; } &&
6165 { ac_try='test -s conftest$ac_exeext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_search_opendir="none required"
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179 if test "$ac_cv_search_opendir" = no; then
6180 for ac_lib in dir; do
6181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6189 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206 (eval $ac_link) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_search_opendir="-l$ac_lib"
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6233 rm -f conftest.err conftest.$ac_objext \
6234 conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_func_search_save_LIBS
6239 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241 if test "$ac_cv_search_opendir" != no; then
6242 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6247 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6249 if test "${ac_cv_search_opendir+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 ac_func_search_save_LIBS=$LIBS
6253 ac_cv_search_opendir=no
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1 >conftest.err
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_search_opendir="none required"
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6304 rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 if test "$ac_cv_search_opendir" = no; then
6308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6316 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6331 rm -f conftest.$ac_objext conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>conftest.er1
6335 grep -v '^ *+' conftest.er1 >conftest.err
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_search_opendir="-l$ac_lib"
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6360 rm -f conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6364 LIBS=$ac_func_search_save_LIBS
6366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6368 if test "$ac_cv_search_opendir" != no; then
6369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6386 inttypes.h stdint.h unistd.h
6388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6402 #include <$ac_header>
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 eval "$as_ac_Header=yes"
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 eval "$as_ac_Header=no"
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6448 for ac_header in dlfcn.h
6450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452 echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6460 # Is the header compilable?
6461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6470 #include <$ac_header>
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -z "$ac_c_werror_flag"
6482 || test ! -s conftest.err'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_header_compiler=yes
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_header_compiler=no
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503 echo "${ECHO_T}$ac_header_compiler" >&6
6505 # Is the header present?
6506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <$ac_header>
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev/null; then
6524 if test -s conftest.err; then
6525 ac_cpp_err=$ac_c_preproc_warn_flag
6526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6533 if test -z "$ac_cpp_err"; then
6534 ac_header_preproc=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 ac_header_preproc=no
6541 rm -f conftest.err conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543 echo "${ECHO_T}$ac_header_preproc" >&6
6545 # So? What about this header?
6546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552 ac_header_preproc=yes
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6569 ## ----------------------------------- ##
6570 ## Report this to llvmbugs@cs.uiuc.edu ##
6571 ## ----------------------------------- ##
6574 sed "s/^/$as_me: WARNING: /" >&2
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 eval "$as_ac_Header=\$ac_header_preproc"
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6598 if test "${enable_ltdl_install+set}" = set; then
6599 enableval="$enable_ltdl_install"
6605 if test x"${enable_ltdl_install-no}" != xno; then
6607 INSTALL_LTDL_FALSE='#'
6609 INSTALL_LTDL_TRUE='#'
6615 if test x"${enable_ltdl_convenience-no}" != xno; then
6616 CONVENIENCE_LTDL_TRUE=
6617 CONVENIENCE_LTDL_FALSE='#'
6619 CONVENIENCE_LTDL_TRUE='#'
6620 CONVENIENCE_LTDL_FALSE=
6624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6627 libname_spec='lib$name'
6635 shlibpath_overrides_runpath=unknown
6637 dynamic_linker="$host_os ld.so"
6638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6639 if test "$GCC" = yes; then
6640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6642 # if the path contains ";" then we assume it to be the separator
6643 # otherwise default to the standard path separator (i.e. ":") - it is
6644 # assumed that no part of a normal pathname contains ";" but that should
6645 # okay in the real world where ";" in dirpaths is itself problematic.
6646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6653 need_lib_prefix=unknown
6654 hardcode_into_libs=no
6656 # when you set need_version to no, make sure it does not cause -set_version
6657 # flags to be left without arguments
6658 need_version=unknown
6663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6664 shlibpath_var=LIBPATH
6666 # AIX 3 has no versioning support, so we append a major version to the name.
6667 soname_spec='${libname}${release}${shared_ext}$major'
6674 hardcode_into_libs=yes
6675 if test "$host_cpu" = ia64; then
6676 # AIX 5 supports IA64
6677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6678 shlibpath_var=LD_LIBRARY_PATH
6680 # With GCC up to 2.95.x, collect2 would create an import file
6681 # for dependence libraries. The import file would start with
6682 # the line `#! .'. This would cause the generated library to
6683 # depend on `.', always an invalid library. This was fixed in
6684 # development snapshots of GCC prior to 3.0.
6686 aix4 | aix4.[01] | aix4.[01].*)
6687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6697 # soname into executable. Probably we can add versioning support to
6698 # collect2, so additional links can be useful in future.
6699 if test "$aix_use_runtimelinking" = yes; then
6700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6701 # instead of lib<name>.a to let people know that these are not
6702 # typical AIX shared libraries.
6703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6705 # We preserve .a as extension for shared libraries through AIX4.2
6706 # and later when we are not doing run time linking.
6707 library_names_spec='${libname}${release}.a $libname.a'
6708 soname_spec='${libname}${release}${shared_ext}$major'
6710 shlibpath_var=LIBPATH
6715 library_names_spec='$libname.ixlibrary $libname.a'
6716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6717 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'
6721 library_names_spec='${libname}${shared_ext}'
6722 dynamic_linker="$host_os ld.so"
6723 shlibpath_var=LIBRARY_PATH
6729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6730 soname_spec='${libname}${release}${shared_ext}$major'
6731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6732 shlibpath_var=LD_LIBRARY_PATH
6733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6735 # the default ld.so.conf also contains /usr/contrib/lib and
6736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6737 # libtool to hard-code these into programs
6740 cygwin* | mingw* | pw32*)
6741 version_type=windows
6746 case $GCC,$host_os in
6747 yes,cygwin* | yes,mingw* | yes,pw32*)
6748 library_names_spec='$libname.dll.a'
6749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6750 postinstall_cmds='base_file=`basename \${file}`~
6751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6752 dldir=$destdir/`dirname \$dlpath`~
6753 test -d \$dldir || mkdir -p \$dldir~
6754 $install_prog $dir/$dlname \$dldir/$dlname'
6755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6756 dlpath=$dir/\$dldll~
6758 shlibpath_overrides_runpath=yes
6762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6767 # MinGW DLLs use traditional 'lib' prefix
6768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6771 # It is most probably a Windows format PATH printed by
6772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6773 # path with ; separators, and with drive letters. We can handle the
6774 # drive letters (cygwin fileutils understands them), so leave them,
6775 # especially as we might pass files found there to a mingw objdump,
6776 # which wouldn't understand a cygwinified path. Ahh.
6777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6783 # pw32 DLLs use 'pw' prefix rather than 'lib'
6784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6793 dynamic_linker='Win32 ld.exe'
6794 # FIXME: first we should search . and the directory the executable is in
6798 darwin* | rhapsody*)
6799 dynamic_linker="$host_os dyld"
6803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6804 soname_spec='${libname}${release}${major}$shared_ext'
6805 shlibpath_overrides_runpath=yes
6806 shlibpath_var=DYLD_LIBRARY_PATH
6807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6809 if test "$GCC" = yes; then
6810 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"`
6812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6822 soname_spec='${libname}${release}${shared_ext}$major'
6823 shlibpath_var=LD_LIBRARY_PATH
6834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6835 soname_spec='${libname}${release}${shared_ext}$major'
6836 shlibpath_var=LD_LIBRARY_PATH
6837 shlibpath_overrides_runpath=no
6838 hardcode_into_libs=yes
6839 dynamic_linker='GNU ld.so'
6843 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6844 version_type=freebsd-$objformat
6845 case $version_type in
6847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6856 shlibpath_var=LD_LIBRARY_PATH
6859 shlibpath_overrides_runpath=yes
6861 freebsd3.01* | freebsdelf3.01*)
6862 shlibpath_overrides_runpath=yes
6863 hardcode_into_libs=yes
6866 shlibpath_overrides_runpath=no
6867 hardcode_into_libs=yes
6876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6877 soname_spec='${libname}${release}${shared_ext}$major'
6878 shlibpath_var=LD_LIBRARY_PATH
6879 hardcode_into_libs=yes
6882 hpux9* | hpux10* | hpux11*)
6883 # Give a soname corresponding to the major version so that dld.sl refuses to
6884 # link against other versions.
6891 hardcode_into_libs=yes
6892 dynamic_linker="$host_os dld.so"
6893 shlibpath_var=LD_LIBRARY_PATH
6894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896 soname_spec='${libname}${release}${shared_ext}$major'
6897 if test "X$HPUX_IA64_MODE" = X32; then
6898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6906 hardcode_into_libs=yes
6907 dynamic_linker="$host_os dld.sl"
6908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6911 soname_spec='${libname}${release}${shared_ext}$major'
6912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6917 dynamic_linker="$host_os dld.sl"
6918 shlibpath_var=SHLIB_PATH
6919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6921 soname_spec='${libname}${release}${shared_ext}$major'
6924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6925 postinstall_cmds='chmod 555 $lib'
6928 irix5* | irix6* | nonstopux*)
6930 nonstopux*) version_type=nonstopux ;;
6932 if test "$lt_cv_prog_gnu_ld" = yes; then
6940 soname_spec='${libname}${release}${shared_ext}$major'
6941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6943 irix5* | nonstopux*)
6947 case $LD in # libtool.m4 will add one of these switches to LD
6948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6949 libsuff= shlibsuff= libmagic=32-bit;;
6950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6951 libsuff=32 shlibsuff=N32 libmagic=N32;;
6952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6954 *) libsuff= shlibsuff= libmagic=never-match;;
6958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6959 shlibpath_overrides_runpath=no
6960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6962 hardcode_into_libs=yes
6965 # No shared lib support for Linux oldld, aout, or coff.
6966 linux*oldld* | linux*aout* | linux*coff*)
6970 # This must be Linux ELF.
6975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976 soname_spec='${libname}${release}${shared_ext}$major'
6977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6978 shlibpath_var=LD_LIBRARY_PATH
6979 shlibpath_overrides_runpath=no
6980 # This implies no fast_install, which is unacceptable.
6981 # Some rework will be needed to allow for fast_install
6982 # before this can be enabled.
6983 hardcode_into_libs=yes
6985 # Append ld.so.conf contents to the search path
6986 if test -f /etc/ld.so.conf; then
6987 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6991 # We used to test for /lib/ld.so.1 and disable shared libraries on
6992 # powerpc, because MkLinux only supported shared libraries with the
6993 # GNU dynamic linker. Since this was broken with cross compilers,
6994 # most powerpc-linux boxes support dynamic linking these days and
6995 # people can always --disable-shared, the test was removed, and we
6996 # assume the GNU/Linux dynamic linker is in use.
6997 dynamic_linker='GNU/Linux ld.so'
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7005 soname_spec='${libname}${release}${shared_ext}$major'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 shlibpath_overrides_runpath=no
7008 hardcode_into_libs=yes
7009 dynamic_linker='GNU ld.so'
7016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7019 dynamic_linker='NetBSD (a.out) ld.so'
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7022 soname_spec='${libname}${release}${shared_ext}$major'
7023 dynamic_linker='NetBSD ld.elf_so'
7025 shlibpath_var=LD_LIBRARY_PATH
7026 shlibpath_overrides_runpath=yes
7027 hardcode_into_libs=yes
7032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033 shlibpath_var=LD_LIBRARY_PATH
7034 shlibpath_overrides_runpath=yes
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042 soname_spec='${libname}${release}${shared_ext}$major'
7043 shlibpath_var=LD_LIBRARY_PATH
7044 shlibpath_overrides_runpath=yes
7051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7053 shlibpath_var=LD_LIBRARY_PATH
7054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7056 openbsd2.[89] | openbsd2.[89].*)
7057 shlibpath_overrides_runpath=no
7060 shlibpath_overrides_runpath=yes
7064 shlibpath_overrides_runpath=yes
7069 libname_spec='$name'
7072 library_names_spec='$libname${shared_ext} $libname.a'
7073 dynamic_linker='OS/2 ld.exe'
7074 shlibpath_var=LIBPATH
7077 osf3* | osf4* | osf5*)
7081 soname_spec='${libname}${release}${shared_ext}$major'
7082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7083 shlibpath_var=LD_LIBRARY_PATH
7084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7085 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7090 soname_spec='${libname}${release}${shared_ext}$major'
7091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7092 shlibpath_var=LD_LIBRARY_PATH
7099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 shlibpath_var=LD_LIBRARY_PATH
7102 shlibpath_overrides_runpath=yes
7103 hardcode_into_libs=yes
7104 # ldd complains unless libraries are executable
7105 postinstall_cmds='chmod +x $lib'
7110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7112 shlibpath_var=LD_LIBRARY_PATH
7113 shlibpath_overrides_runpath=yes
7114 if test "$with_gnu_ld" = yes; then
7120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7123 soname_spec='${libname}${release}${shared_ext}$major'
7124 shlibpath_var=LD_LIBRARY_PATH
7125 case $host_vendor in
7127 shlibpath_overrides_runpath=no
7129 export_dynamic_flag_spec='${wl}-Blargedynsym'
7130 runpath_var=LD_RUN_PATH
7138 shlibpath_overrides_runpath=no
7139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7145 if test -d /usr/nec ;then
7147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7148 soname_spec='$libname${shared_ext}.$major'
7149 shlibpath_var=LD_LIBRARY_PATH
7155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7156 soname_spec='${libname}${release}${shared_ext}$major'
7157 shlibpath_var=LD_LIBRARY_PATH
7164 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7165 echo "${ECHO_T}$dynamic_linker" >&6
7166 test "$dynamic_linker" = no && can_build_shared=no
7169 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7170 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7171 if test "${libltdl_cv_shlibext+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 eval libltdl_cv_shlibext=$shrext_cmds
7179 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7180 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7181 if test -n "$libltdl_cv_shlibext"; then
7183 cat >>confdefs.h <<_ACEOF
7184 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7190 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7191 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7192 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 libltdl_cv_shlibpath_var="$shlibpath_var"
7197 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7198 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7199 if test -n "$libltdl_cv_shlibpath_var"; then
7201 cat >>confdefs.h <<_ACEOF
7202 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7208 echo "$as_me:$LINENO: checking for the default library search path" >&5
7209 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7210 if test "${libltdl_cv_sys_search_path+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7215 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7216 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7217 if test -n "$libltdl_cv_sys_search_path"; then
7219 for dir in $libltdl_cv_sys_search_path; do
7220 if test -z "$sys_search_path"; then
7221 sys_search_path="$dir"
7223 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7227 cat >>confdefs.h <<_ACEOF
7228 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7233 echo "$as_me:$LINENO: checking for objdir" >&5
7234 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7235 if test "${libltdl_cv_objdir+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 libltdl_cv_objdir="$objdir"
7239 if test -n "$objdir"; then
7242 rm -f .libs 2>/dev/null
7243 mkdir .libs 2>/dev/null
7244 if test -d .libs; then
7245 libltdl_cv_objdir=.libs
7247 # MS-DOS does not allow filenames that begin with a dot.
7248 libltdl_cv_objdir=_libs
7250 rmdir .libs 2>/dev/null
7254 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7255 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7257 cat >>confdefs.h <<_ACEOF
7258 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7262 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7263 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7264 if test "${lt_cv_path_NM+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 if test -n "$NM"; then
7268 # Let the user override the test.
7271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7272 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7274 test -z "$ac_dir" && ac_dir=.
7275 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7277 # Check to see if the nm accepts a BSD-compat flag.
7278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7279 # nm: unknown option "B" ignored
7280 # Tru64's nm complains that /dev/null is an invalid object file
7281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7282 */dev/null* | *'Invalid file or object type'*)
7283 lt_cv_path_NM="$tmp_nm -B"
7287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7289 lt_cv_path_NM="$tmp_nm -p"
7293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7294 continue # so that we can try to find one that supports BSD flags
7301 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7304 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7305 echo "${ECHO_T}$lt_cv_path_NM" >&6
7312 # Check for command to grab the raw symbol name followed by C symbol from nm.
7313 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7314 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7315 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 # These are sane defaults that work on at least a few old systems.
7320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7322 # Character class describing NM global symbol codes.
7323 symcode='[BCDEGRST]'
7325 # Regexp to match symbols that can be accessed directly from C.
7326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7328 # Transform the above into a raw symbol and a C symbol.
7329 symxfrm='\1 \2\3 \3'
7331 # Transform an extracted symbol line into a proper C declaration
7332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7334 # Transform an extracted symbol line into symbol name and symbol address
7335 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'"
7337 # Define system-specific variables.
7342 cygwin* | mingw* | pw32*)
7343 symcode='[ABCDGISTW]'
7345 hpux*) # Its linker distinguishes data from code symbols
7346 if test "$host_cpu" = ia64; then
7347 symcode='[ABCDEGRST]'
7349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7350 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'"
7353 if test "$host_cpu" = ia64; then
7354 symcode='[ABCDGIRSTW]'
7355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356 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'"
7360 symcode='[BCDEGRST]'
7363 symcode='[BCDEGQRST]'
7373 # Handle CRLF in mingw tool chain
7377 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7381 # If we're using GNU nm, then use its standard symbol codes.
7382 case `$NM -V 2>&1` in
7383 *GNU* | *'with BFD'*)
7384 symcode='[ABCDGIRSTW]' ;;
7387 # Try without a prefix undercore, then with it.
7388 for ac_symprfx in "" "_"; do
7390 # Write the raw and C identifiers.
7391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7393 # Check to see that the pipe works correctly.
7397 cat > conftest.$ac_ext <<EOF
7402 void nm_test_func(){}
7406 int main(){nm_test_var='a';nm_test_func();return(0);}
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; then
7414 # Now try to grab the symbols.
7416 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7417 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && test -s "$nlist"; then
7421 # Try sorting and uniquifying the output.
7422 if sort "$nlist" | uniq > "$nlist"T; then
7423 mv -f "$nlist"T "$nlist"
7428 # Make sure that we snagged all the symbols we need.
7429 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7430 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7431 cat <<EOF > conftest.$ac_ext
7437 # Now generate the symbol file.
7438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7440 cat <<EOF >> conftest.$ac_ext
7441 #if defined (__STDC__) && __STDC__
7442 # define lt_ptr_t void *
7444 # define lt_ptr_t char *
7448 /* The mapping between symbol names and symbols. */
7453 lt_preloaded_symbols[] =
7456 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7457 cat <<\EOF >> conftest.$ac_ext
7465 # Now try linking the two files.
7466 mv conftest.$ac_objext conftstm.$ac_objext
7467 lt_save_LIBS="$LIBS"
7468 lt_save_CFLAGS="$CFLAGS"
7469 LIBS="conftstm.$ac_objext"
7470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7478 LIBS="$lt_save_LIBS"
7479 CFLAGS="$lt_save_CFLAGS"
7481 echo "cannot find nm_test_func in $nlist" >&5
7484 echo "cannot find nm_test_var in $nlist" >&5
7487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7490 echo "$progname: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 rm -f conftest* conftst*
7495 # Do not use the global_symbol_pipe unless it works.
7496 if test "$pipe_works" = yes; then
7499 lt_cv_sys_global_symbol_pipe=
7505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7506 lt_cv_sys_global_symbol_to_cdecl=
7508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7509 echo "$as_me:$LINENO: result: failed" >&5
7510 echo "${ECHO_T}failed" >&6
7512 echo "$as_me:$LINENO: result: ok" >&5
7513 echo "${ECHO_T}ok" >&6
7517 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7518 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7519 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7523 libltdl_cv_preloaded_symbols=yes
7525 libltdl_cv_preloaded_symbols=no
7529 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7530 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7531 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7533 cat >>confdefs.h <<\_ACEOF
7534 #define HAVE_PRELOADED_SYMBOLS 1
7542 ac_cpp='$CPP $CPPFLAGS'
7543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548 echo "$as_me:$LINENO: checking for shl_load" >&5
7549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7550 if test "${ac_cv_func_shl_load+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 cat >conftest.$ac_ext <<_ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7561 #define shl_load innocuous_shl_load
7563 /* System header to define __stub macros and hopefully few prototypes,
7564 which can conflict with char shl_load (); below.
7565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566 <limits.h> exists even on freestanding compilers. */
7569 # include <limits.h>
7571 # include <assert.h>
7576 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7584 /* The GNU C library defines this for functions which it implements
7585 to always fail with ENOSYS. Some functions are actually named
7586 something starting with __ and the normal name is an alias. */
7587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7590 char (*f) () = shl_load;
7599 return f != shl_load;
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606 (eval $ac_link) 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_cv_func_shl_load=yes
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_cv_func_shl_load=no
7633 rm -f conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7638 if test $ac_cv_func_shl_load = yes; then
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_SHL_LOAD 1
7645 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7646 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7647 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_check_lib_save_LIBS=$LIBS
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7659 /* Override any gcc2 internal prototype to avoid an error. */
7663 /* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7678 grep -v '^ *+' conftest.er1 >conftest.err
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_lib_dld_shl_load=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_cv_lib_dld_shl_load=no
7703 rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7707 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7708 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7709 if test $ac_cv_lib_dld_shl_load = yes; then
7711 cat >>confdefs.h <<\_ACEOF
7712 #define HAVE_SHL_LOAD 1
7715 LIBADD_DL="$LIBADD_DL -ldld"
7717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_check_lib_save_LIBS=$LIBS
7724 cat >conftest.$ac_ext <<_ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7731 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_lib_dl_dlopen=yes
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_cv_lib_dl_dlopen=no
7775 rm -f conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7779 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7781 if test $ac_cv_lib_dl_dlopen = yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBDL 1
7787 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag"
7817 || test ! -s conftest.err'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; } &&
7823 { ac_try='test -s conftest$ac_exeext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_LIBDL 1
7833 libltdl_cv_func_dlopen="yes"
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7839 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7840 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_check_lib_save_LIBS=$LIBS
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7852 /* Override any gcc2 internal prototype to avoid an error. */
7856 /* We use char because int might match the return type of a gcc2
7857 builtin and then its argument prototype would still apply. */
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_lib_svld_dlopen=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_cv_lib_svld_dlopen=no
7896 rm -f conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 LIBS=$ac_check_lib_save_LIBS
7900 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7901 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7902 if test $ac_cv_lib_svld_dlopen = yes; then
7904 cat >>confdefs.h <<\_ACEOF
7905 #define HAVE_LIBDL 1
7908 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7910 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7911 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 ac_check_lib_save_LIBS=$LIBS
7917 cat >conftest.$ac_ext <<_ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7924 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest$ac_exeext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_lib_dld_dld_link=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 ac_cv_lib_dld_dld_link=no
7968 rm -f conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974 if test $ac_cv_lib_dld_dld_link = yes; then
7976 cat >>confdefs.h <<\_ACEOF
7980 LIBADD_DL="$LIBADD_DL -ldld"
7982 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7983 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7984 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7995 #define _dyld_func_lookup innocuous__dyld_func_lookup
7997 /* System header to define __stub macros and hopefully few prototypes,
7998 which can conflict with char _dyld_func_lookup (); below.
7999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8000 <limits.h> exists even on freestanding compilers. */
8003 # include <limits.h>
8005 # include <assert.h>
8008 #undef _dyld_func_lookup
8010 /* Override any gcc2 internal prototype to avoid an error. */
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8017 char _dyld_func_lookup ();
8018 /* The GNU C library defines this for functions which it implements
8019 to always fail with ENOSYS. Some functions are actually named
8020 something starting with __ and the normal name is an alias. */
8021 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8024 char (*f) () = _dyld_func_lookup;
8033 return f != _dyld_func_lookup;
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest$ac_exeext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_cv_func__dyld_func_lookup=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_cv_func__dyld_func_lookup=no
8067 rm -f conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8070 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8071 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8072 if test $ac_cv_func__dyld_func_lookup = yes; then
8074 cat >>confdefs.h <<\_ACEOF
8088 rm -f conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8100 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8102 lt_save_LIBS="$LIBS"
8103 LIBS="$LIBS $LIBADD_DL"
8105 for ac_func in dlerror
8107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8108 echo "$as_me:$LINENO: checking for $ac_func" >&5
8109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_var+set}\" = set"; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121 #define $ac_func innocuous_$ac_func
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func (); below.
8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 <limits.h> exists even on freestanding compilers. */
8129 # include <limits.h>
8131 # include <assert.h>
8136 /* Override any gcc2 internal prototype to avoid an error. */
8141 /* We use char because int might match the return type of a gcc2
8142 builtin and then its argument prototype would still apply. */
8144 /* The GNU C library defines this for functions which it implements
8145 to always fail with ENOSYS. Some functions are actually named
8146 something starting with __ and the normal name is an alias. */
8147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8150 char (*f) () = $ac_func;
8159 return f != $ac_func;
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 eval "$as_ac_var=yes"
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 eval "$as_ac_var=no"
8193 rm -f conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8198 if test `eval echo '${'$as_ac_var'}'` = yes; then
8199 cat >>confdefs.h <<_ACEOF
8200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206 LIBS="$lt_save_LIBS"
8209 ac_cpp='$CPP $CPPFLAGS'
8210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8216 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8217 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8218 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 ac_cv_sys_symbol_underscore=no
8222 cat > conftest.$ac_ext <<EOF
8223 void nm_test_func(){}
8224 int main(){nm_test_func;return 0;}
8226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8227 (eval $ac_compile) 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; then
8231 # Now try to grab the symbols.
8232 ac_nlist=conftest.nm
8233 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } && test -s "$ac_nlist"; then
8238 # See whether the symbols have a leading underscore.
8239 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8240 ac_cv_sys_symbol_underscore=yes
8242 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8245 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8249 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8252 echo "configure: failed program was:" >&5
8258 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8259 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8262 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8263 if test x"$libltdl_cv_func_dlopen" = xyes ||
8264 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8265 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8266 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8267 if test "${libltdl_cv_need_uscore+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 libltdl_cv_need_uscore=unknown
8272 LIBS="$LIBS $LIBADD_DL"
8273 if test "$cross_compiling" = yes; then :
8274 libltdl_cv_need_uscore=cross
8276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8277 lt_status=$lt_dlunknown
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8279 "configure"
8280 #include "confdefs.h"
8289 # define LT_DLGLOBAL RTLD_GLOBAL
8292 # define LT_DLGLOBAL DL_GLOBAL
8294 # define LT_DLGLOBAL 0
8298 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8299 find out it does not work in some platform. */
8300 #ifndef LT_DLLAZY_OR_NOW
8302 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8305 # define LT_DLLAZY_OR_NOW DL_LAZY
8308 # define LT_DLLAZY_OR_NOW RTLD_NOW
8311 # define LT_DLLAZY_OR_NOW DL_NOW
8313 # define LT_DLLAZY_OR_NOW 0
8321 extern "C" void exit (int);
8324 void fnord() { int i=42;}
8327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8328 int status = $lt_dlunknown;
8332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8334 /* dlclose (self); */
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8345 (./conftest; exit; ) 2>/dev/null
8348 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8349 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8353 # compilation failed
8362 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8363 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8367 if test x"$libltdl_cv_need_uscore" = xyes; then
8369 cat >>confdefs.h <<\_ACEOF
8370 #define NEED_USCORE 1
8376 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8377 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8378 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 # PORTME does your system automatically load deplibs for dlopen?
8382 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8383 # For now, we just catch OSes we know something about -- in the
8384 # future, we'll try test this programmatically.
8385 libltdl_cv_sys_dlopen_deplibs=unknown
8387 aix3*|aix4.1.*|aix4.2.*)
8388 # Unknown whether this is true for these versions of AIX, but
8389 # we want this `case' here to explicitly catch those versions.
8390 libltdl_cv_sys_dlopen_deplibs=unknown
8393 libltdl_cv_sys_dlopen_deplibs=yes
8396 # Assuming the user has installed a libdl from somewhere, this is true
8397 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8398 libltdl_cv_sys_dlopen_deplibs=yes
8400 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8401 # GNU and its variants, using gnu ld.so (Glibc)
8402 libltdl_cv_sys_dlopen_deplibs=yes
8405 libltdl_cv_sys_dlopen_deplibs=yes
8407 irix[12345]*|irix6.[01]*)
8408 # Catch all versions of IRIX before 6.2, and indicate that we don't
8409 # know how it worked for any of those versions.
8410 libltdl_cv_sys_dlopen_deplibs=unknown
8413 # The case above catches anything before 6.2, and it's known that
8414 # at 6.2 and later dlopen does load deplibs.
8415 libltdl_cv_sys_dlopen_deplibs=yes
8418 libltdl_cv_sys_dlopen_deplibs=yes
8421 libltdl_cv_sys_dlopen_deplibs=yes
8424 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8425 # it did *not* use an RPATH in a shared library to find objects the
8426 # library depends on, so we explictly say `no'.
8427 libltdl_cv_sys_dlopen_deplibs=no
8429 osf5.0|osf5.0a|osf5.1)
8430 # dlopen *does* load deplibs and with the right loader patch applied
8431 # it even uses RPATH in a shared library to search for shared objects
8432 # that the library depends on, but there's no easy way to know if that
8433 # patch is installed. Since this is the case, all we can really
8434 # say is unknown -- it depends on the patch being installed. If
8435 # it is, this changes to `yes'. Without it, it would be `no'.
8436 libltdl_cv_sys_dlopen_deplibs=unknown
8439 # the two cases above should catch all versions of osf <= 5.1. Read
8440 # the comments above for what we know about them.
8441 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8442 # is used to find them so we can finally say `yes'.
8443 libltdl_cv_sys_dlopen_deplibs=yes
8446 libltdl_cv_sys_dlopen_deplibs=yes
8451 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8452 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8453 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8455 cat >>confdefs.h <<\_ACEOF
8456 #define LTDL_DLOPEN_DEPLIBS 1
8462 for ac_header in argz.h
8464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8466 echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8474 # Is the header compilable?
8475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 #include <$ac_header>
8486 rm -f conftest.$ac_objext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>conftest.er1
8490 grep -v '^ *+' conftest.er1 >conftest.err
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag"
8496 || test ! -s conftest.err'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_header_compiler=yes
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 ac_header_compiler=no
8515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8517 echo "${ECHO_T}$ac_header_compiler" >&6
8519 # Is the header present?
8520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8522 cat >conftest.$ac_ext <<_ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <$ac_header>
8530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8547 if test -z "$ac_cpp_err"; then
8548 ac_header_preproc=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_header_preproc=no
8555 rm -f conftest.err conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8557 echo "${ECHO_T}$ac_header_preproc" >&6
8559 # So? What about this header?
8560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8566 ac_header_preproc=yes
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8583 ## ----------------------------------- ##
8584 ## Report this to llvmbugs@cs.uiuc.edu ##
8585 ## ----------------------------------- ##
8588 sed "s/^/$as_me: WARNING: /" >&2
8591 echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 eval "$as_ac_Header=\$ac_header_preproc"
8598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612 echo "$as_me:$LINENO: checking for error_t" >&5
8613 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8614 if test "${ac_cv_type_error_t+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8632 if (sizeof (error_t))
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_type_error_t=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_cv_type_error_t=no
8667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8670 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8671 if test $ac_cv_type_error_t = yes; then
8673 cat >>confdefs.h <<_ACEOF
8674 #define HAVE_ERROR_T 1
8680 cat >>confdefs.h <<\_ACEOF
8692 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8695 echo "$as_me:$LINENO: checking for $ac_func" >&5
8696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8697 if eval "test \"\${$as_ac_var+set}\" = set"; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708 #define $ac_func innocuous_$ac_func
8710 /* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char $ac_func (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8716 # include <limits.h>
8718 # include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8737 char (*f) () = $ac_func;
8746 return f != $ac_func;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 eval "$as_ac_var=yes"
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 eval "$as_ac_var=no"
8780 rm -f conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8785 if test `eval echo '${'$as_ac_var'}'` = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8820 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825 echo "$as_me:$LINENO: checking for $ac_header" >&5
8826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8833 # Is the header compilable?
8834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8842 $ac_includes_default
8843 #include <$ac_header>
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_header_compiler=yes
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_header_compiler=no
8874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876 echo "${ECHO_T}$ac_header_compiler" >&6
8878 # Is the header present?
8879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887 #include <$ac_header>
8889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8892 grep -v '^ *+' conftest.er1 >conftest.err
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } >/dev/null; then
8897 if test -s conftest.err; then
8898 ac_cpp_err=$ac_c_preproc_warn_flag
8899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8906 if test -z "$ac_cpp_err"; then
8907 ac_header_preproc=yes
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_header_preproc=no
8914 rm -f conftest.err conftest.$ac_ext
8915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8916 echo "${ECHO_T}$ac_header_preproc" >&6
8918 # So? What about this header?
8919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8925 ac_header_preproc=yes
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8942 ## ----------------------------------- ##
8943 ## Report this to llvmbugs@cs.uiuc.edu ##
8944 ## ----------------------------------- ##
8947 sed "s/^/$as_me: WARNING: /" >&2
8950 echo "$as_me:$LINENO: checking for $ac_header" >&5
8951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 eval "$as_ac_Header=\$ac_header_preproc"
8957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8962 cat >>confdefs.h <<_ACEOF
8963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8974 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978 echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8986 # Is the header compilable?
8987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8995 $ac_includes_default
8996 #include <$ac_header>
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest.$ac_objext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_header_compiler=yes
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_header_compiler=no
9027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9029 echo "${ECHO_T}$ac_header_compiler" >&6
9031 # Is the header present?
9032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9034 cat >conftest.$ac_ext <<_ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 #include <$ac_header>
9042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } >/dev/null; then
9050 if test -s conftest.err; then
9051 ac_cpp_err=$ac_c_preproc_warn_flag
9052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9059 if test -z "$ac_cpp_err"; then
9060 ac_header_preproc=yes
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_header_preproc=no
9067 rm -f conftest.err conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9069 echo "${ECHO_T}$ac_header_preproc" >&6
9071 # So? What about this header?
9072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9078 ac_header_preproc=yes
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9095 ## ----------------------------------- ##
9096 ## Report this to llvmbugs@cs.uiuc.edu ##
9097 ## ----------------------------------- ##
9100 sed "s/^/$as_me: WARNING: /" >&2
9103 echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 eval "$as_ac_Header=\$ac_header_preproc"
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115 cat >>confdefs.h <<_ACEOF
9116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 for ac_header in string.h strings.h
9127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo "$as_me:$LINENO: checking for $ac_header" >&5
9130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9137 # Is the header compilable?
9138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 #include <$ac_header>
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>conftest.er1
9153 grep -v '^ *+' conftest.er1 >conftest.err
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest.$ac_objext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_header_compiler=yes
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_header_compiler=no
9178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9180 echo "${ECHO_T}$ac_header_compiler" >&6
9182 # Is the header present?
9183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <$ac_header>
9193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } >/dev/null; then
9201 if test -s conftest.err; then
9202 ac_cpp_err=$ac_c_preproc_warn_flag
9203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9210 if test -z "$ac_cpp_err"; then
9211 ac_header_preproc=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 ac_header_preproc=no
9218 rm -f conftest.err conftest.$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9220 echo "${ECHO_T}$ac_header_preproc" >&6
9222 # So? What about this header?
9223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9229 ac_header_preproc=yes
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9246 ## ----------------------------------- ##
9247 ## Report this to llvmbugs@cs.uiuc.edu ##
9248 ## ----------------------------------- ##
9251 sed "s/^/$as_me: WARNING: /" >&2
9254 echo "$as_me:$LINENO: checking for $ac_header" >&5
9255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 eval "$as_ac_Header=\$ac_header_preproc"
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9266 cat >>confdefs.h <<_ACEOF
9267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9277 for ac_func in strchr index
9279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9280 echo "$as_me:$LINENO: checking for $ac_func" >&5
9281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9282 if eval "test \"\${$as_ac_var+set}\" = set"; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9293 #define $ac_func innocuous_$ac_func
9295 /* System header to define __stub macros and hopefully few prototypes,
9296 which can conflict with char $ac_func (); below.
9297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 <limits.h> exists even on freestanding compilers. */
9301 # include <limits.h>
9303 # include <assert.h>
9308 /* Override any gcc2 internal prototype to avoid an error. */
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9316 /* The GNU C library defines this for functions which it implements
9317 to always fail with ENOSYS. Some functions are actually named
9318 something starting with __ and the normal name is an alias. */
9319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9322 char (*f) () = $ac_func;
9331 return f != $ac_func;
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 eval "$as_ac_var=yes"
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9363 eval "$as_ac_var=no"
9365 rm -f conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9370 if test `eval echo '${'$as_ac_var'}'` = yes; then
9371 cat >>confdefs.h <<_ACEOF
9372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9380 for ac_func in strrchr rindex
9382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9383 echo "$as_me:$LINENO: checking for $ac_func" >&5
9384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9385 if eval "test \"\${$as_ac_var+set}\" = set"; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 cat >conftest.$ac_ext <<_ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9396 #define $ac_func innocuous_$ac_func
9398 /* System header to define __stub macros and hopefully few prototypes,
9399 which can conflict with char $ac_func (); below.
9400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9401 <limits.h> exists even on freestanding compilers. */
9404 # include <limits.h>
9406 # include <assert.h>
9411 /* Override any gcc2 internal prototype to avoid an error. */
9416 /* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9419 /* The GNU C library defines this for functions which it implements
9420 to always fail with ENOSYS. Some functions are actually named
9421 something starting with __ and the normal name is an alias. */
9422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9425 char (*f) () = $ac_func;
9434 return f != $ac_func;
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>conftest.er1
9443 grep -v '^ *+' conftest.er1 >conftest.err
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag"
9449 || test ! -s conftest.err'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 eval "$as_ac_var=yes"
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 eval "$as_ac_var=no"
9468 rm -f conftest.err conftest.$ac_objext \
9469 conftest$ac_exeext conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9473 if test `eval echo '${'$as_ac_var'}'` = yes; then
9474 cat >>confdefs.h <<_ACEOF
9475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9483 for ac_func in memcpy bcopy
9485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define $ac_func innocuous_$ac_func
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char $ac_func (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9507 # include <limits.h>
9509 # include <assert.h>
9514 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9528 char (*f) () = $ac_func;
9537 return f != $ac_func;
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 eval "$as_ac_var=yes"
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 eval "$as_ac_var=no"
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576 if test `eval echo '${'$as_ac_var'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9586 for ac_func in memmove strcmp
9588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589 echo "$as_me:$LINENO: checking for $ac_func" >&5
9590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_var+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602 #define $ac_func innocuous_$ac_func
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char $ac_func (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9610 # include <limits.h>
9612 # include <assert.h>
9617 /* Override any gcc2 internal prototype to avoid an error. */
9622 /* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9625 /* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9631 char (*f) () = $ac_func;
9640 return f != $ac_func;
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9649 grep -v '^ *+' conftest.er1 >conftest.err
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 eval "$as_ac_var=yes"
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 eval "$as_ac_var=no"
9674 rm -f conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9679 if test `eval echo '${'$as_ac_var'}'` = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9690 for ac_func in closedir opendir readdir
9692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9693 echo "$as_me:$LINENO: checking for $ac_func" >&5
9694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9695 if eval "test \"\${$as_ac_var+set}\" = set"; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9706 #define $ac_func innocuous_$ac_func
9708 /* System header to define __stub macros and hopefully few prototypes,
9709 which can conflict with char $ac_func (); below.
9710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9711 <limits.h> exists even on freestanding compilers. */
9714 # include <limits.h>
9716 # include <assert.h>
9721 /* Override any gcc2 internal prototype to avoid an error. */
9726 /* We use char because int might match the return type of a gcc2
9727 builtin and then its argument prototype would still apply. */
9729 /* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9735 char (*f) () = $ac_func;
9744 return f != $ac_func;
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -z "$ac_c_werror_flag"
9759 || test ! -s conftest.err'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 eval "$as_ac_var=yes"
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 eval "$as_ac_var=no"
9778 rm -f conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9783 if test `eval echo '${'$as_ac_var'}'` = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9792 # Check whether --enable-shared or --disable-shared was given.
9793 if test "${enable_shared+set}" = set; then
9794 enableval="$enable_shared"
9795 p=${PACKAGE-default}
9797 yes) enable_shared=yes ;;
9798 no) enable_shared=no ;;
9801 # Look at the argument we got. We use all the common list separators.
9802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9803 for pkg in $enableval; do
9805 if test "X$pkg" = "X$p"; then
9816 # Check whether --enable-static or --disable-static was given.
9817 if test "${enable_static+set}" = set; then
9818 enableval="$enable_static"
9819 p=${PACKAGE-default}
9821 yes) enable_static=yes ;;
9822 no) enable_static=no ;;
9825 # Look at the argument we got. We use all the common list separators.
9826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9827 for pkg in $enableval; do
9829 if test "X$pkg" = "X$p"; then
9840 # Check whether --enable-fast-install or --disable-fast-install was given.
9841 if test "${enable_fast_install+set}" = set; then
9842 enableval="$enable_fast_install"
9843 p=${PACKAGE-default}
9845 yes) enable_fast_install=yes ;;
9846 no) enable_fast_install=no ;;
9848 enable_fast_install=no
9849 # Look at the argument we got. We use all the common list separators.
9850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9851 for pkg in $enableval; do
9853 if test "X$pkg" = "X$p"; then
9854 enable_fast_install=yes
9861 enable_fast_install=yes
9864 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9865 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9866 if test "${lt_cv_path_SED+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 # Loop through the user's path and test for sed and gsed.
9870 # Then use that list of sed's as ones to test for truncation.
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 test -z "$as_dir" && as_dir=.
9876 for lt_ac_prog in sed gsed; do
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9879 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9886 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9887 # along with /bin/sed that truncates output.
9888 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9889 test ! -f $lt_ac_sed && break
9890 cat /dev/null > conftest.in
9892 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9893 # Check for GNU sed and select it if it is found.
9894 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9895 lt_cv_path_SED=$lt_ac_sed
9899 cat conftest.in conftest.in >conftest.tmp
9900 mv conftest.tmp conftest.in
9901 cp conftest.in conftest.nl
9903 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9904 cmp -s conftest.out conftest.nl || break
9905 # 10000 chars as input seems more than enough
9906 test $lt_ac_count -gt 10 && break
9907 lt_ac_count=`expr $lt_ac_count + 1`
9908 if test $lt_ac_count -gt $lt_ac_max; then
9909 lt_ac_max=$lt_ac_count
9910 lt_cv_path_SED=$lt_ac_sed
9918 echo "$as_me:$LINENO: result: $SED" >&5
9919 echo "${ECHO_T}$SED" >&6
9922 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9923 if test "${with_gnu_ld+set}" = set; then
9924 withval="$with_gnu_ld"
9925 test "$withval" = no || with_gnu_ld=yes
9930 if test "$GCC" = yes; then
9931 # Check if gcc -print-prog-name=ld gives a path.
9932 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9933 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9936 # gcc leaves a trailing carriage return which upsets mingw
9937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9942 # Accept absolute paths.
9944 re_direlt='/[^/][^/]*/\.\./'
9945 # Canonicalize the pathname of ld
9946 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9947 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9948 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9950 test -z "$LD" && LD="$ac_prog"
9953 # If it fails, then pretend we aren't using GCC.
9957 # If it is relative, then search for the first ld in PATH.
9961 elif test "$with_gnu_ld" = yes; then
9962 echo "$as_me:$LINENO: checking for GNU ld" >&5
9963 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9965 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9966 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9968 if test "${lt_cv_path_LD+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 if test -z "$LD"; then
9972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9973 for ac_dir in $PATH; do
9975 test -z "$ac_dir" && ac_dir=.
9976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9977 lt_cv_path_LD="$ac_dir/$ac_prog"
9978 # Check to see if the program is GNU ld. I'd rather use --version,
9979 # but apparently some GNU ld's only accept -v.
9980 # Break only if it was the GNU/non-GNU ld that we prefer.
9981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9982 *GNU* | *'with BFD'*)
9983 test "$with_gnu_ld" != no && break
9986 test "$with_gnu_ld" != yes && break
9993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9998 if test -n "$LD"; then
9999 echo "$as_me:$LINENO: result: $LD" >&5
10000 echo "${ECHO_T}$LD" >&6
10002 echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10005 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10006 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10007 { (exit 1); exit 1; }; }
10008 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10009 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10010 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10014 case `$LD -v 2>&1 </dev/null` in
10015 *GNU* | *'with BFD'*)
10016 lt_cv_prog_gnu_ld=yes
10019 lt_cv_prog_gnu_ld=no
10023 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10024 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10025 with_gnu_ld=$lt_cv_prog_gnu_ld
10028 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10029 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10030 if test "${lt_cv_ld_reload_flag+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 lt_cv_ld_reload_flag='-r'
10035 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10036 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10037 reload_flag=$lt_cv_ld_reload_flag
10038 case $reload_flag in
10040 *) reload_flag=" $reload_flag" ;;
10042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10045 if test "$GCC" = yes; then
10046 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10053 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10054 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10055 if test "${lt_cv_deplibs_check_method+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 lt_cv_file_magic_cmd='$MAGIC_CMD'
10059 lt_cv_file_magic_test_file=
10060 lt_cv_deplibs_check_method='unknown'
10061 # Need to set the preceding variable on all platforms that support
10062 # interlibrary dependencies.
10063 # 'none' -- dependencies not supported.
10064 # `unknown' -- same as none, but documents that we really don't know.
10065 # 'pass_all' -- all dependencies passed with no checks.
10066 # 'test_compile' -- check by making test program.
10067 # 'file_magic [[regex]]' -- check by looking for files in library path
10068 # which responds to the $file_magic_cmd with a given extended regex.
10069 # If you have `file' or equivalent on your system and you're not sure
10070 # whether `pass_all' will *always* work, you probably want this one.
10074 lt_cv_deplibs_check_method=pass_all
10078 lt_cv_deplibs_check_method=pass_all
10082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10083 lt_cv_file_magic_cmd='/usr/bin/file -L'
10084 lt_cv_file_magic_test_file=/shlib/libc.so
10088 # func_win32_libid is a shell function defined in ltmain.sh
10089 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10090 lt_cv_file_magic_cmd='func_win32_libid'
10094 # Base MSYS/MinGW do not provide the 'file' command needed by
10095 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10096 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10097 lt_cv_file_magic_cmd='$OBJDUMP -f'
10100 darwin* | rhapsody*)
10101 lt_cv_deplibs_check_method=pass_all
10104 freebsd* | kfreebsd*-gnu)
10105 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10108 # Not sure whether the presence of OpenBSD here was a mistake.
10109 # Let's accept both of them until this is cleared up.
10110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10111 lt_cv_file_magic_cmd=/usr/bin/file
10112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10116 lt_cv_deplibs_check_method=pass_all
10121 lt_cv_deplibs_check_method=pass_all
10124 hpux10.20* | hpux11*)
10125 lt_cv_file_magic_cmd=/usr/bin/file
10126 case "$host_cpu" in
10128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10129 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10132 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]'
10133 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10137 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10142 irix5* | irix6* | nonstopux*)
10144 *-32|*"-32 ") libmagic=32-bit;;
10145 *-n32|*"-n32 ") libmagic=N32;;
10146 *-64|*"-64 ") libmagic=64-bit;;
10147 *) libmagic=never-match;;
10149 lt_cv_deplibs_check_method=pass_all
10152 # This must be Linux ELF.
10154 lt_cv_deplibs_check_method=pass_all
10158 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10167 lt_cv_file_magic_cmd=/usr/bin/file
10168 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10172 lt_cv_deplibs_check_method=unknown
10176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10183 osf3* | osf4* | osf5*)
10184 lt_cv_deplibs_check_method=pass_all
10188 lt_cv_deplibs_check_method=pass_all
10192 lt_cv_deplibs_check_method=pass_all
10195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196 case $host_vendor in
10198 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]'
10199 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10202 lt_cv_deplibs_check_method=pass_all
10205 lt_cv_file_magic_cmd='/bin/file'
10206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10209 lt_cv_file_magic_cmd='/bin/file'
10210 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10211 lt_cv_file_magic_test_file=/lib/libc.so
10214 lt_cv_deplibs_check_method=pass_all
10219 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10220 lt_cv_deplibs_check_method=pass_all
10225 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10226 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10227 file_magic_cmd=$lt_cv_file_magic_cmd
10228 deplibs_check_method=$lt_cv_deplibs_check_method
10229 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10233 # If no C compiler was specified, use CC.
10236 # Allow CC to be a program name with arguments.
10239 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10240 if test "${enable_libtool_lock+set}" = set; then
10241 enableval="$enable_libtool_lock"
10244 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10246 # Some flags need to be propagated to the compiler or linker for good
10250 # Find out which ABI we are using.
10251 echo 'int i;' > conftest.$ac_ext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; then
10257 case `/usr/bin/file conftest.$ac_objext` in
10259 HPUX_IA64_MODE="32"
10262 HPUX_IA64_MODE="64"
10269 # Find out which ABI we are using.
10270 echo '#line 10270 "configure"' > conftest.$ac_ext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; then
10276 if test "$lt_cv_prog_gnu_ld" = yes; then
10277 case `/usr/bin/file conftest.$ac_objext` in
10279 LD="${LD-ld} -melf32bsmip"
10282 LD="${LD-ld} -melf32bmipn32"
10285 LD="${LD-ld} -melf64bmip"
10289 case `/usr/bin/file conftest.$ac_objext` in
10305 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10306 # Find out which ABI we are using.
10307 echo 'int i;' > conftest.$ac_ext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; then
10313 case "`/usr/bin/file conftest.o`" in
10317 LD="${LD-ld} -m elf_i386"
10319 ppc64-*linux*|powerpc64-*linux*)
10320 LD="${LD-ld} -m elf32ppclinux"
10323 LD="${LD-ld} -m elf_s390"
10326 LD="${LD-ld} -m elf32_sparc"
10333 LD="${LD-ld} -m elf_x86_64"
10335 ppc*-*linux*|powerpc*-*linux*)
10336 LD="${LD-ld} -m elf64ppc"
10339 LD="${LD-ld} -m elf64_s390"
10342 LD="${LD-ld} -m elf64_sparc"
10352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10353 SAVE_CFLAGS="$CFLAGS"
10354 CFLAGS="$CFLAGS -belf"
10355 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10356 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10357 if test "${lt_cv_cc_needs_belf+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 lt_cv_cc_needs_belf=yes
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 lt_cv_cc_needs_belf=no
10403 rm -f conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10406 ac_cpp='$CPP $CPPFLAGS'
10407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10412 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10413 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10414 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10415 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10416 CFLAGS="$SAVE_CFLAGS"
10422 need_locks="$enable_libtool_lock"
10427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10429 (test "X$CXX" != "Xg++"))) ; then
10431 ac_cpp='$CXXCPP $CPPFLAGS'
10432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10435 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10437 if test -z "$CXXCPP"; then
10438 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 # Double quotes because CXXCPP needs to be expanded
10442 for CXXCPP in "$CXX -E" "/lib/cpp"
10444 ac_preproc_ok=false
10445 for ac_cxx_preproc_warn_flag in '' yes
10447 # Use a header file that comes with gcc, so configuring glibc
10448 # with a fresh cross-compiler works.
10449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10450 # <limits.h> exists even on freestanding compilers.
10451 # On the NeXT, cc -E runs the code through the compiler's parser,
10452 # not just through cpp. "Syntax error" is here to catch this case.
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10460 # include <limits.h>
10462 # include <assert.h>
10466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } >/dev/null; then
10474 if test -s conftest.err; then
10475 ac_cpp_err=$ac_cxx_preproc_warn_flag
10476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10483 if test -z "$ac_cpp_err"; then
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 # Broken: fails on valid input.
10492 rm -f conftest.err conftest.$ac_ext
10494 # OK, works on sane cases. Now check whether non-existent headers
10495 # can be detected and how.
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #include <ac_nonexistent.h>
10504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } >/dev/null; then
10512 if test -s conftest.err; then
10513 ac_cpp_err=$ac_cxx_preproc_warn_flag
10514 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10521 if test -z "$ac_cpp_err"; then
10522 # Broken: success on invalid input.
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 # Passes both tests.
10532 rm -f conftest.err conftest.$ac_ext
10535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10536 rm -f conftest.err conftest.$ac_ext
10537 if $ac_preproc_ok; then
10542 ac_cv_prog_CXXCPP=$CXXCPP
10545 CXXCPP=$ac_cv_prog_CXXCPP
10547 ac_cv_prog_CXXCPP=$CXXCPP
10549 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10550 echo "${ECHO_T}$CXXCPP" >&6
10551 ac_preproc_ok=false
10552 for ac_cxx_preproc_warn_flag in '' yes
10554 # Use a header file that comes with gcc, so configuring glibc
10555 # with a fresh cross-compiler works.
10556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557 # <limits.h> exists even on freestanding compilers.
10558 # On the NeXT, cc -E runs the code through the compiler's parser,
10559 # not just through cpp. "Syntax error" is here to catch this case.
10560 cat >conftest.$ac_ext <<_ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10567 # include <limits.h>
10569 # include <assert.h>
10573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10576 grep -v '^ *+' conftest.er1 >conftest.err
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_cxx_preproc_warn_flag
10583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10590 if test -z "$ac_cpp_err"; then
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 # Broken: fails on valid input.
10599 rm -f conftest.err conftest.$ac_ext
10601 # OK, works on sane cases. Now check whether non-existent headers
10602 # can be detected and how.
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 #include <ac_nonexistent.h>
10611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } >/dev/null; then
10619 if test -s conftest.err; then
10620 ac_cpp_err=$ac_cxx_preproc_warn_flag
10621 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10628 if test -z "$ac_cpp_err"; then
10629 # Broken: success on invalid input.
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 # Passes both tests.
10639 rm -f conftest.err conftest.$ac_ext
10642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10643 rm -f conftest.err conftest.$ac_ext
10644 if $ac_preproc_ok; then
10647 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10648 See \`config.log' for more details." >&5
10649 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10650 See \`config.log' for more details." >&2;}
10651 { (exit 1); exit 1; }; }
10655 ac_cpp='$CXXCPP $CPPFLAGS'
10656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10664 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10665 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10666 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10667 if test -n "$ac_tool_prefix"; then
10668 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10672 echo "$as_me:$LINENO: checking for $ac_word" >&5
10673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10674 if test "${ac_cv_prog_F77+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 if test -n "$F77"; then
10678 ac_cv_prog_F77="$F77" # Let the user override the test.
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 F77=$ac_cv_prog_F77
10697 if test -n "$F77"; then
10698 echo "$as_me:$LINENO: result: $F77" >&5
10699 echo "${ECHO_T}$F77" >&6
10701 echo "$as_me:$LINENO: result: no" >&5
10702 echo "${ECHO_T}no" >&6
10705 test -n "$F77" && break
10708 if test -z "$F77"; then
10710 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10712 # Extract the first word of "$ac_prog", so it can be a program name with args.
10713 set dummy $ac_prog; ac_word=$2
10714 echo "$as_me:$LINENO: checking for $ac_word" >&5
10715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10716 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 if test -n "$ac_ct_F77"; then
10720 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_ac_ct_F77="$ac_prog"
10730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10739 if test -n "$ac_ct_F77"; then
10740 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10741 echo "${ECHO_T}$ac_ct_F77" >&6
10743 echo "$as_me:$LINENO: result: no" >&5
10744 echo "${ECHO_T}no" >&6
10747 test -n "$ac_ct_F77" && break
10754 # Provide some information about the compiler.
10755 echo "$as_me:10755:" \
10756 "checking for Fortran 77 compiler version" >&5
10757 ac_compiler=`set X $ac_compile; echo $2`
10758 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10759 (eval $ac_compiler --version </dev/null >&5) 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }
10763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10764 (eval $ac_compiler -v </dev/null >&5) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }
10768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10769 (eval $ac_compiler -V </dev/null >&5) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }
10775 # If we don't use `.F' as extension, the preprocessor is not run on the
10776 # input file. (Note that this only needs to work for GNU compilers.)
10777 ac_save_ext=$ac_ext
10779 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10780 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10781 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794 (eval $ac_compile) 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_f77_werror_flag"
10802 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_compiler_gnu=yes
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10825 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10826 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10827 ac_ext=$ac_save_ext
10828 ac_test_FFLAGS=${FFLAGS+set}
10829 ac_save_FFLAGS=$FFLAGS
10831 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10832 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10833 if test "${ac_cv_prog_f77_g+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10842 rm -f conftest.$ac_objext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844 (eval $ac_compile) 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_f77_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest.$ac_objext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_prog_f77_g=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_prog_f77_g=no
10871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10874 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10875 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10876 if test "$ac_test_FFLAGS" = set; then
10877 FFLAGS=$ac_save_FFLAGS
10878 elif test $ac_cv_prog_f77_g = yes; then
10879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10892 G77=`test $ac_compiler_gnu = yes && echo yes`
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10901 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10903 # find the maximum length of command line arguments
10904 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10905 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10906 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 # On DJGPP, this test can blow up pretty badly due to problems in libc
10915 # (any single argument exceeding 2000 bytes causes a buffer overrun
10916 # during glob expansion). Even if it were fixed, the result of this
10917 # check would be larger than it should be.
10918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10922 # Under GNU Hurd, this test is not required because there is
10923 # no limit to the length of command line arguments.
10924 # Libtool will interpret -1 as no limit whatsoever
10925 lt_cv_sys_max_cmd_len=-1;
10929 # On Win9x/ME, this test blows up -- it succeeds, but takes
10930 # about 5 minutes as the teststring grows exponentially.
10931 # Worse, since 9x/ME are not pre-emptively multitasking,
10932 # you end up with a "frozen" computer, even though with patience
10933 # the test eventually succeeds (with a max line length of 256k).
10934 # Instead, let's just punt: use the minimum linelength reported by
10935 # all of the supported platforms: 8192 (on NT/2K/XP).
10936 lt_cv_sys_max_cmd_len=8192;
10940 # On AmigaOS with pdksh, this test takes hours, literally.
10941 # So we just punt and use a minimum line length of 8192.
10942 lt_cv_sys_max_cmd_len=8192;
10945 netbsd* | freebsd* | openbsd* | darwin* )
10946 # This has been around since 386BSD, at least. Likely further.
10947 if test -x /sbin/sysctl; then
10948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10949 elif test -x /usr/sbin/sysctl; then
10950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10952 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10954 # And add a safety zone
10955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10959 # If test is not a shell built-in, we'll probably end up computing a
10960 # maximum length that is only half of the actual maximum length, but
10962 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10963 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10964 = "XX$teststring") >/dev/null 2>&1 &&
10965 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10966 lt_cv_sys_max_cmd_len=$new_result &&
10967 test $i != 17 # 1/2 MB should be enough
10970 teststring=$teststring$teststring
10973 # Add a significant safety factor because C++ compilers can tack on massive
10974 # amounts of additional arguments before passing them to the linker.
10975 # It appears as though 1/2 is a usable value.
10976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10982 if test -n $lt_cv_sys_max_cmd_len ; then
10983 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10984 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10986 echo "$as_me:$LINENO: result: none" >&5
10987 echo "${ECHO_T}none" >&6
10993 # Check for command to grab the raw symbol name followed by C symbol from nm.
10994 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10995 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10996 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 # These are sane defaults that work on at least a few old systems.
11001 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11003 # Character class describing NM global symbol codes.
11004 symcode='[BCDEGRST]'
11006 # Regexp to match symbols that can be accessed directly from C.
11007 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11009 # Transform the above into a raw symbol and a C symbol.
11010 symxfrm='\1 \2\3 \3'
11012 # Transform an extracted symbol line into a proper C declaration
11013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11015 # Transform an extracted symbol line into symbol name and symbol address
11016 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'"
11018 # Define system-specific variables.
11023 cygwin* | mingw* | pw32*)
11024 symcode='[ABCDGISTW]'
11026 hpux*) # Its linker distinguishes data from code symbols
11027 if test "$host_cpu" = ia64; then
11028 symcode='[ABCDEGRST]'
11030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11031 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'"
11034 if test "$host_cpu" = ia64; then
11035 symcode='[ABCDGIRSTW]'
11036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11037 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'"
11040 irix* | nonstopux*)
11041 symcode='[BCDEGRST]'
11044 symcode='[BCDEGQRST]'
11054 # Handle CRLF in mingw tool chain
11058 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11062 # If we're using GNU nm, then use its standard symbol codes.
11063 case `$NM -V 2>&1` in
11064 *GNU* | *'with BFD'*)
11065 symcode='[ABCDGIRSTW]' ;;
11068 # Try without a prefix undercore, then with it.
11069 for ac_symprfx in "" "_"; do
11071 # Write the raw and C identifiers.
11072 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11074 # Check to see that the pipe works correctly.
11078 cat > conftest.$ac_ext <<EOF
11083 void nm_test_func(){}
11087 int main(){nm_test_var='a';nm_test_func();return(0);}
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; then
11095 # Now try to grab the symbols.
11097 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11098 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && test -s "$nlist"; then
11102 # Try sorting and uniquifying the output.
11103 if sort "$nlist" | uniq > "$nlist"T; then
11104 mv -f "$nlist"T "$nlist"
11109 # Make sure that we snagged all the symbols we need.
11110 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11111 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11112 cat <<EOF > conftest.$ac_ext
11118 # Now generate the symbol file.
11119 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11121 cat <<EOF >> conftest.$ac_ext
11122 #if defined (__STDC__) && __STDC__
11123 # define lt_ptr_t void *
11125 # define lt_ptr_t char *
11129 /* The mapping between symbol names and symbols. */
11134 lt_preloaded_symbols[] =
11137 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11138 cat <<\EOF >> conftest.$ac_ext
11146 # Now try linking the two files.
11147 mv conftest.$ac_objext conftstm.$ac_objext
11148 lt_save_LIBS="$LIBS"
11149 lt_save_CFLAGS="$CFLAGS"
11150 LIBS="conftstm.$ac_objext"
11151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11159 LIBS="$lt_save_LIBS"
11160 CFLAGS="$lt_save_CFLAGS"
11162 echo "cannot find nm_test_func in $nlist" >&5
11165 echo "cannot find nm_test_var in $nlist" >&5
11168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11171 echo "$progname: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 rm -f conftest* conftst*
11176 # Do not use the global_symbol_pipe unless it works.
11177 if test "$pipe_works" = yes; then
11180 lt_cv_sys_global_symbol_pipe=
11186 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11187 lt_cv_sys_global_symbol_to_cdecl=
11189 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11190 echo "$as_me:$LINENO: result: failed" >&5
11191 echo "${ECHO_T}failed" >&6
11193 echo "$as_me:$LINENO: result: ok" >&5
11194 echo "${ECHO_T}ok" >&6
11197 echo "$as_me:$LINENO: checking for objdir" >&5
11198 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11199 if test "${lt_cv_objdir+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 rm -f .libs 2>/dev/null
11203 mkdir .libs 2>/dev/null
11204 if test -d .libs; then
11207 # MS-DOS does not allow filenames that begin with a dot.
11210 rmdir .libs 2>/dev/null
11212 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11213 echo "${ECHO_T}$lt_cv_objdir" >&6
11214 objdir=$lt_cv_objdir
11222 # AIX sometimes has problems with the GCC collect2 program. For some
11223 # reason, if we set the COLLECT_NAMES environment variable, the problems
11224 # vanish in a puff of smoke.
11225 if test "X${COLLECT_NAMES+set}" != Xset; then
11227 export COLLECT_NAMES
11232 # Sed substitution that helps us do robust quoting. It backslashifies
11233 # metacharacters that are still active within double-quoted strings.
11234 Xsed='sed -e s/^X//'
11235 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11237 # Same as above, but do not quote variable references.
11238 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11240 # Sed substitution to delay expansion of an escaped shell variable in a
11241 # double_quote_subst'ed string.
11242 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11244 # Sed substitution to avoid accidental globbing in evaled expressions
11245 no_glob_subst='s/\*/\\\*/g'
11250 # Global variables:
11251 default_ofile=mklib
11252 can_build_shared=yes
11254 # All known linkers require a `.a' archive for static linking (except M$VC,
11255 # which needs '.lib').
11257 ltmain="$ac_aux_dir/ltmain.sh"
11258 ofile="$default_ofile"
11259 with_gnu_ld="$lt_cv_prog_gnu_ld"
11261 if test -n "$ac_tool_prefix"; then
11262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11263 set dummy ${ac_tool_prefix}ar; ac_word=$2
11264 echo "$as_me:$LINENO: checking for $ac_word" >&5
11265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11266 if test "${ac_cv_prog_AR+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 if test -n "$AR"; then
11270 ac_cv_prog_AR="$AR" # Let the user override the test.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_AR="${ac_tool_prefix}ar"
11280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11289 if test -n "$AR"; then
11290 echo "$as_me:$LINENO: result: $AR" >&5
11291 echo "${ECHO_T}$AR" >&6
11293 echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6
11298 if test -z "$ac_cv_prog_AR"; then
11300 # Extract the first word of "ar", so it can be a program name with args.
11301 set dummy ar; ac_word=$2
11302 echo "$as_me:$LINENO: checking for $ac_word" >&5
11303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11304 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 if test -n "$ac_ct_AR"; then
11308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_ac_ct_AR="ar"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11328 if test -n "$ac_ct_AR"; then
11329 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11330 echo "${ECHO_T}$ac_ct_AR" >&6
11332 echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6
11338 AR="$ac_cv_prog_AR"
11341 if test -n "$ac_tool_prefix"; then
11342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11344 echo "$as_me:$LINENO: checking for $ac_word" >&5
11345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346 if test "${ac_cv_prog_RANLIB+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 if test -n "$RANLIB"; then
11350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 RANLIB=$ac_cv_prog_RANLIB
11369 if test -n "$RANLIB"; then
11370 echo "$as_me:$LINENO: result: $RANLIB" >&5
11371 echo "${ECHO_T}$RANLIB" >&6
11373 echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11378 if test -z "$ac_cv_prog_RANLIB"; then
11379 ac_ct_RANLIB=$RANLIB
11380 # Extract the first word of "ranlib", so it can be a program name with args.
11381 set dummy ranlib; ac_word=$2
11382 echo "$as_me:$LINENO: checking for $ac_word" >&5
11383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 if test -n "$ac_ct_RANLIB"; then
11388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397 ac_cv_prog_ac_ct_RANLIB="ranlib"
11398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11408 if test -n "$ac_ct_RANLIB"; then
11409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11410 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11412 echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11416 RANLIB=$ac_ct_RANLIB
11418 RANLIB="$ac_cv_prog_RANLIB"
11421 if test -n "$ac_tool_prefix"; then
11422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11423 set dummy ${ac_tool_prefix}strip; ac_word=$2
11424 echo "$as_me:$LINENO: checking for $ac_word" >&5
11425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11426 if test "${ac_cv_prog_STRIP+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 if test -n "$STRIP"; then
11430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 STRIP=$ac_cv_prog_STRIP
11449 if test -n "$STRIP"; then
11450 echo "$as_me:$LINENO: result: $STRIP" >&5
11451 echo "${ECHO_T}$STRIP" >&6
11453 echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6
11458 if test -z "$ac_cv_prog_STRIP"; then
11460 # Extract the first word of "strip", so it can be a program name with args.
11461 set dummy strip; ac_word=$2
11462 echo "$as_me:$LINENO: checking for $ac_word" >&5
11463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 if test -n "$ac_ct_STRIP"; then
11468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477 ac_cv_prog_ac_ct_STRIP="strip"
11478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11488 if test -n "$ac_ct_STRIP"; then
11489 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11490 echo "${ECHO_T}$ac_ct_STRIP" >&6
11492 echo "$as_me:$LINENO: result: no" >&5
11493 echo "${ECHO_T}no" >&6
11498 STRIP="$ac_cv_prog_STRIP"
11503 old_CFLAGS="$CFLAGS"
11505 # Set sane defaults for various variables
11506 test -z "$AR" && AR=ar
11507 test -z "$AR_FLAGS" && AR_FLAGS=cru
11508 test -z "$AS" && AS=as
11509 test -z "$CC" && CC=cc
11510 test -z "$LTCC" && LTCC=$CC
11511 test -z "$DLLTOOL" && DLLTOOL=dlltool
11512 test -z "$LD" && LD=ld
11513 test -z "$LN_S" && LN_S="ln -s"
11514 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11515 test -z "$NM" && NM=nm
11516 test -z "$SED" && SED=sed
11517 test -z "$OBJDUMP" && OBJDUMP=objdump
11518 test -z "$RANLIB" && RANLIB=:
11519 test -z "$STRIP" && STRIP=:
11520 test -z "$ac_objext" && ac_objext=o
11522 # Determine commands to create old-style static archives.
11523 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11524 old_postinstall_cmds='chmod 644 $oldlib'
11525 old_postuninstall_cmds=
11527 if test -n "$RANLIB"; then
11530 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11533 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11539 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11541 # Only perform the check for file, if the check method requires it
11542 case $deplibs_check_method in
11544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11545 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11546 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11555 lt_save_MAGIC_CMD="$MAGIC_CMD"
11556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11558 for ac_dir in $ac_dummy; do
11560 test -z "$ac_dir" && ac_dir=.
11561 if test -f $ac_dir/${ac_tool_prefix}file; then
11562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11563 if test -n "$file_magic_test_file"; then
11564 case $deplibs_check_method in
11566 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11569 $EGREP "$file_magic_regex" > /dev/null; then
11574 *** Warning: the command libtool uses to detect shared libraries,
11575 *** $file_magic_cmd, produces output that libtool cannot recognize.
11576 *** The result is that libtool may fail to recognize shared libraries
11577 *** as such. This will affect the creation of libtool libraries that
11578 *** depend on shared libraries, but programs linked with such libtool
11579 *** libraries will work regardless of this problem. Nevertheless, you
11580 *** may want to report the problem to your system manager and/or to
11581 *** bug-libtool@gnu.org
11591 MAGIC_CMD="$lt_save_MAGIC_CMD"
11596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11597 if test -n "$MAGIC_CMD"; then
11598 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11599 echo "${ECHO_T}$MAGIC_CMD" >&6
11601 echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11605 if test -z "$lt_cv_path_MAGIC_CMD"; then
11606 if test -n "$ac_tool_prefix"; then
11607 echo "$as_me:$LINENO: checking for file" >&5
11608 echo $ECHO_N "checking for file... $ECHO_C" >&6
11609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11617 lt_save_MAGIC_CMD="$MAGIC_CMD"
11618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11620 for ac_dir in $ac_dummy; do
11622 test -z "$ac_dir" && ac_dir=.
11623 if test -f $ac_dir/file; then
11624 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11625 if test -n "$file_magic_test_file"; then
11626 case $deplibs_check_method in
11628 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11631 $EGREP "$file_magic_regex" > /dev/null; then
11636 *** Warning: the command libtool uses to detect shared libraries,
11637 *** $file_magic_cmd, produces output that libtool cannot recognize.
11638 *** The result is that libtool may fail to recognize shared libraries
11639 *** as such. This will affect the creation of libtool libraries that
11640 *** depend on shared libraries, but programs linked with such libtool
11641 *** libraries will work regardless of this problem. Nevertheless, you
11642 *** may want to report the problem to your system manager and/or to
11643 *** bug-libtool@gnu.org
11653 MAGIC_CMD="$lt_save_MAGIC_CMD"
11658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11659 if test -n "$MAGIC_CMD"; then
11660 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11661 echo "${ECHO_T}$MAGIC_CMD" >&6
11663 echo "$as_me:$LINENO: result: no" >&5
11664 echo "${ECHO_T}no" >&6
11677 enable_win32_dll=no
11679 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11680 if test "${enable_libtool_lock+set}" = set; then
11681 enableval="$enable_libtool_lock"
11684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11687 # Check whether --with-pic or --without-pic was given.
11688 if test "${with_pic+set}" = set; then
11689 withval="$with_pic"
11690 pic_mode="$withval"
11694 test -z "$pic_mode" && pic_mode=default
11696 # Use C for the default configuration in the libtool script
11700 ac_cpp='$CPP $CPPFLAGS'
11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11706 # Source file extension for C test sources.
11709 # Object file extension for compiled C test sources.
11713 # Code to be used in simple compile tests
11714 lt_simple_compile_test_code="int some_variable = 0;\n"
11716 # Code to be used in simple link tests
11717 lt_simple_link_test_code='int main(){return(0);}\n'
11720 # If no C compiler was specified, use CC.
11723 # Allow CC to be a program name with arguments.
11728 # Check for any special shared library compilation flags.
11731 if test "$GCC" = no; then
11734 lt_prog_cc_shlib='-belf'
11738 if test -n "$lt_prog_cc_shlib"; then
11739 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11740 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11741 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11743 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11744 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11745 lt_cv_prog_cc_can_build_shared=no
11751 # Check to make sure the static flag actually works.
11753 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11754 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11755 if test "${lt_prog_compiler_static_works+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 lt_prog_compiler_static_works=no
11759 save_LDFLAGS="$LDFLAGS"
11760 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11761 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11763 # The compiler can only warn and ignore the option if not recognized
11764 # So say no if there are warnings
11765 if test -s conftest.err; then
11766 # Append any errors to the config.log.
11767 cat conftest.err 1>&5
11769 lt_prog_compiler_static_works=yes
11773 LDFLAGS="$save_LDFLAGS"
11776 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11777 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11779 if test x"$lt_prog_compiler_static_works" = xyes; then
11782 lt_prog_compiler_static=
11788 lt_prog_compiler_no_builtin_flag=
11790 if test "$GCC" = yes; then
11791 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11794 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11795 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11796 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 lt_cv_prog_compiler_rtti_exceptions=no
11800 ac_outfile=conftest.$ac_objext
11801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11802 lt_compiler_flag="-fno-rtti -fno-exceptions"
11803 # Insert the option either (1) after the last *FLAGS variable, or
11804 # (2) before a word containing "conftest.", or (3) at the end.
11805 # Note that $ac_compile itself does not contain backslashes and begins
11806 # with a dollar sign (not a hyphen), so the echo should work correctly.
11807 # The option is referenced via a variable to avoid confusing sed.
11808 lt_compile=`echo "$ac_compile" | $SED \
11809 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11811 -e 's:$: $lt_compiler_flag:'`
11812 (eval echo "\"\$as_me:11812: $lt_compile\"" >&5)
11813 (eval "$lt_compile" 2>conftest.err)
11815 cat conftest.err >&5
11816 echo "$as_me:11816: \$? = $ac_status" >&5
11817 if (exit $ac_status) && test -s "$ac_outfile"; then
11818 # The compiler can only warn and ignore the option if not recognized
11819 # So say no if there are warnings
11820 if test ! -s conftest.err; then
11821 lt_cv_prog_compiler_rtti_exceptions=yes
11827 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11828 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11830 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11831 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11838 lt_prog_compiler_wl=
11839 lt_prog_compiler_pic=
11840 lt_prog_compiler_static=
11842 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11843 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11845 if test "$GCC" = yes; then
11846 lt_prog_compiler_wl='-Wl,'
11847 lt_prog_compiler_static='-static'
11851 # All AIX code is PIC.
11852 if test "$host_cpu" = ia64; then
11853 # AIX 5 now supports IA64 processor
11854 lt_prog_compiler_static='-Bstatic'
11859 # FIXME: we need at least 68020 code to build shared libraries, but
11860 # adding the `-m68020' flag to GCC prevents building anything better,
11862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11865 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11866 # PIC is the default for these OSes.
11869 mingw* | pw32* | os2*)
11870 # This hack is so that the source file can tell whether it is being
11871 # built for inclusion in a dll (and should export symbols for example).
11872 lt_prog_compiler_pic='-DDLL_EXPORT'
11875 darwin* | rhapsody*)
11876 # PIC is the default on this platform
11877 # Common symbols not allowed in MH_DYLIB files
11878 lt_prog_compiler_pic='-fno-common'
11882 # Just because we use GCC doesn't mean we suddenly get shared libraries
11883 # on systems that don't support them.
11884 lt_prog_compiler_can_build_shared=no
11889 if test -d /usr/nec; then
11890 lt_prog_compiler_pic=-Kconform_pic
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='-fPIC'
11908 lt_prog_compiler_pic='-fPIC'
11912 # PORTME Check for flag to pass linker flags through the system compiler.
11915 lt_prog_compiler_wl='-Wl,'
11916 if test "$host_cpu" = ia64; then
11917 # AIX 5 now supports IA64 processor
11918 lt_prog_compiler_static='-Bstatic'
11920 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11924 # PIC is the default on this platform
11925 # Common symbols not allowed in MH_DYLIB files
11926 case "$cc_basename" in
11928 lt_prog_compiler_pic='-qnocommon'
11929 lt_prog_compiler_wl='-Wl,'
11934 mingw* | pw32* | os2*)
11935 # This hack is so that the source file can tell whether it is being
11936 # built for inclusion in a dll (and should export symbols for example).
11937 lt_prog_compiler_pic='-DDLL_EXPORT'
11940 hpux9* | hpux10* | hpux11*)
11941 lt_prog_compiler_wl='-Wl,'
11942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11943 # not for PA HP-UX.
11944 case "$host_cpu" in
11949 lt_prog_compiler_pic='+Z'
11952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11953 lt_prog_compiler_static='${wl}-a ${wl}archive'
11956 irix5* | irix6* | nonstopux*)
11957 lt_prog_compiler_wl='-Wl,'
11958 # PIC (with -KPIC) is the default.
11959 lt_prog_compiler_static='-non_shared'
11963 lt_prog_compiler_pic='-KPIC'
11964 lt_prog_compiler_static='-Bstatic'
11970 lt_prog_compiler_wl='-Wl,'
11971 lt_prog_compiler_pic='-KPIC'
11972 lt_prog_compiler_static='-static'
11975 lt_prog_compiler_wl='-Wl,'
11976 # All Alpha code is PIC.
11977 lt_prog_compiler_static='-non_shared'
11982 osf3* | osf4* | osf5*)
11983 lt_prog_compiler_wl='-Wl,'
11984 # All OSF/1 code is PIC.
11985 lt_prog_compiler_static='-non_shared'
11989 lt_prog_compiler_pic='-Kpic'
11990 lt_prog_compiler_static='-dn'
11994 lt_prog_compiler_wl='-Wl,'
11995 lt_prog_compiler_pic='-KPIC'
11996 lt_prog_compiler_static='-Bstatic'
12000 lt_prog_compiler_wl='-Qoption ld '
12001 lt_prog_compiler_pic='-PIC'
12002 lt_prog_compiler_static='-Bstatic'
12005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12006 lt_prog_compiler_wl='-Wl,'
12007 lt_prog_compiler_pic='-KPIC'
12008 lt_prog_compiler_static='-Bstatic'
12012 if test -d /usr/nec ;then
12013 lt_prog_compiler_pic='-Kconform_pic'
12014 lt_prog_compiler_static='-Bstatic'
12019 lt_prog_compiler_pic='-pic'
12020 lt_prog_compiler_static='-Bstatic'
12024 lt_prog_compiler_can_build_shared=no
12029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12030 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12033 # Check to make sure the PIC flag actually works.
12035 if test -n "$lt_prog_compiler_pic"; then
12037 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12039 if test "${lt_prog_compiler_pic_works+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 lt_prog_compiler_pic_works=no
12043 ac_outfile=conftest.$ac_objext
12044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12046 # Insert the option either (1) after the last *FLAGS variable, or
12047 # (2) before a word containing "conftest.", or (3) at the end.
12048 # Note that $ac_compile itself does not contain backslashes and begins
12049 # with a dollar sign (not a hyphen), so the echo should work correctly.
12050 # The option is referenced via a variable to avoid confusing sed.
12051 lt_compile=`echo "$ac_compile" | $SED \
12052 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12054 -e 's:$: $lt_compiler_flag:'`
12055 (eval echo "\"\$as_me:12055: $lt_compile\"" >&5)
12056 (eval "$lt_compile" 2>conftest.err)
12058 cat conftest.err >&5
12059 echo "$as_me:12059: \$? = $ac_status" >&5
12060 if (exit $ac_status) && test -s "$ac_outfile"; then
12061 # The compiler can only warn and ignore the option if not recognized
12062 # So say no if there are warnings
12063 if test ! -s conftest.err; then
12064 lt_prog_compiler_pic_works=yes
12070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12071 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12073 if test x"$lt_prog_compiler_pic_works" = xyes; then
12074 case $lt_prog_compiler_pic in
12076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12079 lt_prog_compiler_pic=
12080 lt_prog_compiler_can_build_shared=no
12085 # For platforms which do not support PIC, -DPIC is meaningless:
12087 lt_prog_compiler_pic=
12090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12094 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12096 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 lt_cv_prog_compiler_c_o=no
12100 $rm -r conftest 2>/dev/null
12104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12106 lt_compiler_flag="-o out/conftest2.$ac_objext"
12107 # Insert the option either (1) after the last *FLAGS variable, or
12108 # (2) before a word containing "conftest.", or (3) at the end.
12109 # Note that $ac_compile itself does not contain backslashes and begins
12110 # with a dollar sign (not a hyphen), so the echo should work correctly.
12111 lt_compile=`echo "$ac_compile" | $SED \
12112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12114 -e 's:$: $lt_compiler_flag:'`
12115 (eval echo "\"\$as_me:12115: $lt_compile\"" >&5)
12116 (eval "$lt_compile" 2>out/conftest.err)
12118 cat out/conftest.err >&5
12119 echo "$as_me:12119: \$? = $ac_status" >&5
12120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12122 # The compiler can only warn and ignore the option if not recognized
12123 # So say no if there are warnings
12124 if test ! -s out/conftest.err; then
12125 lt_cv_prog_compiler_c_o=yes
12130 # SGI C++ compiler will create directory out/ii_files/ for
12131 # template instantiation
12132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12133 $rm out/* && rmdir out
12139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12143 hard_links="nottested"
12144 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12145 # do not overwrite the value of need_locks provided by the user
12146 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12152 ln conftest.a conftest.b 2>&5 || hard_links=no
12153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12154 echo "$as_me:$LINENO: result: $hard_links" >&5
12155 echo "${ECHO_T}$hard_links" >&6
12156 if test "$hard_links" = no; then
12157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12169 allow_undefined_flag=
12170 enable_shared_with_static_runtimes=no
12172 archive_expsym_cmds=
12173 old_archive_From_new_cmds=
12174 old_archive_from_expsyms_cmds=
12175 export_dynamic_flag_spec=
12176 whole_archive_flag_spec=
12177 thread_safe_flag_spec=
12178 hardcode_libdir_flag_spec=
12179 hardcode_libdir_flag_spec_ld=
12180 hardcode_libdir_separator=
12182 hardcode_minus_L=no
12183 hardcode_shlibpath_var=unsupported
12184 link_all_deplibs=unknown
12185 hardcode_automatic=no
12187 module_expsym_cmds=
12188 always_export_symbols=no
12189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12190 # include_expsyms should be a list of space-separated symbols to be *always*
12191 # included in the symbol list
12193 # exclude_expsyms can be an extended regexp of symbols to exclude
12194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12196 # as well as any symbol that contains `d'.
12197 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12199 # platforms (ab)use it in PIC code, but their linkers get confused if
12200 # the symbol is explicitly referenced. Since portable code cannot
12201 # rely on this symbol name, it's probably fine to never include it in
12202 # preloaded symbol tables.
12203 extract_expsyms_cmds=
12206 cygwin* | mingw* | pw32*)
12207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12208 # When not using gcc, we currently assume that we are using
12209 # Microsoft Visual C++.
12210 if test "$GCC" != yes; then
12220 if test "$with_gnu_ld" = yes; then
12221 # If archive_cmds runs LD, not CC, wlarc should be empty
12224 # See if GNU ld supports shared libraries.
12226 aix3* | aix4* | aix5*)
12227 # On AIX/PPC, the GNU linker is very broken
12228 if test "$host_cpu" != ia64; then
12232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12233 *** to be unable to reliably create shared libraries on AIX.
12234 *** Therefore, libtool is disabling shared libraries support. If you
12235 *** really care for shared libraries, you may want to modify your PATH
12236 *** so that a non-GNU linker is found, and then restart.
12243 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)'
12244 hardcode_libdir_flag_spec='-L$libdir'
12245 hardcode_minus_L=yes
12247 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12248 # that the semantics of dynamic libraries on AmigaOS, at least up
12249 # to version 4, is to share data among multiple programs linked
12250 # with the same dynamic library. Since this doesn't match the
12251 # behavior of shared libraries on other platforms, we can't use
12257 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12258 allow_undefined_flag=unsupported
12259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12260 # support --undefined. This deserves some investigation. FIXME
12261 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267 cygwin* | mingw* | pw32*)
12268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12269 # as there is no search path for DLLs.
12270 hardcode_libdir_flag_spec='-L$libdir'
12271 allow_undefined_flag=unsupported
12272 always_export_symbols=no
12273 enable_shared_with_static_runtimes=yes
12274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12276 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12278 # If the export-symbols file already is a .def file (1st line
12279 # is EXPORTS), use it as is; otherwise, prepend...
12280 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12281 cp $export_symbols $output_objdir/$soname.def;
12283 echo EXPORTS > $output_objdir/$soname.def;
12284 cat $export_symbols >> $output_objdir/$soname.def;
12286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12303 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12308 *** create shared libraries on Solaris systems. Therefore, libtool
12309 *** is disabling shared libraries support. We urge you to upgrade GNU
12310 *** binutils to release 2.9.1 or newer. Another option is to modify
12311 *** your PATH or compiler configuration so that the native linker is
12312 *** used, and then restart.
12315 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12326 hardcode_direct=yes
12327 hardcode_shlibpath_var=no
12331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12332 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12333 archive_cmds="$tmp_archive_cmds"
12334 supports_anon_versioning=no
12335 case `$LD -v 2>/dev/null` in
12336 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12339 *\ 2.11.*) ;; # other 2.11 versions
12340 *) supports_anon_versioning=yes ;;
12342 if test $supports_anon_versioning = yes; then
12343 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12345 $echo "local: *; };" >> $output_objdir/$libname.ver~
12346 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12348 archive_expsym_cmds="$tmp_archive_cmds"
12356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12365 if test "$ld_shlibs" = yes; then
12366 runpath_var=LD_RUN_PATH
12367 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12368 export_dynamic_flag_spec='${wl}--export-dynamic'
12369 # ancient GNU ld didn't support --whole-archive et. al.
12370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12371 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12373 whole_archive_flag_spec=
12377 # PORTME fill in a description of your system's linker (not GNU ld)
12380 allow_undefined_flag=unsupported
12381 always_export_symbols=yes
12382 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'
12383 # Note: this linker hardcodes the directories in LIBPATH if there
12384 # are no directories specified by -L.
12385 hardcode_minus_L=yes
12386 if test "$GCC" = yes && test -z "$link_static_flag"; then
12387 # Neither direct hardcoding nor static linking is supported with a
12389 hardcode_direct=unsupported
12394 if test "$host_cpu" = ia64; then
12395 # On IA64, the linker does run time linking by default, so we don't
12396 # have to do anything special.
12397 aix_use_runtimelinking=no
12398 exp_sym_flag='-Bexport'
12401 # If we're using GNU nm, then we don't want the "-C" option.
12402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12403 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12404 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'
12406 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'
12408 aix_use_runtimelinking=no
12410 # Test if we are trying to use run time linking or normal
12411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12412 # need to do runtime linking.
12413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12414 for ld_flag in $LDFLAGS; do
12415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12416 aix_use_runtimelinking=yes
12422 exp_sym_flag='-bexport'
12423 no_entry_flag='-bnoentry'
12426 # When large executables or shared objects are built, AIX ld can
12427 # have problems creating the table of contents. If linking a library
12428 # or program results in "error TOC overflow" add -mminimal-toc to
12429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12433 hardcode_direct=yes
12434 hardcode_libdir_separator=':'
12435 link_all_deplibs=yes
12437 if test "$GCC" = yes; then
12438 case $host_os in aix4.012|aix4.012.*)
12439 # We only want to do this on AIX 4.2 and lower, the check
12440 # below for broken collect2 doesn't work under 4.3+
12441 collect2name=`${CC} -print-prog-name=collect2`
12442 if test -f "$collect2name" && \
12443 strings "$collect2name" | grep resolve_lib_name >/dev/null
12445 # We have reworked collect2
12446 hardcode_direct=yes
12448 # We have old collect2
12449 hardcode_direct=unsupported
12450 # It fails to find uninstalled libraries when the uninstalled
12451 # path is not listed in the libpath. Setting hardcode_minus_L
12452 # to unsupported forces relinking
12453 hardcode_minus_L=yes
12454 hardcode_libdir_flag_spec='-L$libdir'
12455 hardcode_libdir_separator=
12458 shared_flag='-shared'
12461 if test "$host_cpu" = ia64; then
12462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12463 # chokes on -Wl,-G. The following line is correct:
12466 if test "$aix_use_runtimelinking" = yes; then
12467 shared_flag='${wl}-G'
12469 shared_flag='${wl}-bM:SRE'
12474 # It seems that -bexpall does not export symbols beginning with
12475 # underscore (_), so it is better to generate a list of symbols to export.
12476 always_export_symbols=yes
12477 if test "$aix_use_runtimelinking" = yes; then
12478 # Warning - without using the other runtime loading flags (-brtl),
12479 # -berok will link without error, but may produce a broken library.
12480 allow_undefined_flag='-berok'
12481 # Determine the default libpath from the value encoded in an empty executable.
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499 (eval $ac_link) 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag"
12507 || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12522 # Check for a 64-bit object if we didn't find anything.
12523 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; }
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12530 rm -f conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12534 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12535 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"
12537 if test "$host_cpu" = ia64; then
12538 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12539 allow_undefined_flag="-z nodefs"
12540 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"
12542 # Determine the default libpath from the value encoded in an empty executable.
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12583 # Check for a 64-bit object if we didn't find anything.
12584 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; }
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12591 rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12596 # Warning - without using the other run time loading flags,
12597 # -berok will link without error, but may produce a broken library.
12598 no_undefined_flag=' ${wl}-bernotok'
12599 allow_undefined_flag=' ${wl}-berok'
12600 # -bexpall does not export symbols beginning with underscore (_)
12601 always_export_symbols=yes
12602 # Exported symbols can be pulled into shared objects from archives
12603 whole_archive_flag_spec=' '
12604 archive_cmds_need_lc=yes
12605 # This is similar to how AIX traditionally builds it's shared libraries.
12606 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'
12612 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)'
12613 hardcode_libdir_flag_spec='-L$libdir'
12614 hardcode_minus_L=yes
12615 # see comment about different semantics on the GNU ld section
12620 export_dynamic_flag_spec=-rdynamic
12623 cygwin* | mingw* | pw32*)
12624 # When not using gcc, we currently assume that we are using
12625 # Microsoft Visual C++.
12626 # hardcode_libdir_flag_spec is actually meaningless, as there is
12627 # no search path for DLLs.
12628 hardcode_libdir_flag_spec=' '
12629 allow_undefined_flag=unsupported
12630 # Tell ltmain to make .lib files, not .a files.
12632 # Tell ltmain to make .dll files, not .so files.
12634 # FIXME: Setting linknames here is a bad hack.
12635 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12636 # The linker will automatically build a .lib file if we build a DLL.
12637 old_archive_From_new_cmds='true'
12638 # FIXME: Should let the user specify the lib program.
12639 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12640 fix_srcfile_path='`cygpath -w "$srcfile"`'
12641 enable_shared_with_static_runtimes=yes
12644 darwin* | rhapsody*)
12646 rhapsody* | darwin1.[012])
12647 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12650 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12651 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12653 case ${MACOSX_DEPLOYMENT_TARGET} in
12655 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12658 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12664 archive_cmds_need_lc=no
12666 hardcode_automatic=yes
12667 hardcode_shlibpath_var=unsupported
12668 whole_archive_flag_spec=''
12669 link_all_deplibs=yes
12670 if test "$GCC" = yes ; then
12671 output_verbose_link_cmd='echo'
12672 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12673 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12674 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12675 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}'
12676 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}'
12678 case "$cc_basename" in
12680 output_verbose_link_cmd='echo'
12681 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12682 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12684 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}'
12685 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}'
12695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696 hardcode_libdir_flag_spec='-L$libdir'
12697 hardcode_shlibpath_var=no
12704 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12705 # support. Future versions do this automatically, but an explicit c++rt0.o
12706 # does not break anything, and helps significantly (at the cost of a little
12709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12710 hardcode_libdir_flag_spec='-R$libdir'
12711 hardcode_direct=yes
12712 hardcode_shlibpath_var=no
12715 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12718 hardcode_direct=yes
12719 hardcode_minus_L=yes
12720 hardcode_shlibpath_var=no
12723 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12724 freebsd* | kfreebsd*-gnu)
12725 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12726 hardcode_libdir_flag_spec='-R$libdir'
12727 hardcode_direct=yes
12728 hardcode_shlibpath_var=no
12732 if test "$GCC" = yes; then
12733 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'
12735 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'
12737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12738 hardcode_libdir_separator=:
12739 hardcode_direct=yes
12741 # hardcode_minus_L: Not really in the search PATH,
12742 # but as the default location of the library.
12743 hardcode_minus_L=yes
12744 export_dynamic_flag_spec='${wl}-E'
12748 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12749 case "$host_cpu" in
12751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12758 case "$host_cpu" in
12760 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12763 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12767 if test "$with_gnu_ld" = no; then
12768 case "$host_cpu" in
12770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12771 hardcode_libdir_flag_spec_ld='+b $libdir'
12772 hardcode_libdir_separator=:
12774 hardcode_shlibpath_var=no
12777 hardcode_libdir_flag_spec='-L$libdir'
12779 hardcode_shlibpath_var=no
12781 # hardcode_minus_L: Not really in the search PATH,
12782 # but as the default location of the library.
12783 hardcode_minus_L=yes
12786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12787 hardcode_libdir_separator=:
12788 hardcode_direct=yes
12789 export_dynamic_flag_spec='${wl}-E'
12791 # hardcode_minus_L: Not really in the search PATH,
12792 # but as the default location of the library.
12793 hardcode_minus_L=yes
12799 irix5* | irix6* | nonstopux*)
12800 if test "$GCC" = yes; then
12801 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'
12803 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'
12804 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12807 hardcode_libdir_separator=:
12808 link_all_deplibs=yes
12812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12817 hardcode_libdir_flag_spec='-R$libdir'
12818 hardcode_direct=yes
12819 hardcode_shlibpath_var=no
12823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12824 hardcode_direct=yes
12825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12826 hardcode_libdir_separator=:
12827 hardcode_shlibpath_var=no
12831 hardcode_direct=yes
12832 hardcode_shlibpath_var=no
12833 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12835 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12837 export_dynamic_flag_spec='${wl}-E'
12840 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12842 hardcode_libdir_flag_spec='-R$libdir'
12845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12853 hardcode_libdir_flag_spec='-L$libdir'
12854 hardcode_minus_L=yes
12855 allow_undefined_flag=unsupported
12856 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'
12857 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12861 if test "$GCC" = yes; then
12862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12863 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'
12865 allow_undefined_flag=' -expect_unresolved \*'
12866 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'
12868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12869 hardcode_libdir_separator=:
12872 osf4* | osf5*) # as osf3* with the addition of -msym flag
12873 if test "$GCC" = yes; then
12874 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12875 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'
12876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12878 allow_undefined_flag=' -expect_unresolved \*'
12879 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'
12880 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12881 $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'
12883 # Both c and cxx compiler support -rpath directly
12884 hardcode_libdir_flag_spec='-rpath $libdir'
12886 hardcode_libdir_separator=:
12890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891 hardcode_shlibpath_var=no
12892 export_dynamic_flag_spec='${wl}-Bexport'
12893 runpath_var=LD_RUN_PATH
12894 hardcode_runpath_var=yes
12898 no_undefined_flag=' -z text'
12899 if test "$GCC" = yes; then
12900 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12901 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12902 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12908 hardcode_libdir_flag_spec='-R$libdir'
12909 hardcode_shlibpath_var=no
12911 solaris2.[0-5] | solaris2.[0-5].*) ;;
12912 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12915 link_all_deplibs=yes
12919 if test "x$host_vendor" = xsequent; then
12920 # Use $CC to link under sequent, because it throws in some extra .o
12921 # files that make .init and .fini sections work.
12922 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12926 hardcode_libdir_flag_spec='-L$libdir'
12927 hardcode_direct=yes
12928 hardcode_minus_L=yes
12929 hardcode_shlibpath_var=no
12933 case $host_vendor in
12935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_direct=yes # is this really true???
12939 ## LD is ld it makes a PLAMLIB
12940 ## CC just makes a GrossModule.
12941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12942 reload_cmds='$CC -r -o $output$reload_objs'
12946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12950 runpath_var='LD_RUN_PATH'
12951 hardcode_shlibpath_var=no
12955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12956 hardcode_shlibpath_var=no
12957 export_dynamic_flag_spec='-Bexport'
12961 if test -d /usr/nec; then
12962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_shlibpath_var=no
12964 runpath_var=LD_RUN_PATH
12965 hardcode_runpath_var=yes
12971 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12972 hardcode_direct=yes
12973 hardcode_minus_L=no
12974 hardcode_shlibpath_var=no
12975 hardcode_runpath_var=yes
12976 runpath_var=LD_RUN_PATH
12979 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12980 no_undefined_flag='${wl}-z ${wl}text'
12981 if test "$GCC" = yes; then
12982 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12984 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 runpath_var='LD_RUN_PATH'
12987 hardcode_shlibpath_var=no
12991 no_undefined_flag=' -z text'
12992 # $CC -shared without GNU ld will not create a library from C++
12993 # object files and a static libstdc++, better avoid it by now
12994 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12995 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12997 hardcode_libdir_flag_spec=
12998 hardcode_shlibpath_var=no
12999 runpath_var='LD_RUN_PATH'
13003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_libdir_flag_spec='-L$libdir'
13005 hardcode_shlibpath_var=no
13014 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13015 echo "${ECHO_T}$ld_shlibs" >&6
13016 test "$ld_shlibs" = no && can_build_shared=no
13018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13019 if test "$GCC" = yes; then
13020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13024 # Do we need to explicitly link libc?
13026 case "x$archive_cmds_need_lc" in
13028 # Assume -lc should be added
13029 archive_cmds_need_lc=yes
13031 if test "$enable_shared" = yes && test "$GCC" = yes; then
13032 case $archive_cmds in
13034 # FIXME: we may have to deal with multi-command sequences.
13037 # Test whether the compiler implicitly links with -lc since on some
13038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13039 # to ld, don't add -lc before -lgcc.
13040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } 2>conftest.err; then
13052 libobjs=conftest.$ac_objext
13054 wl=$lt_prog_compiler_wl
13060 lt_save_allow_undefined_flag=$allow_undefined_flag
13061 allow_undefined_flag=
13062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13063 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }
13068 archive_cmds_need_lc=no
13070 archive_cmds_need_lc=yes
13072 allow_undefined_flag=$lt_save_allow_undefined_flag
13074 cat conftest.err 1>&5
13077 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13078 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13085 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13087 library_names_spec=
13088 libname_spec='lib$name'
13092 postuninstall_cmds=
13096 shlibpath_overrides_runpath=unknown
13098 dynamic_linker="$host_os ld.so"
13099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13100 if test "$GCC" = yes; then
13101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13102 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13103 # if the path contains ";" then we assume it to be the separator
13104 # otherwise default to the standard path separator (i.e. ":") - it is
13105 # assumed that no part of a normal pathname contains ";" but that should
13106 # okay in the real world where ";" in dirpaths is itself problematic.
13107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13112 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13114 need_lib_prefix=unknown
13115 hardcode_into_libs=no
13117 # when you set need_version to no, make sure it does not cause -set_version
13118 # flags to be left without arguments
13119 need_version=unknown
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13125 shlibpath_var=LIBPATH
13127 # AIX 3 has no versioning support, so we append a major version to the name.
13128 soname_spec='${libname}${release}${shared_ext}$major'
13135 hardcode_into_libs=yes
13136 if test "$host_cpu" = ia64; then
13137 # AIX 5 supports IA64
13138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13139 shlibpath_var=LD_LIBRARY_PATH
13141 # With GCC up to 2.95.x, collect2 would create an import file
13142 # for dependence libraries. The import file would start with
13143 # the line `#! .'. This would cause the generated library to
13144 # depend on `.', always an invalid library. This was fixed in
13145 # development snapshots of GCC prior to 3.0.
13147 aix4 | aix4.[01] | aix4.[01].*)
13148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13153 can_build_shared=no
13157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13158 # soname into executable. Probably we can add versioning support to
13159 # collect2, so additional links can be useful in future.
13160 if test "$aix_use_runtimelinking" = yes; then
13161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13162 # instead of lib<name>.a to let people know that these are not
13163 # typical AIX shared libraries.
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13166 # We preserve .a as extension for shared libraries through AIX4.2
13167 # and later when we are not doing run time linking.
13168 library_names_spec='${libname}${release}.a $libname.a'
13169 soname_spec='${libname}${release}${shared_ext}$major'
13171 shlibpath_var=LIBPATH
13176 library_names_spec='$libname.ixlibrary $libname.a'
13177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13178 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'
13182 library_names_spec='${libname}${shared_ext}'
13183 dynamic_linker="$host_os ld.so"
13184 shlibpath_var=LIBRARY_PATH
13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13196 # the default ld.so.conf also contains /usr/contrib/lib and
13197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13198 # libtool to hard-code these into programs
13201 cygwin* | mingw* | pw32*)
13202 version_type=windows
13207 case $GCC,$host_os in
13208 yes,cygwin* | yes,mingw* | yes,pw32*)
13209 library_names_spec='$libname.dll.a'
13210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13211 postinstall_cmds='base_file=`basename \${file}`~
13212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13213 dldir=$destdir/`dirname \$dlpath`~
13214 test -d \$dldir || mkdir -p \$dldir~
13215 $install_prog $dir/$dlname \$dldir/$dlname'
13216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13217 dlpath=$dir/\$dldll~
13219 shlibpath_overrides_runpath=yes
13223 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13224 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13225 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13228 # MinGW DLLs use traditional 'lib' prefix
13229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13231 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13232 # It is most probably a Windows format PATH printed by
13233 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13234 # path with ; separators, and with drive letters. We can handle the
13235 # drive letters (cygwin fileutils understands them), so leave them,
13236 # especially as we might pass files found there to a mingw objdump,
13237 # which wouldn't understand a cygwinified path. Ahh.
13238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13244 # pw32 DLLs use 'pw' prefix rather than 'lib'
13245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13254 dynamic_linker='Win32 ld.exe'
13255 # FIXME: first we should search . and the directory the executable is in
13259 darwin* | rhapsody*)
13260 dynamic_linker="$host_os dyld"
13261 version_type=darwin
13264 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13265 soname_spec='${libname}${release}${major}$shared_ext'
13266 shlibpath_overrides_runpath=yes
13267 shlibpath_var=DYLD_LIBRARY_PATH
13268 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13269 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13270 if test "$GCC" = yes; then
13271 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"`
13273 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13275 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 shlibpath_var=LD_LIBRARY_PATH
13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 hardcode_into_libs=yes
13300 dynamic_linker='GNU ld.so'
13304 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13305 version_type=freebsd-$objformat
13306 case $version_type in
13308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13317 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=yes
13322 freebsd3.01* | freebsdelf3.01*)
13323 shlibpath_overrides_runpath=yes
13324 hardcode_into_libs=yes
13327 shlibpath_overrides_runpath=no
13328 hardcode_into_libs=yes
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 shlibpath_var=LD_LIBRARY_PATH
13340 hardcode_into_libs=yes
13343 hpux9* | hpux10* | hpux11*)
13344 # Give a soname corresponding to the major version so that dld.sl refuses to
13345 # link against other versions.
13349 case "$host_cpu" in
13352 hardcode_into_libs=yes
13353 dynamic_linker="$host_os dld.so"
13354 shlibpath_var=LD_LIBRARY_PATH
13355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 if test "X$HPUX_IA64_MODE" = X32; then
13359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13367 hardcode_into_libs=yes
13368 dynamic_linker="$host_os dld.sl"
13369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372 soname_spec='${libname}${release}${shared_ext}$major'
13373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13378 dynamic_linker="$host_os dld.sl"
13379 shlibpath_var=SHLIB_PATH
13380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13385 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13386 postinstall_cmds='chmod 555 $lib'
13389 irix5* | irix6* | nonstopux*)
13391 nonstopux*) version_type=nonstopux ;;
13393 if test "$lt_cv_prog_gnu_ld" = yes; then
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13404 irix5* | nonstopux*)
13405 libsuff= shlibsuff=
13408 case $LD in # libtool.m4 will add one of these switches to LD
13409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13410 libsuff= shlibsuff= libmagic=32-bit;;
13411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13412 libsuff=32 shlibsuff=N32 libmagic=N32;;
13413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13415 *) libsuff= shlibsuff= libmagic=never-match;;
13419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13420 shlibpath_overrides_runpath=no
13421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13423 hardcode_into_libs=yes
13426 # No shared lib support for Linux oldld, aout, or coff.
13427 linux*oldld* | linux*aout* | linux*coff*)
13431 # This must be Linux ELF.
13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437 soname_spec='${libname}${release}${shared_ext}$major'
13438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=no
13441 # This implies no fast_install, which is unacceptable.
13442 # Some rework will be needed to allow for fast_install
13443 # before this can be enabled.
13444 hardcode_into_libs=yes
13446 # Append ld.so.conf contents to the search path
13447 if test -f /etc/ld.so.conf; then
13448 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13452 # We used to test for /lib/ld.so.1 and disable shared libraries on
13453 # powerpc, because MkLinux only supported shared libraries with the
13454 # GNU dynamic linker. Since this was broken with cross compilers,
13455 # most powerpc-linux boxes support dynamic linking these days and
13456 # people can always --disable-shared, the test was removed, and we
13457 # assume the GNU/Linux dynamic linker is in use.
13458 dynamic_linker='GNU/Linux ld.so'
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=no
13469 hardcode_into_libs=yes
13470 dynamic_linker='GNU ld.so'
13477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13480 dynamic_linker='NetBSD (a.out) ld.so'
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 dynamic_linker='NetBSD ld.elf_so'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 hardcode_into_libs=yes
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=yes
13502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503 soname_spec='${libname}${release}${shared_ext}$major'
13504 shlibpath_var=LD_LIBRARY_PATH
13505 shlibpath_overrides_runpath=yes
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13517 openbsd2.[89] | openbsd2.[89].*)
13518 shlibpath_overrides_runpath=no
13521 shlibpath_overrides_runpath=yes
13525 shlibpath_overrides_runpath=yes
13530 libname_spec='$name'
13533 library_names_spec='$libname${shared_ext} $libname.a'
13534 dynamic_linker='OS/2 ld.exe'
13535 shlibpath_var=LIBPATH
13538 osf3* | osf4* | osf5*)
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13551 soname_spec='${libname}${release}${shared_ext}$major'
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553 shlibpath_var=LD_LIBRARY_PATH
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=yes
13564 hardcode_into_libs=yes
13565 # ldd complains unless libraries are executable
13566 postinstall_cmds='chmod +x $lib'
13571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 shlibpath_overrides_runpath=yes
13575 if test "$with_gnu_ld" = yes; then
13581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 soname_spec='${libname}${release}${shared_ext}$major'
13585 shlibpath_var=LD_LIBRARY_PATH
13586 case $host_vendor in
13588 shlibpath_overrides_runpath=no
13590 export_dynamic_flag_spec='${wl}-Blargedynsym'
13591 runpath_var=LD_RUN_PATH
13599 shlibpath_overrides_runpath=no
13600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13606 if test -d /usr/nec ;then
13608 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13609 soname_spec='$libname${shared_ext}.$major'
13610 shlibpath_var=LD_LIBRARY_PATH
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 shlibpath_var=LD_LIBRARY_PATH
13625 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13626 echo "${ECHO_T}$dynamic_linker" >&6
13627 test "$dynamic_linker" = no && can_build_shared=no
13629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13632 if test -n "$hardcode_libdir_flag_spec" || \
13633 test -n "$runpath_var" || \
13634 test "X$hardcode_automatic" = "Xyes" ; then
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13642 test "$hardcode_minus_L" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action=relink
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action=immediate
13650 # We cannot hardcode anything, or else we can only hardcode existing
13652 hardcode_action=unsupported
13654 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13655 echo "${ECHO_T}$hardcode_action" >&6
13657 if test "$hardcode_action" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673 echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13676 # FIXME - insert some real tests, host_os isn't really good enough
13679 if test -n "$STRIP" ; then
13680 striplib="$STRIP -x"
13681 echo "$as_me:$LINENO: result: yes" >&5
13682 echo "${ECHO_T}yes" >&6
13684 echo "$as_me:$LINENO: result: no" >&5
13685 echo "${ECHO_T}no" >&6
13689 echo "$as_me:$LINENO: result: no" >&5
13690 echo "${ECHO_T}no" >&6
13695 if test "x$enable_dlopen" != xyes; then
13696 enable_dlopen=unknown
13697 enable_dlopen_self=unknown
13698 enable_dlopen_self_static=unknown
13705 lt_cv_dlopen="load_add_on"
13707 lt_cv_dlopen_self=yes
13711 lt_cv_dlopen="LoadLibrary"
13716 lt_cv_dlopen="dlopen"
13721 # if libdl is installed we need to link against it
13722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 ac_check_lib_save_LIBS=$LIBS
13729 cat >conftest.$ac_ext <<_ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13736 /* Override any gcc2 internal prototype to avoid an error. */
13740 /* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753 (eval $ac_link) 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest$ac_exeext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_lib_dl_dlopen=yes
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_cv_lib_dl_dlopen=no
13780 rm -f conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13786 if test $ac_cv_lib_dl_dlopen = yes; then
13787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13790 lt_cv_dlopen="dyld"
13792 lt_cv_dlopen_self=yes
13799 echo "$as_me:$LINENO: checking for shl_load" >&5
13800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13801 if test "${ac_cv_func_shl_load+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 cat >conftest.$ac_ext <<_ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13812 #define shl_load innocuous_shl_load
13814 /* System header to define __stub macros and hopefully few prototypes,
13815 which can conflict with char shl_load (); below.
13816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13817 <limits.h> exists even on freestanding compilers. */
13820 # include <limits.h>
13822 # include <assert.h>
13827 /* Override any gcc2 internal prototype to avoid an error. */
13832 /* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13835 /* The GNU C library defines this for functions which it implements
13836 to always fail with ENOSYS. Some functions are actually named
13837 something starting with __ and the normal name is an alias. */
13838 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13841 char (*f) () = shl_load;
13850 return f != shl_load;
13855 rm -f conftest.$ac_objext conftest$ac_exeext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13857 (eval $ac_link) 2>conftest.er1
13859 grep -v '^ *+' conftest.er1 >conftest.err
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
13864 { ac_try='test -z "$ac_c_werror_flag"
13865 || test ! -s conftest.err'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } &&
13871 { ac_try='test -s conftest$ac_exeext'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_func_shl_load=yes
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 ac_cv_func_shl_load=no
13884 rm -f conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13887 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13888 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13889 if test $ac_cv_func_shl_load = yes; then
13890 lt_cv_dlopen="shl_load"
13892 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13893 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 ac_check_lib_save_LIBS=$LIBS
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13906 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag"
13931 || test ! -s conftest.err'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_lib_dld_shl_load=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_cv_lib_dld_shl_load=no
13950 rm -f conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13956 if test $ac_cv_lib_dld_shl_load = yes; then
13957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13959 echo "$as_me:$LINENO: checking for dlopen" >&5
13960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13961 if test "${ac_cv_func_dlopen+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13972 #define dlopen innocuous_dlopen
13974 /* System header to define __stub macros and hopefully few prototypes,
13975 which can conflict with char dlopen (); below.
13976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13977 <limits.h> exists even on freestanding compilers. */
13980 # include <limits.h>
13982 # include <assert.h>
13987 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13995 /* The GNU C library defines this for functions which it implements
13996 to always fail with ENOSYS. Some functions are actually named
13997 something starting with __ and the normal name is an alias. */
13998 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14001 char (*f) () = dlopen;
14010 return f != dlopen;
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>conftest.er1
14019 grep -v '^ *+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try='test -z "$ac_c_werror_flag"
14025 || test ! -s conftest.err'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_func_dlopen=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_func_dlopen=no
14044 rm -f conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14047 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14048 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14049 if test $ac_cv_func_dlopen = yes; then
14050 lt_cv_dlopen="dlopen"
14052 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_check_lib_save_LIBS=$LIBS
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any gcc2 internal prototype to avoid an error. */
14070 /* We use char because int might match the return type of a gcc2
14071 builtin and then its argument prototype would still apply. */
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest$ac_exeext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_lib_dl_dlopen=yes
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_cv_lib_dl_dlopen=no
14110 rm -f conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14116 if test $ac_cv_lib_dl_dlopen = yes; then
14117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14119 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14120 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14121 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 ac_check_lib_save_LIBS=$LIBS
14125 LIBS="-lsvld $LIBS"
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14133 /* Override any gcc2 internal prototype to avoid an error. */
14137 /* We use char because int might match the return type of a gcc2
14138 builtin and then its argument prototype would still apply. */
14148 rm -f conftest.$ac_objext conftest$ac_exeext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14150 (eval $ac_link) 2>conftest.er1
14152 grep -v '^ *+' conftest.er1 >conftest.err
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -z "$ac_c_werror_flag"
14158 || test ! -s conftest.err'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest$ac_exeext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_lib_svld_dlopen=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_lib_svld_dlopen=no
14177 rm -f conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179 LIBS=$ac_check_lib_save_LIBS
14181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14183 if test $ac_cv_lib_svld_dlopen = yes; then
14184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14186 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 ac_check_lib_save_LIBS=$LIBS
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14200 /* Override any gcc2 internal prototype to avoid an error. */
14204 /* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14217 (eval $ac_link) 2>conftest.er1
14219 grep -v '^ *+' conftest.er1 >conftest.err
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag"
14225 || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_lib_dld_dld_link=yes
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 ac_cv_lib_dld_dld_link=no
14244 rm -f conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14248 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14250 if test $ac_cv_lib_dld_dld_link = yes; then
14251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14272 if test "x$lt_cv_dlopen" != xno; then
14278 case $lt_cv_dlopen in
14280 save_CPPFLAGS="$CPPFLAGS"
14281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14283 save_LDFLAGS="$LDFLAGS"
14284 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14287 LIBS="$lt_cv_dlopen_libs $LIBS"
14289 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14290 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14291 if test "${lt_cv_dlopen_self+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 if test "$cross_compiling" = yes; then :
14295 lt_cv_dlopen_self=cross
14297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14298 lt_status=$lt_dlunknown
14299 cat > conftest.$ac_ext <<EOF
14300 #line 14300 "configure"
14301 #include "confdefs.h"
14310 # define LT_DLGLOBAL RTLD_GLOBAL
14313 # define LT_DLGLOBAL DL_GLOBAL
14315 # define LT_DLGLOBAL 0
14319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14320 find out it does not work in some platform. */
14321 #ifndef LT_DLLAZY_OR_NOW
14323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14326 # define LT_DLLAZY_OR_NOW DL_LAZY
14329 # define LT_DLLAZY_OR_NOW RTLD_NOW
14332 # define LT_DLLAZY_OR_NOW DL_NOW
14334 # define LT_DLLAZY_OR_NOW 0
14342 extern "C" void exit (int);
14345 void fnord() { int i=42;}
14348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14349 int status = $lt_dlunknown;
14353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14355 /* dlclose (self); */
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14366 (./conftest; exit; ) 2>/dev/null
14368 case x$lt_status in
14369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14371 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14374 # compilation failed
14375 lt_cv_dlopen_self=no
14382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14385 if test "x$lt_cv_dlopen_self" = xyes; then
14386 LDFLAGS="$LDFLAGS $link_static_flag"
14387 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14389 if test "${lt_cv_dlopen_self_static+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 if test "$cross_compiling" = yes; then :
14393 lt_cv_dlopen_self_static=cross
14395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14396 lt_status=$lt_dlunknown
14397 cat > conftest.$ac_ext <<EOF
14398 #line 14398 "configure"
14399 #include "confdefs.h"
14408 # define LT_DLGLOBAL RTLD_GLOBAL
14411 # define LT_DLGLOBAL DL_GLOBAL
14413 # define LT_DLGLOBAL 0
14417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14418 find out it does not work in some platform. */
14419 #ifndef LT_DLLAZY_OR_NOW
14421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14424 # define LT_DLLAZY_OR_NOW DL_LAZY
14427 # define LT_DLLAZY_OR_NOW RTLD_NOW
14430 # define LT_DLLAZY_OR_NOW DL_NOW
14432 # define LT_DLLAZY_OR_NOW 0
14440 extern "C" void exit (int);
14443 void fnord() { int i=42;}
14446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14447 int status = $lt_dlunknown;
14451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14453 /* dlclose (self); */
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14464 (./conftest; exit; ) 2>/dev/null
14466 case x$lt_status in
14467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14469 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14472 # compilation failed
14473 lt_cv_dlopen_self_static=no
14480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14484 CPPFLAGS="$save_CPPFLAGS"
14485 LDFLAGS="$save_LDFLAGS"
14490 case $lt_cv_dlopen_self in
14491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14492 *) enable_dlopen_self=unknown ;;
14495 case $lt_cv_dlopen_self_static in
14496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14497 *) enable_dlopen_self_static=unknown ;;
14502 # Report which librarie types wil actually be built
14503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14506 echo "${ECHO_T}$can_build_shared" >&6
14508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14510 test "$can_build_shared" = "no" && enable_shared=no
14512 # On AIX, shared libraries and static libraries use the same namespace, and
14513 # are all built from PIC.
14516 test "$enable_shared" = yes && enable_static=no
14517 if test -n "$RANLIB"; then
14518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14519 postinstall_cmds='$RANLIB $lib'
14524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14525 test "$enable_shared" = yes && enable_static=no
14529 echo "$as_me:$LINENO: result: $enable_shared" >&5
14530 echo "${ECHO_T}$enable_shared" >&6
14532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14534 # Make sure either enable_shared or enable_static is yes.
14535 test "$enable_shared" = yes || enable_static=yes
14536 echo "$as_me:$LINENO: result: $enable_static" >&5
14537 echo "${ECHO_T}$enable_static" >&6
14539 # The else clause should only fire when bootstrapping the
14540 # libtool distribution, otherwise you forgot to ship ltmain.sh
14541 # with your package, and you will get complaints that there are
14542 # no rules to generate ltmain.sh.
14543 if test -f "$ltmain"; then
14544 # See if we are running on zsh, and set the options which allow our commands through
14545 # without removal of \ escapes.
14546 if test -n "${ZSH_VERSION+set}" ; then
14547 setopt NO_GLOB_SUBST
14549 # Now quote all the things that may contain metacharacters while being
14550 # careful not to overquote the AC_SUBSTed values. We take copies of the
14551 # variables and quote the copies for generation of the libtool script.
14552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14556 deplibs_check_method reload_flag reload_cmds need_locks \
14557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14558 lt_cv_sys_global_symbol_to_c_name_address \
14559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14560 old_postinstall_cmds old_postuninstall_cmds \
14564 lt_prog_compiler_wl \
14565 lt_prog_compiler_pic \
14566 lt_prog_compiler_static \
14567 lt_prog_compiler_no_builtin_flag \
14568 export_dynamic_flag_spec \
14569 thread_safe_flag_spec \
14570 whole_archive_flag_spec \
14571 enable_shared_with_static_runtimes \
14573 old_archive_from_new_cmds \
14578 compiler_lib_search_path \
14580 archive_expsym_cmds \
14582 postuninstall_cmds \
14583 old_archive_from_expsyms_cmds \
14584 allow_undefined_flag \
14585 no_undefined_flag \
14586 export_symbols_cmds \
14587 hardcode_libdir_flag_spec \
14588 hardcode_libdir_flag_spec_ld \
14589 hardcode_libdir_separator \
14590 hardcode_automatic \
14592 module_expsym_cmds \
14593 lt_cv_prog_compiler_c_o \
14595 include_expsyms; do
14598 old_archive_cmds | \
14599 old_archive_from_new_cmds | \
14601 archive_expsym_cmds | \
14603 module_expsym_cmds | \
14604 old_archive_from_expsyms_cmds | \
14605 export_symbols_cmds | \
14606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14607 postinstall_cmds | postuninstall_cmds | \
14608 old_postinstall_cmds | old_postuninstall_cmds | \
14609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14610 # Double-quote double-evaled strings.
14611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14620 *'\$0 --fallback-echo"')
14621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14625 cfgfile="${ofile}T"
14626 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14628 { echo "$as_me:$LINENO: creating $ofile" >&5
14629 echo "$as_me: creating $ofile" >&6;}
14631 cat <<__EOF__ >> "$cfgfile"
14634 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14635 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14638 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14639 # Free Software Foundation, Inc.
14641 # This file is part of GNU Libtool:
14642 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14644 # This program is free software; you can redistribute it and/or modify
14645 # it under the terms of the GNU General Public License as published by
14646 # the Free Software Foundation; either version 2 of the License, or
14647 # (at your option) any later version.
14649 # This program is distributed in the hope that it will be useful, but
14650 # WITHOUT ANY WARRANTY; without even the implied warranty of
14651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14652 # General Public License for more details.
14654 # You should have received a copy of the GNU General Public License
14655 # along with this program; if not, write to the Free Software
14656 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14658 # As a special exception to the GNU General Public License, if you
14659 # distribute this file as part of a program that contains a
14660 # configuration script generated by Autoconf, you may include it under
14661 # the same distribution terms that you use for the rest of that program.
14663 # A sed program that does not truncate output.
14666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14667 Xsed="$SED -e s/^X//"
14669 # The HP-UX ksh and POSIX shell print the target directory to stdout
14670 # if CDPATH is set.
14671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14673 # The names of the tagged configurations supported by this script.
14676 # ### BEGIN LIBTOOL CONFIG
14678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14680 # Shell to use when invoking shell scripts.
14683 # Whether or not to build shared libraries.
14684 build_libtool_libs=$enable_shared
14686 # Whether or not to build static libraries.
14687 build_old_libs=$enable_static
14689 # Whether or not to add -lc for building shared libraries.
14690 build_libtool_need_lc=$archive_cmds_need_lc
14692 # Whether or not to disallow shared libs when runtime libs are static
14693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14695 # Whether or not to optimize for fast installation.
14696 fast_install=$enable_fast_install
14699 host_alias=$host_alias
14702 # An echo program that does not interpret backslashes.
14707 AR_FLAGS=$lt_AR_FLAGS
14712 # A language-specific compiler.
14715 # Is the compiler the GNU C compiler?
14721 # The linker used to build libraries.
14724 # Whether we need hard or soft links.
14727 # A BSD-compatible nm program.
14730 # A symbol stripping program
14733 # Used to examine libraries when file_magic_cmd begins "file"
14734 MAGIC_CMD=$MAGIC_CMD
14736 # Used on cygwin: DLL creation program.
14739 # Used on cygwin: object dumper.
14742 # Used on cygwin: assembler.
14745 # The name of the directory that contains temporary libtool files.
14748 # How to create reloadable object files.
14749 reload_flag=$lt_reload_flag
14750 reload_cmds=$lt_reload_cmds
14752 # How to pass a linker flag through the compiler.
14753 wl=$lt_lt_prog_compiler_wl
14755 # Object file suffix (normally "o").
14756 objext="$ac_objext"
14758 # Old archive suffix (normally "a").
14761 # Shared library suffix (normally ".so").
14762 shrext_cmds='$shrext_cmds'
14764 # Executable file suffix (normally "").
14767 # Additional compiler flags for building library objects.
14768 pic_flag=$lt_lt_prog_compiler_pic
14771 # What is the maximum length of a command?
14772 max_cmd_len=$lt_cv_sys_max_cmd_len
14774 # Does compiler simultaneously support -c and -o options?
14775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14777 # Must we lock files when doing compilation ?
14778 need_locks=$lt_need_locks
14780 # Do we need the lib prefix for modules?
14781 need_lib_prefix=$need_lib_prefix
14783 # Do we need a version for libraries?
14784 need_version=$need_version
14786 # Whether dlopen is supported.
14787 dlopen_support=$enable_dlopen
14789 # Whether dlopen of programs is supported.
14790 dlopen_self=$enable_dlopen_self
14792 # Whether dlopen of statically linked programs is supported.
14793 dlopen_self_static=$enable_dlopen_self_static
14795 # Compiler flag to prevent dynamic linking.
14796 link_static_flag=$lt_lt_prog_compiler_static
14798 # Compiler flag to turn off builtin functions.
14799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14801 # Compiler flag to allow reflexive dlopens.
14802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14804 # Compiler flag to generate shared objects directly from archives.
14805 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14807 # Compiler flag to generate thread-safe objects.
14808 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14810 # Library versioning type.
14811 version_type=$version_type
14813 # Format of library name prefix.
14814 libname_spec=$lt_libname_spec
14816 # List of archive names. First name is the real one, the rest are links.
14817 # The last name is the one that the linker finds with -lNAME.
14818 library_names_spec=$lt_library_names_spec
14820 # The coded name of the library, if different from the real name.
14821 soname_spec=$lt_soname_spec
14823 # Commands used to build and install an old-style archive.
14825 old_archive_cmds=$lt_old_archive_cmds
14826 old_postinstall_cmds=$lt_old_postinstall_cmds
14827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14829 # Create an old-style archive from a shared archive.
14830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14832 # Create a temporary old-style archive to link instead of a shared archive.
14833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14835 # Commands used to build and install a shared archive.
14836 archive_cmds=$lt_archive_cmds
14837 archive_expsym_cmds=$lt_archive_expsym_cmds
14838 postinstall_cmds=$lt_postinstall_cmds
14839 postuninstall_cmds=$lt_postuninstall_cmds
14841 # Commands used to build a loadable module (assumed same as above if empty)
14842 module_cmds=$lt_module_cmds
14843 module_expsym_cmds=$lt_module_expsym_cmds
14845 # Commands to strip libraries.
14846 old_striplib=$lt_old_striplib
14847 striplib=$lt_striplib
14849 # Dependencies to place before the objects being linked to create a
14851 predep_objects=$lt_predep_objects
14853 # Dependencies to place after the objects being linked to create a
14855 postdep_objects=$lt_postdep_objects
14857 # Dependencies to place before the objects being linked to create a
14859 predeps=$lt_predeps
14861 # Dependencies to place after the objects being linked to create a
14863 postdeps=$lt_postdeps
14865 # The library search path used internally by the compiler when linking
14866 # a shared library.
14867 compiler_lib_search_path=$lt_compiler_lib_search_path
14869 # Method to check whether dependent libraries are shared objects.
14870 deplibs_check_method=$lt_deplibs_check_method
14872 # Command to use when deplibs_check_method == file_magic.
14873 file_magic_cmd=$lt_file_magic_cmd
14875 # Flag that allows shared libraries with undefined symbols to be built.
14876 allow_undefined_flag=$lt_allow_undefined_flag
14878 # Flag that forces no undefined symbols.
14879 no_undefined_flag=$lt_no_undefined_flag
14881 # Commands used to finish a libtool library installation in a directory.
14882 finish_cmds=$lt_finish_cmds
14884 # Same as above, but a single script fragment to be evaled but not shown.
14885 finish_eval=$lt_finish_eval
14887 # Take the output of nm and produce a listing of raw symbols and C names.
14888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14890 # Transform the output of nm in a proper C declaration
14891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14893 # Transform the output of nm in a C name address pair
14894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14896 # This is the shared library runtime path variable.
14897 runpath_var=$runpath_var
14899 # This is the shared library path variable.
14900 shlibpath_var=$shlibpath_var
14902 # Is shlibpath searched before the hard-coded library search path?
14903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14905 # How to hardcode a shared library path into an executable.
14906 hardcode_action=$hardcode_action
14908 # Whether we should hardcode library paths into libraries.
14909 hardcode_into_libs=$hardcode_into_libs
14911 # Flag to hardcode \$libdir into a binary during linking.
14912 # This must work even if \$libdir does not exist.
14913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14915 # If ld is used when linking, flag to hardcode \$libdir into
14916 # a binary during linking. This must work even if \$libdir does
14918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14920 # Whether we need a single -rpath flag with a separated argument.
14921 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14924 # resulting binary.
14925 hardcode_direct=$hardcode_direct
14927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14928 # resulting binary.
14929 hardcode_minus_L=$hardcode_minus_L
14931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14932 # the resulting binary.
14933 hardcode_shlibpath_var=$hardcode_shlibpath_var
14935 # Set to yes if building a shared library automatically hardcodes DIR into the library
14936 # and all subsequent libraries and executables linked against it.
14937 hardcode_automatic=$hardcode_automatic
14939 # Variables whose values should be saved in libtool wrapper scripts and
14940 # restored at relink time.
14941 variables_saved_for_relink="$variables_saved_for_relink"
14943 # Whether libtool must link a program against all its dependency libraries.
14944 link_all_deplibs=$link_all_deplibs
14946 # Compile-time system search path for libraries
14947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14949 # Run-time system search path for libraries
14950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14952 # Fix the shell variable \$srcfile for the compiler.
14953 fix_srcfile_path="$fix_srcfile_path"
14955 # Set to yes if exported symbols are required.
14956 always_export_symbols=$always_export_symbols
14958 # The commands to list exported symbols.
14959 export_symbols_cmds=$lt_export_symbols_cmds
14961 # The commands to extract the exported symbol list from a shared archive.
14962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14964 # Symbols that should not be listed in the preloaded symbols.
14965 exclude_expsyms=$lt_exclude_expsyms
14967 # Symbols that must always be exported.
14968 include_expsyms=$lt_include_expsyms
14970 # ### END LIBTOOL CONFIG
14977 cat <<\EOF >> "$cfgfile"
14979 # AIX sometimes has problems with the GCC collect2 program. For some
14980 # reason, if we set the COLLECT_NAMES environment variable, the problems
14981 # vanish in a puff of smoke.
14982 if test "X${COLLECT_NAMES+set}" != Xset; then
14984 export COLLECT_NAMES
14990 # We use sed instead of cat because bash on DJGPP gets confused if
14991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14992 # text mode, it properly converts lines to CR/LF. This bash problem
14993 # is reportedly fixed, but why not run on old versions too?
14994 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14996 mv -f "$cfgfile" "$ofile" || \
14997 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15001 # If there is no Makefile yet, we rely on a make rule to execute
15002 # `config.status --recheck' to rerun these tests and create the
15003 # libtool script then.
15004 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15005 if test -f "$ltmain_in"; then
15006 test -f Makefile && make "$ltmain"
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15020 # Check whether --with-tags or --without-tags was given.
15021 if test "${with_tags+set}" = set; then
15022 withval="$with_tags"
15023 tagnames="$withval"
15026 if test -f "$ltmain" && test -n "$tagnames"; then
15027 if test ! -f "${ofile}"; then
15028 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15029 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15032 if test -z "$LTCC"; then
15033 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15034 if test -z "$LTCC"; then
15035 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15036 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15039 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15043 # Extract list of available tagged configurations in $ofile.
15044 # Note that this assumes the entire list is on one line.
15045 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15048 for tagname in $tagnames; do
15050 # Check whether tagname contains only valid characters
15051 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15053 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15054 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15055 { (exit 1); exit 1; }; }
15059 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15061 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15062 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15063 { (exit 1); exit 1; }; }
15066 # Update the list of available tags.
15067 if test -n "$tagname"; then
15068 echo appending configuration tag "$tagname" to $ofile
15072 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15073 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15074 (test "X$CXX" != "Xg++"))) ; then
15076 ac_cpp='$CXXCPP $CPPFLAGS'
15077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15084 archive_cmds_need_lc_CXX=no
15085 allow_undefined_flag_CXX=
15086 always_export_symbols_CXX=no
15087 archive_expsym_cmds_CXX=
15088 export_dynamic_flag_spec_CXX=
15089 hardcode_direct_CXX=no
15090 hardcode_libdir_flag_spec_CXX=
15091 hardcode_libdir_flag_spec_ld_CXX=
15092 hardcode_libdir_separator_CXX=
15093 hardcode_minus_L_CXX=no
15094 hardcode_automatic_CXX=no
15096 module_expsym_cmds_CXX=
15097 link_all_deplibs_CXX=unknown
15098 old_archive_cmds_CXX=$old_archive_cmds
15099 no_undefined_flag_CXX=
15100 whole_archive_flag_spec_CXX=
15101 enable_shared_with_static_runtimes_CXX=no
15103 # Dependencies to place before and after the object being linked:
15104 predep_objects_CXX=
15105 postdep_objects_CXX=
15108 compiler_lib_search_path_CXX=
15110 # Source file extension for C++ test sources.
15113 # Object file extension for compiled C++ test sources.
15117 # Code to be used in simple compile tests
15118 lt_simple_compile_test_code="int some_variable = 0;\n"
15120 # Code to be used in simple link tests
15121 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15123 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15125 # If no C compiler was specified, use CC.
15128 # Allow CC to be a program name with arguments.
15132 # Allow CC to be a program name with arguments.
15137 lt_save_with_gnu_ld=$with_gnu_ld
15138 lt_save_path_LD=$lt_cv_path_LD
15139 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15140 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15142 unset lt_cv_prog_gnu_ld
15144 if test -n "${lt_cv_path_LDCXX+set}"; then
15145 lt_cv_path_LD=$lt_cv_path_LDCXX
15147 unset lt_cv_path_LD
15149 test -z "${LDCXX+set}" || LD=$LDCXX
15153 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15155 # We don't want -fno-exception wen compiling C++ code, so set the
15156 # no_builtin_flag separately
15157 if test "$GXX" = yes; then
15158 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15160 lt_prog_compiler_no_builtin_flag_CXX=
15163 if test "$GXX" = yes; then
15164 # Set up default GNU C++ configuration
15167 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15168 if test "${with_gnu_ld+set}" = set; then
15169 withval="$with_gnu_ld"
15170 test "$withval" = no || with_gnu_ld=yes
15175 if test "$GCC" = yes; then
15176 # Check if gcc -print-prog-name=ld gives a path.
15177 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15178 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15181 # gcc leaves a trailing carriage return which upsets mingw
15182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15187 # Accept absolute paths.
15189 re_direlt='/[^/][^/]*/\.\./'
15190 # Canonicalize the pathname of ld
15191 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15193 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15195 test -z "$LD" && LD="$ac_prog"
15198 # If it fails, then pretend we aren't using GCC.
15202 # If it is relative, then search for the first ld in PATH.
15203 with_gnu_ld=unknown
15206 elif test "$with_gnu_ld" = yes; then
15207 echo "$as_me:$LINENO: checking for GNU ld" >&5
15208 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15210 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15211 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15213 if test "${lt_cv_path_LD+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 if test -z "$LD"; then
15217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15218 for ac_dir in $PATH; do
15220 test -z "$ac_dir" && ac_dir=.
15221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15222 lt_cv_path_LD="$ac_dir/$ac_prog"
15223 # Check to see if the program is GNU ld. I'd rather use --version,
15224 # but apparently some GNU ld's only accept -v.
15225 # Break only if it was the GNU/non-GNU ld that we prefer.
15226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15227 *GNU* | *'with BFD'*)
15228 test "$with_gnu_ld" != no && break
15231 test "$with_gnu_ld" != yes && break
15238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15242 LD="$lt_cv_path_LD"
15243 if test -n "$LD"; then
15244 echo "$as_me:$LINENO: result: $LD" >&5
15245 echo "${ECHO_T}$LD" >&6
15247 echo "$as_me:$LINENO: result: no" >&5
15248 echo "${ECHO_T}no" >&6
15250 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15251 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15252 { (exit 1); exit 1; }; }
15253 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15254 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15255 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15259 case `$LD -v 2>&1 </dev/null` in
15260 *GNU* | *'with BFD'*)
15261 lt_cv_prog_gnu_ld=yes
15264 lt_cv_prog_gnu_ld=no
15268 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15269 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15270 with_gnu_ld=$lt_cv_prog_gnu_ld
15274 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15275 # archiving commands below assume that GNU ld is being used.
15276 if test "$with_gnu_ld" = yes; then
15277 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15278 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'
15280 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15283 # If archive_cmds runs LD, not CC, wlarc should be empty
15284 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15285 # investigate it a little bit more. (MM)
15288 # ancient GNU ld didn't support --whole-archive et. al.
15289 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15290 grep 'no-whole-archive' > /dev/null; then
15291 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15293 whole_archive_flag_spec_CXX=
15299 # A generic and very simple default shared library creation
15300 # command for GNU C++ for the case where it uses the native
15301 # linker, instead of GNU ld. If possible, this setting should
15302 # overridden to take advantage of the native linker features on
15303 # the platform it is being used on.
15304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15307 # Commands to make compiler produce verbose output that lists
15308 # what "hidden" libraries, object files and flags are used when
15309 # linking a shared library.
15310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15318 # PORTME: fill in a description of your system's C++ link characteristics
15319 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15320 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15324 # FIXME: insert proper C++ library support
15328 if test "$host_cpu" = ia64; then
15329 # On IA64, the linker does run time linking by default, so we don't
15330 # have to do anything special.
15331 aix_use_runtimelinking=no
15332 exp_sym_flag='-Bexport'
15335 aix_use_runtimelinking=no
15337 # Test if we are trying to use run time linking or normal
15338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15339 # need to do runtime linking.
15340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15341 for ld_flag in $LDFLAGS; do
15344 aix_use_runtimelinking=yes
15351 exp_sym_flag='-bexport'
15352 no_entry_flag='-bnoentry'
15355 # When large executables or shared objects are built, AIX ld can
15356 # have problems creating the table of contents. If linking a library
15357 # or program results in "error TOC overflow" add -mminimal-toc to
15358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15361 archive_cmds_CXX=''
15362 hardcode_direct_CXX=yes
15363 hardcode_libdir_separator_CXX=':'
15364 link_all_deplibs_CXX=yes
15366 if test "$GXX" = yes; then
15367 case $host_os in aix4.012|aix4.012.*)
15368 # We only want to do this on AIX 4.2 and lower, the check
15369 # below for broken collect2 doesn't work under 4.3+
15370 collect2name=`${CC} -print-prog-name=collect2`
15371 if test -f "$collect2name" && \
15372 strings "$collect2name" | grep resolve_lib_name >/dev/null
15374 # We have reworked collect2
15375 hardcode_direct_CXX=yes
15377 # We have old collect2
15378 hardcode_direct_CXX=unsupported
15379 # It fails to find uninstalled libraries when the uninstalled
15380 # path is not listed in the libpath. Setting hardcode_minus_L
15381 # to unsupported forces relinking
15382 hardcode_minus_L_CXX=yes
15383 hardcode_libdir_flag_spec_CXX='-L$libdir'
15384 hardcode_libdir_separator_CXX=
15387 shared_flag='-shared'
15390 if test "$host_cpu" = ia64; then
15391 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15392 # chokes on -Wl,-G. The following line is correct:
15395 if test "$aix_use_runtimelinking" = yes; then
15396 shared_flag='${wl}-G'
15398 shared_flag='${wl}-bM:SRE'
15403 # It seems that -bexpall does not export symbols beginning with
15404 # underscore (_), so it is better to generate a list of symbols to export.
15405 always_export_symbols_CXX=yes
15406 if test "$aix_use_runtimelinking" = yes; then
15407 # Warning - without using the other runtime loading flags (-brtl),
15408 # -berok will link without error, but may produce a broken library.
15409 allow_undefined_flag_CXX='-berok'
15410 # Determine the default libpath from the value encoded in an empty executable.
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>conftest.er1
15430 grep -v '^ *+' conftest.er1 >conftest.err
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -z "$ac_cxx_werror_flag"
15436 || test ! -s conftest.err'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; }; then
15449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15451 # Check for a 64-bit object if we didn't find anything.
15452 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; }
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15459 rm -f conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15463 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15465 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"
15467 if test "$host_cpu" = ia64; then
15468 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15469 allow_undefined_flag_CXX="-z nodefs"
15470 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"
15472 # Determine the default libpath from the value encoded in an empty executable.
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490 (eval $ac_link) 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -z "$ac_cxx_werror_flag"
15498 || test ! -s conftest.err'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; } &&
15504 { ac_try='test -s conftest$ac_exeext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15513 # Check for a 64-bit object if we didn't find anything.
15514 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; }
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15521 rm -f conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15526 # Warning - without using the other run time loading flags,
15527 # -berok will link without error, but may produce a broken library.
15528 no_undefined_flag_CXX=' ${wl}-bernotok'
15529 allow_undefined_flag_CXX=' ${wl}-berok'
15530 # -bexpall does not export symbols beginning with underscore (_)
15531 always_export_symbols_CXX=yes
15532 # Exported symbols can be pulled into shared objects from archives
15533 whole_archive_flag_spec_CXX=' '
15534 archive_cmds_need_lc_CXX=yes
15535 # This is similar to how AIX traditionally builds it's shared libraries.
15536 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'
15541 case $cc_basename in
15543 # FIXME: insert proper C++ library support
15550 cygwin* | mingw* | pw32*)
15551 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15552 # as there is no search path for DLLs.
15553 hardcode_libdir_flag_spec_CXX='-L$libdir'
15554 allow_undefined_flag_CXX=unsupported
15555 always_export_symbols_CXX=no
15556 enable_shared_with_static_runtimes_CXX=yes
15558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15559 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'
15560 # If the export-symbols file already is a .def file (1st line
15561 # is EXPORTS), use it as is; otherwise, prepend...
15562 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15563 cp $export_symbols $output_objdir/$soname.def;
15565 echo EXPORTS > $output_objdir/$soname.def;
15566 cat $export_symbols >> $output_objdir/$soname.def;
15568 $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'
15573 darwin* | rhapsody*)
15575 rhapsody* | darwin1.[012])
15576 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15580 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15582 case ${MACOSX_DEPLOYMENT_TARGET} in
15584 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15587 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15593 archive_cmds_need_lc_CXX=no
15594 hardcode_direct_CXX=no
15595 hardcode_automatic_CXX=yes
15596 hardcode_shlibpath_var_CXX=unsupported
15597 whole_archive_flag_spec_CXX=''
15598 link_all_deplibs_CXX=yes
15600 if test "$GXX" = yes ; then
15601 lt_int_apple_cc_single_mod=no
15602 output_verbose_link_cmd='echo'
15603 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15604 lt_int_apple_cc_single_mod=yes
15606 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15607 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15609 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'
15611 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15614 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}'
15616 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}'
15618 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}'
15620 case "$cc_basename" in
15622 output_verbose_link_cmd='echo'
15623 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'
15624 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15626 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}'
15627 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}'
15637 case $cc_basename in
15639 # FIXME: insert proper C++ library support
15643 # Green Hills C++ Compiler
15644 # FIXME: insert proper C++ library support
15648 # FIXME: insert proper C++ library support
15654 # C++ shared libraries reported to be fairly broken before switch to ELF
15658 archive_cmds_need_lc_CXX=no
15660 freebsd* | kfreebsd*-gnu)
15661 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669 hardcode_libdir_separator_CXX=:
15670 export_dynamic_flag_spec_CXX='${wl}-E'
15671 hardcode_direct_CXX=yes
15672 hardcode_minus_L_CXX=yes # Not in the search PATH,
15673 # but as the default
15674 # location of the library.
15676 case $cc_basename in
15678 # FIXME: insert proper C++ library support
15682 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'
15683 # Commands to make compiler produce verbose output that lists
15684 # what "hidden" libraries, object files and flags are used when
15685 # linking a shared library.
15687 # There doesn't appear to be a way to prevent this compiler from
15688 # explicitly linking system object files so we need to strip them
15689 # from the output so that they don't get included in the library
15691 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'
15694 if test "$GXX" = yes; then
15695 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'
15697 # FIXME: insert proper C++ library support
15704 if test $with_gnu_ld = no; then
15705 case "$host_cpu" in
15707 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15708 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15709 hardcode_libdir_separator_CXX=:
15712 hardcode_libdir_flag_spec_CXX='-L$libdir'
15715 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15716 hardcode_libdir_separator_CXX=:
15717 export_dynamic_flag_spec_CXX='${wl}-E'
15721 case "$host_cpu" in
15723 hardcode_direct_CXX=no
15724 hardcode_shlibpath_var_CXX=no
15727 hardcode_direct_CXX=no
15728 hardcode_shlibpath_var_CXX=no
15729 hardcode_minus_L_CXX=yes # Not in the search PATH,
15730 # but as the default
15731 # location of the library.
15734 hardcode_direct_CXX=yes
15735 hardcode_minus_L_CXX=yes # Not in the search PATH,
15736 # but as the default
15737 # location of the library.
15741 case $cc_basename in
15743 # FIXME: insert proper C++ library support
15747 case "$host_cpu" in
15749 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15755 # Commands to make compiler produce verbose output that lists
15756 # what "hidden" libraries, object files and flags are used when
15757 # linking a shared library.
15759 # There doesn't appear to be a way to prevent this compiler from
15760 # explicitly linking system object files so we need to strip them
15761 # from the output so that they don't get included in the library
15763 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'
15766 if test "$GXX" = yes; then
15767 if test $with_gnu_ld = no; then
15768 case "$host_cpu" in
15770 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15773 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'
15778 # FIXME: insert proper C++ library support
15785 case $cc_basename in
15788 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'
15790 # Archives containing C++ object files must be created using
15791 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15792 # necessary to make sure instantiated templates are included
15794 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15797 if test "$GXX" = yes; then
15798 if test "$with_gnu_ld" = no; then
15799 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'
15801 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'
15804 link_all_deplibs_CXX=yes
15807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15808 hardcode_libdir_separator_CXX=:
15811 case $cc_basename in
15813 # Kuck and Associates, Inc. (KAI) C++ Compiler
15815 # KCC will only create a shared library if the output file
15816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817 # to its proper name (with version) after linking.
15818 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'
15819 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'
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 $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'
15830 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15833 # Archives containing C++ object files must be created using
15834 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15835 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15840 # version 8.0 and above of icpc choke on multiply defined symbols
15841 # if we add $predep_objects and $postdep_objects, however 7.1 and
15842 # earlier do not add the objects themselves.
15843 case `$CC -V 2>&1` in
15845 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846 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'
15848 *) # Version 8.0 or newer
15849 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15850 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15853 archive_cmds_need_lc_CXX=no
15854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15855 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15856 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15860 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861 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'
15863 runpath_var=LD_RUN_PATH
15864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15865 hardcode_libdir_separator_CXX=:
15867 # Commands to make compiler produce verbose output that lists
15868 # what "hidden" libraries, object files and flags are used when
15869 # linking a shared library.
15871 # There doesn't appear to be a way to prevent this compiler from
15872 # explicitly linking system object files so we need to strip them
15873 # from the output so that they don't get included in the library
15875 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'
15880 # FIXME: insert proper C++ library support
15884 # FIXME: insert proper C++ library support
15888 case $cc_basename in
15890 # FIXME: insert proper C++ library support
15894 # FIXME: insert proper C++ library support
15900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15901 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15903 hardcode_libdir_flag_spec_CXX='-R$libdir'
15904 hardcode_direct_CXX=yes
15905 hardcode_shlibpath_var_CXX=no
15907 # Workaround some broken pre-1.5 toolchains
15908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15911 # C++ shared libraries are fairly broken
15915 hardcode_direct_CXX=yes
15916 hardcode_shlibpath_var_CXX=no
15917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15920 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15921 export_dynamic_flag_spec_CXX='${wl}-E'
15922 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15924 output_verbose_link_cmd='echo'
15927 case $cc_basename in
15929 # Kuck and Associates, Inc. (KAI) C++ Compiler
15931 # KCC will only create a shared library if the output file
15932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15933 # to its proper name (with version) after linking.
15934 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'
15936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15937 hardcode_libdir_separator_CXX=:
15939 # Archives containing C++ object files must be created using
15940 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15941 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15945 # Rational C++ 2.4.1
15946 # FIXME: insert proper C++ library support
15950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15951 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'
15953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15954 hardcode_libdir_separator_CXX=:
15956 # Commands to make compiler produce verbose output that lists
15957 # what "hidden" libraries, object files and flags are used when
15958 # linking a shared library.
15960 # There doesn't appear to be a way to prevent this compiler from
15961 # explicitly linking system object files so we need to strip them
15962 # from the output so that they don't get included in the library
15964 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'
15967 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15968 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15969 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'
15971 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15972 hardcode_libdir_separator_CXX=:
15974 # Commands to make compiler produce verbose output that lists
15975 # what "hidden" libraries, object files and flags are used when
15976 # linking a shared library.
15977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15980 # FIXME: insert proper C++ library support
15987 case $cc_basename in
15989 # Kuck and Associates, Inc. (KAI) C++ Compiler
15991 # KCC will only create a shared library if the output file
15992 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15993 # to its proper name (with version) after linking.
15994 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'
15996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15997 hardcode_libdir_separator_CXX=:
15999 # Archives containing C++ object files must be created using
16000 # the KAI C++ compiler.
16001 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16004 # Rational C++ 2.4.1
16005 # FIXME: insert proper C++ library support
16009 allow_undefined_flag_CXX=' -expect_unresolved \*'
16010 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'
16011 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16012 echo "-hidden">> $lib.exp~
16013 $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~
16016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16017 hardcode_libdir_separator_CXX=:
16019 # Commands to make compiler produce verbose output that lists
16020 # what "hidden" libraries, object files and flags are used when
16021 # linking a shared library.
16023 # There doesn't appear to be a way to prevent this compiler from
16024 # explicitly linking system object files so we need to strip them
16025 # from the output so that they don't get included in the library
16027 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'
16030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16031 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16032 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'
16034 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16035 hardcode_libdir_separator_CXX=:
16037 # Commands to make compiler produce verbose output that lists
16038 # what "hidden" libraries, object files and flags are used when
16039 # linking a shared library.
16040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16043 # FIXME: insert proper C++ library support
16050 # FIXME: insert proper C++ library support
16054 archive_cmds_need_lc_CXX=no
16055 case $cc_basename in
16057 # FIXME: insert proper C++ library support
16061 # FIXME: insert proper C++ library support
16067 case $cc_basename in
16070 # FIXME: insert proper C++ library support
16075 # FIXME: insert proper C++ library support
16079 # FIXME: insert proper C++ library support
16085 case $cc_basename in
16087 # Sun C++ 4.2, 5.x and Centerline C++
16088 no_undefined_flag_CXX=' -zdefs'
16089 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16090 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16091 $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'
16093 hardcode_libdir_flag_spec_CXX='-R$libdir'
16094 hardcode_shlibpath_var_CXX=no
16096 solaris2.0-5 | solaris2.0-5.*) ;;
16098 # The C++ compiler is used as linker so we must use $wl
16099 # flag to pass the commands to the underlying system
16101 # Supported since Solaris 2.6 (maybe 2.5.1?)
16102 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16105 link_all_deplibs_CXX=yes
16107 # Commands to make compiler produce verbose output that lists
16108 # what "hidden" libraries, object files and flags are used when
16109 # linking a shared library.
16111 # There doesn't appear to be a way to prevent this compiler from
16112 # explicitly linking system object files so we need to strip them
16113 # from the output so that they don't get included in the library
16115 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'
16117 # Archives containing C++ object files must be created using
16118 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16119 # necessary to make sure instantiated templates are included
16121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16124 # Green Hills C++ Compiler
16125 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16127 # The C++ compiler must be used to create the archive.
16128 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16131 # GNU C++ compiler with Solaris linker
16132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16133 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16134 if $CC --version | grep -v '^2\.7' > /dev/null; then
16135 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16136 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16139 # Commands to make compiler produce verbose output that lists
16140 # what "hidden" libraries, object files and flags are used when
16141 # linking a shared library.
16142 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16144 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16146 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16147 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16150 # Commands to make compiler produce verbose output that lists
16151 # what "hidden" libraries, object files and flags are used when
16152 # linking a shared library.
16153 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16156 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16161 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16162 archive_cmds_need_lc_CXX=no
16165 case $cc_basename in
16167 # NonStop-UX NCC 3.20
16168 # FIXME: insert proper C++ library support
16172 # FIXME: insert proper C++ library support
16178 # FIXME: insert proper C++ library support
16182 # FIXME: insert proper C++ library support
16186 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16187 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16188 test "$ld_shlibs_CXX" = no && can_build_shared=no
16194 cat > conftest.$ac_ext <<EOF
16198 Foo (void) { a = 0; }
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; then
16209 # Parse the compiler output and extract the necessary
16210 # objects, libraries and library flags.
16212 # Sentinel used to keep track of whether or not we are before
16213 # the conftest object file.
16214 pre_test_object_deps_done=no
16216 # The `*' in the case matches for architectures that use `case' in
16217 # $output_verbose_cmd can trigger glob expansion during the loop
16218 # eval without this substitution.
16219 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16221 for p in `eval $output_verbose_link_cmd`; do
16225 # Some compilers place space between "-{L,R}" and the path.
16226 # Remove the space.
16227 if test $p = "-L" \
16228 || test $p = "-R"; then
16235 if test "$pre_test_object_deps_done" = no; then
16238 # Internal compiler library paths should come after those
16239 # provided the user. The postdeps already come after the
16240 # user supplied libs so there is no need to process them.
16241 if test -z "$compiler_lib_search_path_CXX"; then
16242 compiler_lib_search_path_CXX="${prev}${p}"
16244 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16247 # The "-l" case would never come before the object being
16248 # linked, so don't bother handling this case.
16251 if test -z "$postdeps_CXX"; then
16252 postdeps_CXX="${prev}${p}"
16254 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16260 # This assumes that the test object file only shows up
16261 # once in the compiler output.
16262 if test "$p" = "conftest.$objext"; then
16263 pre_test_object_deps_done=yes
16267 if test "$pre_test_object_deps_done" = no; then
16268 if test -z "$predep_objects_CXX"; then
16269 predep_objects_CXX="$p"
16271 predep_objects_CXX="$predep_objects_CXX $p"
16274 if test -z "$postdep_objects_CXX"; then
16275 postdep_objects_CXX="$p"
16277 postdep_objects_CXX="$postdep_objects_CXX $p"
16282 *) ;; # Ignore the rest.
16290 echo "libtool.m4: error: problem compiling CXX test program"
16293 $rm -f confest.$objext
16295 case " $postdeps_CXX " in
16296 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16299 lt_prog_compiler_wl_CXX=
16300 lt_prog_compiler_pic_CXX=
16301 lt_prog_compiler_static_CXX=
16303 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16306 # C++ specific cases for pic, static, wl, etc.
16307 if test "$GXX" = yes; then
16308 lt_prog_compiler_wl_CXX='-Wl,'
16309 lt_prog_compiler_static_CXX='-static'
16313 # All AIX code is PIC.
16314 if test "$host_cpu" = ia64; then
16315 # AIX 5 now supports IA64 processor
16316 lt_prog_compiler_static_CXX='-Bstatic'
16320 # FIXME: we need at least 68020 code to build shared libraries, but
16321 # adding the `-m68020' flag to GCC prevents building anything better,
16323 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16325 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16326 # PIC is the default for these OSes.
16328 mingw* | os2* | pw32*)
16329 # This hack is so that the source file can tell whether it is being
16330 # built for inclusion in a dll (and should export symbols for example).
16331 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16333 darwin* | rhapsody*)
16334 # PIC is the default on this platform
16335 # Common symbols not allowed in MH_DYLIB files
16336 lt_prog_compiler_pic_CXX='-fno-common'
16339 # DJGPP does not support shared libraries at all
16340 lt_prog_compiler_pic_CXX=
16343 if test -d /usr/nec; then
16344 lt_prog_compiler_pic_CXX=-Kconform_pic
16348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16349 # not for PA HP-UX.
16350 case "$host_cpu" in
16354 lt_prog_compiler_pic_CXX='-fPIC'
16359 lt_prog_compiler_pic_CXX='-fPIC'
16365 # All AIX code is PIC.
16366 if test "$host_cpu" = ia64; then
16367 # AIX 5 now supports IA64 processor
16368 lt_prog_compiler_static_CXX='-Bstatic'
16370 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16374 case $cc_basename in
16376 # Green Hills C++ Compiler
16377 # _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"
16382 # PIC is the default on this platform
16383 # Common symbols not allowed in MH_DYLIB files
16384 case "$cc_basename" in
16386 lt_prog_compiler_pic_CXX='-qnocommon'
16387 lt_prog_compiler_wl_CXX='-Wl,'
16392 case $cc_basename in
16394 lt_prog_compiler_pic_CXX='-KPIC'
16397 # Green Hills C++ Compiler
16398 lt_prog_compiler_pic_CXX='-pic'
16404 freebsd* | kfreebsd*-gnu)
16405 # FreeBSD uses GNU C++
16407 hpux9* | hpux10* | hpux11*)
16408 case $cc_basename in
16410 lt_prog_compiler_wl_CXX='-Wl,'
16411 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16412 if test "$host_cpu" != ia64; then
16413 lt_prog_compiler_pic_CXX='+Z'
16417 lt_prog_compiler_wl_CXX='-Wl,'
16418 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16419 case "$host_cpu" in
16424 lt_prog_compiler_pic_CXX='+Z'
16432 irix5* | irix6* | nonstopux*)
16433 case $cc_basename in
16435 lt_prog_compiler_wl_CXX='-Wl,'
16436 lt_prog_compiler_static_CXX='-non_shared'
16437 # CC pic flag -KPIC is the default.
16444 case $cc_basename in
16447 lt_prog_compiler_wl_CXX='--backend -Wl,'
16448 lt_prog_compiler_pic_CXX='-fPIC'
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 lt_prog_compiler_pic_CXX='-KPIC'
16454 lt_prog_compiler_static_CXX='-static'
16458 # Make sure the PIC flag is empty. It appears that all Alpha
16459 # Linux and Compaq Tru64 Unix objects are PIC.
16460 lt_prog_compiler_pic_CXX=
16461 lt_prog_compiler_static_CXX='-non_shared'
16472 case $cc_basename in
16474 lt_prog_compiler_pic_CXX='-W c,exportall'
16482 osf3* | osf4* | osf5*)
16483 case $cc_basename in
16485 lt_prog_compiler_wl_CXX='--backend -Wl,'
16488 # Rational C++ 2.4.1
16489 lt_prog_compiler_pic_CXX='-pic'
16492 # Digital/Compaq C++
16493 lt_prog_compiler_wl_CXX='-Wl,'
16494 # Make sure the PIC flag is empty. It appears that all Alpha
16495 # Linux and Compaq Tru64 Unix objects are PIC.
16496 lt_prog_compiler_pic_CXX=
16497 lt_prog_compiler_static_CXX='-non_shared'
16506 case $cc_basename in
16508 lt_prog_compiler_pic_CXX='-fPIC'
16515 case $cc_basename in
16517 # Sun C++ 4.2, 5.x and Centerline C++
16518 lt_prog_compiler_pic_CXX='-KPIC'
16519 lt_prog_compiler_static_CXX='-Bstatic'
16520 lt_prog_compiler_wl_CXX='-Qoption ld '
16523 # Green Hills C++ Compiler
16524 lt_prog_compiler_pic_CXX='-PIC'
16531 case $cc_basename in
16534 lt_prog_compiler_pic_CXX='-pic'
16535 lt_prog_compiler_static_CXX='-Bstatic'
16539 lt_prog_compiler_pic_CXX='-pic'
16546 case $cc_basename in
16548 # NonStop-UX NCC 3.20
16549 lt_prog_compiler_pic_CXX='-KPIC'
16560 lt_prog_compiler_can_build_shared_CXX=no
16565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16566 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16569 # Check to make sure the PIC flag actually works.
16571 if test -n "$lt_prog_compiler_pic_CXX"; then
16573 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16575 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 lt_prog_compiler_pic_works_CXX=no
16579 ac_outfile=conftest.$ac_objext
16580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16581 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16582 # Insert the option either (1) after the last *FLAGS variable, or
16583 # (2) before a word containing "conftest.", or (3) at the end.
16584 # Note that $ac_compile itself does not contain backslashes and begins
16585 # with a dollar sign (not a hyphen), so the echo should work correctly.
16586 # The option is referenced via a variable to avoid confusing sed.
16587 lt_compile=`echo "$ac_compile" | $SED \
16588 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16590 -e 's:$: $lt_compiler_flag:'`
16591 (eval echo "\"\$as_me:16591: $lt_compile\"" >&5)
16592 (eval "$lt_compile" 2>conftest.err)
16594 cat conftest.err >&5
16595 echo "$as_me:16595: \$? = $ac_status" >&5
16596 if (exit $ac_status) && test -s "$ac_outfile"; then
16597 # The compiler can only warn and ignore the option if not recognized
16598 # So say no if there are warnings
16599 if test ! -s conftest.err; then
16600 lt_prog_compiler_pic_works_CXX=yes
16606 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16607 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16609 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16610 case $lt_prog_compiler_pic_CXX in
16612 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16615 lt_prog_compiler_pic_CXX=
16616 lt_prog_compiler_can_build_shared_CXX=no
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16623 lt_prog_compiler_pic_CXX=
16626 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16630 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16631 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16632 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 lt_cv_prog_compiler_c_o_CXX=no
16636 $rm -r conftest 2>/dev/null
16640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16642 lt_compiler_flag="-o out/conftest2.$ac_objext"
16643 # Insert the option either (1) after the last *FLAGS variable, or
16644 # (2) before a word containing "conftest.", or (3) at the end.
16645 # Note that $ac_compile itself does not contain backslashes and begins
16646 # with a dollar sign (not a hyphen), so the echo should work correctly.
16647 lt_compile=`echo "$ac_compile" | $SED \
16648 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16650 -e 's:$: $lt_compiler_flag:'`
16651 (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
16652 (eval "$lt_compile" 2>out/conftest.err)
16654 cat out/conftest.err >&5
16655 echo "$as_me:16655: \$? = $ac_status" >&5
16656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16658 # The compiler can only warn and ignore the option if not recognized
16659 # So say no if there are warnings
16660 if test ! -s out/conftest.err; then
16661 lt_cv_prog_compiler_c_o_CXX=yes
16666 # SGI C++ compiler will create directory out/ii_files/ for
16667 # template instantiation
16668 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16669 $rm out/* && rmdir out
16675 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16676 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16679 hard_links="nottested"
16680 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16681 # do not overwrite the value of need_locks provided by the user
16682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16683 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16688 ln conftest.a conftest.b 2>&5 || hard_links=no
16689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16690 echo "$as_me:$LINENO: result: $hard_links" >&5
16691 echo "${ECHO_T}$hard_links" >&6
16692 if test "$hard_links" = no; then
16693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16694 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16701 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16704 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16707 # If we're using GNU nm, then we don't want the "-C" option.
16708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16710 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'
16712 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'
16716 export_symbols_cmds_CXX="$ltdll_cmds"
16719 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16726 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16727 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16728 test "$ld_shlibs_CXX" = no && can_build_shared=no
16730 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16731 if test "$GCC" = yes; then
16732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16736 # Do we need to explicitly link libc?
16738 case "x$archive_cmds_need_lc_CXX" in
16740 # Assume -lc should be added
16741 archive_cmds_need_lc_CXX=yes
16743 if test "$enable_shared" = yes && test "$GCC" = yes; then
16744 case $archive_cmds_CXX in
16746 # FIXME: we may have to deal with multi-command sequences.
16749 # Test whether the compiler implicitly links with -lc since on some
16750 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16751 # to ld, don't add -lc before -lgcc.
16752 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16753 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758 (eval $ac_compile) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } 2>conftest.err; then
16764 libobjs=conftest.$ac_objext
16766 wl=$lt_prog_compiler_wl_CXX
16772 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16773 allow_undefined_flag_CXX=
16774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16775 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }
16780 archive_cmds_need_lc_CXX=no
16782 archive_cmds_need_lc_CXX=yes
16784 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16786 cat conftest.err 1>&5
16789 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16790 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16797 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16799 library_names_spec=
16800 libname_spec='lib$name'
16804 postuninstall_cmds=
16808 shlibpath_overrides_runpath=unknown
16810 dynamic_linker="$host_os ld.so"
16811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16812 if test "$GCC" = yes; then
16813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16814 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16815 # if the path contains ";" then we assume it to be the separator
16816 # otherwise default to the standard path separator (i.e. ":") - it is
16817 # assumed that no part of a normal pathname contains ";" but that should
16818 # okay in the real world where ";" in dirpaths is itself problematic.
16819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16826 need_lib_prefix=unknown
16827 hardcode_into_libs=no
16829 # when you set need_version to no, make sure it does not cause -set_version
16830 # flags to be left without arguments
16831 need_version=unknown
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16837 shlibpath_var=LIBPATH
16839 # AIX 3 has no versioning support, so we append a major version to the name.
16840 soname_spec='${libname}${release}${shared_ext}$major'
16847 hardcode_into_libs=yes
16848 if test "$host_cpu" = ia64; then
16849 # AIX 5 supports IA64
16850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16851 shlibpath_var=LD_LIBRARY_PATH
16853 # With GCC up to 2.95.x, collect2 would create an import file
16854 # for dependence libraries. The import file would start with
16855 # the line `#! .'. This would cause the generated library to
16856 # depend on `.', always an invalid library. This was fixed in
16857 # development snapshots of GCC prior to 3.0.
16859 aix4 | aix4.[01] | aix4.[01].*)
16860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16862 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16865 can_build_shared=no
16869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16870 # soname into executable. Probably we can add versioning support to
16871 # collect2, so additional links can be useful in future.
16872 if test "$aix_use_runtimelinking" = yes; then
16873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16874 # instead of lib<name>.a to let people know that these are not
16875 # typical AIX shared libraries.
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 # We preserve .a as extension for shared libraries through AIX4.2
16879 # and later when we are not doing run time linking.
16880 library_names_spec='${libname}${release}.a $libname.a'
16881 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LIBPATH
16888 library_names_spec='$libname.ixlibrary $libname.a'
16889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16890 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'
16894 library_names_spec='${libname}${shared_ext}'
16895 dynamic_linker="$host_os ld.so"
16896 shlibpath_var=LIBRARY_PATH
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16908 # the default ld.so.conf also contains /usr/contrib/lib and
16909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16910 # libtool to hard-code these into programs
16913 cygwin* | mingw* | pw32*)
16914 version_type=windows
16919 case $GCC,$host_os in
16920 yes,cygwin* | yes,mingw* | yes,pw32*)
16921 library_names_spec='$libname.dll.a'
16922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16923 postinstall_cmds='base_file=`basename \${file}`~
16924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16925 dldir=$destdir/`dirname \$dlpath`~
16926 test -d \$dldir || mkdir -p \$dldir~
16927 $install_prog $dir/$dlname \$dldir/$dlname'
16928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16929 dlpath=$dir/\$dldll~
16931 shlibpath_overrides_runpath=yes
16935 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16936 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16937 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16940 # MinGW DLLs use traditional 'lib' prefix
16941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16943 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16944 # It is most probably a Windows format PATH printed by
16945 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16946 # path with ; separators, and with drive letters. We can handle the
16947 # drive letters (cygwin fileutils understands them), so leave them,
16948 # especially as we might pass files found there to a mingw objdump,
16949 # which wouldn't understand a cygwinified path. Ahh.
16950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16956 # pw32 DLLs use 'pw' prefix rather than 'lib'
16957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16966 dynamic_linker='Win32 ld.exe'
16967 # FIXME: first we should search . and the directory the executable is in
16971 darwin* | rhapsody*)
16972 dynamic_linker="$host_os dyld"
16973 version_type=darwin
16976 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16977 soname_spec='${libname}${release}${major}$shared_ext'
16978 shlibpath_overrides_runpath=yes
16979 shlibpath_var=DYLD_LIBRARY_PATH
16980 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16981 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16982 if test "$GCC" = yes; then
16983 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"`
16985 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 shlibpath_var=LD_LIBRARY_PATH
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 dynamic_linker='GNU ld.so'
17016 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17017 version_type=freebsd-$objformat
17018 case $version_type in
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17029 shlibpath_var=LD_LIBRARY_PATH
17032 shlibpath_overrides_runpath=yes
17034 freebsd3.01* | freebsdelf3.01*)
17035 shlibpath_overrides_runpath=yes
17036 hardcode_into_libs=yes
17039 shlibpath_overrides_runpath=no
17040 hardcode_into_libs=yes
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 shlibpath_var=LD_LIBRARY_PATH
17052 hardcode_into_libs=yes
17055 hpux9* | hpux10* | hpux11*)
17056 # Give a soname corresponding to the major version so that dld.sl refuses to
17057 # link against other versions.
17061 case "$host_cpu" in
17064 hardcode_into_libs=yes
17065 dynamic_linker="$host_os dld.so"
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 if test "X$HPUX_IA64_MODE" = X32; then
17071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17079 hardcode_into_libs=yes
17080 dynamic_linker="$host_os dld.sl"
17081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17090 dynamic_linker="$host_os dld.sl"
17091 shlibpath_var=SHLIB_PATH
17092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17098 postinstall_cmds='chmod 555 $lib'
17101 irix5* | irix6* | nonstopux*)
17103 nonstopux*) version_type=nonstopux ;;
17105 if test "$lt_cv_prog_gnu_ld" = yes; then
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17116 irix5* | nonstopux*)
17117 libsuff= shlibsuff=
17120 case $LD in # libtool.m4 will add one of these switches to LD
17121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17122 libsuff= shlibsuff= libmagic=32-bit;;
17123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17124 libsuff=32 shlibsuff=N32 libmagic=N32;;
17125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17127 *) libsuff= shlibsuff= libmagic=never-match;;
17131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17132 shlibpath_overrides_runpath=no
17133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17135 hardcode_into_libs=yes
17138 # No shared lib support for Linux oldld, aout, or coff.
17139 linux*oldld* | linux*aout* | linux*coff*)
17143 # This must be Linux ELF.
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=no
17153 # This implies no fast_install, which is unacceptable.
17154 # Some rework will be needed to allow for fast_install
17155 # before this can be enabled.
17156 hardcode_into_libs=yes
17158 # Append ld.so.conf contents to the search path
17159 if test -f /etc/ld.so.conf; then
17160 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17164 # We used to test for /lib/ld.so.1 and disable shared libraries on
17165 # powerpc, because MkLinux only supported shared libraries with the
17166 # GNU dynamic linker. Since this was broken with cross compilers,
17167 # most powerpc-linux boxes support dynamic linking these days and
17168 # people can always --disable-shared, the test was removed, and we
17169 # assume the GNU/Linux dynamic linker is in use.
17170 dynamic_linker='GNU/Linux ld.so'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=no
17181 hardcode_into_libs=yes
17182 dynamic_linker='GNU ld.so'
17189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17192 dynamic_linker='NetBSD (a.out) ld.so'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17195 soname_spec='${libname}${release}${shared_ext}$major'
17196 dynamic_linker='NetBSD ld.elf_so'
17198 shlibpath_var=LD_LIBRARY_PATH
17199 shlibpath_overrides_runpath=yes
17200 hardcode_into_libs=yes
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 shlibpath_var=LD_LIBRARY_PATH
17207 shlibpath_overrides_runpath=yes
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=yes
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17229 openbsd2.[89] | openbsd2.[89].*)
17230 shlibpath_overrides_runpath=no
17233 shlibpath_overrides_runpath=yes
17237 shlibpath_overrides_runpath=yes
17242 libname_spec='$name'
17245 library_names_spec='$libname${shared_ext} $libname.a'
17246 dynamic_linker='OS/2 ld.exe'
17247 shlibpath_var=LIBPATH
17250 osf3* | osf4* | osf5*)
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17265 shlibpath_var=LD_LIBRARY_PATH
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=yes
17276 hardcode_into_libs=yes
17277 # ldd complains unless libraries are executable
17278 postinstall_cmds='chmod +x $lib'
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath=yes
17287 if test "$with_gnu_ld" = yes; then
17293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 case $host_vendor in
17300 shlibpath_overrides_runpath=no
17302 export_dynamic_flag_spec='${wl}-Blargedynsym'
17303 runpath_var=LD_RUN_PATH
17311 shlibpath_overrides_runpath=no
17312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17318 if test -d /usr/nec ;then
17320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17321 soname_spec='$libname${shared_ext}.$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17337 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17338 echo "${ECHO_T}$dynamic_linker" >&6
17339 test "$dynamic_linker" = no && can_build_shared=no
17341 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17343 hardcode_action_CXX=
17344 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17345 test -n "$runpath_var_CXX" || \
17346 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17348 # We can hardcode non-existant directories.
17349 if test "$hardcode_direct_CXX" != no &&
17350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17351 # have to relink, otherwise we might link with an installed library
17352 # when we should be linking with a yet-to-be-installed one
17353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17354 test "$hardcode_minus_L_CXX" != no; then
17355 # Linking always hardcodes the temporary library directory.
17356 hardcode_action_CXX=relink
17358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17359 hardcode_action_CXX=immediate
17362 # We cannot hardcode anything, or else we can only hardcode existing
17364 hardcode_action_CXX=unsupported
17366 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17367 echo "${ECHO_T}$hardcode_action_CXX" >&6
17369 if test "$hardcode_action_CXX" = relink; then
17370 # Fast installation is not supported
17371 enable_fast_install=no
17372 elif test "$shlibpath_overrides_runpath" = yes ||
17373 test "$enable_shared" = no; then
17374 # Fast installation is not necessary
17375 enable_fast_install=needless
17380 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17381 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17382 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17385 echo "$as_me:$LINENO: result: yes" >&5
17386 echo "${ECHO_T}yes" >&6
17388 # FIXME - insert some real tests, host_os isn't really good enough
17391 if test -n "$STRIP" ; then
17392 striplib="$STRIP -x"
17393 echo "$as_me:$LINENO: result: yes" >&5
17394 echo "${ECHO_T}yes" >&6
17396 echo "$as_me:$LINENO: result: no" >&5
17397 echo "${ECHO_T}no" >&6
17401 echo "$as_me:$LINENO: result: no" >&5
17402 echo "${ECHO_T}no" >&6
17407 if test "x$enable_dlopen" != xyes; then
17408 enable_dlopen=unknown
17409 enable_dlopen_self=unknown
17410 enable_dlopen_self_static=unknown
17417 lt_cv_dlopen="load_add_on"
17419 lt_cv_dlopen_self=yes
17423 lt_cv_dlopen="LoadLibrary"
17428 lt_cv_dlopen="dlopen"
17433 # if libdl is installed we need to link against it
17434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17435 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 ac_check_lib_save_LIBS=$LIBS
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17448 /* Override any gcc2 internal prototype to avoid an error. */
17452 /* We use char because int might match the return type of a gcc2
17453 builtin and then its argument prototype would still apply. */
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17465 (eval $ac_link) 2>conftest.er1
17467 grep -v '^ *+' conftest.er1 >conftest.err
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_cxx_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_cv_lib_dl_dlopen=yes
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17490 ac_cv_lib_dl_dlopen=no
17492 rm -f conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17498 if test $ac_cv_lib_dl_dlopen = yes; then
17499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17502 lt_cv_dlopen="dyld"
17504 lt_cv_dlopen_self=yes
17511 echo "$as_me:$LINENO: checking for shl_load" >&5
17512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17513 if test "${ac_cv_func_shl_load+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 cat >conftest.$ac_ext <<_ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17524 #define shl_load innocuous_shl_load
17526 /* System header to define __stub macros and hopefully few prototypes,
17527 which can conflict with char shl_load (); below.
17528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529 <limits.h> exists even on freestanding compilers. */
17532 # include <limits.h>
17534 # include <assert.h>
17539 /* Override any gcc2 internal prototype to avoid an error. */
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17547 /* The GNU C library defines this for functions which it implements
17548 to always fail with ENOSYS. Some functions are actually named
17549 something starting with __ and the normal name is an alias. */
17550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17553 char (*f) () = shl_load;
17562 return f != shl_load;
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569 (eval $ac_link) 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_cxx_werror_flag"
17577 || test ! -s conftest.err'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest$ac_exeext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 ac_cv_func_shl_load=yes
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ac_cv_func_shl_load=no
17596 rm -f conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17599 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17601 if test $ac_cv_func_shl_load = yes; then
17602 lt_cv_dlopen="shl_load"
17604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 ac_check_lib_save_LIBS=$LIBS
17611 cat >conftest.$ac_ext <<_ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17618 /* Override any gcc2 internal prototype to avoid an error. */
17622 /* We use char because int might match the return type of a gcc2
17623 builtin and then its argument prototype would still apply. */
17633 rm -f conftest.$ac_objext conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635 (eval $ac_link) 2>conftest.er1
17637 grep -v '^ *+' conftest.er1 >conftest.err
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
17642 { ac_try='test -z "$ac_cxx_werror_flag"
17643 || test ! -s conftest.err'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_lib_dld_shl_load=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_lib_dld_shl_load=no
17662 rm -f conftest.err conftest.$ac_objext \
17663 conftest$ac_exeext conftest.$ac_ext
17664 LIBS=$ac_check_lib_save_LIBS
17666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17668 if test $ac_cv_lib_dld_shl_load = yes; then
17669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17671 echo "$as_me:$LINENO: checking for dlopen" >&5
17672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17673 if test "${ac_cv_func_dlopen+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17684 #define dlopen innocuous_dlopen
17686 /* System header to define __stub macros and hopefully few prototypes,
17687 which can conflict with char dlopen (); below.
17688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689 <limits.h> exists even on freestanding compilers. */
17692 # include <limits.h>
17694 # include <assert.h>
17699 /* Override any gcc2 internal prototype to avoid an error. */
17704 /* We use char because int might match the return type of a gcc2
17705 builtin and then its argument prototype would still apply. */
17707 /* The GNU C library defines this for functions which it implements
17708 to always fail with ENOSYS. Some functions are actually named
17709 something starting with __ and the normal name is an alias. */
17710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17713 char (*f) () = dlopen;
17722 return f != dlopen;
17727 rm -f conftest.$ac_objext conftest$ac_exeext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17729 (eval $ac_link) 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try='test -z "$ac_cxx_werror_flag"
17737 || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest$ac_exeext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_func_dlopen=yes
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 ac_cv_func_dlopen=no
17756 rm -f conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17761 if test $ac_cv_func_dlopen = yes; then
17762 lt_cv_dlopen="dlopen"
17764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 ac_check_lib_save_LIBS=$LIBS
17771 cat >conftest.$ac_ext <<_ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17778 /* Override any gcc2 internal prototype to avoid an error. */
17782 /* We use char because int might match the return type of a gcc2
17783 builtin and then its argument prototype would still apply. */
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17795 (eval $ac_link) 2>conftest.er1
17797 grep -v '^ *+' conftest.er1 >conftest.err
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_cxx_werror_flag"
17803 || test ! -s conftest.err'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest$ac_exeext'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_lib_dl_dlopen=yes
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 ac_cv_lib_dl_dlopen=no
17822 rm -f conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17828 if test $ac_cv_lib_dl_dlopen = yes; then
17829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17836 ac_check_lib_save_LIBS=$LIBS
17837 LIBS="-lsvld $LIBS"
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 /* Override any gcc2 internal prototype to avoid an error. */
17849 /* We use char because int might match the return type of a gcc2
17850 builtin and then its argument prototype would still apply. */
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_cxx_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_lib_svld_dlopen=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_cv_lib_svld_dlopen=no
17889 rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17895 if test $ac_cv_lib_svld_dlopen = yes; then
17896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17898 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 ac_check_lib_save_LIBS=$LIBS
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17912 /* Override any gcc2 internal prototype to avoid an error. */
17916 /* We use char because int might match the return type of a gcc2
17917 builtin and then its argument prototype would still apply. */
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_cxx_werror_flag"
17937 || test ! -s conftest.err'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_lib_dld_dld_link=yes
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 ac_cv_lib_dld_dld_link=no
17956 rm -f conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_check_lib_save_LIBS
17960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17961 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17962 if test $ac_cv_lib_dld_dld_link = yes; then
17963 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17984 if test "x$lt_cv_dlopen" != xno; then
17990 case $lt_cv_dlopen in
17992 save_CPPFLAGS="$CPPFLAGS"
17993 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17995 save_LDFLAGS="$LDFLAGS"
17996 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17999 LIBS="$lt_cv_dlopen_libs $LIBS"
18001 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18002 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18003 if test "${lt_cv_dlopen_self+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 if test "$cross_compiling" = yes; then :
18007 lt_cv_dlopen_self=cross
18009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18010 lt_status=$lt_dlunknown
18011 cat > conftest.$ac_ext <<EOF
18012 #line 18012 "configure"
18013 #include "confdefs.h"
18022 # define LT_DLGLOBAL RTLD_GLOBAL
18025 # define LT_DLGLOBAL DL_GLOBAL
18027 # define LT_DLGLOBAL 0
18031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18032 find out it does not work in some platform. */
18033 #ifndef LT_DLLAZY_OR_NOW
18035 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18038 # define LT_DLLAZY_OR_NOW DL_LAZY
18041 # define LT_DLLAZY_OR_NOW RTLD_NOW
18044 # define LT_DLLAZY_OR_NOW DL_NOW
18046 # define LT_DLLAZY_OR_NOW 0
18054 extern "C" void exit (int);
18057 void fnord() { int i=42;}
18060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18061 int status = $lt_dlunknown;
18065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18067 /* dlclose (self); */
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074 (eval $ac_link) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18078 (./conftest; exit; ) 2>/dev/null
18080 case x$lt_status in
18081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18083 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18086 # compilation failed
18087 lt_cv_dlopen_self=no
18094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18095 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18097 if test "x$lt_cv_dlopen_self" = xyes; then
18098 LDFLAGS="$LDFLAGS $link_static_flag"
18099 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18100 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18101 if test "${lt_cv_dlopen_self_static+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 if test "$cross_compiling" = yes; then :
18105 lt_cv_dlopen_self_static=cross
18107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18108 lt_status=$lt_dlunknown
18109 cat > conftest.$ac_ext <<EOF
18110 #line 18110 "configure"
18111 #include "confdefs.h"
18120 # define LT_DLGLOBAL RTLD_GLOBAL
18123 # define LT_DLGLOBAL DL_GLOBAL
18125 # define LT_DLGLOBAL 0
18129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18130 find out it does not work in some platform. */
18131 #ifndef LT_DLLAZY_OR_NOW
18133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18136 # define LT_DLLAZY_OR_NOW DL_LAZY
18139 # define LT_DLLAZY_OR_NOW RTLD_NOW
18142 # define LT_DLLAZY_OR_NOW DL_NOW
18144 # define LT_DLLAZY_OR_NOW 0
18152 extern "C" void exit (int);
18155 void fnord() { int i=42;}
18158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18159 int status = $lt_dlunknown;
18163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18164 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18165 /* dlclose (self); */
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172 (eval $ac_link) 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18176 (./conftest; exit; ) 2>/dev/null
18178 case x$lt_status in
18179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18181 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18184 # compilation failed
18185 lt_cv_dlopen_self_static=no
18192 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18193 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18196 CPPFLAGS="$save_CPPFLAGS"
18197 LDFLAGS="$save_LDFLAGS"
18202 case $lt_cv_dlopen_self in
18203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18204 *) enable_dlopen_self=unknown ;;
18207 case $lt_cv_dlopen_self_static in
18208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18209 *) enable_dlopen_self_static=unknown ;;
18214 # The else clause should only fire when bootstrapping the
18215 # libtool distribution, otherwise you forgot to ship ltmain.sh
18216 # with your package, and you will get complaints that there are
18217 # no rules to generate ltmain.sh.
18218 if test -f "$ltmain"; then
18219 # See if we are running on zsh, and set the options which allow our commands through
18220 # without removal of \ escapes.
18221 if test -n "${ZSH_VERSION+set}" ; then
18222 setopt NO_GLOB_SUBST
18224 # Now quote all the things that may contain metacharacters while being
18225 # careful not to overquote the AC_SUBSTed values. We take copies of the
18226 # variables and quote the copies for generation of the libtool script.
18227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18231 deplibs_check_method reload_flag reload_cmds need_locks \
18232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18233 lt_cv_sys_global_symbol_to_c_name_address \
18234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18235 old_postinstall_cmds old_postuninstall_cmds \
18239 lt_prog_compiler_wl_CXX \
18240 lt_prog_compiler_pic_CXX \
18241 lt_prog_compiler_static_CXX \
18242 lt_prog_compiler_no_builtin_flag_CXX \
18243 export_dynamic_flag_spec_CXX \
18244 thread_safe_flag_spec_CXX \
18245 whole_archive_flag_spec_CXX \
18246 enable_shared_with_static_runtimes_CXX \
18247 old_archive_cmds_CXX \
18248 old_archive_from_new_cmds_CXX \
18249 predep_objects_CXX \
18250 postdep_objects_CXX \
18253 compiler_lib_search_path_CXX \
18255 archive_expsym_cmds_CXX \
18256 postinstall_cmds_CXX \
18257 postuninstall_cmds_CXX \
18258 old_archive_from_expsyms_cmds_CXX \
18259 allow_undefined_flag_CXX \
18260 no_undefined_flag_CXX \
18261 export_symbols_cmds_CXX \
18262 hardcode_libdir_flag_spec_CXX \
18263 hardcode_libdir_flag_spec_ld_CXX \
18264 hardcode_libdir_separator_CXX \
18265 hardcode_automatic_CXX \
18267 module_expsym_cmds_CXX \
18268 lt_cv_prog_compiler_c_o_CXX \
18269 exclude_expsyms_CXX \
18270 include_expsyms_CXX; do
18273 old_archive_cmds_CXX | \
18274 old_archive_from_new_cmds_CXX | \
18275 archive_cmds_CXX | \
18276 archive_expsym_cmds_CXX | \
18277 module_cmds_CXX | \
18278 module_expsym_cmds_CXX | \
18279 old_archive_from_expsyms_cmds_CXX | \
18280 export_symbols_cmds_CXX | \
18281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18282 postinstall_cmds | postuninstall_cmds | \
18283 old_postinstall_cmds | old_postuninstall_cmds | \
18284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18285 # Double-quote double-evaled strings.
18286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18295 *'\$0 --fallback-echo"')
18296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18302 cat <<__EOF__ >> "$cfgfile"
18303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18307 # Shell to use when invoking shell scripts.
18310 # Whether or not to build shared libraries.
18311 build_libtool_libs=$enable_shared
18313 # Whether or not to build static libraries.
18314 build_old_libs=$enable_static
18316 # Whether or not to add -lc for building shared libraries.
18317 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18319 # Whether or not to disallow shared libs when runtime libs are static
18320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18322 # Whether or not to optimize for fast installation.
18323 fast_install=$enable_fast_install
18326 host_alias=$host_alias
18329 # An echo program that does not interpret backslashes.
18334 AR_FLAGS=$lt_AR_FLAGS
18339 # A language-specific compiler.
18340 CC=$lt_compiler_CXX
18342 # Is the compiler the GNU C compiler?
18348 # The linker used to build libraries.
18351 # Whether we need hard or soft links.
18354 # A BSD-compatible nm program.
18357 # A symbol stripping program
18360 # Used to examine libraries when file_magic_cmd begins "file"
18361 MAGIC_CMD=$MAGIC_CMD
18363 # Used on cygwin: DLL creation program.
18366 # Used on cygwin: object dumper.
18369 # Used on cygwin: assembler.
18372 # The name of the directory that contains temporary libtool files.
18375 # How to create reloadable object files.
18376 reload_flag=$lt_reload_flag
18377 reload_cmds=$lt_reload_cmds
18379 # How to pass a linker flag through the compiler.
18380 wl=$lt_lt_prog_compiler_wl_CXX
18382 # Object file suffix (normally "o").
18383 objext="$ac_objext"
18385 # Old archive suffix (normally "a").
18388 # Shared library suffix (normally ".so").
18389 shrext_cmds='$shrext_cmds'
18391 # Executable file suffix (normally "").
18394 # Additional compiler flags for building library objects.
18395 pic_flag=$lt_lt_prog_compiler_pic_CXX
18398 # What is the maximum length of a command?
18399 max_cmd_len=$lt_cv_sys_max_cmd_len
18401 # Does compiler simultaneously support -c and -o options?
18402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18404 # Must we lock files when doing compilation ?
18405 need_locks=$lt_need_locks
18407 # Do we need the lib prefix for modules?
18408 need_lib_prefix=$need_lib_prefix
18410 # Do we need a version for libraries?
18411 need_version=$need_version
18413 # Whether dlopen is supported.
18414 dlopen_support=$enable_dlopen
18416 # Whether dlopen of programs is supported.
18417 dlopen_self=$enable_dlopen_self
18419 # Whether dlopen of statically linked programs is supported.
18420 dlopen_self_static=$enable_dlopen_self_static
18422 # Compiler flag to prevent dynamic linking.
18423 link_static_flag=$lt_lt_prog_compiler_static_CXX
18425 # Compiler flag to turn off builtin functions.
18426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18428 # Compiler flag to allow reflexive dlopens.
18429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18431 # Compiler flag to generate shared objects directly from archives.
18432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18434 # Compiler flag to generate thread-safe objects.
18435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18437 # Library versioning type.
18438 version_type=$version_type
18440 # Format of library name prefix.
18441 libname_spec=$lt_libname_spec
18443 # List of archive names. First name is the real one, the rest are links.
18444 # The last name is the one that the linker finds with -lNAME.
18445 library_names_spec=$lt_library_names_spec
18447 # The coded name of the library, if different from the real name.
18448 soname_spec=$lt_soname_spec
18450 # Commands used to build and install an old-style archive.
18452 old_archive_cmds=$lt_old_archive_cmds_CXX
18453 old_postinstall_cmds=$lt_old_postinstall_cmds
18454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18456 # Create an old-style archive from a shared archive.
18457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18459 # Create a temporary old-style archive to link instead of a shared archive.
18460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18462 # Commands used to build and install a shared archive.
18463 archive_cmds=$lt_archive_cmds_CXX
18464 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18465 postinstall_cmds=$lt_postinstall_cmds
18466 postuninstall_cmds=$lt_postuninstall_cmds
18468 # Commands used to build a loadable module (assumed same as above if empty)
18469 module_cmds=$lt_module_cmds_CXX
18470 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18472 # Commands to strip libraries.
18473 old_striplib=$lt_old_striplib
18474 striplib=$lt_striplib
18476 # Dependencies to place before the objects being linked to create a
18478 predep_objects=$lt_predep_objects_CXX
18480 # Dependencies to place after the objects being linked to create a
18482 postdep_objects=$lt_postdep_objects_CXX
18484 # Dependencies to place before the objects being linked to create a
18486 predeps=$lt_predeps_CXX
18488 # Dependencies to place after the objects being linked to create a
18490 postdeps=$lt_postdeps_CXX
18492 # The library search path used internally by the compiler when linking
18493 # a shared library.
18494 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18496 # Method to check whether dependent libraries are shared objects.
18497 deplibs_check_method=$lt_deplibs_check_method
18499 # Command to use when deplibs_check_method == file_magic.
18500 file_magic_cmd=$lt_file_magic_cmd
18502 # Flag that allows shared libraries with undefined symbols to be built.
18503 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18505 # Flag that forces no undefined symbols.
18506 no_undefined_flag=$lt_no_undefined_flag_CXX
18508 # Commands used to finish a libtool library installation in a directory.
18509 finish_cmds=$lt_finish_cmds
18511 # Same as above, but a single script fragment to be evaled but not shown.
18512 finish_eval=$lt_finish_eval
18514 # Take the output of nm and produce a listing of raw symbols and C names.
18515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18517 # Transform the output of nm in a proper C declaration
18518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18520 # Transform the output of nm in a C name address pair
18521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18523 # This is the shared library runtime path variable.
18524 runpath_var=$runpath_var
18526 # This is the shared library path variable.
18527 shlibpath_var=$shlibpath_var
18529 # Is shlibpath searched before the hard-coded library search path?
18530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18532 # How to hardcode a shared library path into an executable.
18533 hardcode_action=$hardcode_action_CXX
18535 # Whether we should hardcode library paths into libraries.
18536 hardcode_into_libs=$hardcode_into_libs
18538 # Flag to hardcode \$libdir into a binary during linking.
18539 # This must work even if \$libdir does not exist.
18540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18542 # If ld is used when linking, flag to hardcode \$libdir into
18543 # a binary during linking. This must work even if \$libdir does
18545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18547 # Whether we need a single -rpath flag with a separated argument.
18548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18551 # resulting binary.
18552 hardcode_direct=$hardcode_direct_CXX
18554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18555 # resulting binary.
18556 hardcode_minus_L=$hardcode_minus_L_CXX
18558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18559 # the resulting binary.
18560 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18562 # Set to yes if building a shared library automatically hardcodes DIR into the library
18563 # and all subsequent libraries and executables linked against it.
18564 hardcode_automatic=$hardcode_automatic_CXX
18566 # Variables whose values should be saved in libtool wrapper scripts and
18567 # restored at relink time.
18568 variables_saved_for_relink="$variables_saved_for_relink"
18570 # Whether libtool must link a program against all its dependency libraries.
18571 link_all_deplibs=$link_all_deplibs_CXX
18573 # Compile-time system search path for libraries
18574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18576 # Run-time system search path for libraries
18577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18579 # Fix the shell variable \$srcfile for the compiler.
18580 fix_srcfile_path="$fix_srcfile_path_CXX"
18582 # Set to yes if exported symbols are required.
18583 always_export_symbols=$always_export_symbols_CXX
18585 # The commands to list exported symbols.
18586 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18588 # The commands to extract the exported symbol list from a shared archive.
18589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18591 # Symbols that should not be listed in the preloaded symbols.
18592 exclude_expsyms=$lt_exclude_expsyms_CXX
18594 # Symbols that must always be exported.
18595 include_expsyms=$lt_include_expsyms_CXX
18597 # ### END LIBTOOL TAG CONFIG: $tagname
18603 # If there is no Makefile yet, we rely on a make rule to execute
18604 # `config.status --recheck' to rerun these tests and create the
18605 # libtool script then.
18606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18607 if test -f "$ltmain_in"; then
18608 test -f Makefile && make "$ltmain"
18614 ac_cpp='$CPP $CPPFLAGS'
18615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623 with_gnu_ldcxx=$with_gnu_ld
18624 with_gnu_ld=$lt_save_with_gnu_ld
18625 lt_cv_path_LDCXX=$lt_cv_path_LD
18626 lt_cv_path_LD=$lt_save_path_LD
18627 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18628 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18636 if test -n "$F77" && test "X$F77" != "Xno"; then
18639 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18640 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18644 archive_cmds_need_lc_F77=no
18645 allow_undefined_flag_F77=
18646 always_export_symbols_F77=no
18647 archive_expsym_cmds_F77=
18648 export_dynamic_flag_spec_F77=
18649 hardcode_direct_F77=no
18650 hardcode_libdir_flag_spec_F77=
18651 hardcode_libdir_flag_spec_ld_F77=
18652 hardcode_libdir_separator_F77=
18653 hardcode_minus_L_F77=no
18654 hardcode_automatic_F77=no
18656 module_expsym_cmds_F77=
18657 link_all_deplibs_F77=unknown
18658 old_archive_cmds_F77=$old_archive_cmds
18659 no_undefined_flag_F77=
18660 whole_archive_flag_spec_F77=
18661 enable_shared_with_static_runtimes_F77=no
18663 # Source file extension for f77 test sources.
18666 # Object file extension for compiled f77 test sources.
18670 # Code to be used in simple compile tests
18671 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18673 # Code to be used in simple link tests
18674 lt_simple_link_test_code=" program t\n end\n"
18676 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18678 # If no C compiler was specified, use CC.
18681 # Allow CC to be a program name with arguments.
18685 # Allow CC to be a program name with arguments.
18690 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18692 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18694 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18695 echo "${ECHO_T}$can_build_shared" >&6
18697 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18699 test "$can_build_shared" = "no" && enable_shared=no
18701 # On AIX, shared libraries and static libraries use the same namespace, and
18702 # are all built from PIC.
18705 test "$enable_shared" = yes && enable_static=no
18706 if test -n "$RANLIB"; then
18707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18708 postinstall_cmds='$RANLIB $lib'
18712 test "$enable_shared" = yes && enable_static=no
18715 echo "$as_me:$LINENO: result: $enable_shared" >&5
18716 echo "${ECHO_T}$enable_shared" >&6
18718 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18719 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18720 # Make sure either enable_shared or enable_static is yes.
18721 test "$enable_shared" = yes || enable_static=yes
18722 echo "$as_me:$LINENO: result: $enable_static" >&5
18723 echo "${ECHO_T}$enable_static" >&6
18725 test "$ld_shlibs_F77" = no && can_build_shared=no
18730 lt_prog_compiler_wl_F77=
18731 lt_prog_compiler_pic_F77=
18732 lt_prog_compiler_static_F77=
18734 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18737 if test "$GCC" = yes; then
18738 lt_prog_compiler_wl_F77='-Wl,'
18739 lt_prog_compiler_static_F77='-static'
18743 # All AIX code is PIC.
18744 if test "$host_cpu" = ia64; then
18745 # AIX 5 now supports IA64 processor
18746 lt_prog_compiler_static_F77='-Bstatic'
18751 # FIXME: we need at least 68020 code to build shared libraries, but
18752 # adding the `-m68020' flag to GCC prevents building anything better,
18754 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18758 # PIC is the default for these OSes.
18761 mingw* | pw32* | os2*)
18762 # This hack is so that the source file can tell whether it is being
18763 # built for inclusion in a dll (and should export symbols for example).
18764 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18767 darwin* | rhapsody*)
18768 # PIC is the default on this platform
18769 # Common symbols not allowed in MH_DYLIB files
18770 lt_prog_compiler_pic_F77='-fno-common'
18774 # Just because we use GCC doesn't mean we suddenly get shared libraries
18775 # on systems that don't support them.
18776 lt_prog_compiler_can_build_shared_F77=no
18781 if test -d /usr/nec; then
18782 lt_prog_compiler_pic_F77=-Kconform_pic
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='-fPIC'
18800 lt_prog_compiler_pic_F77='-fPIC'
18804 # PORTME Check for flag to pass linker flags through the system compiler.
18807 lt_prog_compiler_wl_F77='-Wl,'
18808 if test "$host_cpu" = ia64; then
18809 # AIX 5 now supports IA64 processor
18810 lt_prog_compiler_static_F77='-Bstatic'
18812 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18816 # PIC is the default on this platform
18817 # Common symbols not allowed in MH_DYLIB files
18818 case "$cc_basename" in
18820 lt_prog_compiler_pic_F77='-qnocommon'
18821 lt_prog_compiler_wl_F77='-Wl,'
18826 mingw* | pw32* | os2*)
18827 # This hack is so that the source file can tell whether it is being
18828 # built for inclusion in a dll (and should export symbols for example).
18829 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18832 hpux9* | hpux10* | hpux11*)
18833 lt_prog_compiler_wl_F77='-Wl,'
18834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18835 # not for PA HP-UX.
18836 case "$host_cpu" in
18841 lt_prog_compiler_pic_F77='+Z'
18844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18845 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18848 irix5* | irix6* | nonstopux*)
18849 lt_prog_compiler_wl_F77='-Wl,'
18850 # PIC (with -KPIC) is the default.
18851 lt_prog_compiler_static_F77='-non_shared'
18855 lt_prog_compiler_pic_F77='-KPIC'
18856 lt_prog_compiler_static_F77='-Bstatic'
18862 lt_prog_compiler_wl_F77='-Wl,'
18863 lt_prog_compiler_pic_F77='-KPIC'
18864 lt_prog_compiler_static_F77='-static'
18867 lt_prog_compiler_wl_F77='-Wl,'
18868 # All Alpha code is PIC.
18869 lt_prog_compiler_static_F77='-non_shared'
18874 osf3* | osf4* | osf5*)
18875 lt_prog_compiler_wl_F77='-Wl,'
18876 # All OSF/1 code is PIC.
18877 lt_prog_compiler_static_F77='-non_shared'
18881 lt_prog_compiler_pic_F77='-Kpic'
18882 lt_prog_compiler_static_F77='-dn'
18886 lt_prog_compiler_wl_F77='-Wl,'
18887 lt_prog_compiler_pic_F77='-KPIC'
18888 lt_prog_compiler_static_F77='-Bstatic'
18892 lt_prog_compiler_wl_F77='-Qoption ld '
18893 lt_prog_compiler_pic_F77='-PIC'
18894 lt_prog_compiler_static_F77='-Bstatic'
18897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18898 lt_prog_compiler_wl_F77='-Wl,'
18899 lt_prog_compiler_pic_F77='-KPIC'
18900 lt_prog_compiler_static_F77='-Bstatic'
18904 if test -d /usr/nec ;then
18905 lt_prog_compiler_pic_F77='-Kconform_pic'
18906 lt_prog_compiler_static_F77='-Bstatic'
18911 lt_prog_compiler_pic_F77='-pic'
18912 lt_prog_compiler_static_F77='-Bstatic'
18916 lt_prog_compiler_can_build_shared_F77=no
18921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18922 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18925 # Check to make sure the PIC flag actually works.
18927 if test -n "$lt_prog_compiler_pic_F77"; then
18929 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18930 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18931 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 lt_prog_compiler_pic_works_F77=no
18935 ac_outfile=conftest.$ac_objext
18936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18937 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18938 # Insert the option either (1) after the last *FLAGS variable, or
18939 # (2) before a word containing "conftest.", or (3) at the end.
18940 # Note that $ac_compile itself does not contain backslashes and begins
18941 # with a dollar sign (not a hyphen), so the echo should work correctly.
18942 # The option is referenced via a variable to avoid confusing sed.
18943 lt_compile=`echo "$ac_compile" | $SED \
18944 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18946 -e 's:$: $lt_compiler_flag:'`
18947 (eval echo "\"\$as_me:18947: $lt_compile\"" >&5)
18948 (eval "$lt_compile" 2>conftest.err)
18950 cat conftest.err >&5
18951 echo "$as_me:18951: \$? = $ac_status" >&5
18952 if (exit $ac_status) && test -s "$ac_outfile"; then
18953 # The compiler can only warn and ignore the option if not recognized
18954 # So say no if there are warnings
18955 if test ! -s conftest.err; then
18956 lt_prog_compiler_pic_works_F77=yes
18962 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18963 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18965 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18966 case $lt_prog_compiler_pic_F77 in
18968 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18971 lt_prog_compiler_pic_F77=
18972 lt_prog_compiler_can_build_shared_F77=no
18977 # For platforms which do not support PIC, -DPIC is meaningless:
18979 lt_prog_compiler_pic_F77=
18982 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18986 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18987 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18988 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 lt_cv_prog_compiler_c_o_F77=no
18992 $rm -r conftest 2>/dev/null
18996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18998 lt_compiler_flag="-o out/conftest2.$ac_objext"
18999 # Insert the option either (1) after the last *FLAGS variable, or
19000 # (2) before a word containing "conftest.", or (3) at the end.
19001 # Note that $ac_compile itself does not contain backslashes and begins
19002 # with a dollar sign (not a hyphen), so the echo should work correctly.
19003 lt_compile=`echo "$ac_compile" | $SED \
19004 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19006 -e 's:$: $lt_compiler_flag:'`
19007 (eval echo "\"\$as_me:19007: $lt_compile\"" >&5)
19008 (eval "$lt_compile" 2>out/conftest.err)
19010 cat out/conftest.err >&5
19011 echo "$as_me:19011: \$? = $ac_status" >&5
19012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19014 # The compiler can only warn and ignore the option if not recognized
19015 # So say no if there are warnings
19016 if test ! -s out/conftest.err; then
19017 lt_cv_prog_compiler_c_o_F77=yes
19022 # SGI C++ compiler will create directory out/ii_files/ for
19023 # template instantiation
19024 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19025 $rm out/* && rmdir out
19031 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19032 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19035 hard_links="nottested"
19036 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19037 # do not overwrite the value of need_locks provided by the user
19038 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19039 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19044 ln conftest.a conftest.b 2>&5 || hard_links=no
19045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19046 echo "$as_me:$LINENO: result: $hard_links" >&5
19047 echo "${ECHO_T}$hard_links" >&6
19048 if test "$hard_links" = no; then
19049 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19050 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19057 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19058 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19061 allow_undefined_flag_F77=
19062 enable_shared_with_static_runtimes_F77=no
19064 archive_expsym_cmds_F77=
19065 old_archive_From_new_cmds_F77=
19066 old_archive_from_expsyms_cmds_F77=
19067 export_dynamic_flag_spec_F77=
19068 whole_archive_flag_spec_F77=
19069 thread_safe_flag_spec_F77=
19070 hardcode_libdir_flag_spec_F77=
19071 hardcode_libdir_flag_spec_ld_F77=
19072 hardcode_libdir_separator_F77=
19073 hardcode_direct_F77=no
19074 hardcode_minus_L_F77=no
19075 hardcode_shlibpath_var_F77=unsupported
19076 link_all_deplibs_F77=unknown
19077 hardcode_automatic_F77=no
19079 module_expsym_cmds_F77=
19080 always_export_symbols_F77=no
19081 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19082 # include_expsyms should be a list of space-separated symbols to be *always*
19083 # included in the symbol list
19084 include_expsyms_F77=
19085 # exclude_expsyms can be an extended regexp of symbols to exclude
19086 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19087 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19088 # as well as any symbol that contains `d'.
19089 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19091 # platforms (ab)use it in PIC code, but their linkers get confused if
19092 # the symbol is explicitly referenced. Since portable code cannot
19093 # rely on this symbol name, it's probably fine to never include it in
19094 # preloaded symbol tables.
19095 extract_expsyms_cmds=
19098 cygwin* | mingw* | pw32*)
19099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19100 # When not using gcc, we currently assume that we are using
19101 # Microsoft Visual C++.
19102 if test "$GCC" != yes; then
19112 if test "$with_gnu_ld" = yes; then
19113 # If archive_cmds runs LD, not CC, wlarc should be empty
19116 # See if GNU ld supports shared libraries.
19118 aix3* | aix4* | aix5*)
19119 # On AIX/PPC, the GNU linker is very broken
19120 if test "$host_cpu" != ia64; then
19124 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19125 *** to be unable to reliably create shared libraries on AIX.
19126 *** Therefore, libtool is disabling shared libraries support. If you
19127 *** really care for shared libraries, you may want to modify your PATH
19128 *** so that a non-GNU linker is found, and then restart.
19135 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)'
19136 hardcode_libdir_flag_spec_F77='-L$libdir'
19137 hardcode_minus_L_F77=yes
19139 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19140 # that the semantics of dynamic libraries on AmigaOS, at least up
19141 # to version 4, is to share data among multiple programs linked
19142 # with the same dynamic library. Since this doesn't match the
19143 # behavior of shared libraries on other platforms, we can't use
19149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19150 allow_undefined_flag_F77=unsupported
19151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19152 # support --undefined. This deserves some investigation. FIXME
19153 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159 cygwin* | mingw* | pw32*)
19160 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19161 # as there is no search path for DLLs.
19162 hardcode_libdir_flag_spec_F77='-L$libdir'
19163 allow_undefined_flag_F77=unsupported
19164 always_export_symbols_F77=no
19165 enable_shared_with_static_runtimes_F77=yes
19166 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19168 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19170 # If the export-symbols file already is a .def file (1st line
19171 # is EXPORTS), use it as is; otherwise, prepend...
19172 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19173 cp $export_symbols $output_objdir/$soname.def;
19175 echo EXPORTS > $output_objdir/$soname.def;
19176 cat $export_symbols >> $output_objdir/$soname.def;
19178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19186 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19189 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19190 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19195 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19200 *** create shared libraries on Solaris systems. Therefore, libtool
19201 *** is disabling shared libraries support. We urge you to upgrade GNU
19202 *** binutils to release 2.9.1 or newer. Another option is to modify
19203 *** your PATH or compiler configuration so that the native linker is
19204 *** used, and then restart.
19207 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19216 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19218 hardcode_direct_F77=yes
19219 hardcode_shlibpath_var_F77=no
19223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19224 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19225 archive_cmds_F77="$tmp_archive_cmds"
19226 supports_anon_versioning=no
19227 case `$LD -v 2>/dev/null` in
19228 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19231 *\ 2.11.*) ;; # other 2.11 versions
19232 *) supports_anon_versioning=yes ;;
19234 if test $supports_anon_versioning = yes; then
19235 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19237 $echo "local: *; };" >> $output_objdir/$libname.ver~
19238 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19240 archive_expsym_cmds_F77="$tmp_archive_cmds"
19248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19249 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19257 if test "$ld_shlibs_F77" = yes; then
19258 runpath_var=LD_RUN_PATH
19259 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19260 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19261 # ancient GNU ld didn't support --whole-archive et. al.
19262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19263 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19265 whole_archive_flag_spec_F77=
19269 # PORTME fill in a description of your system's linker (not GNU ld)
19272 allow_undefined_flag_F77=unsupported
19273 always_export_symbols_F77=yes
19274 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'
19275 # Note: this linker hardcodes the directories in LIBPATH if there
19276 # are no directories specified by -L.
19277 hardcode_minus_L_F77=yes
19278 if test "$GCC" = yes && test -z "$link_static_flag"; then
19279 # Neither direct hardcoding nor static linking is supported with a
19281 hardcode_direct_F77=unsupported
19286 if test "$host_cpu" = ia64; then
19287 # On IA64, the linker does run time linking by default, so we don't
19288 # have to do anything special.
19289 aix_use_runtimelinking=no
19290 exp_sym_flag='-Bexport'
19293 # If we're using GNU nm, then we don't want the "-C" option.
19294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19296 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'
19298 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'
19300 aix_use_runtimelinking=no
19302 # Test if we are trying to use run time linking or normal
19303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19304 # need to do runtime linking.
19305 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19306 for ld_flag in $LDFLAGS; do
19307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19308 aix_use_runtimelinking=yes
19314 exp_sym_flag='-bexport'
19315 no_entry_flag='-bnoentry'
19318 # When large executables or shared objects are built, AIX ld can
19319 # have problems creating the table of contents. If linking a library
19320 # or program results in "error TOC overflow" add -mminimal-toc to
19321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19324 archive_cmds_F77=''
19325 hardcode_direct_F77=yes
19326 hardcode_libdir_separator_F77=':'
19327 link_all_deplibs_F77=yes
19329 if test "$GCC" = yes; then
19330 case $host_os in aix4.012|aix4.012.*)
19331 # We only want to do this on AIX 4.2 and lower, the check
19332 # below for broken collect2 doesn't work under 4.3+
19333 collect2name=`${CC} -print-prog-name=collect2`
19334 if test -f "$collect2name" && \
19335 strings "$collect2name" | grep resolve_lib_name >/dev/null
19337 # We have reworked collect2
19338 hardcode_direct_F77=yes
19340 # We have old collect2
19341 hardcode_direct_F77=unsupported
19342 # It fails to find uninstalled libraries when the uninstalled
19343 # path is not listed in the libpath. Setting hardcode_minus_L
19344 # to unsupported forces relinking
19345 hardcode_minus_L_F77=yes
19346 hardcode_libdir_flag_spec_F77='-L$libdir'
19347 hardcode_libdir_separator_F77=
19350 shared_flag='-shared'
19353 if test "$host_cpu" = ia64; then
19354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19355 # chokes on -Wl,-G. The following line is correct:
19358 if test "$aix_use_runtimelinking" = yes; then
19359 shared_flag='${wl}-G'
19361 shared_flag='${wl}-bM:SRE'
19366 # It seems that -bexpall does not export symbols beginning with
19367 # underscore (_), so it is better to generate a list of symbols to export.
19368 always_export_symbols_F77=yes
19369 if test "$aix_use_runtimelinking" = yes; then
19370 # Warning - without using the other runtime loading flags (-brtl),
19371 # -berok will link without error, but may produce a broken library.
19372 allow_undefined_flag_F77='-berok'
19373 # Determine the default libpath from the value encoded in an empty executable.
19374 cat >conftest.$ac_ext <<_ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19381 (eval $ac_link) 2>conftest.er1
19383 grep -v '^ *+' conftest.er1 >conftest.err
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_f77_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19404 # Check for a 64-bit object if we didn't find anything.
19405 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; }
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19412 rm -f conftest.err conftest.$ac_objext \
19413 conftest$ac_exeext conftest.$ac_ext
19414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19417 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"
19419 if test "$host_cpu" = ia64; then
19420 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19421 allow_undefined_flag_F77="-z nodefs"
19422 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"
19424 # Determine the default libpath from the value encoded in an empty executable.
19425 cat >conftest.$ac_ext <<_ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432 (eval $ac_link) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_f77_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest$ac_exeext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19455 # Check for a 64-bit object if we didn't find anything.
19456 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; }
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19463 rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19467 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19468 # Warning - without using the other run time loading flags,
19469 # -berok will link without error, but may produce a broken library.
19470 no_undefined_flag_F77=' ${wl}-bernotok'
19471 allow_undefined_flag_F77=' ${wl}-berok'
19472 # -bexpall does not export symbols beginning with underscore (_)
19473 always_export_symbols_F77=yes
19474 # Exported symbols can be pulled into shared objects from archives
19475 whole_archive_flag_spec_F77=' '
19476 archive_cmds_need_lc_F77=yes
19477 # This is similar to how AIX traditionally builds it's shared libraries.
19478 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'
19484 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)'
19485 hardcode_libdir_flag_spec_F77='-L$libdir'
19486 hardcode_minus_L_F77=yes
19487 # see comment about different semantics on the GNU ld section
19492 export_dynamic_flag_spec_F77=-rdynamic
19495 cygwin* | mingw* | pw32*)
19496 # When not using gcc, we currently assume that we are using
19497 # Microsoft Visual C++.
19498 # hardcode_libdir_flag_spec is actually meaningless, as there is
19499 # no search path for DLLs.
19500 hardcode_libdir_flag_spec_F77=' '
19501 allow_undefined_flag_F77=unsupported
19502 # Tell ltmain to make .lib files, not .a files.
19504 # Tell ltmain to make .dll files, not .so files.
19506 # FIXME: Setting linknames here is a bad hack.
19507 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19508 # The linker will automatically build a .lib file if we build a DLL.
19509 old_archive_From_new_cmds_F77='true'
19510 # FIXME: Should let the user specify the lib program.
19511 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19512 fix_srcfile_path='`cygpath -w "$srcfile"`'
19513 enable_shared_with_static_runtimes_F77=yes
19516 darwin* | rhapsody*)
19518 rhapsody* | darwin1.[012])
19519 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19523 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19525 case ${MACOSX_DEPLOYMENT_TARGET} in
19527 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19530 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19536 archive_cmds_need_lc_F77=no
19537 hardcode_direct_F77=no
19538 hardcode_automatic_F77=yes
19539 hardcode_shlibpath_var_F77=unsupported
19540 whole_archive_flag_spec_F77=''
19541 link_all_deplibs_F77=yes
19542 if test "$GCC" = yes ; then
19543 output_verbose_link_cmd='echo'
19544 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19545 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19547 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}'
19548 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}'
19550 case "$cc_basename" in
19552 output_verbose_link_cmd='echo'
19553 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19554 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19556 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}'
19557 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}'
19567 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19568 hardcode_libdir_flag_spec_F77='-L$libdir'
19569 hardcode_shlibpath_var_F77=no
19576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19577 # support. Future versions do this automatically, but an explicit c++rt0.o
19578 # does not break anything, and helps significantly (at the cost of a little
19581 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19582 hardcode_libdir_flag_spec_F77='-R$libdir'
19583 hardcode_direct_F77=yes
19584 hardcode_shlibpath_var_F77=no
19587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19589 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19590 hardcode_direct_F77=yes
19591 hardcode_minus_L_F77=yes
19592 hardcode_shlibpath_var_F77=no
19595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19596 freebsd* | kfreebsd*-gnu)
19597 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19598 hardcode_libdir_flag_spec_F77='-R$libdir'
19599 hardcode_direct_F77=yes
19600 hardcode_shlibpath_var_F77=no
19604 if test "$GCC" = yes; then
19605 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'
19607 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'
19609 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19610 hardcode_libdir_separator_F77=:
19611 hardcode_direct_F77=yes
19613 # hardcode_minus_L: Not really in the search PATH,
19614 # but as the default location of the library.
19615 hardcode_minus_L_F77=yes
19616 export_dynamic_flag_spec_F77='${wl}-E'
19620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19621 case "$host_cpu" in
19623 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19626 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19630 case "$host_cpu" in
19632 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19635 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19639 if test "$with_gnu_ld" = no; then
19640 case "$host_cpu" in
19642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19643 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19644 hardcode_libdir_separator_F77=:
19645 hardcode_direct_F77=no
19646 hardcode_shlibpath_var_F77=no
19649 hardcode_libdir_flag_spec_F77='-L$libdir'
19650 hardcode_direct_F77=no
19651 hardcode_shlibpath_var_F77=no
19653 # hardcode_minus_L: Not really in the search PATH,
19654 # but as the default location of the library.
19655 hardcode_minus_L_F77=yes
19658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19659 hardcode_libdir_separator_F77=:
19660 hardcode_direct_F77=yes
19661 export_dynamic_flag_spec_F77='${wl}-E'
19663 # hardcode_minus_L: Not really in the search PATH,
19664 # but as the default location of the library.
19665 hardcode_minus_L_F77=yes
19671 irix5* | irix6* | nonstopux*)
19672 if test "$GCC" = yes; then
19673 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'
19675 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'
19676 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19678 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19679 hardcode_libdir_separator_F77=:
19680 link_all_deplibs_F77=yes
19684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19685 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19687 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19689 hardcode_libdir_flag_spec_F77='-R$libdir'
19690 hardcode_direct_F77=yes
19691 hardcode_shlibpath_var_F77=no
19695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19696 hardcode_direct_F77=yes
19697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19698 hardcode_libdir_separator_F77=:
19699 hardcode_shlibpath_var_F77=no
19703 hardcode_direct_F77=yes
19704 hardcode_shlibpath_var_F77=no
19705 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19706 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19707 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19708 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19709 export_dynamic_flag_spec_F77='${wl}-E'
19712 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19714 hardcode_libdir_flag_spec_F77='-R$libdir'
19717 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19718 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19725 hardcode_libdir_flag_spec_F77='-L$libdir'
19726 hardcode_minus_L_F77=yes
19727 allow_undefined_flag_F77=unsupported
19728 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'
19729 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19733 if test "$GCC" = yes; then
19734 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19735 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'
19737 allow_undefined_flag_F77=' -expect_unresolved \*'
19738 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'
19740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19741 hardcode_libdir_separator_F77=:
19744 osf4* | osf5*) # as osf3* with the addition of -msym flag
19745 if test "$GCC" = yes; then
19746 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19747 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'
19748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19750 allow_undefined_flag_F77=' -expect_unresolved \*'
19751 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'
19752 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~
19753 $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'
19755 # Both c and cxx compiler support -rpath directly
19756 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19758 hardcode_libdir_separator_F77=:
19762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19763 hardcode_shlibpath_var_F77=no
19764 export_dynamic_flag_spec_F77='${wl}-Bexport'
19765 runpath_var=LD_RUN_PATH
19766 hardcode_runpath_var=yes
19770 no_undefined_flag_F77=' -z text'
19771 if test "$GCC" = yes; then
19772 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19774 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19776 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19777 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19778 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19780 hardcode_libdir_flag_spec_F77='-R$libdir'
19781 hardcode_shlibpath_var_F77=no
19783 solaris2.[0-5] | solaris2.[0-5].*) ;;
19784 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19785 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19787 link_all_deplibs_F77=yes
19791 if test "x$host_vendor" = xsequent; then
19792 # Use $CC to link under sequent, because it throws in some extra .o
19793 # files that make .init and .fini sections work.
19794 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19796 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19798 hardcode_libdir_flag_spec_F77='-L$libdir'
19799 hardcode_direct_F77=yes
19800 hardcode_minus_L_F77=yes
19801 hardcode_shlibpath_var_F77=no
19805 case $host_vendor in
19807 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19808 hardcode_direct_F77=yes # is this really true???
19811 ## LD is ld it makes a PLAMLIB
19812 ## CC just makes a GrossModule.
19813 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19814 reload_cmds_F77='$CC -r -o $output$reload_objs'
19815 hardcode_direct_F77=no
19818 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19819 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19822 runpath_var='LD_RUN_PATH'
19823 hardcode_shlibpath_var_F77=no
19827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19828 hardcode_shlibpath_var_F77=no
19829 export_dynamic_flag_spec_F77='-Bexport'
19833 if test -d /usr/nec; then
19834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835 hardcode_shlibpath_var_F77=no
19836 runpath_var=LD_RUN_PATH
19837 hardcode_runpath_var=yes
19843 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19844 hardcode_direct_F77=yes
19845 hardcode_minus_L_F77=no
19846 hardcode_shlibpath_var_F77=no
19847 hardcode_runpath_var=yes
19848 runpath_var=LD_RUN_PATH
19851 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19852 no_undefined_flag_F77='${wl}-z ${wl}text'
19853 if test "$GCC" = yes; then
19854 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19856 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19858 runpath_var='LD_RUN_PATH'
19859 hardcode_shlibpath_var_F77=no
19863 no_undefined_flag_F77=' -z text'
19864 # $CC -shared without GNU ld will not create a library from C++
19865 # object files and a static libstdc++, better avoid it by now
19866 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19867 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19868 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19869 hardcode_libdir_flag_spec_F77=
19870 hardcode_shlibpath_var_F77=no
19871 runpath_var='LD_RUN_PATH'
19875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19876 hardcode_libdir_flag_spec_F77='-L$libdir'
19877 hardcode_shlibpath_var_F77=no
19886 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19887 echo "${ECHO_T}$ld_shlibs_F77" >&6
19888 test "$ld_shlibs_F77" = no && can_build_shared=no
19890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19891 if test "$GCC" = yes; then
19892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19896 # Do we need to explicitly link libc?
19898 case "x$archive_cmds_need_lc_F77" in
19900 # Assume -lc should be added
19901 archive_cmds_need_lc_F77=yes
19903 if test "$enable_shared" = yes && test "$GCC" = yes; then
19904 case $archive_cmds_F77 in
19906 # FIXME: we may have to deal with multi-command sequences.
19909 # Test whether the compiler implicitly links with -lc since on some
19910 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19911 # to ld, don't add -lc before -lgcc.
19912 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19913 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19915 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19918 (eval $ac_compile) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } 2>conftest.err; then
19924 libobjs=conftest.$ac_objext
19926 wl=$lt_prog_compiler_wl_F77
19932 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19933 allow_undefined_flag_F77=
19934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19935 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }
19940 archive_cmds_need_lc_F77=no
19942 archive_cmds_need_lc_F77=yes
19944 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19946 cat conftest.err 1>&5
19949 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19950 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19957 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19959 library_names_spec=
19960 libname_spec='lib$name'
19964 postuninstall_cmds=
19968 shlibpath_overrides_runpath=unknown
19970 dynamic_linker="$host_os ld.so"
19971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19972 if test "$GCC" = yes; then
19973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19974 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19975 # if the path contains ";" then we assume it to be the separator
19976 # otherwise default to the standard path separator (i.e. ":") - it is
19977 # assumed that no part of a normal pathname contains ";" but that should
19978 # okay in the real world where ";" in dirpaths is itself problematic.
19979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19984 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19986 need_lib_prefix=unknown
19987 hardcode_into_libs=no
19989 # when you set need_version to no, make sure it does not cause -set_version
19990 # flags to be left without arguments
19991 need_version=unknown
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19997 shlibpath_var=LIBPATH
19999 # AIX 3 has no versioning support, so we append a major version to the name.
20000 soname_spec='${libname}${release}${shared_ext}$major'
20007 hardcode_into_libs=yes
20008 if test "$host_cpu" = ia64; then
20009 # AIX 5 supports IA64
20010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20011 shlibpath_var=LD_LIBRARY_PATH
20013 # With GCC up to 2.95.x, collect2 would create an import file
20014 # for dependence libraries. The import file would start with
20015 # the line `#! .'. This would cause the generated library to
20016 # depend on `.', always an invalid library. This was fixed in
20017 # development snapshots of GCC prior to 3.0.
20019 aix4 | aix4.[01] | aix4.[01].*)
20020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20022 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20025 can_build_shared=no
20029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20030 # soname into executable. Probably we can add versioning support to
20031 # collect2, so additional links can be useful in future.
20032 if test "$aix_use_runtimelinking" = yes; then
20033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20034 # instead of lib<name>.a to let people know that these are not
20035 # typical AIX shared libraries.
20036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20038 # We preserve .a as extension for shared libraries through AIX4.2
20039 # and later when we are not doing run time linking.
20040 library_names_spec='${libname}${release}.a $libname.a'
20041 soname_spec='${libname}${release}${shared_ext}$major'
20043 shlibpath_var=LIBPATH
20048 library_names_spec='$libname.ixlibrary $libname.a'
20049 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20050 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'
20054 library_names_spec='${libname}${shared_ext}'
20055 dynamic_linker="$host_os ld.so"
20056 shlibpath_var=LIBRARY_PATH
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20065 shlibpath_var=LD_LIBRARY_PATH
20066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20068 # the default ld.so.conf also contains /usr/contrib/lib and
20069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20070 # libtool to hard-code these into programs
20073 cygwin* | mingw* | pw32*)
20074 version_type=windows
20079 case $GCC,$host_os in
20080 yes,cygwin* | yes,mingw* | yes,pw32*)
20081 library_names_spec='$libname.dll.a'
20082 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20083 postinstall_cmds='base_file=`basename \${file}`~
20084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20085 dldir=$destdir/`dirname \$dlpath`~
20086 test -d \$dldir || mkdir -p \$dldir~
20087 $install_prog $dir/$dlname \$dldir/$dlname'
20088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20089 dlpath=$dir/\$dldll~
20091 shlibpath_overrides_runpath=yes
20095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20096 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20097 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20100 # MinGW DLLs use traditional 'lib' prefix
20101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20103 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20104 # It is most probably a Windows format PATH printed by
20105 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20106 # path with ; separators, and with drive letters. We can handle the
20107 # drive letters (cygwin fileutils understands them), so leave them,
20108 # especially as we might pass files found there to a mingw objdump,
20109 # which wouldn't understand a cygwinified path. Ahh.
20110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20116 # pw32 DLLs use 'pw' prefix rather than 'lib'
20117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20123 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20126 dynamic_linker='Win32 ld.exe'
20127 # FIXME: first we should search . and the directory the executable is in
20131 darwin* | rhapsody*)
20132 dynamic_linker="$host_os dyld"
20133 version_type=darwin
20136 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20137 soname_spec='${libname}${release}${major}$shared_ext'
20138 shlibpath_overrides_runpath=yes
20139 shlibpath_var=DYLD_LIBRARY_PATH
20140 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20141 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20142 if test "$GCC" = yes; then
20143 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"`
20145 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20147 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20155 soname_spec='${libname}${release}${shared_ext}$major'
20156 shlibpath_var=LD_LIBRARY_PATH
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20169 shlibpath_var=LD_LIBRARY_PATH
20170 shlibpath_overrides_runpath=no
20171 hardcode_into_libs=yes
20172 dynamic_linker='GNU ld.so'
20176 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20177 version_type=freebsd-$objformat
20178 case $version_type in
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20189 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20194 freebsd3.01* | freebsdelf3.01*)
20195 shlibpath_overrides_runpath=yes
20196 hardcode_into_libs=yes
20199 shlibpath_overrides_runpath=no
20200 hardcode_into_libs=yes
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 shlibpath_var=LD_LIBRARY_PATH
20212 hardcode_into_libs=yes
20215 hpux9* | hpux10* | hpux11*)
20216 # Give a soname corresponding to the major version so that dld.sl refuses to
20217 # link against other versions.
20221 case "$host_cpu" in
20224 hardcode_into_libs=yes
20225 dynamic_linker="$host_os dld.so"
20226 shlibpath_var=LD_LIBRARY_PATH
20227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 if test "X$HPUX_IA64_MODE" = X32; then
20231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20239 hardcode_into_libs=yes
20240 dynamic_linker="$host_os dld.sl"
20241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20250 dynamic_linker="$host_os dld.sl"
20251 shlibpath_var=SHLIB_PATH
20252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20257 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20258 postinstall_cmds='chmod 555 $lib'
20261 irix5* | irix6* | nonstopux*)
20263 nonstopux*) version_type=nonstopux ;;
20265 if test "$lt_cv_prog_gnu_ld" = yes; then
20273 soname_spec='${libname}${release}${shared_ext}$major'
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20276 irix5* | nonstopux*)
20277 libsuff= shlibsuff=
20280 case $LD in # libtool.m4 will add one of these switches to LD
20281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20282 libsuff= shlibsuff= libmagic=32-bit;;
20283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20284 libsuff=32 shlibsuff=N32 libmagic=N32;;
20285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20286 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20287 *) libsuff= shlibsuff= libmagic=never-match;;
20291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20292 shlibpath_overrides_runpath=no
20293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20295 hardcode_into_libs=yes
20298 # No shared lib support for Linux oldld, aout, or coff.
20299 linux*oldld* | linux*aout* | linux*coff*)
20303 # This must be Linux ELF.
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=no
20313 # This implies no fast_install, which is unacceptable.
20314 # Some rework will be needed to allow for fast_install
20315 # before this can be enabled.
20316 hardcode_into_libs=yes
20318 # Append ld.so.conf contents to the search path
20319 if test -f /etc/ld.so.conf; then
20320 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20321 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20324 # We used to test for /lib/ld.so.1 and disable shared libraries on
20325 # powerpc, because MkLinux only supported shared libraries with the
20326 # GNU dynamic linker. Since this was broken with cross compilers,
20327 # most powerpc-linux boxes support dynamic linking these days and
20328 # people can always --disable-shared, the test was removed, and we
20329 # assume the GNU/Linux dynamic linker is in use.
20330 dynamic_linker='GNU/Linux ld.so'
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 shlibpath_overrides_runpath=no
20341 hardcode_into_libs=yes
20342 dynamic_linker='GNU ld.so'
20349 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352 dynamic_linker='NetBSD (a.out) ld.so'
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 dynamic_linker='NetBSD ld.elf_so'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=yes
20360 hardcode_into_libs=yes
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 shlibpath_overrides_runpath=yes
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375 soname_spec='${libname}${release}${shared_ext}$major'
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20389 openbsd2.[89] | openbsd2.[89].*)
20390 shlibpath_overrides_runpath=no
20393 shlibpath_overrides_runpath=yes
20397 shlibpath_overrides_runpath=yes
20402 libname_spec='$name'
20405 library_names_spec='$libname${shared_ext} $libname.a'
20406 dynamic_linker='OS/2 ld.exe'
20407 shlibpath_var=LIBPATH
20410 osf3* | osf4* | osf5*)
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20423 soname_spec='${libname}${release}${shared_ext}$major'
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 shlibpath_var=LD_LIBRARY_PATH
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 shlibpath_var=LD_LIBRARY_PATH
20435 shlibpath_overrides_runpath=yes
20436 hardcode_into_libs=yes
20437 # ldd complains unless libraries are executable
20438 postinstall_cmds='chmod +x $lib'
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20445 shlibpath_var=LD_LIBRARY_PATH
20446 shlibpath_overrides_runpath=yes
20447 if test "$with_gnu_ld" = yes; then
20453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20456 soname_spec='${libname}${release}${shared_ext}$major'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 case $host_vendor in
20460 shlibpath_overrides_runpath=no
20462 export_dynamic_flag_spec='${wl}-Blargedynsym'
20463 runpath_var=LD_RUN_PATH
20471 shlibpath_overrides_runpath=no
20472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20478 if test -d /usr/nec ;then
20480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20481 soname_spec='$libname${shared_ext}.$major'
20482 shlibpath_var=LD_LIBRARY_PATH
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20497 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20498 echo "${ECHO_T}$dynamic_linker" >&6
20499 test "$dynamic_linker" = no && can_build_shared=no
20501 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20502 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20503 hardcode_action_F77=
20504 if test -n "$hardcode_libdir_flag_spec_F77" || \
20505 test -n "$runpath_var_F77" || \
20506 test "X$hardcode_automatic_F77" = "Xyes" ; then
20508 # We can hardcode non-existant directories.
20509 if test "$hardcode_direct_F77" != no &&
20510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20511 # have to relink, otherwise we might link with an installed library
20512 # when we should be linking with a yet-to-be-installed one
20513 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20514 test "$hardcode_minus_L_F77" != no; then
20515 # Linking always hardcodes the temporary library directory.
20516 hardcode_action_F77=relink
20518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20519 hardcode_action_F77=immediate
20522 # We cannot hardcode anything, or else we can only hardcode existing
20524 hardcode_action_F77=unsupported
20526 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20527 echo "${ECHO_T}$hardcode_action_F77" >&6
20529 if test "$hardcode_action_F77" = relink; then
20530 # Fast installation is not supported
20531 enable_fast_install=no
20532 elif test "$shlibpath_overrides_runpath" = yes ||
20533 test "$enable_shared" = no; then
20534 # Fast installation is not necessary
20535 enable_fast_install=needless
20540 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20541 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20542 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20543 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20544 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20545 echo "$as_me:$LINENO: result: yes" >&5
20546 echo "${ECHO_T}yes" >&6
20548 # FIXME - insert some real tests, host_os isn't really good enough
20551 if test -n "$STRIP" ; then
20552 striplib="$STRIP -x"
20553 echo "$as_me:$LINENO: result: yes" >&5
20554 echo "${ECHO_T}yes" >&6
20556 echo "$as_me:$LINENO: result: no" >&5
20557 echo "${ECHO_T}no" >&6
20561 echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6
20569 # The else clause should only fire when bootstrapping the
20570 # libtool distribution, otherwise you forgot to ship ltmain.sh
20571 # with your package, and you will get complaints that there are
20572 # no rules to generate ltmain.sh.
20573 if test -f "$ltmain"; then
20574 # See if we are running on zsh, and set the options which allow our commands through
20575 # without removal of \ escapes.
20576 if test -n "${ZSH_VERSION+set}" ; then
20577 setopt NO_GLOB_SUBST
20579 # Now quote all the things that may contain metacharacters while being
20580 # careful not to overquote the AC_SUBSTed values. We take copies of the
20581 # variables and quote the copies for generation of the libtool script.
20582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20586 deplibs_check_method reload_flag reload_cmds need_locks \
20587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20588 lt_cv_sys_global_symbol_to_c_name_address \
20589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20590 old_postinstall_cmds old_postuninstall_cmds \
20594 lt_prog_compiler_wl_F77 \
20595 lt_prog_compiler_pic_F77 \
20596 lt_prog_compiler_static_F77 \
20597 lt_prog_compiler_no_builtin_flag_F77 \
20598 export_dynamic_flag_spec_F77 \
20599 thread_safe_flag_spec_F77 \
20600 whole_archive_flag_spec_F77 \
20601 enable_shared_with_static_runtimes_F77 \
20602 old_archive_cmds_F77 \
20603 old_archive_from_new_cmds_F77 \
20604 predep_objects_F77 \
20605 postdep_objects_F77 \
20608 compiler_lib_search_path_F77 \
20610 archive_expsym_cmds_F77 \
20611 postinstall_cmds_F77 \
20612 postuninstall_cmds_F77 \
20613 old_archive_from_expsyms_cmds_F77 \
20614 allow_undefined_flag_F77 \
20615 no_undefined_flag_F77 \
20616 export_symbols_cmds_F77 \
20617 hardcode_libdir_flag_spec_F77 \
20618 hardcode_libdir_flag_spec_ld_F77 \
20619 hardcode_libdir_separator_F77 \
20620 hardcode_automatic_F77 \
20622 module_expsym_cmds_F77 \
20623 lt_cv_prog_compiler_c_o_F77 \
20624 exclude_expsyms_F77 \
20625 include_expsyms_F77; do
20628 old_archive_cmds_F77 | \
20629 old_archive_from_new_cmds_F77 | \
20630 archive_cmds_F77 | \
20631 archive_expsym_cmds_F77 | \
20632 module_cmds_F77 | \
20633 module_expsym_cmds_F77 | \
20634 old_archive_from_expsyms_cmds_F77 | \
20635 export_symbols_cmds_F77 | \
20636 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20637 postinstall_cmds | postuninstall_cmds | \
20638 old_postinstall_cmds | old_postuninstall_cmds | \
20639 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20640 # Double-quote double-evaled strings.
20641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20650 *'\$0 --fallback-echo"')
20651 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20657 cat <<__EOF__ >> "$cfgfile"
20658 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20662 # Shell to use when invoking shell scripts.
20665 # Whether or not to build shared libraries.
20666 build_libtool_libs=$enable_shared
20668 # Whether or not to build static libraries.
20669 build_old_libs=$enable_static
20671 # Whether or not to add -lc for building shared libraries.
20672 build_libtool_need_lc=$archive_cmds_need_lc_F77
20674 # Whether or not to disallow shared libs when runtime libs are static
20675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20677 # Whether or not to optimize for fast installation.
20678 fast_install=$enable_fast_install
20681 host_alias=$host_alias
20684 # An echo program that does not interpret backslashes.
20689 AR_FLAGS=$lt_AR_FLAGS
20694 # A language-specific compiler.
20695 CC=$lt_compiler_F77
20697 # Is the compiler the GNU C compiler?
20703 # The linker used to build libraries.
20706 # Whether we need hard or soft links.
20709 # A BSD-compatible nm program.
20712 # A symbol stripping program
20715 # Used to examine libraries when file_magic_cmd begins "file"
20716 MAGIC_CMD=$MAGIC_CMD
20718 # Used on cygwin: DLL creation program.
20721 # Used on cygwin: object dumper.
20724 # Used on cygwin: assembler.
20727 # The name of the directory that contains temporary libtool files.
20730 # How to create reloadable object files.
20731 reload_flag=$lt_reload_flag
20732 reload_cmds=$lt_reload_cmds
20734 # How to pass a linker flag through the compiler.
20735 wl=$lt_lt_prog_compiler_wl_F77
20737 # Object file suffix (normally "o").
20738 objext="$ac_objext"
20740 # Old archive suffix (normally "a").
20743 # Shared library suffix (normally ".so").
20744 shrext_cmds='$shrext_cmds'
20746 # Executable file suffix (normally "").
20749 # Additional compiler flags for building library objects.
20750 pic_flag=$lt_lt_prog_compiler_pic_F77
20753 # What is the maximum length of a command?
20754 max_cmd_len=$lt_cv_sys_max_cmd_len
20756 # Does compiler simultaneously support -c and -o options?
20757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20759 # Must we lock files when doing compilation ?
20760 need_locks=$lt_need_locks
20762 # Do we need the lib prefix for modules?
20763 need_lib_prefix=$need_lib_prefix
20765 # Do we need a version for libraries?
20766 need_version=$need_version
20768 # Whether dlopen is supported.
20769 dlopen_support=$enable_dlopen
20771 # Whether dlopen of programs is supported.
20772 dlopen_self=$enable_dlopen_self
20774 # Whether dlopen of statically linked programs is supported.
20775 dlopen_self_static=$enable_dlopen_self_static
20777 # Compiler flag to prevent dynamic linking.
20778 link_static_flag=$lt_lt_prog_compiler_static_F77
20780 # Compiler flag to turn off builtin functions.
20781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20783 # Compiler flag to allow reflexive dlopens.
20784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20786 # Compiler flag to generate shared objects directly from archives.
20787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20789 # Compiler flag to generate thread-safe objects.
20790 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20792 # Library versioning type.
20793 version_type=$version_type
20795 # Format of library name prefix.
20796 libname_spec=$lt_libname_spec
20798 # List of archive names. First name is the real one, the rest are links.
20799 # The last name is the one that the linker finds with -lNAME.
20800 library_names_spec=$lt_library_names_spec
20802 # The coded name of the library, if different from the real name.
20803 soname_spec=$lt_soname_spec
20805 # Commands used to build and install an old-style archive.
20807 old_archive_cmds=$lt_old_archive_cmds_F77
20808 old_postinstall_cmds=$lt_old_postinstall_cmds
20809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20811 # Create an old-style archive from a shared archive.
20812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20814 # Create a temporary old-style archive to link instead of a shared archive.
20815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20817 # Commands used to build and install a shared archive.
20818 archive_cmds=$lt_archive_cmds_F77
20819 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20820 postinstall_cmds=$lt_postinstall_cmds
20821 postuninstall_cmds=$lt_postuninstall_cmds
20823 # Commands used to build a loadable module (assumed same as above if empty)
20824 module_cmds=$lt_module_cmds_F77
20825 module_expsym_cmds=$lt_module_expsym_cmds_F77
20827 # Commands to strip libraries.
20828 old_striplib=$lt_old_striplib
20829 striplib=$lt_striplib
20831 # Dependencies to place before the objects being linked to create a
20833 predep_objects=$lt_predep_objects_F77
20835 # Dependencies to place after the objects being linked to create a
20837 postdep_objects=$lt_postdep_objects_F77
20839 # Dependencies to place before the objects being linked to create a
20841 predeps=$lt_predeps_F77
20843 # Dependencies to place after the objects being linked to create a
20845 postdeps=$lt_postdeps_F77
20847 # The library search path used internally by the compiler when linking
20848 # a shared library.
20849 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20851 # Method to check whether dependent libraries are shared objects.
20852 deplibs_check_method=$lt_deplibs_check_method
20854 # Command to use when deplibs_check_method == file_magic.
20855 file_magic_cmd=$lt_file_magic_cmd
20857 # Flag that allows shared libraries with undefined symbols to be built.
20858 allow_undefined_flag=$lt_allow_undefined_flag_F77
20860 # Flag that forces no undefined symbols.
20861 no_undefined_flag=$lt_no_undefined_flag_F77
20863 # Commands used to finish a libtool library installation in a directory.
20864 finish_cmds=$lt_finish_cmds
20866 # Same as above, but a single script fragment to be evaled but not shown.
20867 finish_eval=$lt_finish_eval
20869 # Take the output of nm and produce a listing of raw symbols and C names.
20870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20872 # Transform the output of nm in a proper C declaration
20873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20875 # Transform the output of nm in a C name address pair
20876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20878 # This is the shared library runtime path variable.
20879 runpath_var=$runpath_var
20881 # This is the shared library path variable.
20882 shlibpath_var=$shlibpath_var
20884 # Is shlibpath searched before the hard-coded library search path?
20885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20887 # How to hardcode a shared library path into an executable.
20888 hardcode_action=$hardcode_action_F77
20890 # Whether we should hardcode library paths into libraries.
20891 hardcode_into_libs=$hardcode_into_libs
20893 # Flag to hardcode \$libdir into a binary during linking.
20894 # This must work even if \$libdir does not exist.
20895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20897 # If ld is used when linking, flag to hardcode \$libdir into
20898 # a binary during linking. This must work even if \$libdir does
20900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20902 # Whether we need a single -rpath flag with a separated argument.
20903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20906 # resulting binary.
20907 hardcode_direct=$hardcode_direct_F77
20909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20910 # resulting binary.
20911 hardcode_minus_L=$hardcode_minus_L_F77
20913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20914 # the resulting binary.
20915 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20917 # Set to yes if building a shared library automatically hardcodes DIR into the library
20918 # and all subsequent libraries and executables linked against it.
20919 hardcode_automatic=$hardcode_automatic_F77
20921 # Variables whose values should be saved in libtool wrapper scripts and
20922 # restored at relink time.
20923 variables_saved_for_relink="$variables_saved_for_relink"
20925 # Whether libtool must link a program against all its dependency libraries.
20926 link_all_deplibs=$link_all_deplibs_F77
20928 # Compile-time system search path for libraries
20929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20931 # Run-time system search path for libraries
20932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20934 # Fix the shell variable \$srcfile for the compiler.
20935 fix_srcfile_path="$fix_srcfile_path_F77"
20937 # Set to yes if exported symbols are required.
20938 always_export_symbols=$always_export_symbols_F77
20940 # The commands to list exported symbols.
20941 export_symbols_cmds=$lt_export_symbols_cmds_F77
20943 # The commands to extract the exported symbol list from a shared archive.
20944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20946 # Symbols that should not be listed in the preloaded symbols.
20947 exclude_expsyms=$lt_exclude_expsyms_F77
20949 # Symbols that must always be exported.
20950 include_expsyms=$lt_include_expsyms_F77
20952 # ### END LIBTOOL TAG CONFIG: $tagname
20958 # If there is no Makefile yet, we rely on a make rule to execute
20959 # `config.status --recheck' to rerun these tests and create the
20960 # libtool script then.
20961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20962 if test -f "$ltmain_in"; then
20963 test -f Makefile && make "$ltmain"
20969 ac_cpp='$CPP $CPPFLAGS'
20970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20982 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20990 # Source file extension for Java test sources.
20993 # Object file extension for compiled Java test sources.
20997 # Code to be used in simple compile tests
20998 lt_simple_compile_test_code="class foo {}\n"
21000 # Code to be used in simple link tests
21001 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21005 # If no C compiler was specified, use CC.
21008 # Allow CC to be a program name with arguments.
21012 # Allow CC to be a program name with arguments.
21018 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21019 archive_cmds_need_lc_GCJ=no
21022 lt_prog_compiler_no_builtin_flag_GCJ=
21024 if test "$GCC" = yes; then
21025 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21028 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21029 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21030 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 lt_cv_prog_compiler_rtti_exceptions=no
21034 ac_outfile=conftest.$ac_objext
21035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21036 lt_compiler_flag="-fno-rtti -fno-exceptions"
21037 # Insert the option either (1) after the last *FLAGS variable, or
21038 # (2) before a word containing "conftest.", or (3) at the end.
21039 # Note that $ac_compile itself does not contain backslashes and begins
21040 # with a dollar sign (not a hyphen), so the echo should work correctly.
21041 # The option is referenced via a variable to avoid confusing sed.
21042 lt_compile=`echo "$ac_compile" | $SED \
21043 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21045 -e 's:$: $lt_compiler_flag:'`
21046 (eval echo "\"\$as_me:21046: $lt_compile\"" >&5)
21047 (eval "$lt_compile" 2>conftest.err)
21049 cat conftest.err >&5
21050 echo "$as_me:21050: \$? = $ac_status" >&5
21051 if (exit $ac_status) && test -s "$ac_outfile"; then
21052 # The compiler can only warn and ignore the option if not recognized
21053 # So say no if there are warnings
21054 if test ! -s conftest.err; then
21055 lt_cv_prog_compiler_rtti_exceptions=yes
21061 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21062 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21064 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21065 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21072 lt_prog_compiler_wl_GCJ=
21073 lt_prog_compiler_pic_GCJ=
21074 lt_prog_compiler_static_GCJ=
21076 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21077 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21079 if test "$GCC" = yes; then
21080 lt_prog_compiler_wl_GCJ='-Wl,'
21081 lt_prog_compiler_static_GCJ='-static'
21085 # All AIX code is PIC.
21086 if test "$host_cpu" = ia64; then
21087 # AIX 5 now supports IA64 processor
21088 lt_prog_compiler_static_GCJ='-Bstatic'
21093 # FIXME: we need at least 68020 code to build shared libraries, but
21094 # adding the `-m68020' flag to GCC prevents building anything better,
21096 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21099 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21100 # PIC is the default for these OSes.
21103 mingw* | pw32* | os2*)
21104 # This hack is so that the source file can tell whether it is being
21105 # built for inclusion in a dll (and should export symbols for example).
21106 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21109 darwin* | rhapsody*)
21110 # PIC is the default on this platform
21111 # Common symbols not allowed in MH_DYLIB files
21112 lt_prog_compiler_pic_GCJ='-fno-common'
21116 # Just because we use GCC doesn't mean we suddenly get shared libraries
21117 # on systems that don't support them.
21118 lt_prog_compiler_can_build_shared_GCJ=no
21123 if test -d /usr/nec; then
21124 lt_prog_compiler_pic_GCJ=-Kconform_pic
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='-fPIC'
21142 lt_prog_compiler_pic_GCJ='-fPIC'
21146 # PORTME Check for flag to pass linker flags through the system compiler.
21149 lt_prog_compiler_wl_GCJ='-Wl,'
21150 if test "$host_cpu" = ia64; then
21151 # AIX 5 now supports IA64 processor
21152 lt_prog_compiler_static_GCJ='-Bstatic'
21154 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21158 # PIC is the default on this platform
21159 # Common symbols not allowed in MH_DYLIB files
21160 case "$cc_basename" in
21162 lt_prog_compiler_pic_GCJ='-qnocommon'
21163 lt_prog_compiler_wl_GCJ='-Wl,'
21168 mingw* | pw32* | os2*)
21169 # This hack is so that the source file can tell whether it is being
21170 # built for inclusion in a dll (and should export symbols for example).
21171 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21174 hpux9* | hpux10* | hpux11*)
21175 lt_prog_compiler_wl_GCJ='-Wl,'
21176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21177 # not for PA HP-UX.
21178 case "$host_cpu" in
21183 lt_prog_compiler_pic_GCJ='+Z'
21186 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21187 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21190 irix5* | irix6* | nonstopux*)
21191 lt_prog_compiler_wl_GCJ='-Wl,'
21192 # PIC (with -KPIC) is the default.
21193 lt_prog_compiler_static_GCJ='-non_shared'
21197 lt_prog_compiler_pic_GCJ='-KPIC'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21204 lt_prog_compiler_wl_GCJ='-Wl,'
21205 lt_prog_compiler_pic_GCJ='-KPIC'
21206 lt_prog_compiler_static_GCJ='-static'
21209 lt_prog_compiler_wl_GCJ='-Wl,'
21210 # All Alpha code is PIC.
21211 lt_prog_compiler_static_GCJ='-non_shared'
21216 osf3* | osf4* | osf5*)
21217 lt_prog_compiler_wl_GCJ='-Wl,'
21218 # All OSF/1 code is PIC.
21219 lt_prog_compiler_static_GCJ='-non_shared'
21223 lt_prog_compiler_pic_GCJ='-Kpic'
21224 lt_prog_compiler_static_GCJ='-dn'
21228 lt_prog_compiler_wl_GCJ='-Wl,'
21229 lt_prog_compiler_pic_GCJ='-KPIC'
21230 lt_prog_compiler_static_GCJ='-Bstatic'
21234 lt_prog_compiler_wl_GCJ='-Qoption ld '
21235 lt_prog_compiler_pic_GCJ='-PIC'
21236 lt_prog_compiler_static_GCJ='-Bstatic'
21239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21240 lt_prog_compiler_wl_GCJ='-Wl,'
21241 lt_prog_compiler_pic_GCJ='-KPIC'
21242 lt_prog_compiler_static_GCJ='-Bstatic'
21246 if test -d /usr/nec ;then
21247 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21248 lt_prog_compiler_static_GCJ='-Bstatic'
21253 lt_prog_compiler_pic_GCJ='-pic'
21254 lt_prog_compiler_static_GCJ='-Bstatic'
21258 lt_prog_compiler_can_build_shared_GCJ=no
21263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21264 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21267 # Check to make sure the PIC flag actually works.
21269 if test -n "$lt_prog_compiler_pic_GCJ"; then
21271 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21273 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 lt_prog_compiler_pic_works_GCJ=no
21277 ac_outfile=conftest.$ac_objext
21278 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21279 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21280 # Insert the option either (1) after the last *FLAGS variable, or
21281 # (2) before a word containing "conftest.", or (3) at the end.
21282 # Note that $ac_compile itself does not contain backslashes and begins
21283 # with a dollar sign (not a hyphen), so the echo should work correctly.
21284 # The option is referenced via a variable to avoid confusing sed.
21285 lt_compile=`echo "$ac_compile" | $SED \
21286 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21288 -e 's:$: $lt_compiler_flag:'`
21289 (eval echo "\"\$as_me:21289: $lt_compile\"" >&5)
21290 (eval "$lt_compile" 2>conftest.err)
21292 cat conftest.err >&5
21293 echo "$as_me:21293: \$? = $ac_status" >&5
21294 if (exit $ac_status) && test -s "$ac_outfile"; then
21295 # The compiler can only warn and ignore the option if not recognized
21296 # So say no if there are warnings
21297 if test ! -s conftest.err; then
21298 lt_prog_compiler_pic_works_GCJ=yes
21304 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21305 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21307 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21308 case $lt_prog_compiler_pic_GCJ in
21310 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21313 lt_prog_compiler_pic_GCJ=
21314 lt_prog_compiler_can_build_shared_GCJ=no
21319 # For platforms which do not support PIC, -DPIC is meaningless:
21321 lt_prog_compiler_pic_GCJ=
21324 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21330 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 lt_cv_prog_compiler_c_o_GCJ=no
21334 $rm -r conftest 2>/dev/null
21338 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21340 lt_compiler_flag="-o out/conftest2.$ac_objext"
21341 # Insert the option either (1) after the last *FLAGS variable, or
21342 # (2) before a word containing "conftest.", or (3) at the end.
21343 # Note that $ac_compile itself does not contain backslashes and begins
21344 # with a dollar sign (not a hyphen), so the echo should work correctly.
21345 lt_compile=`echo "$ac_compile" | $SED \
21346 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21348 -e 's:$: $lt_compiler_flag:'`
21349 (eval echo "\"\$as_me:21349: $lt_compile\"" >&5)
21350 (eval "$lt_compile" 2>out/conftest.err)
21352 cat out/conftest.err >&5
21353 echo "$as_me:21353: \$? = $ac_status" >&5
21354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21356 # The compiler can only warn and ignore the option if not recognized
21357 # So say no if there are warnings
21358 if test ! -s out/conftest.err; then
21359 lt_cv_prog_compiler_c_o_GCJ=yes
21364 # SGI C++ compiler will create directory out/ii_files/ for
21365 # template instantiation
21366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21367 $rm out/* && rmdir out
21373 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21374 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21377 hard_links="nottested"
21378 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21379 # do not overwrite the value of need_locks provided by the user
21380 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21381 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21386 ln conftest.a conftest.b 2>&5 || hard_links=no
21387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21388 echo "$as_me:$LINENO: result: $hard_links" >&5
21389 echo "${ECHO_T}$hard_links" >&6
21390 if test "$hard_links" = no; then
21391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21392 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21399 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21400 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21403 allow_undefined_flag_GCJ=
21404 enable_shared_with_static_runtimes_GCJ=no
21406 archive_expsym_cmds_GCJ=
21407 old_archive_From_new_cmds_GCJ=
21408 old_archive_from_expsyms_cmds_GCJ=
21409 export_dynamic_flag_spec_GCJ=
21410 whole_archive_flag_spec_GCJ=
21411 thread_safe_flag_spec_GCJ=
21412 hardcode_libdir_flag_spec_GCJ=
21413 hardcode_libdir_flag_spec_ld_GCJ=
21414 hardcode_libdir_separator_GCJ=
21415 hardcode_direct_GCJ=no
21416 hardcode_minus_L_GCJ=no
21417 hardcode_shlibpath_var_GCJ=unsupported
21418 link_all_deplibs_GCJ=unknown
21419 hardcode_automatic_GCJ=no
21421 module_expsym_cmds_GCJ=
21422 always_export_symbols_GCJ=no
21423 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21424 # include_expsyms should be a list of space-separated symbols to be *always*
21425 # included in the symbol list
21426 include_expsyms_GCJ=
21427 # exclude_expsyms can be an extended regexp of symbols to exclude
21428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21430 # as well as any symbol that contains `d'.
21431 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21433 # platforms (ab)use it in PIC code, but their linkers get confused if
21434 # the symbol is explicitly referenced. Since portable code cannot
21435 # rely on this symbol name, it's probably fine to never include it in
21436 # preloaded symbol tables.
21437 extract_expsyms_cmds=
21440 cygwin* | mingw* | pw32*)
21441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21442 # When not using gcc, we currently assume that we are using
21443 # Microsoft Visual C++.
21444 if test "$GCC" != yes; then
21454 if test "$with_gnu_ld" = yes; then
21455 # If archive_cmds runs LD, not CC, wlarc should be empty
21458 # See if GNU ld supports shared libraries.
21460 aix3* | aix4* | aix5*)
21461 # On AIX/PPC, the GNU linker is very broken
21462 if test "$host_cpu" != ia64; then
21466 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21467 *** to be unable to reliably create shared libraries on AIX.
21468 *** Therefore, libtool is disabling shared libraries support. If you
21469 *** really care for shared libraries, you may want to modify your PATH
21470 *** so that a non-GNU linker is found, and then restart.
21477 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)'
21478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21479 hardcode_minus_L_GCJ=yes
21481 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21482 # that the semantics of dynamic libraries on AmigaOS, at least up
21483 # to version 4, is to share data among multiple programs linked
21484 # with the same dynamic library. Since this doesn't match the
21485 # behavior of shared libraries on other platforms, we can't use
21491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21492 allow_undefined_flag_GCJ=unsupported
21493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21494 # support --undefined. This deserves some investigation. FIXME
21495 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501 cygwin* | mingw* | pw32*)
21502 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21503 # as there is no search path for DLLs.
21504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21505 allow_undefined_flag_GCJ=unsupported
21506 always_export_symbols_GCJ=no
21507 enable_shared_with_static_runtimes_GCJ=yes
21508 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21510 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21511 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21512 # If the export-symbols file already is a .def file (1st line
21513 # is EXPORTS), use it as is; otherwise, prepend...
21514 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21515 cp $export_symbols $output_objdir/$soname.def;
21517 echo EXPORTS > $output_objdir/$soname.def;
21518 cat $export_symbols >> $output_objdir/$soname.def;
21520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21528 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21532 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21537 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21541 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21542 *** create shared libraries on Solaris systems. Therefore, libtool
21543 *** is disabling shared libraries support. We urge you to upgrade GNU
21544 *** binutils to release 2.9.1 or newer. Another option is to modify
21545 *** your PATH or compiler configuration so that the native linker is
21546 *** used, and then restart.
21549 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21551 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21558 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21560 hardcode_direct_GCJ=yes
21561 hardcode_shlibpath_var_GCJ=no
21565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21566 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21567 archive_cmds_GCJ="$tmp_archive_cmds"
21568 supports_anon_versioning=no
21569 case `$LD -v 2>/dev/null` in
21570 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21571 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21572 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21573 *\ 2.11.*) ;; # other 2.11 versions
21574 *) supports_anon_versioning=yes ;;
21576 if test $supports_anon_versioning = yes; then
21577 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21579 $echo "local: *; };" >> $output_objdir/$libname.ver~
21580 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21582 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21591 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21592 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21599 if test "$ld_shlibs_GCJ" = yes; then
21600 runpath_var=LD_RUN_PATH
21601 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21602 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21603 # ancient GNU ld didn't support --whole-archive et. al.
21604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21605 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21607 whole_archive_flag_spec_GCJ=
21611 # PORTME fill in a description of your system's linker (not GNU ld)
21614 allow_undefined_flag_GCJ=unsupported
21615 always_export_symbols_GCJ=yes
21616 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'
21617 # Note: this linker hardcodes the directories in LIBPATH if there
21618 # are no directories specified by -L.
21619 hardcode_minus_L_GCJ=yes
21620 if test "$GCC" = yes && test -z "$link_static_flag"; then
21621 # Neither direct hardcoding nor static linking is supported with a
21623 hardcode_direct_GCJ=unsupported
21628 if test "$host_cpu" = ia64; then
21629 # On IA64, the linker does run time linking by default, so we don't
21630 # have to do anything special.
21631 aix_use_runtimelinking=no
21632 exp_sym_flag='-Bexport'
21635 # If we're using GNU nm, then we don't want the "-C" option.
21636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21637 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21638 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'
21640 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'
21642 aix_use_runtimelinking=no
21644 # Test if we are trying to use run time linking or normal
21645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21646 # need to do runtime linking.
21647 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21648 for ld_flag in $LDFLAGS; do
21649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21650 aix_use_runtimelinking=yes
21656 exp_sym_flag='-bexport'
21657 no_entry_flag='-bnoentry'
21660 # When large executables or shared objects are built, AIX ld can
21661 # have problems creating the table of contents. If linking a library
21662 # or program results in "error TOC overflow" add -mminimal-toc to
21663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21666 archive_cmds_GCJ=''
21667 hardcode_direct_GCJ=yes
21668 hardcode_libdir_separator_GCJ=':'
21669 link_all_deplibs_GCJ=yes
21671 if test "$GCC" = yes; then
21672 case $host_os in aix4.012|aix4.012.*)
21673 # We only want to do this on AIX 4.2 and lower, the check
21674 # below for broken collect2 doesn't work under 4.3+
21675 collect2name=`${CC} -print-prog-name=collect2`
21676 if test -f "$collect2name" && \
21677 strings "$collect2name" | grep resolve_lib_name >/dev/null
21679 # We have reworked collect2
21680 hardcode_direct_GCJ=yes
21682 # We have old collect2
21683 hardcode_direct_GCJ=unsupported
21684 # It fails to find uninstalled libraries when the uninstalled
21685 # path is not listed in the libpath. Setting hardcode_minus_L
21686 # to unsupported forces relinking
21687 hardcode_minus_L_GCJ=yes
21688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21689 hardcode_libdir_separator_GCJ=
21692 shared_flag='-shared'
21695 if test "$host_cpu" = ia64; then
21696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21697 # chokes on -Wl,-G. The following line is correct:
21700 if test "$aix_use_runtimelinking" = yes; then
21701 shared_flag='${wl}-G'
21703 shared_flag='${wl}-bM:SRE'
21708 # It seems that -bexpall does not export symbols beginning with
21709 # underscore (_), so it is better to generate a list of symbols to export.
21710 always_export_symbols_GCJ=yes
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # Warning - without using the other runtime loading flags (-brtl),
21713 # -berok will link without error, but may produce a broken library.
21714 allow_undefined_flag_GCJ='-berok'
21715 # Determine the default libpath from the value encoded in an empty executable.
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21733 (eval $ac_link) 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } &&
21740 { ac_try='test -z "$ac_c_werror_flag"
21741 || test ! -s conftest.err'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } &&
21747 { ac_try='test -s conftest$ac_exeext'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21756 # Check for a 64-bit object if we didn't find anything.
21757 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; }
21760 echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21764 rm -f conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
21766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21769 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"
21771 if test "$host_cpu" = ia64; then
21772 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21773 allow_undefined_flag_GCJ="-z nodefs"
21774 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"
21776 # Determine the default libpath from the value encoded in an empty executable.
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21792 rm -f conftest.$ac_objext conftest$ac_exeext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21794 (eval $ac_link) 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
21801 { ac_try='test -z "$ac_c_werror_flag"
21802 || test ! -s conftest.err'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest$ac_exeext'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; }; then
21815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21817 # Check for a 64-bit object if we didn't find anything.
21818 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; }
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21825 rm -f conftest.err conftest.$ac_objext \
21826 conftest$ac_exeext conftest.$ac_ext
21827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21829 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21830 # Warning - without using the other run time loading flags,
21831 # -berok will link without error, but may produce a broken library.
21832 no_undefined_flag_GCJ=' ${wl}-bernotok'
21833 allow_undefined_flag_GCJ=' ${wl}-berok'
21834 # -bexpall does not export symbols beginning with underscore (_)
21835 always_export_symbols_GCJ=yes
21836 # Exported symbols can be pulled into shared objects from archives
21837 whole_archive_flag_spec_GCJ=' '
21838 archive_cmds_need_lc_GCJ=yes
21839 # This is similar to how AIX traditionally builds it's shared libraries.
21840 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'
21846 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)'
21847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21848 hardcode_minus_L_GCJ=yes
21849 # see comment about different semantics on the GNU ld section
21854 export_dynamic_flag_spec_GCJ=-rdynamic
21857 cygwin* | mingw* | pw32*)
21858 # When not using gcc, we currently assume that we are using
21859 # Microsoft Visual C++.
21860 # hardcode_libdir_flag_spec is actually meaningless, as there is
21861 # no search path for DLLs.
21862 hardcode_libdir_flag_spec_GCJ=' '
21863 allow_undefined_flag_GCJ=unsupported
21864 # Tell ltmain to make .lib files, not .a files.
21866 # Tell ltmain to make .dll files, not .so files.
21868 # FIXME: Setting linknames here is a bad hack.
21869 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21870 # The linker will automatically build a .lib file if we build a DLL.
21871 old_archive_From_new_cmds_GCJ='true'
21872 # FIXME: Should let the user specify the lib program.
21873 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21874 fix_srcfile_path='`cygpath -w "$srcfile"`'
21875 enable_shared_with_static_runtimes_GCJ=yes
21878 darwin* | rhapsody*)
21880 rhapsody* | darwin1.[012])
21881 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21885 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21887 case ${MACOSX_DEPLOYMENT_TARGET} in
21889 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21892 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21898 archive_cmds_need_lc_GCJ=no
21899 hardcode_direct_GCJ=no
21900 hardcode_automatic_GCJ=yes
21901 hardcode_shlibpath_var_GCJ=unsupported
21902 whole_archive_flag_spec_GCJ=''
21903 link_all_deplibs_GCJ=yes
21904 if test "$GCC" = yes ; then
21905 output_verbose_link_cmd='echo'
21906 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21907 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21909 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}'
21910 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}'
21912 case "$cc_basename" in
21914 output_verbose_link_cmd='echo'
21915 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21916 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21918 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}'
21919 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}'
21929 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21930 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21931 hardcode_shlibpath_var_GCJ=no
21938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21939 # support. Future versions do this automatically, but an explicit c++rt0.o
21940 # does not break anything, and helps significantly (at the cost of a little
21943 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21945 hardcode_direct_GCJ=yes
21946 hardcode_shlibpath_var_GCJ=no
21949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21951 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21952 hardcode_direct_GCJ=yes
21953 hardcode_minus_L_GCJ=yes
21954 hardcode_shlibpath_var_GCJ=no
21957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21958 freebsd* | kfreebsd*-gnu)
21959 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21960 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21961 hardcode_direct_GCJ=yes
21962 hardcode_shlibpath_var_GCJ=no
21966 if test "$GCC" = yes; then
21967 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'
21969 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'
21971 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21972 hardcode_libdir_separator_GCJ=:
21973 hardcode_direct_GCJ=yes
21975 # hardcode_minus_L: Not really in the search PATH,
21976 # but as the default location of the library.
21977 hardcode_minus_L_GCJ=yes
21978 export_dynamic_flag_spec_GCJ='${wl}-E'
21982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21983 case "$host_cpu" in
21985 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21988 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21992 case "$host_cpu" in
21994 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21997 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22001 if test "$with_gnu_ld" = no; then
22002 case "$host_cpu" in
22004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22005 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22006 hardcode_libdir_separator_GCJ=:
22007 hardcode_direct_GCJ=no
22008 hardcode_shlibpath_var_GCJ=no
22011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22012 hardcode_direct_GCJ=no
22013 hardcode_shlibpath_var_GCJ=no
22015 # hardcode_minus_L: Not really in the search PATH,
22016 # but as the default location of the library.
22017 hardcode_minus_L_GCJ=yes
22020 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22021 hardcode_libdir_separator_GCJ=:
22022 hardcode_direct_GCJ=yes
22023 export_dynamic_flag_spec_GCJ='${wl}-E'
22025 # hardcode_minus_L: Not really in the search PATH,
22026 # but as the default location of the library.
22027 hardcode_minus_L_GCJ=yes
22033 irix5* | irix6* | nonstopux*)
22034 if test "$GCC" = yes; then
22035 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'
22037 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'
22038 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22041 hardcode_libdir_separator_GCJ=:
22042 link_all_deplibs_GCJ=yes
22046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22049 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22051 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22052 hardcode_direct_GCJ=yes
22053 hardcode_shlibpath_var_GCJ=no
22057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22058 hardcode_direct_GCJ=yes
22059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22060 hardcode_libdir_separator_GCJ=:
22061 hardcode_shlibpath_var_GCJ=no
22065 hardcode_direct_GCJ=yes
22066 hardcode_shlibpath_var_GCJ=no
22067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22069 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22071 export_dynamic_flag_spec_GCJ='${wl}-E'
22074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22076 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22079 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22087 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22088 hardcode_minus_L_GCJ=yes
22089 allow_undefined_flag_GCJ=unsupported
22090 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'
22091 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22095 if test "$GCC" = yes; then
22096 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22097 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'
22099 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22100 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'
22102 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22103 hardcode_libdir_separator_GCJ=:
22106 osf4* | osf5*) # as osf3* with the addition of -msym flag
22107 if test "$GCC" = yes; then
22108 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22109 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'
22110 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22112 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22113 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'
22114 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~
22115 $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'
22117 # Both c and cxx compiler support -rpath directly
22118 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22120 hardcode_libdir_separator_GCJ=:
22124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22125 hardcode_shlibpath_var_GCJ=no
22126 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22127 runpath_var=LD_RUN_PATH
22128 hardcode_runpath_var=yes
22132 no_undefined_flag_GCJ=' -z text'
22133 if test "$GCC" = yes; then
22134 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22135 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22136 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22138 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22139 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22140 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22142 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22143 hardcode_shlibpath_var_GCJ=no
22145 solaris2.[0-5] | solaris2.[0-5].*) ;;
22146 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22147 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22149 link_all_deplibs_GCJ=yes
22153 if test "x$host_vendor" = xsequent; then
22154 # Use $CC to link under sequent, because it throws in some extra .o
22155 # files that make .init and .fini sections work.
22156 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22158 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22161 hardcode_direct_GCJ=yes
22162 hardcode_minus_L_GCJ=yes
22163 hardcode_shlibpath_var_GCJ=no
22167 case $host_vendor in
22169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22170 hardcode_direct_GCJ=yes # is this really true???
22173 ## LD is ld it makes a PLAMLIB
22174 ## CC just makes a GrossModule.
22175 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22176 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22177 hardcode_direct_GCJ=no
22180 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22181 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22184 runpath_var='LD_RUN_PATH'
22185 hardcode_shlibpath_var_GCJ=no
22189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22190 hardcode_shlibpath_var_GCJ=no
22191 export_dynamic_flag_spec_GCJ='-Bexport'
22195 if test -d /usr/nec; then
22196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197 hardcode_shlibpath_var_GCJ=no
22198 runpath_var=LD_RUN_PATH
22199 hardcode_runpath_var=yes
22205 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_GCJ=yes
22207 hardcode_minus_L_GCJ=no
22208 hardcode_shlibpath_var_GCJ=no
22209 hardcode_runpath_var=yes
22210 runpath_var=LD_RUN_PATH
22213 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22214 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22215 if test "$GCC" = yes; then
22216 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22218 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22220 runpath_var='LD_RUN_PATH'
22221 hardcode_shlibpath_var_GCJ=no
22225 no_undefined_flag_GCJ=' -z text'
22226 # $CC -shared without GNU ld will not create a library from C++
22227 # object files and a static libstdc++, better avoid it by now
22228 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22229 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22231 hardcode_libdir_flag_spec_GCJ=
22232 hardcode_shlibpath_var_GCJ=no
22233 runpath_var='LD_RUN_PATH'
22237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22239 hardcode_shlibpath_var_GCJ=no
22248 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22249 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22250 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22253 if test "$GCC" = yes; then
22254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22258 # Do we need to explicitly link libc?
22260 case "x$archive_cmds_need_lc_GCJ" in
22262 # Assume -lc should be added
22263 archive_cmds_need_lc_GCJ=yes
22265 if test "$enable_shared" = yes && test "$GCC" = yes; then
22266 case $archive_cmds_GCJ in
22268 # FIXME: we may have to deal with multi-command sequences.
22271 # Test whether the compiler implicitly links with -lc since on some
22272 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22273 # to ld, don't add -lc before -lgcc.
22274 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22275 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22280 (eval $ac_compile) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } 2>conftest.err; then
22286 libobjs=conftest.$ac_objext
22288 wl=$lt_prog_compiler_wl_GCJ
22294 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22295 allow_undefined_flag_GCJ=
22296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22297 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }
22302 archive_cmds_need_lc_GCJ=no
22304 archive_cmds_need_lc_GCJ=yes
22306 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22308 cat conftest.err 1>&5
22311 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22312 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22319 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22320 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22321 library_names_spec=
22322 libname_spec='lib$name'
22326 postuninstall_cmds=
22330 shlibpath_overrides_runpath=unknown
22332 dynamic_linker="$host_os ld.so"
22333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22334 if test "$GCC" = yes; then
22335 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22336 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22337 # if the path contains ";" then we assume it to be the separator
22338 # otherwise default to the standard path separator (i.e. ":") - it is
22339 # assumed that no part of a normal pathname contains ";" but that should
22340 # okay in the real world where ";" in dirpaths is itself problematic.
22341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22348 need_lib_prefix=unknown
22349 hardcode_into_libs=no
22351 # when you set need_version to no, make sure it does not cause -set_version
22352 # flags to be left without arguments
22353 need_version=unknown
22358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359 shlibpath_var=LIBPATH
22361 # AIX 3 has no versioning support, so we append a major version to the name.
22362 soname_spec='${libname}${release}${shared_ext}$major'
22369 hardcode_into_libs=yes
22370 if test "$host_cpu" = ia64; then
22371 # AIX 5 supports IA64
22372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373 shlibpath_var=LD_LIBRARY_PATH
22375 # With GCC up to 2.95.x, collect2 would create an import file
22376 # for dependence libraries. The import file would start with
22377 # the line `#! .'. This would cause the generated library to
22378 # depend on `.', always an invalid library. This was fixed in
22379 # development snapshots of GCC prior to 3.0.
22381 aix4 | aix4.[01] | aix4.[01].*)
22382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22384 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22387 can_build_shared=no
22391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392 # soname into executable. Probably we can add versioning support to
22393 # collect2, so additional links can be useful in future.
22394 if test "$aix_use_runtimelinking" = yes; then
22395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396 # instead of lib<name>.a to let people know that these are not
22397 # typical AIX shared libraries.
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22400 # We preserve .a as extension for shared libraries through AIX4.2
22401 # and later when we are not doing run time linking.
22402 library_names_spec='${libname}${release}.a $libname.a'
22403 soname_spec='${libname}${release}${shared_ext}$major'
22405 shlibpath_var=LIBPATH
22410 library_names_spec='$libname.ixlibrary $libname.a'
22411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22412 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'
22416 library_names_spec='${libname}${shared_ext}'
22417 dynamic_linker="$host_os ld.so"
22418 shlibpath_var=LIBRARY_PATH
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 soname_spec='${libname}${release}${shared_ext}$major'
22426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22427 shlibpath_var=LD_LIBRARY_PATH
22428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22430 # the default ld.so.conf also contains /usr/contrib/lib and
22431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22432 # libtool to hard-code these into programs
22435 cygwin* | mingw* | pw32*)
22436 version_type=windows
22441 case $GCC,$host_os in
22442 yes,cygwin* | yes,mingw* | yes,pw32*)
22443 library_names_spec='$libname.dll.a'
22444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22445 postinstall_cmds='base_file=`basename \${file}`~
22446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22447 dldir=$destdir/`dirname \$dlpath`~
22448 test -d \$dldir || mkdir -p \$dldir~
22449 $install_prog $dir/$dlname \$dldir/$dlname'
22450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451 dlpath=$dir/\$dldll~
22453 shlibpath_overrides_runpath=yes
22457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22462 # MinGW DLLs use traditional 'lib' prefix
22463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466 # It is most probably a Windows format PATH printed by
22467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468 # path with ; separators, and with drive letters. We can handle the
22469 # drive letters (cygwin fileutils understands them), so leave them,
22470 # especially as we might pass files found there to a mingw objdump,
22471 # which wouldn't understand a cygwinified path. Ahh.
22472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22478 # pw32 DLLs use 'pw' prefix rather than 'lib'
22479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22488 dynamic_linker='Win32 ld.exe'
22489 # FIXME: first we should search . and the directory the executable is in
22493 darwin* | rhapsody*)
22494 dynamic_linker="$host_os dyld"
22495 version_type=darwin
22498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22499 soname_spec='${libname}${release}${major}$shared_ext'
22500 shlibpath_overrides_runpath=yes
22501 shlibpath_var=DYLD_LIBRARY_PATH
22502 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22504 if test "$GCC" = yes; then
22505 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"`
22507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517 soname_spec='${libname}${release}${shared_ext}$major'
22518 shlibpath_var=LD_LIBRARY_PATH
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530 soname_spec='${libname}${release}${shared_ext}$major'
22531 shlibpath_var=LD_LIBRARY_PATH
22532 shlibpath_overrides_runpath=no
22533 hardcode_into_libs=yes
22534 dynamic_linker='GNU ld.so'
22538 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22539 version_type=freebsd-$objformat
22540 case $version_type in
22542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22551 shlibpath_var=LD_LIBRARY_PATH
22554 shlibpath_overrides_runpath=yes
22556 freebsd3.01* | freebsdelf3.01*)
22557 shlibpath_overrides_runpath=yes
22558 hardcode_into_libs=yes
22561 shlibpath_overrides_runpath=no
22562 hardcode_into_libs=yes
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 shlibpath_var=LD_LIBRARY_PATH
22574 hardcode_into_libs=yes
22577 hpux9* | hpux10* | hpux11*)
22578 # Give a soname corresponding to the major version so that dld.sl refuses to
22579 # link against other versions.
22583 case "$host_cpu" in
22586 hardcode_into_libs=yes
22587 dynamic_linker="$host_os dld.so"
22588 shlibpath_var=LD_LIBRARY_PATH
22589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 soname_spec='${libname}${release}${shared_ext}$major'
22592 if test "X$HPUX_IA64_MODE" = X32; then
22593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22601 hardcode_into_libs=yes
22602 dynamic_linker="$host_os dld.sl"
22603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22612 dynamic_linker="$host_os dld.sl"
22613 shlibpath_var=SHLIB_PATH
22614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22616 soname_spec='${libname}${release}${shared_ext}$major'
22619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22620 postinstall_cmds='chmod 555 $lib'
22623 irix5* | irix6* | nonstopux*)
22625 nonstopux*) version_type=nonstopux ;;
22627 if test "$lt_cv_prog_gnu_ld" = yes; then
22635 soname_spec='${libname}${release}${shared_ext}$major'
22636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22638 irix5* | nonstopux*)
22639 libsuff= shlibsuff=
22642 case $LD in # libtool.m4 will add one of these switches to LD
22643 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22644 libsuff= shlibsuff= libmagic=32-bit;;
22645 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22646 libsuff=32 shlibsuff=N32 libmagic=N32;;
22647 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22648 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22649 *) libsuff= shlibsuff= libmagic=never-match;;
22653 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22654 shlibpath_overrides_runpath=no
22655 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22656 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22657 hardcode_into_libs=yes
22660 # No shared lib support for Linux oldld, aout, or coff.
22661 linux*oldld* | linux*aout* | linux*coff*)
22665 # This must be Linux ELF.
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=no
22675 # This implies no fast_install, which is unacceptable.
22676 # Some rework will be needed to allow for fast_install
22677 # before this can be enabled.
22678 hardcode_into_libs=yes
22680 # Append ld.so.conf contents to the search path
22681 if test -f /etc/ld.so.conf; then
22682 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22683 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22686 # We used to test for /lib/ld.so.1 and disable shared libraries on
22687 # powerpc, because MkLinux only supported shared libraries with the
22688 # GNU dynamic linker. Since this was broken with cross compilers,
22689 # most powerpc-linux boxes support dynamic linking these days and
22690 # people can always --disable-shared, the test was removed, and we
22691 # assume the GNU/Linux dynamic linker is in use.
22692 dynamic_linker='GNU/Linux ld.so'
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22700 soname_spec='${libname}${release}${shared_ext}$major'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 shlibpath_overrides_runpath=no
22703 hardcode_into_libs=yes
22704 dynamic_linker='GNU ld.so'
22711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714 dynamic_linker='NetBSD (a.out) ld.so'
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 dynamic_linker='NetBSD ld.elf_so'
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=yes
22722 hardcode_into_libs=yes
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=yes
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 shlibpath_var=LD_LIBRARY_PATH
22739 shlibpath_overrides_runpath=yes
22746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22748 shlibpath_var=LD_LIBRARY_PATH
22749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22751 openbsd2.[89] | openbsd2.[89].*)
22752 shlibpath_overrides_runpath=no
22755 shlibpath_overrides_runpath=yes
22759 shlibpath_overrides_runpath=yes
22764 libname_spec='$name'
22767 library_names_spec='$libname${shared_ext} $libname.a'
22768 dynamic_linker='OS/2 ld.exe'
22769 shlibpath_var=LIBPATH
22772 osf3* | osf4* | osf5*)
22776 soname_spec='${libname}${release}${shared_ext}$major'
22777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22785 soname_spec='${libname}${release}${shared_ext}$major'
22786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787 shlibpath_var=LD_LIBRARY_PATH
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=yes
22798 hardcode_into_libs=yes
22799 # ldd complains unless libraries are executable
22800 postinstall_cmds='chmod +x $lib'
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22807 shlibpath_var=LD_LIBRARY_PATH
22808 shlibpath_overrides_runpath=yes
22809 if test "$with_gnu_ld" = yes; then
22815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22818 soname_spec='${libname}${release}${shared_ext}$major'
22819 shlibpath_var=LD_LIBRARY_PATH
22820 case $host_vendor in
22822 shlibpath_overrides_runpath=no
22824 export_dynamic_flag_spec='${wl}-Blargedynsym'
22825 runpath_var=LD_RUN_PATH
22833 shlibpath_overrides_runpath=no
22834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22840 if test -d /usr/nec ;then
22842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22843 soname_spec='$libname${shared_ext}.$major'
22844 shlibpath_var=LD_LIBRARY_PATH
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 shlibpath_var=LD_LIBRARY_PATH
22859 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22860 echo "${ECHO_T}$dynamic_linker" >&6
22861 test "$dynamic_linker" = no && can_build_shared=no
22863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22865 hardcode_action_GCJ=
22866 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22867 test -n "$runpath_var_GCJ" || \
22868 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22870 # We can hardcode non-existant directories.
22871 if test "$hardcode_direct_GCJ" != no &&
22872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22873 # have to relink, otherwise we might link with an installed library
22874 # when we should be linking with a yet-to-be-installed one
22875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22876 test "$hardcode_minus_L_GCJ" != no; then
22877 # Linking always hardcodes the temporary library directory.
22878 hardcode_action_GCJ=relink
22880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22881 hardcode_action_GCJ=immediate
22884 # We cannot hardcode anything, or else we can only hardcode existing
22886 hardcode_action_GCJ=unsupported
22888 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22889 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22891 if test "$hardcode_action_GCJ" = relink; then
22892 # Fast installation is not supported
22893 enable_fast_install=no
22894 elif test "$shlibpath_overrides_runpath" = yes ||
22895 test "$enable_shared" = no; then
22896 # Fast installation is not necessary
22897 enable_fast_install=needless
22902 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22903 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22904 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22907 echo "$as_me:$LINENO: result: yes" >&5
22908 echo "${ECHO_T}yes" >&6
22910 # FIXME - insert some real tests, host_os isn't really good enough
22913 if test -n "$STRIP" ; then
22914 striplib="$STRIP -x"
22915 echo "$as_me:$LINENO: result: yes" >&5
22916 echo "${ECHO_T}yes" >&6
22918 echo "$as_me:$LINENO: result: no" >&5
22919 echo "${ECHO_T}no" >&6
22923 echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22929 if test "x$enable_dlopen" != xyes; then
22930 enable_dlopen=unknown
22931 enable_dlopen_self=unknown
22932 enable_dlopen_self_static=unknown
22939 lt_cv_dlopen="load_add_on"
22941 lt_cv_dlopen_self=yes
22945 lt_cv_dlopen="LoadLibrary"
22950 lt_cv_dlopen="dlopen"
22955 # if libdl is installed we need to link against it
22956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 ac_check_lib_save_LIBS=$LIBS
22963 cat >conftest.$ac_ext <<_ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22970 /* Override any gcc2 internal prototype to avoid an error. */
22974 /* We use char because int might match the return type of a gcc2
22975 builtin and then its argument prototype would still apply. */
22985 rm -f conftest.$ac_objext conftest$ac_exeext
22986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22987 (eval $ac_link) 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } &&
22994 { ac_try='test -z "$ac_c_werror_flag"
22995 || test ! -s conftest.err'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; } &&
23001 { ac_try='test -s conftest$ac_exeext'
23002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; }; then
23007 ac_cv_lib_dl_dlopen=yes
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23012 ac_cv_lib_dl_dlopen=no
23014 rm -f conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$ac_check_lib_save_LIBS
23018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23020 if test $ac_cv_lib_dl_dlopen = yes; then
23021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23024 lt_cv_dlopen="dyld"
23026 lt_cv_dlopen_self=yes
23033 echo "$as_me:$LINENO: checking for shl_load" >&5
23034 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23035 if test "${ac_cv_func_shl_load+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 cat >conftest.$ac_ext <<_ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23046 #define shl_load innocuous_shl_load
23048 /* System header to define __stub macros and hopefully few prototypes,
23049 which can conflict with char shl_load (); below.
23050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23051 <limits.h> exists even on freestanding compilers. */
23054 # include <limits.h>
23056 # include <assert.h>
23061 /* Override any gcc2 internal prototype to avoid an error. */
23066 /* We use char because int might match the return type of a gcc2
23067 builtin and then its argument prototype would still apply. */
23069 /* The GNU C library defines this for functions which it implements
23070 to always fail with ENOSYS. Some functions are actually named
23071 something starting with __ and the normal name is an alias. */
23072 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23075 char (*f) () = shl_load;
23084 return f != shl_load;
23089 rm -f conftest.$ac_objext conftest$ac_exeext
23090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091 (eval $ac_link) 2>conftest.er1
23093 grep -v '^ *+' conftest.er1 >conftest.err
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); } &&
23098 { ac_try='test -z "$ac_c_werror_flag"
23099 || test ! -s conftest.err'
23100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; } &&
23105 { ac_try='test -s conftest$ac_exeext'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; }; then
23111 ac_cv_func_shl_load=yes
23113 echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23116 ac_cv_func_shl_load=no
23118 rm -f conftest.err conftest.$ac_objext \
23119 conftest$ac_exeext conftest.$ac_ext
23121 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23122 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23123 if test $ac_cv_func_shl_load = yes; then
23124 lt_cv_dlopen="shl_load"
23126 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23127 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23128 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 ac_check_lib_save_LIBS=$LIBS
23133 cat >conftest.$ac_ext <<_ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23140 /* Override any gcc2 internal prototype to avoid an error. */
23144 /* We use char because int might match the return type of a gcc2
23145 builtin and then its argument prototype would still apply. */
23155 rm -f conftest.$ac_objext conftest$ac_exeext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157 (eval $ac_link) 2>conftest.er1
23159 grep -v '^ *+' conftest.er1 >conftest.err
23161 cat conftest.err >&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } &&
23164 { ac_try='test -z "$ac_c_werror_flag"
23165 || test ! -s conftest.err'
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; } &&
23171 { ac_try='test -s conftest$ac_exeext'
23172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; }; then
23177 ac_cv_lib_dld_shl_load=yes
23179 echo "$as_me: failed program was:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23182 ac_cv_lib_dld_shl_load=no
23184 rm -f conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
23186 LIBS=$ac_check_lib_save_LIBS
23188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23189 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23190 if test $ac_cv_lib_dld_shl_load = yes; then
23191 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23193 echo "$as_me:$LINENO: checking for dlopen" >&5
23194 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23195 if test "${ac_cv_func_dlopen+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23206 #define dlopen innocuous_dlopen
23208 /* System header to define __stub macros and hopefully few prototypes,
23209 which can conflict with char dlopen (); below.
23210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23211 <limits.h> exists even on freestanding compilers. */
23214 # include <limits.h>
23216 # include <assert.h>
23221 /* Override any gcc2 internal prototype to avoid an error. */
23226 /* We use char because int might match the return type of a gcc2
23227 builtin and then its argument prototype would still apply. */
23229 /* The GNU C library defines this for functions which it implements
23230 to always fail with ENOSYS. Some functions are actually named
23231 something starting with __ and the normal name is an alias. */
23232 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23235 char (*f) () = dlopen;
23244 return f != dlopen;
23249 rm -f conftest.$ac_objext conftest$ac_exeext
23250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23251 (eval $ac_link) 2>conftest.er1
23253 grep -v '^ *+' conftest.er1 >conftest.err
23255 cat conftest.err >&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } &&
23258 { ac_try='test -z "$ac_c_werror_flag"
23259 || test ! -s conftest.err'
23260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261 (eval $ac_try) 2>&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); }; } &&
23265 { ac_try='test -s conftest$ac_exeext'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; }; then
23271 ac_cv_func_dlopen=yes
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23276 ac_cv_func_dlopen=no
23278 rm -f conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
23281 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23282 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23283 if test $ac_cv_func_dlopen = yes; then
23284 lt_cv_dlopen="dlopen"
23286 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23289 echo $ECHO_N "(cached) $ECHO_C" >&6
23291 ac_check_lib_save_LIBS=$LIBS
23293 cat >conftest.$ac_ext <<_ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h. */
23300 /* Override any gcc2 internal prototype to avoid an error. */
23304 /* We use char because int might match the return type of a gcc2
23305 builtin and then its argument prototype would still apply. */
23315 rm -f conftest.$ac_objext conftest$ac_exeext
23316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23317 (eval $ac_link) 2>conftest.er1
23319 grep -v '^ *+' conftest.er1 >conftest.err
23321 cat conftest.err >&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } &&
23324 { ac_try='test -z "$ac_c_werror_flag"
23325 || test ! -s conftest.err'
23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; } &&
23331 { ac_try='test -s conftest$ac_exeext'
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; }; then
23337 ac_cv_lib_dl_dlopen=yes
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_cv_lib_dl_dlopen=no
23344 rm -f conftest.err conftest.$ac_objext \
23345 conftest$ac_exeext conftest.$ac_ext
23346 LIBS=$ac_check_lib_save_LIBS
23348 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23350 if test $ac_cv_lib_dl_dlopen = yes; then
23351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23353 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23354 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23355 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 ac_check_lib_save_LIBS=$LIBS
23359 LIBS="-lsvld $LIBS"
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23367 /* Override any gcc2 internal prototype to avoid an error. */
23371 /* We use char because int might match the return type of a gcc2
23372 builtin and then its argument prototype would still apply. */
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23384 (eval $ac_link) 2>conftest.er1
23386 grep -v '^ *+' conftest.er1 >conftest.err
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } &&
23391 { ac_try='test -z "$ac_c_werror_flag"
23392 || test ! -s conftest.err'
23393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; } &&
23398 { ac_try='test -s conftest$ac_exeext'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 ac_cv_lib_svld_dlopen=yes
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_cv_lib_svld_dlopen=no
23411 rm -f conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
23413 LIBS=$ac_check_lib_save_LIBS
23415 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23416 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23417 if test $ac_cv_lib_svld_dlopen = yes; then
23418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23420 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23421 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 ac_check_lib_save_LIBS=$LIBS
23427 cat >conftest.$ac_ext <<_ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23434 /* Override any gcc2 internal prototype to avoid an error. */
23438 /* We use char because int might match the return type of a gcc2
23439 builtin and then its argument prototype would still apply. */
23449 rm -f conftest.$ac_objext conftest$ac_exeext
23450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23451 (eval $ac_link) 2>conftest.er1
23453 grep -v '^ *+' conftest.er1 >conftest.err
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } &&
23458 { ac_try='test -z "$ac_c_werror_flag"
23459 || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest$ac_exeext'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_lib_dld_dld_link=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_cv_lib_dld_dld_link=no
23478 rm -f conftest.err conftest.$ac_objext \
23479 conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23482 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23483 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23484 if test $ac_cv_lib_dld_dld_link = yes; then
23485 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23506 if test "x$lt_cv_dlopen" != xno; then
23512 case $lt_cv_dlopen in
23514 save_CPPFLAGS="$CPPFLAGS"
23515 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23517 save_LDFLAGS="$LDFLAGS"
23518 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23521 LIBS="$lt_cv_dlopen_libs $LIBS"
23523 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23524 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23525 if test "${lt_cv_dlopen_self+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 if test "$cross_compiling" = yes; then :
23529 lt_cv_dlopen_self=cross
23531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23532 lt_status=$lt_dlunknown
23533 cat > conftest.$ac_ext <<EOF
23534 #line 23534 "configure"
23535 #include "confdefs.h"
23544 # define LT_DLGLOBAL RTLD_GLOBAL
23547 # define LT_DLGLOBAL DL_GLOBAL
23549 # define LT_DLGLOBAL 0
23553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23554 find out it does not work in some platform. */
23555 #ifndef LT_DLLAZY_OR_NOW
23557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23560 # define LT_DLLAZY_OR_NOW DL_LAZY
23563 # define LT_DLLAZY_OR_NOW RTLD_NOW
23566 # define LT_DLLAZY_OR_NOW DL_NOW
23568 # define LT_DLLAZY_OR_NOW 0
23576 extern "C" void exit (int);
23579 void fnord() { int i=42;}
23582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23583 int status = $lt_dlunknown;
23587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23589 /* dlclose (self); */
23595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596 (eval $ac_link) 2>&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23600 (./conftest; exit; ) 2>/dev/null
23602 case x$lt_status in
23603 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23604 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23605 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23608 # compilation failed
23609 lt_cv_dlopen_self=no
23616 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23617 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23619 if test "x$lt_cv_dlopen_self" = xyes; then
23620 LDFLAGS="$LDFLAGS $link_static_flag"
23621 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23622 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23623 if test "${lt_cv_dlopen_self_static+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 if test "$cross_compiling" = yes; then :
23627 lt_cv_dlopen_self_static=cross
23629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23630 lt_status=$lt_dlunknown
23631 cat > conftest.$ac_ext <<EOF
23632 #line 23632 "configure"
23633 #include "confdefs.h"
23642 # define LT_DLGLOBAL RTLD_GLOBAL
23645 # define LT_DLGLOBAL DL_GLOBAL
23647 # define LT_DLGLOBAL 0
23651 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23652 find out it does not work in some platform. */
23653 #ifndef LT_DLLAZY_OR_NOW
23655 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23658 # define LT_DLLAZY_OR_NOW DL_LAZY
23661 # define LT_DLLAZY_OR_NOW RTLD_NOW
23664 # define LT_DLLAZY_OR_NOW DL_NOW
23666 # define LT_DLLAZY_OR_NOW 0
23674 extern "C" void exit (int);
23677 void fnord() { int i=42;}
23680 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23681 int status = $lt_dlunknown;
23685 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23686 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23687 /* dlclose (self); */
23693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694 (eval $ac_link) 2>&5
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23698 (./conftest; exit; ) 2>/dev/null
23700 case x$lt_status in
23701 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23702 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23703 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23706 # compilation failed
23707 lt_cv_dlopen_self_static=no
23714 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23715 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23718 CPPFLAGS="$save_CPPFLAGS"
23719 LDFLAGS="$save_LDFLAGS"
23724 case $lt_cv_dlopen_self in
23725 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23726 *) enable_dlopen_self=unknown ;;
23729 case $lt_cv_dlopen_self_static in
23730 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23731 *) enable_dlopen_self_static=unknown ;;
23736 # The else clause should only fire when bootstrapping the
23737 # libtool distribution, otherwise you forgot to ship ltmain.sh
23738 # with your package, and you will get complaints that there are
23739 # no rules to generate ltmain.sh.
23740 if test -f "$ltmain"; then
23741 # See if we are running on zsh, and set the options which allow our commands through
23742 # without removal of \ escapes.
23743 if test -n "${ZSH_VERSION+set}" ; then
23744 setopt NO_GLOB_SUBST
23746 # Now quote all the things that may contain metacharacters while being
23747 # careful not to overquote the AC_SUBSTed values. We take copies of the
23748 # variables and quote the copies for generation of the libtool script.
23749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23753 deplibs_check_method reload_flag reload_cmds need_locks \
23754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23755 lt_cv_sys_global_symbol_to_c_name_address \
23756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23757 old_postinstall_cmds old_postuninstall_cmds \
23761 lt_prog_compiler_wl_GCJ \
23762 lt_prog_compiler_pic_GCJ \
23763 lt_prog_compiler_static_GCJ \
23764 lt_prog_compiler_no_builtin_flag_GCJ \
23765 export_dynamic_flag_spec_GCJ \
23766 thread_safe_flag_spec_GCJ \
23767 whole_archive_flag_spec_GCJ \
23768 enable_shared_with_static_runtimes_GCJ \
23769 old_archive_cmds_GCJ \
23770 old_archive_from_new_cmds_GCJ \
23771 predep_objects_GCJ \
23772 postdep_objects_GCJ \
23775 compiler_lib_search_path_GCJ \
23777 archive_expsym_cmds_GCJ \
23778 postinstall_cmds_GCJ \
23779 postuninstall_cmds_GCJ \
23780 old_archive_from_expsyms_cmds_GCJ \
23781 allow_undefined_flag_GCJ \
23782 no_undefined_flag_GCJ \
23783 export_symbols_cmds_GCJ \
23784 hardcode_libdir_flag_spec_GCJ \
23785 hardcode_libdir_flag_spec_ld_GCJ \
23786 hardcode_libdir_separator_GCJ \
23787 hardcode_automatic_GCJ \
23789 module_expsym_cmds_GCJ \
23790 lt_cv_prog_compiler_c_o_GCJ \
23791 exclude_expsyms_GCJ \
23792 include_expsyms_GCJ; do
23795 old_archive_cmds_GCJ | \
23796 old_archive_from_new_cmds_GCJ | \
23797 archive_cmds_GCJ | \
23798 archive_expsym_cmds_GCJ | \
23799 module_cmds_GCJ | \
23800 module_expsym_cmds_GCJ | \
23801 old_archive_from_expsyms_cmds_GCJ | \
23802 export_symbols_cmds_GCJ | \
23803 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23804 postinstall_cmds | postuninstall_cmds | \
23805 old_postinstall_cmds | old_postuninstall_cmds | \
23806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23807 # Double-quote double-evaled strings.
23808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23817 *'\$0 --fallback-echo"')
23818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23824 cat <<__EOF__ >> "$cfgfile"
23825 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23829 # Shell to use when invoking shell scripts.
23832 # Whether or not to build shared libraries.
23833 build_libtool_libs=$enable_shared
23835 # Whether or not to build static libraries.
23836 build_old_libs=$enable_static
23838 # Whether or not to add -lc for building shared libraries.
23839 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23841 # Whether or not to disallow shared libs when runtime libs are static
23842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23844 # Whether or not to optimize for fast installation.
23845 fast_install=$enable_fast_install
23848 host_alias=$host_alias
23851 # An echo program that does not interpret backslashes.
23856 AR_FLAGS=$lt_AR_FLAGS
23861 # A language-specific compiler.
23862 CC=$lt_compiler_GCJ
23864 # Is the compiler the GNU C compiler?
23870 # The linker used to build libraries.
23873 # Whether we need hard or soft links.
23876 # A BSD-compatible nm program.
23879 # A symbol stripping program
23882 # Used to examine libraries when file_magic_cmd begins "file"
23883 MAGIC_CMD=$MAGIC_CMD
23885 # Used on cygwin: DLL creation program.
23888 # Used on cygwin: object dumper.
23891 # Used on cygwin: assembler.
23894 # The name of the directory that contains temporary libtool files.
23897 # How to create reloadable object files.
23898 reload_flag=$lt_reload_flag
23899 reload_cmds=$lt_reload_cmds
23901 # How to pass a linker flag through the compiler.
23902 wl=$lt_lt_prog_compiler_wl_GCJ
23904 # Object file suffix (normally "o").
23905 objext="$ac_objext"
23907 # Old archive suffix (normally "a").
23910 # Shared library suffix (normally ".so").
23911 shrext_cmds='$shrext_cmds'
23913 # Executable file suffix (normally "").
23916 # Additional compiler flags for building library objects.
23917 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23920 # What is the maximum length of a command?
23921 max_cmd_len=$lt_cv_sys_max_cmd_len
23923 # Does compiler simultaneously support -c and -o options?
23924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23926 # Must we lock files when doing compilation ?
23927 need_locks=$lt_need_locks
23929 # Do we need the lib prefix for modules?
23930 need_lib_prefix=$need_lib_prefix
23932 # Do we need a version for libraries?
23933 need_version=$need_version
23935 # Whether dlopen is supported.
23936 dlopen_support=$enable_dlopen
23938 # Whether dlopen of programs is supported.
23939 dlopen_self=$enable_dlopen_self
23941 # Whether dlopen of statically linked programs is supported.
23942 dlopen_self_static=$enable_dlopen_self_static
23944 # Compiler flag to prevent dynamic linking.
23945 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23947 # Compiler flag to turn off builtin functions.
23948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23950 # Compiler flag to allow reflexive dlopens.
23951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23953 # Compiler flag to generate shared objects directly from archives.
23954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23956 # Compiler flag to generate thread-safe objects.
23957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23959 # Library versioning type.
23960 version_type=$version_type
23962 # Format of library name prefix.
23963 libname_spec=$lt_libname_spec
23965 # List of archive names. First name is the real one, the rest are links.
23966 # The last name is the one that the linker finds with -lNAME.
23967 library_names_spec=$lt_library_names_spec
23969 # The coded name of the library, if different from the real name.
23970 soname_spec=$lt_soname_spec
23972 # Commands used to build and install an old-style archive.
23974 old_archive_cmds=$lt_old_archive_cmds_GCJ
23975 old_postinstall_cmds=$lt_old_postinstall_cmds
23976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23978 # Create an old-style archive from a shared archive.
23979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23981 # Create a temporary old-style archive to link instead of a shared archive.
23982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23984 # Commands used to build and install a shared archive.
23985 archive_cmds=$lt_archive_cmds_GCJ
23986 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23987 postinstall_cmds=$lt_postinstall_cmds
23988 postuninstall_cmds=$lt_postuninstall_cmds
23990 # Commands used to build a loadable module (assumed same as above if empty)
23991 module_cmds=$lt_module_cmds_GCJ
23992 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23994 # Commands to strip libraries.
23995 old_striplib=$lt_old_striplib
23996 striplib=$lt_striplib
23998 # Dependencies to place before the objects being linked to create a
24000 predep_objects=$lt_predep_objects_GCJ
24002 # Dependencies to place after the objects being linked to create a
24004 postdep_objects=$lt_postdep_objects_GCJ
24006 # Dependencies to place before the objects being linked to create a
24008 predeps=$lt_predeps_GCJ
24010 # Dependencies to place after the objects being linked to create a
24012 postdeps=$lt_postdeps_GCJ
24014 # The library search path used internally by the compiler when linking
24015 # a shared library.
24016 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24018 # Method to check whether dependent libraries are shared objects.
24019 deplibs_check_method=$lt_deplibs_check_method
24021 # Command to use when deplibs_check_method == file_magic.
24022 file_magic_cmd=$lt_file_magic_cmd
24024 # Flag that allows shared libraries with undefined symbols to be built.
24025 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24027 # Flag that forces no undefined symbols.
24028 no_undefined_flag=$lt_no_undefined_flag_GCJ
24030 # Commands used to finish a libtool library installation in a directory.
24031 finish_cmds=$lt_finish_cmds
24033 # Same as above, but a single script fragment to be evaled but not shown.
24034 finish_eval=$lt_finish_eval
24036 # Take the output of nm and produce a listing of raw symbols and C names.
24037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24039 # Transform the output of nm in a proper C declaration
24040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24042 # Transform the output of nm in a C name address pair
24043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24045 # This is the shared library runtime path variable.
24046 runpath_var=$runpath_var
24048 # This is the shared library path variable.
24049 shlibpath_var=$shlibpath_var
24051 # Is shlibpath searched before the hard-coded library search path?
24052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24054 # How to hardcode a shared library path into an executable.
24055 hardcode_action=$hardcode_action_GCJ
24057 # Whether we should hardcode library paths into libraries.
24058 hardcode_into_libs=$hardcode_into_libs
24060 # Flag to hardcode \$libdir into a binary during linking.
24061 # This must work even if \$libdir does not exist.
24062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24064 # If ld is used when linking, flag to hardcode \$libdir into
24065 # a binary during linking. This must work even if \$libdir does
24067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24069 # Whether we need a single -rpath flag with a separated argument.
24070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24073 # resulting binary.
24074 hardcode_direct=$hardcode_direct_GCJ
24076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24077 # resulting binary.
24078 hardcode_minus_L=$hardcode_minus_L_GCJ
24080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24081 # the resulting binary.
24082 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24084 # Set to yes if building a shared library automatically hardcodes DIR into the library
24085 # and all subsequent libraries and executables linked against it.
24086 hardcode_automatic=$hardcode_automatic_GCJ
24088 # Variables whose values should be saved in libtool wrapper scripts and
24089 # restored at relink time.
24090 variables_saved_for_relink="$variables_saved_for_relink"
24092 # Whether libtool must link a program against all its dependency libraries.
24093 link_all_deplibs=$link_all_deplibs_GCJ
24095 # Compile-time system search path for libraries
24096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24098 # Run-time system search path for libraries
24099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24101 # Fix the shell variable \$srcfile for the compiler.
24102 fix_srcfile_path="$fix_srcfile_path_GCJ"
24104 # Set to yes if exported symbols are required.
24105 always_export_symbols=$always_export_symbols_GCJ
24107 # The commands to list exported symbols.
24108 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24110 # The commands to extract the exported symbol list from a shared archive.
24111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24113 # Symbols that should not be listed in the preloaded symbols.
24114 exclude_expsyms=$lt_exclude_expsyms_GCJ
24116 # Symbols that must always be exported.
24117 include_expsyms=$lt_include_expsyms_GCJ
24119 # ### END LIBTOOL TAG CONFIG: $tagname
24125 # If there is no Makefile yet, we rely on a make rule to execute
24126 # `config.status --recheck' to rerun these tests and create the
24127 # libtool script then.
24128 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24129 if test -f "$ltmain_in"; then
24130 test -f Makefile && make "$ltmain"
24136 ac_cpp='$CPP $CPPFLAGS'
24137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24150 ac_cpp='$CPP $CPPFLAGS'
24151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24156 # Source file extension for RC test sources.
24159 # Object file extension for compiled RC test sources.
24163 # Code to be used in simple compile tests
24164 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24166 # Code to be used in simple link tests
24167 lt_simple_link_test_code="$lt_simple_compile_test_code"
24169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24171 # If no C compiler was specified, use CC.
24174 # Allow CC to be a program name with arguments.
24178 # Allow CC to be a program name with arguments.
24183 lt_cv_prog_compiler_c_o_RC=yes
24185 # The else clause should only fire when bootstrapping the
24186 # libtool distribution, otherwise you forgot to ship ltmain.sh
24187 # with your package, and you will get complaints that there are
24188 # no rules to generate ltmain.sh.
24189 if test -f "$ltmain"; then
24190 # See if we are running on zsh, and set the options which allow our commands through
24191 # without removal of \ escapes.
24192 if test -n "${ZSH_VERSION+set}" ; then
24193 setopt NO_GLOB_SUBST
24195 # Now quote all the things that may contain metacharacters while being
24196 # careful not to overquote the AC_SUBSTed values. We take copies of the
24197 # variables and quote the copies for generation of the libtool script.
24198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24202 deplibs_check_method reload_flag reload_cmds need_locks \
24203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24204 lt_cv_sys_global_symbol_to_c_name_address \
24205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24206 old_postinstall_cmds old_postuninstall_cmds \
24210 lt_prog_compiler_wl_RC \
24211 lt_prog_compiler_pic_RC \
24212 lt_prog_compiler_static_RC \
24213 lt_prog_compiler_no_builtin_flag_RC \
24214 export_dynamic_flag_spec_RC \
24215 thread_safe_flag_spec_RC \
24216 whole_archive_flag_spec_RC \
24217 enable_shared_with_static_runtimes_RC \
24218 old_archive_cmds_RC \
24219 old_archive_from_new_cmds_RC \
24220 predep_objects_RC \
24221 postdep_objects_RC \
24224 compiler_lib_search_path_RC \
24226 archive_expsym_cmds_RC \
24227 postinstall_cmds_RC \
24228 postuninstall_cmds_RC \
24229 old_archive_from_expsyms_cmds_RC \
24230 allow_undefined_flag_RC \
24231 no_undefined_flag_RC \
24232 export_symbols_cmds_RC \
24233 hardcode_libdir_flag_spec_RC \
24234 hardcode_libdir_flag_spec_ld_RC \
24235 hardcode_libdir_separator_RC \
24236 hardcode_automatic_RC \
24238 module_expsym_cmds_RC \
24239 lt_cv_prog_compiler_c_o_RC \
24240 exclude_expsyms_RC \
24241 include_expsyms_RC; do
24244 old_archive_cmds_RC | \
24245 old_archive_from_new_cmds_RC | \
24246 archive_cmds_RC | \
24247 archive_expsym_cmds_RC | \
24249 module_expsym_cmds_RC | \
24250 old_archive_from_expsyms_cmds_RC | \
24251 export_symbols_cmds_RC | \
24252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24253 postinstall_cmds | postuninstall_cmds | \
24254 old_postinstall_cmds | old_postuninstall_cmds | \
24255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24256 # Double-quote double-evaled strings.
24257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24266 *'\$0 --fallback-echo"')
24267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24273 cat <<__EOF__ >> "$cfgfile"
24274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24278 # Shell to use when invoking shell scripts.
24281 # Whether or not to build shared libraries.
24282 build_libtool_libs=$enable_shared
24284 # Whether or not to build static libraries.
24285 build_old_libs=$enable_static
24287 # Whether or not to add -lc for building shared libraries.
24288 build_libtool_need_lc=$archive_cmds_need_lc_RC
24290 # Whether or not to disallow shared libs when runtime libs are static
24291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24293 # Whether or not to optimize for fast installation.
24294 fast_install=$enable_fast_install
24297 host_alias=$host_alias
24300 # An echo program that does not interpret backslashes.
24305 AR_FLAGS=$lt_AR_FLAGS
24310 # A language-specific compiler.
24313 # Is the compiler the GNU C compiler?
24319 # The linker used to build libraries.
24322 # Whether we need hard or soft links.
24325 # A BSD-compatible nm program.
24328 # A symbol stripping program
24331 # Used to examine libraries when file_magic_cmd begins "file"
24332 MAGIC_CMD=$MAGIC_CMD
24334 # Used on cygwin: DLL creation program.
24337 # Used on cygwin: object dumper.
24340 # Used on cygwin: assembler.
24343 # The name of the directory that contains temporary libtool files.
24346 # How to create reloadable object files.
24347 reload_flag=$lt_reload_flag
24348 reload_cmds=$lt_reload_cmds
24350 # How to pass a linker flag through the compiler.
24351 wl=$lt_lt_prog_compiler_wl_RC
24353 # Object file suffix (normally "o").
24354 objext="$ac_objext"
24356 # Old archive suffix (normally "a").
24359 # Shared library suffix (normally ".so").
24360 shrext_cmds='$shrext_cmds'
24362 # Executable file suffix (normally "").
24365 # Additional compiler flags for building library objects.
24366 pic_flag=$lt_lt_prog_compiler_pic_RC
24369 # What is the maximum length of a command?
24370 max_cmd_len=$lt_cv_sys_max_cmd_len
24372 # Does compiler simultaneously support -c and -o options?
24373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24375 # Must we lock files when doing compilation ?
24376 need_locks=$lt_need_locks
24378 # Do we need the lib prefix for modules?
24379 need_lib_prefix=$need_lib_prefix
24381 # Do we need a version for libraries?
24382 need_version=$need_version
24384 # Whether dlopen is supported.
24385 dlopen_support=$enable_dlopen
24387 # Whether dlopen of programs is supported.
24388 dlopen_self=$enable_dlopen_self
24390 # Whether dlopen of statically linked programs is supported.
24391 dlopen_self_static=$enable_dlopen_self_static
24393 # Compiler flag to prevent dynamic linking.
24394 link_static_flag=$lt_lt_prog_compiler_static_RC
24396 # Compiler flag to turn off builtin functions.
24397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24399 # Compiler flag to allow reflexive dlopens.
24400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24402 # Compiler flag to generate shared objects directly from archives.
24403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24405 # Compiler flag to generate thread-safe objects.
24406 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24408 # Library versioning type.
24409 version_type=$version_type
24411 # Format of library name prefix.
24412 libname_spec=$lt_libname_spec
24414 # List of archive names. First name is the real one, the rest are links.
24415 # The last name is the one that the linker finds with -lNAME.
24416 library_names_spec=$lt_library_names_spec
24418 # The coded name of the library, if different from the real name.
24419 soname_spec=$lt_soname_spec
24421 # Commands used to build and install an old-style archive.
24423 old_archive_cmds=$lt_old_archive_cmds_RC
24424 old_postinstall_cmds=$lt_old_postinstall_cmds
24425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24427 # Create an old-style archive from a shared archive.
24428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24430 # Create a temporary old-style archive to link instead of a shared archive.
24431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24433 # Commands used to build and install a shared archive.
24434 archive_cmds=$lt_archive_cmds_RC
24435 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24436 postinstall_cmds=$lt_postinstall_cmds
24437 postuninstall_cmds=$lt_postuninstall_cmds
24439 # Commands used to build a loadable module (assumed same as above if empty)
24440 module_cmds=$lt_module_cmds_RC
24441 module_expsym_cmds=$lt_module_expsym_cmds_RC
24443 # Commands to strip libraries.
24444 old_striplib=$lt_old_striplib
24445 striplib=$lt_striplib
24447 # Dependencies to place before the objects being linked to create a
24449 predep_objects=$lt_predep_objects_RC
24451 # Dependencies to place after the objects being linked to create a
24453 postdep_objects=$lt_postdep_objects_RC
24455 # Dependencies to place before the objects being linked to create a
24457 predeps=$lt_predeps_RC
24459 # Dependencies to place after the objects being linked to create a
24461 postdeps=$lt_postdeps_RC
24463 # The library search path used internally by the compiler when linking
24464 # a shared library.
24465 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24467 # Method to check whether dependent libraries are shared objects.
24468 deplibs_check_method=$lt_deplibs_check_method
24470 # Command to use when deplibs_check_method == file_magic.
24471 file_magic_cmd=$lt_file_magic_cmd
24473 # Flag that allows shared libraries with undefined symbols to be built.
24474 allow_undefined_flag=$lt_allow_undefined_flag_RC
24476 # Flag that forces no undefined symbols.
24477 no_undefined_flag=$lt_no_undefined_flag_RC
24479 # Commands used to finish a libtool library installation in a directory.
24480 finish_cmds=$lt_finish_cmds
24482 # Same as above, but a single script fragment to be evaled but not shown.
24483 finish_eval=$lt_finish_eval
24485 # Take the output of nm and produce a listing of raw symbols and C names.
24486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24488 # Transform the output of nm in a proper C declaration
24489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24491 # Transform the output of nm in a C name address pair
24492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24494 # This is the shared library runtime path variable.
24495 runpath_var=$runpath_var
24497 # This is the shared library path variable.
24498 shlibpath_var=$shlibpath_var
24500 # Is shlibpath searched before the hard-coded library search path?
24501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24503 # How to hardcode a shared library path into an executable.
24504 hardcode_action=$hardcode_action_RC
24506 # Whether we should hardcode library paths into libraries.
24507 hardcode_into_libs=$hardcode_into_libs
24509 # Flag to hardcode \$libdir into a binary during linking.
24510 # This must work even if \$libdir does not exist.
24511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24513 # If ld is used when linking, flag to hardcode \$libdir into
24514 # a binary during linking. This must work even if \$libdir does
24516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24518 # Whether we need a single -rpath flag with a separated argument.
24519 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24522 # resulting binary.
24523 hardcode_direct=$hardcode_direct_RC
24525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24526 # resulting binary.
24527 hardcode_minus_L=$hardcode_minus_L_RC
24529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24530 # the resulting binary.
24531 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24533 # Set to yes if building a shared library automatically hardcodes DIR into the library
24534 # and all subsequent libraries and executables linked against it.
24535 hardcode_automatic=$hardcode_automatic_RC
24537 # Variables whose values should be saved in libtool wrapper scripts and
24538 # restored at relink time.
24539 variables_saved_for_relink="$variables_saved_for_relink"
24541 # Whether libtool must link a program against all its dependency libraries.
24542 link_all_deplibs=$link_all_deplibs_RC
24544 # Compile-time system search path for libraries
24545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24547 # Run-time system search path for libraries
24548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24550 # Fix the shell variable \$srcfile for the compiler.
24551 fix_srcfile_path="$fix_srcfile_path_RC"
24553 # Set to yes if exported symbols are required.
24554 always_export_symbols=$always_export_symbols_RC
24556 # The commands to list exported symbols.
24557 export_symbols_cmds=$lt_export_symbols_cmds_RC
24559 # The commands to extract the exported symbol list from a shared archive.
24560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24562 # Symbols that should not be listed in the preloaded symbols.
24563 exclude_expsyms=$lt_exclude_expsyms_RC
24565 # Symbols that must always be exported.
24566 include_expsyms=$lt_include_expsyms_RC
24568 # ### END LIBTOOL TAG CONFIG: $tagname
24574 # If there is no Makefile yet, we rely on a make rule to execute
24575 # `config.status --recheck' to rerun these tests and create the
24576 # libtool script then.
24577 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24578 if test -f "$ltmain_in"; then
24579 test -f Makefile && make "$ltmain"
24585 ac_cpp='$CPP $CPPFLAGS'
24586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24595 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24596 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24597 { (exit 1); exit 1; }; }
24601 # Append the new tag name to the list of available tags.
24602 if test -n "$tagname" ; then
24603 available_tags="$available_tags $tagname"
24609 # Now substitute the updated list of available tags.
24610 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24611 mv "${ofile}T" "$ofile"
24615 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24616 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24617 { (exit 1); exit 1; }; }
24623 # This can be used to rebuild libtool when needed
24624 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24626 # Always use our own libtool.
24627 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24629 # Prevent multiple expansion
24651 if test "$lt_cv_dlopen_self" = "yes" ; then
24653 cat >>confdefs.h <<\_ACEOF
24654 #define CAN_DLOPEN_SELF 1
24659 etags_version=`$ETAGS --version 2>&1`
24660 case "$etags_version" in
24661 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24662 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24663 *) ETAGSFLAGS="" ;;
24665 ETAGSFLAGS=$ETAGSFLAGS
24668 if test "$WITH_LLVMGCCDIR" = "default" ; then
24669 LLVMGCC="llvm-gcc${EXEEXT}"
24670 LLVMGXX="llvm-g++${EXEEXT}"
24671 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24672 set dummy $LLVMGCC; ac_word=$2
24673 echo "$as_me:$LINENO: checking for $ac_word" >&5
24674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24675 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24676 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24684 for as_dir in $PATH
24687 test -z "$as_dir" && as_dir=.
24688 for ac_exec_ext in '' $ac_executable_extensions; do
24689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24690 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24700 LLVMGCC=$ac_cv_path_LLVMGCC
24702 if test -n "$LLVMGCC"; then
24703 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24704 echo "${ECHO_T}$LLVMGCC" >&6
24706 echo "$as_me:$LINENO: result: no" >&5
24707 echo "${ECHO_T}no" >&6
24710 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24711 set dummy $LLVMGXX; ac_word=$2
24712 echo "$as_me:$LINENO: checking for $ac_word" >&5
24713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24714 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24723 for as_dir in $PATH
24726 test -z "$as_dir" && as_dir=.
24727 for ac_exec_ext in '' $ac_executable_extensions; do
24728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24729 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24739 LLVMGXX=$ac_cv_path_LLVMGXX
24741 if test -n "$LLVMGXX"; then
24742 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24743 echo "${ECHO_T}$LLVMGXX" >&6
24745 echo "$as_me:$LINENO: result: no" >&5
24746 echo "${ECHO_T}no" >&6
24750 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24751 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24758 echo "$as_me:$LINENO: checking tool compatibility" >&5
24759 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24772 if test "$GCC" != "yes" && test "$ICC" != "yes"
24774 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24775 echo "$as_me: error: gcc|icc required but not found" >&2;}
24776 { (exit 1); exit 1; }; }
24779 if test "$GXX" != "yes" && test "$IXX" != "yes"
24781 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24782 echo "$as_me: error: g++|icc required but not found" >&2;}
24783 { (exit 1); exit 1; }; }
24786 if test "$GCC" = "yes"
24788 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24789 if test "$gccmajor" -lt "3"
24791 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24792 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24793 { (exit 1); exit 1; }; }
24797 if test -z "$llvm_cv_gnu_make_command"
24799 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24800 echo "$as_me: error: GNU Make required but not found" >&2;}
24801 { (exit 1); exit 1; }; }
24804 echo "$as_me:$LINENO: result: ok" >&5
24805 echo "${ECHO_T}ok" >&6
24809 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24810 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24811 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24814 ac_check_lib_save_LIBS=$LIBS
24816 cat >conftest.$ac_ext <<_ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h. */
24823 /* Override any gcc2 internal prototype to avoid an error. */
24827 /* We use char because int might match the return type of a gcc2
24828 builtin and then its argument prototype would still apply. */
24838 rm -f conftest.$ac_objext conftest$ac_exeext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840 (eval $ac_link) 2>conftest.er1
24842 grep -v '^ *+' conftest.er1 >conftest.err
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest$ac_exeext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_cv_lib_elf_elf_begin=yes
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_cv_lib_elf_elf_begin=no
24867 rm -f conftest.err conftest.$ac_objext \
24868 conftest$ac_exeext conftest.$ac_ext
24869 LIBS=$ac_check_lib_save_LIBS
24871 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24872 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24873 if test $ac_cv_lib_elf_elf_begin = yes; then
24874 cat >>confdefs.h <<_ACEOF
24875 #define HAVE_LIBELF 1
24884 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24885 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24886 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24889 ac_func_search_save_LIBS=$LIBS
24890 ac_cv_search_lt_dlopen=no
24891 cat >conftest.$ac_ext <<_ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24898 /* Override any gcc2 internal prototype to avoid an error. */
24902 /* We use char because int might match the return type of a gcc2
24903 builtin and then its argument prototype would still apply. */
24913 rm -f conftest.$ac_objext conftest$ac_exeext
24914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24915 (eval $ac_link) 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } &&
24922 { ac_try='test -z "$ac_c_werror_flag"
24923 || test ! -s conftest.err'
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; } &&
24929 { ac_try='test -s conftest$ac_exeext'
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; }; then
24935 ac_cv_search_lt_dlopen="none required"
24937 echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24941 rm -f conftest.err conftest.$ac_objext \
24942 conftest$ac_exeext conftest.$ac_ext
24943 if test "$ac_cv_search_lt_dlopen" = no; then
24944 for ac_lib in ltdl; do
24945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24946 cat >conftest.$ac_ext <<_ACEOF
24949 cat confdefs.h >>conftest.$ac_ext
24950 cat >>conftest.$ac_ext <<_ACEOF
24951 /* end confdefs.h. */
24953 /* Override any gcc2 internal prototype to avoid an error. */
24957 /* We use char because int might match the return type of a gcc2
24958 builtin and then its argument prototype would still apply. */
24968 rm -f conftest.$ac_objext conftest$ac_exeext
24969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24970 (eval $ac_link) 2>conftest.er1
24972 grep -v '^ *+' conftest.er1 >conftest.err
24974 cat conftest.err >&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } &&
24977 { ac_try='test -z "$ac_c_werror_flag"
24978 || test ! -s conftest.err'
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; } &&
24984 { ac_try='test -s conftest$ac_exeext'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; }; then
24990 ac_cv_search_lt_dlopen="-l$ac_lib"
24993 echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24997 rm -f conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
25001 LIBS=$ac_func_search_save_LIBS
25003 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25004 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25005 if test "$ac_cv_search_lt_dlopen" != no; then
25006 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25008 cat >>confdefs.h <<\_ACEOF
25009 #define HAVE_LT_DLOPEN 1
25013 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25014 not be available" >&5
25015 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25016 not be available" >&2;}
25020 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25021 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25022 if test "${ac_cv_search_dlopen+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 ac_func_search_save_LIBS=$LIBS
25026 ac_cv_search_dlopen=no
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25034 /* Override any gcc2 internal prototype to avoid an error. */
25038 /* We use char because int might match the return type of a gcc2
25039 builtin and then its argument prototype would still apply. */
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25051 (eval $ac_link) 2>conftest.er1
25053 grep -v '^ *+' conftest.er1 >conftest.err
25055 cat conftest.err >&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } &&
25058 { ac_try='test -z "$ac_c_werror_flag"
25059 || test ! -s conftest.err'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; } &&
25065 { ac_try='test -s conftest$ac_exeext'
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; }; then
25071 ac_cv_search_dlopen="none required"
25073 echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25077 rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25079 if test "$ac_cv_search_dlopen" = no; then
25080 for ac_lib in dl; do
25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25089 /* Override any gcc2 internal prototype to avoid an error. */
25093 /* We use char because int might match the return type of a gcc2
25094 builtin and then its argument prototype would still apply. */
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106 (eval $ac_link) 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
25113 { ac_try='test -z "$ac_c_werror_flag"
25114 || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest$ac_exeext'
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_cv_search_dlopen="-l$ac_lib"
25129 echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25133 rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
25137 LIBS=$ac_func_search_save_LIBS
25139 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25140 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25141 if test "$ac_cv_search_dlopen" != no; then
25142 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25144 cat >>confdefs.h <<\_ACEOF
25145 #define HAVE_DLOPEN 1
25149 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25150 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25154 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25155 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25156 if test "${ac_cv_search_mallinfo+set}" = set; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25159 ac_func_search_save_LIBS=$LIBS
25160 ac_cv_search_mallinfo=no
25161 cat >conftest.$ac_ext <<_ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h. */
25168 /* Override any gcc2 internal prototype to avoid an error. */
25172 /* We use char because int might match the return type of a gcc2
25173 builtin and then its argument prototype would still apply. */
25183 rm -f conftest.$ac_objext conftest$ac_exeext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25185 (eval $ac_link) 2>conftest.er1
25187 grep -v '^ *+' conftest.er1 >conftest.err
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest$ac_exeext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 ac_cv_search_mallinfo="none required"
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25211 rm -f conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext conftest.$ac_ext
25213 if test "$ac_cv_search_mallinfo" = no; then
25214 for ac_lib in malloc; do
25215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25216 cat >conftest.$ac_ext <<_ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25223 /* Override any gcc2 internal prototype to avoid an error. */
25227 /* We use char because int might match the return type of a gcc2
25228 builtin and then its argument prototype would still apply. */
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240 (eval $ac_link) 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
25247 { ac_try='test -z "$ac_c_werror_flag"
25248 || test ! -s conftest.err'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest$ac_exeext'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_cv_search_mallinfo="-l$ac_lib"
25263 echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25267 rm -f conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
25271 LIBS=$ac_func_search_save_LIBS
25273 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25274 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25275 if test "$ac_cv_search_mallinfo" != no; then
25276 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25278 cat >>confdefs.h <<\_ACEOF
25279 #define HAVE_MALLINFO 1
25286 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25287 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25288 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 ac_check_lib_save_LIBS=$LIBS
25292 LIBS="-lpthread $LIBS"
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25300 /* Override any gcc2 internal prototype to avoid an error. */
25304 /* We use char because int might match the return type of a gcc2
25305 builtin and then its argument prototype would still apply. */
25306 char pthread_mutex_init ();
25310 pthread_mutex_init ();
25315 rm -f conftest.$ac_objext conftest$ac_exeext
25316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25317 (eval $ac_link) 2>conftest.er1
25319 grep -v '^ *+' conftest.er1 >conftest.err
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } &&
25324 { ac_try='test -z "$ac_c_werror_flag"
25325 || test ! -s conftest.err'
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; } &&
25331 { ac_try='test -s conftest$ac_exeext'
25332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333 (eval $ac_try) 2>&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); }; }; then
25337 ac_cv_lib_pthread_pthread_mutex_init=yes
25339 echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25342 ac_cv_lib_pthread_pthread_mutex_init=no
25344 rm -f conftest.err conftest.$ac_objext \
25345 conftest$ac_exeext conftest.$ac_ext
25346 LIBS=$ac_check_lib_save_LIBS
25348 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25349 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25350 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25351 cat >>confdefs.h <<_ACEOF
25352 #define HAVE_LIBPTHREAD 1
25355 LIBS="-lpthread $LIBS"
25359 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25360 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25361 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25362 echo $ECHO_N "(cached) $ECHO_C" >&6
25364 ac_func_search_save_LIBS=$LIBS
25365 ac_cv_search_pthread_mutex_lock=no
25366 cat >conftest.$ac_ext <<_ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25373 /* Override any gcc2 internal prototype to avoid an error. */
25377 /* We use char because int might match the return type of a gcc2
25378 builtin and then its argument prototype would still apply. */
25379 char pthread_mutex_lock ();
25383 pthread_mutex_lock ();
25388 rm -f conftest.$ac_objext conftest$ac_exeext
25389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25390 (eval $ac_link) 2>conftest.er1
25392 grep -v '^ *+' conftest.er1 >conftest.err
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
25397 { ac_try='test -z "$ac_c_werror_flag"
25398 || test ! -s conftest.err'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest$ac_exeext'
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_cv_search_pthread_mutex_lock="none required"
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25416 rm -f conftest.err conftest.$ac_objext \
25417 conftest$ac_exeext conftest.$ac_ext
25418 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25419 for ac_lib in pthread; do
25420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25421 cat >conftest.$ac_ext <<_ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h. */
25428 /* Override any gcc2 internal prototype to avoid an error. */
25432 /* We use char because int might match the return type of a gcc2
25433 builtin and then its argument prototype would still apply. */
25434 char pthread_mutex_lock ();
25438 pthread_mutex_lock ();
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445 (eval $ac_link) 2>conftest.er1
25447 grep -v '^ *+' conftest.er1 >conftest.err
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
25452 { ac_try='test -z "$ac_c_werror_flag"
25453 || test ! -s conftest.err'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } &&
25459 { ac_try='test -s conftest$ac_exeext'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25468 echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25472 rm -f conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
25476 LIBS=$ac_func_search_save_LIBS
25478 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25479 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25480 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25481 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25483 cat >>confdefs.h <<\_ACEOF
25484 #define HAVE_PTHREAD_MUTEX_LOCK 1
25496 ac_header_dirent=no
25497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25498 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25499 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25500 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25502 echo $ECHO_N "(cached) $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 #include <sys/types.h>
25522 rm -f conftest.$ac_objext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524 (eval $ac_compile) 2>conftest.er1
25526 grep -v '^ *+' conftest.er1 >conftest.err
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest.$ac_objext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25544 eval "$as_ac_Header=yes"
25546 echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25549 eval "$as_ac_Header=no"
25551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25556 cat >>confdefs.h <<_ACEOF
25557 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25560 ac_header_dirent=$ac_hdr; break
25564 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25565 if test $ac_header_dirent = dirent.h; then
25566 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25567 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25568 if test "${ac_cv_search_opendir+set}" = set; then
25569 echo $ECHO_N "(cached) $ECHO_C" >&6
25571 ac_func_search_save_LIBS=$LIBS
25572 ac_cv_search_opendir=no
25573 cat >conftest.$ac_ext <<_ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h. */
25580 /* Override any gcc2 internal prototype to avoid an error. */
25584 /* We use char because int might match the return type of a gcc2
25585 builtin and then its argument prototype would still apply. */
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25597 (eval $ac_link) 2>conftest.er1
25599 grep -v '^ *+' conftest.er1 >conftest.err
25601 cat conftest.err >&5
25602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603 (exit $ac_status); } &&
25604 { ac_try='test -z "$ac_c_werror_flag"
25605 || test ! -s conftest.err'
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; } &&
25611 { ac_try='test -s conftest$ac_exeext'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 ac_cv_search_opendir="none required"
25619 echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25623 rm -f conftest.err conftest.$ac_objext \
25624 conftest$ac_exeext conftest.$ac_ext
25625 if test "$ac_cv_search_opendir" = no; then
25626 for ac_lib in dir; do
25627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25628 cat >conftest.$ac_ext <<_ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25635 /* Override any gcc2 internal prototype to avoid an error. */
25639 /* We use char because int might match the return type of a gcc2
25640 builtin and then its argument prototype would still apply. */
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652 (eval $ac_link) 2>conftest.er1
25654 grep -v '^ *+' conftest.er1 >conftest.err
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } &&
25659 { ac_try='test -z "$ac_c_werror_flag"
25660 || test ! -s conftest.err'
25661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25662 (eval $ac_try) 2>&5
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); }; } &&
25666 { ac_try='test -s conftest$ac_exeext'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25672 ac_cv_search_opendir="-l$ac_lib"
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25679 rm -f conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25683 LIBS=$ac_func_search_save_LIBS
25685 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25686 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25687 if test "$ac_cv_search_opendir" != no; then
25688 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25693 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25695 if test "${ac_cv_search_opendir+set}" = set; then
25696 echo $ECHO_N "(cached) $ECHO_C" >&6
25698 ac_func_search_save_LIBS=$LIBS
25699 ac_cv_search_opendir=no
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25707 /* Override any gcc2 internal prototype to avoid an error. */
25711 /* We use char because int might match the return type of a gcc2
25712 builtin and then its argument prototype would still apply. */
25722 rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25724 (eval $ac_link) 2>conftest.er1
25726 grep -v '^ *+' conftest.er1 >conftest.err
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest$ac_exeext'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_cv_search_opendir="none required"
25746 echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25750 rm -f conftest.err conftest.$ac_objext \
25751 conftest$ac_exeext conftest.$ac_ext
25752 if test "$ac_cv_search_opendir" = no; then
25753 for ac_lib in x; do
25754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25755 cat >conftest.$ac_ext <<_ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25762 /* Override any gcc2 internal prototype to avoid an error. */
25766 /* We use char because int might match the return type of a gcc2
25767 builtin and then its argument prototype would still apply. */
25777 rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25779 (eval $ac_link) 2>conftest.er1
25781 grep -v '^ *+' conftest.er1 >conftest.err
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } &&
25786 { ac_try='test -z "$ac_c_werror_flag"
25787 || test ! -s conftest.err'
25788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789 (eval $ac_try) 2>&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); }; } &&
25793 { ac_try='test -s conftest$ac_exeext'
25794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25795 (eval $ac_try) 2>&5
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); }; }; then
25799 ac_cv_search_opendir="-l$ac_lib"
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25806 rm -f conftest.err conftest.$ac_objext \
25807 conftest$ac_exeext conftest.$ac_ext
25810 LIBS=$ac_func_search_save_LIBS
25812 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25813 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25814 if test "$ac_cv_search_opendir" != no; then
25815 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25821 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25822 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25823 if test "${ac_cv_header_mmap_anon+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25827 ac_cpp='$CPP $CPPFLAGS'
25828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25832 cat >conftest.$ac_ext <<_ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h. */
25838 #include <sys/mman.h>
25839 #include <unistd.h>
25844 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25849 rm -f conftest.$ac_objext
25850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25851 (eval $ac_compile) 2>conftest.er1
25853 grep -v '^ *+' conftest.er1 >conftest.err
25855 cat conftest.err >&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); } &&
25858 { ac_try='test -z "$ac_c_werror_flag"
25859 || test ! -s conftest.err'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; } &&
25865 { ac_try='test -s conftest.$ac_objext'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; }; then
25871 ac_cv_header_mmap_anon=yes
25873 echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25876 ac_cv_header_mmap_anon=no
25878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25880 ac_cpp='$CPP $CPPFLAGS'
25881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25887 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25888 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25889 if test "$ac_cv_header_mmap_anon" = yes; then
25891 cat >>confdefs.h <<\_ACEOF
25892 #define HAVE_MMAP_ANONYMOUS 1
25897 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25898 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25899 if test "${ac_cv_header_stat_broken+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 cat >conftest.$ac_ext <<_ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h. */
25908 #include <sys/types.h>
25909 #include <sys/stat.h>
25911 #if defined(S_ISBLK) && defined(S_IFDIR)
25912 # if S_ISBLK (S_IFDIR)
25917 #if defined(S_ISBLK) && defined(S_IFCHR)
25918 # if S_ISBLK (S_IFCHR)
25923 #if defined(S_ISLNK) && defined(S_IFREG)
25924 # if S_ISLNK (S_IFREG)
25929 #if defined(S_ISSOCK) && defined(S_IFREG)
25930 # if S_ISSOCK (S_IFREG)
25936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25937 $EGREP "You lose" >/dev/null 2>&1; then
25938 ac_cv_header_stat_broken=yes
25940 ac_cv_header_stat_broken=no
25945 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25946 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25947 if test $ac_cv_header_stat_broken = yes; then
25949 cat >>confdefs.h <<\_ACEOF
25950 #define STAT_MACROS_BROKEN 1
25955 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25957 if test "${ac_cv_header_stdc+set}" = set; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25960 cat >conftest.$ac_ext <<_ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include <stdlib.h>
25967 #include <stdarg.h>
25968 #include <string.h>
25979 rm -f conftest.$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981 (eval $ac_compile) 2>conftest.er1
25983 grep -v '^ *+' conftest.er1 >conftest.err
25985 cat conftest.err >&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); } &&
25988 { ac_try='test -z "$ac_c_werror_flag"
25989 || test ! -s conftest.err'
25990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991 (eval $ac_try) 2>&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; } &&
25995 { ac_try='test -s conftest.$ac_objext'
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; }; then
26001 ac_cv_header_stdc=yes
26003 echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26006 ac_cv_header_stdc=no
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26010 if test $ac_cv_header_stdc = yes; then
26011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 #include <string.h>
26021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26022 $EGREP "memchr" >/dev/null 2>&1; then
26025 ac_cv_header_stdc=no
26031 if test $ac_cv_header_stdc = yes; then
26032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 #include <stdlib.h>
26042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26043 $EGREP "free" >/dev/null 2>&1; then
26046 ac_cv_header_stdc=no
26052 if test $ac_cv_header_stdc = yes; then
26053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26054 if test "$cross_compiling" = yes; then
26057 cat >conftest.$ac_ext <<_ACEOF
26060 cat confdefs.h >>conftest.$ac_ext
26061 cat >>conftest.$ac_ext <<_ACEOF
26062 /* end confdefs.h. */
26064 #if ((' ' & 0x0FF) == 0x020)
26065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26068 # define ISLOWER(c) \
26069 (('a' <= (c) && (c) <= 'i') \
26070 || ('j' <= (c) && (c) <= 'r') \
26071 || ('s' <= (c) && (c) <= 'z'))
26072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26080 for (i = 0; i < 256; i++)
26081 if (XOR (islower (i), ISLOWER (i))
26082 || toupper (i) != TOUPPER (i))
26087 rm -f conftest$ac_exeext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089 (eval $ac_link) 2>&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; }; then
26100 echo "$as_me: program exited with status $ac_status" >&5
26101 echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26104 ( exit $ac_status )
26105 ac_cv_header_stdc=no
26107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26113 if test $ac_cv_header_stdc = yes; then
26115 cat >>confdefs.h <<\_ACEOF
26116 #define STDC_HEADERS 1
26121 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26122 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26123 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26124 echo $ECHO_N "(cached) $ECHO_C" >&6
26126 cat >conftest.$ac_ext <<_ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26132 #include <sys/types.h>
26133 #include <sys/wait.h>
26134 #ifndef WEXITSTATUS
26135 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26138 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26146 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26151 rm -f conftest.$ac_objext
26152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26153 (eval $ac_compile) 2>conftest.er1
26155 grep -v '^ *+' conftest.er1 >conftest.err
26157 cat conftest.err >&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } &&
26160 { ac_try='test -z "$ac_c_werror_flag"
26161 || test ! -s conftest.err'
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; } &&
26167 { ac_try='test -s conftest.$ac_objext'
26168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26169 (eval $ac_try) 2>&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); }; }; then
26173 ac_cv_header_sys_wait_h=yes
26175 echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26178 ac_cv_header_sys_wait_h=no
26180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26184 if test $ac_cv_header_sys_wait_h = yes; then
26186 cat >>confdefs.h <<\_ACEOF
26187 #define HAVE_SYS_WAIT_H 1
26192 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26193 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26194 if test "${ac_cv_header_time+set}" = set; then
26195 echo $ECHO_N "(cached) $ECHO_C" >&6
26197 cat >conftest.$ac_ext <<_ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26203 #include <sys/types.h>
26204 #include <sys/time.h>
26210 if ((struct tm *) 0)
26216 rm -f conftest.$ac_objext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26218 (eval $ac_compile) 2>conftest.er1
26220 grep -v '^ *+' conftest.er1 >conftest.err
26222 cat conftest.err >&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); } &&
26225 { ac_try='test -z "$ac_c_werror_flag"
26226 || test ! -s conftest.err'
26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228 (eval $ac_try) 2>&5
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); }; } &&
26232 { ac_try='test -s conftest.$ac_objext'
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; }; then
26238 ac_cv_header_time=yes
26240 echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26243 ac_cv_header_time=no
26245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26247 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26248 echo "${ECHO_T}$ac_cv_header_time" >&6
26249 if test $ac_cv_header_time = yes; then
26251 cat >>confdefs.h <<\_ACEOF
26252 #define TIME_WITH_SYS_TIME 1
26264 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26268 echo "$as_me:$LINENO: checking for $ac_header" >&5
26269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26276 # Is the header compilable?
26277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 $ac_includes_default
26286 #include <$ac_header>
26288 rm -f conftest.$ac_objext
26289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26290 (eval $ac_compile) 2>conftest.er1
26292 grep -v '^ *+' conftest.er1 >conftest.err
26294 cat conftest.err >&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); } &&
26297 { ac_try='test -z "$ac_c_werror_flag"
26298 || test ! -s conftest.err'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try='test -s conftest.$ac_objext'
26305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306 (eval $ac_try) 2>&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); }; }; then
26310 ac_header_compiler=yes
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_header_compiler=no
26317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26319 echo "${ECHO_T}$ac_header_compiler" >&6
26321 # Is the header present?
26322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26330 #include <$ac_header>
26332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26335 grep -v '^ *+' conftest.er1 >conftest.err
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } >/dev/null; then
26340 if test -s conftest.err; then
26341 ac_cpp_err=$ac_c_preproc_warn_flag
26342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26349 if test -z "$ac_cpp_err"; then
26350 ac_header_preproc=yes
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ac_header_preproc=no
26357 rm -f conftest.err conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26359 echo "${ECHO_T}$ac_header_preproc" >&6
26361 # So? What about this header?
26362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26368 ac_header_preproc=yes
26371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26385 ## ----------------------------------- ##
26386 ## Report this to llvmbugs@cs.uiuc.edu ##
26387 ## ----------------------------------- ##
26390 sed "s/^/$as_me: WARNING: /" >&2
26393 echo "$as_me:$LINENO: checking for $ac_header" >&5
26394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26396 echo $ECHO_N "(cached) $ECHO_C" >&6
26398 eval "$as_ac_Header=\$ac_header_preproc"
26400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26405 cat >>confdefs.h <<_ACEOF
26406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26419 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26423 echo "$as_me:$LINENO: checking for $ac_header" >&5
26424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26431 # Is the header compilable?
26432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26434 cat >conftest.$ac_ext <<_ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h. */
26440 $ac_includes_default
26441 #include <$ac_header>
26443 rm -f conftest.$ac_objext
26444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26445 (eval $ac_compile) 2>conftest.er1
26447 grep -v '^ *+' conftest.er1 >conftest.err
26449 cat conftest.err >&5
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); } &&
26452 { ac_try='test -z "$ac_c_werror_flag"
26453 || test ! -s conftest.err'
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; } &&
26459 { ac_try='test -s conftest.$ac_objext'
26460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461 (eval $ac_try) 2>&5
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; }; then
26465 ac_header_compiler=yes
26467 echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26470 ac_header_compiler=no
26472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26474 echo "${ECHO_T}$ac_header_compiler" >&6
26476 # Is the header present?
26477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 #include <$ac_header>
26487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26490 grep -v '^ *+' conftest.er1 >conftest.err
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } >/dev/null; then
26495 if test -s conftest.err; then
26496 ac_cpp_err=$ac_c_preproc_warn_flag
26497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26504 if test -z "$ac_cpp_err"; then
26505 ac_header_preproc=yes
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 ac_header_preproc=no
26512 rm -f conftest.err conftest.$ac_ext
26513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26514 echo "${ECHO_T}$ac_header_preproc" >&6
26516 # So? What about this header?
26517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26523 ac_header_preproc=yes
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26540 ## ----------------------------------- ##
26541 ## Report this to llvmbugs@cs.uiuc.edu ##
26542 ## ----------------------------------- ##
26545 sed "s/^/$as_me: WARNING: /" >&2
26548 echo "$as_me:$LINENO: checking for $ac_header" >&5
26549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26553 eval "$as_ac_Header=\$ac_header_preproc"
26555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26560 cat >>confdefs.h <<_ACEOF
26561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26569 for ac_header in windows.h
26571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26573 echo "$as_me:$LINENO: checking for $ac_header" >&5
26574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26581 # Is the header compilable?
26582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26584 cat >conftest.$ac_ext <<_ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h. */
26590 $ac_includes_default
26591 #include <$ac_header>
26593 rm -f conftest.$ac_objext
26594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26595 (eval $ac_compile) 2>conftest.er1
26597 grep -v '^ *+' conftest.er1 >conftest.err
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } &&
26602 { ac_try='test -z "$ac_c_werror_flag"
26603 || test ! -s conftest.err'
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; } &&
26609 { ac_try='test -s conftest.$ac_objext'
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; }; then
26615 ac_header_compiler=yes
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26620 ac_header_compiler=no
26622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26624 echo "${ECHO_T}$ac_header_compiler" >&6
26626 # Is the header present?
26627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26629 cat >conftest.$ac_ext <<_ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h. */
26635 #include <$ac_header>
26637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26640 grep -v '^ *+' conftest.er1 >conftest.err
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } >/dev/null; then
26645 if test -s conftest.err; then
26646 ac_cpp_err=$ac_c_preproc_warn_flag
26647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26654 if test -z "$ac_cpp_err"; then
26655 ac_header_preproc=yes
26657 echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26660 ac_header_preproc=no
26662 rm -f conftest.err conftest.$ac_ext
26663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26664 echo "${ECHO_T}$ac_header_preproc" >&6
26666 # So? What about this header?
26667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26673 ac_header_preproc=yes
26676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26690 ## ----------------------------------- ##
26691 ## Report this to llvmbugs@cs.uiuc.edu ##
26692 ## ----------------------------------- ##
26695 sed "s/^/$as_me: WARNING: /" >&2
26698 echo "$as_me:$LINENO: checking for $ac_header" >&5
26699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26703 eval "$as_ac_Header=\$ac_header_preproc"
26705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26710 cat >>confdefs.h <<_ACEOF
26711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26723 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727 echo "$as_me:$LINENO: checking for $ac_header" >&5
26728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26735 # Is the header compilable?
26736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26738 cat >conftest.$ac_ext <<_ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 $ac_includes_default
26745 #include <$ac_header>
26747 rm -f conftest.$ac_objext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26749 (eval $ac_compile) 2>conftest.er1
26751 grep -v '^ *+' conftest.er1 >conftest.err
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
26756 { ac_try='test -z "$ac_c_werror_flag"
26757 || test ! -s conftest.err'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest.$ac_objext'
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_header_compiler=yes
26771 echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26774 ac_header_compiler=no
26776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26778 echo "${ECHO_T}$ac_header_compiler" >&6
26780 # Is the header present?
26781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26783 cat >conftest.$ac_ext <<_ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26789 #include <$ac_header>
26791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26794 grep -v '^ *+' conftest.er1 >conftest.err
26796 cat conftest.err >&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } >/dev/null; then
26799 if test -s conftest.err; then
26800 ac_cpp_err=$ac_c_preproc_warn_flag
26801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26808 if test -z "$ac_cpp_err"; then
26809 ac_header_preproc=yes
26811 echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26814 ac_header_preproc=no
26816 rm -f conftest.err conftest.$ac_ext
26817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26818 echo "${ECHO_T}$ac_header_preproc" >&6
26820 # So? What about this header?
26821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26827 ac_header_preproc=yes
26830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26844 ## ----------------------------------- ##
26845 ## Report this to llvmbugs@cs.uiuc.edu ##
26846 ## ----------------------------------- ##
26849 sed "s/^/$as_me: WARNING: /" >&2
26852 echo "$as_me:$LINENO: checking for $ac_header" >&5
26853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26857 eval "$as_ac_Header=\$ac_header_preproc"
26859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26864 cat >>confdefs.h <<_ACEOF
26865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26874 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26878 echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881 echo $ECHO_N "(cached) $ECHO_C" >&6
26883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26886 # Is the header compilable?
26887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26889 cat >conftest.$ac_ext <<_ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26895 $ac_includes_default
26896 #include <$ac_header>
26898 rm -f conftest.$ac_objext
26899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26900 (eval $ac_compile) 2>conftest.er1
26902 grep -v '^ *+' conftest.er1 >conftest.err
26904 cat conftest.err >&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); } &&
26907 { ac_try='test -z "$ac_c_werror_flag"
26908 || test ! -s conftest.err'
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; } &&
26914 { ac_try='test -s conftest.$ac_objext'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }; then
26920 ac_header_compiler=yes
26922 echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26925 ac_header_compiler=no
26927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26929 echo "${ECHO_T}$ac_header_compiler" >&6
26931 # Is the header present?
26932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26934 cat >conftest.$ac_ext <<_ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26940 #include <$ac_header>
26942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26945 grep -v '^ *+' conftest.er1 >conftest.err
26947 cat conftest.err >&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } >/dev/null; then
26950 if test -s conftest.err; then
26951 ac_cpp_err=$ac_c_preproc_warn_flag
26952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26959 if test -z "$ac_cpp_err"; then
26960 ac_header_preproc=yes
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26965 ac_header_preproc=no
26967 rm -f conftest.err conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26969 echo "${ECHO_T}$ac_header_preproc" >&6
26971 # So? What about this header?
26972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26978 ac_header_preproc=yes
26981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26995 ## ----------------------------------- ##
26996 ## Report this to llvmbugs@cs.uiuc.edu ##
26997 ## ----------------------------------- ##
27000 sed "s/^/$as_me: WARNING: /" >&2
27003 echo "$as_me:$LINENO: checking for $ac_header" >&5
27004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27008 eval "$as_ac_Header=\$ac_header_preproc"
27010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27015 cat >>confdefs.h <<_ACEOF
27016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27025 echo "$as_me:$LINENO: checking for pid_t" >&5
27026 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27027 if test "${ac_cv_type_pid_t+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27030 cat >conftest.$ac_ext <<_ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27036 $ac_includes_default
27042 if (sizeof (pid_t))
27048 rm -f conftest.$ac_objext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27050 (eval $ac_compile) 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -z "$ac_c_werror_flag"
27058 || test ! -s conftest.err'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest.$ac_objext'
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_cv_type_pid_t=yes
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27075 ac_cv_type_pid_t=no
27077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27079 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27080 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27081 if test $ac_cv_type_pid_t = yes; then
27085 cat >>confdefs.h <<_ACEOF
27091 echo "$as_me:$LINENO: checking for size_t" >&5
27092 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27093 if test "${ac_cv_type_size_t+set}" = set; then
27094 echo $ECHO_N "(cached) $ECHO_C" >&6
27096 cat >conftest.$ac_ext <<_ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27102 $ac_includes_default
27108 if (sizeof (size_t))
27114 rm -f conftest.$ac_objext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27116 (eval $ac_compile) 2>conftest.er1
27118 grep -v '^ *+' conftest.er1 >conftest.err
27120 cat conftest.err >&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
27123 { ac_try='test -z "$ac_c_werror_flag"
27124 || test ! -s conftest.err'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest.$ac_objext'
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136 ac_cv_type_size_t=yes
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 ac_cv_type_size_t=no
27143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27145 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27146 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27147 if test $ac_cv_type_size_t = yes; then
27151 cat >>confdefs.h <<_ACEOF
27152 #define size_t unsigned
27157 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27158 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27159 if test "${ac_cv_type_signal+set}" = set; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27162 cat >conftest.$ac_ext <<_ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h. */
27168 #include <sys/types.h>
27169 #include <signal.h>
27174 extern "C" void (*signal (int, void (*)(int)))(int);
27176 void (*signal ()) ();
27187 rm -f conftest.$ac_objext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27189 (eval $ac_compile) 2>conftest.er1
27191 grep -v '^ *+' conftest.er1 >conftest.err
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag"
27197 || test ! -s conftest.err'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; } &&
27203 { ac_try='test -s conftest.$ac_objext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_type_signal=void
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_cv_type_signal=int
27216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27218 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27219 echo "${ECHO_T}$ac_cv_type_signal" >&6
27221 cat >>confdefs.h <<_ACEOF
27222 #define RETSIGTYPE $ac_cv_type_signal
27226 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27227 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27228 if test "${ac_cv_struct_tm+set}" = set; then
27229 echo $ECHO_N "(cached) $ECHO_C" >&6
27231 cat >conftest.$ac_ext <<_ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27237 #include <sys/types.h>
27243 struct tm *tp; tp->tm_sec;
27248 rm -f conftest.$ac_objext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250 (eval $ac_compile) 2>conftest.er1
27252 grep -v '^ *+' conftest.er1 >conftest.err
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag"
27258 || test ! -s conftest.err'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; } &&
27264 { ac_try='test -s conftest.$ac_objext'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; }; then
27270 ac_cv_struct_tm=time.h
27272 echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27275 ac_cv_struct_tm=sys/time.h
27277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27279 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27280 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27281 if test $ac_cv_struct_tm = sys/time.h; then
27283 cat >>confdefs.h <<\_ACEOF
27284 #define TM_IN_SYS_TIME 1
27289 echo "$as_me:$LINENO: checking for int64_t" >&5
27290 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27291 if test "${ac_cv_type_int64_t+set}" = set; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 $ac_includes_default
27306 if (sizeof (int64_t))
27312 rm -f conftest.$ac_objext
27313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27314 (eval $ac_compile) 2>conftest.er1
27316 grep -v '^ *+' conftest.er1 >conftest.err
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } &&
27321 { ac_try='test -z "$ac_c_werror_flag"
27322 || test ! -s conftest.err'
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest.$ac_objext'
27329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330 (eval $ac_try) 2>&5
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; }; then
27334 ac_cv_type_int64_t=yes
27336 echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27339 ac_cv_type_int64_t=no
27341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27343 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27344 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27345 if test $ac_cv_type_int64_t = yes; then
27347 cat >>confdefs.h <<_ACEOF
27348 #define HAVE_INT64_T 1
27353 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27354 echo "$as_me: error: Type int64_t required but not found" >&2;}
27355 { (exit 1); exit 1; }; }
27358 echo "$as_me:$LINENO: checking for uint64_t" >&5
27359 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27360 if test "${ac_cv_type_uint64_t+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 cat >conftest.$ac_ext <<_ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h. */
27369 $ac_includes_default
27373 if ((uint64_t *) 0)
27375 if (sizeof (uint64_t))
27381 rm -f conftest.$ac_objext
27382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27383 (eval $ac_compile) 2>conftest.er1
27385 grep -v '^ *+' conftest.er1 >conftest.err
27387 cat conftest.err >&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); } &&
27390 { ac_try='test -z "$ac_c_werror_flag"
27391 || test ! -s conftest.err'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest.$ac_objext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_type_uint64_t=yes
27405 echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27408 ac_cv_type_uint64_t=no
27410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27412 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27413 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27414 if test $ac_cv_type_uint64_t = yes; then
27416 cat >>confdefs.h <<_ACEOF
27417 #define HAVE_UINT64_T 1
27422 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27423 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27424 if test "${ac_cv_type_u_int64_t+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h. */
27433 $ac_includes_default
27437 if ((u_int64_t *) 0)
27439 if (sizeof (u_int64_t))
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447 (eval $ac_compile) 2>conftest.er1
27449 grep -v '^ *+' conftest.er1 >conftest.err
27451 cat conftest.err >&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
27454 { ac_try='test -z "$ac_c_werror_flag"
27455 || test ! -s conftest.err'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest.$ac_objext'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_cv_type_u_int64_t=yes
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ac_cv_type_u_int64_t=no
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27476 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27477 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27478 if test $ac_cv_type_u_int64_t = yes; then
27480 cat >>confdefs.h <<_ACEOF
27481 #define HAVE_U_INT64_T 1
27486 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27487 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27488 { (exit 1); exit 1; }; }
27500 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27503 echo "$as_me:$LINENO: checking for $ac_func" >&5
27504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27505 if eval "test \"\${$as_ac_var+set}\" = set"; then
27506 echo $ECHO_N "(cached) $ECHO_C" >&6
27508 cat >conftest.$ac_ext <<_ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27516 #define $ac_func innocuous_$ac_func
27518 /* System header to define __stub macros and hopefully few prototypes,
27519 which can conflict with char $ac_func (); below.
27520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27521 <limits.h> exists even on freestanding compilers. */
27524 # include <limits.h>
27526 # include <assert.h>
27531 /* Override any gcc2 internal prototype to avoid an error. */
27536 /* We use char because int might match the return type of a gcc2
27537 builtin and then its argument prototype would still apply. */
27539 /* The GNU C library defines this for functions which it implements
27540 to always fail with ENOSYS. Some functions are actually named
27541 something starting with __ and the normal name is an alias. */
27542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27545 char (*f) () = $ac_func;
27554 return f != $ac_func;
27559 rm -f conftest.$ac_objext conftest$ac_exeext
27560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27561 (eval $ac_link) 2>conftest.er1
27563 grep -v '^ *+' conftest.er1 >conftest.err
27565 cat conftest.err >&5
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } &&
27568 { ac_try='test -z "$ac_c_werror_flag"
27569 || test ! -s conftest.err'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; } &&
27575 { ac_try='test -s conftest$ac_exeext'
27576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27577 (eval $ac_try) 2>&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; }; then
27581 eval "$as_ac_var=yes"
27583 echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27586 eval "$as_ac_var=no"
27588 rm -f conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27593 if test `eval echo '${'$as_ac_var'}'` = yes; then
27594 cat >>confdefs.h <<_ACEOF
27595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27605 for ac_func in isatty mkdtemp mkstemp mktemp
27607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27608 echo "$as_me:$LINENO: checking for $ac_func" >&5
27609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27610 if eval "test \"\${$as_ac_var+set}\" = set"; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27613 cat >conftest.$ac_ext <<_ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27621 #define $ac_func innocuous_$ac_func
27623 /* System header to define __stub macros and hopefully few prototypes,
27624 which can conflict with char $ac_func (); below.
27625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27626 <limits.h> exists even on freestanding compilers. */
27629 # include <limits.h>
27631 # include <assert.h>
27636 /* Override any gcc2 internal prototype to avoid an error. */
27641 /* We use char because int might match the return type of a gcc2
27642 builtin and then its argument prototype would still apply. */
27644 /* The GNU C library defines this for functions which it implements
27645 to always fail with ENOSYS. Some functions are actually named
27646 something starting with __ and the normal name is an alias. */
27647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27650 char (*f) () = $ac_func;
27659 return f != $ac_func;
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27666 (eval $ac_link) 2>conftest.er1
27668 grep -v '^ *+' conftest.er1 >conftest.err
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_c_werror_flag"
27674 || test ! -s conftest.err'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest$ac_exeext'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 eval "$as_ac_var=yes"
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27691 eval "$as_ac_var=no"
27693 rm -f conftest.err conftest.$ac_objext \
27694 conftest$ac_exeext conftest.$ac_ext
27696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27698 if test `eval echo '${'$as_ac_var'}'` = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27712 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27715 echo "$as_me:$LINENO: checking for $ac_func" >&5
27716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27717 if eval "test \"\${$as_ac_var+set}\" = set"; then
27718 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27728 #define $ac_func innocuous_$ac_func
27730 /* System header to define __stub macros and hopefully few prototypes,
27731 which can conflict with char $ac_func (); below.
27732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27733 <limits.h> exists even on freestanding compilers. */
27736 # include <limits.h>
27738 # include <assert.h>
27743 /* Override any gcc2 internal prototype to avoid an error. */
27748 /* We use char because int might match the return type of a gcc2
27749 builtin and then its argument prototype would still apply. */
27751 /* The GNU C library defines this for functions which it implements
27752 to always fail with ENOSYS. Some functions are actually named
27753 something starting with __ and the normal name is an alias. */
27754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27757 char (*f) () = $ac_func;
27766 return f != $ac_func;
27771 rm -f conftest.$ac_objext conftest$ac_exeext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27773 (eval $ac_link) 2>conftest.er1
27775 grep -v '^ *+' conftest.er1 >conftest.err
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
27780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 eval "$as_ac_var=yes"
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27798 eval "$as_ac_var=no"
27800 rm -f conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
27803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27805 if test `eval echo '${'$as_ac_var'}'` = yes; then
27806 cat >>confdefs.h <<_ACEOF
27807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27816 for ac_func in strtoll strtoq sysconf
27818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27819 echo "$as_me:$LINENO: checking for $ac_func" >&5
27820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27821 if eval "test \"\${$as_ac_var+set}\" = set"; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27824 cat >conftest.$ac_ext <<_ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h. */
27830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27832 #define $ac_func innocuous_$ac_func
27834 /* System header to define __stub macros and hopefully few prototypes,
27835 which can conflict with char $ac_func (); below.
27836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27837 <limits.h> exists even on freestanding compilers. */
27840 # include <limits.h>
27842 # include <assert.h>
27847 /* Override any gcc2 internal prototype to avoid an error. */
27852 /* We use char because int might match the return type of a gcc2
27853 builtin and then its argument prototype would still apply. */
27855 /* The GNU C library defines this for functions which it implements
27856 to always fail with ENOSYS. Some functions are actually named
27857 something starting with __ and the normal name is an alias. */
27858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27861 char (*f) () = $ac_func;
27870 return f != $ac_func;
27875 rm -f conftest.$ac_objext conftest$ac_exeext
27876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27877 (eval $ac_link) 2>conftest.er1
27879 grep -v '^ *+' conftest.er1 >conftest.err
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag"
27885 || test ! -s conftest.err'
27886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887 (eval $ac_try) 2>&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); }; } &&
27891 { ac_try='test -s conftest$ac_exeext'
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27897 eval "$as_ac_var=yes"
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 eval "$as_ac_var=no"
27904 rm -f conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
27907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27909 if test `eval echo '${'$as_ac_var'}'` = yes; then
27910 cat >>confdefs.h <<_ACEOF
27911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27917 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27918 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27919 if test "${llvm_cv_c_printf_a+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27923 ac_cpp='$CPP $CPPFLAGS'
27924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27928 if test "$cross_compiling" = yes; then
27929 llvmac_cv_c_printf_a=no
27931 cat >conftest.$ac_ext <<_ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h. */
27940 #include <stdlib.h>
27946 volatile double A, B;
27950 sprintf(Buffer, "%a", A);
27954 if (A != 0x1.999999999999ap-4)
27961 rm -f conftest$ac_exeext
27962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27963 (eval $ac_link) 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; }; then
27972 llvm_cv_c_printf_a=yes
27974 echo "$as_me: program exited with status $ac_status" >&5
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 ( exit $ac_status )
27979 llvmac_cv_c_printf_a=no
27981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27984 ac_cpp='$CPP $CPPFLAGS'
27985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27990 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27991 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27992 if test "$llvm_cv_c_printf_a" = "yes"; then
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_PRINTF_A 1
28000 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28001 # for constant arguments. Useless!
28002 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28003 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28004 if test "${ac_cv_working_alloca_h+set}" = set; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28007 cat >conftest.$ac_ext <<_ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h. */
28013 #include <alloca.h>
28017 char *p = (char *) alloca (2 * sizeof (int));
28022 rm -f conftest.$ac_objext conftest$ac_exeext
28023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28024 (eval $ac_link) 2>conftest.er1
28026 grep -v '^ *+' conftest.er1 >conftest.err
28028 cat conftest.err >&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
28031 { ac_try='test -z "$ac_c_werror_flag"
28032 || test ! -s conftest.err'
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest$ac_exeext'
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28044 ac_cv_working_alloca_h=yes
28046 echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28049 ac_cv_working_alloca_h=no
28051 rm -f conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
28054 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28055 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28056 if test $ac_cv_working_alloca_h = yes; then
28058 cat >>confdefs.h <<\_ACEOF
28059 #define HAVE_ALLOCA_H 1
28064 echo "$as_me:$LINENO: checking for alloca" >&5
28065 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28066 if test "${ac_cv_func_alloca_works+set}" = set; then
28067 echo $ECHO_N "(cached) $ECHO_C" >&6
28069 cat >conftest.$ac_ext <<_ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28076 # define alloca __builtin_alloca
28079 # include <malloc.h>
28080 # define alloca _alloca
28083 # include <alloca.h>
28088 # ifndef alloca /* predefined by HP cc +Olibcalls */
28099 char *p = (char *) alloca (1);
28104 rm -f conftest.$ac_objext conftest$ac_exeext
28105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28106 (eval $ac_link) 2>conftest.er1
28108 grep -v '^ *+' conftest.er1 >conftest.err
28110 cat conftest.err >&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
28113 { ac_try='test -z "$ac_c_werror_flag"
28114 || test ! -s conftest.err'
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; } &&
28120 { ac_try='test -s conftest$ac_exeext'
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
28126 ac_cv_func_alloca_works=yes
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_cv_func_alloca_works=no
28133 rm -f conftest.err conftest.$ac_objext \
28134 conftest$ac_exeext conftest.$ac_ext
28136 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28137 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28139 if test $ac_cv_func_alloca_works = yes; then
28141 cat >>confdefs.h <<\_ACEOF
28142 #define HAVE_ALLOCA 1
28146 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28147 # that cause trouble. Some versions do not even contain alloca or
28148 # contain a buggy version. If you still want to use their alloca,
28149 # use ar to extract alloca.o from them instead of compiling alloca.c.
28151 ALLOCA=alloca.$ac_objext
28153 cat >>confdefs.h <<\_ACEOF
28158 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28159 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28160 if test "${ac_cv_os_cray+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28163 cat >conftest.$ac_ext <<_ACEOF
28166 cat confdefs.h >>conftest.$ac_ext
28167 cat >>conftest.$ac_ext <<_ACEOF
28168 /* end confdefs.h. */
28169 #if defined(CRAY) && ! defined(CRAY2)
28176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28177 $EGREP "webecray" >/dev/null 2>&1; then
28185 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28186 echo "${ECHO_T}$ac_cv_os_cray" >&6
28187 if test $ac_cv_os_cray = yes; then
28188 for ac_func in _getb67 GETB67 getb67; do
28189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28190 echo "$as_me:$LINENO: checking for $ac_func" >&5
28191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28192 if eval "test \"\${$as_ac_var+set}\" = set"; then
28193 echo $ECHO_N "(cached) $ECHO_C" >&6
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28203 #define $ac_func innocuous_$ac_func
28205 /* System header to define __stub macros and hopefully few prototypes,
28206 which can conflict with char $ac_func (); below.
28207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208 <limits.h> exists even on freestanding compilers. */
28211 # include <limits.h>
28213 # include <assert.h>
28218 /* Override any gcc2 internal prototype to avoid an error. */
28223 /* We use char because int might match the return type of a gcc2
28224 builtin and then its argument prototype would still apply. */
28226 /* The GNU C library defines this for functions which it implements
28227 to always fail with ENOSYS. Some functions are actually named
28228 something starting with __ and the normal name is an alias. */
28229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28232 char (*f) () = $ac_func;
28241 return f != $ac_func;
28246 rm -f conftest.$ac_objext conftest$ac_exeext
28247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28248 (eval $ac_link) 2>conftest.er1
28250 grep -v '^ *+' conftest.er1 >conftest.err
28252 cat conftest.err >&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } &&
28255 { ac_try='test -z "$ac_c_werror_flag"
28256 || test ! -s conftest.err'
28257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258 (eval $ac_try) 2>&5
28260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261 (exit $ac_status); }; } &&
28262 { ac_try='test -s conftest$ac_exeext'
28263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264 (eval $ac_try) 2>&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); }; }; then
28268 eval "$as_ac_var=yes"
28270 echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28273 eval "$as_ac_var=no"
28275 rm -f conftest.err conftest.$ac_objext \
28276 conftest$ac_exeext conftest.$ac_ext
28278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28280 if test `eval echo '${'$as_ac_var'}'` = yes; then
28282 cat >>confdefs.h <<_ACEOF
28283 #define CRAY_STACKSEG_END $ac_func
28292 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28293 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28294 if test "${ac_cv_c_stack_direction+set}" = set; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28297 if test "$cross_compiling" = yes; then
28298 ac_cv_c_stack_direction=0
28300 cat >conftest.$ac_ext <<_ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h. */
28307 find_stack_direction ()
28309 static char *addr = 0;
28314 return find_stack_direction ();
28317 return (&dummy > addr) ? 1 : -1;
28323 exit (find_stack_direction () < 0);
28326 rm -f conftest$ac_exeext
28327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328 (eval $ac_link) 2>&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333 (eval $ac_try) 2>&5
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; }; then
28337 ac_cv_c_stack_direction=1
28339 echo "$as_me: program exited with status $ac_status" >&5
28340 echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28343 ( exit $ac_status )
28344 ac_cv_c_stack_direction=-1
28346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28349 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28350 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28352 cat >>confdefs.h <<_ACEOF
28353 #define STACK_DIRECTION $ac_cv_c_stack_direction
28360 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28361 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28362 if test "${ac_cv_func_rand48+set}" = set; then
28363 echo $ECHO_N "(cached) $ECHO_C" >&6
28366 ac_cpp='$CXXCPP $CPPFLAGS'
28367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28371 cat >conftest.$ac_ext <<_ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28377 #include <stdlib.h>
28381 srand48(0);lrand48();drand48();
28386 rm -f conftest.$ac_objext
28387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28388 (eval $ac_compile) 2>conftest.er1
28390 grep -v '^ *+' conftest.er1 >conftest.err
28392 cat conftest.err >&5
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
28395 { ac_try='test -z "$ac_cxx_werror_flag"
28396 || test ! -s conftest.err'
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; } &&
28402 { ac_try='test -s conftest.$ac_objext'
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_cv_func_rand48=yes
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28413 ac_cv_func_rand48=no
28415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28417 ac_cpp='$CPP $CPPFLAGS'
28418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28423 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28424 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28426 if test "$ac_cv_func_rand48" = "yes" ; then
28428 cat >>confdefs.h <<\_ACEOF
28429 #define HAVE_RAND48 1
28435 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28436 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28437 if test "${ac_cv_cxx_namespaces+set}" = set; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28441 ac_cpp='$CXXCPP $CPPFLAGS'
28442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28446 cat >conftest.$ac_ext <<_ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h. */
28452 namespace Outer { namespace Inner { int i = 0; }}
28456 using namespace Outer::Inner; return i;
28461 rm -f conftest.$ac_objext
28462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28463 (eval $ac_compile) 2>conftest.er1
28465 grep -v '^ *+' conftest.er1 >conftest.err
28467 cat conftest.err >&5
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); } &&
28470 { ac_try='test -z "$ac_cxx_werror_flag"
28471 || test ! -s conftest.err'
28472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473 (eval $ac_try) 2>&5
28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476 (exit $ac_status); }; } &&
28477 { ac_try='test -s conftest.$ac_objext'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; }; then
28483 ac_cv_cxx_namespaces=yes
28485 echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28488 ac_cv_cxx_namespaces=no
28490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28492 ac_cpp='$CPP $CPPFLAGS'
28493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28499 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28500 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28501 if test "$ac_cv_cxx_namespaces" = yes; then
28503 cat >>confdefs.h <<\_ACEOF
28504 #define HAVE_NAMESPACES
28509 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28510 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28511 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28516 ac_cpp='$CXXCPP $CPPFLAGS'
28517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 #include <ext/hash_map>
28528 #ifdef HAVE_NAMESPACES
28529 using namespace std;
28534 hash_map<int, int> t;
28539 rm -f conftest.$ac_objext
28540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28541 (eval $ac_compile) 2>conftest.er1
28543 grep -v '^ *+' conftest.er1 >conftest.err
28545 cat conftest.err >&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } &&
28548 { ac_try='test -z "$ac_cxx_werror_flag"
28549 || test ! -s conftest.err'
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest.$ac_objext'
28556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557 (eval $ac_try) 2>&5
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
28561 ac_cv_cxx_have_std_ext_hash_map=yes
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28566 ac_cv_cxx_have_std_ext_hash_map=no
28568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28570 ac_cpp='$CPP $CPPFLAGS'
28571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28576 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28577 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28578 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28581 cat >>confdefs.h <<\_ACEOF
28582 #define HAVE_STD_EXT_HASH_MAP 1
28587 cat >>confdefs.h <<\_ACEOF
28588 #define HAVE_STD_EXT_HASH_MAP 0
28593 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28594 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28595 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28600 ac_cpp='$CXXCPP $CPPFLAGS'
28601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28605 cat >conftest.$ac_ext <<_ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 #include <ext/hash_map>
28612 #ifdef HAVE_NAMESPACES
28613 using namespace __gnu_cxx;
28618 hash_map<int,int> t;
28623 rm -f conftest.$ac_objext
28624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28625 (eval $ac_compile) 2>conftest.er1
28627 grep -v '^ *+' conftest.er1 >conftest.err
28629 cat conftest.err >&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); } &&
28632 { ac_try='test -z "$ac_cxx_werror_flag"
28633 || test ! -s conftest.err'
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest.$ac_objext'
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; }; then
28645 ac_cv_cxx_have_gnu_ext_hash_map=yes
28647 echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28650 ac_cv_cxx_have_gnu_ext_hash_map=no
28652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28654 ac_cpp='$CPP $CPPFLAGS'
28655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28660 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28661 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28662 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28665 cat >>confdefs.h <<\_ACEOF
28666 #define HAVE_GNU_EXT_HASH_MAP 1
28671 cat >>confdefs.h <<\_ACEOF
28672 #define HAVE_GNU_EXT_HASH_MAP 0
28677 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28678 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28679 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28684 ac_cpp='$CXXCPP $CPPFLAGS'
28685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28689 cat >conftest.$ac_ext <<_ACEOF
28692 cat confdefs.h >>conftest.$ac_ext
28693 cat >>conftest.$ac_ext <<_ACEOF
28694 /* end confdefs.h. */
28695 #include <hash_map>
28699 hash_map<int,int> t;
28704 rm -f conftest.$ac_objext
28705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28706 (eval $ac_compile) 2>conftest.er1
28708 grep -v '^ *+' conftest.er1 >conftest.err
28710 cat conftest.err >&5
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } &&
28713 { ac_try='test -z "$ac_cxx_werror_flag"
28714 || test ! -s conftest.err'
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; } &&
28720 { ac_try='test -s conftest.$ac_objext'
28721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722 (eval $ac_try) 2>&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 ac_cv_cxx_have_global_hash_map=yes
28728 echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28731 ac_cv_cxx_have_global_hash_map=no
28733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28735 ac_cpp='$CPP $CPPFLAGS'
28736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28741 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28742 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28743 if test "$ac_cv_cxx_have_global_hash_map" = yes
28746 cat >>confdefs.h <<\_ACEOF
28747 #define HAVE_GLOBAL_HASH_MAP 1
28752 cat >>confdefs.h <<\_ACEOF
28753 #define HAVE_GLOBAL_HASH_MAP 0
28758 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28759 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28760 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28765 ac_cpp='$CXXCPP $CPPFLAGS'
28766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28770 cat >conftest.$ac_ext <<_ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 #include <ext/hash_set>
28777 #ifdef HAVE_NAMESPACES
28778 using namespace std;
28788 rm -f conftest.$ac_objext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790 (eval $ac_compile) 2>conftest.er1
28792 grep -v '^ *+' conftest.er1 >conftest.err
28794 cat conftest.err >&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
28797 { ac_try='test -z "$ac_cxx_werror_flag"
28798 || test ! -s conftest.err'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; } &&
28804 { ac_try='test -s conftest.$ac_objext'
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; }; then
28810 ac_cv_cxx_have_std_ext_hash_set=yes
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 ac_cv_cxx_have_std_ext_hash_set=no
28817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28819 ac_cpp='$CPP $CPPFLAGS'
28820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28825 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28826 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28827 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_STD_EXT_HASH_SET 1
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_STD_EXT_HASH_SET 0
28842 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28843 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28844 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 ac_cpp='$CXXCPP $CPPFLAGS'
28850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28854 cat >conftest.$ac_ext <<_ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h. */
28860 #include <ext/hash_set>
28861 #ifdef HAVE_NAMESPACES
28862 using namespace __gnu_cxx;
28872 rm -f conftest.$ac_objext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874 (eval $ac_compile) 2>conftest.er1
28876 grep -v '^ *+' conftest.er1 >conftest.err
28878 cat conftest.err >&5
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); } &&
28881 { ac_try='test -z "$ac_cxx_werror_flag"
28882 || test ! -s conftest.err'
28883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884 (eval $ac_try) 2>&5
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; } &&
28888 { ac_try='test -s conftest.$ac_objext'
28889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; }; then
28894 ac_cv_cxx_have_gnu_ext_hash_set=yes
28896 echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28899 ac_cv_cxx_have_gnu_ext_hash_set=no
28901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28903 ac_cpp='$CPP $CPPFLAGS'
28904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28910 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28911 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28914 cat >>confdefs.h <<\_ACEOF
28915 #define HAVE_GNU_EXT_HASH_SET 1
28920 cat >>confdefs.h <<\_ACEOF
28921 #define HAVE_GNU_EXT_HASH_SET 0
28926 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28927 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28928 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 ac_cpp='$CXXCPP $CPPFLAGS'
28934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28938 cat >conftest.$ac_ext <<_ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 #include <hash_set>
28948 hash_set<int> t; return 0;
28953 rm -f conftest.$ac_objext
28954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28955 (eval $ac_compile) 2>conftest.er1
28957 grep -v '^ *+' conftest.er1 >conftest.err
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } &&
28962 { ac_try='test -z "$ac_cxx_werror_flag"
28963 || test ! -s conftest.err'
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; } &&
28969 { ac_try='test -s conftest.$ac_objext'
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; }; then
28975 ac_cv_cxx_have_global_hash_set=yes
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28980 ac_cv_cxx_have_global_hash_set=no
28982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28984 ac_cpp='$CPP $CPPFLAGS'
28985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28990 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28991 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28992 if test "$ac_cv_cxx_have_global_hash_set" = yes
28995 cat >>confdefs.h <<\_ACEOF
28996 #define HAVE_GLOBAL_HASH_SET 1
29001 cat >>confdefs.h <<\_ACEOF
29002 #define HAVE_GLOBAL_HASH_SET 0
29007 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29008 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29009 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29014 ac_cpp='$CXXCPP $CPPFLAGS'
29015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29019 cat >conftest.$ac_ext <<_ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h. */
29025 #include <iterator>
29026 #ifdef HAVE_NAMESPACES
29027 using namespace std;
29032 iterator<int,int,int> t; return 0;
29037 rm -f conftest.$ac_objext
29038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039 (eval $ac_compile) 2>conftest.er1
29041 grep -v '^ *+' conftest.er1 >conftest.err
29043 cat conftest.err >&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
29046 { ac_try='test -z "$ac_cxx_werror_flag"
29047 || test ! -s conftest.err'
29048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049 (eval $ac_try) 2>&5
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); }; } &&
29053 { ac_try='test -s conftest.$ac_objext'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 ac_cv_cxx_have_std_iterator=yes
29061 echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29064 ac_cv_cxx_have_std_iterator=no
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29068 ac_cpp='$CPP $CPPFLAGS'
29069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29075 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29076 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29077 if test "$ac_cv_cxx_have_std_iterator" = yes
29080 cat >>confdefs.h <<\_ACEOF
29081 #define HAVE_STD_ITERATOR 1
29086 cat >>confdefs.h <<\_ACEOF
29087 #define HAVE_STD_ITERATOR 0
29092 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29093 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29094 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29099 ac_cpp='$CXXCPP $CPPFLAGS'
29100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29104 cat >conftest.$ac_ext <<_ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h. */
29110 #include <iterator>
29111 #ifdef HAVE_NAMESPACES
29112 using namespace std;
29117 bidirectional_iterator<int,int> t; return 0;
29122 rm -f conftest.$ac_objext
29123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29124 (eval $ac_compile) 2>conftest.er1
29126 grep -v '^ *+' conftest.er1 >conftest.err
29128 cat conftest.err >&5
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } &&
29131 { ac_try='test -z "$ac_cxx_werror_flag"
29132 || test ! -s conftest.err'
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; } &&
29138 { ac_try='test -s conftest.$ac_objext'
29139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140 (eval $ac_try) 2>&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
29144 ac_cv_cxx_have_bi_iterator=yes
29146 echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29149 ac_cv_cxx_have_bi_iterator=no
29151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29153 ac_cpp='$CPP $CPPFLAGS'
29154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29160 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29161 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29162 if test "$ac_cv_cxx_have_bi_iterator" = yes
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_BI_ITERATOR 1
29171 cat >>confdefs.h <<\_ACEOF
29172 #define HAVE_BI_ITERATOR 0
29177 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29178 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29179 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29180 echo $ECHO_N "(cached) $ECHO_C" >&6
29184 ac_cpp='$CXXCPP $CPPFLAGS'
29185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29189 cat >conftest.$ac_ext <<_ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h. */
29195 #include <iterator>
29196 #ifdef HAVE_NAMESPACES
29197 using namespace std;
29202 forward_iterator<int,int> t; return 0;
29207 rm -f conftest.$ac_objext
29208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29209 (eval $ac_compile) 2>conftest.er1
29211 grep -v '^ *+' conftest.er1 >conftest.err
29213 cat conftest.err >&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
29216 { ac_try='test -z "$ac_cxx_werror_flag"
29217 || test ! -s conftest.err'
29218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29219 (eval $ac_try) 2>&5
29221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 (exit $ac_status); }; } &&
29223 { ac_try='test -s conftest.$ac_objext'
29224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225 (eval $ac_try) 2>&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; }; then
29229 ac_cv_cxx_have_fwd_iterator=yes
29231 echo "$as_me: failed program was:" >&5
29232 sed 's/^/| /' conftest.$ac_ext >&5
29234 ac_cv_cxx_have_fwd_iterator=no
29236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29238 ac_cpp='$CPP $CPPFLAGS'
29239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29245 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29246 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29247 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29250 cat >>confdefs.h <<\_ACEOF
29251 #define HAVE_FWD_ITERATOR 1
29256 cat >>confdefs.h <<\_ACEOF
29257 #define HAVE_FWD_ITERATOR 0
29263 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29264 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29265 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29266 echo $ECHO_N "(cached) $ECHO_C" >&6
29269 ac_cpp='$CXXCPP $CPPFLAGS'
29270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29274 cat >conftest.$ac_ext <<_ACEOF
29277 cat confdefs.h >>conftest.$ac_ext
29278 cat >>conftest.$ac_ext <<_ACEOF
29279 /* end confdefs.h. */
29289 rm -f conftest.$ac_objext
29290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29291 (eval $ac_compile) 2>conftest.er1
29293 grep -v '^ *+' conftest.er1 >conftest.err
29295 cat conftest.err >&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); } &&
29298 { ac_try='test -z "$ac_cxx_werror_flag"
29299 || test ! -s conftest.err'
29300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301 (eval $ac_try) 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest.$ac_objext'
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; }; then
29311 ac_cv_func_isnan_in_math_h=yes
29313 echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29316 ac_cv_func_isnan_in_math_h=no
29318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29320 ac_cpp='$CPP $CPPFLAGS'
29321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29326 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29327 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29330 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29332 cat >>confdefs.h <<\_ACEOF
29333 #define HAVE_ISNAN_IN_MATH_H 1
29338 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29339 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29340 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29341 echo $ECHO_N "(cached) $ECHO_C" >&6
29344 ac_cpp='$CXXCPP $CPPFLAGS'
29345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29349 cat >conftest.$ac_ext <<_ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29364 rm -f conftest.$ac_objext
29365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29366 (eval $ac_compile) 2>conftest.er1
29368 grep -v '^ *+' conftest.er1 >conftest.err
29370 cat conftest.err >&5
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } &&
29373 { ac_try='test -z "$ac_cxx_werror_flag"
29374 || test ! -s conftest.err'
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; } &&
29380 { ac_try='test -s conftest.$ac_objext'
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; }; then
29386 ac_cv_func_isnan_in_cmath=yes
29388 echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29391 ac_cv_func_isnan_in_cmath=no
29393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29395 ac_cpp='$CPP $CPPFLAGS'
29396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29401 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29402 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29404 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29406 cat >>confdefs.h <<\_ACEOF
29407 #define HAVE_ISNAN_IN_CMATH 1
29412 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29413 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29414 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29415 echo $ECHO_N "(cached) $ECHO_C" >&6
29418 ac_cpp='$CXXCPP $CPPFLAGS'
29419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29423 cat >conftest.$ac_ext <<_ACEOF
29426 cat confdefs.h >>conftest.$ac_ext
29427 cat >>conftest.$ac_ext <<_ACEOF
29428 /* end confdefs.h. */
29433 float f; std::isnan(f);
29438 rm -f conftest.$ac_objext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29440 (eval $ac_compile) 2>conftest.er1
29442 grep -v '^ *+' conftest.er1 >conftest.err
29444 cat conftest.err >&5
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } &&
29447 { ac_try='test -z "$ac_cxx_werror_flag"
29448 || test ! -s conftest.err'
29449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29450 (eval $ac_try) 2>&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); }; } &&
29454 { ac_try='test -s conftest.$ac_objext'
29455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29456 (eval $ac_try) 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; }; then
29460 ac_cv_func_std_isnan_in_cmath=yes
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29465 ac_cv_func_std_isnan_in_cmath=no
29467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29469 ac_cpp='$CPP $CPPFLAGS'
29470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29475 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29476 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29478 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29480 cat >>confdefs.h <<\_ACEOF
29481 #define HAVE_STD_ISNAN_IN_CMATH 1
29487 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29488 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29489 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29493 ac_cpp='$CXXCPP $CPPFLAGS'
29494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29498 cat >conftest.$ac_ext <<_ACEOF
29501 cat confdefs.h >>conftest.$ac_ext
29502 cat >>conftest.$ac_ext <<_ACEOF
29503 /* end confdefs.h. */
29513 rm -f conftest.$ac_objext
29514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29515 (eval $ac_compile) 2>conftest.er1
29517 grep -v '^ *+' conftest.er1 >conftest.err
29519 cat conftest.err >&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } &&
29522 { ac_try='test -z "$ac_cxx_werror_flag"
29523 || test ! -s conftest.err'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest.$ac_objext'
29530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; }; then
29535 ac_cv_func_isinf_in_math_h=yes
29537 echo "$as_me: failed program was:" >&5
29538 sed 's/^/| /' conftest.$ac_ext >&5
29540 ac_cv_func_isinf_in_math_h=no
29542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29544 ac_cpp='$CPP $CPPFLAGS'
29545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29550 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29551 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29553 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29555 cat >>confdefs.h <<\_ACEOF
29556 #define HAVE_ISINF_IN_MATH_H 1
29561 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29562 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29563 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29567 ac_cpp='$CXXCPP $CPPFLAGS'
29568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29572 cat >conftest.$ac_ext <<_ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h. */
29587 rm -f conftest.$ac_objext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29589 (eval $ac_compile) 2>conftest.er1
29591 grep -v '^ *+' conftest.er1 >conftest.err
29593 cat conftest.err >&5
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_cxx_werror_flag"
29597 || test ! -s conftest.err'
29598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599 (eval $ac_try) 2>&5
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; } &&
29603 { ac_try='test -s conftest.$ac_objext'
29604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605 (eval $ac_try) 2>&5
29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608 (exit $ac_status); }; }; then
29609 ac_cv_func_isinf_in_cmath=yes
29611 echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29614 ac_cv_func_isinf_in_cmath=no
29616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29618 ac_cpp='$CPP $CPPFLAGS'
29619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29624 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29625 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29627 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29629 cat >>confdefs.h <<\_ACEOF
29630 #define HAVE_ISINF_IN_CMATH 1
29635 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29636 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29637 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29638 echo $ECHO_N "(cached) $ECHO_C" >&6
29641 ac_cpp='$CXXCPP $CPPFLAGS'
29642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29646 cat >conftest.$ac_ext <<_ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h. */
29656 float f; std::isinf(f)}
29661 rm -f conftest.$ac_objext
29662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29663 (eval $ac_compile) 2>conftest.er1
29665 grep -v '^ *+' conftest.er1 >conftest.err
29667 cat conftest.err >&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } &&
29670 { ac_try='test -z "$ac_cxx_werror_flag"
29671 || test ! -s conftest.err'
29672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673 (eval $ac_try) 2>&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; } &&
29677 { ac_try='test -s conftest.$ac_objext'
29678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679 (eval $ac_try) 2>&5
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; }; then
29683 ac_cv_func_std_isinf_in_cmath=yes
29685 echo "$as_me: failed program was:" >&5
29686 sed 's/^/| /' conftest.$ac_ext >&5
29688 ac_cv_func_std_isinf_in_cmath=no
29690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29692 ac_cpp='$CPP $CPPFLAGS'
29693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29698 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29699 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29701 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29703 cat >>confdefs.h <<\_ACEOF
29704 #define HAVE_STD_ISINF_IN_CMATH 1
29709 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29710 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29711 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29715 ac_cpp='$CXXCPP $CPPFLAGS'
29716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29720 cat >conftest.$ac_ext <<_ACEOF
29723 cat confdefs.h >>conftest.$ac_ext
29724 cat >>conftest.$ac_ext <<_ACEOF
29725 /* end confdefs.h. */
29726 #include <ieeefp.h>
29730 float f; finite(f);
29735 rm -f conftest.$ac_objext
29736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29737 (eval $ac_compile) 2>conftest.er1
29739 grep -v '^ *+' conftest.er1 >conftest.err
29741 cat conftest.err >&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); } &&
29744 { ac_try='test -z "$ac_cxx_werror_flag"
29745 || test ! -s conftest.err'
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; } &&
29751 { ac_try='test -s conftest.$ac_objext'
29752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29753 (eval $ac_try) 2>&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); }; }; then
29757 ac_cv_func_finite_in_ieeefp_h=yes
29759 echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29762 ac_cv_func_finite_in_ieeefp_h=no
29764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29766 ac_cpp='$CPP $CPPFLAGS'
29767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29772 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29773 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29775 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29777 cat >>confdefs.h <<\_ACEOF
29778 #define HAVE_FINITE_IN_IEEEFP_H 1
29787 for ac_header in stdlib.h unistd.h
29789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29791 echo "$as_me:$LINENO: checking for $ac_header" >&5
29792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
29796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29799 # Is the header compilable?
29800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29802 cat >conftest.$ac_ext <<_ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h. */
29808 $ac_includes_default
29809 #include <$ac_header>
29811 rm -f conftest.$ac_objext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29813 (eval $ac_compile) 2>conftest.er1
29815 grep -v '^ *+' conftest.er1 >conftest.err
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
29820 { ac_try='test -z "$ac_c_werror_flag"
29821 || test ! -s conftest.err'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
29828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829 (eval $ac_try) 2>&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 ac_header_compiler=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_header_compiler=no
29840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29842 echo "${ECHO_T}$ac_header_compiler" >&6
29844 # Is the header present?
29845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29847 cat >conftest.$ac_ext <<_ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h. */
29853 #include <$ac_header>
29855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29858 grep -v '^ *+' conftest.er1 >conftest.err
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } >/dev/null; then
29863 if test -s conftest.err; then
29864 ac_cpp_err=$ac_c_preproc_warn_flag
29865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29872 if test -z "$ac_cpp_err"; then
29873 ac_header_preproc=yes
29875 echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29878 ac_header_preproc=no
29880 rm -f conftest.err conftest.$ac_ext
29881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29882 echo "${ECHO_T}$ac_header_preproc" >&6
29884 # So? What about this header?
29885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29891 ac_header_preproc=yes
29894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29908 ## ----------------------------------- ##
29909 ## Report this to llvmbugs@cs.uiuc.edu ##
29910 ## ----------------------------------- ##
29913 sed "s/^/$as_me: WARNING: /" >&2
29916 echo "$as_me:$LINENO: checking for $ac_header" >&5
29917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 eval "$as_ac_Header=\$ac_header_preproc"
29923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29928 cat >>confdefs.h <<_ACEOF
29929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29937 for ac_func in getpagesize
29939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29940 echo "$as_me:$LINENO: checking for $ac_func" >&5
29941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29942 if eval "test \"\${$as_ac_var+set}\" = set"; then
29943 echo $ECHO_N "(cached) $ECHO_C" >&6
29945 cat >conftest.$ac_ext <<_ACEOF
29948 cat confdefs.h >>conftest.$ac_ext
29949 cat >>conftest.$ac_ext <<_ACEOF
29950 /* end confdefs.h. */
29951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29953 #define $ac_func innocuous_$ac_func
29955 /* System header to define __stub macros and hopefully few prototypes,
29956 which can conflict with char $ac_func (); below.
29957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29958 <limits.h> exists even on freestanding compilers. */
29961 # include <limits.h>
29963 # include <assert.h>
29968 /* Override any gcc2 internal prototype to avoid an error. */
29973 /* We use char because int might match the return type of a gcc2
29974 builtin and then its argument prototype would still apply. */
29976 /* The GNU C library defines this for functions which it implements
29977 to always fail with ENOSYS. Some functions are actually named
29978 something starting with __ and the normal name is an alias. */
29979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29982 char (*f) () = $ac_func;
29991 return f != $ac_func;
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29998 (eval $ac_link) 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } &&
30005 { ac_try='test -z "$ac_c_werror_flag"
30006 || test ! -s conftest.err'
30007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008 (eval $ac_try) 2>&5
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); }; } &&
30012 { ac_try='test -s conftest$ac_exeext'
30013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30014 (eval $ac_try) 2>&5
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); }; }; then
30018 eval "$as_ac_var=yes"
30020 echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30023 eval "$as_ac_var=no"
30025 rm -f conftest.err conftest.$ac_objext \
30026 conftest$ac_exeext conftest.$ac_ext
30028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30030 if test `eval echo '${'$as_ac_var'}'` = yes; then
30031 cat >>confdefs.h <<_ACEOF
30032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30038 echo "$as_me:$LINENO: checking for working mmap" >&5
30039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30041 echo $ECHO_N "(cached) $ECHO_C" >&6
30043 if test "$cross_compiling" = yes; then
30044 ac_cv_func_mmap_fixed_mapped=no
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052 $ac_includes_default
30053 /* malloc might have been renamed as rpl_malloc. */
30056 /* Thanks to Mike Haertel and Jim Avera for this test.
30057 Here is a matrix of mmap possibilities:
30058 mmap private not fixed
30059 mmap private fixed at somewhere currently unmapped
30060 mmap private fixed at somewhere already mapped
30061 mmap shared not fixed
30062 mmap shared fixed at somewhere currently unmapped
30063 mmap shared fixed at somewhere already mapped
30064 For private mappings, we should verify that changes cannot be read()
30065 back from the file, nor mmap's back from the file at a different
30066 address. (There have been systems where private was not correctly
30067 implemented like the infamous i386 svr4.0, and systems where the
30068 VM page cache was not coherent with the file system buffer cache
30069 like early versions of FreeBSD and possibly contemporary NetBSD.)
30070 For shared mappings, we should conversely verify that changes get
30071 propagated back to all the places they're supposed to be.
30073 Grep wants private fixed already mapped.
30074 The main things grep needs to know about mmap are:
30075 * does it exist and is it safe to write into the mmap'd area
30076 * how to use it (BSD variants) */
30079 #include <sys/mman.h>
30081 #if !STDC_HEADERS && !HAVE_STDLIB_H
30085 /* This mess was copied from the GNU getpagesize.h. */
30086 #if !HAVE_GETPAGESIZE
30087 /* Assume that all systems that can run configure have sys/param.h. */
30088 # if !HAVE_SYS_PARAM_H
30089 # define HAVE_SYS_PARAM_H 1
30092 # ifdef _SC_PAGESIZE
30093 # define getpagesize() sysconf(_SC_PAGESIZE)
30094 # else /* no _SC_PAGESIZE */
30095 # if HAVE_SYS_PARAM_H
30096 # include <sys/param.h>
30097 # ifdef EXEC_PAGESIZE
30098 # define getpagesize() EXEC_PAGESIZE
30099 # else /* no EXEC_PAGESIZE */
30101 # define getpagesize() NBPG * CLSIZE
30104 # endif /* no CLSIZE */
30105 # else /* no NBPG */
30107 # define getpagesize() NBPC
30108 # else /* no NBPC */
30110 # define getpagesize() PAGESIZE
30111 # endif /* PAGESIZE */
30112 # endif /* no NBPC */
30113 # endif /* no NBPG */
30114 # endif /* no EXEC_PAGESIZE */
30115 # else /* no HAVE_SYS_PARAM_H */
30116 # define getpagesize() 8192 /* punt totally */
30117 # endif /* no HAVE_SYS_PARAM_H */
30118 # endif /* no _SC_PAGESIZE */
30120 #endif /* no HAVE_GETPAGESIZE */
30125 char *data, *data2, *data3;
30129 pagesize = getpagesize ();
30131 /* First, make a file with some known garbage in it. */
30132 data = (char *) malloc (pagesize);
30135 for (i = 0; i < pagesize; ++i)
30136 *(data + i) = rand ();
30138 fd = creat ("conftest.mmap", 0600);
30141 if (write (fd, data, pagesize) != pagesize)
30145 /* Next, try to mmap the file at a fixed address which already has
30146 something else allocated at it. If we can, also make sure that
30147 we see the same garbage. */
30148 fd = open ("conftest.mmap", O_RDWR);
30151 data2 = (char *) malloc (2 * pagesize);
30154 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30158 for (i = 0; i < pagesize; ++i)
30159 if (*(data + i) != *(data2 + i))
30162 /* Finally, make sure that changes to the mapped area do not
30163 percolate back to the file as seen by read(). (This is a bug on
30164 some variants of i386 svr4.0.) */
30165 for (i = 0; i < pagesize; ++i)
30166 *(data2 + i) = *(data2 + i) + 1;
30167 data3 = (char *) malloc (pagesize);
30170 if (read (fd, data3, pagesize) != pagesize)
30172 for (i = 0; i < pagesize; ++i)
30173 if (*(data + i) != *(data3 + i))
30179 rm -f conftest$ac_exeext
30180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30181 (eval $ac_link) 2>&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; }; then
30190 ac_cv_func_mmap_fixed_mapped=yes
30192 echo "$as_me: program exited with status $ac_status" >&5
30193 echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30196 ( exit $ac_status )
30197 ac_cv_func_mmap_fixed_mapped=no
30199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30202 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30203 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30204 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30206 cat >>confdefs.h <<\_ACEOF
30207 #define HAVE_MMAP 1
30211 rm -f conftest.mmap
30213 echo "$as_me:$LINENO: checking for mmap of files" >&5
30214 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30215 if test "${ac_cv_func_mmap_file+set}" = set; then
30216 echo $ECHO_N "(cached) $ECHO_C" >&6
30219 ac_cpp='$CPP $CPPFLAGS'
30220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30224 if test "$cross_compiling" = yes; then
30225 ac_cv_func_mmap_file=no
30227 cat >conftest.$ac_ext <<_ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h. */
30235 #include <sys/types.h>
30236 #include <sys/mman.h>
30244 fd = creat ("foo",0777);
30245 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30247 return (fd != (int) MAP_FAILED);
30252 rm -f conftest$ac_exeext
30253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30254 (eval $ac_link) 2>&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; }; then
30263 ac_cv_func_mmap_file=yes
30265 echo "$as_me: program exited with status $ac_status" >&5
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ( exit $ac_status )
30270 ac_cv_func_mmap_file=no
30272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30275 ac_cpp='$CPP $CPPFLAGS'
30276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30282 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30283 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30284 if test "$ac_cv_func_mmap_file" = yes; then
30286 cat >>confdefs.h <<\_ACEOF
30287 #define HAVE_MMAP_FILE
30294 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30295 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30296 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30297 echo $ECHO_N "(cached) $ECHO_C" >&6
30299 if test "$llvm_cv_os_type" = "Interix" ; then
30300 ac_cv_need_dev_zero_for_mmap=yes
30302 ac_cv_need_dev_zero_for_mmap=no
30306 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30307 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30308 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30310 cat >>confdefs.h <<\_ACEOF
30311 #define NEED_DEV_ZERO_FOR_MMAP 1
30315 echo "$as_me:$LINENO: checking for mprotect" >&5
30316 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30317 if test "${ac_cv_func_mprotect+set}" = set; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30326 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30328 #define mprotect innocuous_mprotect
30330 /* System header to define __stub macros and hopefully few prototypes,
30331 which can conflict with char mprotect (); below.
30332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30333 <limits.h> exists even on freestanding compilers. */
30336 # include <limits.h>
30338 # include <assert.h>
30343 /* Override any gcc2 internal prototype to avoid an error. */
30348 /* We use char because int might match the return type of a gcc2
30349 builtin and then its argument prototype would still apply. */
30351 /* The GNU C library defines this for functions which it implements
30352 to always fail with ENOSYS. Some functions are actually named
30353 something starting with __ and the normal name is an alias. */
30354 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30357 char (*f) () = mprotect;
30366 return f != mprotect;
30371 rm -f conftest.$ac_objext conftest$ac_exeext
30372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30373 (eval $ac_link) 2>conftest.er1
30375 grep -v '^ *+' conftest.er1 >conftest.err
30377 cat conftest.err >&5
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
30380 { ac_try='test -z "$ac_c_werror_flag"
30381 || test ! -s conftest.err'
30382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383 (eval $ac_try) 2>&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
30388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 (eval $ac_try) 2>&5
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; }; then
30393 ac_cv_func_mprotect=yes
30395 echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30398 ac_cv_func_mprotect=no
30400 rm -f conftest.err conftest.$ac_objext \
30401 conftest$ac_exeext conftest.$ac_ext
30403 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30404 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30405 if test $ac_cv_func_mprotect = yes; then
30408 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30409 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30410 { (exit 1); exit 1; }; }
30414 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30416 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30417 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30419 if test "$ac_cv_func_mmap_file" = "no"
30421 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30422 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30426 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30427 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30428 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30429 echo $ECHO_N "(cached) $ECHO_C" >&6
30431 llvm_cv_llvmgcc_sanity="no"
30432 if test -x "$LLVMGCC" ; then
30433 cp /dev/null conftest.c
30434 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30435 if test $? -eq 0 ; then
30436 llvm_cv_llvmgcc_sanity="yes"
30441 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30442 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30444 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30445 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30446 LLVMCC1=$llvmcc1path
30448 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30449 LLVMCC1PLUS=$llvmcc1pluspath
30451 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30452 LLVMGCCDIR=$llvmgccdir
30456 SHLIBEXT=$libltdl_cv_shlibext
30459 # Translate the various configuration directories and other basic
30460 # information into substitutions that will end up in Makefile.config.in
30461 # that these configured values can be used by the makefiles
30462 eval LLVM_PREFIX="${prefix}";
30463 eval LLVM_BINDIR="${prefix}/bin";
30464 eval LLVM_LIBDIR="${prefix}/lib";
30465 eval LLVM_DATADIR="${prefix}/share/llvm";
30466 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30467 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30468 eval LLVM_INCLUDEDIR="${prefix}/include";
30469 eval LLVM_INFODIR="${prefix}/info";
30470 eval LLVM_MANDIR="${prefix}/man";
30471 LLVM_CONFIGTIME=`date`
30483 # Place the various directores into the config.h file as #defines so that we
30484 # can know about the installation paths within LLVM.
30486 cat >>confdefs.h <<_ACEOF
30487 #define LLVM_PREFIX "$LLVM_PREFIX"
30491 cat >>confdefs.h <<_ACEOF
30492 #define LLVM_BINDIR "$LLVM_BINDIR"
30496 cat >>confdefs.h <<_ACEOF
30497 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30501 cat >>confdefs.h <<_ACEOF
30502 #define LLVM_DATADIR "$LLVM_DATADIR"
30506 cat >>confdefs.h <<_ACEOF
30507 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30511 cat >>confdefs.h <<_ACEOF
30512 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30516 cat >>confdefs.h <<_ACEOF
30517 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30521 cat >>confdefs.h <<_ACEOF
30522 #define LLVM_INFODIR "$LLVM_INFODIR"
30526 cat >>confdefs.h <<_ACEOF
30527 #define LLVM_MANDIR "$LLVM_MANDIR"
30531 cat >>confdefs.h <<_ACEOF
30532 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30537 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30539 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30541 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30543 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30545 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30548 ac_config_files="$ac_config_files Makefile.config"
30551 ac_config_files="$ac_config_files docs/doxygen.cfg"
30554 ac_config_commands="$ac_config_commands setup"
30556 ac_config_commands="$ac_config_commands Makefile"
30559 ac_config_commands="$ac_config_commands Makefile.common"
30562 ac_config_commands="$ac_config_commands examples/Makefile"
30565 ac_config_commands="$ac_config_commands lib/Makefile"
30568 ac_config_commands="$ac_config_commands runtime/Makefile"
30571 ac_config_commands="$ac_config_commands test/Makefile"
30574 ac_config_commands="$ac_config_commands test/Makefile.tests"
30577 ac_config_commands="$ac_config_commands tools/Makefile"
30580 ac_config_commands="$ac_config_commands utils/Makefile"
30583 ac_config_commands="$ac_config_commands projects/Makefile"
30587 cat >confcache <<\_ACEOF
30588 # This file is a shell script that caches the results of configure
30589 # tests run on this system so they can be shared between configure
30590 # scripts and configure runs, see configure's option --config-cache.
30591 # It is not useful on other systems. If it contains results you don't
30592 # want to keep, you may remove or edit it.
30594 # config.status only pays attention to the cache file if you give it
30595 # the --recheck option to rerun configure.
30597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30599 # following values.
30603 # The following way of writing the cache mishandles newlines in values,
30604 # but we know of no workaround that is simple, portable, and efficient.
30605 # So, don't put newlines in cache variables' values.
30606 # Ultrix sh set writes to stderr and can't be redirected directly,
30607 # and sets the high bit in the cache file unless we assign to the vars.
30610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30612 # `set' does not quote correctly, so add quotes (double-quote
30613 # substitution turns \\\\ into \\, and sed turns \\ into \).
30616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30619 # `set' quotes correctly as required by POSIX, so do not add quotes.
30621 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30630 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30632 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30633 if test -w $cache_file; then
30634 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30635 cat confcache >$cache_file
30637 echo "not updating unwritable cache $cache_file"
30642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30643 # Let make expand exec_prefix.
30644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30648 # trailing colons and then remove the whole line if VPATH becomes empty
30649 # (actually we leave an empty line to preserve line numbers).
30650 if test "x$srcdir" = x.; then
30651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30652 s/:*\$(srcdir):*/:/;
30653 s/:*\${srcdir}:*/:/;
30655 s/^\([^=]*=[ ]*\):*/\1/;
30661 DEFS=-DHAVE_CONFIG_H
30665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30666 # 1. Remove the extension, and $U if already installed.
30667 ac_i=`echo "$ac_i" |
30668 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30670 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30671 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30673 LIBOBJS=$ac_libobjs
30675 LTLIBOBJS=$ac_ltlibobjs
30678 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30679 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30680 Usually this means the macro was only invoked conditionally." >&5
30681 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30682 Usually this means the macro was only invoked conditionally." >&2;}
30683 { (exit 1); exit 1; }; }
30685 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30686 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30687 Usually this means the macro was only invoked conditionally." >&5
30688 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30689 Usually this means the macro was only invoked conditionally." >&2;}
30690 { (exit 1); exit 1; }; }
30693 : ${CONFIG_STATUS=./config.status}
30694 ac_clean_files_save=$ac_clean_files
30695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30698 cat >$CONFIG_STATUS <<_ACEOF
30700 # Generated by $as_me.
30701 # Run this file to recreate the current configuration.
30702 # Compiler output produced by configure, useful for debugging
30703 # configure, is in config.log if it exists.
30706 ac_cs_recheck=false
30708 SHELL=\${CONFIG_SHELL-$SHELL}
30711 cat >>$CONFIG_STATUS <<\_ACEOF
30712 ## --------------------- ##
30713 ## M4sh Initialization. ##
30714 ## --------------------- ##
30716 # Be Bourne compatible
30717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30720 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30721 # is contrary to our usage. Disable this feature.
30722 alias -g '${1+"$@"}'='"$@"'
30723 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30726 DUALCASE=1; export DUALCASE # for MKS sh
30728 # Support unset when possible.
30729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30736 # Work around bugs in pre-3.0 UWIN ksh.
30737 $as_unset ENV MAIL MAILPATH
30744 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30745 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30746 LC_TELEPHONE LC_TIME
30748 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30749 eval $as_var=C; export $as_var
30755 # Required to use basename.
30756 if expr a : '\(a\)' >/dev/null 2>&1; then
30762 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30763 as_basename=basename
30769 # Name of the executable.
30770 as_me=`$as_basename "$0" ||
30771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30772 X"$0" : 'X\(//\)$' \| \
30773 X"$0" : 'X\(/\)$' \| \
30774 . : '\(.\)' 2>/dev/null ||
30776 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30777 /^X\/\(\/\/\)$/{ s//\1/; q; }
30778 /^X\/\(\/\).*/{ s//\1/; q; }
30782 # PATH needs CR, and LINENO needs CR and PATH.
30783 # Avoid depending upon Character Ranges.
30784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30787 as_cr_digits='0123456789'
30788 as_cr_alnum=$as_cr_Letters$as_cr_digits
30790 # The user is always right.
30791 if test "${PATH_SEPARATOR+set}" != set; then
30792 echo "#! /bin/sh" >conf$$.sh
30793 echo "exit 0" >>conf$$.sh
30795 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30804 as_lineno_1=$LINENO
30805 as_lineno_2=$LINENO
30806 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30807 test "x$as_lineno_1" != "x$as_lineno_2" &&
30808 test "x$as_lineno_3" = "x$as_lineno_2" || {
30809 # Find who we are. Look in the path if we contain no path at all
30812 *[\\/]* ) as_myself=$0 ;;
30813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30814 for as_dir in $PATH
30817 test -z "$as_dir" && as_dir=.
30818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30823 # We did not find ourselves, most probably we were run as `sh COMMAND'
30824 # in which case we are not to be found in the path.
30825 if test "x$as_myself" = x; then
30828 if test ! -f "$as_myself"; then
30829 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30830 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30831 { (exit 1); exit 1; }; }
30833 case $CONFIG_SHELL in
30835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30836 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30839 test -z "$as_dir" && as_dir=.
30840 for as_base in sh bash ksh sh5; do
30843 if ("$as_dir/$as_base" -c '
30844 as_lineno_1=$LINENO
30845 as_lineno_2=$LINENO
30846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30847 test "x$as_lineno_1" != "x$as_lineno_2" &&
30848 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30849 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30850 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30851 CONFIG_SHELL=$as_dir/$as_base
30852 export CONFIG_SHELL
30853 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30861 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30862 # uniformly replaced by the line number. The first 'sed' inserts a
30863 # line-number line before each line; the second 'sed' does the real
30864 # work. The second script uses 'N' to pair each line-number line
30865 # with the numbered line, and appends trailing '-' during
30866 # substitution so that $LINENO is not a special case at line end.
30867 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30868 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30869 sed '=' <$as_myself |
30874 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30877 s,^['$as_cr_digits']*\n,,
30878 ' >$as_me.lineno &&
30879 chmod +x $as_me.lineno ||
30880 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30881 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30882 { (exit 1); exit 1; }; }
30884 # Don't try to exec as it changes $[0], causing all sort of problems
30885 # (the dirname of $[0] is not the place where we might find the
30886 # original and so on. Autoconf is especially sensible to this).
30888 # Exit status is that of the last command.
30893 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30894 *c*,-n*) ECHO_N= ECHO_C='
30896 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30897 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30900 if expr a : '\(a\)' >/dev/null 2>&1; then
30906 rm -f conf$$ conf$$.exe conf$$.file
30908 if ln -s conf$$.file conf$$ 2>/dev/null; then
30909 # We could just check for DJGPP; but this test a) works b) is more generic
30910 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30911 if test -f conf$$.exe; then
30912 # Don't use ln at all; we don't have any links
30917 elif ln conf$$.file conf$$ 2>/dev/null; then
30922 rm -f conf$$ conf$$.exe conf$$.file
30924 if mkdir -p . 2>/dev/null; then
30927 test -d ./-p && rmdir ./-p
30931 as_executable_p="test -f"
30933 # Sed expression to map a string onto a valid CPP name.
30934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30936 # Sed expression to map a string onto a valid variable name.
30937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30941 # We need space, tab and new line, in precisely that order.
30951 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30952 # report actual input values of CONFIG_FILES etc. instead of their
30953 # values after options handling. Logging --version etc. is OK.
30957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30958 ## Running $as_me. ##
30963 This file was extended by llvm $as_me 1.6cvs, which was
30964 generated by GNU Autoconf 2.59. Invocation command line was
30966 CONFIG_FILES = $CONFIG_FILES
30967 CONFIG_HEADERS = $CONFIG_HEADERS
30968 CONFIG_LINKS = $CONFIG_LINKS
30969 CONFIG_COMMANDS = $CONFIG_COMMANDS
30973 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30977 # Files that config.status was made for.
30978 if test -n "$ac_config_files"; then
30979 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30982 if test -n "$ac_config_headers"; then
30983 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30986 if test -n "$ac_config_links"; then
30987 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30990 if test -n "$ac_config_commands"; then
30991 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30994 cat >>$CONFIG_STATUS <<\_ACEOF
30997 \`$as_me' instantiates files from templates according to the
30998 current configuration.
31000 Usage: $0 [OPTIONS] [FILE]...
31002 -h, --help print this help, then exit
31003 -V, --version print version number, then exit
31004 -q, --quiet do not print progress messages
31005 -d, --debug don't remove temporary files
31006 --recheck update $as_me by reconfiguring in the same conditions
31007 --file=FILE[:TEMPLATE]
31008 instantiate the configuration file FILE
31009 --header=FILE[:TEMPLATE]
31010 instantiate the configuration header FILE
31012 Configuration files:
31015 Configuration headers:
31018 Configuration commands:
31021 Report bugs to <bug-autoconf@gnu.org>."
31024 cat >>$CONFIG_STATUS <<_ACEOF
31026 llvm config.status 1.6cvs
31027 configured by $0, generated by GNU Autoconf 2.59,
31028 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31030 Copyright (C) 2003 Free Software Foundation, Inc.
31031 This config.status script is free software; the Free Software Foundation
31032 gives unlimited permission to copy, distribute and modify it."
31037 cat >>$CONFIG_STATUS <<\_ACEOF
31038 # If no file are specified by the user, then we need to provide default
31039 # value. By we need to know if files were specified by the user.
31045 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31046 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31054 *) # This is not an option, so the user has probably given explicit
31057 ac_need_defaults=false;;
31061 # Handling of the options.
31063 cat >>$CONFIG_STATUS <<\_ACEOF
31064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31066 --version | --vers* | -V )
31067 echo "$ac_cs_version"; exit 0 ;;
31069 # Conflict between --help and --header
31070 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31071 Try \`$0 --help' for more information." >&5
31072 echo "$as_me: error: ambiguous option: $1
31073 Try \`$0 --help' for more information." >&2;}
31074 { (exit 1); exit 1; }; };;
31075 --help | --hel | -h )
31076 echo "$ac_cs_usage"; exit 0 ;;
31077 --debug | --d* | -d )
31079 --file | --fil | --fi | --f )
31081 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31082 ac_need_defaults=false;;
31083 --header | --heade | --head | --hea )
31085 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31086 ac_need_defaults=false;;
31087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31088 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31091 # This is an error.
31092 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31093 Try \`$0 --help' for more information." >&5
31094 echo "$as_me: error: unrecognized option: $1
31095 Try \`$0 --help' for more information." >&2;}
31096 { (exit 1); exit 1; }; } ;;
31098 *) ac_config_targets="$ac_config_targets $1" ;;
31104 ac_configure_extra_args=
31106 if $ac_cs_silent; then
31108 ac_configure_extra_args="$ac_configure_extra_args --silent"
31112 cat >>$CONFIG_STATUS <<_ACEOF
31113 if \$ac_cs_recheck; then
31114 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31115 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31120 cat >>$CONFIG_STATUS <<_ACEOF
31122 # INIT-COMMANDS section.
31125 llvm_src="${srcdir}"
31131 cat >>$CONFIG_STATUS <<\_ACEOF
31132 for ac_config_target in $ac_config_targets
31134 case "$ac_config_target" in
31135 # Handling of arguments.
31136 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31137 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31138 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31139 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31140 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31141 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31142 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31143 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31144 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31145 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31146 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31147 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31148 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31149 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31150 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31151 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31152 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31153 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31155 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31156 { (exit 1); exit 1; }; };;
31160 # If the user did not use the arguments to specify the items to instantiate,
31161 # then the envvar interface is used. Set only those that are not.
31162 # We use the long form for the default assignment because of an extremely
31163 # bizarre bug on SunOS 4.1.3.
31164 if $ac_need_defaults; then
31165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31170 # Have a temporary directory for convenience. Make it in the build tree
31171 # simply because there is no reason to put it here, and in addition,
31172 # creating and moving files from /tmp can sometimes cause problems.
31173 # Create a temporary directory, and hook for its removal unless debugging.
31176 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31177 trap '{ (exit 1); exit 1; }' 1 2 13 15
31180 # Create a (secure) tmp directory for tmp files.
31183 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31184 test -n "$tmp" && test -d "$tmp"
31187 tmp=./confstat$$-$RANDOM
31188 (umask 077 && mkdir $tmp)
31191 echo "$me: cannot create a temporary directory in ." >&2
31192 { (exit 1); exit 1; }
31197 cat >>$CONFIG_STATUS <<_ACEOF
31200 # CONFIG_FILES section.
31203 # No need to generate the scripts if there are no CONFIG_FILES.
31204 # This happens for instance when ./config.status config.h
31205 if test -n "\$CONFIG_FILES"; then
31206 # Protect against being on the right side of a sed subst in config.status.
31207 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31208 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31209 s,@SHELL@,$SHELL,;t t
31210 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31211 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31212 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31213 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31214 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31215 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31216 s,@exec_prefix@,$exec_prefix,;t t
31217 s,@prefix@,$prefix,;t t
31218 s,@program_transform_name@,$program_transform_name,;t t
31219 s,@bindir@,$bindir,;t t
31220 s,@sbindir@,$sbindir,;t t
31221 s,@libexecdir@,$libexecdir,;t t
31222 s,@datadir@,$datadir,;t t
31223 s,@sysconfdir@,$sysconfdir,;t t
31224 s,@sharedstatedir@,$sharedstatedir,;t t
31225 s,@localstatedir@,$localstatedir,;t t
31226 s,@libdir@,$libdir,;t t
31227 s,@includedir@,$includedir,;t t
31228 s,@oldincludedir@,$oldincludedir,;t t
31229 s,@infodir@,$infodir,;t t
31230 s,@mandir@,$mandir,;t t
31231 s,@build_alias@,$build_alias,;t t
31232 s,@host_alias@,$host_alias,;t t
31233 s,@target_alias@,$target_alias,;t t
31234 s,@DEFS@,$DEFS,;t t
31235 s,@ECHO_C@,$ECHO_C,;t t
31236 s,@ECHO_N@,$ECHO_N,;t t
31237 s,@ECHO_T@,$ECHO_T,;t t
31238 s,@LIBS@,$LIBS,;t t
31239 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31240 s,@subdirs@,$subdirs,;t t
31241 s,@build@,$build,;t t
31242 s,@build_cpu@,$build_cpu,;t t
31243 s,@build_vendor@,$build_vendor,;t t
31244 s,@build_os@,$build_os,;t t
31245 s,@host@,$host,;t t
31246 s,@host_cpu@,$host_cpu,;t t
31247 s,@host_vendor@,$host_vendor,;t t
31248 s,@host_os@,$host_os,;t t
31249 s,@target@,$target,;t t
31250 s,@target_cpu@,$target_cpu,;t t
31251 s,@target_vendor@,$target_vendor,;t t
31252 s,@target_os@,$target_os,;t t
31254 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31255 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31256 s,@ARCH@,$ARCH,;t t
31257 s,@ENDIAN@,$ENDIAN,;t t
31259 s,@CFLAGS@,$CFLAGS,;t t
31260 s,@LDFLAGS@,$LDFLAGS,;t t
31261 s,@CPPFLAGS@,$CPPFLAGS,;t t
31262 s,@ac_ct_CC@,$ac_ct_CC,;t t
31263 s,@EXEEXT@,$EXEEXT,;t t
31264 s,@OBJEXT@,$OBJEXT,;t t
31265 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31267 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31268 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31271 s,@CXXFLAGS@,$CXXFLAGS,;t t
31272 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31274 s,@LEXLIB@,$LEXLIB,;t t
31275 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31276 s,@FLEX@,$FLEX,;t t
31277 s,@YACC@,$YACC,;t t
31278 s,@BISON@,$BISON,;t t
31279 s,@ifGNUmake@,$ifGNUmake,;t t
31280 s,@LN_S@,$LN_S,;t t
31283 s,@DATE@,$DATE,;t t
31284 s,@FIND@,$FIND,;t t
31285 s,@GREP@,$GREP,;t t
31286 s,@MKDIR@,$MKDIR,;t t
31288 s,@RANLIB@,$RANLIB,;t t
31289 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31293 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31294 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31295 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31296 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31297 s,@BZIP2@,$BZIP2,;t t
31299 s,@DOXYGEN@,$DOXYGEN,;t t
31300 s,@ETAGS@,$ETAGS,;t t
31301 s,@GROFF@,$GROFF,;t t
31302 s,@GZIP@,$GZIP,;t t
31303 s,@POD2HTML@,$POD2HTML,;t t
31304 s,@POD2MAN@,$POD2MAN,;t t
31305 s,@RUNTEST@,$RUNTEST,;t t
31306 s,@TCLSH@,$TCLSH,;t t
31308 s,@EGREP@,$EGREP,;t t
31309 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31310 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31311 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31312 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31313 s,@LIBADD_DL@,$LIBADD_DL,;t t
31314 s,@ECHO@,$ECHO,;t t
31316 s,@ac_ct_AR@,$ac_ct_AR,;t t
31317 s,@STRIP@,$STRIP,;t t
31318 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31319 s,@CXXCPP@,$CXXCPP,;t t
31321 s,@FFLAGS@,$FFLAGS,;t t
31322 s,@ac_ct_F77@,$ac_ct_F77,;t t
31323 s,@LIBTOOL@,$LIBTOOL,;t t
31324 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31325 s,@LLVMGCC@,$LLVMGCC,;t t
31326 s,@LLVMGXX@,$LLVMGXX,;t t
31327 s,@ALLOCA@,$ALLOCA,;t t
31328 s,@MMAP_FILE@,$MMAP_FILE,;t t
31329 s,@LLVMCC1@,$LLVMCC1,;t t
31330 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31331 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31332 s,@SHLIBEXT@,$SHLIBEXT,;t t
31333 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31334 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31335 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31336 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31337 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31338 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31339 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31340 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31341 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31342 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31343 s,@LIBOBJS@,$LIBOBJS,;t t
31344 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31349 cat >>$CONFIG_STATUS <<\_ACEOF
31350 # Split the substitutions into bite-sized pieces for seds with
31351 # small command number limits, like on Digital OSF/1 and HP-UX.
31352 ac_max_sed_lines=48
31353 ac_sed_frag=1 # Number of current file.
31354 ac_beg=1 # First line for current file.
31355 ac_end=$ac_max_sed_lines # Line after last line for current file.
31358 while $ac_more_lines; do
31359 if test $ac_beg -gt 1; then
31360 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31362 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31364 if test ! -s $tmp/subs.frag; then
31365 ac_more_lines=false
31367 # The purpose of the label and of the branching condition is to
31368 # speed up the sed processing (if there are no `@' at all, there
31369 # is no need to browse any of the substitutions).
31370 # These are the two extra sed commands mentioned above.
31372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31373 if test -z "$ac_sed_cmds"; then
31374 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31376 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31378 ac_sed_frag=`expr $ac_sed_frag + 1`
31380 ac_end=`expr $ac_end + $ac_max_sed_lines`
31383 if test -z "$ac_sed_cmds"; then
31386 fi # test -n "$CONFIG_FILES"
31389 cat >>$CONFIG_STATUS <<\_ACEOF
31390 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31393 - | *:- | *:-:* ) # input from stdin
31395 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31397 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31399 * ) ac_file_in=$ac_file.in ;;
31402 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31405 X"$ac_file" : 'X\(//\)[^/]' \| \
31406 X"$ac_file" : 'X\(//\)$' \| \
31407 X"$ac_file" : 'X\(/\)' \| \
31408 . : '\(.\)' 2>/dev/null ||
31410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31412 /^X\(\/\/\)$/{ s//\1/; q; }
31413 /^X\(\/\).*/{ s//\1/; q; }
31415 { if $as_mkdir_p; then
31420 while test ! -d "$as_dir"; do
31421 as_dirs="$as_dir $as_dirs"
31422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31424 X"$as_dir" : 'X\(//\)[^/]' \| \
31425 X"$as_dir" : 'X\(//\)$' \| \
31426 X"$as_dir" : 'X\(/\)' \| \
31427 . : '\(.\)' 2>/dev/null ||
31429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31431 /^X\(\/\/\)$/{ s//\1/; q; }
31432 /^X\(\/\).*/{ s//\1/; q; }
31435 test ! -n "$as_dirs" || mkdir $as_dirs
31436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31438 { (exit 1); exit 1; }; }; }
31442 if test "$ac_dir" != .; then
31443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31444 # A "../" for each directory in $ac_dir_suffix.
31445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31447 ac_dir_suffix= ac_top_builddir=
31451 .) # No --srcdir option. We are building in place.
31453 if test -z "$ac_top_builddir"; then
31456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31458 [\\/]* | ?:[\\/]* ) # Absolute path.
31459 ac_srcdir=$srcdir$ac_dir_suffix;
31460 ac_top_srcdir=$srcdir ;;
31461 *) # Relative path.
31462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31466 # Do not use `cd foo && pwd` to compute absolute paths, because
31467 # the directories may not exist.
31469 .) ac_abs_builddir="$ac_dir";;
31472 .) ac_abs_builddir=`pwd`;;
31473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31477 case $ac_abs_builddir in
31478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31480 case ${ac_top_builddir}. in
31481 .) ac_abs_top_builddir=$ac_abs_builddir;;
31482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31486 case $ac_abs_builddir in
31487 .) ac_abs_srcdir=$ac_srcdir;;
31490 .) ac_abs_srcdir=$ac_abs_builddir;;
31491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31495 case $ac_abs_builddir in
31496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31498 case $ac_top_srcdir in
31499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31508 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31511 if test x"$ac_file" != x-; then
31512 { echo "$as_me:$LINENO: creating $ac_file" >&5
31513 echo "$as_me: creating $ac_file" >&6;}
31516 # Let's still pretend it is `configure' which instantiates (i.e., don't
31517 # use $as_me), people would be surprised to read:
31518 # /* config.h. Generated by config.status. */
31519 if test x"$ac_file" = x-; then
31522 configure_input="$ac_file. "
31524 configure_input=$configure_input"Generated from `echo $ac_file_in |
31525 sed 's,.*/,,'` by configure."
31527 # First look for the input files in the build tree, otherwise in the
31529 ac_file_inputs=`IFS=:
31530 for f in $ac_file_in; do
31532 -) echo $tmp/stdin ;;
31534 # Absolute (can't be DOS-style, as IFS=:)
31535 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31536 echo "$as_me: error: cannot find input file: $f" >&2;}
31537 { (exit 1); exit 1; }; }
31540 if test -f "$f"; then
31543 elif test -f "$srcdir/$f"; then
31548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31549 echo "$as_me: error: cannot find input file: $f" >&2;}
31550 { (exit 1); exit 1; }; }
31553 done` || { (exit 1); exit 1; }
31555 cat >>$CONFIG_STATUS <<_ACEOF
31559 cat >>$CONFIG_STATUS <<\_ACEOF
31561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31562 s,@configure_input@,$configure_input,;t t
31563 s,@srcdir@,$ac_srcdir,;t t
31564 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31565 s,@top_srcdir@,$ac_top_srcdir,;t t
31566 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31567 s,@builddir@,$ac_builddir,;t t
31568 s,@abs_builddir@,$ac_abs_builddir,;t t
31569 s,@top_builddir@,$ac_top_builddir,;t t
31570 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31571 s,@INSTALL@,$ac_INSTALL,;t t
31572 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31574 if test x"$ac_file" != x-; then
31575 mv $tmp/out $ac_file
31583 cat >>$CONFIG_STATUS <<\_ACEOF
31586 # CONFIG_HEADER section.
31589 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31590 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31592 # ac_d sets the value in "#define NAME VALUE" lines.
31593 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31594 ac_dB='[ ].*$,\1#\2'
31597 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31598 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31599 ac_uB='$,\1#\2define\3'
31603 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31606 - | *:- | *:-:* ) # input from stdin
31608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31612 * ) ac_file_in=$ac_file.in ;;
31615 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31616 echo "$as_me: creating $ac_file" >&6;}
31618 # First look for the input files in the build tree, otherwise in the
31620 ac_file_inputs=`IFS=:
31621 for f in $ac_file_in; do
31623 -) echo $tmp/stdin ;;
31625 # Absolute (can't be DOS-style, as IFS=:)
31626 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31627 echo "$as_me: error: cannot find input file: $f" >&2;}
31628 { (exit 1); exit 1; }; }
31629 # Do quote $f, to prevent DOS paths from being IFS'd.
31632 if test -f "$f"; then
31635 elif test -f "$srcdir/$f"; then
31640 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31641 echo "$as_me: error: cannot find input file: $f" >&2;}
31642 { (exit 1); exit 1; }; }
31645 done` || { (exit 1); exit 1; }
31646 # Remove the trailing spaces.
31647 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31651 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31652 # `conftest.undefs', that substitutes the proper values into
31653 # config.h.in to produce config.h. The first handles `#define'
31654 # templates, and the second `#undef' templates.
31655 # And first: Protect against being on the right side of a sed subst in
31656 # config.status. Protect against being in an unquoted here document
31657 # in config.status.
31658 rm -f conftest.defines conftest.undefs
31659 # Using a here document instead of a string reduces the quoting nightmare.
31660 # Putting comments in sed scripts is not portable.
31662 # `end' is used to avoid that the second main sed command (meant for
31663 # 0-ary CPP macros) applies to n-ary macro definitions.
31664 # See the Autoconf documentation for `clear'.
31665 cat >confdef2sed.sed <<\_ACEOF
31670 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31672 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31675 # If some macros were called several times there might be several times
31676 # the same #defines, which is useless. Nevertheless, we may not want to
31677 # sort them, since we want the *last* AC-DEFINE to be honored.
31678 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31679 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31680 rm -f confdef2sed.sed
31682 # This sed command replaces #undef with comments. This is necessary, for
31683 # example, in the case of _POSIX_SOURCE, which is predefined and required
31684 # on some systems where configure will not decide to define it.
31685 cat >>conftest.undefs <<\_ACEOF
31686 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31689 # Break up conftest.defines because some shells have a limit on the size
31690 # of here documents, and old seds have small limits too (100 cmds).
31691 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31692 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31693 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31694 echo ' :' >>$CONFIG_STATUS
31695 rm -f conftest.tail
31696 while grep . conftest.defines >/dev/null
31698 # Write a limited-size here document to $tmp/defines.sed.
31699 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31700 # Speed up: don't consider the non `#define' lines.
31701 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31702 # Work around the forget-to-reset-the-flag bug.
31703 echo 't clr' >>$CONFIG_STATUS
31704 echo ': clr' >>$CONFIG_STATUS
31705 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31707 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31709 mv $tmp/out $tmp/in
31711 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31712 rm -f conftest.defines
31713 mv conftest.tail conftest.defines
31715 rm -f conftest.defines
31716 echo ' fi # grep' >>$CONFIG_STATUS
31717 echo >>$CONFIG_STATUS
31719 # Break up conftest.undefs because some shells have a limit on the size
31720 # of here documents, and old seds have small limits too (100 cmds).
31721 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31722 rm -f conftest.tail
31723 while grep . conftest.undefs >/dev/null
31725 # Write a limited-size here document to $tmp/undefs.sed.
31726 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31727 # Speed up: don't consider the non `#undef'
31728 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31729 # Work around the forget-to-reset-the-flag bug.
31730 echo 't clr' >>$CONFIG_STATUS
31731 echo ': clr' >>$CONFIG_STATUS
31732 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31734 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31736 mv $tmp/out $tmp/in
31738 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31739 rm -f conftest.undefs
31740 mv conftest.tail conftest.undefs
31742 rm -f conftest.undefs
31744 cat >>$CONFIG_STATUS <<\_ACEOF
31745 # Let's still pretend it is `configure' which instantiates (i.e., don't
31746 # use $as_me), people would be surprised to read:
31747 # /* config.h. Generated by config.status. */
31748 if test x"$ac_file" = x-; then
31749 echo "/* Generated by configure. */" >$tmp/config.h
31751 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31753 cat $tmp/in >>$tmp/config.h
31755 if test x"$ac_file" != x-; then
31756 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31757 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31758 echo "$as_me: $ac_file is unchanged" >&6;}
31760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31762 X"$ac_file" : 'X\(//\)[^/]' \| \
31763 X"$ac_file" : 'X\(//\)$' \| \
31764 X"$ac_file" : 'X\(/\)' \| \
31765 . : '\(.\)' 2>/dev/null ||
31767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31769 /^X\(\/\/\)$/{ s//\1/; q; }
31770 /^X\(\/\).*/{ s//\1/; q; }
31772 { if $as_mkdir_p; then
31777 while test ! -d "$as_dir"; do
31778 as_dirs="$as_dir $as_dirs"
31779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31781 X"$as_dir" : 'X\(//\)[^/]' \| \
31782 X"$as_dir" : 'X\(//\)$' \| \
31783 X"$as_dir" : 'X\(/\)' \| \
31784 . : '\(.\)' 2>/dev/null ||
31786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31788 /^X\(\/\/\)$/{ s//\1/; q; }
31789 /^X\(\/\).*/{ s//\1/; q; }
31792 test ! -n "$as_dirs" || mkdir $as_dirs
31793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31795 { (exit 1); exit 1; }; }; }
31798 mv $tmp/config.h $ac_file
31802 rm -f $tmp/config.h
31806 cat >>$CONFIG_STATUS <<\_ACEOF
31809 # CONFIG_COMMANDS section.
31811 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31812 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31813 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31814 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31816 X"$ac_dest" : 'X\(//\)[^/]' \| \
31817 X"$ac_dest" : 'X\(//\)$' \| \
31818 X"$ac_dest" : 'X\(/\)' \| \
31819 . : '\(.\)' 2>/dev/null ||
31821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31823 /^X\(\/\/\)$/{ s//\1/; q; }
31824 /^X\(\/\).*/{ s//\1/; q; }
31826 { if $as_mkdir_p; then
31831 while test ! -d "$as_dir"; do
31832 as_dirs="$as_dir $as_dirs"
31833 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31835 X"$as_dir" : 'X\(//\)[^/]' \| \
31836 X"$as_dir" : 'X\(//\)$' \| \
31837 X"$as_dir" : 'X\(/\)' \| \
31838 . : '\(.\)' 2>/dev/null ||
31840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31842 /^X\(\/\/\)$/{ s//\1/; q; }
31843 /^X\(\/\).*/{ s//\1/; q; }
31846 test ! -n "$as_dirs" || mkdir $as_dirs
31847 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31849 { (exit 1); exit 1; }; }; }
31853 if test "$ac_dir" != .; then
31854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31855 # A "../" for each directory in $ac_dir_suffix.
31856 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31858 ac_dir_suffix= ac_top_builddir=
31862 .) # No --srcdir option. We are building in place.
31864 if test -z "$ac_top_builddir"; then
31867 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31869 [\\/]* | ?:[\\/]* ) # Absolute path.
31870 ac_srcdir=$srcdir$ac_dir_suffix;
31871 ac_top_srcdir=$srcdir ;;
31872 *) # Relative path.
31873 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31874 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31877 # Do not use `cd foo && pwd` to compute absolute paths, because
31878 # the directories may not exist.
31880 .) ac_abs_builddir="$ac_dir";;
31883 .) ac_abs_builddir=`pwd`;;
31884 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31885 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31888 case $ac_abs_builddir in
31889 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31891 case ${ac_top_builddir}. in
31892 .) ac_abs_top_builddir=$ac_abs_builddir;;
31893 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31894 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31897 case $ac_abs_builddir in
31898 .) ac_abs_srcdir=$ac_srcdir;;
31901 .) ac_abs_srcdir=$ac_abs_builddir;;
31902 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31903 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31906 case $ac_abs_builddir in
31907 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31909 case $ac_top_srcdir in
31910 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31911 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31912 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31917 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31918 echo "$as_me: executing $ac_dest commands" >&6;}
31920 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31921 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31922 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31923 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31924 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31925 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31926 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31927 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31928 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31929 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31930 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31931 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31932 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31933 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31934 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31935 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31936 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31937 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31938 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31939 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31944 cat >>$CONFIG_STATUS <<\_ACEOF
31946 { (exit 0); exit 0; }
31948 chmod +x $CONFIG_STATUS
31949 ac_clean_files=$ac_clean_files_save
31952 # configure is writing to config.log, and then calls config.status.
31953 # config.status does its own redirection, appending to config.log.
31954 # Unfortunately, on DOS this fails, as config.log is still kept open
31955 # by configure, so config.status won't be able to write to it; its
31956 # output is simply discarded. So we exec the FD to /dev/null,
31957 # effectively closing config.log, so it can be properly (re)opened and
31958 # appended to by config.status. When coming back to configure, we
31959 # need to make the FD available again.
31960 if test "$no_create" != yes; then
31962 ac_config_status_args=
31963 test "$silent" = yes &&
31964 ac_config_status_args="$ac_config_status_args --quiet"
31966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31969 # would make configure fail if this is the last instruction.
31970 $ac_cs_success || { (exit 1); exit 1; }
31974 # CONFIG_SUBDIRS section.
31976 if test "$no_recursion" != yes; then
31978 # Remove --cache-file and --srcdir arguments so they do not pile up.
31979 ac_sub_configure_args=
31981 for ac_arg in $ac_configure_args; do
31982 if test -n "$ac_prev"; then
31987 -cache-file | --cache-file | --cache-fil | --cache-fi \
31988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31989 ac_prev=cache_file ;;
31990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31994 --config-cache | -C)
31996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32004 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32008 # Always prepend --prefix to ensure using the same prefix
32009 # in subdir configurations.
32010 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32013 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32015 # Do not complain, so a configure script can configure whichever
32016 # parts of a large source tree are present.
32017 test -d $srcdir/$ac_dir || continue
32019 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32020 echo "$as_me: configuring in $ac_dir" >&6;}
32021 { if $as_mkdir_p; then
32026 while test ! -d "$as_dir"; do
32027 as_dirs="$as_dir $as_dirs"
32028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32030 X"$as_dir" : 'X\(//\)[^/]' \| \
32031 X"$as_dir" : 'X\(//\)$' \| \
32032 X"$as_dir" : 'X\(/\)' \| \
32033 . : '\(.\)' 2>/dev/null ||
32035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32037 /^X\(\/\/\)$/{ s//\1/; q; }
32038 /^X\(\/\).*/{ s//\1/; q; }
32041 test ! -n "$as_dirs" || mkdir $as_dirs
32042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32044 { (exit 1); exit 1; }; }; }
32048 if test "$ac_dir" != .; then
32049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32050 # A "../" for each directory in $ac_dir_suffix.
32051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32053 ac_dir_suffix= ac_top_builddir=
32057 .) # No --srcdir option. We are building in place.
32059 if test -z "$ac_top_builddir"; then
32062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32064 [\\/]* | ?:[\\/]* ) # Absolute path.
32065 ac_srcdir=$srcdir$ac_dir_suffix;
32066 ac_top_srcdir=$srcdir ;;
32067 *) # Relative path.
32068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32072 # Do not use `cd foo && pwd` to compute absolute paths, because
32073 # the directories may not exist.
32075 .) ac_abs_builddir="$ac_dir";;
32078 .) ac_abs_builddir=`pwd`;;
32079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32083 case $ac_abs_builddir in
32084 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32086 case ${ac_top_builddir}. in
32087 .) ac_abs_top_builddir=$ac_abs_builddir;;
32088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32092 case $ac_abs_builddir in
32093 .) ac_abs_srcdir=$ac_srcdir;;
32096 .) ac_abs_srcdir=$ac_abs_builddir;;
32097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32101 case $ac_abs_builddir in
32102 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32104 case $ac_top_srcdir in
32105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32114 # Check for guested configure; otherwise get Cygnus style configure.
32115 if test -f $ac_srcdir/configure.gnu; then
32116 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32117 elif test -f $ac_srcdir/configure; then
32118 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32119 elif test -f $ac_srcdir/configure.in; then
32120 ac_sub_configure=$ac_configure
32122 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32127 # The recursion is here.
32128 if test -n "$ac_sub_configure"; then
32129 # Make the cache file name correct relative to the subdirectory.
32130 case $cache_file in
32131 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32132 *) # Relative path.
32133 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32136 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32137 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32138 # The eval makes quoting arguments work.
32139 eval $ac_sub_configure $ac_sub_configure_args \
32140 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32141 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32142 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32143 { (exit 1); exit 1; }; }
32151 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32152 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32153 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32154 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32155 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32156 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32157 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32158 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32159 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32160 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32161 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}