2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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.5cvs'
429 PACKAGE_STRING='llvm 1.5cvs'
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-fefw"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
446 # include <sys/types.h>
449 # include <sys/stat.h>
460 # if !STDC_HEADERS && HAVE_MEMORY_H
466 # include <strings.h>
469 # include <inttypes.h>
479 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 CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
482 # Initialize some variables set by options.
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
494 program_transform_name=s,x,x,
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532 # Accept the important Cygnus configure options, so we can diagnose typos.
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
554 cache_file=config.cache ;;
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560 datadir=$ac_optarg ;;
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "enable_$ac_feature='$ac_optarg'" ;;
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
597 -help | --help | --hel | --he | -h)
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
621 -libdir | --libdir | --libdi | --libd)
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648 # Obsolete; use --without-fp.
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712 sbindir=$ac_optarg ;;
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723 sharedstatedir=$ac_optarg ;;
725 -site | --site | --sit)
727 -site=* | --site=* | --sit=*)
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
750 -version | --version | --versio | --versi | --vers | -V)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
764 eval "with_$ac_package='$ac_optarg'" ;;
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
776 # Obsolete; use --with-x.
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
819 if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838 localstatedir libdir includedir oldincludedir infodir mandir
840 eval ac_val=$`echo $ac_var`
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869 test "$silent" = yes && exec 6>/dev/null
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
889 if test ! -r $srcdir/$ac_unique_file; then
893 ac_srcdir_defaulted=no
895 if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
962 # Report the --help message.
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
968 \`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
970 Usage: $0 [OPTION]... [VAR=VALUE]...
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
975 Defaults for the options are specified in brackets.
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1002 For better control, use the options below.
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1028 if test -n "$ac_init_help"; then
1029 case $ac_init_help in
1030 short | recursive ) echo "Configuration of llvm 1.5cvs:";;
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038 --enable-jit Enable Just In Time Compiling (default is YES)
1039 --enable-doxygen Build doxygen documentation (default is NO)
1040 --enable-ltdl-install install libltdl
1041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
1047 --disable-libtool-lock avoid locking (might break parallel builds)
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 --with-tclinclude directory where tcl headers are
1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1059 include additional configurations [automatic]
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <llvmbugs@cs.uiuc.edu>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1174 llvm configure 1.5cvs
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1190 It was created by llvm $as_me 1.5cvs, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_must_keep_next=false
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279 -* ) ac_must_keep_next=true ;;
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1308 # The following way of writing the cache mishandles newlines in values,
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1331 for ac_var in $ac_subst_vars
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1338 if test -n "$ac_subst_files"; then
1345 for ac_var in $ac_subst_files
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1353 if test -s confdefs.h; then
1360 sed "/^$/d" confdefs.h | sort
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 # Predefined preprocessor variables.
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1443 # Check that the precious variables saved in the cache have kept the same
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1536 for ac_dir in autoconf $srcdir/autoconf; do
1537 if test -f $ac_dir/install-sh; then
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 elif test -f $ac_dir/install.sh; then
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 elif test -f $ac_dir/shtool; then
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554 { (exit 1); exit 1; }; }
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 if test ${srcdir} != "." ; then
1562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
1569 for i in `ls ${srcdir}/projects`
1571 if test -d ${srcdir}/projects/${i} ; then
1576 subdirs="$subdirs projects/sample"
1580 subdirs="$subdirs projects/Stacker"
1584 subdirs="$subdirs projects/llvm-test"
1588 subdirs="$subdirs projects/llvm-reopt"
1592 subdirs="$subdirs projects/llvm-gcc"
1596 subdirs="$subdirs projects/llvm-java"
1600 subdirs="$subdirs projects/llvm-tv"
1604 subdirs="$subdirs projects/llvm-fefw"
1608 subdirs="$subdirs projects/llvm-poolalloc"
1611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1700 program_prefix=${target_alias}-
1702 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704 if test "${llvm_cv_os_type+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="FreeBSD"
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
1778 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 i?86-*) llvm_cv_target_arch="x86" ;;
1790 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1791 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1792 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1793 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1794 ia64-*) llvm_cv_target_arch="IA64" ;;
1795 *) llvm_cv_target_arch="Unknown" ;;
1798 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1801 if test "$llvm_cv_target_arch" = "Unknown" ; then
1802 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806 ARCH=$llvm_cv_target_arch
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 if test -n "$ac_tool_prefix"; then
1815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$CC"; then
1823 ac_cv_prog_CC="$CC" # Let the user override the test.
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842 if test -n "$CC"; then
1843 echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1851 if test -z "$ac_cv_prog_CC"; then
1853 # Extract the first word of "gcc", so it can be a program name with args.
1854 set dummy gcc; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC="gcc"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880 if test -n "$ac_ct_CC"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882 echo "${ECHO_T}$ac_ct_CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1893 if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$CC"; then
1903 ac_cv_prog_CC="$CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_CC="${ac_tool_prefix}cc"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 if test -n "$CC"; then
1923 echo "$as_me:$LINENO: result: $CC" >&5
1924 echo "${ECHO_T}$CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1931 if test -z "$ac_cv_prog_CC"; then
1933 # Extract the first word of "cc", so it can be a program name with args.
1934 set dummy cc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$ac_ct_CC"; then
1941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960 if test -n "$ac_ct_CC"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962 echo "${ECHO_T}$ac_ct_CC" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1974 if test -z "$CC"; then
1975 # Extract the first word of "cc", so it can be a program name with args.
1976 set dummy cc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994 ac_prog_rejected=yes
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test $ac_prog_rejected = yes; then
2005 # We found a bogon in the path, so make sure we never use it.
2006 set dummy $ac_cv_prog_CC
2008 if test $# != 0; then
2009 # We chose a different compiler from the bogus one.
2010 # However, it has the same basename, so the bogon will be chosen
2011 # first if we set CC to just the basename; use the full file name.
2013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019 if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 if test -n "$CC"; then
2060 echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2067 test -n "$CC" && break
2070 if test -z "$CC"; then
2074 # Extract the first word of "$ac_prog", so it can be a program name with args.
2075 set dummy $ac_prog; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 ac_cv_prog_ac_ct_CC="$ac_prog"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6
2105 echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2109 test -n "$ac_ct_CC" && break
2118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&2;}
2122 { (exit 1); exit 1; }; }
2124 # Provide some information about the compiler.
2125 echo "$as_me:$LINENO:" \
2126 "checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129 (eval $ac_compiler --version </dev/null >&5) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134 (eval $ac_compiler -v </dev/null >&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139 (eval $ac_compiler -V </dev/null >&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168 (eval $ac_link_default) 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Find the output, starting from the most likely. This scheme is
2173 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176 # Be careful to initialize this variable, since it used to be cached.
2177 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 # b.out is created by i960 compilers.
2180 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 test -f "$ac_file" || continue
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2187 # This is the source file.
2190 # We found the default executable, but exeext='' is most
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 # FIXME: I believe we export ac_cv_exeext for Libtool,
2196 # but it would be cool to find out if it's true. Does anybody
2197 # maintain Libtool? --akim.
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6
2219 # Check the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2234 if test "$cross_compiling" = maybe; then
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6
2259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262 (eval $ac_link) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest$ac_cv_exeext
2289 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2295 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297 if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.o conftest.obj
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; then
2321 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2339 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342 echo "${ECHO_T}$ac_cv_objext" >&6
2343 OBJEXT=$ac_cv_objext
2345 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460 if test "$ac_test_CFLAGS" = set; then
2461 CFLAGS=$ac_save_CFLAGS
2462 elif test $ac_cv_prog_cc_g = yes; then
2463 if test "$GCC" = yes; then
2469 if test "$GCC" = yes; then
2475 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 ac_cv_prog_cc_stdc=no
2482 cat >conftest.$ac_ext <<_ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2506 s = g (p, va_arg (v,int));
2511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2512 function prototypes and stuff, but not '\xHH' hex character constants.
2513 These don't provoke an error unfortunately, instead are silently treated
2514 as 'x'. The following induces an error, until -std1 is added to get
2515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2516 array size at least. It's necessary to write '\x00'==0 to get something
2517 that's true only with -std1. */
2518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520 int test (int i, double x);
2521 struct s1 {int (*f) (int a);};
2522 struct s2 {int (*f) (double a);};
2523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2534 # Don't try gcc -ansi; that turns off useful extensions and
2535 # breaks some systems' header files.
2536 # AIX -qlanglvl=ansi
2537 # Ultrix and OSF/1 -std1
2538 # HP-UX 10.20 and later -Ae
2539 # HP-UX older versions -Aa -D_HPUX_SOURCE
2540 # SVR4 -Xc -D__EXTENSIONS__
2541 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 CC="$ac_save_CC $ac_arg"
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2580 case "x$ac_cv_prog_cc_stdc" in
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 # Some people use a C++ compiler to compile C. Since we use `exit',
2591 # in C++ we need to declare it. In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 for ac_declaration in \
2623 'extern "C" void std::exit (int) throw (); using std::exit;' \
2624 'extern "C" void std::exit (int); using std::exit;' \
2625 'extern "C" void exit (int) throw ();' \
2626 'extern "C" void exit (int);' \
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -z "$ac_c_werror_flag"
2655 || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag"
2700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if test -n "$ac_declaration"; then
2722 echo '#ifdef __cplusplus' >>confdefs.h
2723 echo $ac_declaration >>confdefs.h
2724 echo '#endif' >>confdefs.h
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742 if test "${ac_cv_c_bigendian+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 # See if sys/param.h defines the BYTE_ORDER macro.
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2752 #include <sys/types.h>
2753 #include <sys/param.h>
2758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 # It does; now see whether it defined to BIG_ENDIAN or not.
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <sys/types.h>
2796 #include <sys/param.h>
2801 #if BYTE_ORDER != BIG_ENDIAN
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_cv_c_bigendian=yes
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 ac_cv_c_bigendian=no
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # It does not; compile a test program.
2844 if test "$cross_compiling" = yes; then
2845 # try to guess the endianness by grepping values into an object file
2846 ac_cv_c_bigendian=unknown
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2853 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2862 _ascii (); _ebcdic ();
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>conftest.er1
2871 grep -v '^ *+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag"
2877 || test ! -s conftest.err'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890 ac_cv_c_bigendian=yes
2892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893 if test "$ac_cv_c_bigendian" = unknown; then
2894 ac_cv_c_bigendian=no
2896 # finding both strings is unlikely to happen, but who knows?
2897 ac_cv_c_bigendian=unknown
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2916 /* Are we little or big endian? From Harbison&Steele. */
2920 char c[sizeof (long)];
2923 exit (u.c[sizeof (long) - 1] == 1);
2926 rm -f conftest$ac_exeext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928 (eval $ac_link) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_c_bigendian=no
2939 echo "$as_me: program exited with status $ac_status" >&5
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2944 ac_cv_c_bigendian=yes
2946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953 case $ac_cv_c_bigendian in
2961 { { echo "$as_me:$LINENO: error: unknown endianness
2962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963 echo "$as_me: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965 { (exit 1); exit 1; }; } ;;
2970 # Check whether --enable-optimized or --disable-optimized was given.
2971 if test "${enable_optimized+set}" = set; then
2972 enableval="$enable_optimized"
2977 if test ${enableval} = "no" ; then
2981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2985 # Check whether --enable-jit or --disable-jit was given.
2986 if test "${enable_jit+set}" = set; then
2987 enableval="$enable_jit"
2992 if test ${enableval} = "no"
2997 case "$llvm_cv_target_arch" in
2998 x86) JIT=TARGET_HAS_JIT=1
3000 Sparc) JIT=TARGET_HAS_JIT=1
3002 PowerPC) JIT=TARGET_HAS_JIT=1
3011 # Check whether --enable-doxygen or --disable-doxygen was given.
3012 if test "${enable_doxygen+set}" = set; then
3013 enableval="$enable_doxygen"
3018 case "$enableval" in
3019 yes) ENABLE_DOXYGEN=1
3021 no) ENABLE_DOXYGEN=0
3023 default) ENABLE_DOXYGEN=0
3025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3026 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3027 { (exit 1); exit 1; }; } ;;
3031 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3032 if test "${with_llvmgccdir+set}" = set; then
3033 withval="$with_llvmgccdir"
3039 default) WITH_LLVMGCCDIR=default ;;
3040 /*) WITH_LLVMGCCDIR=$withval ;;
3041 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3042 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3043 { (exit 1); exit 1; }; } ;;
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3053 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3054 # On Suns, sometimes $CPP names a directory.
3055 if test -n "$CPP" && test -d "$CPP"; then
3058 if test -z "$CPP"; then
3059 if test "${ac_cv_prog_CPP+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 # Double quotes because CPP needs to be expanded
3063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3066 for ac_c_preproc_warn_flag in '' yes
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3081 # include <limits.h>
3083 # include <assert.h>
3087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev/null; then
3095 if test -s conftest.err; then
3096 ac_cpp_err=$ac_c_preproc_warn_flag
3097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3104 if test -z "$ac_cpp_err"; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 # Broken: fails on valid input.
3113 rm -f conftest.err conftest.$ac_ext
3115 # OK, works on sane cases. Now check whether non-existent headers
3116 # can be detected and how.
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 #include <ac_nonexistent.h>
3125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_c_preproc_warn_flag
3135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3142 if test -z "$ac_cpp_err"; then
3143 # Broken: success on invalid input.
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 # Passes both tests.
3153 rm -f conftest.err conftest.$ac_ext
3156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157 rm -f conftest.err conftest.$ac_ext
3158 if $ac_preproc_ok; then
3170 echo "$as_me:$LINENO: result: $CPP" >&5
3171 echo "${ECHO_T}$CPP" >&6
3173 for ac_c_preproc_warn_flag in '' yes
3175 # Use a header file that comes with gcc, so configuring glibc
3176 # with a fresh cross-compiler works.
3177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3178 # <limits.h> exists even on freestanding compilers.
3179 # On the NeXT, cc -E runs the code through the compiler's parser,
3180 # not just through cpp. "Syntax error" is here to catch this case.
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3188 # include <limits.h>
3190 # include <assert.h>
3194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null; then
3202 if test -s conftest.err; then
3203 ac_cpp_err=$ac_c_preproc_warn_flag
3204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3211 if test -z "$ac_cpp_err"; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 # Broken: fails on valid input.
3220 rm -f conftest.err conftest.$ac_ext
3222 # OK, works on sane cases. Now check whether non-existent headers
3223 # can be detected and how.
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <ac_nonexistent.h>
3232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 if test -z "$ac_cpp_err"; then
3250 # Broken: success on invalid input.
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 # Passes both tests.
3260 rm -f conftest.err conftest.$ac_ext
3263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264 rm -f conftest.err conftest.$ac_ext
3265 if $ac_preproc_ok; then
3268 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 if test -n "$ac_tool_prefix"; then
3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_CC+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 if test -n "$CC"; then
3317 echo "$as_me:$LINENO: result: $CC" >&5
3318 echo "${ECHO_T}$CC" >&6
3320 echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3324 test -n "$CC" && break
3327 if test -z "$CC"; then
3331 # Extract the first word of "$ac_prog", so it can be a program name with args.
3332 set dummy $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_ac_ct_CC+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 if test -n "$ac_ct_CC"; then
3339 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358 if test -n "$ac_ct_CC"; then
3359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3360 echo "${ECHO_T}$ac_ct_CC" >&6
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3366 test -n "$ac_ct_CC" && break
3373 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details." >&5
3375 echo "$as_me: error: no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details." >&2;}
3377 { (exit 1); exit 1; }; }
3379 # Provide some information about the compiler.
3380 echo "$as_me:$LINENO:" \
3381 "checking for C compiler version" >&5
3382 ac_compiler=`set X $ac_compile; echo $2`
3383 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3384 (eval $ac_compiler --version </dev/null >&5) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3389 (eval $ac_compiler -v </dev/null >&5) 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }
3393 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3394 (eval $ac_compiler -V </dev/null >&5) 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3399 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag"
3432 || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3457 GCC=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CFLAGS=${CFLAGS+set}
3459 ac_save_CFLAGS=$CFLAGS
3461 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3462 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3463 if test "${ac_cv_prog_cc_g+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3481 rm -f conftest.$ac_objext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 (eval $ac_compile) 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -z "$ac_c_werror_flag"
3491 || test ! -s conftest.err'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } &&
3497 { ac_try='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3513 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3514 if test "$ac_test_CFLAGS" = set; then
3515 CFLAGS=$ac_save_CFLAGS
3516 elif test $ac_cv_prog_cc_g = yes; then
3517 if test "$GCC" = yes; then
3523 if test "$GCC" = yes; then
3529 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3530 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3531 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 ac_cv_prog_cc_stdc=no
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3544 #include <sys/types.h>
3545 #include <sys/stat.h>
3546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3547 struct buf { int x; };
3548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549 static char *e (p, i)
3555 static char *f (char * (*g) (char **, int), char **p, ...)
3560 s = g (p, va_arg (v,int));
3565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3566 function prototypes and stuff, but not '\xHH' hex character constants.
3567 These don't provoke an error unfortunately, instead are silently treated
3568 as 'x'. The following induces an error, until -std1 is added to get
3569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3570 array size at least. It's necessary to write '\x00'==0 to get something
3571 that's true only with -std1. */
3572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3574 int test (int i, double x);
3575 struct s1 {int (*f) (int a);};
3576 struct s2 {int (*f) (double a);};
3577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3588 # Don't try gcc -ansi; that turns off useful extensions and
3589 # breaks some systems' header files.
3590 # AIX -qlanglvl=ansi
3591 # Ultrix and OSF/1 -std1
3592 # HP-UX 10.20 and later -Ae
3593 # HP-UX older versions -Aa -D_HPUX_SOURCE
3594 # SVR4 -Xc -D__EXTENSIONS__
3595 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 CC="$ac_save_CC $ac_arg"
3598 rm -f conftest.$ac_objext
3599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_c_werror_flag"
3608 || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_cv_prog_cc_stdc=$ac_arg
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 rm -f conftest.err conftest.$ac_objext
3629 rm -f conftest.$ac_ext conftest.$ac_objext
3634 case "x$ac_cv_prog_cc_stdc" in
3636 echo "$as_me:$LINENO: result: none needed" >&5
3637 echo "${ECHO_T}none needed" >&6 ;;
3639 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3641 CC="$CC $ac_cv_prog_cc_stdc" ;;
3644 # Some people use a C++ compiler to compile C. Since we use `exit',
3645 # in C++ we need to declare it. In case someone uses the same compiler
3646 # for both compiling C and C++ we need to have the C++ compiler decide
3647 # the declaration of exit, since it's the most demanding environment.
3648 cat >conftest.$ac_ext <<_ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3657 grep -v '^ *+' conftest.er1 >conftest.err
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag"
3663 || test ! -s conftest.err'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 for ac_declaration in \
3677 'extern "C" void std::exit (int) throw (); using std::exit;' \
3678 'extern "C" void std::exit (int); using std::exit;' \
3679 'extern "C" void exit (int) throw ();' \
3680 'extern "C" void exit (int);' \
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3699 rm -f conftest.$ac_objext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -z "$ac_c_werror_flag"
3709 || test ! -s conftest.err'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; } &&
3715 { ac_try='test -s conftest.$ac_objext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3729 cat >conftest.$ac_ext <<_ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 if test -n "$ac_declaration"; then
3776 echo '#ifdef __cplusplus' >>confdefs.h
3777 echo $ac_declaration >>confdefs.h
3778 echo '#endif' >>confdefs.h
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 ac_cpp='$CXXCPP $CPPFLAGS'
3795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3798 if test -n "$ac_tool_prefix"; then
3799 for ac_prog in $CCC g++
3801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_prog_CXX+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 if test -n "$CXX"; then
3809 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$CXX"; then
3829 echo "$as_me:$LINENO: result: $CXX" >&5
3830 echo "${ECHO_T}$CXX" >&6
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3836 test -n "$CXX" && break
3839 if test -z "$CXX"; then
3841 for ac_prog in $CCC g++
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $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_ac_ct_CXX+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$ac_ct_CXX"; then
3851 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3870 if test -n "$ac_ct_CXX"; then
3871 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3872 echo "${ECHO_T}$ac_ct_CXX" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 test -n "$ac_ct_CXX" && break
3880 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3886 # Provide some information about the compiler.
3887 echo "$as_me:$LINENO:" \
3888 "checking for C++ compiler version" >&5
3889 ac_compiler=`set X $ac_compile; echo $2`
3890 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3891 (eval $ac_compiler --version </dev/null >&5) 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }
3895 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3896 (eval $ac_compiler -v </dev/null >&5) 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }
3900 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3901 (eval $ac_compiler -V </dev/null >&5) 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }
3906 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3907 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3908 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_cxx_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3962 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3963 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3964 GXX=`test $ac_compiler_gnu = yes && echo yes`
3965 ac_test_CXXFLAGS=${CXXFLAGS+set}
3966 ac_save_CXXFLAGS=$CXXFLAGS
3968 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3969 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3970 if test "${ac_cv_prog_cxx_g+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_cxx_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_prog_cxx_g=yes
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4019 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4021 if test "$ac_test_CXXFLAGS" = set; then
4022 CXXFLAGS=$ac_save_CXXFLAGS
4023 elif test $ac_cv_prog_cxx_g = yes; then
4024 if test "$GXX" = yes; then
4030 if test "$GXX" = yes; then
4036 for ac_declaration in \
4038 'extern "C" void std::exit (int) throw (); using std::exit;' \
4039 'extern "C" void std::exit (int); using std::exit;' \
4040 'extern "C" void exit (int) throw ();' \
4041 'extern "C" void exit (int);' \
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4105 rm -f conftest.$ac_objext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_cxx_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136 if test -n "$ac_declaration"; then
4137 echo '#ifdef __cplusplus' >>confdefs.h
4138 echo $ac_declaration >>confdefs.h
4139 echo '#endif' >>confdefs.h
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 echo "$as_me:$LINENO: checking " >&5
4149 echo $ECHO_N "checking ... $ECHO_C" >&6
4150 if test "${ac_cv_has_flex+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 for ac_prog in flex lex
4155 # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_LEX+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if test -n "$LEX"; then
4163 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_LEX="$ac_prog"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 if test -n "$LEX"; then
4183 echo "$as_me:$LINENO: result: $LEX" >&5
4184 echo "${ECHO_T}$LEX" >&6
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4190 test -n "$LEX" && break
4192 test -n "$LEX" || LEX=":"
4194 if test -z "$LEXLIB"
4196 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4197 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4198 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 ac_check_lib_save_LIBS=$LIBS
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4210 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4225 rm -f conftest.$ac_objext conftest$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227 (eval $ac_link) 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest$ac_exeext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_cv_lib_fl_yywrap=yes
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_cv_lib_fl_yywrap=no
4254 rm -f conftest.err conftest.$ac_objext \
4255 conftest$ac_exeext conftest.$ac_ext
4256 LIBS=$ac_check_lib_save_LIBS
4258 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4259 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4260 if test $ac_cv_lib_fl_yywrap = yes; then
4263 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4264 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4265 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 ac_check_lib_save_LIBS=$LIBS
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4277 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4292 rm -f conftest.$ac_objext conftest$ac_exeext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294 (eval $ac_link) 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag"
4302 || test ! -s conftest.err'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; } &&
4308 { ac_try='test -s conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 ac_cv_lib_l_yywrap=yes
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 ac_cv_lib_l_yywrap=no
4321 rm -f conftest.err conftest.$ac_objext \
4322 conftest$ac_exeext conftest.$ac_ext
4323 LIBS=$ac_check_lib_save_LIBS
4325 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4326 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4327 if test $ac_cv_lib_l_yywrap = yes; then
4335 if test "x$LEX" != "x:"; then
4336 echo "$as_me:$LINENO: checking lex output file root" >&5
4337 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4338 if test "${ac_cv_prog_lex_root+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 # The minimal lex program is just a single line: %%. But some broken lexes
4342 # (Solaris, I think it was) want two %% lines, so accommodate them.
4343 cat >conftest.l <<_ACEOF
4347 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4348 (eval $LEX conftest.l) 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }
4352 if test -f lex.yy.c; then
4353 ac_cv_prog_lex_root=lex.yy
4354 elif test -f lexyy.c; then
4355 ac_cv_prog_lex_root=lexyy
4357 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4358 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4359 { (exit 1); exit 1; }; }
4362 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4363 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4365 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4367 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4368 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4369 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 # POSIX says lex can declare yytext either as a pointer or an array; the
4373 # default is implementation-dependent. Figure out which it is, since
4374 # not all implementations provide the %pointer and %array declarations.
4375 ac_cv_prog_lex_yytext_pointer=no
4376 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4378 LIBS="$LIBS $LEXLIB"
4379 cat >conftest.$ac_ext <<_ACEOF
4380 `cat $LEX_OUTPUT_ROOT.c`
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest$ac_exeext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_prog_lex_yytext_pointer=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4410 rm -f conftest.err conftest.$ac_objext \
4411 conftest$ac_exeext conftest.$ac_ext
4413 rm -f "${LEX_OUTPUT_ROOT}.c"
4416 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4417 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4418 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define YYTEXT_POINTER 1
4429 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4430 echo "${ECHO_T}$ac_cv_has_flex" >&6
4431 if test "$LEX" != "flex"; then
4432 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4433 echo "$as_me: error: flex not found but required" >&2;}
4434 { (exit 1); exit 1; }; }
4440 echo "$as_me:$LINENO: checking " >&5
4441 echo $ECHO_N "checking ... $ECHO_C" >&6
4442 if test "${llvm_cv_has_bison+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 for ac_prog in 'bison -y' byacc
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_YACC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 if test -n "$YACC"; then
4455 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_YACC="$ac_prog"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 YACC=$ac_cv_prog_YACC
4474 if test -n "$YACC"; then
4475 echo "$as_me:$LINENO: result: $YACC" >&5
4476 echo "${ECHO_T}$YACC" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4482 test -n "$YACC" && break
4484 test -n "$YACC" || YACC="yacc"
4487 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4488 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4489 if test "$YACC" != "bison -y"; then
4490 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4491 echo "$as_me: error: bison not found but required" >&2;}
4492 { (exit 1); exit 1; }; }
4498 echo "$as_me:$LINENO: checking for GNU make" >&5
4499 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4500 if test "${llvm_cv_gnu_make_command+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 llvm_cv_gnu_make_command=''
4504 for a in "$MAKE" make gmake gnumake ; do
4505 if test -z "$a" ; then continue ; fi ;
4506 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4508 llvm_cv_gnu_make_command=$a ;
4513 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4514 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4515 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4519 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4520 echo "${ECHO_T}\"Not found\"" >&6;
4524 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4525 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4527 if test "$LN_S" = "ln -s"; then
4528 echo "$as_me:$LINENO: result: yes" >&5
4529 echo "${ECHO_T}yes" >&6
4531 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4532 echo "${ECHO_T}no, using $LN_S" >&6
4535 # Extract the first word of "cmp", so it can be a program name with args.
4536 set dummy cmp; ac_word=$2
4537 echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539 if test "${ac_cv_path_CMP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4567 if test -n "$CMP"; then
4568 echo "$as_me:$LINENO: result: $CMP" >&5
4569 echo "${ECHO_T}$CMP" >&6
4571 echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6
4575 # Extract the first word of "cp", so it can be a program name with args.
4576 set dummy cp; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_path_CP+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4607 if test -n "$CP"; then
4608 echo "$as_me:$LINENO: result: $CP" >&5
4609 echo "${ECHO_T}$CP" >&6
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4615 # Extract the first word of "date", so it can be a program name with args.
4616 set dummy date; ac_word=$2
4617 echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619 if test "${ac_cv_path_DATE+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4645 DATE=$ac_cv_path_DATE
4647 if test -n "$DATE"; then
4648 echo "$as_me:$LINENO: result: $DATE" >&5
4649 echo "${ECHO_T}$DATE" >&6
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 # Extract the first word of "find", so it can be a program name with args.
4656 set dummy find; ac_word=$2
4657 echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4659 if test "${ac_cv_path_FIND+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4685 FIND=$ac_cv_path_FIND
4687 if test -n "$FIND"; then
4688 echo "$as_me:$LINENO: result: $FIND" >&5
4689 echo "${ECHO_T}$FIND" >&6
4691 echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4695 # Extract the first word of "grep", so it can be a program name with args.
4696 set dummy grep; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_path_GREP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4725 GREP=$ac_cv_path_GREP
4727 if test -n "$GREP"; then
4728 echo "$as_me:$LINENO: result: $GREP" >&5
4729 echo "${ECHO_T}$GREP" >&6
4731 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4735 # Extract the first word of "mkdir", so it can be a program name with args.
4736 set dummy mkdir; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_path_MKDIR+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4765 MKDIR=$ac_cv_path_MKDIR
4767 if test -n "$MKDIR"; then
4768 echo "$as_me:$LINENO: result: $MKDIR" >&5
4769 echo "${ECHO_T}$MKDIR" >&6
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4775 # Extract the first word of "mv", so it can be a program name with args.
4776 set dummy mv; ac_word=$2
4777 echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_path_MV+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4807 if test -n "$MV"; then
4808 echo "$as_me:$LINENO: result: $MV" >&5
4809 echo "${ECHO_T}$MV" >&6
4811 echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_RANLIB+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$RANLIB"; then
4824 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 RANLIB=$ac_cv_prog_RANLIB
4843 if test -n "$RANLIB"; then
4844 echo "$as_me:$LINENO: result: $RANLIB" >&5
4845 echo "${ECHO_T}$RANLIB" >&6
4847 echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4852 if test -z "$ac_cv_prog_RANLIB"; then
4853 ac_ct_RANLIB=$RANLIB
4854 # Extract the first word of "ranlib", so it can be a program name with args.
4855 set dummy ranlib; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$ac_ct_RANLIB"; then
4862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_ac_ct_RANLIB="ranlib"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882 if test -n "$ac_ct_RANLIB"; then
4883 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4884 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4890 RANLIB=$ac_ct_RANLIB
4892 RANLIB="$ac_cv_prog_RANLIB"
4895 # Extract the first word of "rm", so it can be a program name with args.
4896 set dummy rm; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_path_RM+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4927 if test -n "$RM"; then
4928 echo "$as_me:$LINENO: result: $RM" >&5
4929 echo "${ECHO_T}$RM" >&6
4931 echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4935 # Extract the first word of "sed", so it can be a program name with args.
4936 set dummy sed; ac_word=$2
4937 echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_path_SED+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4967 if test -n "$SED"; then
4968 echo "$as_me:$LINENO: result: $SED" >&5
4969 echo "${ECHO_T}$SED" >&6
4971 echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4975 # Extract the first word of "tar", so it can be a program name with args.
4976 set dummy tar; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_path_TAR+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5007 if test -n "$TAR"; then
5008 echo "$as_me:$LINENO: result: $TAR" >&5
5009 echo "${ECHO_T}$TAR" >&6
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5016 # Find a good install program. We prefer a C program (faster),
5017 # so one script is as good as another. But avoid the broken or
5018 # incompatible versions:
5019 # SysV /etc/install, /usr/sbin/install
5020 # SunOS /usr/etc/install
5021 # IRIX /sbin/install
5023 # AmigaOS /C/install, which installs bootblocks on floppy discs
5024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5027 # OS/2's system install, which has a completely different semantic
5028 # ./install, which can be erroneously created by make from ./install.sh.
5029 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5031 if test -z "$INSTALL"; then
5032 if test "${ac_cv_path_install+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 # Account for people who put trailing slashes in PATH elements.
5042 ./ | .// | /cC/* | \
5043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5047 # OSF1 and SCO ODT 3.0 have their own names for install.
5048 # Don't use installbsd from OSF since it installs stuff as root
5050 for ac_prog in ginstall scoinst install; do
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5053 if test $ac_prog = install &&
5054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5055 # AIX install. It has an incompatible calling convention.
5057 elif test $ac_prog = install &&
5058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5059 # program-specific install script used by HP pwplus--don't use.
5062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5074 if test "${ac_cv_path_install+set}" = set; then
5075 INSTALL=$ac_cv_path_install
5077 # As a last resort, use the slow shell script. We don't cache a
5078 # path for INSTALL within a source directory, because that will
5079 # break other packages using the cache if that directory is
5080 # removed, or if the path is relative.
5081 INSTALL=$ac_install_sh
5084 echo "$as_me:$LINENO: result: $INSTALL" >&5
5085 echo "${ECHO_T}$INSTALL" >&6
5087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5088 # It thinks the first close brace ends the variable substitution.
5089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5096 # Extract the first word of "bzip2", so it can be a program name with args.
5097 set dummy bzip2; ac_word=$2
5098 echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100 if test "${ac_cv_path_BZIP2+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5126 BZIP2=$ac_cv_path_BZIP2
5128 if test -n "$BZIP2"; then
5129 echo "$as_me:$LINENO: result: $BZIP2" >&5
5130 echo "${ECHO_T}$BZIP2" >&6
5132 echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5136 # Extract the first word of "dot", so it can be a program name with args.
5137 set dummy dot; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_path_DOT+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5168 if test -n "$DOT"; then
5169 echo "$as_me:$LINENO: result: $DOT" >&5
5170 echo "${ECHO_T}$DOT" >&6
5172 echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5176 # Extract the first word of "doxygen", so it can be a program name with args.
5177 set dummy doxygen; ac_word=$2
5178 echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5206 DOXYGEN=$ac_cv_path_DOXYGEN
5208 if test -n "$DOXYGEN"; then
5209 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5210 echo "${ECHO_T}$DOXYGEN" >&6
5212 echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5216 # Extract the first word of "etags", so it can be a program name with args.
5217 set dummy etags; ac_word=$2
5218 echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5220 if test "${ac_cv_path_ETAGS+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5246 ETAGS=$ac_cv_path_ETAGS
5248 if test -n "$ETAGS"; then
5249 echo "$as_me:$LINENO: result: $ETAGS" >&5
5250 echo "${ECHO_T}$ETAGS" >&6
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5256 # Extract the first word of "groff", so it can be a program name with args.
5257 set dummy groff; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_path_GROFF+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5286 GROFF=$ac_cv_path_GROFF
5288 if test -n "$GROFF"; then
5289 echo "$as_me:$LINENO: result: $GROFF" >&5
5290 echo "${ECHO_T}$GROFF" >&6
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5296 # Extract the first word of "gzip", so it can be a program name with args.
5297 set dummy gzip; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_path_GZIP+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5326 GZIP=$ac_cv_path_GZIP
5328 if test -n "$GZIP"; then
5329 echo "$as_me:$LINENO: result: $GZIP" >&5
5330 echo "${ECHO_T}$GZIP" >&6
5332 echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5336 # Extract the first word of "pod2html", so it can be a program name with args.
5337 set dummy pod2html; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_path_POD2HTML+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5366 POD2HTML=$ac_cv_path_POD2HTML
5368 if test -n "$POD2HTML"; then
5369 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5370 echo "${ECHO_T}$POD2HTML" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5376 # Extract the first word of "pod2man", so it can be a program name with args.
5377 set dummy pod2man; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_path_POD2MAN+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5406 POD2MAN=$ac_cv_path_POD2MAN
5408 if test -n "$POD2MAN"; then
5409 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5410 echo "${ECHO_T}$POD2MAN" >&6
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5416 # Extract the first word of "runtest", so it can be a program name with args.
5417 set dummy runtest; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_path_RUNTEST+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5446 RUNTEST=$ac_cv_path_RUNTEST
5448 if test -n "$RUNTEST"; then
5449 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5450 echo "${ECHO_T}$RUNTEST" >&6
5452 echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5458 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5459 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5461 # Check whether --with-tclinclude or --without-tclinclude was given.
5462 if test "${with_tclinclude+set}" = set; then
5463 withval="$with_tclinclude"
5464 with_tclinclude=${withval}
5468 if test "${ac_cv_path_tclsh+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test x"${with_tclinclude}" != x ; then
5473 if test -f ${with_tclinclude}/tclsh ; then
5474 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5475 elif test -f ${with_tclinclude}/src/tclsh ; then
5476 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5478 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5479 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5480 { (exit 1); exit 1; }; }
5484 if test x"${ac_cv_path_tclsh}" = x ; then
5485 echo "$as_me:$LINENO: result: none" >&5
5486 echo "${ECHO_T}none" >&6
5487 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
5489 # Extract the first word of "$ac_prog", so it can be a program name with args.
5490 set dummy $ac_prog; ac_word=$2
5491 echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493 if test "${ac_cv_path_TCLSH+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 TCLSH=$ac_cv_path_TCLSH
5520 if test -n "$TCLSH"; then
5521 echo "$as_me:$LINENO: result: $TCLSH" >&5
5522 echo "${ECHO_T}$TCLSH" >&6
5524 echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5528 test -n "$TCLSH" && break
5531 if test x"${TCLSH}" = x ; then
5532 ac_cv_path_tclsh='';
5534 ac_cv_path_tclsh="${TCLSH}";
5537 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5538 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5539 TCLSH="${ac_cv_path_tclsh}"
5545 # Extract the first word of "zip", so it can be a program name with args.
5546 set dummy zip; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_path_ZIP+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5577 if test -n "$ZIP"; then
5578 echo "$as_me:$LINENO: result: $ZIP" >&5
5579 echo "${ECHO_T}$ZIP" >&6
5581 echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6
5586 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5587 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5588 if test "${llvm_cv_link_use_r+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598 CFLAGS="$CFLAGS -Wl,-R."
5599 cat >conftest.$ac_ext <<_ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5609 int main() { return 0; }
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616 (eval $ac_link) 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -z "$ac_c_werror_flag"
5624 || test ! -s conftest.err'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest$ac_exeext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 llvm_cv_link_use_r=yes
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 llvm_cv_link_use_r=no
5643 rm -f conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5655 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5656 if test "$llvm_cv_link_use_r" = yes ; then
5658 cat >>confdefs.h <<\_ACEOF
5659 #define HAVE_LINK_R 1
5667 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5668 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5669 if test "${ac_cv_c_const+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5682 /* FIXME: Include the comments suggested by Paul. */
5684 /* Ultrix mips cc rejects this. */
5685 typedef int charset[2];
5687 /* SunOS 4.1.1 cc rejects this. */
5688 char const *const *ccp;
5690 /* NEC SVR4.0.2 mips cc rejects this. */
5691 struct point {int x, y;};
5692 static struct point const zero = {0,0};
5693 /* AIX XL C 1.02.0.0 rejects this.
5694 It does not let you subtract one const X* pointer from another in
5695 an arm of an if-expression whose if-part is not a constant
5697 const char *g = "string";
5698 ccp = &g + (g ? g-g : 0);
5699 /* HPUX 7.0 cc rejects these. */
5702 ccp = (char const *const *) p;
5703 { /* SCO 3.2v4 cc rejects this. */
5705 char const *s = 0 ? (char *) 0 : (char const *) 0;
5709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5711 const int *foo = &x[0];
5714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5715 typedef const int *iptr;
5719 { /* AIX XL C 1.02.0.0 rejects this saying
5720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5721 struct s { int j; const int *ap[3]; };
5722 struct s *b; b->j = 5;
5724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5764 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5765 echo "${ECHO_T}$ac_cv_c_const" >&6
5766 if test $ac_cv_c_const = no; then
5768 cat >>confdefs.h <<\_ACEOF
5775 echo "$as_me:$LINENO: checking for egrep" >&5
5776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5777 if test "${ac_cv_prog_egrep+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5781 then ac_cv_prog_egrep='grep -E'
5782 else ac_cv_prog_egrep='egrep'
5785 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5786 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5787 EGREP=$ac_cv_prog_egrep
5790 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5792 if test "${ac_cv_header_stdc+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 cat >conftest.$ac_ext <<_ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5814 rm -f conftest.$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_header_stdc=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_cv_header_stdc=no
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 if test $ac_cv_header_stdc = yes; then
5846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5857 $EGREP "memchr" >/dev/null 2>&1; then
5860 ac_cv_header_stdc=no
5866 if test $ac_cv_header_stdc = yes; then
5867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5878 $EGREP "free" >/dev/null 2>&1; then
5881 ac_cv_header_stdc=no
5887 if test $ac_cv_header_stdc = yes; then
5888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5889 if test "$cross_compiling" = yes; then
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5899 #if ((' ' & 0x0FF) == 0x020)
5900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5903 # define ISLOWER(c) \
5904 (('a' <= (c) && (c) <= 'i') \
5905 || ('j' <= (c) && (c) <= 'r') \
5906 || ('s' <= (c) && (c) <= 'z'))
5907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5915 for (i = 0; i < 256; i++)
5916 if (XOR (islower (i), ISLOWER (i))
5917 || toupper (i) != TOUPPER (i))
5922 rm -f conftest$ac_exeext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5935 echo "$as_me: program exited with status $ac_status" >&5
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_cv_header_stdc=no
5942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5946 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5947 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5948 if test $ac_cv_header_stdc = yes; then
5950 cat >>confdefs.h <<\_ACEOF
5951 #define STDC_HEADERS 1
5962 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5963 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5964 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5965 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 #include <sys/types.h>
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 eval "$as_ac_Header=yes"
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 eval "$as_ac_Header=no"
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6025 ac_header_dirent=$ac_hdr; break
6029 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6030 if test $ac_header_dirent = dirent.h; then
6031 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6033 if test "${ac_cv_search_opendir+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 ac_func_search_save_LIBS=$LIBS
6037 ac_cv_search_opendir=no
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>conftest.er1
6064 grep -v '^ *+' conftest.er1 >conftest.err
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_c_werror_flag"
6070 || test ! -s conftest.err'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_cv_search_opendir="none required"
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6088 rm -f conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090 if test "$ac_cv_search_opendir" = no; then
6091 for ac_lib in dir; do
6092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_search_opendir="-l$ac_lib"
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6144 rm -f conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6148 LIBS=$ac_func_search_save_LIBS
6150 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6151 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6152 if test "$ac_cv_search_opendir" != no; then
6153 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6158 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6160 if test "${ac_cv_search_opendir+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 ac_func_search_save_LIBS=$LIBS
6164 ac_cv_search_opendir=no
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_search_opendir="none required"
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6215 rm -f conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
6217 if test "$ac_cv_search_opendir" = no; then
6219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244 (eval $ac_link) 2>conftest.er1
6246 grep -v '^ *+' conftest.er1 >conftest.err
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_search_opendir="-l$ac_lib"
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6271 rm -f conftest.err conftest.$ac_objext \
6272 conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_func_search_save_LIBS
6277 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6278 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6279 if test "$ac_cv_search_opendir" != no; then
6280 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6297 inttypes.h stdint.h unistd.h
6299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6313 #include <$ac_header>
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 eval "$as_ac_Header=yes"
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 eval "$as_ac_Header=no"
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6349 cat >>confdefs.h <<_ACEOF
6350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6359 for ac_header in dlfcn.h
6361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363 echo "$as_me:$LINENO: checking for $ac_header" >&5
6364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6371 # Is the header compilable?
6372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6381 #include <$ac_header>
6383 rm -f conftest.$ac_objext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest.$ac_objext'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_header_compiler=yes
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 ac_header_compiler=no
6412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414 echo "${ECHO_T}$ac_header_compiler" >&6
6416 # Is the header present?
6417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #include <$ac_header>
6427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } >/dev/null; then
6435 if test -s conftest.err; then
6436 ac_cpp_err=$ac_c_preproc_warn_flag
6437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6444 if test -z "$ac_cpp_err"; then
6445 ac_header_preproc=yes
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_header_preproc=no
6452 rm -f conftest.err conftest.$ac_ext
6453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6454 echo "${ECHO_T}$ac_header_preproc" >&6
6456 # So? What about this header?
6457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6463 ac_header_preproc=yes
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6480 ## ----------------------------------- ##
6481 ## Report this to llvmbugs@cs.uiuc.edu ##
6482 ## ----------------------------------- ##
6485 sed "s/^/$as_me: WARNING: /" >&2
6488 echo "$as_me:$LINENO: checking for $ac_header" >&5
6489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 eval "$as_ac_Header=\$ac_header_preproc"
6495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6509 if test "${enable_ltdl_install+set}" = set; then
6510 enableval="$enable_ltdl_install"
6516 if test x"${enable_ltdl_install-no}" != xno; then
6518 INSTALL_LTDL_FALSE='#'
6520 INSTALL_LTDL_TRUE='#'
6526 if test x"${enable_ltdl_convenience-no}" != xno; then
6527 CONVENIENCE_LTDL_TRUE=
6528 CONVENIENCE_LTDL_FALSE='#'
6530 CONVENIENCE_LTDL_TRUE='#'
6531 CONVENIENCE_LTDL_FALSE=
6535 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6538 libname_spec='lib$name'
6546 shlibpath_overrides_runpath=unknown
6548 dynamic_linker="$host_os ld.so"
6549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6550 if test "$GCC" = yes; then
6551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6553 # if the path contains ";" then we assume it to be the separator
6554 # otherwise default to the standard path separator (i.e. ":") - it is
6555 # assumed that no part of a normal pathname contains ";" but that should
6556 # okay in the real world where ";" in dirpaths is itself problematic.
6557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6564 need_lib_prefix=unknown
6565 hardcode_into_libs=no
6567 # when you set need_version to no, make sure it does not cause -set_version
6568 # flags to be left without arguments
6569 need_version=unknown
6574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6575 shlibpath_var=LIBPATH
6577 # AIX 3 has no versioning support, so we append a major version to the name.
6578 soname_spec='${libname}${release}${shared_ext}$major'
6585 hardcode_into_libs=yes
6586 if test "$host_cpu" = ia64; then
6587 # AIX 5 supports IA64
6588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6589 shlibpath_var=LD_LIBRARY_PATH
6591 # With GCC up to 2.95.x, collect2 would create an import file
6592 # for dependence libraries. The import file would start with
6593 # the line `#! .'. This would cause the generated library to
6594 # depend on `.', always an invalid library. This was fixed in
6595 # development snapshots of GCC prior to 3.0.
6597 aix4 | aix4.[01] | aix4.[01].*)
6598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6608 # soname into executable. Probably we can add versioning support to
6609 # collect2, so additional links can be useful in future.
6610 if test "$aix_use_runtimelinking" = yes; then
6611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6612 # instead of lib<name>.a to let people know that these are not
6613 # typical AIX shared libraries.
6614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6616 # We preserve .a as extension for shared libraries through AIX4.2
6617 # and later when we are not doing run time linking.
6618 library_names_spec='${libname}${release}.a $libname.a'
6619 soname_spec='${libname}${release}${shared_ext}$major'
6621 shlibpath_var=LIBPATH
6626 library_names_spec='$libname.ixlibrary $libname.a'
6627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6628 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'
6632 library_names_spec='${libname}${shared_ext}'
6633 dynamic_linker="$host_os ld.so"
6634 shlibpath_var=LIBRARY_PATH
6640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6641 soname_spec='${libname}${release}${shared_ext}$major'
6642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6643 shlibpath_var=LD_LIBRARY_PATH
6644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6646 # the default ld.so.conf also contains /usr/contrib/lib and
6647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6648 # libtool to hard-code these into programs
6651 cygwin* | mingw* | pw32*)
6652 version_type=windows
6657 case $GCC,$host_os in
6658 yes,cygwin* | yes,mingw* | yes,pw32*)
6659 library_names_spec='$libname.dll.a'
6660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6661 postinstall_cmds='base_file=`basename \${file}`~
6662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6663 dldir=$destdir/`dirname \$dlpath`~
6664 test -d \$dldir || mkdir -p \$dldir~
6665 $install_prog $dir/$dlname \$dldir/$dlname'
6666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6667 dlpath=$dir/\$dldll~
6669 shlibpath_overrides_runpath=yes
6673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6678 # MinGW DLLs use traditional 'lib' prefix
6679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6682 # It is most probably a Windows format PATH printed by
6683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6684 # path with ; separators, and with drive letters. We can handle the
6685 # drive letters (cygwin fileutils understands them), so leave them,
6686 # especially as we might pass files found there to a mingw objdump,
6687 # which wouldn't understand a cygwinified path. Ahh.
6688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6694 # pw32 DLLs use 'pw' prefix rather than 'lib'
6695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6704 dynamic_linker='Win32 ld.exe'
6705 # FIXME: first we should search . and the directory the executable is in
6709 darwin* | rhapsody*)
6710 dynamic_linker="$host_os dyld"
6714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6715 soname_spec='${libname}${release}${major}$shared_ext'
6716 shlibpath_overrides_runpath=yes
6717 shlibpath_var=DYLD_LIBRARY_PATH
6718 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6720 if test "$GCC" = yes; then
6721 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"`
6723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6733 soname_spec='${libname}${release}${shared_ext}$major'
6734 shlibpath_var=LD_LIBRARY_PATH
6745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6746 soname_spec='${libname}${release}${shared_ext}$major'
6747 shlibpath_var=LD_LIBRARY_PATH
6748 shlibpath_overrides_runpath=no
6749 hardcode_into_libs=yes
6750 dynamic_linker='GNU ld.so'
6754 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6755 version_type=freebsd-$objformat
6756 case $version_type in
6758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6767 shlibpath_var=LD_LIBRARY_PATH
6770 shlibpath_overrides_runpath=yes
6772 freebsd3.01* | freebsdelf3.01*)
6773 shlibpath_overrides_runpath=yes
6774 hardcode_into_libs=yes
6777 shlibpath_overrides_runpath=no
6778 hardcode_into_libs=yes
6787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 hardcode_into_libs=yes
6793 hpux9* | hpux10* | hpux11*)
6794 # Give a soname corresponding to the major version so that dld.sl refuses to
6795 # link against other versions.
6802 hardcode_into_libs=yes
6803 dynamic_linker="$host_os dld.so"
6804 shlibpath_var=LD_LIBRARY_PATH
6805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6807 soname_spec='${libname}${release}${shared_ext}$major'
6808 if test "X$HPUX_IA64_MODE" = X32; then
6809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6817 hardcode_into_libs=yes
6818 dynamic_linker="$host_os dld.sl"
6819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6828 dynamic_linker="$host_os dld.sl"
6829 shlibpath_var=SHLIB_PATH
6830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6832 soname_spec='${libname}${release}${shared_ext}$major'
6835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6836 postinstall_cmds='chmod 555 $lib'
6839 irix5* | irix6* | nonstopux*)
6841 nonstopux*) version_type=nonstopux ;;
6843 if test "$lt_cv_prog_gnu_ld" = yes; then
6851 soname_spec='${libname}${release}${shared_ext}$major'
6852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6854 irix5* | nonstopux*)
6858 case $LD in # libtool.m4 will add one of these switches to LD
6859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6860 libsuff= shlibsuff= libmagic=32-bit;;
6861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6862 libsuff=32 shlibsuff=N32 libmagic=N32;;
6863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6864 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6865 *) libsuff= shlibsuff= libmagic=never-match;;
6869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6870 shlibpath_overrides_runpath=no
6871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6873 hardcode_into_libs=yes
6876 # No shared lib support for Linux oldld, aout, or coff.
6877 linux*oldld* | linux*aout* | linux*coff*)
6881 # This must be Linux ELF.
6886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6887 soname_spec='${libname}${release}${shared_ext}$major'
6888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6889 shlibpath_var=LD_LIBRARY_PATH
6890 shlibpath_overrides_runpath=no
6891 # This implies no fast_install, which is unacceptable.
6892 # Some rework will be needed to allow for fast_install
6893 # before this can be enabled.
6894 hardcode_into_libs=yes
6896 # Append ld.so.conf contents to the search path
6897 if test -f /etc/ld.so.conf; then
6898 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6899 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6902 # We used to test for /lib/ld.so.1 and disable shared libraries on
6903 # powerpc, because MkLinux only supported shared libraries with the
6904 # GNU dynamic linker. Since this was broken with cross compilers,
6905 # most powerpc-linux boxes support dynamic linking these days and
6906 # people can always --disable-shared, the test was removed, and we
6907 # assume the GNU/Linux dynamic linker is in use.
6908 dynamic_linker='GNU/Linux ld.so'
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6916 soname_spec='${libname}${release}${shared_ext}$major'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 shlibpath_overrides_runpath=no
6919 hardcode_into_libs=yes
6920 dynamic_linker='GNU ld.so'
6927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6930 dynamic_linker='NetBSD (a.out) ld.so'
6932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6933 soname_spec='${libname}${release}${shared_ext}$major'
6934 dynamic_linker='NetBSD ld.elf_so'
6936 shlibpath_var=LD_LIBRARY_PATH
6937 shlibpath_overrides_runpath=yes
6938 hardcode_into_libs=yes
6943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6944 shlibpath_var=LD_LIBRARY_PATH
6945 shlibpath_overrides_runpath=yes
6952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6953 soname_spec='${libname}${release}${shared_ext}$major'
6954 shlibpath_var=LD_LIBRARY_PATH
6955 shlibpath_overrides_runpath=yes
6962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6964 shlibpath_var=LD_LIBRARY_PATH
6965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6967 openbsd2.[89] | openbsd2.[89].*)
6968 shlibpath_overrides_runpath=no
6971 shlibpath_overrides_runpath=yes
6975 shlibpath_overrides_runpath=yes
6980 libname_spec='$name'
6983 library_names_spec='$libname${shared_ext} $libname.a'
6984 dynamic_linker='OS/2 ld.exe'
6985 shlibpath_var=LIBPATH
6988 osf3* | osf4* | osf5*)
6992 soname_spec='${libname}${release}${shared_ext}$major'
6993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6994 shlibpath_var=LD_LIBRARY_PATH
6995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6996 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7001 soname_spec='${libname}${release}${shared_ext}$major'
7002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7003 shlibpath_var=LD_LIBRARY_PATH
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 shlibpath_overrides_runpath=yes
7014 hardcode_into_libs=yes
7015 # ldd complains unless libraries are executable
7016 postinstall_cmds='chmod +x $lib'
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7023 shlibpath_var=LD_LIBRARY_PATH
7024 shlibpath_overrides_runpath=yes
7025 if test "$with_gnu_ld" = yes; then
7031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7034 soname_spec='${libname}${release}${shared_ext}$major'
7035 shlibpath_var=LD_LIBRARY_PATH
7036 case $host_vendor in
7038 shlibpath_overrides_runpath=no
7040 export_dynamic_flag_spec='${wl}-Blargedynsym'
7041 runpath_var=LD_RUN_PATH
7049 shlibpath_overrides_runpath=no
7050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7056 if test -d /usr/nec ;then
7058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7059 soname_spec='$libname${shared_ext}.$major'
7060 shlibpath_var=LD_LIBRARY_PATH
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LD_LIBRARY_PATH
7075 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7076 echo "${ECHO_T}$dynamic_linker" >&6
7077 test "$dynamic_linker" = no && can_build_shared=no
7080 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7081 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7082 if test "${libltdl_cv_shlibext+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 eval libltdl_cv_shlibext=$shrext_cmds
7090 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7091 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7092 if test -n "$libltdl_cv_shlibext"; then
7094 cat >>confdefs.h <<_ACEOF
7095 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7101 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7102 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7103 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 libltdl_cv_shlibpath_var="$shlibpath_var"
7108 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7109 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7110 if test -n "$libltdl_cv_shlibpath_var"; then
7112 cat >>confdefs.h <<_ACEOF
7113 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7119 echo "$as_me:$LINENO: checking for the default library search path" >&5
7120 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7121 if test "${libltdl_cv_sys_search_path+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7126 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7127 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7128 if test -n "$libltdl_cv_sys_search_path"; then
7130 for dir in $libltdl_cv_sys_search_path; do
7131 if test -z "$sys_search_path"; then
7132 sys_search_path="$dir"
7134 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7138 cat >>confdefs.h <<_ACEOF
7139 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7144 echo "$as_me:$LINENO: checking for objdir" >&5
7145 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7146 if test "${libltdl_cv_objdir+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 libltdl_cv_objdir="$objdir"
7150 if test -n "$objdir"; then
7153 rm -f .libs 2>/dev/null
7154 mkdir .libs 2>/dev/null
7155 if test -d .libs; then
7156 libltdl_cv_objdir=.libs
7158 # MS-DOS does not allow filenames that begin with a dot.
7159 libltdl_cv_objdir=_libs
7161 rmdir .libs 2>/dev/null
7165 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7166 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7168 cat >>confdefs.h <<_ACEOF
7169 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7173 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7174 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7175 if test "${lt_cv_path_NM+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 if test -n "$NM"; then
7179 # Let the user override the test.
7182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7183 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7185 test -z "$ac_dir" && ac_dir=.
7186 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7187 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7188 # Check to see if the nm accepts a BSD-compat flag.
7189 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7190 # nm: unknown option "B" ignored
7191 # Tru64's nm complains that /dev/null is an invalid object file
7192 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7193 */dev/null* | *'Invalid file or object type'*)
7194 lt_cv_path_NM="$tmp_nm -B"
7198 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7200 lt_cv_path_NM="$tmp_nm -p"
7204 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7205 continue # so that we can try to find one that supports BSD flags
7212 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7215 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7216 echo "${ECHO_T}$lt_cv_path_NM" >&6
7223 # Check for command to grab the raw symbol name followed by C symbol from nm.
7224 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7225 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7226 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 # These are sane defaults that work on at least a few old systems.
7231 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7233 # Character class describing NM global symbol codes.
7234 symcode='[BCDEGRST]'
7236 # Regexp to match symbols that can be accessed directly from C.
7237 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7239 # Transform the above into a raw symbol and a C symbol.
7240 symxfrm='\1 \2\3 \3'
7242 # Transform an extracted symbol line into a proper C declaration
7243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7245 # Transform an extracted symbol line into symbol name and symbol address
7246 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'"
7248 # Define system-specific variables.
7253 cygwin* | mingw* | pw32*)
7254 symcode='[ABCDGISTW]'
7256 hpux*) # Its linker distinguishes data from code symbols
7257 if test "$host_cpu" = ia64; then
7258 symcode='[ABCDEGRST]'
7260 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7261 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'"
7264 if test "$host_cpu" = ia64; then
7265 symcode='[ABCDGIRSTW]'
7266 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7267 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'"
7271 symcode='[BCDEGRST]'
7274 symcode='[BCDEGQRST]'
7284 # Handle CRLF in mingw tool chain
7288 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7292 # If we're using GNU nm, then use its standard symbol codes.
7293 case `$NM -V 2>&1` in
7294 *GNU* | *'with BFD'*)
7295 symcode='[ABCDGIRSTW]' ;;
7298 # Try without a prefix undercore, then with it.
7299 for ac_symprfx in "" "_"; do
7301 # Write the raw and C identifiers.
7302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7304 # Check to see that the pipe works correctly.
7308 cat > conftest.$ac_ext <<EOF
7313 void nm_test_func(){}
7317 int main(){nm_test_var='a';nm_test_func();return(0);}
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; then
7325 # Now try to grab the symbols.
7327 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && test -s "$nlist"; then
7332 # Try sorting and uniquifying the output.
7333 if sort "$nlist" | uniq > "$nlist"T; then
7334 mv -f "$nlist"T "$nlist"
7339 # Make sure that we snagged all the symbols we need.
7340 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7341 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7342 cat <<EOF > conftest.$ac_ext
7348 # Now generate the symbol file.
7349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7351 cat <<EOF >> conftest.$ac_ext
7352 #if defined (__STDC__) && __STDC__
7353 # define lt_ptr_t void *
7355 # define lt_ptr_t char *
7359 /* The mapping between symbol names and symbols. */
7364 lt_preloaded_symbols[] =
7367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7368 cat <<\EOF >> conftest.$ac_ext
7376 # Now try linking the two files.
7377 mv conftest.$ac_objext conftstm.$ac_objext
7378 lt_save_LIBS="$LIBS"
7379 lt_save_CFLAGS="$CFLAGS"
7380 LIBS="conftstm.$ac_objext"
7381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7389 LIBS="$lt_save_LIBS"
7390 CFLAGS="$lt_save_CFLAGS"
7392 echo "cannot find nm_test_func in $nlist" >&5
7395 echo "cannot find nm_test_var in $nlist" >&5
7398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7401 echo "$progname: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7404 rm -f conftest* conftst*
7406 # Do not use the global_symbol_pipe unless it works.
7407 if test "$pipe_works" = yes; then
7410 lt_cv_sys_global_symbol_pipe=
7416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7417 lt_cv_sys_global_symbol_to_cdecl=
7419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7420 echo "$as_me:$LINENO: result: failed" >&5
7421 echo "${ECHO_T}failed" >&6
7423 echo "$as_me:$LINENO: result: ok" >&5
7424 echo "${ECHO_T}ok" >&6
7428 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7429 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7430 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7434 libltdl_cv_preloaded_symbols=yes
7436 libltdl_cv_preloaded_symbols=no
7440 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7441 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7442 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_PRELOADED_SYMBOLS 1
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459 echo "$as_me:$LINENO: checking for shl_load" >&5
7460 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7461 if test "${ac_cv_func_shl_load+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7472 #define shl_load innocuous_shl_load
7474 /* System header to define __stub macros and hopefully few prototypes,
7475 which can conflict with char shl_load (); below.
7476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477 <limits.h> exists even on freestanding compilers. */
7480 # include <limits.h>
7482 # include <assert.h>
7487 /* Override any gcc2 internal prototype to avoid an error. */
7492 /* We use char because int might match the return type of a gcc2
7493 builtin and then its argument prototype would still apply. */
7495 /* The GNU C library defines this for functions which it implements
7496 to always fail with ENOSYS. Some functions are actually named
7497 something starting with __ and the normal name is an alias. */
7498 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7501 char (*f) () = shl_load;
7510 return f != shl_load;
7515 rm -f conftest.$ac_objext conftest$ac_exeext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517 (eval $ac_link) 2>conftest.er1
7519 grep -v '^ *+' conftest.er1 >conftest.err
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try='test -z "$ac_c_werror_flag"
7525 || test ! -s conftest.err'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; } &&
7531 { ac_try='test -s conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_func_shl_load=yes
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 ac_cv_func_shl_load=no
7544 rm -f conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7547 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7548 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7549 if test $ac_cv_func_shl_load = yes; then
7551 cat >>confdefs.h <<\_ACEOF
7552 #define HAVE_SHL_LOAD 1
7556 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7557 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7558 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_check_lib_save_LIBS=$LIBS
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7570 /* Override any gcc2 internal prototype to avoid an error. */
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>conftest.er1
7589 grep -v '^ *+' conftest.er1 >conftest.err
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -z "$ac_c_werror_flag"
7595 || test ! -s conftest.err'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; } &&
7601 { ac_try='test -s conftest$ac_exeext'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; }; then
7607 ac_cv_lib_dld_shl_load=yes
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 ac_cv_lib_dld_shl_load=no
7614 rm -f conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7618 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7619 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7620 if test $ac_cv_lib_dld_shl_load = yes; then
7622 cat >>confdefs.h <<\_ACEOF
7623 #define HAVE_SHL_LOAD 1
7626 LIBADD_DL="$LIBADD_DL -ldld"
7628 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7629 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_check_lib_save_LIBS=$LIBS
7635 cat >conftest.$ac_ext <<_ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7657 rm -f conftest.$ac_objext conftest$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_dl_dlopen=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_lib_dl_dlopen=no
7686 rm -f conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7691 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7692 if test $ac_cv_lib_dl_dlopen = yes; then
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_LIBDL 1
7698 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7700 cat >conftest.$ac_ext <<_ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag"
7728 || test ! -s conftest.err'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; } &&
7734 { ac_try='test -s conftest$ac_exeext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_LIBDL 1
7744 libltdl_cv_func_dlopen="yes"
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7750 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_check_lib_save_LIBS=$LIBS
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7763 /* Override any gcc2 internal prototype to avoid an error. */
7767 /* We use char because int might match the return type of a gcc2
7768 builtin and then its argument prototype would still apply. */
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780 (eval $ac_link) 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag"
7788 || test ! -s conftest.err'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_lib_svld_dlopen=yes
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_cv_lib_svld_dlopen=no
7807 rm -f conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 LIBS=$ac_check_lib_save_LIBS
7811 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7812 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7813 if test $ac_cv_lib_svld_dlopen = yes; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_LIBDL 1
7819 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7821 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7822 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 ac_check_lib_save_LIBS=$LIBS
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7835 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_lib_dld_dld_link=yes
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_cv_lib_dld_dld_link=no
7879 rm -f conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7884 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7885 if test $ac_cv_lib_dld_dld_link = yes; then
7887 cat >>confdefs.h <<\_ACEOF
7891 LIBADD_DL="$LIBADD_DL -ldld"
7893 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7894 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7895 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7906 #define _dyld_func_lookup innocuous__dyld_func_lookup
7908 /* System header to define __stub macros and hopefully few prototypes,
7909 which can conflict with char _dyld_func_lookup (); below.
7910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7911 <limits.h> exists even on freestanding compilers. */
7914 # include <limits.h>
7916 # include <assert.h>
7919 #undef _dyld_func_lookup
7921 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928 char _dyld_func_lookup ();
7929 /* The GNU C library defines this for functions which it implements
7930 to always fail with ENOSYS. Some functions are actually named
7931 something starting with __ and the normal name is an alias. */
7932 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7935 char (*f) () = _dyld_func_lookup;
7944 return f != _dyld_func_lookup;
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag"
7959 || test ! -s conftest.err'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_func__dyld_func_lookup=yes
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 ac_cv_func__dyld_func_lookup=no
7978 rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7982 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7983 if test $ac_cv_func__dyld_func_lookup = yes; then
7985 cat >>confdefs.h <<\_ACEOF
7999 rm -f conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8011 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8013 lt_save_LIBS="$LIBS"
8014 LIBS="$LIBS $LIBADD_DL"
8016 for ac_func in dlerror
8018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8019 echo "$as_me:$LINENO: checking for $ac_func" >&5
8020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8021 if eval "test \"\${$as_ac_var+set}\" = set"; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 cat >conftest.$ac_ext <<_ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8032 #define $ac_func innocuous_$ac_func
8034 /* System header to define __stub macros and hopefully few prototypes,
8035 which can conflict with char $ac_func (); below.
8036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8037 <limits.h> exists even on freestanding compilers. */
8040 # include <limits.h>
8042 # include <assert.h>
8047 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8055 /* The GNU C library defines this for functions which it implements
8056 to always fail with ENOSYS. Some functions are actually named
8057 something starting with __ and the normal name is an alias. */
8058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 char (*f) () = $ac_func;
8070 return f != $ac_func;
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_c_werror_flag"
8085 || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest$ac_exeext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 eval "$as_ac_var=yes"
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8102 eval "$as_ac_var=no"
8104 rm -f conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8109 if test `eval echo '${'$as_ac_var'}'` = yes; then
8110 cat >>confdefs.h <<_ACEOF
8111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8117 LIBS="$lt_save_LIBS"
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8128 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8129 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 ac_cv_sys_symbol_underscore=no
8133 cat > conftest.$ac_ext <<EOF
8134 void nm_test_func(){}
8135 int main(){nm_test_func;return 0;}
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; then
8142 # Now try to grab the symbols.
8143 ac_nlist=conftest.nm
8144 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8145 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && test -s "$ac_nlist"; then
8149 # See whether the symbols have a leading underscore.
8150 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8151 ac_cv_sys_symbol_underscore=yes
8153 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8156 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8160 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8163 echo "configure: failed program was:" >&5
8169 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8170 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8173 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8174 if test x"$libltdl_cv_func_dlopen" = xyes ||
8175 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8176 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8177 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8178 if test "${libltdl_cv_need_uscore+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 libltdl_cv_need_uscore=unknown
8183 LIBS="$LIBS $LIBADD_DL"
8184 if test "$cross_compiling" = yes; then :
8185 libltdl_cv_need_uscore=cross
8187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8188 lt_status=$lt_dlunknown
8189 cat > conftest.$ac_ext <<EOF
8190 #line 8190 "configure"
8191 #include "confdefs.h"
8200 # define LT_DLGLOBAL RTLD_GLOBAL
8203 # define LT_DLGLOBAL DL_GLOBAL
8205 # define LT_DLGLOBAL 0
8209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8210 find out it does not work in some platform. */
8211 #ifndef LT_DLLAZY_OR_NOW
8213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8216 # define LT_DLLAZY_OR_NOW DL_LAZY
8219 # define LT_DLLAZY_OR_NOW RTLD_NOW
8222 # define LT_DLLAZY_OR_NOW DL_NOW
8224 # define LT_DLLAZY_OR_NOW 0
8232 extern "C" void exit (int);
8235 void fnord() { int i=42;}
8238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8239 int status = $lt_dlunknown;
8243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8245 /* dlclose (self); */
8251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8256 (./conftest; exit; ) 2>/dev/null
8259 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8260 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8264 # compilation failed
8273 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8274 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8278 if test x"$libltdl_cv_need_uscore" = xyes; then
8280 cat >>confdefs.h <<\_ACEOF
8281 #define NEED_USCORE 1
8287 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8288 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8289 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 # PORTME does your system automatically load deplibs for dlopen?
8293 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8294 # For now, we just catch OSes we know something about -- in the
8295 # future, we'll try test this programmatically.
8296 libltdl_cv_sys_dlopen_deplibs=unknown
8298 aix3*|aix4.1.*|aix4.2.*)
8299 # Unknown whether this is true for these versions of AIX, but
8300 # we want this `case' here to explicitly catch those versions.
8301 libltdl_cv_sys_dlopen_deplibs=unknown
8304 libltdl_cv_sys_dlopen_deplibs=yes
8307 # Assuming the user has installed a libdl from somewhere, this is true
8308 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8309 libltdl_cv_sys_dlopen_deplibs=yes
8311 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8312 # GNU and its variants, using gnu ld.so (Glibc)
8313 libltdl_cv_sys_dlopen_deplibs=yes
8316 libltdl_cv_sys_dlopen_deplibs=yes
8318 irix[12345]*|irix6.[01]*)
8319 # Catch all versions of IRIX before 6.2, and indicate that we don't
8320 # know how it worked for any of those versions.
8321 libltdl_cv_sys_dlopen_deplibs=unknown
8324 # The case above catches anything before 6.2, and it's known that
8325 # at 6.2 and later dlopen does load deplibs.
8326 libltdl_cv_sys_dlopen_deplibs=yes
8329 libltdl_cv_sys_dlopen_deplibs=yes
8332 libltdl_cv_sys_dlopen_deplibs=yes
8335 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8336 # it did *not* use an RPATH in a shared library to find objects the
8337 # library depends on, so we explictly say `no'.
8338 libltdl_cv_sys_dlopen_deplibs=no
8340 osf5.0|osf5.0a|osf5.1)
8341 # dlopen *does* load deplibs and with the right loader patch applied
8342 # it even uses RPATH in a shared library to search for shared objects
8343 # that the library depends on, but there's no easy way to know if that
8344 # patch is installed. Since this is the case, all we can really
8345 # say is unknown -- it depends on the patch being installed. If
8346 # it is, this changes to `yes'. Without it, it would be `no'.
8347 libltdl_cv_sys_dlopen_deplibs=unknown
8350 # the two cases above should catch all versions of osf <= 5.1. Read
8351 # the comments above for what we know about them.
8352 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8353 # is used to find them so we can finally say `yes'.
8354 libltdl_cv_sys_dlopen_deplibs=yes
8357 libltdl_cv_sys_dlopen_deplibs=yes
8362 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8363 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8364 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8366 cat >>confdefs.h <<\_ACEOF
8367 #define LTDL_DLOPEN_DEPLIBS 1
8373 for ac_header in argz.h
8375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377 echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8385 # Is the header compilable?
8386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 #include <$ac_header>
8397 rm -f conftest.$ac_objext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_header_compiler=no
8426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 #include <$ac_header>
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev/null; then
8449 if test -s conftest.err; then
8450 ac_cpp_err=$ac_c_preproc_warn_flag
8451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8458 if test -z "$ac_cpp_err"; then
8459 ac_header_preproc=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_header_preproc=no
8466 rm -f conftest.err conftest.$ac_ext
8467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8468 echo "${ECHO_T}$ac_header_preproc" >&6
8470 # So? What about this header?
8471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8477 ac_header_preproc=yes
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8494 ## ----------------------------------- ##
8495 ## Report this to llvmbugs@cs.uiuc.edu ##
8496 ## ----------------------------------- ##
8499 sed "s/^/$as_me: WARNING: /" >&2
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 eval "$as_ac_Header=\$ac_header_preproc"
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514 cat >>confdefs.h <<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8523 echo "$as_me:$LINENO: checking for error_t" >&5
8524 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8525 if test "${ac_cv_type_error_t+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 cat >conftest.$ac_ext <<_ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8543 if (sizeof (error_t))
8549 rm -f conftest.$ac_objext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 ac_cv_type_error_t=yes
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_cv_type_error_t=no
8578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8581 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8582 if test $ac_cv_type_error_t = yes; then
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_ERROR_T 1
8591 cat >>confdefs.h <<\_ACEOF
8603 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8606 echo "$as_me:$LINENO: checking for $ac_func" >&5
8607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8608 if eval "test \"\${$as_ac_var+set}\" = set"; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8619 #define $ac_func innocuous_$ac_func
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char $ac_func (); below.
8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624 <limits.h> exists even on freestanding compilers. */
8627 # include <limits.h>
8629 # include <assert.h>
8634 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648 char (*f) () = $ac_func;
8657 return f != $ac_func;
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 eval "$as_ac_var=yes"
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 eval "$as_ac_var=no"
8691 rm -f conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
8694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8696 if test `eval echo '${'$as_ac_var'}'` = yes; then
8697 cat >>confdefs.h <<_ACEOF
8698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8731 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo "$as_me:$LINENO: checking for $ac_header" >&5
8737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 # Is the header compilable?
8745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 #include <$ac_header>
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_header_compiler=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_header_compiler=no
8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787 echo "${ECHO_T}$ac_header_compiler" >&6
8789 # Is the header present?
8790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 #include <$ac_header>
8800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } >/dev/null; then
8808 if test -s conftest.err; then
8809 ac_cpp_err=$ac_c_preproc_warn_flag
8810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8817 if test -z "$ac_cpp_err"; then
8818 ac_header_preproc=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_header_preproc=no
8825 rm -f conftest.err conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8827 echo "${ECHO_T}$ac_header_preproc" >&6
8829 # So? What about this header?
8830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8836 ac_header_preproc=yes
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8853 ## ----------------------------------- ##
8854 ## Report this to llvmbugs@cs.uiuc.edu ##
8855 ## ----------------------------------- ##
8858 sed "s/^/$as_me: WARNING: /" >&2
8861 echo "$as_me:$LINENO: checking for $ac_header" >&5
8862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 eval "$as_ac_Header=\$ac_header_preproc"
8868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8873 cat >>confdefs.h <<_ACEOF
8874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo "$as_me:$LINENO: checking for $ac_header" >&5
8890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897 # Is the header compilable?
8898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 #include <$ac_header>
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_header_compiler=yes
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_header_compiler=no
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 #include <$ac_header>
8953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } >/dev/null; then
8961 if test -s conftest.err; then
8962 ac_cpp_err=$ac_c_preproc_warn_flag
8963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8970 if test -z "$ac_cpp_err"; then
8971 ac_header_preproc=yes
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_header_preproc=no
8978 rm -f conftest.err conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 echo "${ECHO_T}$ac_header_preproc" >&6
8982 # So? What about this header?
8983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8989 ac_header_preproc=yes
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9006 ## ----------------------------------- ##
9007 ## Report this to llvmbugs@cs.uiuc.edu ##
9008 ## ----------------------------------- ##
9011 sed "s/^/$as_me: WARNING: /" >&2
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 eval "$as_ac_Header=\$ac_header_preproc"
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9036 for ac_header in string.h strings.h
9038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040 echo "$as_me:$LINENO: checking for $ac_header" >&5
9041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9048 # Is the header compilable?
9049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 $ac_includes_default
9058 #include <$ac_header>
9060 rm -f conftest.$ac_objext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9062 (eval $ac_compile) 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest.$ac_objext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_header_compiler=yes
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_header_compiler=no
9089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091 echo "${ECHO_T}$ac_header_compiler" >&6
9093 # Is the header present?
9094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <$ac_header>
9104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9107 grep -v '^ *+' conftest.er1 >conftest.err
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null; then
9112 if test -s conftest.err; then
9113 ac_cpp_err=$ac_c_preproc_warn_flag
9114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9121 if test -z "$ac_cpp_err"; then
9122 ac_header_preproc=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_header_preproc=no
9129 rm -f conftest.err conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9131 echo "${ECHO_T}$ac_header_preproc" >&6
9133 # So? What about this header?
9134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9140 ac_header_preproc=yes
9143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9157 ## ----------------------------------- ##
9158 ## Report this to llvmbugs@cs.uiuc.edu ##
9159 ## ----------------------------------- ##
9162 sed "s/^/$as_me: WARNING: /" >&2
9165 echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 eval "$as_ac_Header=\$ac_header_preproc"
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188 for ac_func in strchr index
9190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9191 echo "$as_me:$LINENO: checking for $ac_func" >&5
9192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_var+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9204 #define $ac_func innocuous_$ac_func
9206 /* System header to define __stub macros and hopefully few prototypes,
9207 which can conflict with char $ac_func (); below.
9208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209 <limits.h> exists even on freestanding compilers. */
9212 # include <limits.h>
9214 # include <assert.h>
9219 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9227 /* The GNU C library defines this for functions which it implements
9228 to always fail with ENOSYS. Some functions are actually named
9229 something starting with __ and the normal name is an alias. */
9230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9233 char (*f) () = $ac_func;
9242 return f != $ac_func;
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249 (eval $ac_link) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 eval "$as_ac_var=yes"
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 eval "$as_ac_var=no"
9276 rm -f conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9281 if test `eval echo '${'$as_ac_var'}'` = yes; then
9282 cat >>confdefs.h <<_ACEOF
9283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9291 for ac_func in strrchr rindex
9293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9294 echo "$as_me:$LINENO: checking for $ac_func" >&5
9295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9296 if eval "test \"\${$as_ac_var+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9307 #define $ac_func innocuous_$ac_func
9309 /* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char $ac_func (); below.
9311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9312 <limits.h> exists even on freestanding compilers. */
9315 # include <limits.h>
9317 # include <assert.h>
9322 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9330 /* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336 char (*f) () = $ac_func;
9345 return f != $ac_func;
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 eval "$as_ac_var=yes"
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 eval "$as_ac_var=no"
9379 rm -f conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9384 if test `eval echo '${'$as_ac_var'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9394 for ac_func in memcpy bcopy
9396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9397 echo "$as_me:$LINENO: checking for $ac_func" >&5
9398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9399 if eval "test \"\${$as_ac_var+set}\" = set"; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9410 #define $ac_func innocuous_$ac_func
9412 /* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char $ac_func (); below.
9414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9415 <limits.h> exists even on freestanding compilers. */
9418 # include <limits.h>
9420 # include <assert.h>
9425 /* Override any gcc2 internal prototype to avoid an error. */
9430 /* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9433 /* The GNU C library defines this for functions which it implements
9434 to always fail with ENOSYS. Some functions are actually named
9435 something starting with __ and the normal name is an alias. */
9436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9439 char (*f) () = $ac_func;
9448 return f != $ac_func;
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>conftest.er1
9457 grep -v '^ *+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 eval "$as_ac_var=yes"
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9480 eval "$as_ac_var=no"
9482 rm -f conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9487 if test `eval echo '${'$as_ac_var'}'` = yes; then
9488 cat >>confdefs.h <<_ACEOF
9489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9497 for ac_func in memmove strcmp
9499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9500 echo "$as_me:$LINENO: checking for $ac_func" >&5
9501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9502 if eval "test \"\${$as_ac_var+set}\" = set"; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9513 #define $ac_func innocuous_$ac_func
9515 /* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char $ac_func (); below.
9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518 <limits.h> exists even on freestanding compilers. */
9521 # include <limits.h>
9523 # include <assert.h>
9528 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9536 /* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542 char (*f) () = $ac_func;
9551 return f != $ac_func;
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 eval "$as_ac_var=yes"
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 eval "$as_ac_var=no"
9585 rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9590 if test `eval echo '${'$as_ac_var'}'` = yes; then
9591 cat >>confdefs.h <<_ACEOF
9592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9601 for ac_func in closedir opendir readdir
9603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604 echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_var+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617 #define $ac_func innocuous_$ac_func
9619 /* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char $ac_func (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9625 # include <limits.h>
9627 # include <assert.h>
9632 /* Override any gcc2 internal prototype to avoid an error. */
9637 /* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9640 /* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9646 char (*f) () = $ac_func;
9655 return f != $ac_func;
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 eval "$as_ac_var=yes"
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 eval "$as_ac_var=no"
9689 rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9694 if test `eval echo '${'$as_ac_var'}'` = yes; then
9695 cat >>confdefs.h <<_ACEOF
9696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9703 # Check whether --enable-shared or --disable-shared was given.
9704 if test "${enable_shared+set}" = set; then
9705 enableval="$enable_shared"
9706 p=${PACKAGE-default}
9708 yes) enable_shared=yes ;;
9709 no) enable_shared=no ;;
9712 # Look at the argument we got. We use all the common list separators.
9713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9714 for pkg in $enableval; do
9716 if test "X$pkg" = "X$p"; then
9727 # Check whether --enable-static or --disable-static was given.
9728 if test "${enable_static+set}" = set; then
9729 enableval="$enable_static"
9730 p=${PACKAGE-default}
9732 yes) enable_static=yes ;;
9733 no) enable_static=no ;;
9736 # Look at the argument we got. We use all the common list separators.
9737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9738 for pkg in $enableval; do
9740 if test "X$pkg" = "X$p"; then
9751 # Check whether --enable-fast-install or --disable-fast-install was given.
9752 if test "${enable_fast_install+set}" = set; then
9753 enableval="$enable_fast_install"
9754 p=${PACKAGE-default}
9756 yes) enable_fast_install=yes ;;
9757 no) enable_fast_install=no ;;
9759 enable_fast_install=no
9760 # Look at the argument we got. We use all the common list separators.
9761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9762 for pkg in $enableval; do
9764 if test "X$pkg" = "X$p"; then
9765 enable_fast_install=yes
9772 enable_fast_install=yes
9775 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9776 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9777 if test "${lt_cv_path_SED+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 # Loop through the user's path and test for sed and gsed.
9781 # Then use that list of sed's as ones to test for truncation.
9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 test -z "$as_dir" && as_dir=.
9787 for lt_ac_prog in sed gsed; do
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9790 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9797 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9798 # along with /bin/sed that truncates output.
9799 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9800 test ! -f $lt_ac_sed && break
9801 cat /dev/null > conftest.in
9803 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9804 # Check for GNU sed and select it if it is found.
9805 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9806 lt_cv_path_SED=$lt_ac_sed
9810 cat conftest.in conftest.in >conftest.tmp
9811 mv conftest.tmp conftest.in
9812 cp conftest.in conftest.nl
9814 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9815 cmp -s conftest.out conftest.nl || break
9816 # 10000 chars as input seems more than enough
9817 test $lt_ac_count -gt 10 && break
9818 lt_ac_count=`expr $lt_ac_count + 1`
9819 if test $lt_ac_count -gt $lt_ac_max; then
9820 lt_ac_max=$lt_ac_count
9821 lt_cv_path_SED=$lt_ac_sed
9829 echo "$as_me:$LINENO: result: $SED" >&5
9830 echo "${ECHO_T}$SED" >&6
9833 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9834 if test "${with_gnu_ld+set}" = set; then
9835 withval="$with_gnu_ld"
9836 test "$withval" = no || with_gnu_ld=yes
9841 if test "$GCC" = yes; then
9842 # Check if gcc -print-prog-name=ld gives a path.
9843 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9844 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9847 # gcc leaves a trailing carriage return which upsets mingw
9848 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9850 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9853 # Accept absolute paths.
9855 re_direlt='/[^/][^/]*/\.\./'
9856 # Canonicalize the pathname of ld
9857 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9858 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9859 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9861 test -z "$LD" && LD="$ac_prog"
9864 # If it fails, then pretend we aren't using GCC.
9868 # If it is relative, then search for the first ld in PATH.
9872 elif test "$with_gnu_ld" = yes; then
9873 echo "$as_me:$LINENO: checking for GNU ld" >&5
9874 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9876 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9877 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9879 if test "${lt_cv_path_LD+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 if test -z "$LD"; then
9883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9884 for ac_dir in $PATH; do
9886 test -z "$ac_dir" && ac_dir=.
9887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9888 lt_cv_path_LD="$ac_dir/$ac_prog"
9889 # Check to see if the program is GNU ld. I'd rather use --version,
9890 # but apparently some GNU ld's only accept -v.
9891 # Break only if it was the GNU/non-GNU ld that we prefer.
9892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9893 *GNU* | *'with BFD'*)
9894 test "$with_gnu_ld" != no && break
9897 test "$with_gnu_ld" != yes && break
9904 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9909 if test -n "$LD"; then
9910 echo "$as_me:$LINENO: result: $LD" >&5
9911 echo "${ECHO_T}$LD" >&6
9913 echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6
9916 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9917 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9918 { (exit 1); exit 1; }; }
9919 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9920 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9921 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9925 case `$LD -v 2>&1 </dev/null` in
9926 *GNU* | *'with BFD'*)
9927 lt_cv_prog_gnu_ld=yes
9930 lt_cv_prog_gnu_ld=no
9934 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9935 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9936 with_gnu_ld=$lt_cv_prog_gnu_ld
9939 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9940 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9941 if test "${lt_cv_ld_reload_flag+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 lt_cv_ld_reload_flag='-r'
9946 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9947 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9948 reload_flag=$lt_cv_ld_reload_flag
9949 case $reload_flag in
9951 *) reload_flag=" $reload_flag" ;;
9953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9956 if test "$GCC" = yes; then
9957 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9964 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9965 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9966 if test "${lt_cv_deplibs_check_method+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 lt_cv_file_magic_cmd='$MAGIC_CMD'
9970 lt_cv_file_magic_test_file=
9971 lt_cv_deplibs_check_method='unknown'
9972 # Need to set the preceding variable on all platforms that support
9973 # interlibrary dependencies.
9974 # 'none' -- dependencies not supported.
9975 # `unknown' -- same as none, but documents that we really don't know.
9976 # 'pass_all' -- all dependencies passed with no checks.
9977 # 'test_compile' -- check by making test program.
9978 # 'file_magic [[regex]]' -- check by looking for files in library path
9979 # which responds to the $file_magic_cmd with a given extended regex.
9980 # If you have `file' or equivalent on your system and you're not sure
9981 # whether `pass_all' will *always* work, you probably want this one.
9985 lt_cv_deplibs_check_method=pass_all
9989 lt_cv_deplibs_check_method=pass_all
9993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9994 lt_cv_file_magic_cmd='/usr/bin/file -L'
9995 lt_cv_file_magic_test_file=/shlib/libc.so
9999 # func_win32_libid is a shell function defined in ltmain.sh
10000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10001 lt_cv_file_magic_cmd='func_win32_libid'
10005 # Base MSYS/MinGW do not provide the 'file' command needed by
10006 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10007 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10008 lt_cv_file_magic_cmd='$OBJDUMP -f'
10011 darwin* | rhapsody*)
10012 lt_cv_deplibs_check_method=pass_all
10015 freebsd* | kfreebsd*-gnu)
10016 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10019 # Not sure whether the presence of OpenBSD here was a mistake.
10020 # Let's accept both of them until this is cleared up.
10021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10022 lt_cv_file_magic_cmd=/usr/bin/file
10023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10027 lt_cv_deplibs_check_method=pass_all
10032 lt_cv_deplibs_check_method=pass_all
10035 hpux10.20* | hpux11*)
10036 lt_cv_file_magic_cmd=/usr/bin/file
10037 case "$host_cpu" in
10039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10043 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]'
10044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10053 irix5* | irix6* | nonstopux*)
10055 *-32|*"-32 ") libmagic=32-bit;;
10056 *-n32|*"-n32 ") libmagic=N32;;
10057 *-64|*"-64 ") libmagic=64-bit;;
10058 *) libmagic=never-match;;
10060 lt_cv_deplibs_check_method=pass_all
10063 # This must be Linux ELF.
10065 lt_cv_deplibs_check_method=pass_all
10069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10078 lt_cv_file_magic_cmd=/usr/bin/file
10079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10083 lt_cv_deplibs_check_method=unknown
10087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10094 osf3* | osf4* | osf5*)
10095 lt_cv_deplibs_check_method=pass_all
10099 lt_cv_deplibs_check_method=pass_all
10103 lt_cv_deplibs_check_method=pass_all
10106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10107 case $host_vendor in
10109 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]'
10110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10113 lt_cv_deplibs_check_method=pass_all
10116 lt_cv_file_magic_cmd='/bin/file'
10117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10120 lt_cv_file_magic_cmd='/bin/file'
10121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10122 lt_cv_file_magic_test_file=/lib/libc.so
10125 lt_cv_deplibs_check_method=pass_all
10130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10131 lt_cv_deplibs_check_method=pass_all
10136 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10137 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10138 file_magic_cmd=$lt_cv_file_magic_cmd
10139 deplibs_check_method=$lt_cv_deplibs_check_method
10140 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10144 # If no C compiler was specified, use CC.
10147 # Allow CC to be a program name with arguments.
10150 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10151 if test "${enable_libtool_lock+set}" = set; then
10152 enableval="$enable_libtool_lock"
10155 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10157 # Some flags need to be propagated to the compiler or linker for good
10161 # Find out which ABI we are using.
10162 echo 'int i;' > conftest.$ac_ext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164 (eval $ac_compile) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; then
10168 case `/usr/bin/file conftest.$ac_objext` in
10170 HPUX_IA64_MODE="32"
10173 HPUX_IA64_MODE="64"
10180 # Find out which ABI we are using.
10181 echo '#line 10181 "configure"' > conftest.$ac_ext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; then
10187 if test "$lt_cv_prog_gnu_ld" = yes; then
10188 case `/usr/bin/file conftest.$ac_objext` in
10190 LD="${LD-ld} -melf32bsmip"
10193 LD="${LD-ld} -melf32bmipn32"
10196 LD="${LD-ld} -melf64bmip"
10200 case `/usr/bin/file conftest.$ac_objext` in
10216 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10217 # Find out which ABI we are using.
10218 echo 'int i;' > conftest.$ac_ext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; then
10224 case "`/usr/bin/file conftest.o`" in
10228 LD="${LD-ld} -m elf_i386"
10230 ppc64-*linux*|powerpc64-*linux*)
10231 LD="${LD-ld} -m elf32ppclinux"
10234 LD="${LD-ld} -m elf_s390"
10237 LD="${LD-ld} -m elf32_sparc"
10244 LD="${LD-ld} -m elf_x86_64"
10246 ppc*-*linux*|powerpc*-*linux*)
10247 LD="${LD-ld} -m elf64ppc"
10250 LD="${LD-ld} -m elf64_s390"
10253 LD="${LD-ld} -m elf64_sparc"
10263 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10264 SAVE_CFLAGS="$CFLAGS"
10265 CFLAGS="$CFLAGS -belf"
10266 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10267 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10268 if test "${lt_cv_cc_needs_belf+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10277 cat >conftest.$ac_ext <<_ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>conftest.er1
10289 grep -v '^ *+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 lt_cv_cc_needs_belf=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 lt_cv_cc_needs_belf=no
10314 rm -f conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10317 ac_cpp='$CPP $CPPFLAGS'
10318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10323 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10324 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10327 CFLAGS="$SAVE_CFLAGS"
10333 need_locks="$enable_libtool_lock"
10338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10340 (test "X$CXX" != "Xg++"))) ; then
10342 ac_cpp='$CXXCPP $CPPFLAGS'
10343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10346 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10347 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10348 if test -z "$CXXCPP"; then
10349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 # Double quotes because CXXCPP needs to be expanded
10353 for CXXCPP in "$CXX -E" "/lib/cpp"
10355 ac_preproc_ok=false
10356 for ac_cxx_preproc_warn_flag in '' yes
10358 # Use a header file that comes with gcc, so configuring glibc
10359 # with a fresh cross-compiler works.
10360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10361 # <limits.h> exists even on freestanding compilers.
10362 # On the NeXT, cc -E runs the code through the compiler's parser,
10363 # not just through cpp. "Syntax error" is here to catch this case.
10364 cat >conftest.$ac_ext <<_ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10371 # include <limits.h>
10373 # include <assert.h>
10377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } >/dev/null; then
10385 if test -s conftest.err; then
10386 ac_cpp_err=$ac_cxx_preproc_warn_flag
10387 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10394 if test -z "$ac_cpp_err"; then
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 # Broken: fails on valid input.
10403 rm -f conftest.err conftest.$ac_ext
10405 # OK, works on sane cases. Now check whether non-existent headers
10406 # can be detected and how.
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 #include <ac_nonexistent.h>
10415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } >/dev/null; then
10423 if test -s conftest.err; then
10424 ac_cpp_err=$ac_cxx_preproc_warn_flag
10425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10432 if test -z "$ac_cpp_err"; then
10433 # Broken: success on invalid input.
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 # Passes both tests.
10443 rm -f conftest.err conftest.$ac_ext
10446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10447 rm -f conftest.err conftest.$ac_ext
10448 if $ac_preproc_ok; then
10453 ac_cv_prog_CXXCPP=$CXXCPP
10456 CXXCPP=$ac_cv_prog_CXXCPP
10458 ac_cv_prog_CXXCPP=$CXXCPP
10460 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10461 echo "${ECHO_T}$CXXCPP" >&6
10462 ac_preproc_ok=false
10463 for ac_cxx_preproc_warn_flag in '' yes
10465 # Use a header file that comes with gcc, so configuring glibc
10466 # with a fresh cross-compiler works.
10467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10468 # <limits.h> exists even on freestanding compilers.
10469 # On the NeXT, cc -E runs the code through the compiler's parser,
10470 # not just through cpp. "Syntax error" is here to catch this case.
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 # include <limits.h>
10480 # include <assert.h>
10484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } >/dev/null; then
10492 if test -s conftest.err; then
10493 ac_cpp_err=$ac_cxx_preproc_warn_flag
10494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10501 if test -z "$ac_cpp_err"; then
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 # Broken: fails on valid input.
10510 rm -f conftest.err conftest.$ac_ext
10512 # OK, works on sane cases. Now check whether non-existent headers
10513 # can be detected and how.
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 #include <ac_nonexistent.h>
10522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } >/dev/null; then
10530 if test -s conftest.err; then
10531 ac_cpp_err=$ac_cxx_preproc_warn_flag
10532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10539 if test -z "$ac_cpp_err"; then
10540 # Broken: success on invalid input.
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 # Passes both tests.
10550 rm -f conftest.err conftest.$ac_ext
10553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10554 rm -f conftest.err conftest.$ac_ext
10555 if $ac_preproc_ok; then
10558 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10559 See \`config.log' for more details." >&5
10560 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10561 See \`config.log' for more details." >&2;}
10562 { (exit 1); exit 1; }; }
10566 ac_cpp='$CXXCPP $CPPFLAGS'
10567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10575 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10576 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10578 if test -n "$ac_tool_prefix"; then
10579 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10583 echo "$as_me:$LINENO: checking for $ac_word" >&5
10584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10585 if test "${ac_cv_prog_F77+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 if test -n "$F77"; then
10589 ac_cv_prog_F77="$F77" # Let the user override the test.
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 F77=$ac_cv_prog_F77
10608 if test -n "$F77"; then
10609 echo "$as_me:$LINENO: result: $F77" >&5
10610 echo "${ECHO_T}$F77" >&6
10612 echo "$as_me:$LINENO: result: no" >&5
10613 echo "${ECHO_T}no" >&6
10616 test -n "$F77" && break
10619 if test -z "$F77"; then
10621 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10623 # Extract the first word of "$ac_prog", so it can be a program name with args.
10624 set dummy $ac_prog; ac_word=$2
10625 echo "$as_me:$LINENO: checking for $ac_word" >&5
10626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 if test -n "$ac_ct_F77"; then
10631 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_ac_ct_F77="$ac_prog"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10650 if test -n "$ac_ct_F77"; then
10651 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10652 echo "${ECHO_T}$ac_ct_F77" >&6
10654 echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10658 test -n "$ac_ct_F77" && break
10665 # Provide some information about the compiler.
10666 echo "$as_me:10666:" \
10667 "checking for Fortran 77 compiler version" >&5
10668 ac_compiler=`set X $ac_compile; echo $2`
10669 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10670 (eval $ac_compiler --version </dev/null >&5) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }
10674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10675 (eval $ac_compiler -v </dev/null >&5) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }
10679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10680 (eval $ac_compiler -V </dev/null >&5) 2>&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }
10686 # If we don't use `.F' as extension, the preprocessor is not run on the
10687 # input file. (Note that this only needs to work for GNU compilers.)
10688 ac_save_ext=$ac_ext
10690 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10691 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10692 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 cat >conftest.$ac_ext <<_ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_f77_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_compiler_gnu=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10736 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10737 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10738 ac_ext=$ac_save_ext
10739 ac_test_FFLAGS=${FFLAGS+set}
10740 ac_save_FFLAGS=$FFLAGS
10742 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10743 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10744 if test "${ac_cv_prog_f77_g+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 cat >conftest.$ac_ext <<_ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_f77_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_prog_f77_g=yes
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_prog_f77_g=no
10782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10786 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10787 if test "$ac_test_FFLAGS" = set; then
10788 FFLAGS=$ac_save_FFLAGS
10789 elif test $ac_cv_prog_f77_g = yes; then
10790 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10796 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10803 G77=`test $ac_compiler_gnu = yes && echo yes`
10805 ac_cpp='$CPP $CPPFLAGS'
10806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10814 # find the maximum length of command line arguments
10815 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10816 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10817 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 # On DJGPP, this test can blow up pretty badly due to problems in libc
10826 # (any single argument exceeding 2000 bytes causes a buffer overrun
10827 # during glob expansion). Even if it were fixed, the result of this
10828 # check would be larger than it should be.
10829 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10833 # Under GNU Hurd, this test is not required because there is
10834 # no limit to the length of command line arguments.
10835 # Libtool will interpret -1 as no limit whatsoever
10836 lt_cv_sys_max_cmd_len=-1;
10840 # On Win9x/ME, this test blows up -- it succeeds, but takes
10841 # about 5 minutes as the teststring grows exponentially.
10842 # Worse, since 9x/ME are not pre-emptively multitasking,
10843 # you end up with a "frozen" computer, even though with patience
10844 # the test eventually succeeds (with a max line length of 256k).
10845 # Instead, let's just punt: use the minimum linelength reported by
10846 # all of the supported platforms: 8192 (on NT/2K/XP).
10847 lt_cv_sys_max_cmd_len=8192;
10851 # On AmigaOS with pdksh, this test takes hours, literally.
10852 # So we just punt and use a minimum line length of 8192.
10853 lt_cv_sys_max_cmd_len=8192;
10856 netbsd* | freebsd* | openbsd* | darwin* )
10857 # This has been around since 386BSD, at least. Likely further.
10858 if test -x /sbin/sysctl; then
10859 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10860 elif test -x /usr/sbin/sysctl; then
10861 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10863 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10865 # And add a safety zone
10866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10870 # If test is not a shell built-in, we'll probably end up computing a
10871 # maximum length that is only half of the actual maximum length, but
10873 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10874 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10875 = "XX$teststring") >/dev/null 2>&1 &&
10876 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10877 lt_cv_sys_max_cmd_len=$new_result &&
10878 test $i != 17 # 1/2 MB should be enough
10881 teststring=$teststring$teststring
10884 # Add a significant safety factor because C++ compilers can tack on massive
10885 # amounts of additional arguments before passing them to the linker.
10886 # It appears as though 1/2 is a usable value.
10887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10893 if test -n $lt_cv_sys_max_cmd_len ; then
10894 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10895 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10897 echo "$as_me:$LINENO: result: none" >&5
10898 echo "${ECHO_T}none" >&6
10904 # Check for command to grab the raw symbol name followed by C symbol from nm.
10905 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10906 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10907 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 # These are sane defaults that work on at least a few old systems.
10912 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10914 # Character class describing NM global symbol codes.
10915 symcode='[BCDEGRST]'
10917 # Regexp to match symbols that can be accessed directly from C.
10918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10920 # Transform the above into a raw symbol and a C symbol.
10921 symxfrm='\1 \2\3 \3'
10923 # Transform an extracted symbol line into a proper C declaration
10924 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10926 # Transform an extracted symbol line into symbol name and symbol address
10927 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'"
10929 # Define system-specific variables.
10934 cygwin* | mingw* | pw32*)
10935 symcode='[ABCDGISTW]'
10937 hpux*) # Its linker distinguishes data from code symbols
10938 if test "$host_cpu" = ia64; then
10939 symcode='[ABCDEGRST]'
10941 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10942 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'"
10945 if test "$host_cpu" = ia64; then
10946 symcode='[ABCDGIRSTW]'
10947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10948 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'"
10951 irix* | nonstopux*)
10952 symcode='[BCDEGRST]'
10955 symcode='[BCDEGQRST]'
10965 # Handle CRLF in mingw tool chain
10969 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10973 # If we're using GNU nm, then use its standard symbol codes.
10974 case `$NM -V 2>&1` in
10975 *GNU* | *'with BFD'*)
10976 symcode='[ABCDGIRSTW]' ;;
10979 # Try without a prefix undercore, then with it.
10980 for ac_symprfx in "" "_"; do
10982 # Write the raw and C identifiers.
10983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10985 # Check to see that the pipe works correctly.
10989 cat > conftest.$ac_ext <<EOF
10994 void nm_test_func(){}
10998 int main(){nm_test_var='a';nm_test_func();return(0);}
11001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002 (eval $ac_compile) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; then
11006 # Now try to grab the symbols.
11008 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11009 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } && test -s "$nlist"; then
11013 # Try sorting and uniquifying the output.
11014 if sort "$nlist" | uniq > "$nlist"T; then
11015 mv -f "$nlist"T "$nlist"
11020 # Make sure that we snagged all the symbols we need.
11021 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11022 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11023 cat <<EOF > conftest.$ac_ext
11029 # Now generate the symbol file.
11030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11032 cat <<EOF >> conftest.$ac_ext
11033 #if defined (__STDC__) && __STDC__
11034 # define lt_ptr_t void *
11036 # define lt_ptr_t char *
11040 /* The mapping between symbol names and symbols. */
11045 lt_preloaded_symbols[] =
11048 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11049 cat <<\EOF >> conftest.$ac_ext
11057 # Now try linking the two files.
11058 mv conftest.$ac_objext conftstm.$ac_objext
11059 lt_save_LIBS="$LIBS"
11060 lt_save_CFLAGS="$CFLAGS"
11061 LIBS="conftstm.$ac_objext"
11062 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11070 LIBS="$lt_save_LIBS"
11071 CFLAGS="$lt_save_CFLAGS"
11073 echo "cannot find nm_test_func in $nlist" >&5
11076 echo "cannot find nm_test_var in $nlist" >&5
11079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11082 echo "$progname: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11085 rm -f conftest* conftst*
11087 # Do not use the global_symbol_pipe unless it works.
11088 if test "$pipe_works" = yes; then
11091 lt_cv_sys_global_symbol_pipe=
11097 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11098 lt_cv_sys_global_symbol_to_cdecl=
11100 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11101 echo "$as_me:$LINENO: result: failed" >&5
11102 echo "${ECHO_T}failed" >&6
11104 echo "$as_me:$LINENO: result: ok" >&5
11105 echo "${ECHO_T}ok" >&6
11108 echo "$as_me:$LINENO: checking for objdir" >&5
11109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11110 if test "${lt_cv_objdir+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 rm -f .libs 2>/dev/null
11114 mkdir .libs 2>/dev/null
11115 if test -d .libs; then
11118 # MS-DOS does not allow filenames that begin with a dot.
11121 rmdir .libs 2>/dev/null
11123 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11124 echo "${ECHO_T}$lt_cv_objdir" >&6
11125 objdir=$lt_cv_objdir
11133 # AIX sometimes has problems with the GCC collect2 program. For some
11134 # reason, if we set the COLLECT_NAMES environment variable, the problems
11135 # vanish in a puff of smoke.
11136 if test "X${COLLECT_NAMES+set}" != Xset; then
11138 export COLLECT_NAMES
11143 # Sed substitution that helps us do robust quoting. It backslashifies
11144 # metacharacters that are still active within double-quoted strings.
11145 Xsed='sed -e s/^X//'
11146 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11148 # Same as above, but do not quote variable references.
11149 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11151 # Sed substitution to delay expansion of an escaped shell variable in a
11152 # double_quote_subst'ed string.
11153 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11155 # Sed substitution to avoid accidental globbing in evaled expressions
11156 no_glob_subst='s/\*/\\\*/g'
11161 # Global variables:
11162 default_ofile=mklib
11163 can_build_shared=yes
11165 # All known linkers require a `.a' archive for static linking (except M$VC,
11166 # which needs '.lib').
11168 ltmain="$ac_aux_dir/ltmain.sh"
11169 ofile="$default_ofile"
11170 with_gnu_ld="$lt_cv_prog_gnu_ld"
11172 if test -n "$ac_tool_prefix"; then
11173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11174 set dummy ${ac_tool_prefix}ar; ac_word=$2
11175 echo "$as_me:$LINENO: checking for $ac_word" >&5
11176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11177 if test "${ac_cv_prog_AR+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 if test -n "$AR"; then
11181 ac_cv_prog_AR="$AR" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_AR="${ac_tool_prefix}ar"
11191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 if test -n "$AR"; then
11201 echo "$as_me:$LINENO: result: $AR" >&5
11202 echo "${ECHO_T}$AR" >&6
11204 echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6
11209 if test -z "$ac_cv_prog_AR"; then
11211 # Extract the first word of "ar", so it can be a program name with args.
11212 set dummy ar; ac_word=$2
11213 echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 if test -n "$ac_ct_AR"; then
11219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_ac_ct_AR="ar"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11235 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11239 if test -n "$ac_ct_AR"; then
11240 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11241 echo "${ECHO_T}$ac_ct_AR" >&6
11243 echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6
11249 AR="$ac_cv_prog_AR"
11252 if test -n "$ac_tool_prefix"; then
11253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11255 echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257 if test "${ac_cv_prog_RANLIB+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 if test -n "$RANLIB"; then
11261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 RANLIB=$ac_cv_prog_RANLIB
11280 if test -n "$RANLIB"; then
11281 echo "$as_me:$LINENO: result: $RANLIB" >&5
11282 echo "${ECHO_T}$RANLIB" >&6
11284 echo "$as_me:$LINENO: result: no" >&5
11285 echo "${ECHO_T}no" >&6
11289 if test -z "$ac_cv_prog_RANLIB"; then
11290 ac_ct_RANLIB=$RANLIB
11291 # Extract the first word of "ranlib", so it can be a program name with args.
11292 set dummy ranlib; ac_word=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 if test -n "$ac_ct_RANLIB"; then
11299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_ac_ct_RANLIB="ranlib"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11319 if test -n "$ac_ct_RANLIB"; then
11320 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11321 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11323 echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11327 RANLIB=$ac_ct_RANLIB
11329 RANLIB="$ac_cv_prog_RANLIB"
11332 if test -n "$ac_tool_prefix"; then
11333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11334 set dummy ${ac_tool_prefix}strip; ac_word=$2
11335 echo "$as_me:$LINENO: checking for $ac_word" >&5
11336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337 if test "${ac_cv_prog_STRIP+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 if test -n "$STRIP"; then
11341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 STRIP=$ac_cv_prog_STRIP
11360 if test -n "$STRIP"; then
11361 echo "$as_me:$LINENO: result: $STRIP" >&5
11362 echo "${ECHO_T}$STRIP" >&6
11364 echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6
11369 if test -z "$ac_cv_prog_STRIP"; then
11371 # Extract the first word of "strip", so it can be a program name with args.
11372 set dummy strip; ac_word=$2
11373 echo "$as_me:$LINENO: checking for $ac_word" >&5
11374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 if test -n "$ac_ct_STRIP"; then
11379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11388 ac_cv_prog_ac_ct_STRIP="strip"
11389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11399 if test -n "$ac_ct_STRIP"; then
11400 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11401 echo "${ECHO_T}$ac_ct_STRIP" >&6
11403 echo "$as_me:$LINENO: result: no" >&5
11404 echo "${ECHO_T}no" >&6
11409 STRIP="$ac_cv_prog_STRIP"
11414 old_CFLAGS="$CFLAGS"
11416 # Set sane defaults for various variables
11417 test -z "$AR" && AR=ar
11418 test -z "$AR_FLAGS" && AR_FLAGS=cru
11419 test -z "$AS" && AS=as
11420 test -z "$CC" && CC=cc
11421 test -z "$LTCC" && LTCC=$CC
11422 test -z "$DLLTOOL" && DLLTOOL=dlltool
11423 test -z "$LD" && LD=ld
11424 test -z "$LN_S" && LN_S="ln -s"
11425 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11426 test -z "$NM" && NM=nm
11427 test -z "$SED" && SED=sed
11428 test -z "$OBJDUMP" && OBJDUMP=objdump
11429 test -z "$RANLIB" && RANLIB=:
11430 test -z "$STRIP" && STRIP=:
11431 test -z "$ac_objext" && ac_objext=o
11433 # Determine commands to create old-style static archives.
11434 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11435 old_postinstall_cmds='chmod 644 $oldlib'
11436 old_postuninstall_cmds=
11438 if test -n "$RANLIB"; then
11441 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11444 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11450 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11452 # Only perform the check for file, if the check method requires it
11453 case $deplibs_check_method in
11455 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11456 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11457 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11458 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11466 lt_save_MAGIC_CMD="$MAGIC_CMD"
11467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11468 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11469 for ac_dir in $ac_dummy; do
11471 test -z "$ac_dir" && ac_dir=.
11472 if test -f $ac_dir/${ac_tool_prefix}file; then
11473 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11474 if test -n "$file_magic_test_file"; then
11475 case $deplibs_check_method in
11477 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11480 $EGREP "$file_magic_regex" > /dev/null; then
11485 *** Warning: the command libtool uses to detect shared libraries,
11486 *** $file_magic_cmd, produces output that libtool cannot recognize.
11487 *** The result is that libtool may fail to recognize shared libraries
11488 *** as such. This will affect the creation of libtool libraries that
11489 *** depend on shared libraries, but programs linked with such libtool
11490 *** libraries will work regardless of this problem. Nevertheless, you
11491 *** may want to report the problem to your system manager and/or to
11492 *** bug-libtool@gnu.org
11502 MAGIC_CMD="$lt_save_MAGIC_CMD"
11507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11508 if test -n "$MAGIC_CMD"; then
11509 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11510 echo "${ECHO_T}$MAGIC_CMD" >&6
11512 echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6
11516 if test -z "$lt_cv_path_MAGIC_CMD"; then
11517 if test -n "$ac_tool_prefix"; then
11518 echo "$as_me:$LINENO: checking for file" >&5
11519 echo $ECHO_N "checking for file... $ECHO_C" >&6
11520 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11528 lt_save_MAGIC_CMD="$MAGIC_CMD"
11529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11531 for ac_dir in $ac_dummy; do
11533 test -z "$ac_dir" && ac_dir=.
11534 if test -f $ac_dir/file; then
11535 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11536 if test -n "$file_magic_test_file"; then
11537 case $deplibs_check_method in
11539 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11542 $EGREP "$file_magic_regex" > /dev/null; then
11547 *** Warning: the command libtool uses to detect shared libraries,
11548 *** $file_magic_cmd, produces output that libtool cannot recognize.
11549 *** The result is that libtool may fail to recognize shared libraries
11550 *** as such. This will affect the creation of libtool libraries that
11551 *** depend on shared libraries, but programs linked with such libtool
11552 *** libraries will work regardless of this problem. Nevertheless, you
11553 *** may want to report the problem to your system manager and/or to
11554 *** bug-libtool@gnu.org
11564 MAGIC_CMD="$lt_save_MAGIC_CMD"
11569 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11570 if test -n "$MAGIC_CMD"; then
11571 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11572 echo "${ECHO_T}$MAGIC_CMD" >&6
11574 echo "$as_me:$LINENO: result: no" >&5
11575 echo "${ECHO_T}no" >&6
11588 enable_win32_dll=no
11590 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11591 if test "${enable_libtool_lock+set}" = set; then
11592 enableval="$enable_libtool_lock"
11595 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11598 # Check whether --with-pic or --without-pic was given.
11599 if test "${with_pic+set}" = set; then
11600 withval="$with_pic"
11601 pic_mode="$withval"
11605 test -z "$pic_mode" && pic_mode=default
11607 # Use C for the default configuration in the libtool script
11611 ac_cpp='$CPP $CPPFLAGS'
11612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11617 # Source file extension for C test sources.
11620 # Object file extension for compiled C test sources.
11624 # Code to be used in simple compile tests
11625 lt_simple_compile_test_code="int some_variable = 0;\n"
11627 # Code to be used in simple link tests
11628 lt_simple_link_test_code='int main(){return(0);}\n'
11631 # If no C compiler was specified, use CC.
11634 # Allow CC to be a program name with arguments.
11639 # Check for any special shared library compilation flags.
11642 if test "$GCC" = no; then
11645 lt_prog_cc_shlib='-belf'
11649 if test -n "$lt_prog_cc_shlib"; then
11650 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11651 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11652 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11654 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11655 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11656 lt_cv_prog_cc_can_build_shared=no
11662 # Check to make sure the static flag actually works.
11664 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11665 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11666 if test "${lt_prog_compiler_static_works+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 lt_prog_compiler_static_works=no
11670 save_LDFLAGS="$LDFLAGS"
11671 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11674 # The compiler can only warn and ignore the option if not recognized
11675 # So say no if there are warnings
11676 if test -s conftest.err; then
11677 # Append any errors to the config.log.
11678 cat conftest.err 1>&5
11680 lt_prog_compiler_static_works=yes
11684 LDFLAGS="$save_LDFLAGS"
11687 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11688 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11690 if test x"$lt_prog_compiler_static_works" = xyes; then
11693 lt_prog_compiler_static=
11699 lt_prog_compiler_no_builtin_flag=
11701 if test "$GCC" = yes; then
11702 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11705 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11706 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11707 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 lt_cv_prog_compiler_rtti_exceptions=no
11711 ac_outfile=conftest.$ac_objext
11712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11713 lt_compiler_flag="-fno-rtti -fno-exceptions"
11714 # Insert the option either (1) after the last *FLAGS variable, or
11715 # (2) before a word containing "conftest.", or (3) at the end.
11716 # Note that $ac_compile itself does not contain backslashes and begins
11717 # with a dollar sign (not a hyphen), so the echo should work correctly.
11718 # The option is referenced via a variable to avoid confusing sed.
11719 lt_compile=`echo "$ac_compile" | $SED \
11720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11722 -e 's:$: $lt_compiler_flag:'`
11723 (eval echo "\"\$as_me:11723: $lt_compile\"" >&5)
11724 (eval "$lt_compile" 2>conftest.err)
11726 cat conftest.err >&5
11727 echo "$as_me:11727: \$? = $ac_status" >&5
11728 if (exit $ac_status) && test -s "$ac_outfile"; then
11729 # The compiler can only warn and ignore the option if not recognized
11730 # So say no if there are warnings
11731 if test ! -s conftest.err; then
11732 lt_cv_prog_compiler_rtti_exceptions=yes
11738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11739 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11741 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11742 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11749 lt_prog_compiler_wl=
11750 lt_prog_compiler_pic=
11751 lt_prog_compiler_static=
11753 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11754 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11756 if test "$GCC" = yes; then
11757 lt_prog_compiler_wl='-Wl,'
11758 lt_prog_compiler_static='-static'
11762 # All AIX code is PIC.
11763 if test "$host_cpu" = ia64; then
11764 # AIX 5 now supports IA64 processor
11765 lt_prog_compiler_static='-Bstatic'
11770 # FIXME: we need at least 68020 code to build shared libraries, but
11771 # adding the `-m68020' flag to GCC prevents building anything better,
11773 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11776 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11777 # PIC is the default for these OSes.
11780 mingw* | pw32* | os2*)
11781 # This hack is so that the source file can tell whether it is being
11782 # built for inclusion in a dll (and should export symbols for example).
11783 lt_prog_compiler_pic='-DDLL_EXPORT'
11786 darwin* | rhapsody*)
11787 # PIC is the default on this platform
11788 # Common symbols not allowed in MH_DYLIB files
11789 lt_prog_compiler_pic='-fno-common'
11793 # Just because we use GCC doesn't mean we suddenly get shared libraries
11794 # on systems that don't support them.
11795 lt_prog_compiler_can_build_shared=no
11800 if test -d /usr/nec; then
11801 lt_prog_compiler_pic=-Kconform_pic
11806 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11807 # not for PA HP-UX.
11808 case "$host_cpu" in
11813 lt_prog_compiler_pic='-fPIC'
11819 lt_prog_compiler_pic='-fPIC'
11823 # PORTME Check for flag to pass linker flags through the system compiler.
11826 lt_prog_compiler_wl='-Wl,'
11827 if test "$host_cpu" = ia64; then
11828 # AIX 5 now supports IA64 processor
11829 lt_prog_compiler_static='-Bstatic'
11831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11835 # PIC is the default on this platform
11836 # Common symbols not allowed in MH_DYLIB files
11837 case "$cc_basename" in
11839 lt_prog_compiler_pic='-qnocommon'
11840 lt_prog_compiler_wl='-Wl,'
11845 mingw* | pw32* | os2*)
11846 # This hack is so that the source file can tell whether it is being
11847 # built for inclusion in a dll (and should export symbols for example).
11848 lt_prog_compiler_pic='-DDLL_EXPORT'
11851 hpux9* | hpux10* | hpux11*)
11852 lt_prog_compiler_wl='-Wl,'
11853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11854 # not for PA HP-UX.
11855 case "$host_cpu" in
11860 lt_prog_compiler_pic='+Z'
11863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11864 lt_prog_compiler_static='${wl}-a ${wl}archive'
11867 irix5* | irix6* | nonstopux*)
11868 lt_prog_compiler_wl='-Wl,'
11869 # PIC (with -KPIC) is the default.
11870 lt_prog_compiler_static='-non_shared'
11874 lt_prog_compiler_pic='-KPIC'
11875 lt_prog_compiler_static='-Bstatic'
11881 lt_prog_compiler_wl='-Wl,'
11882 lt_prog_compiler_pic='-KPIC'
11883 lt_prog_compiler_static='-static'
11886 lt_prog_compiler_wl='-Wl,'
11887 # All Alpha code is PIC.
11888 lt_prog_compiler_static='-non_shared'
11893 osf3* | osf4* | osf5*)
11894 lt_prog_compiler_wl='-Wl,'
11895 # All OSF/1 code is PIC.
11896 lt_prog_compiler_static='-non_shared'
11900 lt_prog_compiler_pic='-Kpic'
11901 lt_prog_compiler_static='-dn'
11905 lt_prog_compiler_wl='-Wl,'
11906 lt_prog_compiler_pic='-KPIC'
11907 lt_prog_compiler_static='-Bstatic'
11911 lt_prog_compiler_wl='-Qoption ld '
11912 lt_prog_compiler_pic='-PIC'
11913 lt_prog_compiler_static='-Bstatic'
11916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11917 lt_prog_compiler_wl='-Wl,'
11918 lt_prog_compiler_pic='-KPIC'
11919 lt_prog_compiler_static='-Bstatic'
11923 if test -d /usr/nec ;then
11924 lt_prog_compiler_pic='-Kconform_pic'
11925 lt_prog_compiler_static='-Bstatic'
11930 lt_prog_compiler_pic='-pic'
11931 lt_prog_compiler_static='-Bstatic'
11935 lt_prog_compiler_can_build_shared=no
11940 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11941 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11944 # Check to make sure the PIC flag actually works.
11946 if test -n "$lt_prog_compiler_pic"; then
11948 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11949 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11950 if test "${lt_prog_compiler_pic_works+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 lt_prog_compiler_pic_works=no
11954 ac_outfile=conftest.$ac_objext
11955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11956 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11957 # Insert the option either (1) after the last *FLAGS variable, or
11958 # (2) before a word containing "conftest.", or (3) at the end.
11959 # Note that $ac_compile itself does not contain backslashes and begins
11960 # with a dollar sign (not a hyphen), so the echo should work correctly.
11961 # The option is referenced via a variable to avoid confusing sed.
11962 lt_compile=`echo "$ac_compile" | $SED \
11963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11965 -e 's:$: $lt_compiler_flag:'`
11966 (eval echo "\"\$as_me:11966: $lt_compile\"" >&5)
11967 (eval "$lt_compile" 2>conftest.err)
11969 cat conftest.err >&5
11970 echo "$as_me:11970: \$? = $ac_status" >&5
11971 if (exit $ac_status) && test -s "$ac_outfile"; then
11972 # The compiler can only warn and ignore the option if not recognized
11973 # So say no if there are warnings
11974 if test ! -s conftest.err; then
11975 lt_prog_compiler_pic_works=yes
11981 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11982 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11984 if test x"$lt_prog_compiler_pic_works" = xyes; then
11985 case $lt_prog_compiler_pic in
11987 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11990 lt_prog_compiler_pic=
11991 lt_prog_compiler_can_build_shared=no
11996 # For platforms which do not support PIC, -DPIC is meaningless:
11998 lt_prog_compiler_pic=
12001 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12005 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 lt_cv_prog_compiler_c_o=no
12011 $rm -r conftest 2>/dev/null
12015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12017 lt_compiler_flag="-o out/conftest2.$ac_objext"
12018 # Insert the option either (1) after the last *FLAGS variable, or
12019 # (2) before a word containing "conftest.", or (3) at the end.
12020 # Note that $ac_compile itself does not contain backslashes and begins
12021 # with a dollar sign (not a hyphen), so the echo should work correctly.
12022 lt_compile=`echo "$ac_compile" | $SED \
12023 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12025 -e 's:$: $lt_compiler_flag:'`
12026 (eval echo "\"\$as_me:12026: $lt_compile\"" >&5)
12027 (eval "$lt_compile" 2>out/conftest.err)
12029 cat out/conftest.err >&5
12030 echo "$as_me:12030: \$? = $ac_status" >&5
12031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12033 # The compiler can only warn and ignore the option if not recognized
12034 # So say no if there are warnings
12035 if test ! -s out/conftest.err; then
12036 lt_cv_prog_compiler_c_o=yes
12041 # SGI C++ compiler will create directory out/ii_files/ for
12042 # template instantiation
12043 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12044 $rm out/* && rmdir out
12050 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12051 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12054 hard_links="nottested"
12055 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12056 # do not overwrite the value of need_locks provided by the user
12057 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12058 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12063 ln conftest.a conftest.b 2>&5 || hard_links=no
12064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12065 echo "$as_me:$LINENO: result: $hard_links" >&5
12066 echo "${ECHO_T}$hard_links" >&6
12067 if test "$hard_links" = no; then
12068 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12069 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12076 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12077 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12080 allow_undefined_flag=
12081 enable_shared_with_static_runtimes=no
12083 archive_expsym_cmds=
12084 old_archive_From_new_cmds=
12085 old_archive_from_expsyms_cmds=
12086 export_dynamic_flag_spec=
12087 whole_archive_flag_spec=
12088 thread_safe_flag_spec=
12089 hardcode_libdir_flag_spec=
12090 hardcode_libdir_flag_spec_ld=
12091 hardcode_libdir_separator=
12093 hardcode_minus_L=no
12094 hardcode_shlibpath_var=unsupported
12095 link_all_deplibs=unknown
12096 hardcode_automatic=no
12098 module_expsym_cmds=
12099 always_export_symbols=no
12100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12101 # include_expsyms should be a list of space-separated symbols to be *always*
12102 # included in the symbol list
12104 # exclude_expsyms can be an extended regexp of symbols to exclude
12105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12107 # as well as any symbol that contains `d'.
12108 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12110 # platforms (ab)use it in PIC code, but their linkers get confused if
12111 # the symbol is explicitly referenced. Since portable code cannot
12112 # rely on this symbol name, it's probably fine to never include it in
12113 # preloaded symbol tables.
12114 extract_expsyms_cmds=
12117 cygwin* | mingw* | pw32*)
12118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12119 # When not using gcc, we currently assume that we are using
12120 # Microsoft Visual C++.
12121 if test "$GCC" != yes; then
12131 if test "$with_gnu_ld" = yes; then
12132 # If archive_cmds runs LD, not CC, wlarc should be empty
12135 # See if GNU ld supports shared libraries.
12137 aix3* | aix4* | aix5*)
12138 # On AIX/PPC, the GNU linker is very broken
12139 if test "$host_cpu" != ia64; then
12143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12144 *** to be unable to reliably create shared libraries on AIX.
12145 *** Therefore, libtool is disabling shared libraries support. If you
12146 *** really care for shared libraries, you may want to modify your PATH
12147 *** so that a non-GNU linker is found, and then restart.
12154 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)'
12155 hardcode_libdir_flag_spec='-L$libdir'
12156 hardcode_minus_L=yes
12158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12159 # that the semantics of dynamic libraries on AmigaOS, at least up
12160 # to version 4, is to share data among multiple programs linked
12161 # with the same dynamic library. Since this doesn't match the
12162 # behavior of shared libraries on other platforms, we can't use
12168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12169 allow_undefined_flag=unsupported
12170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12171 # support --undefined. This deserves some investigation. FIXME
12172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12178 cygwin* | mingw* | pw32*)
12179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12180 # as there is no search path for DLLs.
12181 hardcode_libdir_flag_spec='-L$libdir'
12182 allow_undefined_flag=unsupported
12183 always_export_symbols=no
12184 enable_shared_with_static_runtimes=yes
12185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12189 # If the export-symbols file already is a .def file (1st line
12190 # is EXPORTS), use it as is; otherwise, prepend...
12191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12192 cp $export_symbols $output_objdir/$soname.def;
12194 echo EXPORTS > $output_objdir/$soname.def;
12195 cat $export_symbols >> $output_objdir/$soname.def;
12197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12205 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12218 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12219 *** create shared libraries on Solaris systems. Therefore, libtool
12220 *** is disabling shared libraries support. We urge you to upgrade GNU
12221 *** binutils to release 2.9.1 or newer. Another option is to modify
12222 *** your PATH or compiler configuration so that the native linker is
12223 *** used, and then restart.
12226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12237 hardcode_direct=yes
12238 hardcode_shlibpath_var=no
12242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12243 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 archive_cmds="$tmp_archive_cmds"
12245 supports_anon_versioning=no
12246 case `$LD -v 2>/dev/null` in
12247 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12250 *\ 2.11.*) ;; # other 2.11 versions
12251 *) supports_anon_versioning=yes ;;
12253 if test $supports_anon_versioning = yes; then
12254 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12256 $echo "local: *; };" >> $output_objdir/$libname.ver~
12257 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12259 archive_expsym_cmds="$tmp_archive_cmds"
12267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12276 if test "$ld_shlibs" = yes; then
12277 runpath_var=LD_RUN_PATH
12278 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12279 export_dynamic_flag_spec='${wl}--export-dynamic'
12280 # ancient GNU ld didn't support --whole-archive et. al.
12281 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12282 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12284 whole_archive_flag_spec=
12288 # PORTME fill in a description of your system's linker (not GNU ld)
12291 allow_undefined_flag=unsupported
12292 always_export_symbols=yes
12293 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'
12294 # Note: this linker hardcodes the directories in LIBPATH if there
12295 # are no directories specified by -L.
12296 hardcode_minus_L=yes
12297 if test "$GCC" = yes && test -z "$link_static_flag"; then
12298 # Neither direct hardcoding nor static linking is supported with a
12300 hardcode_direct=unsupported
12305 if test "$host_cpu" = ia64; then
12306 # On IA64, the linker does run time linking by default, so we don't
12307 # have to do anything special.
12308 aix_use_runtimelinking=no
12309 exp_sym_flag='-Bexport'
12312 # If we're using GNU nm, then we don't want the "-C" option.
12313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12314 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12315 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'
12317 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'
12319 aix_use_runtimelinking=no
12321 # Test if we are trying to use run time linking or normal
12322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12323 # need to do runtime linking.
12324 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12325 for ld_flag in $LDFLAGS; do
12326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12327 aix_use_runtimelinking=yes
12333 exp_sym_flag='-bexport'
12334 no_entry_flag='-bnoentry'
12337 # When large executables or shared objects are built, AIX ld can
12338 # have problems creating the table of contents. If linking a library
12339 # or program results in "error TOC overflow" add -mminimal-toc to
12340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12344 hardcode_direct=yes
12345 hardcode_libdir_separator=':'
12346 link_all_deplibs=yes
12348 if test "$GCC" = yes; then
12349 case $host_os in aix4.012|aix4.012.*)
12350 # We only want to do this on AIX 4.2 and lower, the check
12351 # below for broken collect2 doesn't work under 4.3+
12352 collect2name=`${CC} -print-prog-name=collect2`
12353 if test -f "$collect2name" && \
12354 strings "$collect2name" | grep resolve_lib_name >/dev/null
12356 # We have reworked collect2
12357 hardcode_direct=yes
12359 # We have old collect2
12360 hardcode_direct=unsupported
12361 # It fails to find uninstalled libraries when the uninstalled
12362 # path is not listed in the libpath. Setting hardcode_minus_L
12363 # to unsupported forces relinking
12364 hardcode_minus_L=yes
12365 hardcode_libdir_flag_spec='-L$libdir'
12366 hardcode_libdir_separator=
12369 shared_flag='-shared'
12372 if test "$host_cpu" = ia64; then
12373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12374 # chokes on -Wl,-G. The following line is correct:
12377 if test "$aix_use_runtimelinking" = yes; then
12378 shared_flag='${wl}-G'
12380 shared_flag='${wl}-bM:SRE'
12385 # It seems that -bexpall does not export symbols beginning with
12386 # underscore (_), so it is better to generate a list of symbols to export.
12387 always_export_symbols=yes
12388 if test "$aix_use_runtimelinking" = yes; then
12389 # Warning - without using the other runtime loading flags (-brtl),
12390 # -berok will link without error, but may produce a broken library.
12391 allow_undefined_flag='-berok'
12392 # Determine the default libpath from the value encoded in an empty executable.
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag"
12418 || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12433 # Check for a 64-bit object if we didn't find anything.
12434 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; }
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12446 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"
12448 if test "$host_cpu" = ia64; then
12449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12450 allow_undefined_flag="-z nodefs"
12451 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"
12453 # Determine the default libpath from the value encoded in an empty executable.
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12494 # Check for a 64-bit object if we didn't find anything.
12495 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; }
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12502 rm -f conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12507 # Warning - without using the other run time loading flags,
12508 # -berok will link without error, but may produce a broken library.
12509 no_undefined_flag=' ${wl}-bernotok'
12510 allow_undefined_flag=' ${wl}-berok'
12511 # -bexpall does not export symbols beginning with underscore (_)
12512 always_export_symbols=yes
12513 # Exported symbols can be pulled into shared objects from archives
12514 whole_archive_flag_spec=' '
12515 archive_cmds_need_lc=yes
12516 # This is similar to how AIX traditionally builds it's shared libraries.
12517 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'
12523 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)'
12524 hardcode_libdir_flag_spec='-L$libdir'
12525 hardcode_minus_L=yes
12526 # see comment about different semantics on the GNU ld section
12531 export_dynamic_flag_spec=-rdynamic
12534 cygwin* | mingw* | pw32*)
12535 # When not using gcc, we currently assume that we are using
12536 # Microsoft Visual C++.
12537 # hardcode_libdir_flag_spec is actually meaningless, as there is
12538 # no search path for DLLs.
12539 hardcode_libdir_flag_spec=' '
12540 allow_undefined_flag=unsupported
12541 # Tell ltmain to make .lib files, not .a files.
12543 # Tell ltmain to make .dll files, not .so files.
12545 # FIXME: Setting linknames here is a bad hack.
12546 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12547 # The linker will automatically build a .lib file if we build a DLL.
12548 old_archive_From_new_cmds='true'
12549 # FIXME: Should let the user specify the lib program.
12550 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12551 fix_srcfile_path='`cygpath -w "$srcfile"`'
12552 enable_shared_with_static_runtimes=yes
12555 darwin* | rhapsody*)
12557 rhapsody* | darwin1.[012])
12558 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12561 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12562 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12564 case ${MACOSX_DEPLOYMENT_TARGET} in
12566 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12569 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12575 archive_cmds_need_lc=no
12577 hardcode_automatic=yes
12578 hardcode_shlibpath_var=unsupported
12579 whole_archive_flag_spec=''
12580 link_all_deplibs=yes
12581 if test "$GCC" = yes ; then
12582 output_verbose_link_cmd='echo'
12583 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12584 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12586 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}'
12587 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}'
12589 case "$cc_basename" in
12591 output_verbose_link_cmd='echo'
12592 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12593 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12594 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12595 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}'
12596 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}'
12606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12607 hardcode_libdir_flag_spec='-L$libdir'
12608 hardcode_shlibpath_var=no
12615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12616 # support. Future versions do this automatically, but an explicit c++rt0.o
12617 # does not break anything, and helps significantly (at the cost of a little
12620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12621 hardcode_libdir_flag_spec='-R$libdir'
12622 hardcode_direct=yes
12623 hardcode_shlibpath_var=no
12626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12629 hardcode_direct=yes
12630 hardcode_minus_L=yes
12631 hardcode_shlibpath_var=no
12634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12635 freebsd* | kfreebsd*-gnu)
12636 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12637 hardcode_libdir_flag_spec='-R$libdir'
12638 hardcode_direct=yes
12639 hardcode_shlibpath_var=no
12643 if test "$GCC" = yes; then
12644 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'
12646 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'
12648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12649 hardcode_libdir_separator=:
12650 hardcode_direct=yes
12652 # hardcode_minus_L: Not really in the search PATH,
12653 # but as the default location of the library.
12654 hardcode_minus_L=yes
12655 export_dynamic_flag_spec='${wl}-E'
12659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12660 case "$host_cpu" in
12662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12669 case "$host_cpu" in
12671 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12678 if test "$with_gnu_ld" = no; then
12679 case "$host_cpu" in
12681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12682 hardcode_libdir_flag_spec_ld='+b $libdir'
12683 hardcode_libdir_separator=:
12685 hardcode_shlibpath_var=no
12688 hardcode_libdir_flag_spec='-L$libdir'
12690 hardcode_shlibpath_var=no
12692 # hardcode_minus_L: Not really in the search PATH,
12693 # but as the default location of the library.
12694 hardcode_minus_L=yes
12697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12698 hardcode_libdir_separator=:
12699 hardcode_direct=yes
12700 export_dynamic_flag_spec='${wl}-E'
12702 # hardcode_minus_L: Not really in the search PATH,
12703 # but as the default location of the library.
12704 hardcode_minus_L=yes
12710 irix5* | irix6* | nonstopux*)
12711 if test "$GCC" = yes; then
12712 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'
12714 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'
12715 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12718 hardcode_libdir_separator=:
12719 link_all_deplibs=yes
12723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12726 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12728 hardcode_libdir_flag_spec='-R$libdir'
12729 hardcode_direct=yes
12730 hardcode_shlibpath_var=no
12734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12735 hardcode_direct=yes
12736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12737 hardcode_libdir_separator=:
12738 hardcode_shlibpath_var=no
12742 hardcode_direct=yes
12743 hardcode_shlibpath_var=no
12744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12746 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12747 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12748 export_dynamic_flag_spec='${wl}-E'
12751 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_libdir_flag_spec='-R$libdir'
12756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12764 hardcode_libdir_flag_spec='-L$libdir'
12765 hardcode_minus_L=yes
12766 allow_undefined_flag=unsupported
12767 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'
12768 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12772 if test "$GCC" = yes; then
12773 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12774 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'
12776 allow_undefined_flag=' -expect_unresolved \*'
12777 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'
12779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12780 hardcode_libdir_separator=:
12783 osf4* | osf5*) # as osf3* with the addition of -msym flag
12784 if test "$GCC" = yes; then
12785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12786 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'
12787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12789 allow_undefined_flag=' -expect_unresolved \*'
12790 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'
12791 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12792 $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'
12794 # Both c and cxx compiler support -rpath directly
12795 hardcode_libdir_flag_spec='-rpath $libdir'
12797 hardcode_libdir_separator=:
12801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12802 hardcode_shlibpath_var=no
12803 export_dynamic_flag_spec='${wl}-Bexport'
12804 runpath_var=LD_RUN_PATH
12805 hardcode_runpath_var=yes
12809 no_undefined_flag=' -z text'
12810 if test "$GCC" = yes; then
12811 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12812 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12813 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12816 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12819 hardcode_libdir_flag_spec='-R$libdir'
12820 hardcode_shlibpath_var=no
12822 solaris2.[0-5] | solaris2.[0-5].*) ;;
12823 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12824 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12826 link_all_deplibs=yes
12830 if test "x$host_vendor" = xsequent; then
12831 # Use $CC to link under sequent, because it throws in some extra .o
12832 # files that make .init and .fini sections work.
12833 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12835 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12837 hardcode_libdir_flag_spec='-L$libdir'
12838 hardcode_direct=yes
12839 hardcode_minus_L=yes
12840 hardcode_shlibpath_var=no
12844 case $host_vendor in
12846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12847 hardcode_direct=yes # is this really true???
12850 ## LD is ld it makes a PLAMLIB
12851 ## CC just makes a GrossModule.
12852 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12853 reload_cmds='$CC -r -o $output$reload_objs'
12857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12861 runpath_var='LD_RUN_PATH'
12862 hardcode_shlibpath_var=no
12866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_shlibpath_var=no
12868 export_dynamic_flag_spec='-Bexport'
12872 if test -d /usr/nec; then
12873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12874 hardcode_shlibpath_var=no
12875 runpath_var=LD_RUN_PATH
12876 hardcode_runpath_var=yes
12882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12883 hardcode_direct=yes
12884 hardcode_minus_L=no
12885 hardcode_shlibpath_var=no
12886 hardcode_runpath_var=yes
12887 runpath_var=LD_RUN_PATH
12890 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12891 no_undefined_flag='${wl}-z ${wl}text'
12892 if test "$GCC" = yes; then
12893 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12897 runpath_var='LD_RUN_PATH'
12898 hardcode_shlibpath_var=no
12902 no_undefined_flag=' -z text'
12903 # $CC -shared without GNU ld will not create a library from C++
12904 # object files and a static libstdc++, better avoid it by now
12905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12908 hardcode_libdir_flag_spec=
12909 hardcode_shlibpath_var=no
12910 runpath_var='LD_RUN_PATH'
12914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_libdir_flag_spec='-L$libdir'
12916 hardcode_shlibpath_var=no
12925 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12926 echo "${ECHO_T}$ld_shlibs" >&6
12927 test "$ld_shlibs" = no && can_build_shared=no
12929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12930 if test "$GCC" = yes; then
12931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12935 # Do we need to explicitly link libc?
12937 case "x$archive_cmds_need_lc" in
12939 # Assume -lc should be added
12940 archive_cmds_need_lc=yes
12942 if test "$enable_shared" = yes && test "$GCC" = yes; then
12943 case $archive_cmds in
12945 # FIXME: we may have to deal with multi-command sequences.
12948 # Test whether the compiler implicitly links with -lc since on some
12949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12950 # to ld, don't add -lc before -lgcc.
12951 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } 2>conftest.err; then
12963 libobjs=conftest.$ac_objext
12965 wl=$lt_prog_compiler_wl
12971 lt_save_allow_undefined_flag=$allow_undefined_flag
12972 allow_undefined_flag=
12973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12974 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }
12979 archive_cmds_need_lc=no
12981 archive_cmds_need_lc=yes
12983 allow_undefined_flag=$lt_save_allow_undefined_flag
12985 cat conftest.err 1>&5
12988 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12989 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12996 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12998 library_names_spec=
12999 libname_spec='lib$name'
13003 postuninstall_cmds=
13007 shlibpath_overrides_runpath=unknown
13009 dynamic_linker="$host_os ld.so"
13010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13011 if test "$GCC" = yes; then
13012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13014 # if the path contains ";" then we assume it to be the separator
13015 # otherwise default to the standard path separator (i.e. ":") - it is
13016 # assumed that no part of a normal pathname contains ";" but that should
13017 # okay in the real world where ";" in dirpaths is itself problematic.
13018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13025 need_lib_prefix=unknown
13026 hardcode_into_libs=no
13028 # when you set need_version to no, make sure it does not cause -set_version
13029 # flags to be left without arguments
13030 need_version=unknown
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13036 shlibpath_var=LIBPATH
13038 # AIX 3 has no versioning support, so we append a major version to the name.
13039 soname_spec='${libname}${release}${shared_ext}$major'
13046 hardcode_into_libs=yes
13047 if test "$host_cpu" = ia64; then
13048 # AIX 5 supports IA64
13049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13050 shlibpath_var=LD_LIBRARY_PATH
13052 # With GCC up to 2.95.x, collect2 would create an import file
13053 # for dependence libraries. The import file would start with
13054 # the line `#! .'. This would cause the generated library to
13055 # depend on `.', always an invalid library. This was fixed in
13056 # development snapshots of GCC prior to 3.0.
13058 aix4 | aix4.[01] | aix4.[01].*)
13059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13064 can_build_shared=no
13068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13069 # soname into executable. Probably we can add versioning support to
13070 # collect2, so additional links can be useful in future.
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13073 # instead of lib<name>.a to let people know that these are not
13074 # typical AIX shared libraries.
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077 # We preserve .a as extension for shared libraries through AIX4.2
13078 # and later when we are not doing run time linking.
13079 library_names_spec='${libname}${release}.a $libname.a'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13082 shlibpath_var=LIBPATH
13087 library_names_spec='$libname.ixlibrary $libname.a'
13088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13089 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'
13093 library_names_spec='${libname}${shared_ext}'
13094 dynamic_linker="$host_os ld.so"
13095 shlibpath_var=LIBRARY_PATH
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
13103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13107 # the default ld.so.conf also contains /usr/contrib/lib and
13108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13109 # libtool to hard-code these into programs
13112 cygwin* | mingw* | pw32*)
13113 version_type=windows
13118 case $GCC,$host_os in
13119 yes,cygwin* | yes,mingw* | yes,pw32*)
13120 library_names_spec='$libname.dll.a'
13121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13122 postinstall_cmds='base_file=`basename \${file}`~
13123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13124 dldir=$destdir/`dirname \$dlpath`~
13125 test -d \$dldir || mkdir -p \$dldir~
13126 $install_prog $dir/$dlname \$dldir/$dlname'
13127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13128 dlpath=$dir/\$dldll~
13130 shlibpath_overrides_runpath=yes
13134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13139 # MinGW DLLs use traditional 'lib' prefix
13140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13143 # It is most probably a Windows format PATH printed by
13144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13145 # path with ; separators, and with drive letters. We can handle the
13146 # drive letters (cygwin fileutils understands them), so leave them,
13147 # especially as we might pass files found there to a mingw objdump,
13148 # which wouldn't understand a cygwinified path. Ahh.
13149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13155 # pw32 DLLs use 'pw' prefix rather than 'lib'
13156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13165 dynamic_linker='Win32 ld.exe'
13166 # FIXME: first we should search . and the directory the executable is in
13170 darwin* | rhapsody*)
13171 dynamic_linker="$host_os dyld"
13172 version_type=darwin
13175 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13176 soname_spec='${libname}${release}${major}$shared_ext'
13177 shlibpath_overrides_runpath=yes
13178 shlibpath_var=DYLD_LIBRARY_PATH
13179 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13180 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13181 if test "$GCC" = yes; then
13182 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"`
13184 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13194 soname_spec='${libname}${release}${shared_ext}$major'
13195 shlibpath_var=LD_LIBRARY_PATH
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 shlibpath_var=LD_LIBRARY_PATH
13209 shlibpath_overrides_runpath=no
13210 hardcode_into_libs=yes
13211 dynamic_linker='GNU ld.so'
13215 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13216 version_type=freebsd-$objformat
13217 case $version_type in
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13228 shlibpath_var=LD_LIBRARY_PATH
13231 shlibpath_overrides_runpath=yes
13233 freebsd3.01* | freebsdelf3.01*)
13234 shlibpath_overrides_runpath=yes
13235 hardcode_into_libs=yes
13238 shlibpath_overrides_runpath=no
13239 hardcode_into_libs=yes
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 hardcode_into_libs=yes
13254 hpux9* | hpux10* | hpux11*)
13255 # Give a soname corresponding to the major version so that dld.sl refuses to
13256 # link against other versions.
13260 case "$host_cpu" in
13263 hardcode_into_libs=yes
13264 dynamic_linker="$host_os dld.so"
13265 shlibpath_var=LD_LIBRARY_PATH
13266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268 soname_spec='${libname}${release}${shared_ext}$major'
13269 if test "X$HPUX_IA64_MODE" = X32; then
13270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13278 hardcode_into_libs=yes
13279 dynamic_linker="$host_os dld.sl"
13280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289 dynamic_linker="$host_os dld.sl"
13290 shlibpath_var=SHLIB_PATH
13291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13297 postinstall_cmds='chmod 555 $lib'
13300 irix5* | irix6* | nonstopux*)
13302 nonstopux*) version_type=nonstopux ;;
13304 if test "$lt_cv_prog_gnu_ld" = yes; then
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13315 irix5* | nonstopux*)
13316 libsuff= shlibsuff=
13319 case $LD in # libtool.m4 will add one of these switches to LD
13320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13321 libsuff= shlibsuff= libmagic=32-bit;;
13322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13323 libsuff=32 shlibsuff=N32 libmagic=N32;;
13324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13326 *) libsuff= shlibsuff= libmagic=never-match;;
13330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13331 shlibpath_overrides_runpath=no
13332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13334 hardcode_into_libs=yes
13337 # No shared lib support for Linux oldld, aout, or coff.
13338 linux*oldld* | linux*aout* | linux*coff*)
13342 # This must be Linux ELF.
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348 soname_spec='${libname}${release}${shared_ext}$major'
13349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=no
13352 # This implies no fast_install, which is unacceptable.
13353 # Some rework will be needed to allow for fast_install
13354 # before this can be enabled.
13355 hardcode_into_libs=yes
13357 # Append ld.so.conf contents to the search path
13358 if test -f /etc/ld.so.conf; then
13359 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13363 # We used to test for /lib/ld.so.1 and disable shared libraries on
13364 # powerpc, because MkLinux only supported shared libraries with the
13365 # GNU dynamic linker. Since this was broken with cross compilers,
13366 # most powerpc-linux boxes support dynamic linking these days and
13367 # people can always --disable-shared, the test was removed, and we
13368 # assume the GNU/Linux dynamic linker is in use.
13369 dynamic_linker='GNU/Linux ld.so'
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=no
13380 hardcode_into_libs=yes
13381 dynamic_linker='GNU ld.so'
13388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13391 dynamic_linker='NetBSD (a.out) ld.so'
13393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13394 soname_spec='${libname}${release}${shared_ext}$major'
13395 dynamic_linker='NetBSD ld.elf_so'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 hardcode_into_libs=yes
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=yes
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=yes
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13425 shlibpath_var=LD_LIBRARY_PATH
13426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13428 openbsd2.[89] | openbsd2.[89].*)
13429 shlibpath_overrides_runpath=no
13432 shlibpath_overrides_runpath=yes
13436 shlibpath_overrides_runpath=yes
13441 libname_spec='$name'
13444 library_names_spec='$libname${shared_ext} $libname.a'
13445 dynamic_linker='OS/2 ld.exe'
13446 shlibpath_var=LIBPATH
13449 osf3* | osf4* | osf5*)
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13462 soname_spec='${libname}${release}${shared_ext}$major'
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 shlibpath_var=LD_LIBRARY_PATH
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=yes
13475 hardcode_into_libs=yes
13476 # ldd complains unless libraries are executable
13477 postinstall_cmds='chmod +x $lib'
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13484 shlibpath_var=LD_LIBRARY_PATH
13485 shlibpath_overrides_runpath=yes
13486 if test "$with_gnu_ld" = yes; then
13492 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 case $host_vendor in
13499 shlibpath_overrides_runpath=no
13501 export_dynamic_flag_spec='${wl}-Blargedynsym'
13502 runpath_var=LD_RUN_PATH
13510 shlibpath_overrides_runpath=no
13511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13517 if test -d /usr/nec ;then
13519 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13520 soname_spec='$libname${shared_ext}.$major'
13521 shlibpath_var=LD_LIBRARY_PATH
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13536 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13537 echo "${ECHO_T}$dynamic_linker" >&6
13538 test "$dynamic_linker" = no && can_build_shared=no
13540 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13543 if test -n "$hardcode_libdir_flag_spec" || \
13544 test -n "$runpath_var" || \
13545 test "X$hardcode_automatic" = "Xyes" ; then
13547 # We can hardcode non-existant directories.
13548 if test "$hardcode_direct" != no &&
13549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550 # have to relink, otherwise we might link with an installed library
13551 # when we should be linking with a yet-to-be-installed one
13552 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13553 test "$hardcode_minus_L" != no; then
13554 # Linking always hardcodes the temporary library directory.
13555 hardcode_action=relink
13557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558 hardcode_action=immediate
13561 # We cannot hardcode anything, or else we can only hardcode existing
13563 hardcode_action=unsupported
13565 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13566 echo "${ECHO_T}$hardcode_action" >&6
13568 if test "$hardcode_action" = relink; then
13569 # Fast installation is not supported
13570 enable_fast_install=no
13571 elif test "$shlibpath_overrides_runpath" = yes ||
13572 test "$enable_shared" = no; then
13573 # Fast installation is not necessary
13574 enable_fast_install=needless
13579 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13580 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13581 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13583 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13584 echo "$as_me:$LINENO: result: yes" >&5
13585 echo "${ECHO_T}yes" >&6
13587 # FIXME - insert some real tests, host_os isn't really good enough
13590 if test -n "$STRIP" ; then
13591 striplib="$STRIP -x"
13592 echo "$as_me:$LINENO: result: yes" >&5
13593 echo "${ECHO_T}yes" >&6
13595 echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6
13600 echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6
13606 if test "x$enable_dlopen" != xyes; then
13607 enable_dlopen=unknown
13608 enable_dlopen_self=unknown
13609 enable_dlopen_self_static=unknown
13616 lt_cv_dlopen="load_add_on"
13618 lt_cv_dlopen_self=yes
13622 lt_cv_dlopen="LoadLibrary"
13627 lt_cv_dlopen="dlopen"
13632 # if libdl is installed we need to link against it
13633 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13634 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 ac_check_lib_save_LIBS=$LIBS
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13647 /* Override any gcc2 internal prototype to avoid an error. */
13651 /* We use char because int might match the return type of a gcc2
13652 builtin and then its argument prototype would still apply. */
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 ac_cv_lib_dl_dlopen=yes
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_cv_lib_dl_dlopen=no
13691 rm -f conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13693 LIBS=$ac_check_lib_save_LIBS
13695 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13697 if test $ac_cv_lib_dl_dlopen = yes; then
13698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13701 lt_cv_dlopen="dyld"
13703 lt_cv_dlopen_self=yes
13710 echo "$as_me:$LINENO: checking for shl_load" >&5
13711 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13712 if test "${ac_cv_func_shl_load+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13723 #define shl_load innocuous_shl_load
13725 /* System header to define __stub macros and hopefully few prototypes,
13726 which can conflict with char shl_load (); below.
13727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13728 <limits.h> exists even on freestanding compilers. */
13731 # include <limits.h>
13733 # include <assert.h>
13738 /* Override any gcc2 internal prototype to avoid an error. */
13743 /* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13746 /* The GNU C library defines this for functions which it implements
13747 to always fail with ENOSYS. Some functions are actually named
13748 something starting with __ and the normal name is an alias. */
13749 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13752 char (*f) () = shl_load;
13761 return f != shl_load;
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768 (eval $ac_link) 2>conftest.er1
13770 grep -v '^ *+' conftest.er1 >conftest.err
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest$ac_exeext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_func_shl_load=yes
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13793 ac_cv_func_shl_load=no
13795 rm -f conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext conftest.$ac_ext
13798 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13799 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13800 if test $ac_cv_func_shl_load = yes; then
13801 lt_cv_dlopen="shl_load"
13803 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13804 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13805 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 ac_check_lib_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13817 /* Override any gcc2 internal prototype to avoid an error. */
13821 /* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13832 rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834 (eval $ac_link) 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_lib_dld_shl_load=yes
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_cv_lib_dld_shl_load=no
13861 rm -f conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13865 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13866 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13867 if test $ac_cv_lib_dld_shl_load = yes; then
13868 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13870 echo "$as_me:$LINENO: checking for dlopen" >&5
13871 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13872 if test "${ac_cv_func_dlopen+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 cat >conftest.$ac_ext <<_ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13883 #define dlopen innocuous_dlopen
13885 /* System header to define __stub macros and hopefully few prototypes,
13886 which can conflict with char dlopen (); below.
13887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 <limits.h> exists even on freestanding compilers. */
13891 # include <limits.h>
13893 # include <assert.h>
13898 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13906 /* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13912 char (*f) () = dlopen;
13921 return f != dlopen;
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_func_dlopen=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_func_dlopen=no
13955 rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13958 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13959 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13960 if test $ac_cv_func_dlopen = yes; then
13961 lt_cv_dlopen="dlopen"
13963 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 ac_check_lib_save_LIBS=$LIBS
13970 cat >conftest.$ac_ext <<_ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13977 /* Override any gcc2 internal prototype to avoid an error. */
13981 /* We use char because int might match the return type of a gcc2
13982 builtin and then its argument prototype would still apply. */
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13994 (eval $ac_link) 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
14001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest$ac_exeext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 ac_cv_lib_dl_dlopen=yes
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ac_cv_lib_dl_dlopen=no
14021 rm -f conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14025 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14026 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14027 if test $ac_cv_lib_dl_dlopen = yes; then
14028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14031 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14032 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lsvld $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14044 /* Override any gcc2 internal prototype to avoid an error. */
14048 /* We use char because int might match the return type of a gcc2
14049 builtin and then its argument prototype would still apply. */
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14061 (eval $ac_link) 2>conftest.er1
14063 grep -v '^ *+' conftest.er1 >conftest.err
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest$ac_exeext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_cv_lib_svld_dlopen=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_cv_lib_svld_dlopen=no
14088 rm -f conftest.err conftest.$ac_objext \
14089 conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14094 if test $ac_cv_lib_svld_dlopen = yes; then
14095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14097 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14098 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14099 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 ac_check_lib_save_LIBS=$LIBS
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14111 /* Override any gcc2 internal prototype to avoid an error. */
14115 /* We use char because int might match the return type of a gcc2
14116 builtin and then its argument prototype would still apply. */
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>conftest.er1
14130 grep -v '^ *+' conftest.er1 >conftest.err
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } &&
14135 { ac_try='test -z "$ac_c_werror_flag"
14136 || test ! -s conftest.err'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; } &&
14142 { ac_try='test -s conftest$ac_exeext'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 ac_cv_lib_dld_dld_link=yes
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14153 ac_cv_lib_dld_dld_link=no
14155 rm -f conftest.err conftest.$ac_objext \
14156 conftest$ac_exeext conftest.$ac_ext
14157 LIBS=$ac_check_lib_save_LIBS
14159 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14160 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14161 if test $ac_cv_lib_dld_dld_link = yes; then
14162 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14183 if test "x$lt_cv_dlopen" != xno; then
14189 case $lt_cv_dlopen in
14191 save_CPPFLAGS="$CPPFLAGS"
14192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14194 save_LDFLAGS="$LDFLAGS"
14195 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14198 LIBS="$lt_cv_dlopen_libs $LIBS"
14200 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14201 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14202 if test "${lt_cv_dlopen_self+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 if test "$cross_compiling" = yes; then :
14206 lt_cv_dlopen_self=cross
14208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14209 lt_status=$lt_dlunknown
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14211 "configure"
14212 #include "confdefs.h"
14221 # define LT_DLGLOBAL RTLD_GLOBAL
14224 # define LT_DLGLOBAL DL_GLOBAL
14226 # define LT_DLGLOBAL 0
14230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14231 find out it does not work in some platform. */
14232 #ifndef LT_DLLAZY_OR_NOW
14234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14237 # define LT_DLLAZY_OR_NOW DL_LAZY
14240 # define LT_DLLAZY_OR_NOW RTLD_NOW
14243 # define LT_DLLAZY_OR_NOW DL_NOW
14245 # define LT_DLLAZY_OR_NOW 0
14253 extern "C" void exit (int);
14256 void fnord() { int i=42;}
14259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14260 int status = $lt_dlunknown;
14264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14266 /* dlclose (self); */
14272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14273 (eval $ac_link) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14277 (./conftest; exit; ) 2>/dev/null
14279 case x$lt_status in
14280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14282 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14285 # compilation failed
14286 lt_cv_dlopen_self=no
14293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14294 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14296 if test "x$lt_cv_dlopen_self" = xyes; then
14297 LDFLAGS="$LDFLAGS $link_static_flag"
14298 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14299 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14300 if test "${lt_cv_dlopen_self_static+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 if test "$cross_compiling" = yes; then :
14304 lt_cv_dlopen_self_static=cross
14306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14307 lt_status=$lt_dlunknown
14308 cat > conftest.$ac_ext <<EOF
14309 #line 14309 "configure"
14310 #include "confdefs.h"
14319 # define LT_DLGLOBAL RTLD_GLOBAL
14322 # define LT_DLGLOBAL DL_GLOBAL
14324 # define LT_DLGLOBAL 0
14328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14329 find out it does not work in some platform. */
14330 #ifndef LT_DLLAZY_OR_NOW
14332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14335 # define LT_DLLAZY_OR_NOW DL_LAZY
14338 # define LT_DLLAZY_OR_NOW RTLD_NOW
14341 # define LT_DLLAZY_OR_NOW DL_NOW
14343 # define LT_DLLAZY_OR_NOW 0
14351 extern "C" void exit (int);
14354 void fnord() { int i=42;}
14357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14358 int status = $lt_dlunknown;
14362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14363 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14364 /* dlclose (self); */
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14375 (./conftest; exit; ) 2>/dev/null
14377 case x$lt_status in
14378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14380 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14383 # compilation failed
14384 lt_cv_dlopen_self_static=no
14391 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14392 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14395 CPPFLAGS="$save_CPPFLAGS"
14396 LDFLAGS="$save_LDFLAGS"
14401 case $lt_cv_dlopen_self in
14402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14403 *) enable_dlopen_self=unknown ;;
14406 case $lt_cv_dlopen_self_static in
14407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14408 *) enable_dlopen_self_static=unknown ;;
14413 # Report which librarie types wil actually be built
14414 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14415 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14416 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14417 echo "${ECHO_T}$can_build_shared" >&6
14419 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14420 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14421 test "$can_build_shared" = "no" && enable_shared=no
14423 # On AIX, shared libraries and static libraries use the same namespace, and
14424 # are all built from PIC.
14427 test "$enable_shared" = yes && enable_static=no
14428 if test -n "$RANLIB"; then
14429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14430 postinstall_cmds='$RANLIB $lib'
14435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14436 test "$enable_shared" = yes && enable_static=no
14440 echo "$as_me:$LINENO: result: $enable_shared" >&5
14441 echo "${ECHO_T}$enable_shared" >&6
14443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14445 # Make sure either enable_shared or enable_static is yes.
14446 test "$enable_shared" = yes || enable_static=yes
14447 echo "$as_me:$LINENO: result: $enable_static" >&5
14448 echo "${ECHO_T}$enable_static" >&6
14450 # The else clause should only fire when bootstrapping the
14451 # libtool distribution, otherwise you forgot to ship ltmain.sh
14452 # with your package, and you will get complaints that there are
14453 # no rules to generate ltmain.sh.
14454 if test -f "$ltmain"; then
14455 # See if we are running on zsh, and set the options which allow our commands through
14456 # without removal of \ escapes.
14457 if test -n "${ZSH_VERSION+set}" ; then
14458 setopt NO_GLOB_SUBST
14460 # Now quote all the things that may contain metacharacters while being
14461 # careful not to overquote the AC_SUBSTed values. We take copies of the
14462 # variables and quote the copies for generation of the libtool script.
14463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14467 deplibs_check_method reload_flag reload_cmds need_locks \
14468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14469 lt_cv_sys_global_symbol_to_c_name_address \
14470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14471 old_postinstall_cmds old_postuninstall_cmds \
14475 lt_prog_compiler_wl \
14476 lt_prog_compiler_pic \
14477 lt_prog_compiler_static \
14478 lt_prog_compiler_no_builtin_flag \
14479 export_dynamic_flag_spec \
14480 thread_safe_flag_spec \
14481 whole_archive_flag_spec \
14482 enable_shared_with_static_runtimes \
14484 old_archive_from_new_cmds \
14489 compiler_lib_search_path \
14491 archive_expsym_cmds \
14493 postuninstall_cmds \
14494 old_archive_from_expsyms_cmds \
14495 allow_undefined_flag \
14496 no_undefined_flag \
14497 export_symbols_cmds \
14498 hardcode_libdir_flag_spec \
14499 hardcode_libdir_flag_spec_ld \
14500 hardcode_libdir_separator \
14501 hardcode_automatic \
14503 module_expsym_cmds \
14504 lt_cv_prog_compiler_c_o \
14506 include_expsyms; do
14509 old_archive_cmds | \
14510 old_archive_from_new_cmds | \
14512 archive_expsym_cmds | \
14514 module_expsym_cmds | \
14515 old_archive_from_expsyms_cmds | \
14516 export_symbols_cmds | \
14517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14518 postinstall_cmds | postuninstall_cmds | \
14519 old_postinstall_cmds | old_postuninstall_cmds | \
14520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14521 # Double-quote double-evaled strings.
14522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14531 *'\$0 --fallback-echo"')
14532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14536 cfgfile="${ofile}T"
14537 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14539 { echo "$as_me:$LINENO: creating $ofile" >&5
14540 echo "$as_me: creating $ofile" >&6;}
14542 cat <<__EOF__ >> "$cfgfile"
14545 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14546 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14547 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14549 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14550 # Free Software Foundation, Inc.
14552 # This file is part of GNU Libtool:
14553 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14555 # This program is free software; you can redistribute it and/or modify
14556 # it under the terms of the GNU General Public License as published by
14557 # the Free Software Foundation; either version 2 of the License, or
14558 # (at your option) any later version.
14560 # This program is distributed in the hope that it will be useful, but
14561 # WITHOUT ANY WARRANTY; without even the implied warranty of
14562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14563 # General Public License for more details.
14565 # You should have received a copy of the GNU General Public License
14566 # along with this program; if not, write to the Free Software
14567 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14569 # As a special exception to the GNU General Public License, if you
14570 # distribute this file as part of a program that contains a
14571 # configuration script generated by Autoconf, you may include it under
14572 # the same distribution terms that you use for the rest of that program.
14574 # A sed program that does not truncate output.
14577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14578 Xsed="$SED -e s/^X//"
14580 # The HP-UX ksh and POSIX shell print the target directory to stdout
14581 # if CDPATH is set.
14582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14584 # The names of the tagged configurations supported by this script.
14587 # ### BEGIN LIBTOOL CONFIG
14589 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14591 # Shell to use when invoking shell scripts.
14594 # Whether or not to build shared libraries.
14595 build_libtool_libs=$enable_shared
14597 # Whether or not to build static libraries.
14598 build_old_libs=$enable_static
14600 # Whether or not to add -lc for building shared libraries.
14601 build_libtool_need_lc=$archive_cmds_need_lc
14603 # Whether or not to disallow shared libs when runtime libs are static
14604 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14606 # Whether or not to optimize for fast installation.
14607 fast_install=$enable_fast_install
14610 host_alias=$host_alias
14613 # An echo program that does not interpret backslashes.
14618 AR_FLAGS=$lt_AR_FLAGS
14623 # A language-specific compiler.
14626 # Is the compiler the GNU C compiler?
14632 # The linker used to build libraries.
14635 # Whether we need hard or soft links.
14638 # A BSD-compatible nm program.
14641 # A symbol stripping program
14644 # Used to examine libraries when file_magic_cmd begins "file"
14645 MAGIC_CMD=$MAGIC_CMD
14647 # Used on cygwin: DLL creation program.
14650 # Used on cygwin: object dumper.
14653 # Used on cygwin: assembler.
14656 # The name of the directory that contains temporary libtool files.
14659 # How to create reloadable object files.
14660 reload_flag=$lt_reload_flag
14661 reload_cmds=$lt_reload_cmds
14663 # How to pass a linker flag through the compiler.
14664 wl=$lt_lt_prog_compiler_wl
14666 # Object file suffix (normally "o").
14667 objext="$ac_objext"
14669 # Old archive suffix (normally "a").
14672 # Shared library suffix (normally ".so").
14673 shrext_cmds='$shrext_cmds'
14675 # Executable file suffix (normally "").
14678 # Additional compiler flags for building library objects.
14679 pic_flag=$lt_lt_prog_compiler_pic
14682 # What is the maximum length of a command?
14683 max_cmd_len=$lt_cv_sys_max_cmd_len
14685 # Does compiler simultaneously support -c and -o options?
14686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14688 # Must we lock files when doing compilation ?
14689 need_locks=$lt_need_locks
14691 # Do we need the lib prefix for modules?
14692 need_lib_prefix=$need_lib_prefix
14694 # Do we need a version for libraries?
14695 need_version=$need_version
14697 # Whether dlopen is supported.
14698 dlopen_support=$enable_dlopen
14700 # Whether dlopen of programs is supported.
14701 dlopen_self=$enable_dlopen_self
14703 # Whether dlopen of statically linked programs is supported.
14704 dlopen_self_static=$enable_dlopen_self_static
14706 # Compiler flag to prevent dynamic linking.
14707 link_static_flag=$lt_lt_prog_compiler_static
14709 # Compiler flag to turn off builtin functions.
14710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14712 # Compiler flag to allow reflexive dlopens.
14713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14715 # Compiler flag to generate shared objects directly from archives.
14716 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14718 # Compiler flag to generate thread-safe objects.
14719 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14721 # Library versioning type.
14722 version_type=$version_type
14724 # Format of library name prefix.
14725 libname_spec=$lt_libname_spec
14727 # List of archive names. First name is the real one, the rest are links.
14728 # The last name is the one that the linker finds with -lNAME.
14729 library_names_spec=$lt_library_names_spec
14731 # The coded name of the library, if different from the real name.
14732 soname_spec=$lt_soname_spec
14734 # Commands used to build and install an old-style archive.
14736 old_archive_cmds=$lt_old_archive_cmds
14737 old_postinstall_cmds=$lt_old_postinstall_cmds
14738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14740 # Create an old-style archive from a shared archive.
14741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14743 # Create a temporary old-style archive to link instead of a shared archive.
14744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14746 # Commands used to build and install a shared archive.
14747 archive_cmds=$lt_archive_cmds
14748 archive_expsym_cmds=$lt_archive_expsym_cmds
14749 postinstall_cmds=$lt_postinstall_cmds
14750 postuninstall_cmds=$lt_postuninstall_cmds
14752 # Commands used to build a loadable module (assumed same as above if empty)
14753 module_cmds=$lt_module_cmds
14754 module_expsym_cmds=$lt_module_expsym_cmds
14756 # Commands to strip libraries.
14757 old_striplib=$lt_old_striplib
14758 striplib=$lt_striplib
14760 # Dependencies to place before the objects being linked to create a
14762 predep_objects=$lt_predep_objects
14764 # Dependencies to place after the objects being linked to create a
14766 postdep_objects=$lt_postdep_objects
14768 # Dependencies to place before the objects being linked to create a
14770 predeps=$lt_predeps
14772 # Dependencies to place after the objects being linked to create a
14774 postdeps=$lt_postdeps
14776 # The library search path used internally by the compiler when linking
14777 # a shared library.
14778 compiler_lib_search_path=$lt_compiler_lib_search_path
14780 # Method to check whether dependent libraries are shared objects.
14781 deplibs_check_method=$lt_deplibs_check_method
14783 # Command to use when deplibs_check_method == file_magic.
14784 file_magic_cmd=$lt_file_magic_cmd
14786 # Flag that allows shared libraries with undefined symbols to be built.
14787 allow_undefined_flag=$lt_allow_undefined_flag
14789 # Flag that forces no undefined symbols.
14790 no_undefined_flag=$lt_no_undefined_flag
14792 # Commands used to finish a libtool library installation in a directory.
14793 finish_cmds=$lt_finish_cmds
14795 # Same as above, but a single script fragment to be evaled but not shown.
14796 finish_eval=$lt_finish_eval
14798 # Take the output of nm and produce a listing of raw symbols and C names.
14799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14801 # Transform the output of nm in a proper C declaration
14802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14804 # Transform the output of nm in a C name address pair
14805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14807 # This is the shared library runtime path variable.
14808 runpath_var=$runpath_var
14810 # This is the shared library path variable.
14811 shlibpath_var=$shlibpath_var
14813 # Is shlibpath searched before the hard-coded library search path?
14814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14816 # How to hardcode a shared library path into an executable.
14817 hardcode_action=$hardcode_action
14819 # Whether we should hardcode library paths into libraries.
14820 hardcode_into_libs=$hardcode_into_libs
14822 # Flag to hardcode \$libdir into a binary during linking.
14823 # This must work even if \$libdir does not exist.
14824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14826 # If ld is used when linking, flag to hardcode \$libdir into
14827 # a binary during linking. This must work even if \$libdir does
14829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14831 # Whether we need a single -rpath flag with a separated argument.
14832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14835 # resulting binary.
14836 hardcode_direct=$hardcode_direct
14838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14839 # resulting binary.
14840 hardcode_minus_L=$hardcode_minus_L
14842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14843 # the resulting binary.
14844 hardcode_shlibpath_var=$hardcode_shlibpath_var
14846 # Set to yes if building a shared library automatically hardcodes DIR into the library
14847 # and all subsequent libraries and executables linked against it.
14848 hardcode_automatic=$hardcode_automatic
14850 # Variables whose values should be saved in libtool wrapper scripts and
14851 # restored at relink time.
14852 variables_saved_for_relink="$variables_saved_for_relink"
14854 # Whether libtool must link a program against all its dependency libraries.
14855 link_all_deplibs=$link_all_deplibs
14857 # Compile-time system search path for libraries
14858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14860 # Run-time system search path for libraries
14861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14863 # Fix the shell variable \$srcfile for the compiler.
14864 fix_srcfile_path="$fix_srcfile_path"
14866 # Set to yes if exported symbols are required.
14867 always_export_symbols=$always_export_symbols
14869 # The commands to list exported symbols.
14870 export_symbols_cmds=$lt_export_symbols_cmds
14872 # The commands to extract the exported symbol list from a shared archive.
14873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14875 # Symbols that should not be listed in the preloaded symbols.
14876 exclude_expsyms=$lt_exclude_expsyms
14878 # Symbols that must always be exported.
14879 include_expsyms=$lt_include_expsyms
14881 # ### END LIBTOOL CONFIG
14888 cat <<\EOF >> "$cfgfile"
14890 # AIX sometimes has problems with the GCC collect2 program. For some
14891 # reason, if we set the COLLECT_NAMES environment variable, the problems
14892 # vanish in a puff of smoke.
14893 if test "X${COLLECT_NAMES+set}" != Xset; then
14895 export COLLECT_NAMES
14901 # We use sed instead of cat because bash on DJGPP gets confused if
14902 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14903 # text mode, it properly converts lines to CR/LF. This bash problem
14904 # is reportedly fixed, but why not run on old versions too?
14905 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14907 mv -f "$cfgfile" "$ofile" || \
14908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14912 # If there is no Makefile yet, we rely on a make rule to execute
14913 # `config.status --recheck' to rerun these tests and create the
14914 # libtool script then.
14915 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14916 if test -f "$ltmain_in"; then
14917 test -f Makefile && make "$ltmain"
14923 ac_cpp='$CPP $CPPFLAGS'
14924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14931 # Check whether --with-tags or --without-tags was given.
14932 if test "${with_tags+set}" = set; then
14933 withval="$with_tags"
14934 tagnames="$withval"
14937 if test -f "$ltmain" && test -n "$tagnames"; then
14938 if test ! -f "${ofile}"; then
14939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14943 if test -z "$LTCC"; then
14944 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14945 if test -z "$LTCC"; then
14946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14954 # Extract list of available tagged configurations in $ofile.
14955 # Note that this assumes the entire list is on one line.
14956 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14959 for tagname in $tagnames; do
14961 # Check whether tagname contains only valid characters
14962 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14964 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14965 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14966 { (exit 1); exit 1; }; }
14970 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14972 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14973 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14974 { (exit 1); exit 1; }; }
14977 # Update the list of available tags.
14978 if test -n "$tagname"; then
14979 echo appending configuration tag "$tagname" to $ofile
14983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14985 (test "X$CXX" != "Xg++"))) ; then
14987 ac_cpp='$CXXCPP $CPPFLAGS'
14988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14995 archive_cmds_need_lc_CXX=no
14996 allow_undefined_flag_CXX=
14997 always_export_symbols_CXX=no
14998 archive_expsym_cmds_CXX=
14999 export_dynamic_flag_spec_CXX=
15000 hardcode_direct_CXX=no
15001 hardcode_libdir_flag_spec_CXX=
15002 hardcode_libdir_flag_spec_ld_CXX=
15003 hardcode_libdir_separator_CXX=
15004 hardcode_minus_L_CXX=no
15005 hardcode_automatic_CXX=no
15007 module_expsym_cmds_CXX=
15008 link_all_deplibs_CXX=unknown
15009 old_archive_cmds_CXX=$old_archive_cmds
15010 no_undefined_flag_CXX=
15011 whole_archive_flag_spec_CXX=
15012 enable_shared_with_static_runtimes_CXX=no
15014 # Dependencies to place before and after the object being linked:
15015 predep_objects_CXX=
15016 postdep_objects_CXX=
15019 compiler_lib_search_path_CXX=
15021 # Source file extension for C++ test sources.
15024 # Object file extension for compiled C++ test sources.
15028 # Code to be used in simple compile tests
15029 lt_simple_compile_test_code="int some_variable = 0;\n"
15031 # Code to be used in simple link tests
15032 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15034 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15036 # If no C compiler was specified, use CC.
15039 # Allow CC to be a program name with arguments.
15043 # Allow CC to be a program name with arguments.
15048 lt_save_with_gnu_ld=$with_gnu_ld
15049 lt_save_path_LD=$lt_cv_path_LD
15050 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15051 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15053 unset lt_cv_prog_gnu_ld
15055 if test -n "${lt_cv_path_LDCXX+set}"; then
15056 lt_cv_path_LD=$lt_cv_path_LDCXX
15058 unset lt_cv_path_LD
15060 test -z "${LDCXX+set}" || LD=$LDCXX
15064 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15066 # We don't want -fno-exception wen compiling C++ code, so set the
15067 # no_builtin_flag separately
15068 if test "$GXX" = yes; then
15069 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15071 lt_prog_compiler_no_builtin_flag_CXX=
15074 if test "$GXX" = yes; then
15075 # Set up default GNU C++ configuration
15078 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15079 if test "${with_gnu_ld+set}" = set; then
15080 withval="$with_gnu_ld"
15081 test "$withval" = no || with_gnu_ld=yes
15086 if test "$GCC" = yes; then
15087 # Check if gcc -print-prog-name=ld gives a path.
15088 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15089 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15092 # gcc leaves a trailing carriage return which upsets mingw
15093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15098 # Accept absolute paths.
15100 re_direlt='/[^/][^/]*/\.\./'
15101 # Canonicalize the pathname of ld
15102 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15104 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15106 test -z "$LD" && LD="$ac_prog"
15109 # If it fails, then pretend we aren't using GCC.
15113 # If it is relative, then search for the first ld in PATH.
15114 with_gnu_ld=unknown
15117 elif test "$with_gnu_ld" = yes; then
15118 echo "$as_me:$LINENO: checking for GNU ld" >&5
15119 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15121 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15122 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15124 if test "${lt_cv_path_LD+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 if test -z "$LD"; then
15128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15129 for ac_dir in $PATH; do
15131 test -z "$ac_dir" && ac_dir=.
15132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15133 lt_cv_path_LD="$ac_dir/$ac_prog"
15134 # Check to see if the program is GNU ld. I'd rather use --version,
15135 # but apparently some GNU ld's only accept -v.
15136 # Break only if it was the GNU/non-GNU ld that we prefer.
15137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15138 *GNU* | *'with BFD'*)
15139 test "$with_gnu_ld" != no && break
15142 test "$with_gnu_ld" != yes && break
15149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15153 LD="$lt_cv_path_LD"
15154 if test -n "$LD"; then
15155 echo "$as_me:$LINENO: result: $LD" >&5
15156 echo "${ECHO_T}$LD" >&6
15158 echo "$as_me:$LINENO: result: no" >&5
15159 echo "${ECHO_T}no" >&6
15161 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15162 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15163 { (exit 1); exit 1; }; }
15164 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15165 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15166 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15170 case `$LD -v 2>&1 </dev/null` in
15171 *GNU* | *'with BFD'*)
15172 lt_cv_prog_gnu_ld=yes
15175 lt_cv_prog_gnu_ld=no
15179 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15180 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15181 with_gnu_ld=$lt_cv_prog_gnu_ld
15185 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15186 # archiving commands below assume that GNU ld is being used.
15187 if test "$with_gnu_ld" = yes; then
15188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 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'
15191 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15194 # If archive_cmds runs LD, not CC, wlarc should be empty
15195 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15196 # investigate it a little bit more. (MM)
15199 # ancient GNU ld didn't support --whole-archive et. al.
15200 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15201 grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15204 whole_archive_flag_spec_CXX=
15210 # A generic and very simple default shared library creation
15211 # command for GNU C++ for the case where it uses the native
15212 # linker, instead of GNU ld. If possible, this setting should
15213 # overridden to take advantage of the native linker features on
15214 # the platform it is being used on.
15215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15218 # Commands to make compiler produce verbose output that lists
15219 # what "hidden" libraries, object files and flags are used when
15220 # linking a shared library.
15221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15229 # PORTME: fill in a description of your system's C++ link characteristics
15230 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15235 # FIXME: insert proper C++ library support
15239 if test "$host_cpu" = ia64; then
15240 # On IA64, the linker does run time linking by default, so we don't
15241 # have to do anything special.
15242 aix_use_runtimelinking=no
15243 exp_sym_flag='-Bexport'
15246 aix_use_runtimelinking=no
15248 # Test if we are trying to use run time linking or normal
15249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250 # need to do runtime linking.
15251 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15252 for ld_flag in $LDFLAGS; do
15255 aix_use_runtimelinking=yes
15262 exp_sym_flag='-bexport'
15263 no_entry_flag='-bnoentry'
15266 # When large executables or shared objects are built, AIX ld can
15267 # have problems creating the table of contents. If linking a library
15268 # or program results in "error TOC overflow" add -mminimal-toc to
15269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15272 archive_cmds_CXX=''
15273 hardcode_direct_CXX=yes
15274 hardcode_libdir_separator_CXX=':'
15275 link_all_deplibs_CXX=yes
15277 if test "$GXX" = yes; then
15278 case $host_os in aix4.012|aix4.012.*)
15279 # We only want to do this on AIX 4.2 and lower, the check
15280 # below for broken collect2 doesn't work under 4.3+
15281 collect2name=`${CC} -print-prog-name=collect2`
15282 if test -f "$collect2name" && \
15283 strings "$collect2name" | grep resolve_lib_name >/dev/null
15285 # We have reworked collect2
15286 hardcode_direct_CXX=yes
15288 # We have old collect2
15289 hardcode_direct_CXX=unsupported
15290 # It fails to find uninstalled libraries when the uninstalled
15291 # path is not listed in the libpath. Setting hardcode_minus_L
15292 # to unsupported forces relinking
15293 hardcode_minus_L_CXX=yes
15294 hardcode_libdir_flag_spec_CXX='-L$libdir'
15295 hardcode_libdir_separator_CXX=
15298 shared_flag='-shared'
15301 if test "$host_cpu" = ia64; then
15302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303 # chokes on -Wl,-G. The following line is correct:
15306 if test "$aix_use_runtimelinking" = yes; then
15307 shared_flag='${wl}-G'
15309 shared_flag='${wl}-bM:SRE'
15314 # It seems that -bexpall does not export symbols beginning with
15315 # underscore (_), so it is better to generate a list of symbols to export.
15316 always_export_symbols_CXX=yes
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # Warning - without using the other runtime loading flags (-brtl),
15319 # -berok will link without error, but may produce a broken library.
15320 allow_undefined_flag_CXX='-berok'
15321 # Determine the default libpath from the value encoded in an empty executable.
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339 (eval $ac_link) 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_cxx_werror_flag"
15347 || test ! -s conftest.err'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest$ac_exeext'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15362 # Check for a 64-bit object if we didn't find anything.
15363 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; }
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15370 rm -f conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
15372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15374 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15376 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"
15378 if test "$host_cpu" = ia64; then
15379 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15380 allow_undefined_flag_CXX="-z nodefs"
15381 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"
15383 # Determine the default libpath from the value encoded in an empty executable.
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401 (eval $ac_link) 2>conftest.er1
15403 grep -v '^ *+' conftest.er1 >conftest.err
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_cxx_werror_flag"
15409 || test ! -s conftest.err'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest$ac_exeext'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15424 # Check for a 64-bit object if we didn't find anything.
15425 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; }
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15432 rm -f conftest.err conftest.$ac_objext \
15433 conftest$ac_exeext conftest.$ac_ext
15434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15437 # Warning - without using the other run time loading flags,
15438 # -berok will link without error, but may produce a broken library.
15439 no_undefined_flag_CXX=' ${wl}-bernotok'
15440 allow_undefined_flag_CXX=' ${wl}-berok'
15441 # -bexpall does not export symbols beginning with underscore (_)
15442 always_export_symbols_CXX=yes
15443 # Exported symbols can be pulled into shared objects from archives
15444 whole_archive_flag_spec_CXX=' '
15445 archive_cmds_need_lc_CXX=yes
15446 # This is similar to how AIX traditionally builds it's shared libraries.
15447 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'
15452 case $cc_basename in
15454 # FIXME: insert proper C++ library support
15461 cygwin* | mingw* | pw32*)
15462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15463 # as there is no search path for DLLs.
15464 hardcode_libdir_flag_spec_CXX='-L$libdir'
15465 allow_undefined_flag_CXX=unsupported
15466 always_export_symbols_CXX=no
15467 enable_shared_with_static_runtimes_CXX=yes
15469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15470 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'
15471 # If the export-symbols file already is a .def file (1st line
15472 # is EXPORTS), use it as is; otherwise, prepend...
15473 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15474 cp $export_symbols $output_objdir/$soname.def;
15476 echo EXPORTS > $output_objdir/$soname.def;
15477 cat $export_symbols >> $output_objdir/$soname.def;
15479 $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'
15484 darwin* | rhapsody*)
15486 rhapsody* | darwin1.[012])
15487 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15491 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15493 case ${MACOSX_DEPLOYMENT_TARGET} in
15495 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15498 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15504 archive_cmds_need_lc_CXX=no
15505 hardcode_direct_CXX=no
15506 hardcode_automatic_CXX=yes
15507 hardcode_shlibpath_var_CXX=unsupported
15508 whole_archive_flag_spec_CXX=''
15509 link_all_deplibs_CXX=yes
15511 if test "$GXX" = yes ; then
15512 lt_int_apple_cc_single_mod=no
15513 output_verbose_link_cmd='echo'
15514 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15515 lt_int_apple_cc_single_mod=yes
15517 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15518 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15520 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'
15522 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15523 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15524 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15525 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}'
15527 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}'
15529 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}'
15531 case "$cc_basename" in
15533 output_verbose_link_cmd='echo'
15534 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'
15535 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15537 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}'
15538 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}'
15548 case $cc_basename in
15550 # FIXME: insert proper C++ library support
15554 # Green Hills C++ Compiler
15555 # FIXME: insert proper C++ library support
15559 # FIXME: insert proper C++ library support
15565 # C++ shared libraries reported to be fairly broken before switch to ELF
15569 archive_cmds_need_lc_CXX=no
15571 freebsd* | kfreebsd*-gnu)
15572 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15579 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15580 hardcode_libdir_separator_CXX=:
15581 export_dynamic_flag_spec_CXX='${wl}-E'
15582 hardcode_direct_CXX=yes
15583 hardcode_minus_L_CXX=yes # Not in the search PATH,
15584 # but as the default
15585 # location of the library.
15587 case $cc_basename in
15589 # FIXME: insert proper C++ library support
15593 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'
15594 # Commands to make compiler produce verbose output that lists
15595 # what "hidden" libraries, object files and flags are used when
15596 # linking a shared library.
15598 # There doesn't appear to be a way to prevent this compiler from
15599 # explicitly linking system object files so we need to strip them
15600 # from the output so that they don't get included in the library
15602 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'
15605 if test "$GXX" = yes; then
15606 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'
15608 # FIXME: insert proper C++ library support
15615 if test $with_gnu_ld = no; then
15616 case "$host_cpu" in
15618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15620 hardcode_libdir_separator_CXX=:
15623 hardcode_libdir_flag_spec_CXX='-L$libdir'
15626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_separator_CXX=:
15628 export_dynamic_flag_spec_CXX='${wl}-E'
15632 case "$host_cpu" in
15634 hardcode_direct_CXX=no
15635 hardcode_shlibpath_var_CXX=no
15638 hardcode_direct_CXX=no
15639 hardcode_shlibpath_var_CXX=no
15640 hardcode_minus_L_CXX=yes # Not in the search PATH,
15641 # but as the default
15642 # location of the library.
15645 hardcode_direct_CXX=yes
15646 hardcode_minus_L_CXX=yes # Not in the search PATH,
15647 # but as the default
15648 # location of the library.
15652 case $cc_basename in
15654 # FIXME: insert proper C++ library support
15658 case "$host_cpu" in
15660 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15666 # Commands to make compiler produce verbose output that lists
15667 # what "hidden" libraries, object files and flags are used when
15668 # linking a shared library.
15670 # There doesn't appear to be a way to prevent this compiler from
15671 # explicitly linking system object files so we need to strip them
15672 # from the output so that they don't get included in the library
15674 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'
15677 if test "$GXX" = yes; then
15678 if test $with_gnu_ld = no; then
15679 case "$host_cpu" in
15681 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15684 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'
15689 # FIXME: insert proper C++ library support
15696 case $cc_basename in
15699 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'
15701 # Archives containing C++ object files must be created using
15702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15703 # necessary to make sure instantiated templates are included
15705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15708 if test "$GXX" = yes; then
15709 if test "$with_gnu_ld" = no; then
15710 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'
15712 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'
15715 link_all_deplibs_CXX=yes
15718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15719 hardcode_libdir_separator_CXX=:
15722 case $cc_basename in
15724 # Kuck and Associates, Inc. (KAI) C++ Compiler
15726 # KCC will only create a shared library if the output file
15727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15728 # to its proper name (with version) after linking.
15729 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'
15730 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'
15731 # Commands to make compiler produce verbose output that lists
15732 # what "hidden" libraries, object files and flags are used when
15733 # linking a shared library.
15735 # There doesn't appear to be a way to prevent this compiler from
15736 # explicitly linking system object files so we need to strip them
15737 # from the output so that they don't get included in the library
15739 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'
15741 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15744 # Archives containing C++ object files must be created using
15745 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15746 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15751 # version 8.0 and above of icpc choke on multiply defined symbols
15752 # if we add $predep_objects and $postdep_objects, however 7.1 and
15753 # earlier do not add the objects themselves.
15754 case `$CC -V 2>&1` in
15756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 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'
15759 *) # Version 8.0 or newer
15760 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15764 archive_cmds_need_lc_CXX=no
15765 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15767 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 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'
15774 runpath_var=LD_RUN_PATH
15775 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15776 hardcode_libdir_separator_CXX=:
15778 # Commands to make compiler produce verbose output that lists
15779 # what "hidden" libraries, object files and flags are used when
15780 # linking a shared library.
15782 # There doesn't appear to be a way to prevent this compiler from
15783 # explicitly linking system object files so we need to strip them
15784 # from the output so that they don't get included in the library
15786 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'
15791 # FIXME: insert proper C++ library support
15795 # FIXME: insert proper C++ library support
15799 case $cc_basename in
15801 # FIXME: insert proper C++ library support
15805 # FIXME: insert proper C++ library support
15811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15812 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15814 hardcode_libdir_flag_spec_CXX='-R$libdir'
15815 hardcode_direct_CXX=yes
15816 hardcode_shlibpath_var_CXX=no
15818 # Workaround some broken pre-1.5 toolchains
15819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15822 # C++ shared libraries are fairly broken
15826 hardcode_direct_CXX=yes
15827 hardcode_shlibpath_var_CXX=no
15828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15832 export_dynamic_flag_spec_CXX='${wl}-E'
15833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15835 output_verbose_link_cmd='echo'
15838 case $cc_basename in
15840 # Kuck and Associates, Inc. (KAI) C++ Compiler
15842 # KCC will only create a shared library if the output file
15843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15844 # to its proper name (with version) after linking.
15845 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'
15847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15848 hardcode_libdir_separator_CXX=:
15850 # Archives containing C++ object files must be created using
15851 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15852 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15856 # Rational C++ 2.4.1
15857 # FIXME: insert proper C++ library support
15861 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15862 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'
15864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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" | 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'
15878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15879 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15880 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'
15882 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15883 hardcode_libdir_separator_CXX=:
15885 # Commands to make compiler produce verbose output that lists
15886 # what "hidden" libraries, object files and flags are used when
15887 # linking a shared library.
15888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15891 # FIXME: insert proper C++ library support
15898 case $cc_basename in
15900 # Kuck and Associates, Inc. (KAI) C++ Compiler
15902 # KCC will only create a shared library if the output file
15903 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15904 # to its proper name (with version) after linking.
15905 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'
15907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15908 hardcode_libdir_separator_CXX=:
15910 # Archives containing C++ object files must be created using
15911 # the KAI C++ compiler.
15912 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15915 # Rational C++ 2.4.1
15916 # FIXME: insert proper C++ library support
15920 allow_undefined_flag_CXX=' -expect_unresolved \*'
15921 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'
15922 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15923 echo "-hidden">> $lib.exp~
15924 $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~
15927 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15928 hardcode_libdir_separator_CXX=:
15930 # Commands to make compiler produce verbose output that lists
15931 # what "hidden" libraries, object files and flags are used when
15932 # linking a shared library.
15934 # There doesn't appear to be a way to prevent this compiler from
15935 # explicitly linking system object files so we need to strip them
15936 # from the output so that they don't get included in the library
15938 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'
15941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15942 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15943 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'
15945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15946 hardcode_libdir_separator_CXX=:
15948 # Commands to make compiler produce verbose output that lists
15949 # what "hidden" libraries, object files and flags are used when
15950 # linking a shared library.
15951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15954 # FIXME: insert proper C++ library support
15961 # FIXME: insert proper C++ library support
15965 archive_cmds_need_lc_CXX=no
15966 case $cc_basename in
15968 # FIXME: insert proper C++ library support
15972 # FIXME: insert proper C++ library support
15978 case $cc_basename in
15981 # FIXME: insert proper C++ library support
15986 # FIXME: insert proper C++ library support
15990 # FIXME: insert proper C++ library support
15996 case $cc_basename in
15998 # Sun C++ 4.2, 5.x and Centerline C++
15999 no_undefined_flag_CXX=' -zdefs'
16000 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16002 $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'
16004 hardcode_libdir_flag_spec_CXX='-R$libdir'
16005 hardcode_shlibpath_var_CXX=no
16007 solaris2.0-5 | solaris2.0-5.*) ;;
16009 # The C++ compiler is used as linker so we must use $wl
16010 # flag to pass the commands to the underlying system
16012 # Supported since Solaris 2.6 (maybe 2.5.1?)
16013 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16016 link_all_deplibs_CXX=yes
16018 # Commands to make compiler produce verbose output that lists
16019 # what "hidden" libraries, object files and flags are used when
16020 # linking a shared library.
16022 # There doesn't appear to be a way to prevent this compiler from
16023 # explicitly linking system object files so we need to strip them
16024 # from the output so that they don't get included in the library
16026 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'
16028 # Archives containing C++ object files must be created using
16029 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16030 # necessary to make sure instantiated templates are included
16032 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16035 # Green Hills C++ Compiler
16036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16038 # The C++ compiler must be used to create the archive.
16039 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16042 # GNU C++ compiler with Solaris linker
16043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16044 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16045 if $CC --version | grep -v '^2\.7' > /dev/null; then
16046 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16047 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16050 # Commands to make compiler produce verbose output that lists
16051 # what "hidden" libraries, object files and flags are used when
16052 # linking a shared library.
16053 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16055 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16057 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16058 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16059 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16061 # Commands to make compiler produce verbose output that lists
16062 # what "hidden" libraries, object files and flags are used when
16063 # linking a shared library.
16064 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16067 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16072 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16073 archive_cmds_need_lc_CXX=no
16076 case $cc_basename in
16078 # NonStop-UX NCC 3.20
16079 # FIXME: insert proper C++ library support
16083 # FIXME: insert proper C++ library support
16089 # FIXME: insert proper C++ library support
16093 # FIXME: insert proper C++ library support
16097 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16098 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16099 test "$ld_shlibs_CXX" = no && can_build_shared=no
16105 cat > conftest.$ac_ext <<EOF
16109 Foo (void) { a = 0; }
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; then
16120 # Parse the compiler output and extract the necessary
16121 # objects, libraries and library flags.
16123 # Sentinel used to keep track of whether or not we are before
16124 # the conftest object file.
16125 pre_test_object_deps_done=no
16127 # The `*' in the case matches for architectures that use `case' in
16128 # $output_verbose_cmd can trigger glob expansion during the loop
16129 # eval without this substitution.
16130 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16132 for p in `eval $output_verbose_link_cmd`; do
16136 # Some compilers place space between "-{L,R}" and the path.
16137 # Remove the space.
16138 if test $p = "-L" \
16139 || test $p = "-R"; then
16146 if test "$pre_test_object_deps_done" = no; then
16149 # Internal compiler library paths should come after those
16150 # provided the user. The postdeps already come after the
16151 # user supplied libs so there is no need to process them.
16152 if test -z "$compiler_lib_search_path_CXX"; then
16153 compiler_lib_search_path_CXX="${prev}${p}"
16155 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16158 # The "-l" case would never come before the object being
16159 # linked, so don't bother handling this case.
16162 if test -z "$postdeps_CXX"; then
16163 postdeps_CXX="${prev}${p}"
16165 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16171 # This assumes that the test object file only shows up
16172 # once in the compiler output.
16173 if test "$p" = "conftest.$objext"; then
16174 pre_test_object_deps_done=yes
16178 if test "$pre_test_object_deps_done" = no; then
16179 if test -z "$predep_objects_CXX"; then
16180 predep_objects_CXX="$p"
16182 predep_objects_CXX="$predep_objects_CXX $p"
16185 if test -z "$postdep_objects_CXX"; then
16186 postdep_objects_CXX="$p"
16188 postdep_objects_CXX="$postdep_objects_CXX $p"
16193 *) ;; # Ignore the rest.
16201 echo "libtool.m4: error: problem compiling CXX test program"
16204 $rm -f confest.$objext
16206 case " $postdeps_CXX " in
16207 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16210 lt_prog_compiler_wl_CXX=
16211 lt_prog_compiler_pic_CXX=
16212 lt_prog_compiler_static_CXX=
16214 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16215 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16217 # C++ specific cases for pic, static, wl, etc.
16218 if test "$GXX" = yes; then
16219 lt_prog_compiler_wl_CXX='-Wl,'
16220 lt_prog_compiler_static_CXX='-static'
16224 # All AIX code is PIC.
16225 if test "$host_cpu" = ia64; then
16226 # AIX 5 now supports IA64 processor
16227 lt_prog_compiler_static_CXX='-Bstatic'
16231 # FIXME: we need at least 68020 code to build shared libraries, but
16232 # adding the `-m68020' flag to GCC prevents building anything better,
16234 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16236 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16237 # PIC is the default for these OSes.
16239 mingw* | os2* | pw32*)
16240 # This hack is so that the source file can tell whether it is being
16241 # built for inclusion in a dll (and should export symbols for example).
16242 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16244 darwin* | rhapsody*)
16245 # PIC is the default on this platform
16246 # Common symbols not allowed in MH_DYLIB files
16247 lt_prog_compiler_pic_CXX='-fno-common'
16250 # DJGPP does not support shared libraries at all
16251 lt_prog_compiler_pic_CXX=
16254 if test -d /usr/nec; then
16255 lt_prog_compiler_pic_CXX=-Kconform_pic
16259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16260 # not for PA HP-UX.
16261 case "$host_cpu" in
16265 lt_prog_compiler_pic_CXX='-fPIC'
16270 lt_prog_compiler_pic_CXX='-fPIC'
16276 # All AIX code is PIC.
16277 if test "$host_cpu" = ia64; then
16278 # AIX 5 now supports IA64 processor
16279 lt_prog_compiler_static_CXX='-Bstatic'
16281 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16285 case $cc_basename in
16287 # Green Hills C++ Compiler
16288 # _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"
16293 # PIC is the default on this platform
16294 # Common symbols not allowed in MH_DYLIB files
16295 case "$cc_basename" in
16297 lt_prog_compiler_pic_CXX='-qnocommon'
16298 lt_prog_compiler_wl_CXX='-Wl,'
16303 case $cc_basename in
16305 lt_prog_compiler_pic_CXX='-KPIC'
16308 # Green Hills C++ Compiler
16309 lt_prog_compiler_pic_CXX='-pic'
16315 freebsd* | kfreebsd*-gnu)
16316 # FreeBSD uses GNU C++
16318 hpux9* | hpux10* | hpux11*)
16319 case $cc_basename in
16321 lt_prog_compiler_wl_CXX='-Wl,'
16322 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16323 if test "$host_cpu" != ia64; then
16324 lt_prog_compiler_pic_CXX='+Z'
16328 lt_prog_compiler_wl_CXX='-Wl,'
16329 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16330 case "$host_cpu" in
16335 lt_prog_compiler_pic_CXX='+Z'
16343 irix5* | irix6* | nonstopux*)
16344 case $cc_basename in
16346 lt_prog_compiler_wl_CXX='-Wl,'
16347 lt_prog_compiler_static_CXX='-non_shared'
16348 # CC pic flag -KPIC is the default.
16355 case $cc_basename in
16358 lt_prog_compiler_wl_CXX='--backend -Wl,'
16359 lt_prog_compiler_pic_CXX='-fPIC'
16363 lt_prog_compiler_wl_CXX='-Wl,'
16364 lt_prog_compiler_pic_CXX='-KPIC'
16365 lt_prog_compiler_static_CXX='-static'
16369 # Make sure the PIC flag is empty. It appears that all Alpha
16370 # Linux and Compaq Tru64 Unix objects are PIC.
16371 lt_prog_compiler_pic_CXX=
16372 lt_prog_compiler_static_CXX='-non_shared'
16383 case $cc_basename in
16385 lt_prog_compiler_pic_CXX='-W c,exportall'
16393 osf3* | osf4* | osf5*)
16394 case $cc_basename in
16396 lt_prog_compiler_wl_CXX='--backend -Wl,'
16399 # Rational C++ 2.4.1
16400 lt_prog_compiler_pic_CXX='-pic'
16403 # Digital/Compaq C++
16404 lt_prog_compiler_wl_CXX='-Wl,'
16405 # Make sure the PIC flag is empty. It appears that all Alpha
16406 # Linux and Compaq Tru64 Unix objects are PIC.
16407 lt_prog_compiler_pic_CXX=
16408 lt_prog_compiler_static_CXX='-non_shared'
16417 case $cc_basename in
16419 lt_prog_compiler_pic_CXX='-fPIC'
16426 case $cc_basename in
16428 # Sun C++ 4.2, 5.x and Centerline C++
16429 lt_prog_compiler_pic_CXX='-KPIC'
16430 lt_prog_compiler_static_CXX='-Bstatic'
16431 lt_prog_compiler_wl_CXX='-Qoption ld '
16434 # Green Hills C++ Compiler
16435 lt_prog_compiler_pic_CXX='-PIC'
16442 case $cc_basename in
16445 lt_prog_compiler_pic_CXX='-pic'
16446 lt_prog_compiler_static_CXX='-Bstatic'
16450 lt_prog_compiler_pic_CXX='-pic'
16457 case $cc_basename in
16459 # NonStop-UX NCC 3.20
16460 lt_prog_compiler_pic_CXX='-KPIC'
16471 lt_prog_compiler_can_build_shared_CXX=no
16476 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16477 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16480 # Check to make sure the PIC flag actually works.
16482 if test -n "$lt_prog_compiler_pic_CXX"; then
16484 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16486 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 lt_prog_compiler_pic_works_CXX=no
16490 ac_outfile=conftest.$ac_objext
16491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16492 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16493 # Insert the option either (1) after the last *FLAGS variable, or
16494 # (2) before a word containing "conftest.", or (3) at the end.
16495 # Note that $ac_compile itself does not contain backslashes and begins
16496 # with a dollar sign (not a hyphen), so the echo should work correctly.
16497 # The option is referenced via a variable to avoid confusing sed.
16498 lt_compile=`echo "$ac_compile" | $SED \
16499 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16501 -e 's:$: $lt_compiler_flag:'`
16502 (eval echo "\"\$as_me:16502: $lt_compile\"" >&5)
16503 (eval "$lt_compile" 2>conftest.err)
16505 cat conftest.err >&5
16506 echo "$as_me:16506: \$? = $ac_status" >&5
16507 if (exit $ac_status) && test -s "$ac_outfile"; then
16508 # The compiler can only warn and ignore the option if not recognized
16509 # So say no if there are warnings
16510 if test ! -s conftest.err; then
16511 lt_prog_compiler_pic_works_CXX=yes
16517 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16518 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16520 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16521 case $lt_prog_compiler_pic_CXX in
16523 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16526 lt_prog_compiler_pic_CXX=
16527 lt_prog_compiler_can_build_shared_CXX=no
16532 # For platforms which do not support PIC, -DPIC is meaningless:
16534 lt_prog_compiler_pic_CXX=
16537 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16541 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16543 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 lt_cv_prog_compiler_c_o_CXX=no
16547 $rm -r conftest 2>/dev/null
16551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16553 lt_compiler_flag="-o out/conftest2.$ac_objext"
16554 # Insert the option either (1) after the last *FLAGS variable, or
16555 # (2) before a word containing "conftest.", or (3) at the end.
16556 # Note that $ac_compile itself does not contain backslashes and begins
16557 # with a dollar sign (not a hyphen), so the echo should work correctly.
16558 lt_compile=`echo "$ac_compile" | $SED \
16559 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561 -e 's:$: $lt_compiler_flag:'`
16562 (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563 (eval "$lt_compile" 2>out/conftest.err)
16565 cat out/conftest.err >&5
16566 echo "$as_me:16566: \$? = $ac_status" >&5
16567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16569 # The compiler can only warn and ignore the option if not recognized
16570 # So say no if there are warnings
16571 if test ! -s out/conftest.err; then
16572 lt_cv_prog_compiler_c_o_CXX=yes
16577 # SGI C++ compiler will create directory out/ii_files/ for
16578 # template instantiation
16579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16580 $rm out/* && rmdir out
16586 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16590 hard_links="nottested"
16591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16592 # do not overwrite the value of need_locks provided by the user
16593 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16599 ln conftest.a conftest.b 2>&5 || hard_links=no
16600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16601 echo "$as_me:$LINENO: result: $hard_links" >&5
16602 echo "${ECHO_T}$hard_links" >&6
16603 if test "$hard_links" = no; then
16604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16618 # If we're using GNU nm, then we don't want the "-C" option.
16619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16621 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'
16623 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'
16627 export_symbols_cmds_CXX="$ltdll_cmds"
16630 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16637 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16638 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16639 test "$ld_shlibs_CXX" = no && can_build_shared=no
16641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16642 if test "$GCC" = yes; then
16643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16647 # Do we need to explicitly link libc?
16649 case "x$archive_cmds_need_lc_CXX" in
16651 # Assume -lc should be added
16652 archive_cmds_need_lc_CXX=yes
16654 if test "$enable_shared" = yes && test "$GCC" = yes; then
16655 case $archive_cmds_CXX in
16657 # FIXME: we may have to deal with multi-command sequences.
16660 # Test whether the compiler implicitly links with -lc since on some
16661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16662 # to ld, don't add -lc before -lgcc.
16663 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669 (eval $ac_compile) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } 2>conftest.err; then
16675 libobjs=conftest.$ac_objext
16677 wl=$lt_prog_compiler_wl_CXX
16683 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16684 allow_undefined_flag_CXX=
16685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16686 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }
16691 archive_cmds_need_lc_CXX=no
16693 archive_cmds_need_lc_CXX=yes
16695 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16697 cat conftest.err 1>&5
16700 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16701 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16710 library_names_spec=
16711 libname_spec='lib$name'
16715 postuninstall_cmds=
16719 shlibpath_overrides_runpath=unknown
16721 dynamic_linker="$host_os ld.so"
16722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16723 if test "$GCC" = yes; then
16724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16726 # if the path contains ";" then we assume it to be the separator
16727 # otherwise default to the standard path separator (i.e. ":") - it is
16728 # assumed that no part of a normal pathname contains ";" but that should
16729 # okay in the real world where ";" in dirpaths is itself problematic.
16730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16737 need_lib_prefix=unknown
16738 hardcode_into_libs=no
16740 # when you set need_version to no, make sure it does not cause -set_version
16741 # flags to be left without arguments
16742 need_version=unknown
16747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16748 shlibpath_var=LIBPATH
16750 # AIX 3 has no versioning support, so we append a major version to the name.
16751 soname_spec='${libname}${release}${shared_ext}$major'
16758 hardcode_into_libs=yes
16759 if test "$host_cpu" = ia64; then
16760 # AIX 5 supports IA64
16761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16764 # With GCC up to 2.95.x, collect2 would create an import file
16765 # for dependence libraries. The import file would start with
16766 # the line `#! .'. This would cause the generated library to
16767 # depend on `.', always an invalid library. This was fixed in
16768 # development snapshots of GCC prior to 3.0.
16770 aix4 | aix4.[01] | aix4.[01].*)
16771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16776 can_build_shared=no
16780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16781 # soname into executable. Probably we can add versioning support to
16782 # collect2, so additional links can be useful in future.
16783 if test "$aix_use_runtimelinking" = yes; then
16784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16785 # instead of lib<name>.a to let people know that these are not
16786 # typical AIX shared libraries.
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789 # We preserve .a as extension for shared libraries through AIX4.2
16790 # and later when we are not doing run time linking.
16791 library_names_spec='${libname}${release}.a $libname.a'
16792 soname_spec='${libname}${release}${shared_ext}$major'
16794 shlibpath_var=LIBPATH
16799 library_names_spec='$libname.ixlibrary $libname.a'
16800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16801 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'
16805 library_names_spec='${libname}${shared_ext}'
16806 dynamic_linker="$host_os ld.so"
16807 shlibpath_var=LIBRARY_PATH
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16819 # the default ld.so.conf also contains /usr/contrib/lib and
16820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16821 # libtool to hard-code these into programs
16824 cygwin* | mingw* | pw32*)
16825 version_type=windows
16830 case $GCC,$host_os in
16831 yes,cygwin* | yes,mingw* | yes,pw32*)
16832 library_names_spec='$libname.dll.a'
16833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16834 postinstall_cmds='base_file=`basename \${file}`~
16835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16836 dldir=$destdir/`dirname \$dlpath`~
16837 test -d \$dldir || mkdir -p \$dldir~
16838 $install_prog $dir/$dlname \$dldir/$dlname'
16839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16840 dlpath=$dir/\$dldll~
16842 shlibpath_overrides_runpath=yes
16846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16851 # MinGW DLLs use traditional 'lib' prefix
16852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16855 # It is most probably a Windows format PATH printed by
16856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16857 # path with ; separators, and with drive letters. We can handle the
16858 # drive letters (cygwin fileutils understands them), so leave them,
16859 # especially as we might pass files found there to a mingw objdump,
16860 # which wouldn't understand a cygwinified path. Ahh.
16861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16867 # pw32 DLLs use 'pw' prefix rather than 'lib'
16868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16877 dynamic_linker='Win32 ld.exe'
16878 # FIXME: first we should search . and the directory the executable is in
16882 darwin* | rhapsody*)
16883 dynamic_linker="$host_os dyld"
16884 version_type=darwin
16887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16888 soname_spec='${libname}${release}${major}$shared_ext'
16889 shlibpath_overrides_runpath=yes
16890 shlibpath_var=DYLD_LIBRARY_PATH
16891 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16893 if test "$GCC" = yes; then
16894 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"`
16896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16906 soname_spec='${libname}${release}${shared_ext}$major'
16907 shlibpath_var=LD_LIBRARY_PATH
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 shlibpath_overrides_runpath=no
16922 hardcode_into_libs=yes
16923 dynamic_linker='GNU ld.so'
16927 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16928 version_type=freebsd-$objformat
16929 case $version_type in
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16940 shlibpath_var=LD_LIBRARY_PATH
16943 shlibpath_overrides_runpath=yes
16945 freebsd3.01* | freebsdelf3.01*)
16946 shlibpath_overrides_runpath=yes
16947 hardcode_into_libs=yes
16950 shlibpath_overrides_runpath=no
16951 hardcode_into_libs=yes
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 hardcode_into_libs=yes
16966 hpux9* | hpux10* | hpux11*)
16967 # Give a soname corresponding to the major version so that dld.sl refuses to
16968 # link against other versions.
16972 case "$host_cpu" in
16975 hardcode_into_libs=yes
16976 dynamic_linker="$host_os dld.so"
16977 shlibpath_var=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 if test "X$HPUX_IA64_MODE" = X32; then
16982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16990 hardcode_into_libs=yes
16991 dynamic_linker="$host_os dld.sl"
16992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17001 dynamic_linker="$host_os dld.sl"
17002 shlibpath_var=SHLIB_PATH
17003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17009 postinstall_cmds='chmod 555 $lib'
17012 irix5* | irix6* | nonstopux*)
17014 nonstopux*) version_type=nonstopux ;;
17016 if test "$lt_cv_prog_gnu_ld" = yes; then
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17027 irix5* | nonstopux*)
17028 libsuff= shlibsuff=
17031 case $LD in # libtool.m4 will add one of these switches to LD
17032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17033 libsuff= shlibsuff= libmagic=32-bit;;
17034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17035 libsuff=32 shlibsuff=N32 libmagic=N32;;
17036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17038 *) libsuff= shlibsuff= libmagic=never-match;;
17042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17043 shlibpath_overrides_runpath=no
17044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17046 hardcode_into_libs=yes
17049 # No shared lib support for Linux oldld, aout, or coff.
17050 linux*oldld* | linux*aout* | linux*coff*)
17054 # This must be Linux ELF.
17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 shlibpath_overrides_runpath=no
17064 # This implies no fast_install, which is unacceptable.
17065 # Some rework will be needed to allow for fast_install
17066 # before this can be enabled.
17067 hardcode_into_libs=yes
17069 # Append ld.so.conf contents to the search path
17070 if test -f /etc/ld.so.conf; then
17071 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17075 # We used to test for /lib/ld.so.1 and disable shared libraries on
17076 # powerpc, because MkLinux only supported shared libraries with the
17077 # GNU dynamic linker. Since this was broken with cross compilers,
17078 # most powerpc-linux boxes support dynamic linking these days and
17079 # people can always --disable-shared, the test was removed, and we
17080 # assume the GNU/Linux dynamic linker is in use.
17081 dynamic_linker='GNU/Linux ld.so'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=no
17092 hardcode_into_libs=yes
17093 dynamic_linker='GNU ld.so'
17100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17103 dynamic_linker='NetBSD (a.out) ld.so'
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17106 soname_spec='${libname}${release}${shared_ext}$major'
17107 dynamic_linker='NetBSD ld.elf_so'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17111 hardcode_into_libs=yes
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 shlibpath_overrides_runpath=yes
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17140 openbsd2.[89] | openbsd2.[89].*)
17141 shlibpath_overrides_runpath=no
17144 shlibpath_overrides_runpath=yes
17148 shlibpath_overrides_runpath=yes
17153 libname_spec='$name'
17156 library_names_spec='$libname${shared_ext} $libname.a'
17157 dynamic_linker='OS/2 ld.exe'
17158 shlibpath_var=LIBPATH
17161 osf3* | osf4* | osf5*)
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 shlibpath_var=LD_LIBRARY_PATH
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=yes
17187 hardcode_into_libs=yes
17188 # ldd complains unless libraries are executable
17189 postinstall_cmds='chmod +x $lib'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 if test "$with_gnu_ld" = yes; then
17204 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 case $host_vendor in
17211 shlibpath_overrides_runpath=no
17213 export_dynamic_flag_spec='${wl}-Blargedynsym'
17214 runpath_var=LD_RUN_PATH
17222 shlibpath_overrides_runpath=no
17223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17229 if test -d /usr/nec ;then
17231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17232 soname_spec='$libname${shared_ext}.$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17248 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17249 echo "${ECHO_T}$dynamic_linker" >&6
17250 test "$dynamic_linker" = no && can_build_shared=no
17252 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17254 hardcode_action_CXX=
17255 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17256 test -n "$runpath_var_CXX" || \
17257 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17259 # We can hardcode non-existant directories.
17260 if test "$hardcode_direct_CXX" != no &&
17261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17262 # have to relink, otherwise we might link with an installed library
17263 # when we should be linking with a yet-to-be-installed one
17264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17265 test "$hardcode_minus_L_CXX" != no; then
17266 # Linking always hardcodes the temporary library directory.
17267 hardcode_action_CXX=relink
17269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17270 hardcode_action_CXX=immediate
17273 # We cannot hardcode anything, or else we can only hardcode existing
17275 hardcode_action_CXX=unsupported
17277 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17278 echo "${ECHO_T}$hardcode_action_CXX" >&6
17280 if test "$hardcode_action_CXX" = relink; then
17281 # Fast installation is not supported
17282 enable_fast_install=no
17283 elif test "$shlibpath_overrides_runpath" = yes ||
17284 test "$enable_shared" = no; then
17285 # Fast installation is not necessary
17286 enable_fast_install=needless
17291 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17292 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17293 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17295 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17296 echo "$as_me:$LINENO: result: yes" >&5
17297 echo "${ECHO_T}yes" >&6
17299 # FIXME - insert some real tests, host_os isn't really good enough
17302 if test -n "$STRIP" ; then
17303 striplib="$STRIP -x"
17304 echo "$as_me:$LINENO: result: yes" >&5
17305 echo "${ECHO_T}yes" >&6
17307 echo "$as_me:$LINENO: result: no" >&5
17308 echo "${ECHO_T}no" >&6
17312 echo "$as_me:$LINENO: result: no" >&5
17313 echo "${ECHO_T}no" >&6
17318 if test "x$enable_dlopen" != xyes; then
17319 enable_dlopen=unknown
17320 enable_dlopen_self=unknown
17321 enable_dlopen_self_static=unknown
17328 lt_cv_dlopen="load_add_on"
17330 lt_cv_dlopen_self=yes
17334 lt_cv_dlopen="LoadLibrary"
17339 lt_cv_dlopen="dlopen"
17344 # if libdl is installed we need to link against it
17345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17346 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17347 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 ac_check_lib_save_LIBS=$LIBS
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376 (eval $ac_link) 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_cxx_werror_flag"
17384 || test ! -s conftest.err'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_lib_dl_dlopen=yes
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 ac_cv_lib_dl_dlopen=no
17403 rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17409 if test $ac_cv_lib_dl_dlopen = yes; then
17410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17413 lt_cv_dlopen="dyld"
17415 lt_cv_dlopen_self=yes
17422 echo "$as_me:$LINENO: checking for shl_load" >&5
17423 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17424 if test "${ac_cv_func_shl_load+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435 #define shl_load innocuous_shl_load
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char shl_load (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17443 # include <limits.h>
17445 # include <assert.h>
17450 /* Override any gcc2 internal prototype to avoid an error. */
17455 /* We use char because int might match the return type of a gcc2
17456 builtin and then its argument prototype would still apply. */
17458 /* The GNU C library defines this for functions which it implements
17459 to always fail with ENOSYS. Some functions are actually named
17460 something starting with __ and the normal name is an alias. */
17461 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17464 char (*f) () = shl_load;
17473 return f != shl_load;
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480 (eval $ac_link) 2>conftest.er1
17482 grep -v '^ *+' conftest.er1 >conftest.err
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -z "$ac_cxx_werror_flag"
17488 || test ! -s conftest.err'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_func_shl_load=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_cv_func_shl_load=no
17507 rm -f conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17510 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17511 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17512 if test $ac_cv_func_shl_load = yes; then
17513 lt_cv_dlopen="shl_load"
17515 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17516 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17517 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 ac_check_lib_save_LIBS=$LIBS
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17529 /* Override any gcc2 internal prototype to avoid an error. */
17533 /* We use char because int might match the return type of a gcc2
17534 builtin and then its argument prototype would still apply. */
17544 rm -f conftest.$ac_objext conftest$ac_exeext
17545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17546 (eval $ac_link) 2>conftest.er1
17548 grep -v '^ *+' conftest.er1 >conftest.err
17550 cat conftest.err >&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } &&
17553 { ac_try='test -z "$ac_cxx_werror_flag"
17554 || test ! -s conftest.err'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest$ac_exeext'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_lib_dld_shl_load=yes
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17571 ac_cv_lib_dld_shl_load=no
17573 rm -f conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17575 LIBS=$ac_check_lib_save_LIBS
17577 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17578 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17579 if test $ac_cv_lib_dld_shl_load = yes; then
17580 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17582 echo "$as_me:$LINENO: checking for dlopen" >&5
17583 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17584 if test "${ac_cv_func_dlopen+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595 #define dlopen innocuous_dlopen
17597 /* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char dlopen (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
17603 # include <limits.h>
17605 # include <assert.h>
17610 /* Override any gcc2 internal prototype to avoid an error. */
17615 /* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17618 /* The GNU C library defines this for functions which it implements
17619 to always fail with ENOSYS. Some functions are actually named
17620 something starting with __ and the normal name is an alias. */
17621 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17624 char (*f) () = dlopen;
17633 return f != dlopen;
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640 (eval $ac_link) 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_cxx_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest$ac_exeext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_func_dlopen=yes
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_cv_func_dlopen=no
17667 rm -f conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17671 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17672 if test $ac_cv_func_dlopen = yes; then
17673 lt_cv_dlopen="dlopen"
17675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 ac_check_lib_save_LIBS=$LIBS
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 /* Override any gcc2 internal prototype to avoid an error. */
17693 /* We use char because int might match the return type of a gcc2
17694 builtin and then its argument prototype would still apply. */
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706 (eval $ac_link) 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -z "$ac_cxx_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_lib_dl_dlopen=yes
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_lib_dl_dlopen=no
17733 rm -f conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17735 LIBS=$ac_check_lib_save_LIBS
17737 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17739 if test $ac_cv_lib_dl_dlopen = yes; then
17740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17742 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17743 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17744 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 ac_check_lib_save_LIBS=$LIBS
17748 LIBS="-lsvld $LIBS"
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17756 /* Override any gcc2 internal prototype to avoid an error. */
17760 /* We use char because int might match the return type of a gcc2
17761 builtin and then its argument prototype would still apply. */
17771 rm -f conftest.$ac_objext conftest$ac_exeext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17773 (eval $ac_link) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_cxx_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest$ac_exeext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_lib_svld_dlopen=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ac_cv_lib_svld_dlopen=no
17800 rm -f conftest.err conftest.$ac_objext \
17801 conftest$ac_exeext conftest.$ac_ext
17802 LIBS=$ac_check_lib_save_LIBS
17804 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17805 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17806 if test $ac_cv_lib_svld_dlopen = yes; then
17807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17809 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17810 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17811 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 ac_check_lib_save_LIBS=$LIBS
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17823 /* Override any gcc2 internal prototype to avoid an error. */
17827 /* We use char because int might match the return type of a gcc2
17828 builtin and then its argument prototype would still apply. */
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_cxx_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_lib_dld_dld_link=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_cv_lib_dld_dld_link=no
17867 rm -f conftest.err conftest.$ac_objext \
17868 conftest$ac_exeext conftest.$ac_ext
17869 LIBS=$ac_check_lib_save_LIBS
17871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17872 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17873 if test $ac_cv_lib_dld_dld_link = yes; then
17874 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17895 if test "x$lt_cv_dlopen" != xno; then
17901 case $lt_cv_dlopen in
17903 save_CPPFLAGS="$CPPFLAGS"
17904 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17906 save_LDFLAGS="$LDFLAGS"
17907 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17910 LIBS="$lt_cv_dlopen_libs $LIBS"
17912 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17913 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17914 if test "${lt_cv_dlopen_self+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 if test "$cross_compiling" = yes; then :
17918 lt_cv_dlopen_self=cross
17920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17921 lt_status=$lt_dlunknown
17922 cat > conftest.$ac_ext <<EOF
17923 #line 17923 "configure"
17924 #include "confdefs.h"
17933 # define LT_DLGLOBAL RTLD_GLOBAL
17936 # define LT_DLGLOBAL DL_GLOBAL
17938 # define LT_DLGLOBAL 0
17942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17943 find out it does not work in some platform. */
17944 #ifndef LT_DLLAZY_OR_NOW
17946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17949 # define LT_DLLAZY_OR_NOW DL_LAZY
17952 # define LT_DLLAZY_OR_NOW RTLD_NOW
17955 # define LT_DLLAZY_OR_NOW DL_NOW
17957 # define LT_DLLAZY_OR_NOW 0
17965 extern "C" void exit (int);
17968 void fnord() { int i=42;}
17971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17972 int status = $lt_dlunknown;
17976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17978 /* dlclose (self); */
17984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985 (eval $ac_link) 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17989 (./conftest; exit; ) 2>/dev/null
17991 case x$lt_status in
17992 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17993 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17994 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17997 # compilation failed
17998 lt_cv_dlopen_self=no
18005 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18006 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18008 if test "x$lt_cv_dlopen_self" = xyes; then
18009 LDFLAGS="$LDFLAGS $link_static_flag"
18010 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18011 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18012 if test "${lt_cv_dlopen_self_static+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 if test "$cross_compiling" = yes; then :
18016 lt_cv_dlopen_self_static=cross
18018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18019 lt_status=$lt_dlunknown
18020 cat > conftest.$ac_ext <<EOF
18021 #line 18021 "configure"
18022 #include "confdefs.h"
18031 # define LT_DLGLOBAL RTLD_GLOBAL
18034 # define LT_DLGLOBAL DL_GLOBAL
18036 # define LT_DLGLOBAL 0
18040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18041 find out it does not work in some platform. */
18042 #ifndef LT_DLLAZY_OR_NOW
18044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18047 # define LT_DLLAZY_OR_NOW DL_LAZY
18050 # define LT_DLLAZY_OR_NOW RTLD_NOW
18053 # define LT_DLLAZY_OR_NOW DL_NOW
18055 # define LT_DLLAZY_OR_NOW 0
18063 extern "C" void exit (int);
18066 void fnord() { int i=42;}
18069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18070 int status = $lt_dlunknown;
18074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18076 /* dlclose (self); */
18082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083 (eval $ac_link) 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18087 (./conftest; exit; ) 2>/dev/null
18089 case x$lt_status in
18090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18092 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18095 # compilation failed
18096 lt_cv_dlopen_self_static=no
18103 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18104 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18107 CPPFLAGS="$save_CPPFLAGS"
18108 LDFLAGS="$save_LDFLAGS"
18113 case $lt_cv_dlopen_self in
18114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18115 *) enable_dlopen_self=unknown ;;
18118 case $lt_cv_dlopen_self_static in
18119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18120 *) enable_dlopen_self_static=unknown ;;
18125 # The else clause should only fire when bootstrapping the
18126 # libtool distribution, otherwise you forgot to ship ltmain.sh
18127 # with your package, and you will get complaints that there are
18128 # no rules to generate ltmain.sh.
18129 if test -f "$ltmain"; then
18130 # See if we are running on zsh, and set the options which allow our commands through
18131 # without removal of \ escapes.
18132 if test -n "${ZSH_VERSION+set}" ; then
18133 setopt NO_GLOB_SUBST
18135 # Now quote all the things that may contain metacharacters while being
18136 # careful not to overquote the AC_SUBSTed values. We take copies of the
18137 # variables and quote the copies for generation of the libtool script.
18138 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18140 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18141 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18142 deplibs_check_method reload_flag reload_cmds need_locks \
18143 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18144 lt_cv_sys_global_symbol_to_c_name_address \
18145 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18146 old_postinstall_cmds old_postuninstall_cmds \
18150 lt_prog_compiler_wl_CXX \
18151 lt_prog_compiler_pic_CXX \
18152 lt_prog_compiler_static_CXX \
18153 lt_prog_compiler_no_builtin_flag_CXX \
18154 export_dynamic_flag_spec_CXX \
18155 thread_safe_flag_spec_CXX \
18156 whole_archive_flag_spec_CXX \
18157 enable_shared_with_static_runtimes_CXX \
18158 old_archive_cmds_CXX \
18159 old_archive_from_new_cmds_CXX \
18160 predep_objects_CXX \
18161 postdep_objects_CXX \
18164 compiler_lib_search_path_CXX \
18166 archive_expsym_cmds_CXX \
18167 postinstall_cmds_CXX \
18168 postuninstall_cmds_CXX \
18169 old_archive_from_expsyms_cmds_CXX \
18170 allow_undefined_flag_CXX \
18171 no_undefined_flag_CXX \
18172 export_symbols_cmds_CXX \
18173 hardcode_libdir_flag_spec_CXX \
18174 hardcode_libdir_flag_spec_ld_CXX \
18175 hardcode_libdir_separator_CXX \
18176 hardcode_automatic_CXX \
18178 module_expsym_cmds_CXX \
18179 lt_cv_prog_compiler_c_o_CXX \
18180 exclude_expsyms_CXX \
18181 include_expsyms_CXX; do
18184 old_archive_cmds_CXX | \
18185 old_archive_from_new_cmds_CXX | \
18186 archive_cmds_CXX | \
18187 archive_expsym_cmds_CXX | \
18188 module_cmds_CXX | \
18189 module_expsym_cmds_CXX | \
18190 old_archive_from_expsyms_cmds_CXX | \
18191 export_symbols_cmds_CXX | \
18192 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18193 postinstall_cmds | postuninstall_cmds | \
18194 old_postinstall_cmds | old_postuninstall_cmds | \
18195 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18196 # Double-quote double-evaled strings.
18197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18206 *'\$0 --fallback-echo"')
18207 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18213 cat <<__EOF__ >> "$cfgfile"
18214 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18218 # Shell to use when invoking shell scripts.
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18227 # Whether or not to add -lc for building shared libraries.
18228 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18230 # Whether or not to disallow shared libs when runtime libs are static
18231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18233 # Whether or not to optimize for fast installation.
18234 fast_install=$enable_fast_install
18237 host_alias=$host_alias
18240 # An echo program that does not interpret backslashes.
18245 AR_FLAGS=$lt_AR_FLAGS
18250 # A language-specific compiler.
18251 CC=$lt_compiler_CXX
18253 # Is the compiler the GNU C compiler?
18259 # The linker used to build libraries.
18262 # Whether we need hard or soft links.
18265 # A BSD-compatible nm program.
18268 # A symbol stripping program
18271 # Used to examine libraries when file_magic_cmd begins "file"
18272 MAGIC_CMD=$MAGIC_CMD
18274 # Used on cygwin: DLL creation program.
18277 # Used on cygwin: object dumper.
18280 # Used on cygwin: assembler.
18283 # The name of the directory that contains temporary libtool files.
18286 # How to create reloadable object files.
18287 reload_flag=$lt_reload_flag
18288 reload_cmds=$lt_reload_cmds
18290 # How to pass a linker flag through the compiler.
18291 wl=$lt_lt_prog_compiler_wl_CXX
18293 # Object file suffix (normally "o").
18294 objext="$ac_objext"
18296 # Old archive suffix (normally "a").
18299 # Shared library suffix (normally ".so").
18300 shrext_cmds='$shrext_cmds'
18302 # Executable file suffix (normally "").
18305 # Additional compiler flags for building library objects.
18306 pic_flag=$lt_lt_prog_compiler_pic_CXX
18309 # What is the maximum length of a command?
18310 max_cmd_len=$lt_cv_sys_max_cmd_len
18312 # Does compiler simultaneously support -c and -o options?
18313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18315 # Must we lock files when doing compilation ?
18316 need_locks=$lt_need_locks
18318 # Do we need the lib prefix for modules?
18319 need_lib_prefix=$need_lib_prefix
18321 # Do we need a version for libraries?
18322 need_version=$need_version
18324 # Whether dlopen is supported.
18325 dlopen_support=$enable_dlopen
18327 # Whether dlopen of programs is supported.
18328 dlopen_self=$enable_dlopen_self
18330 # Whether dlopen of statically linked programs is supported.
18331 dlopen_self_static=$enable_dlopen_self_static
18333 # Compiler flag to prevent dynamic linking.
18334 link_static_flag=$lt_lt_prog_compiler_static_CXX
18336 # Compiler flag to turn off builtin functions.
18337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18339 # Compiler flag to allow reflexive dlopens.
18340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18342 # Compiler flag to generate shared objects directly from archives.
18343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18345 # Compiler flag to generate thread-safe objects.
18346 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18348 # Library versioning type.
18349 version_type=$version_type
18351 # Format of library name prefix.
18352 libname_spec=$lt_libname_spec
18354 # List of archive names. First name is the real one, the rest are links.
18355 # The last name is the one that the linker finds with -lNAME.
18356 library_names_spec=$lt_library_names_spec
18358 # The coded name of the library, if different from the real name.
18359 soname_spec=$lt_soname_spec
18361 # Commands used to build and install an old-style archive.
18363 old_archive_cmds=$lt_old_archive_cmds_CXX
18364 old_postinstall_cmds=$lt_old_postinstall_cmds
18365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18367 # Create an old-style archive from a shared archive.
18368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18370 # Create a temporary old-style archive to link instead of a shared archive.
18371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18373 # Commands used to build and install a shared archive.
18374 archive_cmds=$lt_archive_cmds_CXX
18375 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18376 postinstall_cmds=$lt_postinstall_cmds
18377 postuninstall_cmds=$lt_postuninstall_cmds
18379 # Commands used to build a loadable module (assumed same as above if empty)
18380 module_cmds=$lt_module_cmds_CXX
18381 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18383 # Commands to strip libraries.
18384 old_striplib=$lt_old_striplib
18385 striplib=$lt_striplib
18387 # Dependencies to place before the objects being linked to create a
18389 predep_objects=$lt_predep_objects_CXX
18391 # Dependencies to place after the objects being linked to create a
18393 postdep_objects=$lt_postdep_objects_CXX
18395 # Dependencies to place before the objects being linked to create a
18397 predeps=$lt_predeps_CXX
18399 # Dependencies to place after the objects being linked to create a
18401 postdeps=$lt_postdeps_CXX
18403 # The library search path used internally by the compiler when linking
18404 # a shared library.
18405 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18407 # Method to check whether dependent libraries are shared objects.
18408 deplibs_check_method=$lt_deplibs_check_method
18410 # Command to use when deplibs_check_method == file_magic.
18411 file_magic_cmd=$lt_file_magic_cmd
18413 # Flag that allows shared libraries with undefined symbols to be built.
18414 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18416 # Flag that forces no undefined symbols.
18417 no_undefined_flag=$lt_no_undefined_flag_CXX
18419 # Commands used to finish a libtool library installation in a directory.
18420 finish_cmds=$lt_finish_cmds
18422 # Same as above, but a single script fragment to be evaled but not shown.
18423 finish_eval=$lt_finish_eval
18425 # Take the output of nm and produce a listing of raw symbols and C names.
18426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18428 # Transform the output of nm in a proper C declaration
18429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18431 # Transform the output of nm in a C name address pair
18432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18434 # This is the shared library runtime path variable.
18435 runpath_var=$runpath_var
18437 # This is the shared library path variable.
18438 shlibpath_var=$shlibpath_var
18440 # Is shlibpath searched before the hard-coded library search path?
18441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18443 # How to hardcode a shared library path into an executable.
18444 hardcode_action=$hardcode_action_CXX
18446 # Whether we should hardcode library paths into libraries.
18447 hardcode_into_libs=$hardcode_into_libs
18449 # Flag to hardcode \$libdir into a binary during linking.
18450 # This must work even if \$libdir does not exist.
18451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18453 # If ld is used when linking, flag to hardcode \$libdir into
18454 # a binary during linking. This must work even if \$libdir does
18456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18458 # Whether we need a single -rpath flag with a separated argument.
18459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18462 # resulting binary.
18463 hardcode_direct=$hardcode_direct_CXX
18465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18466 # resulting binary.
18467 hardcode_minus_L=$hardcode_minus_L_CXX
18469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18470 # the resulting binary.
18471 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18473 # Set to yes if building a shared library automatically hardcodes DIR into the library
18474 # and all subsequent libraries and executables linked against it.
18475 hardcode_automatic=$hardcode_automatic_CXX
18477 # Variables whose values should be saved in libtool wrapper scripts and
18478 # restored at relink time.
18479 variables_saved_for_relink="$variables_saved_for_relink"
18481 # Whether libtool must link a program against all its dependency libraries.
18482 link_all_deplibs=$link_all_deplibs_CXX
18484 # Compile-time system search path for libraries
18485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18487 # Run-time system search path for libraries
18488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18490 # Fix the shell variable \$srcfile for the compiler.
18491 fix_srcfile_path="$fix_srcfile_path_CXX"
18493 # Set to yes if exported symbols are required.
18494 always_export_symbols=$always_export_symbols_CXX
18496 # The commands to list exported symbols.
18497 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18499 # The commands to extract the exported symbol list from a shared archive.
18500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18502 # Symbols that should not be listed in the preloaded symbols.
18503 exclude_expsyms=$lt_exclude_expsyms_CXX
18505 # Symbols that must always be exported.
18506 include_expsyms=$lt_include_expsyms_CXX
18508 # ### END LIBTOOL TAG CONFIG: $tagname
18514 # If there is no Makefile yet, we rely on a make rule to execute
18515 # `config.status --recheck' to rerun these tests and create the
18516 # libtool script then.
18517 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18518 if test -f "$ltmain_in"; then
18519 test -f Makefile && make "$ltmain"
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534 with_gnu_ldcxx=$with_gnu_ld
18535 with_gnu_ld=$lt_save_with_gnu_ld
18536 lt_cv_path_LDCXX=$lt_cv_path_LD
18537 lt_cv_path_LD=$lt_save_path_LD
18538 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18539 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18547 if test -n "$F77" && test "X$F77" != "Xno"; then
18550 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18551 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18555 archive_cmds_need_lc_F77=no
18556 allow_undefined_flag_F77=
18557 always_export_symbols_F77=no
18558 archive_expsym_cmds_F77=
18559 export_dynamic_flag_spec_F77=
18560 hardcode_direct_F77=no
18561 hardcode_libdir_flag_spec_F77=
18562 hardcode_libdir_flag_spec_ld_F77=
18563 hardcode_libdir_separator_F77=
18564 hardcode_minus_L_F77=no
18565 hardcode_automatic_F77=no
18567 module_expsym_cmds_F77=
18568 link_all_deplibs_F77=unknown
18569 old_archive_cmds_F77=$old_archive_cmds
18570 no_undefined_flag_F77=
18571 whole_archive_flag_spec_F77=
18572 enable_shared_with_static_runtimes_F77=no
18574 # Source file extension for f77 test sources.
18577 # Object file extension for compiled f77 test sources.
18581 # Code to be used in simple compile tests
18582 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18584 # Code to be used in simple link tests
18585 lt_simple_link_test_code=" program t\n end\n"
18587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18589 # If no C compiler was specified, use CC.
18592 # Allow CC to be a program name with arguments.
18596 # Allow CC to be a program name with arguments.
18601 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18603 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18605 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18606 echo "${ECHO_T}$can_build_shared" >&6
18608 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18610 test "$can_build_shared" = "no" && enable_shared=no
18612 # On AIX, shared libraries and static libraries use the same namespace, and
18613 # are all built from PIC.
18616 test "$enable_shared" = yes && enable_static=no
18617 if test -n "$RANLIB"; then
18618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18619 postinstall_cmds='$RANLIB $lib'
18623 test "$enable_shared" = yes && enable_static=no
18626 echo "$as_me:$LINENO: result: $enable_shared" >&5
18627 echo "${ECHO_T}$enable_shared" >&6
18629 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18630 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18631 # Make sure either enable_shared or enable_static is yes.
18632 test "$enable_shared" = yes || enable_static=yes
18633 echo "$as_me:$LINENO: result: $enable_static" >&5
18634 echo "${ECHO_T}$enable_static" >&6
18636 test "$ld_shlibs_F77" = no && can_build_shared=no
18641 lt_prog_compiler_wl_F77=
18642 lt_prog_compiler_pic_F77=
18643 lt_prog_compiler_static_F77=
18645 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18646 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18648 if test "$GCC" = yes; then
18649 lt_prog_compiler_wl_F77='-Wl,'
18650 lt_prog_compiler_static_F77='-static'
18654 # All AIX code is PIC.
18655 if test "$host_cpu" = ia64; then
18656 # AIX 5 now supports IA64 processor
18657 lt_prog_compiler_static_F77='-Bstatic'
18662 # FIXME: we need at least 68020 code to build shared libraries, but
18663 # adding the `-m68020' flag to GCC prevents building anything better,
18665 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18668 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18669 # PIC is the default for these OSes.
18672 mingw* | pw32* | os2*)
18673 # This hack is so that the source file can tell whether it is being
18674 # built for inclusion in a dll (and should export symbols for example).
18675 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18678 darwin* | rhapsody*)
18679 # PIC is the default on this platform
18680 # Common symbols not allowed in MH_DYLIB files
18681 lt_prog_compiler_pic_F77='-fno-common'
18685 # Just because we use GCC doesn't mean we suddenly get shared libraries
18686 # on systems that don't support them.
18687 lt_prog_compiler_can_build_shared_F77=no
18692 if test -d /usr/nec; then
18693 lt_prog_compiler_pic_F77=-Kconform_pic
18698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18699 # not for PA HP-UX.
18700 case "$host_cpu" in
18705 lt_prog_compiler_pic_F77='-fPIC'
18711 lt_prog_compiler_pic_F77='-fPIC'
18715 # PORTME Check for flag to pass linker flags through the system compiler.
18718 lt_prog_compiler_wl_F77='-Wl,'
18719 if test "$host_cpu" = ia64; then
18720 # AIX 5 now supports IA64 processor
18721 lt_prog_compiler_static_F77='-Bstatic'
18723 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18727 # PIC is the default on this platform
18728 # Common symbols not allowed in MH_DYLIB files
18729 case "$cc_basename" in
18731 lt_prog_compiler_pic_F77='-qnocommon'
18732 lt_prog_compiler_wl_F77='-Wl,'
18737 mingw* | pw32* | os2*)
18738 # This hack is so that the source file can tell whether it is being
18739 # built for inclusion in a dll (and should export symbols for example).
18740 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18743 hpux9* | hpux10* | hpux11*)
18744 lt_prog_compiler_wl_F77='-Wl,'
18745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18746 # not for PA HP-UX.
18747 case "$host_cpu" in
18752 lt_prog_compiler_pic_F77='+Z'
18755 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18756 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18759 irix5* | irix6* | nonstopux*)
18760 lt_prog_compiler_wl_F77='-Wl,'
18761 # PIC (with -KPIC) is the default.
18762 lt_prog_compiler_static_F77='-non_shared'
18766 lt_prog_compiler_pic_F77='-KPIC'
18767 lt_prog_compiler_static_F77='-Bstatic'
18773 lt_prog_compiler_wl_F77='-Wl,'
18774 lt_prog_compiler_pic_F77='-KPIC'
18775 lt_prog_compiler_static_F77='-static'
18778 lt_prog_compiler_wl_F77='-Wl,'
18779 # All Alpha code is PIC.
18780 lt_prog_compiler_static_F77='-non_shared'
18785 osf3* | osf4* | osf5*)
18786 lt_prog_compiler_wl_F77='-Wl,'
18787 # All OSF/1 code is PIC.
18788 lt_prog_compiler_static_F77='-non_shared'
18792 lt_prog_compiler_pic_F77='-Kpic'
18793 lt_prog_compiler_static_F77='-dn'
18797 lt_prog_compiler_wl_F77='-Wl,'
18798 lt_prog_compiler_pic_F77='-KPIC'
18799 lt_prog_compiler_static_F77='-Bstatic'
18803 lt_prog_compiler_wl_F77='-Qoption ld '
18804 lt_prog_compiler_pic_F77='-PIC'
18805 lt_prog_compiler_static_F77='-Bstatic'
18808 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18809 lt_prog_compiler_wl_F77='-Wl,'
18810 lt_prog_compiler_pic_F77='-KPIC'
18811 lt_prog_compiler_static_F77='-Bstatic'
18815 if test -d /usr/nec ;then
18816 lt_prog_compiler_pic_F77='-Kconform_pic'
18817 lt_prog_compiler_static_F77='-Bstatic'
18822 lt_prog_compiler_pic_F77='-pic'
18823 lt_prog_compiler_static_F77='-Bstatic'
18827 lt_prog_compiler_can_build_shared_F77=no
18832 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18833 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18836 # Check to make sure the PIC flag actually works.
18838 if test -n "$lt_prog_compiler_pic_F77"; then
18840 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18841 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18842 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 lt_prog_compiler_pic_works_F77=no
18846 ac_outfile=conftest.$ac_objext
18847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18848 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18849 # Insert the option either (1) after the last *FLAGS variable, or
18850 # (2) before a word containing "conftest.", or (3) at the end.
18851 # Note that $ac_compile itself does not contain backslashes and begins
18852 # with a dollar sign (not a hyphen), so the echo should work correctly.
18853 # The option is referenced via a variable to avoid confusing sed.
18854 lt_compile=`echo "$ac_compile" | $SED \
18855 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18857 -e 's:$: $lt_compiler_flag:'`
18858 (eval echo "\"\$as_me:18858: $lt_compile\"" >&5)
18859 (eval "$lt_compile" 2>conftest.err)
18861 cat conftest.err >&5
18862 echo "$as_me:18862: \$? = $ac_status" >&5
18863 if (exit $ac_status) && test -s "$ac_outfile"; then
18864 # The compiler can only warn and ignore the option if not recognized
18865 # So say no if there are warnings
18866 if test ! -s conftest.err; then
18867 lt_prog_compiler_pic_works_F77=yes
18873 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18874 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18876 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18877 case $lt_prog_compiler_pic_F77 in
18879 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18882 lt_prog_compiler_pic_F77=
18883 lt_prog_compiler_can_build_shared_F77=no
18888 # For platforms which do not support PIC, -DPIC is meaningless:
18890 lt_prog_compiler_pic_F77=
18893 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18897 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18899 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 lt_cv_prog_compiler_c_o_F77=no
18903 $rm -r conftest 2>/dev/null
18907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18909 lt_compiler_flag="-o out/conftest2.$ac_objext"
18910 # Insert the option either (1) after the last *FLAGS variable, or
18911 # (2) before a word containing "conftest.", or (3) at the end.
18912 # Note that $ac_compile itself does not contain backslashes and begins
18913 # with a dollar sign (not a hyphen), so the echo should work correctly.
18914 lt_compile=`echo "$ac_compile" | $SED \
18915 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18917 -e 's:$: $lt_compiler_flag:'`
18918 (eval echo "\"\$as_me:18918: $lt_compile\"" >&5)
18919 (eval "$lt_compile" 2>out/conftest.err)
18921 cat out/conftest.err >&5
18922 echo "$as_me:18922: \$? = $ac_status" >&5
18923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18925 # The compiler can only warn and ignore the option if not recognized
18926 # So say no if there are warnings
18927 if test ! -s out/conftest.err; then
18928 lt_cv_prog_compiler_c_o_F77=yes
18933 # SGI C++ compiler will create directory out/ii_files/ for
18934 # template instantiation
18935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18936 $rm out/* && rmdir out
18942 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18946 hard_links="nottested"
18947 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18948 # do not overwrite the value of need_locks provided by the user
18949 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18950 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18955 ln conftest.a conftest.b 2>&5 || hard_links=no
18956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18957 echo "$as_me:$LINENO: result: $hard_links" >&5
18958 echo "${ECHO_T}$hard_links" >&6
18959 if test "$hard_links" = no; then
18960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18961 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18968 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18972 allow_undefined_flag_F77=
18973 enable_shared_with_static_runtimes_F77=no
18975 archive_expsym_cmds_F77=
18976 old_archive_From_new_cmds_F77=
18977 old_archive_from_expsyms_cmds_F77=
18978 export_dynamic_flag_spec_F77=
18979 whole_archive_flag_spec_F77=
18980 thread_safe_flag_spec_F77=
18981 hardcode_libdir_flag_spec_F77=
18982 hardcode_libdir_flag_spec_ld_F77=
18983 hardcode_libdir_separator_F77=
18984 hardcode_direct_F77=no
18985 hardcode_minus_L_F77=no
18986 hardcode_shlibpath_var_F77=unsupported
18987 link_all_deplibs_F77=unknown
18988 hardcode_automatic_F77=no
18990 module_expsym_cmds_F77=
18991 always_export_symbols_F77=no
18992 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18993 # include_expsyms should be a list of space-separated symbols to be *always*
18994 # included in the symbol list
18995 include_expsyms_F77=
18996 # exclude_expsyms can be an extended regexp of symbols to exclude
18997 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18999 # as well as any symbol that contains `d'.
19000 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19002 # platforms (ab)use it in PIC code, but their linkers get confused if
19003 # the symbol is explicitly referenced. Since portable code cannot
19004 # rely on this symbol name, it's probably fine to never include it in
19005 # preloaded symbol tables.
19006 extract_expsyms_cmds=
19009 cygwin* | mingw* | pw32*)
19010 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19011 # When not using gcc, we currently assume that we are using
19012 # Microsoft Visual C++.
19013 if test "$GCC" != yes; then
19023 if test "$with_gnu_ld" = yes; then
19024 # If archive_cmds runs LD, not CC, wlarc should be empty
19027 # See if GNU ld supports shared libraries.
19029 aix3* | aix4* | aix5*)
19030 # On AIX/PPC, the GNU linker is very broken
19031 if test "$host_cpu" != ia64; then
19035 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19036 *** to be unable to reliably create shared libraries on AIX.
19037 *** Therefore, libtool is disabling shared libraries support. If you
19038 *** really care for shared libraries, you may want to modify your PATH
19039 *** so that a non-GNU linker is found, and then restart.
19046 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)'
19047 hardcode_libdir_flag_spec_F77='-L$libdir'
19048 hardcode_minus_L_F77=yes
19050 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19051 # that the semantics of dynamic libraries on AmigaOS, at least up
19052 # to version 4, is to share data among multiple programs linked
19053 # with the same dynamic library. Since this doesn't match the
19054 # behavior of shared libraries on other platforms, we can't use
19060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19061 allow_undefined_flag_F77=unsupported
19062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19063 # support --undefined. This deserves some investigation. FIXME
19064 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070 cygwin* | mingw* | pw32*)
19071 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19072 # as there is no search path for DLLs.
19073 hardcode_libdir_flag_spec_F77='-L$libdir'
19074 allow_undefined_flag_F77=unsupported
19075 always_export_symbols_F77=no
19076 enable_shared_with_static_runtimes_F77=yes
19077 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19079 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19080 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19081 # If the export-symbols file already is a .def file (1st line
19082 # is EXPORTS), use it as is; otherwise, prepend...
19083 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19084 cp $export_symbols $output_objdir/$soname.def;
19086 echo EXPORTS > $output_objdir/$soname.def;
19087 cat $export_symbols >> $output_objdir/$soname.def;
19089 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19097 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19100 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19101 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19106 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19111 *** create shared libraries on Solaris systems. Therefore, libtool
19112 *** is disabling shared libraries support. We urge you to upgrade GNU
19113 *** binutils to release 2.9.1 or newer. Another option is to modify
19114 *** your PATH or compiler configuration so that the native linker is
19115 *** used, and then restart.
19118 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19119 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19120 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19127 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19129 hardcode_direct_F77=yes
19130 hardcode_shlibpath_var_F77=no
19134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19135 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19136 archive_cmds_F77="$tmp_archive_cmds"
19137 supports_anon_versioning=no
19138 case `$LD -v 2>/dev/null` in
19139 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19142 *\ 2.11.*) ;; # other 2.11 versions
19143 *) supports_anon_versioning=yes ;;
19145 if test $supports_anon_versioning = yes; then
19146 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19148 $echo "local: *; };" >> $output_objdir/$libname.ver~
19149 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19151 archive_expsym_cmds_F77="$tmp_archive_cmds"
19159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19160 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19168 if test "$ld_shlibs_F77" = yes; then
19169 runpath_var=LD_RUN_PATH
19170 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19171 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19172 # ancient GNU ld didn't support --whole-archive et. al.
19173 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19174 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19176 whole_archive_flag_spec_F77=
19180 # PORTME fill in a description of your system's linker (not GNU ld)
19183 allow_undefined_flag_F77=unsupported
19184 always_export_symbols_F77=yes
19185 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'
19186 # Note: this linker hardcodes the directories in LIBPATH if there
19187 # are no directories specified by -L.
19188 hardcode_minus_L_F77=yes
19189 if test "$GCC" = yes && test -z "$link_static_flag"; then
19190 # Neither direct hardcoding nor static linking is supported with a
19192 hardcode_direct_F77=unsupported
19197 if test "$host_cpu" = ia64; then
19198 # On IA64, the linker does run time linking by default, so we don't
19199 # have to do anything special.
19200 aix_use_runtimelinking=no
19201 exp_sym_flag='-Bexport'
19204 # If we're using GNU nm, then we don't want the "-C" option.
19205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19206 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19207 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'
19209 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'
19211 aix_use_runtimelinking=no
19213 # Test if we are trying to use run time linking or normal
19214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19215 # need to do runtime linking.
19216 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19217 for ld_flag in $LDFLAGS; do
19218 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19219 aix_use_runtimelinking=yes
19225 exp_sym_flag='-bexport'
19226 no_entry_flag='-bnoentry'
19229 # When large executables or shared objects are built, AIX ld can
19230 # have problems creating the table of contents. If linking a library
19231 # or program results in "error TOC overflow" add -mminimal-toc to
19232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19235 archive_cmds_F77=''
19236 hardcode_direct_F77=yes
19237 hardcode_libdir_separator_F77=':'
19238 link_all_deplibs_F77=yes
19240 if test "$GCC" = yes; then
19241 case $host_os in aix4.012|aix4.012.*)
19242 # We only want to do this on AIX 4.2 and lower, the check
19243 # below for broken collect2 doesn't work under 4.3+
19244 collect2name=`${CC} -print-prog-name=collect2`
19245 if test -f "$collect2name" && \
19246 strings "$collect2name" | grep resolve_lib_name >/dev/null
19248 # We have reworked collect2
19249 hardcode_direct_F77=yes
19251 # We have old collect2
19252 hardcode_direct_F77=unsupported
19253 # It fails to find uninstalled libraries when the uninstalled
19254 # path is not listed in the libpath. Setting hardcode_minus_L
19255 # to unsupported forces relinking
19256 hardcode_minus_L_F77=yes
19257 hardcode_libdir_flag_spec_F77='-L$libdir'
19258 hardcode_libdir_separator_F77=
19261 shared_flag='-shared'
19264 if test "$host_cpu" = ia64; then
19265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19266 # chokes on -Wl,-G. The following line is correct:
19269 if test "$aix_use_runtimelinking" = yes; then
19270 shared_flag='${wl}-G'
19272 shared_flag='${wl}-bM:SRE'
19277 # It seems that -bexpall does not export symbols beginning with
19278 # underscore (_), so it is better to generate a list of symbols to export.
19279 always_export_symbols_F77=yes
19280 if test "$aix_use_runtimelinking" = yes; then
19281 # Warning - without using the other runtime loading flags (-brtl),
19282 # -berok will link without error, but may produce a broken library.
19283 allow_undefined_flag_F77='-berok'
19284 # Determine the default libpath from the value encoded in an empty executable.
19285 cat >conftest.$ac_ext <<_ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19292 (eval $ac_link) 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -z "$ac_f77_werror_flag"
19300 || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest$ac_exeext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19315 # Check for a 64-bit object if we didn't find anything.
19316 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; }
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19323 rm -f conftest.err conftest.$ac_objext \
19324 conftest$ac_exeext conftest.$ac_ext
19325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19327 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19328 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"
19330 if test "$host_cpu" = ia64; then
19331 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19332 allow_undefined_flag_F77="-z nodefs"
19333 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"
19335 # Determine the default libpath from the value encoded in an empty executable.
19336 cat >conftest.$ac_ext <<_ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19343 (eval $ac_link) 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
19350 { ac_try='test -z "$ac_f77_werror_flag"
19351 || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19366 # Check for a 64-bit object if we didn't find anything.
19367 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; }
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19374 rm -f conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
19376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19378 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19379 # Warning - without using the other run time loading flags,
19380 # -berok will link without error, but may produce a broken library.
19381 no_undefined_flag_F77=' ${wl}-bernotok'
19382 allow_undefined_flag_F77=' ${wl}-berok'
19383 # -bexpall does not export symbols beginning with underscore (_)
19384 always_export_symbols_F77=yes
19385 # Exported symbols can be pulled into shared objects from archives
19386 whole_archive_flag_spec_F77=' '
19387 archive_cmds_need_lc_F77=yes
19388 # This is similar to how AIX traditionally builds it's shared libraries.
19389 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'
19395 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)'
19396 hardcode_libdir_flag_spec_F77='-L$libdir'
19397 hardcode_minus_L_F77=yes
19398 # see comment about different semantics on the GNU ld section
19403 export_dynamic_flag_spec_F77=-rdynamic
19406 cygwin* | mingw* | pw32*)
19407 # When not using gcc, we currently assume that we are using
19408 # Microsoft Visual C++.
19409 # hardcode_libdir_flag_spec is actually meaningless, as there is
19410 # no search path for DLLs.
19411 hardcode_libdir_flag_spec_F77=' '
19412 allow_undefined_flag_F77=unsupported
19413 # Tell ltmain to make .lib files, not .a files.
19415 # Tell ltmain to make .dll files, not .so files.
19417 # FIXME: Setting linknames here is a bad hack.
19418 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19419 # The linker will automatically build a .lib file if we build a DLL.
19420 old_archive_From_new_cmds_F77='true'
19421 # FIXME: Should let the user specify the lib program.
19422 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19423 fix_srcfile_path='`cygpath -w "$srcfile"`'
19424 enable_shared_with_static_runtimes_F77=yes
19427 darwin* | rhapsody*)
19429 rhapsody* | darwin1.[012])
19430 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19433 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19434 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19436 case ${MACOSX_DEPLOYMENT_TARGET} in
19438 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19441 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19447 archive_cmds_need_lc_F77=no
19448 hardcode_direct_F77=no
19449 hardcode_automatic_F77=yes
19450 hardcode_shlibpath_var_F77=unsupported
19451 whole_archive_flag_spec_F77=''
19452 link_all_deplibs_F77=yes
19453 if test "$GCC" = yes ; then
19454 output_verbose_link_cmd='echo'
19455 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19456 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19458 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}'
19459 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}'
19461 case "$cc_basename" in
19463 output_verbose_link_cmd='echo'
19464 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19465 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19467 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}'
19468 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}'
19478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19479 hardcode_libdir_flag_spec_F77='-L$libdir'
19480 hardcode_shlibpath_var_F77=no
19487 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19488 # support. Future versions do this automatically, but an explicit c++rt0.o
19489 # does not break anything, and helps significantly (at the cost of a little
19492 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19493 hardcode_libdir_flag_spec_F77='-R$libdir'
19494 hardcode_direct_F77=yes
19495 hardcode_shlibpath_var_F77=no
19498 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19500 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19501 hardcode_direct_F77=yes
19502 hardcode_minus_L_F77=yes
19503 hardcode_shlibpath_var_F77=no
19506 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19507 freebsd* | kfreebsd*-gnu)
19508 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19509 hardcode_libdir_flag_spec_F77='-R$libdir'
19510 hardcode_direct_F77=yes
19511 hardcode_shlibpath_var_F77=no
19515 if test "$GCC" = yes; then
19516 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'
19518 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'
19520 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_F77=:
19522 hardcode_direct_F77=yes
19524 # hardcode_minus_L: Not really in the search PATH,
19525 # but as the default location of the library.
19526 hardcode_minus_L_F77=yes
19527 export_dynamic_flag_spec_F77='${wl}-E'
19531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19532 case "$host_cpu" in
19534 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19541 case "$host_cpu" in
19543 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19546 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19550 if test "$with_gnu_ld" = no; then
19551 case "$host_cpu" in
19553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19554 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19555 hardcode_libdir_separator_F77=:
19556 hardcode_direct_F77=no
19557 hardcode_shlibpath_var_F77=no
19560 hardcode_libdir_flag_spec_F77='-L$libdir'
19561 hardcode_direct_F77=no
19562 hardcode_shlibpath_var_F77=no
19564 # hardcode_minus_L: Not really in the search PATH,
19565 # but as the default location of the library.
19566 hardcode_minus_L_F77=yes
19569 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19570 hardcode_libdir_separator_F77=:
19571 hardcode_direct_F77=yes
19572 export_dynamic_flag_spec_F77='${wl}-E'
19574 # hardcode_minus_L: Not really in the search PATH,
19575 # but as the default location of the library.
19576 hardcode_minus_L_F77=yes
19582 irix5* | irix6* | nonstopux*)
19583 if test "$GCC" = yes; then
19584 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'
19586 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'
19587 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19589 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19590 hardcode_libdir_separator_F77=:
19591 link_all_deplibs_F77=yes
19595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19598 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19600 hardcode_libdir_flag_spec_F77='-R$libdir'
19601 hardcode_direct_F77=yes
19602 hardcode_shlibpath_var_F77=no
19606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19607 hardcode_direct_F77=yes
19608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19609 hardcode_libdir_separator_F77=:
19610 hardcode_shlibpath_var_F77=no
19614 hardcode_direct_F77=yes
19615 hardcode_shlibpath_var_F77=no
19616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19618 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19619 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19620 export_dynamic_flag_spec_F77='${wl}-E'
19623 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19624 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19625 hardcode_libdir_flag_spec_F77='-R$libdir'
19628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19629 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19636 hardcode_libdir_flag_spec_F77='-L$libdir'
19637 hardcode_minus_L_F77=yes
19638 allow_undefined_flag_F77=unsupported
19639 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'
19640 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19644 if test "$GCC" = yes; then
19645 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19646 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'
19648 allow_undefined_flag_F77=' -expect_unresolved \*'
19649 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'
19651 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19652 hardcode_libdir_separator_F77=:
19655 osf4* | osf5*) # as osf3* with the addition of -msym flag
19656 if test "$GCC" = yes; then
19657 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19658 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'
19659 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19661 allow_undefined_flag_F77=' -expect_unresolved \*'
19662 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'
19663 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~
19664 $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'
19666 # Both c and cxx compiler support -rpath directly
19667 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19669 hardcode_libdir_separator_F77=:
19673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19674 hardcode_shlibpath_var_F77=no
19675 export_dynamic_flag_spec_F77='${wl}-Bexport'
19676 runpath_var=LD_RUN_PATH
19677 hardcode_runpath_var=yes
19681 no_undefined_flag_F77=' -z text'
19682 if test "$GCC" = yes; then
19683 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19684 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19685 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19687 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19688 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19691 hardcode_libdir_flag_spec_F77='-R$libdir'
19692 hardcode_shlibpath_var_F77=no
19694 solaris2.[0-5] | solaris2.[0-5].*) ;;
19695 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19696 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19698 link_all_deplibs_F77=yes
19702 if test "x$host_vendor" = xsequent; then
19703 # Use $CC to link under sequent, because it throws in some extra .o
19704 # files that make .init and .fini sections work.
19705 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19707 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19709 hardcode_libdir_flag_spec_F77='-L$libdir'
19710 hardcode_direct_F77=yes
19711 hardcode_minus_L_F77=yes
19712 hardcode_shlibpath_var_F77=no
19716 case $host_vendor in
19718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_direct_F77=yes # is this really true???
19722 ## LD is ld it makes a PLAMLIB
19723 ## CC just makes a GrossModule.
19724 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19725 reload_cmds_F77='$CC -r -o $output$reload_objs'
19726 hardcode_direct_F77=no
19729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19733 runpath_var='LD_RUN_PATH'
19734 hardcode_shlibpath_var_F77=no
19738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19739 hardcode_shlibpath_var_F77=no
19740 export_dynamic_flag_spec_F77='-Bexport'
19744 if test -d /usr/nec; then
19745 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19746 hardcode_shlibpath_var_F77=no
19747 runpath_var=LD_RUN_PATH
19748 hardcode_runpath_var=yes
19754 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19755 hardcode_direct_F77=yes
19756 hardcode_minus_L_F77=no
19757 hardcode_shlibpath_var_F77=no
19758 hardcode_runpath_var=yes
19759 runpath_var=LD_RUN_PATH
19762 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19763 no_undefined_flag_F77='${wl}-z ${wl}text'
19764 if test "$GCC" = yes; then
19765 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19767 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19769 runpath_var='LD_RUN_PATH'
19770 hardcode_shlibpath_var_F77=no
19774 no_undefined_flag_F77=' -z text'
19775 # $CC -shared without GNU ld will not create a library from C++
19776 # object files and a static libstdc++, better avoid it by now
19777 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19779 $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=
19781 hardcode_shlibpath_var_F77=no
19782 runpath_var='LD_RUN_PATH'
19786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787 hardcode_libdir_flag_spec_F77='-L$libdir'
19788 hardcode_shlibpath_var_F77=no
19797 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19798 echo "${ECHO_T}$ld_shlibs_F77" >&6
19799 test "$ld_shlibs_F77" = no && can_build_shared=no
19801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19802 if test "$GCC" = yes; then
19803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19807 # Do we need to explicitly link libc?
19809 case "x$archive_cmds_need_lc_F77" in
19811 # Assume -lc should be added
19812 archive_cmds_need_lc_F77=yes
19814 if test "$enable_shared" = yes && test "$GCC" = yes; then
19815 case $archive_cmds_F77 in
19817 # FIXME: we may have to deal with multi-command sequences.
19820 # Test whether the compiler implicitly links with -lc since on some
19821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19822 # to ld, don't add -lc before -lgcc.
19823 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829 (eval $ac_compile) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } 2>conftest.err; then
19835 libobjs=conftest.$ac_objext
19837 wl=$lt_prog_compiler_wl_F77
19843 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19844 allow_undefined_flag_F77=
19845 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19846 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }
19851 archive_cmds_need_lc_F77=no
19853 archive_cmds_need_lc_F77=yes
19855 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19857 cat conftest.err 1>&5
19860 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19861 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19868 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19869 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19870 library_names_spec=
19871 libname_spec='lib$name'
19875 postuninstall_cmds=
19879 shlibpath_overrides_runpath=unknown
19881 dynamic_linker="$host_os ld.so"
19882 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19883 if test "$GCC" = yes; then
19884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19885 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19886 # if the path contains ";" then we assume it to be the separator
19887 # otherwise default to the standard path separator (i.e. ":") - it is
19888 # assumed that no part of a normal pathname contains ";" but that should
19889 # okay in the real world where ";" in dirpaths is itself problematic.
19890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19897 need_lib_prefix=unknown
19898 hardcode_into_libs=no
19900 # when you set need_version to no, make sure it does not cause -set_version
19901 # flags to be left without arguments
19902 need_version=unknown
19907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19908 shlibpath_var=LIBPATH
19910 # AIX 3 has no versioning support, so we append a major version to the name.
19911 soname_spec='${libname}${release}${shared_ext}$major'
19918 hardcode_into_libs=yes
19919 if test "$host_cpu" = ia64; then
19920 # AIX 5 supports IA64
19921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19922 shlibpath_var=LD_LIBRARY_PATH
19924 # With GCC up to 2.95.x, collect2 would create an import file
19925 # for dependence libraries. The import file would start with
19926 # the line `#! .'. This would cause the generated library to
19927 # depend on `.', always an invalid library. This was fixed in
19928 # development snapshots of GCC prior to 3.0.
19930 aix4 | aix4.[01] | aix4.[01].*)
19931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19933 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19936 can_build_shared=no
19940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19941 # soname into executable. Probably we can add versioning support to
19942 # collect2, so additional links can be useful in future.
19943 if test "$aix_use_runtimelinking" = yes; then
19944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19945 # instead of lib<name>.a to let people know that these are not
19946 # typical AIX shared libraries.
19947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19949 # We preserve .a as extension for shared libraries through AIX4.2
19950 # and later when we are not doing run time linking.
19951 library_names_spec='${libname}${release}.a $libname.a'
19952 soname_spec='${libname}${release}${shared_ext}$major'
19954 shlibpath_var=LIBPATH
19959 library_names_spec='$libname.ixlibrary $libname.a'
19960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19961 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'
19965 library_names_spec='${libname}${shared_ext}'
19966 dynamic_linker="$host_os ld.so"
19967 shlibpath_var=LIBRARY_PATH
19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19974 soname_spec='${libname}${release}${shared_ext}$major'
19975 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19976 shlibpath_var=LD_LIBRARY_PATH
19977 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19978 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19979 # the default ld.so.conf also contains /usr/contrib/lib and
19980 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19981 # libtool to hard-code these into programs
19984 cygwin* | mingw* | pw32*)
19985 version_type=windows
19990 case $GCC,$host_os in
19991 yes,cygwin* | yes,mingw* | yes,pw32*)
19992 library_names_spec='$libname.dll.a'
19993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19994 postinstall_cmds='base_file=`basename \${file}`~
19995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19996 dldir=$destdir/`dirname \$dlpath`~
19997 test -d \$dldir || mkdir -p \$dldir~
19998 $install_prog $dir/$dlname \$dldir/$dlname'
19999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20000 dlpath=$dir/\$dldll~
20002 shlibpath_overrides_runpath=yes
20006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20008 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20011 # MinGW DLLs use traditional 'lib' prefix
20012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20013 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20014 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20015 # It is most probably a Windows format PATH printed by
20016 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20017 # path with ; separators, and with drive letters. We can handle the
20018 # drive letters (cygwin fileutils understands them), so leave them,
20019 # especially as we might pass files found there to a mingw objdump,
20020 # which wouldn't understand a cygwinified path. Ahh.
20021 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20027 # pw32 DLLs use 'pw' prefix rather than 'lib'
20028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20037 dynamic_linker='Win32 ld.exe'
20038 # FIXME: first we should search . and the directory the executable is in
20042 darwin* | rhapsody*)
20043 dynamic_linker="$host_os dyld"
20044 version_type=darwin
20047 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20048 soname_spec='${libname}${release}${major}$shared_ext'
20049 shlibpath_overrides_runpath=yes
20050 shlibpath_var=DYLD_LIBRARY_PATH
20051 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20052 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20053 if test "$GCC" = yes; then
20054 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"`
20056 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20066 soname_spec='${libname}${release}${shared_ext}$major'
20067 shlibpath_var=LD_LIBRARY_PATH
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20079 soname_spec='${libname}${release}${shared_ext}$major'
20080 shlibpath_var=LD_LIBRARY_PATH
20081 shlibpath_overrides_runpath=no
20082 hardcode_into_libs=yes
20083 dynamic_linker='GNU ld.so'
20087 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20088 version_type=freebsd-$objformat
20089 case $version_type in
20091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20100 shlibpath_var=LD_LIBRARY_PATH
20103 shlibpath_overrides_runpath=yes
20105 freebsd3.01* | freebsdelf3.01*)
20106 shlibpath_overrides_runpath=yes
20107 hardcode_into_libs=yes
20110 shlibpath_overrides_runpath=no
20111 hardcode_into_libs=yes
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 hardcode_into_libs=yes
20126 hpux9* | hpux10* | hpux11*)
20127 # Give a soname corresponding to the major version so that dld.sl refuses to
20128 # link against other versions.
20132 case "$host_cpu" in
20135 hardcode_into_libs=yes
20136 dynamic_linker="$host_os dld.so"
20137 shlibpath_var=LD_LIBRARY_PATH
20138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 if test "X$HPUX_IA64_MODE" = X32; then
20142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20150 hardcode_into_libs=yes
20151 dynamic_linker="$host_os dld.sl"
20152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161 dynamic_linker="$host_os dld.sl"
20162 shlibpath_var=SHLIB_PATH
20163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 soname_spec='${libname}${release}${shared_ext}$major'
20168 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20169 postinstall_cmds='chmod 555 $lib'
20172 irix5* | irix6* | nonstopux*)
20174 nonstopux*) version_type=nonstopux ;;
20176 if test "$lt_cv_prog_gnu_ld" = yes; then
20184 soname_spec='${libname}${release}${shared_ext}$major'
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20187 irix5* | nonstopux*)
20188 libsuff= shlibsuff=
20191 case $LD in # libtool.m4 will add one of these switches to LD
20192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20193 libsuff= shlibsuff= libmagic=32-bit;;
20194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20195 libsuff=32 shlibsuff=N32 libmagic=N32;;
20196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20198 *) libsuff= shlibsuff= libmagic=never-match;;
20202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20203 shlibpath_overrides_runpath=no
20204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20206 hardcode_into_libs=yes
20209 # No shared lib support for Linux oldld, aout, or coff.
20210 linux*oldld* | linux*aout* | linux*coff*)
20214 # This must be Linux ELF.
20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20220 soname_spec='${libname}${release}${shared_ext}$major'
20221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20222 shlibpath_var=LD_LIBRARY_PATH
20223 shlibpath_overrides_runpath=no
20224 # This implies no fast_install, which is unacceptable.
20225 # Some rework will be needed to allow for fast_install
20226 # before this can be enabled.
20227 hardcode_into_libs=yes
20229 # Append ld.so.conf contents to the search path
20230 if test -f /etc/ld.so.conf; then
20231 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20235 # We used to test for /lib/ld.so.1 and disable shared libraries on
20236 # powerpc, because MkLinux only supported shared libraries with the
20237 # GNU dynamic linker. Since this was broken with cross compilers,
20238 # most powerpc-linux boxes support dynamic linking these days and
20239 # people can always --disable-shared, the test was removed, and we
20240 # assume the GNU/Linux dynamic linker is in use.
20241 dynamic_linker='GNU/Linux ld.so'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20249 soname_spec='${libname}${release}${shared_ext}$major'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 shlibpath_overrides_runpath=no
20252 hardcode_into_libs=yes
20253 dynamic_linker='GNU ld.so'
20260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20263 dynamic_linker='NetBSD (a.out) ld.so'
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 dynamic_linker='NetBSD ld.elf_so'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=yes
20271 hardcode_into_libs=yes
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=yes
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 shlibpath_overrides_runpath=yes
20295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20297 shlibpath_var=LD_LIBRARY_PATH
20298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20300 openbsd2.[89] | openbsd2.[89].*)
20301 shlibpath_overrides_runpath=no
20304 shlibpath_overrides_runpath=yes
20308 shlibpath_overrides_runpath=yes
20313 libname_spec='$name'
20316 library_names_spec='$libname${shared_ext} $libname.a'
20317 dynamic_linker='OS/2 ld.exe'
20318 shlibpath_var=LIBPATH
20321 osf3* | osf4* | osf5*)
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20334 soname_spec='${libname}${release}${shared_ext}$major'
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 shlibpath_var=LD_LIBRARY_PATH
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=yes
20347 hardcode_into_libs=yes
20348 # ldd complains unless libraries are executable
20349 postinstall_cmds='chmod +x $lib'
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=yes
20358 if test "$with_gnu_ld" = yes; then
20364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 shlibpath_var=LD_LIBRARY_PATH
20369 case $host_vendor in
20371 shlibpath_overrides_runpath=no
20373 export_dynamic_flag_spec='${wl}-Blargedynsym'
20374 runpath_var=LD_RUN_PATH
20382 shlibpath_overrides_runpath=no
20383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20389 if test -d /usr/nec ;then
20391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20392 soname_spec='$libname${shared_ext}.$major'
20393 shlibpath_var=LD_LIBRARY_PATH
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20408 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20409 echo "${ECHO_T}$dynamic_linker" >&6
20410 test "$dynamic_linker" = no && can_build_shared=no
20412 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20413 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20414 hardcode_action_F77=
20415 if test -n "$hardcode_libdir_flag_spec_F77" || \
20416 test -n "$runpath_var_F77" || \
20417 test "X$hardcode_automatic_F77" = "Xyes" ; then
20419 # We can hardcode non-existant directories.
20420 if test "$hardcode_direct_F77" != no &&
20421 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20422 # have to relink, otherwise we might link with an installed library
20423 # when we should be linking with a yet-to-be-installed one
20424 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20425 test "$hardcode_minus_L_F77" != no; then
20426 # Linking always hardcodes the temporary library directory.
20427 hardcode_action_F77=relink
20429 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20430 hardcode_action_F77=immediate
20433 # We cannot hardcode anything, or else we can only hardcode existing
20435 hardcode_action_F77=unsupported
20437 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20438 echo "${ECHO_T}$hardcode_action_F77" >&6
20440 if test "$hardcode_action_F77" = relink; then
20441 # Fast installation is not supported
20442 enable_fast_install=no
20443 elif test "$shlibpath_overrides_runpath" = yes ||
20444 test "$enable_shared" = no; then
20445 # Fast installation is not necessary
20446 enable_fast_install=needless
20451 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20452 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20453 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20454 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20455 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20456 echo "$as_me:$LINENO: result: yes" >&5
20457 echo "${ECHO_T}yes" >&6
20459 # FIXME - insert some real tests, host_os isn't really good enough
20462 if test -n "$STRIP" ; then
20463 striplib="$STRIP -x"
20464 echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6
20467 echo "$as_me:$LINENO: result: no" >&5
20468 echo "${ECHO_T}no" >&6
20472 echo "$as_me:$LINENO: result: no" >&5
20473 echo "${ECHO_T}no" >&6
20480 # The else clause should only fire when bootstrapping the
20481 # libtool distribution, otherwise you forgot to ship ltmain.sh
20482 # with your package, and you will get complaints that there are
20483 # no rules to generate ltmain.sh.
20484 if test -f "$ltmain"; then
20485 # See if we are running on zsh, and set the options which allow our commands through
20486 # without removal of \ escapes.
20487 if test -n "${ZSH_VERSION+set}" ; then
20488 setopt NO_GLOB_SUBST
20490 # Now quote all the things that may contain metacharacters while being
20491 # careful not to overquote the AC_SUBSTed values. We take copies of the
20492 # variables and quote the copies for generation of the libtool script.
20493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20497 deplibs_check_method reload_flag reload_cmds need_locks \
20498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20499 lt_cv_sys_global_symbol_to_c_name_address \
20500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20501 old_postinstall_cmds old_postuninstall_cmds \
20505 lt_prog_compiler_wl_F77 \
20506 lt_prog_compiler_pic_F77 \
20507 lt_prog_compiler_static_F77 \
20508 lt_prog_compiler_no_builtin_flag_F77 \
20509 export_dynamic_flag_spec_F77 \
20510 thread_safe_flag_spec_F77 \
20511 whole_archive_flag_spec_F77 \
20512 enable_shared_with_static_runtimes_F77 \
20513 old_archive_cmds_F77 \
20514 old_archive_from_new_cmds_F77 \
20515 predep_objects_F77 \
20516 postdep_objects_F77 \
20519 compiler_lib_search_path_F77 \
20521 archive_expsym_cmds_F77 \
20522 postinstall_cmds_F77 \
20523 postuninstall_cmds_F77 \
20524 old_archive_from_expsyms_cmds_F77 \
20525 allow_undefined_flag_F77 \
20526 no_undefined_flag_F77 \
20527 export_symbols_cmds_F77 \
20528 hardcode_libdir_flag_spec_F77 \
20529 hardcode_libdir_flag_spec_ld_F77 \
20530 hardcode_libdir_separator_F77 \
20531 hardcode_automatic_F77 \
20533 module_expsym_cmds_F77 \
20534 lt_cv_prog_compiler_c_o_F77 \
20535 exclude_expsyms_F77 \
20536 include_expsyms_F77; do
20539 old_archive_cmds_F77 | \
20540 old_archive_from_new_cmds_F77 | \
20541 archive_cmds_F77 | \
20542 archive_expsym_cmds_F77 | \
20543 module_cmds_F77 | \
20544 module_expsym_cmds_F77 | \
20545 old_archive_from_expsyms_cmds_F77 | \
20546 export_symbols_cmds_F77 | \
20547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20548 postinstall_cmds | postuninstall_cmds | \
20549 old_postinstall_cmds | old_postuninstall_cmds | \
20550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20551 # Double-quote double-evaled strings.
20552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20561 *'\$0 --fallback-echo"')
20562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20568 cat <<__EOF__ >> "$cfgfile"
20569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20573 # Shell to use when invoking shell scripts.
20576 # Whether or not to build shared libraries.
20577 build_libtool_libs=$enable_shared
20579 # Whether or not to build static libraries.
20580 build_old_libs=$enable_static
20582 # Whether or not to add -lc for building shared libraries.
20583 build_libtool_need_lc=$archive_cmds_need_lc_F77
20585 # Whether or not to disallow shared libs when runtime libs are static
20586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20588 # Whether or not to optimize for fast installation.
20589 fast_install=$enable_fast_install
20592 host_alias=$host_alias
20595 # An echo program that does not interpret backslashes.
20600 AR_FLAGS=$lt_AR_FLAGS
20605 # A language-specific compiler.
20606 CC=$lt_compiler_F77
20608 # Is the compiler the GNU C compiler?
20614 # The linker used to build libraries.
20617 # Whether we need hard or soft links.
20620 # A BSD-compatible nm program.
20623 # A symbol stripping program
20626 # Used to examine libraries when file_magic_cmd begins "file"
20627 MAGIC_CMD=$MAGIC_CMD
20629 # Used on cygwin: DLL creation program.
20632 # Used on cygwin: object dumper.
20635 # Used on cygwin: assembler.
20638 # The name of the directory that contains temporary libtool files.
20641 # How to create reloadable object files.
20642 reload_flag=$lt_reload_flag
20643 reload_cmds=$lt_reload_cmds
20645 # How to pass a linker flag through the compiler.
20646 wl=$lt_lt_prog_compiler_wl_F77
20648 # Object file suffix (normally "o").
20649 objext="$ac_objext"
20651 # Old archive suffix (normally "a").
20654 # Shared library suffix (normally ".so").
20655 shrext_cmds='$shrext_cmds'
20657 # Executable file suffix (normally "").
20660 # Additional compiler flags for building library objects.
20661 pic_flag=$lt_lt_prog_compiler_pic_F77
20664 # What is the maximum length of a command?
20665 max_cmd_len=$lt_cv_sys_max_cmd_len
20667 # Does compiler simultaneously support -c and -o options?
20668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20670 # Must we lock files when doing compilation ?
20671 need_locks=$lt_need_locks
20673 # Do we need the lib prefix for modules?
20674 need_lib_prefix=$need_lib_prefix
20676 # Do we need a version for libraries?
20677 need_version=$need_version
20679 # Whether dlopen is supported.
20680 dlopen_support=$enable_dlopen
20682 # Whether dlopen of programs is supported.
20683 dlopen_self=$enable_dlopen_self
20685 # Whether dlopen of statically linked programs is supported.
20686 dlopen_self_static=$enable_dlopen_self_static
20688 # Compiler flag to prevent dynamic linking.
20689 link_static_flag=$lt_lt_prog_compiler_static_F77
20691 # Compiler flag to turn off builtin functions.
20692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20694 # Compiler flag to allow reflexive dlopens.
20695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20697 # Compiler flag to generate shared objects directly from archives.
20698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20700 # Compiler flag to generate thread-safe objects.
20701 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20703 # Library versioning type.
20704 version_type=$version_type
20706 # Format of library name prefix.
20707 libname_spec=$lt_libname_spec
20709 # List of archive names. First name is the real one, the rest are links.
20710 # The last name is the one that the linker finds with -lNAME.
20711 library_names_spec=$lt_library_names_spec
20713 # The coded name of the library, if different from the real name.
20714 soname_spec=$lt_soname_spec
20716 # Commands used to build and install an old-style archive.
20718 old_archive_cmds=$lt_old_archive_cmds_F77
20719 old_postinstall_cmds=$lt_old_postinstall_cmds
20720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20722 # Create an old-style archive from a shared archive.
20723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20725 # Create a temporary old-style archive to link instead of a shared archive.
20726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20728 # Commands used to build and install a shared archive.
20729 archive_cmds=$lt_archive_cmds_F77
20730 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20731 postinstall_cmds=$lt_postinstall_cmds
20732 postuninstall_cmds=$lt_postuninstall_cmds
20734 # Commands used to build a loadable module (assumed same as above if empty)
20735 module_cmds=$lt_module_cmds_F77
20736 module_expsym_cmds=$lt_module_expsym_cmds_F77
20738 # Commands to strip libraries.
20739 old_striplib=$lt_old_striplib
20740 striplib=$lt_striplib
20742 # Dependencies to place before the objects being linked to create a
20744 predep_objects=$lt_predep_objects_F77
20746 # Dependencies to place after the objects being linked to create a
20748 postdep_objects=$lt_postdep_objects_F77
20750 # Dependencies to place before the objects being linked to create a
20752 predeps=$lt_predeps_F77
20754 # Dependencies to place after the objects being linked to create a
20756 postdeps=$lt_postdeps_F77
20758 # The library search path used internally by the compiler when linking
20759 # a shared library.
20760 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20762 # Method to check whether dependent libraries are shared objects.
20763 deplibs_check_method=$lt_deplibs_check_method
20765 # Command to use when deplibs_check_method == file_magic.
20766 file_magic_cmd=$lt_file_magic_cmd
20768 # Flag that allows shared libraries with undefined symbols to be built.
20769 allow_undefined_flag=$lt_allow_undefined_flag_F77
20771 # Flag that forces no undefined symbols.
20772 no_undefined_flag=$lt_no_undefined_flag_F77
20774 # Commands used to finish a libtool library installation in a directory.
20775 finish_cmds=$lt_finish_cmds
20777 # Same as above, but a single script fragment to be evaled but not shown.
20778 finish_eval=$lt_finish_eval
20780 # Take the output of nm and produce a listing of raw symbols and C names.
20781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20783 # Transform the output of nm in a proper C declaration
20784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20786 # Transform the output of nm in a C name address pair
20787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20789 # This is the shared library runtime path variable.
20790 runpath_var=$runpath_var
20792 # This is the shared library path variable.
20793 shlibpath_var=$shlibpath_var
20795 # Is shlibpath searched before the hard-coded library search path?
20796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20798 # How to hardcode a shared library path into an executable.
20799 hardcode_action=$hardcode_action_F77
20801 # Whether we should hardcode library paths into libraries.
20802 hardcode_into_libs=$hardcode_into_libs
20804 # Flag to hardcode \$libdir into a binary during linking.
20805 # This must work even if \$libdir does not exist.
20806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20808 # If ld is used when linking, flag to hardcode \$libdir into
20809 # a binary during linking. This must work even if \$libdir does
20811 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20813 # Whether we need a single -rpath flag with a separated argument.
20814 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20816 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20817 # resulting binary.
20818 hardcode_direct=$hardcode_direct_F77
20820 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20821 # resulting binary.
20822 hardcode_minus_L=$hardcode_minus_L_F77
20824 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20825 # the resulting binary.
20826 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20828 # Set to yes if building a shared library automatically hardcodes DIR into the library
20829 # and all subsequent libraries and executables linked against it.
20830 hardcode_automatic=$hardcode_automatic_F77
20832 # Variables whose values should be saved in libtool wrapper scripts and
20833 # restored at relink time.
20834 variables_saved_for_relink="$variables_saved_for_relink"
20836 # Whether libtool must link a program against all its dependency libraries.
20837 link_all_deplibs=$link_all_deplibs_F77
20839 # Compile-time system search path for libraries
20840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20842 # Run-time system search path for libraries
20843 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20845 # Fix the shell variable \$srcfile for the compiler.
20846 fix_srcfile_path="$fix_srcfile_path_F77"
20848 # Set to yes if exported symbols are required.
20849 always_export_symbols=$always_export_symbols_F77
20851 # The commands to list exported symbols.
20852 export_symbols_cmds=$lt_export_symbols_cmds_F77
20854 # The commands to extract the exported symbol list from a shared archive.
20855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20857 # Symbols that should not be listed in the preloaded symbols.
20858 exclude_expsyms=$lt_exclude_expsyms_F77
20860 # Symbols that must always be exported.
20861 include_expsyms=$lt_include_expsyms_F77
20863 # ### END LIBTOOL TAG CONFIG: $tagname
20869 # If there is no Makefile yet, we rely on a make rule to execute
20870 # `config.status --recheck' to rerun these tests and create the
20871 # libtool script then.
20872 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20873 if test -f "$ltmain_in"; then
20874 test -f Makefile && make "$ltmain"
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20893 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20895 ac_cpp='$CPP $CPPFLAGS'
20896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20901 # Source file extension for Java test sources.
20904 # Object file extension for compiled Java test sources.
20908 # Code to be used in simple compile tests
20909 lt_simple_compile_test_code="class foo {}\n"
20911 # Code to be used in simple link tests
20912 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20916 # If no C compiler was specified, use CC.
20919 # Allow CC to be a program name with arguments.
20923 # Allow CC to be a program name with arguments.
20929 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20930 archive_cmds_need_lc_GCJ=no
20933 lt_prog_compiler_no_builtin_flag_GCJ=
20935 if test "$GCC" = yes; then
20936 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20939 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20940 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20941 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 lt_cv_prog_compiler_rtti_exceptions=no
20945 ac_outfile=conftest.$ac_objext
20946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20947 lt_compiler_flag="-fno-rtti -fno-exceptions"
20948 # Insert the option either (1) after the last *FLAGS variable, or
20949 # (2) before a word containing "conftest.", or (3) at the end.
20950 # Note that $ac_compile itself does not contain backslashes and begins
20951 # with a dollar sign (not a hyphen), so the echo should work correctly.
20952 # The option is referenced via a variable to avoid confusing sed.
20953 lt_compile=`echo "$ac_compile" | $SED \
20954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20956 -e 's:$: $lt_compiler_flag:'`
20957 (eval echo "\"\$as_me:20957: $lt_compile\"" >&5)
20958 (eval "$lt_compile" 2>conftest.err)
20960 cat conftest.err >&5
20961 echo "$as_me:20961: \$? = $ac_status" >&5
20962 if (exit $ac_status) && test -s "$ac_outfile"; then
20963 # The compiler can only warn and ignore the option if not recognized
20964 # So say no if there are warnings
20965 if test ! -s conftest.err; then
20966 lt_cv_prog_compiler_rtti_exceptions=yes
20972 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20973 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20976 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20983 lt_prog_compiler_wl_GCJ=
20984 lt_prog_compiler_pic_GCJ=
20985 lt_prog_compiler_static_GCJ=
20987 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20988 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20990 if test "$GCC" = yes; then
20991 lt_prog_compiler_wl_GCJ='-Wl,'
20992 lt_prog_compiler_static_GCJ='-static'
20996 # All AIX code is PIC.
20997 if test "$host_cpu" = ia64; then
20998 # AIX 5 now supports IA64 processor
20999 lt_prog_compiler_static_GCJ='-Bstatic'
21004 # FIXME: we need at least 68020 code to build shared libraries, but
21005 # adding the `-m68020' flag to GCC prevents building anything better,
21007 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21010 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21011 # PIC is the default for these OSes.
21014 mingw* | pw32* | os2*)
21015 # This hack is so that the source file can tell whether it is being
21016 # built for inclusion in a dll (and should export symbols for example).
21017 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21020 darwin* | rhapsody*)
21021 # PIC is the default on this platform
21022 # Common symbols not allowed in MH_DYLIB files
21023 lt_prog_compiler_pic_GCJ='-fno-common'
21027 # Just because we use GCC doesn't mean we suddenly get shared libraries
21028 # on systems that don't support them.
21029 lt_prog_compiler_can_build_shared_GCJ=no
21034 if test -d /usr/nec; then
21035 lt_prog_compiler_pic_GCJ=-Kconform_pic
21040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041 # not for PA HP-UX.
21042 case "$host_cpu" in
21047 lt_prog_compiler_pic_GCJ='-fPIC'
21053 lt_prog_compiler_pic_GCJ='-fPIC'
21057 # PORTME Check for flag to pass linker flags through the system compiler.
21060 lt_prog_compiler_wl_GCJ='-Wl,'
21061 if test "$host_cpu" = ia64; then
21062 # AIX 5 now supports IA64 processor
21063 lt_prog_compiler_static_GCJ='-Bstatic'
21065 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21069 # PIC is the default on this platform
21070 # Common symbols not allowed in MH_DYLIB files
21071 case "$cc_basename" in
21073 lt_prog_compiler_pic_GCJ='-qnocommon'
21074 lt_prog_compiler_wl_GCJ='-Wl,'
21079 mingw* | pw32* | os2*)
21080 # This hack is so that the source file can tell whether it is being
21081 # built for inclusion in a dll (and should export symbols for example).
21082 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21085 hpux9* | hpux10* | hpux11*)
21086 lt_prog_compiler_wl_GCJ='-Wl,'
21087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21088 # not for PA HP-UX.
21089 case "$host_cpu" in
21094 lt_prog_compiler_pic_GCJ='+Z'
21097 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21098 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21101 irix5* | irix6* | nonstopux*)
21102 lt_prog_compiler_wl_GCJ='-Wl,'
21103 # PIC (with -KPIC) is the default.
21104 lt_prog_compiler_static_GCJ='-non_shared'
21108 lt_prog_compiler_pic_GCJ='-KPIC'
21109 lt_prog_compiler_static_GCJ='-Bstatic'
21115 lt_prog_compiler_wl_GCJ='-Wl,'
21116 lt_prog_compiler_pic_GCJ='-KPIC'
21117 lt_prog_compiler_static_GCJ='-static'
21120 lt_prog_compiler_wl_GCJ='-Wl,'
21121 # All Alpha code is PIC.
21122 lt_prog_compiler_static_GCJ='-non_shared'
21127 osf3* | osf4* | osf5*)
21128 lt_prog_compiler_wl_GCJ='-Wl,'
21129 # All OSF/1 code is PIC.
21130 lt_prog_compiler_static_GCJ='-non_shared'
21134 lt_prog_compiler_pic_GCJ='-Kpic'
21135 lt_prog_compiler_static_GCJ='-dn'
21139 lt_prog_compiler_wl_GCJ='-Wl,'
21140 lt_prog_compiler_pic_GCJ='-KPIC'
21141 lt_prog_compiler_static_GCJ='-Bstatic'
21145 lt_prog_compiler_wl_GCJ='-Qoption ld '
21146 lt_prog_compiler_pic_GCJ='-PIC'
21147 lt_prog_compiler_static_GCJ='-Bstatic'
21150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21151 lt_prog_compiler_wl_GCJ='-Wl,'
21152 lt_prog_compiler_pic_GCJ='-KPIC'
21153 lt_prog_compiler_static_GCJ='-Bstatic'
21157 if test -d /usr/nec ;then
21158 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21159 lt_prog_compiler_static_GCJ='-Bstatic'
21164 lt_prog_compiler_pic_GCJ='-pic'
21165 lt_prog_compiler_static_GCJ='-Bstatic'
21169 lt_prog_compiler_can_build_shared_GCJ=no
21174 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21175 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21178 # Check to make sure the PIC flag actually works.
21180 if test -n "$lt_prog_compiler_pic_GCJ"; then
21182 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21183 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21184 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 lt_prog_compiler_pic_works_GCJ=no
21188 ac_outfile=conftest.$ac_objext
21189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21190 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21191 # Insert the option either (1) after the last *FLAGS variable, or
21192 # (2) before a word containing "conftest.", or (3) at the end.
21193 # Note that $ac_compile itself does not contain backslashes and begins
21194 # with a dollar sign (not a hyphen), so the echo should work correctly.
21195 # The option is referenced via a variable to avoid confusing sed.
21196 lt_compile=`echo "$ac_compile" | $SED \
21197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21199 -e 's:$: $lt_compiler_flag:'`
21200 (eval echo "\"\$as_me:21200: $lt_compile\"" >&5)
21201 (eval "$lt_compile" 2>conftest.err)
21203 cat conftest.err >&5
21204 echo "$as_me:21204: \$? = $ac_status" >&5
21205 if (exit $ac_status) && test -s "$ac_outfile"; then
21206 # The compiler can only warn and ignore the option if not recognized
21207 # So say no if there are warnings
21208 if test ! -s conftest.err; then
21209 lt_prog_compiler_pic_works_GCJ=yes
21215 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21216 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21218 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21219 case $lt_prog_compiler_pic_GCJ in
21221 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21224 lt_prog_compiler_pic_GCJ=
21225 lt_prog_compiler_can_build_shared_GCJ=no
21230 # For platforms which do not support PIC, -DPIC is meaningless:
21232 lt_prog_compiler_pic_GCJ=
21235 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21239 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21240 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21241 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 lt_cv_prog_compiler_c_o_GCJ=no
21245 $rm -r conftest 2>/dev/null
21249 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21251 lt_compiler_flag="-o out/conftest2.$ac_objext"
21252 # Insert the option either (1) after the last *FLAGS variable, or
21253 # (2) before a word containing "conftest.", or (3) at the end.
21254 # Note that $ac_compile itself does not contain backslashes and begins
21255 # with a dollar sign (not a hyphen), so the echo should work correctly.
21256 lt_compile=`echo "$ac_compile" | $SED \
21257 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21259 -e 's:$: $lt_compiler_flag:'`
21260 (eval echo "\"\$as_me:21260: $lt_compile\"" >&5)
21261 (eval "$lt_compile" 2>out/conftest.err)
21263 cat out/conftest.err >&5
21264 echo "$as_me:21264: \$? = $ac_status" >&5
21265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21267 # The compiler can only warn and ignore the option if not recognized
21268 # So say no if there are warnings
21269 if test ! -s out/conftest.err; then
21270 lt_cv_prog_compiler_c_o_GCJ=yes
21275 # SGI C++ compiler will create directory out/ii_files/ for
21276 # template instantiation
21277 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21278 $rm out/* && rmdir out
21284 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21285 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21288 hard_links="nottested"
21289 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21290 # do not overwrite the value of need_locks provided by the user
21291 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21292 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21297 ln conftest.a conftest.b 2>&5 || hard_links=no
21298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299 echo "$as_me:$LINENO: result: $hard_links" >&5
21300 echo "${ECHO_T}$hard_links" >&6
21301 if test "$hard_links" = no; then
21302 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21303 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21310 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21311 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21314 allow_undefined_flag_GCJ=
21315 enable_shared_with_static_runtimes_GCJ=no
21317 archive_expsym_cmds_GCJ=
21318 old_archive_From_new_cmds_GCJ=
21319 old_archive_from_expsyms_cmds_GCJ=
21320 export_dynamic_flag_spec_GCJ=
21321 whole_archive_flag_spec_GCJ=
21322 thread_safe_flag_spec_GCJ=
21323 hardcode_libdir_flag_spec_GCJ=
21324 hardcode_libdir_flag_spec_ld_GCJ=
21325 hardcode_libdir_separator_GCJ=
21326 hardcode_direct_GCJ=no
21327 hardcode_minus_L_GCJ=no
21328 hardcode_shlibpath_var_GCJ=unsupported
21329 link_all_deplibs_GCJ=unknown
21330 hardcode_automatic_GCJ=no
21332 module_expsym_cmds_GCJ=
21333 always_export_symbols_GCJ=no
21334 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21335 # include_expsyms should be a list of space-separated symbols to be *always*
21336 # included in the symbol list
21337 include_expsyms_GCJ=
21338 # exclude_expsyms can be an extended regexp of symbols to exclude
21339 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21340 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21341 # as well as any symbol that contains `d'.
21342 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21343 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21344 # platforms (ab)use it in PIC code, but their linkers get confused if
21345 # the symbol is explicitly referenced. Since portable code cannot
21346 # rely on this symbol name, it's probably fine to never include it in
21347 # preloaded symbol tables.
21348 extract_expsyms_cmds=
21351 cygwin* | mingw* | pw32*)
21352 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21353 # When not using gcc, we currently assume that we are using
21354 # Microsoft Visual C++.
21355 if test "$GCC" != yes; then
21365 if test "$with_gnu_ld" = yes; then
21366 # If archive_cmds runs LD, not CC, wlarc should be empty
21369 # See if GNU ld supports shared libraries.
21371 aix3* | aix4* | aix5*)
21372 # On AIX/PPC, the GNU linker is very broken
21373 if test "$host_cpu" != ia64; then
21377 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21378 *** to be unable to reliably create shared libraries on AIX.
21379 *** Therefore, libtool is disabling shared libraries support. If you
21380 *** really care for shared libraries, you may want to modify your PATH
21381 *** so that a non-GNU linker is found, and then restart.
21388 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)'
21389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21390 hardcode_minus_L_GCJ=yes
21392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21393 # that the semantics of dynamic libraries on AmigaOS, at least up
21394 # to version 4, is to share data among multiple programs linked
21395 # with the same dynamic library. Since this doesn't match the
21396 # behavior of shared libraries on other platforms, we can't use
21402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21403 allow_undefined_flag_GCJ=unsupported
21404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21405 # support --undefined. This deserves some investigation. FIXME
21406 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21412 cygwin* | mingw* | pw32*)
21413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21414 # as there is no search path for DLLs.
21415 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21416 allow_undefined_flag_GCJ=unsupported
21417 always_export_symbols_GCJ=no
21418 enable_shared_with_static_runtimes_GCJ=yes
21419 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21422 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21423 # If the export-symbols file already is a .def file (1st line
21424 # is EXPORTS), use it as is; otherwise, prepend...
21425 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21426 cp $export_symbols $output_objdir/$soname.def;
21428 echo EXPORTS > $output_objdir/$soname.def;
21429 cat $export_symbols >> $output_objdir/$soname.def;
21431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21439 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21442 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21443 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21448 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21453 *** create shared libraries on Solaris systems. Therefore, libtool
21454 *** is disabling shared libraries support. We urge you to upgrade GNU
21455 *** binutils to release 2.9.1 or newer. Another option is to modify
21456 *** your PATH or compiler configuration so that the native linker is
21457 *** used, and then restart.
21460 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21469 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21471 hardcode_direct_GCJ=yes
21472 hardcode_shlibpath_var_GCJ=no
21476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21477 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21478 archive_cmds_GCJ="$tmp_archive_cmds"
21479 supports_anon_versioning=no
21480 case `$LD -v 2>/dev/null` in
21481 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21482 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21483 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21484 *\ 2.11.*) ;; # other 2.11 versions
21485 *) supports_anon_versioning=yes ;;
21487 if test $supports_anon_versioning = yes; then
21488 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21490 $echo "local: *; };" >> $output_objdir/$libname.ver~
21491 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21493 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21503 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21510 if test "$ld_shlibs_GCJ" = yes; then
21511 runpath_var=LD_RUN_PATH
21512 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21513 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21514 # ancient GNU ld didn't support --whole-archive et. al.
21515 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21516 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21518 whole_archive_flag_spec_GCJ=
21522 # PORTME fill in a description of your system's linker (not GNU ld)
21525 allow_undefined_flag_GCJ=unsupported
21526 always_export_symbols_GCJ=yes
21527 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'
21528 # Note: this linker hardcodes the directories in LIBPATH if there
21529 # are no directories specified by -L.
21530 hardcode_minus_L_GCJ=yes
21531 if test "$GCC" = yes && test -z "$link_static_flag"; then
21532 # Neither direct hardcoding nor static linking is supported with a
21534 hardcode_direct_GCJ=unsupported
21539 if test "$host_cpu" = ia64; then
21540 # On IA64, the linker does run time linking by default, so we don't
21541 # have to do anything special.
21542 aix_use_runtimelinking=no
21543 exp_sym_flag='-Bexport'
21546 # If we're using GNU nm, then we don't want the "-C" option.
21547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21548 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21549 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'
21551 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'
21553 aix_use_runtimelinking=no
21555 # Test if we are trying to use run time linking or normal
21556 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21557 # need to do runtime linking.
21558 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21559 for ld_flag in $LDFLAGS; do
21560 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21561 aix_use_runtimelinking=yes
21567 exp_sym_flag='-bexport'
21568 no_entry_flag='-bnoentry'
21571 # When large executables or shared objects are built, AIX ld can
21572 # have problems creating the table of contents. If linking a library
21573 # or program results in "error TOC overflow" add -mminimal-toc to
21574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21577 archive_cmds_GCJ=''
21578 hardcode_direct_GCJ=yes
21579 hardcode_libdir_separator_GCJ=':'
21580 link_all_deplibs_GCJ=yes
21582 if test "$GCC" = yes; then
21583 case $host_os in aix4.012|aix4.012.*)
21584 # We only want to do this on AIX 4.2 and lower, the check
21585 # below for broken collect2 doesn't work under 4.3+
21586 collect2name=`${CC} -print-prog-name=collect2`
21587 if test -f "$collect2name" && \
21588 strings "$collect2name" | grep resolve_lib_name >/dev/null
21590 # We have reworked collect2
21591 hardcode_direct_GCJ=yes
21593 # We have old collect2
21594 hardcode_direct_GCJ=unsupported
21595 # It fails to find uninstalled libraries when the uninstalled
21596 # path is not listed in the libpath. Setting hardcode_minus_L
21597 # to unsupported forces relinking
21598 hardcode_minus_L_GCJ=yes
21599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21600 hardcode_libdir_separator_GCJ=
21603 shared_flag='-shared'
21606 if test "$host_cpu" = ia64; then
21607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21608 # chokes on -Wl,-G. The following line is correct:
21611 if test "$aix_use_runtimelinking" = yes; then
21612 shared_flag='${wl}-G'
21614 shared_flag='${wl}-bM:SRE'
21619 # It seems that -bexpall does not export symbols beginning with
21620 # underscore (_), so it is better to generate a list of symbols to export.
21621 always_export_symbols_GCJ=yes
21622 if test "$aix_use_runtimelinking" = yes; then
21623 # Warning - without using the other runtime loading flags (-brtl),
21624 # -berok will link without error, but may produce a broken library.
21625 allow_undefined_flag_GCJ='-berok'
21626 # Determine the default libpath from the value encoded in an empty executable.
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644 (eval $ac_link) 2>conftest.er1
21646 grep -v '^ *+' conftest.er1 >conftest.err
21648 cat conftest.err >&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
21651 { ac_try='test -z "$ac_c_werror_flag"
21652 || test ! -s conftest.err'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; } &&
21658 { ac_try='test -s conftest$ac_exeext'
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21667 # Check for a 64-bit object if we didn't find anything.
21668 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; }
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21675 rm -f conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
21677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21679 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21680 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"
21682 if test "$host_cpu" = ia64; then
21683 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21684 allow_undefined_flag_GCJ="-z nodefs"
21685 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"
21687 # Determine the default libpath from the value encoded in an empty executable.
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705 (eval $ac_link) 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
21712 { ac_try='test -z "$ac_c_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest$ac_exeext'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21728 # Check for a 64-bit object if we didn't find anything.
21729 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; }
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21736 rm -f conftest.err conftest.$ac_objext \
21737 conftest$ac_exeext conftest.$ac_ext
21738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21740 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21741 # Warning - without using the other run time loading flags,
21742 # -berok will link without error, but may produce a broken library.
21743 no_undefined_flag_GCJ=' ${wl}-bernotok'
21744 allow_undefined_flag_GCJ=' ${wl}-berok'
21745 # -bexpall does not export symbols beginning with underscore (_)
21746 always_export_symbols_GCJ=yes
21747 # Exported symbols can be pulled into shared objects from archives
21748 whole_archive_flag_spec_GCJ=' '
21749 archive_cmds_need_lc_GCJ=yes
21750 # This is similar to how AIX traditionally builds it's shared libraries.
21751 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'
21757 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)'
21758 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21759 hardcode_minus_L_GCJ=yes
21760 # see comment about different semantics on the GNU ld section
21765 export_dynamic_flag_spec_GCJ=-rdynamic
21768 cygwin* | mingw* | pw32*)
21769 # When not using gcc, we currently assume that we are using
21770 # Microsoft Visual C++.
21771 # hardcode_libdir_flag_spec is actually meaningless, as there is
21772 # no search path for DLLs.
21773 hardcode_libdir_flag_spec_GCJ=' '
21774 allow_undefined_flag_GCJ=unsupported
21775 # Tell ltmain to make .lib files, not .a files.
21777 # Tell ltmain to make .dll files, not .so files.
21779 # FIXME: Setting linknames here is a bad hack.
21780 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21781 # The linker will automatically build a .lib file if we build a DLL.
21782 old_archive_From_new_cmds_GCJ='true'
21783 # FIXME: Should let the user specify the lib program.
21784 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21785 fix_srcfile_path='`cygpath -w "$srcfile"`'
21786 enable_shared_with_static_runtimes_GCJ=yes
21789 darwin* | rhapsody*)
21791 rhapsody* | darwin1.[012])
21792 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21795 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21796 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21798 case ${MACOSX_DEPLOYMENT_TARGET} in
21800 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21803 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21809 archive_cmds_need_lc_GCJ=no
21810 hardcode_direct_GCJ=no
21811 hardcode_automatic_GCJ=yes
21812 hardcode_shlibpath_var_GCJ=unsupported
21813 whole_archive_flag_spec_GCJ=''
21814 link_all_deplibs_GCJ=yes
21815 if test "$GCC" = yes ; then
21816 output_verbose_link_cmd='echo'
21817 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21820 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}'
21821 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}'
21823 case "$cc_basename" in
21825 output_verbose_link_cmd='echo'
21826 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21827 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21829 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}'
21830 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}'
21840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21842 hardcode_shlibpath_var_GCJ=no
21849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21850 # support. Future versions do this automatically, but an explicit c++rt0.o
21851 # does not break anything, and helps significantly (at the cost of a little
21854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21855 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21856 hardcode_direct_GCJ=yes
21857 hardcode_shlibpath_var_GCJ=no
21860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21862 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21863 hardcode_direct_GCJ=yes
21864 hardcode_minus_L_GCJ=yes
21865 hardcode_shlibpath_var_GCJ=no
21868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21869 freebsd* | kfreebsd*-gnu)
21870 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21871 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21872 hardcode_direct_GCJ=yes
21873 hardcode_shlibpath_var_GCJ=no
21877 if test "$GCC" = yes; then
21878 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'
21880 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'
21882 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21883 hardcode_libdir_separator_GCJ=:
21884 hardcode_direct_GCJ=yes
21886 # hardcode_minus_L: Not really in the search PATH,
21887 # but as the default location of the library.
21888 hardcode_minus_L_GCJ=yes
21889 export_dynamic_flag_spec_GCJ='${wl}-E'
21893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21894 case "$host_cpu" in
21896 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21899 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21903 case "$host_cpu" in
21905 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21908 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21912 if test "$with_gnu_ld" = no; then
21913 case "$host_cpu" in
21915 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21916 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21917 hardcode_libdir_separator_GCJ=:
21918 hardcode_direct_GCJ=no
21919 hardcode_shlibpath_var_GCJ=no
21922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21923 hardcode_direct_GCJ=no
21924 hardcode_shlibpath_var_GCJ=no
21926 # hardcode_minus_L: Not really in the search PATH,
21927 # but as the default location of the library.
21928 hardcode_minus_L_GCJ=yes
21931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21932 hardcode_libdir_separator_GCJ=:
21933 hardcode_direct_GCJ=yes
21934 export_dynamic_flag_spec_GCJ='${wl}-E'
21936 # hardcode_minus_L: Not really in the search PATH,
21937 # but as the default location of the library.
21938 hardcode_minus_L_GCJ=yes
21944 irix5* | irix6* | nonstopux*)
21945 if test "$GCC" = yes; then
21946 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'
21948 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'
21949 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21952 hardcode_libdir_separator_GCJ=:
21953 link_all_deplibs_GCJ=yes
21957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21958 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21960 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21963 hardcode_direct_GCJ=yes
21964 hardcode_shlibpath_var_GCJ=no
21968 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21969 hardcode_direct_GCJ=yes
21970 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21971 hardcode_libdir_separator_GCJ=:
21972 hardcode_shlibpath_var_GCJ=no
21976 hardcode_direct_GCJ=yes
21977 hardcode_shlibpath_var_GCJ=no
21978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21979 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21980 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21982 export_dynamic_flag_spec_GCJ='${wl}-E'
21985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21986 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21987 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21990 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21999 hardcode_minus_L_GCJ=yes
22000 allow_undefined_flag_GCJ=unsupported
22001 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'
22002 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22006 if test "$GCC" = yes; then
22007 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22008 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'
22010 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22011 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'
22013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22014 hardcode_libdir_separator_GCJ=:
22017 osf4* | osf5*) # as osf3* with the addition of -msym flag
22018 if test "$GCC" = yes; then
22019 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22020 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'
22021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22023 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22024 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'
22025 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~
22026 $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'
22028 # Both c and cxx compiler support -rpath directly
22029 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22031 hardcode_libdir_separator_GCJ=:
22035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22036 hardcode_shlibpath_var_GCJ=no
22037 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22038 runpath_var=LD_RUN_PATH
22039 hardcode_runpath_var=yes
22043 no_undefined_flag_GCJ=' -z text'
22044 if test "$GCC" = yes; then
22045 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22046 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22047 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22049 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22050 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22051 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22054 hardcode_shlibpath_var_GCJ=no
22056 solaris2.[0-5] | solaris2.[0-5].*) ;;
22057 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22058 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22060 link_all_deplibs_GCJ=yes
22064 if test "x$host_vendor" = xsequent; then
22065 # Use $CC to link under sequent, because it throws in some extra .o
22066 # files that make .init and .fini sections work.
22067 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22069 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22071 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22072 hardcode_direct_GCJ=yes
22073 hardcode_minus_L_GCJ=yes
22074 hardcode_shlibpath_var_GCJ=no
22078 case $host_vendor in
22080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22081 hardcode_direct_GCJ=yes # is this really true???
22084 ## LD is ld it makes a PLAMLIB
22085 ## CC just makes a GrossModule.
22086 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22087 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22088 hardcode_direct_GCJ=no
22091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22095 runpath_var='LD_RUN_PATH'
22096 hardcode_shlibpath_var_GCJ=no
22100 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22101 hardcode_shlibpath_var_GCJ=no
22102 export_dynamic_flag_spec_GCJ='-Bexport'
22106 if test -d /usr/nec; then
22107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22108 hardcode_shlibpath_var_GCJ=no
22109 runpath_var=LD_RUN_PATH
22110 hardcode_runpath_var=yes
22116 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22117 hardcode_direct_GCJ=yes
22118 hardcode_minus_L_GCJ=no
22119 hardcode_shlibpath_var_GCJ=no
22120 hardcode_runpath_var=yes
22121 runpath_var=LD_RUN_PATH
22124 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22125 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22126 if test "$GCC" = yes; then
22127 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22129 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22131 runpath_var='LD_RUN_PATH'
22132 hardcode_shlibpath_var_GCJ=no
22136 no_undefined_flag_GCJ=' -z text'
22137 # $CC -shared without GNU ld will not create a library from C++
22138 # object files and a static libstdc++, better avoid it by now
22139 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22141 $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=
22143 hardcode_shlibpath_var_GCJ=no
22144 runpath_var='LD_RUN_PATH'
22148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22150 hardcode_shlibpath_var_GCJ=no
22159 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22160 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22161 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22164 if test "$GCC" = yes; then
22165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22169 # Do we need to explicitly link libc?
22171 case "x$archive_cmds_need_lc_GCJ" in
22173 # Assume -lc should be added
22174 archive_cmds_need_lc_GCJ=yes
22176 if test "$enable_shared" = yes && test "$GCC" = yes; then
22177 case $archive_cmds_GCJ in
22179 # FIXME: we may have to deal with multi-command sequences.
22182 # Test whether the compiler implicitly links with -lc since on some
22183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22184 # to ld, don't add -lc before -lgcc.
22185 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191 (eval $ac_compile) 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } 2>conftest.err; then
22197 libobjs=conftest.$ac_objext
22199 wl=$lt_prog_compiler_wl_GCJ
22205 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22206 allow_undefined_flag_GCJ=
22207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22208 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }
22213 archive_cmds_need_lc_GCJ=no
22215 archive_cmds_need_lc_GCJ=yes
22217 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22219 cat conftest.err 1>&5
22222 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22223 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22230 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22231 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22232 library_names_spec=
22233 libname_spec='lib$name'
22237 postuninstall_cmds=
22241 shlibpath_overrides_runpath=unknown
22243 dynamic_linker="$host_os ld.so"
22244 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22245 if test "$GCC" = yes; then
22246 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22247 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22248 # if the path contains ";" then we assume it to be the separator
22249 # otherwise default to the standard path separator (i.e. ":") - it is
22250 # assumed that no part of a normal pathname contains ";" but that should
22251 # okay in the real world where ";" in dirpaths is itself problematic.
22252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22259 need_lib_prefix=unknown
22260 hardcode_into_libs=no
22262 # when you set need_version to no, make sure it does not cause -set_version
22263 # flags to be left without arguments
22264 need_version=unknown
22269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22270 shlibpath_var=LIBPATH
22272 # AIX 3 has no versioning support, so we append a major version to the name.
22273 soname_spec='${libname}${release}${shared_ext}$major'
22280 hardcode_into_libs=yes
22281 if test "$host_cpu" = ia64; then
22282 # AIX 5 supports IA64
22283 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22284 shlibpath_var=LD_LIBRARY_PATH
22286 # With GCC up to 2.95.x, collect2 would create an import file
22287 # for dependence libraries. The import file would start with
22288 # the line `#! .'. This would cause the generated library to
22289 # depend on `.', always an invalid library. This was fixed in
22290 # development snapshots of GCC prior to 3.0.
22292 aix4 | aix4.[01] | aix4.[01].*)
22293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22295 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22298 can_build_shared=no
22302 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22303 # soname into executable. Probably we can add versioning support to
22304 # collect2, so additional links can be useful in future.
22305 if test "$aix_use_runtimelinking" = yes; then
22306 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22307 # instead of lib<name>.a to let people know that these are not
22308 # typical AIX shared libraries.
22309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22311 # We preserve .a as extension for shared libraries through AIX4.2
22312 # and later when we are not doing run time linking.
22313 library_names_spec='${libname}${release}.a $libname.a'
22314 soname_spec='${libname}${release}${shared_ext}$major'
22316 shlibpath_var=LIBPATH
22321 library_names_spec='$libname.ixlibrary $libname.a'
22322 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22323 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'
22327 library_names_spec='${libname}${shared_ext}'
22328 dynamic_linker="$host_os ld.so"
22329 shlibpath_var=LIBRARY_PATH
22335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22336 soname_spec='${libname}${release}${shared_ext}$major'
22337 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22338 shlibpath_var=LD_LIBRARY_PATH
22339 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22340 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22341 # the default ld.so.conf also contains /usr/contrib/lib and
22342 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22343 # libtool to hard-code these into programs
22346 cygwin* | mingw* | pw32*)
22347 version_type=windows
22352 case $GCC,$host_os in
22353 yes,cygwin* | yes,mingw* | yes,pw32*)
22354 library_names_spec='$libname.dll.a'
22355 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22356 postinstall_cmds='base_file=`basename \${file}`~
22357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22358 dldir=$destdir/`dirname \$dlpath`~
22359 test -d \$dldir || mkdir -p \$dldir~
22360 $install_prog $dir/$dlname \$dldir/$dlname'
22361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22362 dlpath=$dir/\$dldll~
22364 shlibpath_overrides_runpath=yes
22368 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22369 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22370 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22373 # MinGW DLLs use traditional 'lib' prefix
22374 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22375 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22376 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22377 # It is most probably a Windows format PATH printed by
22378 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22379 # path with ; separators, and with drive letters. We can handle the
22380 # drive letters (cygwin fileutils understands them), so leave them,
22381 # especially as we might pass files found there to a mingw objdump,
22382 # which wouldn't understand a cygwinified path. Ahh.
22383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22389 # pw32 DLLs use 'pw' prefix rather than 'lib'
22390 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22396 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22399 dynamic_linker='Win32 ld.exe'
22400 # FIXME: first we should search . and the directory the executable is in
22404 darwin* | rhapsody*)
22405 dynamic_linker="$host_os dyld"
22406 version_type=darwin
22409 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22410 soname_spec='${libname}${release}${major}$shared_ext'
22411 shlibpath_overrides_runpath=yes
22412 shlibpath_var=DYLD_LIBRARY_PATH
22413 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22414 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22415 if test "$GCC" = yes; then
22416 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"`
22418 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22428 soname_spec='${libname}${release}${shared_ext}$major'
22429 shlibpath_var=LD_LIBRARY_PATH
22440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22441 soname_spec='${libname}${release}${shared_ext}$major'
22442 shlibpath_var=LD_LIBRARY_PATH
22443 shlibpath_overrides_runpath=no
22444 hardcode_into_libs=yes
22445 dynamic_linker='GNU ld.so'
22449 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22450 version_type=freebsd-$objformat
22451 case $version_type in
22453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22462 shlibpath_var=LD_LIBRARY_PATH
22465 shlibpath_overrides_runpath=yes
22467 freebsd3.01* | freebsdelf3.01*)
22468 shlibpath_overrides_runpath=yes
22469 hardcode_into_libs=yes
22472 shlibpath_overrides_runpath=no
22473 hardcode_into_libs=yes
22482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 hardcode_into_libs=yes
22488 hpux9* | hpux10* | hpux11*)
22489 # Give a soname corresponding to the major version so that dld.sl refuses to
22490 # link against other versions.
22494 case "$host_cpu" in
22497 hardcode_into_libs=yes
22498 dynamic_linker="$host_os dld.so"
22499 shlibpath_var=LD_LIBRARY_PATH
22500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22502 soname_spec='${libname}${release}${shared_ext}$major'
22503 if test "X$HPUX_IA64_MODE" = X32; then
22504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22512 hardcode_into_libs=yes
22513 dynamic_linker="$host_os dld.sl"
22514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22523 dynamic_linker="$host_os dld.sl"
22524 shlibpath_var=SHLIB_PATH
22525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22527 soname_spec='${libname}${release}${shared_ext}$major'
22530 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22531 postinstall_cmds='chmod 555 $lib'
22534 irix5* | irix6* | nonstopux*)
22536 nonstopux*) version_type=nonstopux ;;
22538 if test "$lt_cv_prog_gnu_ld" = yes; then
22546 soname_spec='${libname}${release}${shared_ext}$major'
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22549 irix5* | nonstopux*)
22550 libsuff= shlibsuff=
22553 case $LD in # libtool.m4 will add one of these switches to LD
22554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22555 libsuff= shlibsuff= libmagic=32-bit;;
22556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22557 libsuff=32 shlibsuff=N32 libmagic=N32;;
22558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22559 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22560 *) libsuff= shlibsuff= libmagic=never-match;;
22564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22565 shlibpath_overrides_runpath=no
22566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22568 hardcode_into_libs=yes
22571 # No shared lib support for Linux oldld, aout, or coff.
22572 linux*oldld* | linux*aout* | linux*coff*)
22576 # This must be Linux ELF.
22581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22582 soname_spec='${libname}${release}${shared_ext}$major'
22583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22584 shlibpath_var=LD_LIBRARY_PATH
22585 shlibpath_overrides_runpath=no
22586 # This implies no fast_install, which is unacceptable.
22587 # Some rework will be needed to allow for fast_install
22588 # before this can be enabled.
22589 hardcode_into_libs=yes
22591 # Append ld.so.conf contents to the search path
22592 if test -f /etc/ld.so.conf; then
22593 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22597 # We used to test for /lib/ld.so.1 and disable shared libraries on
22598 # powerpc, because MkLinux only supported shared libraries with the
22599 # GNU dynamic linker. Since this was broken with cross compilers,
22600 # most powerpc-linux boxes support dynamic linking these days and
22601 # people can always --disable-shared, the test was removed, and we
22602 # assume the GNU/Linux dynamic linker is in use.
22603 dynamic_linker='GNU/Linux ld.so'
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22611 soname_spec='${libname}${release}${shared_ext}$major'
22612 shlibpath_var=LD_LIBRARY_PATH
22613 shlibpath_overrides_runpath=no
22614 hardcode_into_libs=yes
22615 dynamic_linker='GNU ld.so'
22622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22625 dynamic_linker='NetBSD (a.out) ld.so'
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 dynamic_linker='NetBSD ld.elf_so'
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=yes
22633 hardcode_into_libs=yes
22638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22639 shlibpath_var=LD_LIBRARY_PATH
22640 shlibpath_overrides_runpath=yes
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 shlibpath_var=LD_LIBRARY_PATH
22650 shlibpath_overrides_runpath=yes
22657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22659 shlibpath_var=LD_LIBRARY_PATH
22660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22662 openbsd2.[89] | openbsd2.[89].*)
22663 shlibpath_overrides_runpath=no
22666 shlibpath_overrides_runpath=yes
22670 shlibpath_overrides_runpath=yes
22675 libname_spec='$name'
22678 library_names_spec='$libname${shared_ext} $libname.a'
22679 dynamic_linker='OS/2 ld.exe'
22680 shlibpath_var=LIBPATH
22683 osf3* | osf4* | osf5*)
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 shlibpath_var=LD_LIBRARY_PATH
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 shlibpath_overrides_runpath=yes
22709 hardcode_into_libs=yes
22710 # ldd complains unless libraries are executable
22711 postinstall_cmds='chmod +x $lib'
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22718 shlibpath_var=LD_LIBRARY_PATH
22719 shlibpath_overrides_runpath=yes
22720 if test "$with_gnu_ld" = yes; then
22726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 shlibpath_var=LD_LIBRARY_PATH
22731 case $host_vendor in
22733 shlibpath_overrides_runpath=no
22735 export_dynamic_flag_spec='${wl}-Blargedynsym'
22736 runpath_var=LD_RUN_PATH
22744 shlibpath_overrides_runpath=no
22745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22751 if test -d /usr/nec ;then
22753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22754 soname_spec='$libname${shared_ext}.$major'
22755 shlibpath_var=LD_LIBRARY_PATH
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22770 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22771 echo "${ECHO_T}$dynamic_linker" >&6
22772 test "$dynamic_linker" = no && can_build_shared=no
22774 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22775 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22776 hardcode_action_GCJ=
22777 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22778 test -n "$runpath_var_GCJ" || \
22779 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22781 # We can hardcode non-existant directories.
22782 if test "$hardcode_direct_GCJ" != no &&
22783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22784 # have to relink, otherwise we might link with an installed library
22785 # when we should be linking with a yet-to-be-installed one
22786 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22787 test "$hardcode_minus_L_GCJ" != no; then
22788 # Linking always hardcodes the temporary library directory.
22789 hardcode_action_GCJ=relink
22791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22792 hardcode_action_GCJ=immediate
22795 # We cannot hardcode anything, or else we can only hardcode existing
22797 hardcode_action_GCJ=unsupported
22799 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22800 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22802 if test "$hardcode_action_GCJ" = relink; then
22803 # Fast installation is not supported
22804 enable_fast_install=no
22805 elif test "$shlibpath_overrides_runpath" = yes ||
22806 test "$enable_shared" = no; then
22807 # Fast installation is not necessary
22808 enable_fast_install=needless
22813 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22814 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22815 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22818 echo "$as_me:$LINENO: result: yes" >&5
22819 echo "${ECHO_T}yes" >&6
22821 # FIXME - insert some real tests, host_os isn't really good enough
22824 if test -n "$STRIP" ; then
22825 striplib="$STRIP -x"
22826 echo "$as_me:$LINENO: result: yes" >&5
22827 echo "${ECHO_T}yes" >&6
22829 echo "$as_me:$LINENO: result: no" >&5
22830 echo "${ECHO_T}no" >&6
22834 echo "$as_me:$LINENO: result: no" >&5
22835 echo "${ECHO_T}no" >&6
22840 if test "x$enable_dlopen" != xyes; then
22841 enable_dlopen=unknown
22842 enable_dlopen_self=unknown
22843 enable_dlopen_self_static=unknown
22850 lt_cv_dlopen="load_add_on"
22852 lt_cv_dlopen_self=yes
22856 lt_cv_dlopen="LoadLibrary"
22861 lt_cv_dlopen="dlopen"
22866 # if libdl is installed we need to link against it
22867 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22872 ac_check_lib_save_LIBS=$LIBS
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 /* Override any gcc2 internal prototype to avoid an error. */
22885 /* We use char because int might match the return type of a gcc2
22886 builtin and then its argument prototype would still apply. */
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898 (eval $ac_link) 2>conftest.er1
22900 grep -v '^ *+' conftest.er1 >conftest.err
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
22905 { ac_try='test -z "$ac_c_werror_flag"
22906 || test ! -s conftest.err'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest$ac_exeext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_lib_dl_dlopen=yes
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_cv_lib_dl_dlopen=no
22925 rm -f conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
22927 LIBS=$ac_check_lib_save_LIBS
22929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22931 if test $ac_cv_lib_dl_dlopen = yes; then
22932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22935 lt_cv_dlopen="dyld"
22937 lt_cv_dlopen_self=yes
22944 echo "$as_me:$LINENO: checking for shl_load" >&5
22945 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22946 if test "${ac_cv_func_shl_load+set}" = set; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 cat >conftest.$ac_ext <<_ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22957 #define shl_load innocuous_shl_load
22959 /* System header to define __stub macros and hopefully few prototypes,
22960 which can conflict with char shl_load (); below.
22961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962 <limits.h> exists even on freestanding compilers. */
22965 # include <limits.h>
22967 # include <assert.h>
22972 /* Override any gcc2 internal prototype to avoid an error. */
22977 /* We use char because int might match the return type of a gcc2
22978 builtin and then its argument prototype would still apply. */
22980 /* The GNU C library defines this for functions which it implements
22981 to always fail with ENOSYS. Some functions are actually named
22982 something starting with __ and the normal name is an alias. */
22983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22986 char (*f) () = shl_load;
22995 return f != shl_load;
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002 (eval $ac_link) 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } &&
23009 { ac_try='test -z "$ac_c_werror_flag"
23010 || test ! -s conftest.err'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest$ac_exeext'
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; }; then
23022 ac_cv_func_shl_load=yes
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 ac_cv_func_shl_load=no
23029 rm -f conftest.err conftest.$ac_objext \
23030 conftest$ac_exeext conftest.$ac_ext
23032 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23033 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23034 if test $ac_cv_func_shl_load = yes; then
23035 lt_cv_dlopen="shl_load"
23037 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23038 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23039 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 ac_check_lib_save_LIBS=$LIBS
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23051 /* Override any gcc2 internal prototype to avoid an error. */
23055 /* We use char because int might match the return type of a gcc2
23056 builtin and then its argument prototype would still apply. */
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag"
23076 || test ! -s conftest.err'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try='test -s conftest$ac_exeext'
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 ac_cv_lib_dld_shl_load=yes
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ac_cv_lib_dld_shl_load=no
23095 rm -f conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23097 LIBS=$ac_check_lib_save_LIBS
23099 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23100 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23101 if test $ac_cv_lib_dld_shl_load = yes; then
23102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23104 echo "$as_me:$LINENO: checking for dlopen" >&5
23105 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23106 if test "${ac_cv_func_dlopen+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23109 cat >conftest.$ac_ext <<_ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23115 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23117 #define dlopen innocuous_dlopen
23119 /* System header to define __stub macros and hopefully few prototypes,
23120 which can conflict with char dlopen (); below.
23121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23122 <limits.h> exists even on freestanding compilers. */
23125 # include <limits.h>
23127 # include <assert.h>
23132 /* Override any gcc2 internal prototype to avoid an error. */
23137 /* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23140 /* The GNU C library defines this for functions which it implements
23141 to always fail with ENOSYS. Some functions are actually named
23142 something starting with __ and the normal name is an alias. */
23143 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23146 char (*f) () = dlopen;
23155 return f != dlopen;
23160 rm -f conftest.$ac_objext conftest$ac_exeext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23162 (eval $ac_link) 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
23169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest$ac_exeext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23182 ac_cv_func_dlopen=yes
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ac_cv_func_dlopen=no
23189 rm -f conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
23192 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23193 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23194 if test $ac_cv_func_dlopen = yes; then
23195 lt_cv_dlopen="dlopen"
23197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 ac_check_lib_save_LIBS=$LIBS
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23211 /* Override any gcc2 internal prototype to avoid an error. */
23215 /* We use char because int might match the return type of a gcc2
23216 builtin and then its argument prototype would still apply. */
23226 rm -f conftest.$ac_objext conftest$ac_exeext
23227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23228 (eval $ac_link) 2>conftest.er1
23230 grep -v '^ *+' conftest.er1 >conftest.err
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest$ac_exeext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_cv_lib_dl_dlopen=yes
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23253 ac_cv_lib_dl_dlopen=no
23255 rm -f conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23257 LIBS=$ac_check_lib_save_LIBS
23259 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23261 if test $ac_cv_lib_dl_dlopen = yes; then
23262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23264 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23265 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23266 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23269 ac_check_lib_save_LIBS=$LIBS
23270 LIBS="-lsvld $LIBS"
23271 cat >conftest.$ac_ext <<_ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h. */
23278 /* Override any gcc2 internal prototype to avoid an error. */
23282 /* We use char because int might match the return type of a gcc2
23283 builtin and then its argument prototype would still apply. */
23293 rm -f conftest.$ac_objext conftest$ac_exeext
23294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23295 (eval $ac_link) 2>conftest.er1
23297 grep -v '^ *+' conftest.er1 >conftest.err
23299 cat conftest.err >&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } &&
23302 { ac_try='test -z "$ac_c_werror_flag"
23303 || test ! -s conftest.err'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; } &&
23309 { ac_try='test -s conftest$ac_exeext'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; }; then
23315 ac_cv_lib_svld_dlopen=yes
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 ac_cv_lib_svld_dlopen=no
23322 rm -f conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
23324 LIBS=$ac_check_lib_save_LIBS
23326 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23327 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23328 if test $ac_cv_lib_svld_dlopen = yes; then
23329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23331 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23332 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23333 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23336 ac_check_lib_save_LIBS=$LIBS
23338 cat >conftest.$ac_ext <<_ACEOF
23341 cat confdefs.h >>conftest.$ac_ext
23342 cat >>conftest.$ac_ext <<_ACEOF
23343 /* end confdefs.h. */
23345 /* Override any gcc2 internal prototype to avoid an error. */
23349 /* We use char because int might match the return type of a gcc2
23350 builtin and then its argument prototype would still apply. */
23360 rm -f conftest.$ac_objext conftest$ac_exeext
23361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23362 (eval $ac_link) 2>conftest.er1
23364 grep -v '^ *+' conftest.er1 >conftest.err
23366 cat conftest.err >&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } &&
23369 { ac_try='test -z "$ac_c_werror_flag"
23370 || test ! -s conftest.err'
23371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest$ac_exeext'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 ac_cv_lib_dld_dld_link=yes
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_cv_lib_dld_dld_link=no
23389 rm -f conftest.err conftest.$ac_objext \
23390 conftest$ac_exeext conftest.$ac_ext
23391 LIBS=$ac_check_lib_save_LIBS
23393 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23394 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23395 if test $ac_cv_lib_dld_dld_link = yes; then
23396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23417 if test "x$lt_cv_dlopen" != xno; then
23423 case $lt_cv_dlopen in
23425 save_CPPFLAGS="$CPPFLAGS"
23426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23428 save_LDFLAGS="$LDFLAGS"
23429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23432 LIBS="$lt_cv_dlopen_libs $LIBS"
23434 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23435 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23436 if test "${lt_cv_dlopen_self+set}" = set; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23439 if test "$cross_compiling" = yes; then :
23440 lt_cv_dlopen_self=cross
23442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23443 lt_status=$lt_dlunknown
23444 cat > conftest.$ac_ext <<EOF
23445 #line 23445 "configure"
23446 #include "confdefs.h"
23455 # define LT_DLGLOBAL RTLD_GLOBAL
23458 # define LT_DLGLOBAL DL_GLOBAL
23460 # define LT_DLGLOBAL 0
23464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23465 find out it does not work in some platform. */
23466 #ifndef LT_DLLAZY_OR_NOW
23468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23471 # define LT_DLLAZY_OR_NOW DL_LAZY
23474 # define LT_DLLAZY_OR_NOW RTLD_NOW
23477 # define LT_DLLAZY_OR_NOW DL_NOW
23479 # define LT_DLLAZY_OR_NOW 0
23487 extern "C" void exit (int);
23490 void fnord() { int i=42;}
23493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23494 int status = $lt_dlunknown;
23498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23499 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23500 /* dlclose (self); */
23506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23507 (eval $ac_link) 2>&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23511 (./conftest; exit; ) 2>/dev/null
23513 case x$lt_status in
23514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23516 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23519 # compilation failed
23520 lt_cv_dlopen_self=no
23527 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23530 if test "x$lt_cv_dlopen_self" = xyes; then
23531 LDFLAGS="$LDFLAGS $link_static_flag"
23532 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23534 if test "${lt_cv_dlopen_self_static+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 if test "$cross_compiling" = yes; then :
23538 lt_cv_dlopen_self_static=cross
23540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23541 lt_status=$lt_dlunknown
23542 cat > conftest.$ac_ext <<EOF
23543 #line 23543 "configure"
23544 #include "confdefs.h"
23553 # define LT_DLGLOBAL RTLD_GLOBAL
23556 # define LT_DLGLOBAL DL_GLOBAL
23558 # define LT_DLGLOBAL 0
23562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23563 find out it does not work in some platform. */
23564 #ifndef LT_DLLAZY_OR_NOW
23566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23569 # define LT_DLLAZY_OR_NOW DL_LAZY
23572 # define LT_DLLAZY_OR_NOW RTLD_NOW
23575 # define LT_DLLAZY_OR_NOW DL_NOW
23577 # define LT_DLLAZY_OR_NOW 0
23585 extern "C" void exit (int);
23588 void fnord() { int i=42;}
23591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23592 int status = $lt_dlunknown;
23596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23598 /* dlclose (self); */
23604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23605 (eval $ac_link) 2>&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23609 (./conftest; exit; ) 2>/dev/null
23611 case x$lt_status in
23612 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23613 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23614 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23617 # compilation failed
23618 lt_cv_dlopen_self_static=no
23625 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23626 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23629 CPPFLAGS="$save_CPPFLAGS"
23630 LDFLAGS="$save_LDFLAGS"
23635 case $lt_cv_dlopen_self in
23636 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23637 *) enable_dlopen_self=unknown ;;
23640 case $lt_cv_dlopen_self_static in
23641 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23642 *) enable_dlopen_self_static=unknown ;;
23647 # The else clause should only fire when bootstrapping the
23648 # libtool distribution, otherwise you forgot to ship ltmain.sh
23649 # with your package, and you will get complaints that there are
23650 # no rules to generate ltmain.sh.
23651 if test -f "$ltmain"; then
23652 # See if we are running on zsh, and set the options which allow our commands through
23653 # without removal of \ escapes.
23654 if test -n "${ZSH_VERSION+set}" ; then
23655 setopt NO_GLOB_SUBST
23657 # Now quote all the things that may contain metacharacters while being
23658 # careful not to overquote the AC_SUBSTed values. We take copies of the
23659 # variables and quote the copies for generation of the libtool script.
23660 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23662 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23663 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23664 deplibs_check_method reload_flag reload_cmds need_locks \
23665 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23666 lt_cv_sys_global_symbol_to_c_name_address \
23667 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23668 old_postinstall_cmds old_postuninstall_cmds \
23672 lt_prog_compiler_wl_GCJ \
23673 lt_prog_compiler_pic_GCJ \
23674 lt_prog_compiler_static_GCJ \
23675 lt_prog_compiler_no_builtin_flag_GCJ \
23676 export_dynamic_flag_spec_GCJ \
23677 thread_safe_flag_spec_GCJ \
23678 whole_archive_flag_spec_GCJ \
23679 enable_shared_with_static_runtimes_GCJ \
23680 old_archive_cmds_GCJ \
23681 old_archive_from_new_cmds_GCJ \
23682 predep_objects_GCJ \
23683 postdep_objects_GCJ \
23686 compiler_lib_search_path_GCJ \
23688 archive_expsym_cmds_GCJ \
23689 postinstall_cmds_GCJ \
23690 postuninstall_cmds_GCJ \
23691 old_archive_from_expsyms_cmds_GCJ \
23692 allow_undefined_flag_GCJ \
23693 no_undefined_flag_GCJ \
23694 export_symbols_cmds_GCJ \
23695 hardcode_libdir_flag_spec_GCJ \
23696 hardcode_libdir_flag_spec_ld_GCJ \
23697 hardcode_libdir_separator_GCJ \
23698 hardcode_automatic_GCJ \
23700 module_expsym_cmds_GCJ \
23701 lt_cv_prog_compiler_c_o_GCJ \
23702 exclude_expsyms_GCJ \
23703 include_expsyms_GCJ; do
23706 old_archive_cmds_GCJ | \
23707 old_archive_from_new_cmds_GCJ | \
23708 archive_cmds_GCJ | \
23709 archive_expsym_cmds_GCJ | \
23710 module_cmds_GCJ | \
23711 module_expsym_cmds_GCJ | \
23712 old_archive_from_expsyms_cmds_GCJ | \
23713 export_symbols_cmds_GCJ | \
23714 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23715 postinstall_cmds | postuninstall_cmds | \
23716 old_postinstall_cmds | old_postuninstall_cmds | \
23717 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23718 # Double-quote double-evaled strings.
23719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23728 *'\$0 --fallback-echo"')
23729 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23735 cat <<__EOF__ >> "$cfgfile"
23736 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23740 # Shell to use when invoking shell scripts.
23743 # Whether or not to build shared libraries.
23744 build_libtool_libs=$enable_shared
23746 # Whether or not to build static libraries.
23747 build_old_libs=$enable_static
23749 # Whether or not to add -lc for building shared libraries.
23750 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23752 # Whether or not to disallow shared libs when runtime libs are static
23753 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23755 # Whether or not to optimize for fast installation.
23756 fast_install=$enable_fast_install
23759 host_alias=$host_alias
23762 # An echo program that does not interpret backslashes.
23767 AR_FLAGS=$lt_AR_FLAGS
23772 # A language-specific compiler.
23773 CC=$lt_compiler_GCJ
23775 # Is the compiler the GNU C compiler?
23781 # The linker used to build libraries.
23784 # Whether we need hard or soft links.
23787 # A BSD-compatible nm program.
23790 # A symbol stripping program
23793 # Used to examine libraries when file_magic_cmd begins "file"
23794 MAGIC_CMD=$MAGIC_CMD
23796 # Used on cygwin: DLL creation program.
23799 # Used on cygwin: object dumper.
23802 # Used on cygwin: assembler.
23805 # The name of the directory that contains temporary libtool files.
23808 # How to create reloadable object files.
23809 reload_flag=$lt_reload_flag
23810 reload_cmds=$lt_reload_cmds
23812 # How to pass a linker flag through the compiler.
23813 wl=$lt_lt_prog_compiler_wl_GCJ
23815 # Object file suffix (normally "o").
23816 objext="$ac_objext"
23818 # Old archive suffix (normally "a").
23821 # Shared library suffix (normally ".so").
23822 shrext_cmds='$shrext_cmds'
23824 # Executable file suffix (normally "").
23827 # Additional compiler flags for building library objects.
23828 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23831 # What is the maximum length of a command?
23832 max_cmd_len=$lt_cv_sys_max_cmd_len
23834 # Does compiler simultaneously support -c and -o options?
23835 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23837 # Must we lock files when doing compilation ?
23838 need_locks=$lt_need_locks
23840 # Do we need the lib prefix for modules?
23841 need_lib_prefix=$need_lib_prefix
23843 # Do we need a version for libraries?
23844 need_version=$need_version
23846 # Whether dlopen is supported.
23847 dlopen_support=$enable_dlopen
23849 # Whether dlopen of programs is supported.
23850 dlopen_self=$enable_dlopen_self
23852 # Whether dlopen of statically linked programs is supported.
23853 dlopen_self_static=$enable_dlopen_self_static
23855 # Compiler flag to prevent dynamic linking.
23856 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23858 # Compiler flag to turn off builtin functions.
23859 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23861 # Compiler flag to allow reflexive dlopens.
23862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23864 # Compiler flag to generate shared objects directly from archives.
23865 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23867 # Compiler flag to generate thread-safe objects.
23868 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23870 # Library versioning type.
23871 version_type=$version_type
23873 # Format of library name prefix.
23874 libname_spec=$lt_libname_spec
23876 # List of archive names. First name is the real one, the rest are links.
23877 # The last name is the one that the linker finds with -lNAME.
23878 library_names_spec=$lt_library_names_spec
23880 # The coded name of the library, if different from the real name.
23881 soname_spec=$lt_soname_spec
23883 # Commands used to build and install an old-style archive.
23885 old_archive_cmds=$lt_old_archive_cmds_GCJ
23886 old_postinstall_cmds=$lt_old_postinstall_cmds
23887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23889 # Create an old-style archive from a shared archive.
23890 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23892 # Create a temporary old-style archive to link instead of a shared archive.
23893 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23895 # Commands used to build and install a shared archive.
23896 archive_cmds=$lt_archive_cmds_GCJ
23897 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23898 postinstall_cmds=$lt_postinstall_cmds
23899 postuninstall_cmds=$lt_postuninstall_cmds
23901 # Commands used to build a loadable module (assumed same as above if empty)
23902 module_cmds=$lt_module_cmds_GCJ
23903 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23905 # Commands to strip libraries.
23906 old_striplib=$lt_old_striplib
23907 striplib=$lt_striplib
23909 # Dependencies to place before the objects being linked to create a
23911 predep_objects=$lt_predep_objects_GCJ
23913 # Dependencies to place after the objects being linked to create a
23915 postdep_objects=$lt_postdep_objects_GCJ
23917 # Dependencies to place before the objects being linked to create a
23919 predeps=$lt_predeps_GCJ
23921 # Dependencies to place after the objects being linked to create a
23923 postdeps=$lt_postdeps_GCJ
23925 # The library search path used internally by the compiler when linking
23926 # a shared library.
23927 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23929 # Method to check whether dependent libraries are shared objects.
23930 deplibs_check_method=$lt_deplibs_check_method
23932 # Command to use when deplibs_check_method == file_magic.
23933 file_magic_cmd=$lt_file_magic_cmd
23935 # Flag that allows shared libraries with undefined symbols to be built.
23936 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23938 # Flag that forces no undefined symbols.
23939 no_undefined_flag=$lt_no_undefined_flag_GCJ
23941 # Commands used to finish a libtool library installation in a directory.
23942 finish_cmds=$lt_finish_cmds
23944 # Same as above, but a single script fragment to be evaled but not shown.
23945 finish_eval=$lt_finish_eval
23947 # Take the output of nm and produce a listing of raw symbols and C names.
23948 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23950 # Transform the output of nm in a proper C declaration
23951 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23953 # Transform the output of nm in a C name address pair
23954 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23956 # This is the shared library runtime path variable.
23957 runpath_var=$runpath_var
23959 # This is the shared library path variable.
23960 shlibpath_var=$shlibpath_var
23962 # Is shlibpath searched before the hard-coded library search path?
23963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23965 # How to hardcode a shared library path into an executable.
23966 hardcode_action=$hardcode_action_GCJ
23968 # Whether we should hardcode library paths into libraries.
23969 hardcode_into_libs=$hardcode_into_libs
23971 # Flag to hardcode \$libdir into a binary during linking.
23972 # This must work even if \$libdir does not exist.
23973 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23975 # If ld is used when linking, flag to hardcode \$libdir into
23976 # a binary during linking. This must work even if \$libdir does
23978 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23980 # Whether we need a single -rpath flag with a separated argument.
23981 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23983 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23984 # resulting binary.
23985 hardcode_direct=$hardcode_direct_GCJ
23987 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23988 # resulting binary.
23989 hardcode_minus_L=$hardcode_minus_L_GCJ
23991 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23992 # the resulting binary.
23993 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23995 # Set to yes if building a shared library automatically hardcodes DIR into the library
23996 # and all subsequent libraries and executables linked against it.
23997 hardcode_automatic=$hardcode_automatic_GCJ
23999 # Variables whose values should be saved in libtool wrapper scripts and
24000 # restored at relink time.
24001 variables_saved_for_relink="$variables_saved_for_relink"
24003 # Whether libtool must link a program against all its dependency libraries.
24004 link_all_deplibs=$link_all_deplibs_GCJ
24006 # Compile-time system search path for libraries
24007 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24009 # Run-time system search path for libraries
24010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24012 # Fix the shell variable \$srcfile for the compiler.
24013 fix_srcfile_path="$fix_srcfile_path_GCJ"
24015 # Set to yes if exported symbols are required.
24016 always_export_symbols=$always_export_symbols_GCJ
24018 # The commands to list exported symbols.
24019 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24021 # The commands to extract the exported symbol list from a shared archive.
24022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24024 # Symbols that should not be listed in the preloaded symbols.
24025 exclude_expsyms=$lt_exclude_expsyms_GCJ
24027 # Symbols that must always be exported.
24028 include_expsyms=$lt_include_expsyms_GCJ
24030 # ### END LIBTOOL TAG CONFIG: $tagname
24036 # If there is no Makefile yet, we rely on a make rule to execute
24037 # `config.status --recheck' to rerun these tests and create the
24038 # libtool script then.
24039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24040 if test -f "$ltmain_in"; then
24041 test -f Makefile && make "$ltmain"
24047 ac_cpp='$CPP $CPPFLAGS'
24048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24061 ac_cpp='$CPP $CPPFLAGS'
24062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24067 # Source file extension for RC test sources.
24070 # Object file extension for compiled RC test sources.
24074 # Code to be used in simple compile tests
24075 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24077 # Code to be used in simple link tests
24078 lt_simple_link_test_code="$lt_simple_compile_test_code"
24080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24082 # If no C compiler was specified, use CC.
24085 # Allow CC to be a program name with arguments.
24089 # Allow CC to be a program name with arguments.
24094 lt_cv_prog_compiler_c_o_RC=yes
24096 # The else clause should only fire when bootstrapping the
24097 # libtool distribution, otherwise you forgot to ship ltmain.sh
24098 # with your package, and you will get complaints that there are
24099 # no rules to generate ltmain.sh.
24100 if test -f "$ltmain"; then
24101 # See if we are running on zsh, and set the options which allow our commands through
24102 # without removal of \ escapes.
24103 if test -n "${ZSH_VERSION+set}" ; then
24104 setopt NO_GLOB_SUBST
24106 # Now quote all the things that may contain metacharacters while being
24107 # careful not to overquote the AC_SUBSTed values. We take copies of the
24108 # variables and quote the copies for generation of the libtool script.
24109 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24111 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24112 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24113 deplibs_check_method reload_flag reload_cmds need_locks \
24114 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24115 lt_cv_sys_global_symbol_to_c_name_address \
24116 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24117 old_postinstall_cmds old_postuninstall_cmds \
24121 lt_prog_compiler_wl_RC \
24122 lt_prog_compiler_pic_RC \
24123 lt_prog_compiler_static_RC \
24124 lt_prog_compiler_no_builtin_flag_RC \
24125 export_dynamic_flag_spec_RC \
24126 thread_safe_flag_spec_RC \
24127 whole_archive_flag_spec_RC \
24128 enable_shared_with_static_runtimes_RC \
24129 old_archive_cmds_RC \
24130 old_archive_from_new_cmds_RC \
24131 predep_objects_RC \
24132 postdep_objects_RC \
24135 compiler_lib_search_path_RC \
24137 archive_expsym_cmds_RC \
24138 postinstall_cmds_RC \
24139 postuninstall_cmds_RC \
24140 old_archive_from_expsyms_cmds_RC \
24141 allow_undefined_flag_RC \
24142 no_undefined_flag_RC \
24143 export_symbols_cmds_RC \
24144 hardcode_libdir_flag_spec_RC \
24145 hardcode_libdir_flag_spec_ld_RC \
24146 hardcode_libdir_separator_RC \
24147 hardcode_automatic_RC \
24149 module_expsym_cmds_RC \
24150 lt_cv_prog_compiler_c_o_RC \
24151 exclude_expsyms_RC \
24152 include_expsyms_RC; do
24155 old_archive_cmds_RC | \
24156 old_archive_from_new_cmds_RC | \
24157 archive_cmds_RC | \
24158 archive_expsym_cmds_RC | \
24160 module_expsym_cmds_RC | \
24161 old_archive_from_expsyms_cmds_RC | \
24162 export_symbols_cmds_RC | \
24163 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24164 postinstall_cmds | postuninstall_cmds | \
24165 old_postinstall_cmds | old_postuninstall_cmds | \
24166 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24167 # Double-quote double-evaled strings.
24168 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24177 *'\$0 --fallback-echo"')
24178 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24184 cat <<__EOF__ >> "$cfgfile"
24185 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24189 # Shell to use when invoking shell scripts.
24192 # Whether or not to build shared libraries.
24193 build_libtool_libs=$enable_shared
24195 # Whether or not to build static libraries.
24196 build_old_libs=$enable_static
24198 # Whether or not to add -lc for building shared libraries.
24199 build_libtool_need_lc=$archive_cmds_need_lc_RC
24201 # Whether or not to disallow shared libs when runtime libs are static
24202 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24204 # Whether or not to optimize for fast installation.
24205 fast_install=$enable_fast_install
24208 host_alias=$host_alias
24211 # An echo program that does not interpret backslashes.
24216 AR_FLAGS=$lt_AR_FLAGS
24221 # A language-specific compiler.
24224 # Is the compiler the GNU C compiler?
24230 # The linker used to build libraries.
24233 # Whether we need hard or soft links.
24236 # A BSD-compatible nm program.
24239 # A symbol stripping program
24242 # Used to examine libraries when file_magic_cmd begins "file"
24243 MAGIC_CMD=$MAGIC_CMD
24245 # Used on cygwin: DLL creation program.
24248 # Used on cygwin: object dumper.
24251 # Used on cygwin: assembler.
24254 # The name of the directory that contains temporary libtool files.
24257 # How to create reloadable object files.
24258 reload_flag=$lt_reload_flag
24259 reload_cmds=$lt_reload_cmds
24261 # How to pass a linker flag through the compiler.
24262 wl=$lt_lt_prog_compiler_wl_RC
24264 # Object file suffix (normally "o").
24265 objext="$ac_objext"
24267 # Old archive suffix (normally "a").
24270 # Shared library suffix (normally ".so").
24271 shrext_cmds='$shrext_cmds'
24273 # Executable file suffix (normally "").
24276 # Additional compiler flags for building library objects.
24277 pic_flag=$lt_lt_prog_compiler_pic_RC
24280 # What is the maximum length of a command?
24281 max_cmd_len=$lt_cv_sys_max_cmd_len
24283 # Does compiler simultaneously support -c and -o options?
24284 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24286 # Must we lock files when doing compilation ?
24287 need_locks=$lt_need_locks
24289 # Do we need the lib prefix for modules?
24290 need_lib_prefix=$need_lib_prefix
24292 # Do we need a version for libraries?
24293 need_version=$need_version
24295 # Whether dlopen is supported.
24296 dlopen_support=$enable_dlopen
24298 # Whether dlopen of programs is supported.
24299 dlopen_self=$enable_dlopen_self
24301 # Whether dlopen of statically linked programs is supported.
24302 dlopen_self_static=$enable_dlopen_self_static
24304 # Compiler flag to prevent dynamic linking.
24305 link_static_flag=$lt_lt_prog_compiler_static_RC
24307 # Compiler flag to turn off builtin functions.
24308 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24310 # Compiler flag to allow reflexive dlopens.
24311 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24313 # Compiler flag to generate shared objects directly from archives.
24314 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24316 # Compiler flag to generate thread-safe objects.
24317 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24319 # Library versioning type.
24320 version_type=$version_type
24322 # Format of library name prefix.
24323 libname_spec=$lt_libname_spec
24325 # List of archive names. First name is the real one, the rest are links.
24326 # The last name is the one that the linker finds with -lNAME.
24327 library_names_spec=$lt_library_names_spec
24329 # The coded name of the library, if different from the real name.
24330 soname_spec=$lt_soname_spec
24332 # Commands used to build and install an old-style archive.
24334 old_archive_cmds=$lt_old_archive_cmds_RC
24335 old_postinstall_cmds=$lt_old_postinstall_cmds
24336 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24338 # Create an old-style archive from a shared archive.
24339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24341 # Create a temporary old-style archive to link instead of a shared archive.
24342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24344 # Commands used to build and install a shared archive.
24345 archive_cmds=$lt_archive_cmds_RC
24346 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24347 postinstall_cmds=$lt_postinstall_cmds
24348 postuninstall_cmds=$lt_postuninstall_cmds
24350 # Commands used to build a loadable module (assumed same as above if empty)
24351 module_cmds=$lt_module_cmds_RC
24352 module_expsym_cmds=$lt_module_expsym_cmds_RC
24354 # Commands to strip libraries.
24355 old_striplib=$lt_old_striplib
24356 striplib=$lt_striplib
24358 # Dependencies to place before the objects being linked to create a
24360 predep_objects=$lt_predep_objects_RC
24362 # Dependencies to place after the objects being linked to create a
24364 postdep_objects=$lt_postdep_objects_RC
24366 # Dependencies to place before the objects being linked to create a
24368 predeps=$lt_predeps_RC
24370 # Dependencies to place after the objects being linked to create a
24372 postdeps=$lt_postdeps_RC
24374 # The library search path used internally by the compiler when linking
24375 # a shared library.
24376 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24378 # Method to check whether dependent libraries are shared objects.
24379 deplibs_check_method=$lt_deplibs_check_method
24381 # Command to use when deplibs_check_method == file_magic.
24382 file_magic_cmd=$lt_file_magic_cmd
24384 # Flag that allows shared libraries with undefined symbols to be built.
24385 allow_undefined_flag=$lt_allow_undefined_flag_RC
24387 # Flag that forces no undefined symbols.
24388 no_undefined_flag=$lt_no_undefined_flag_RC
24390 # Commands used to finish a libtool library installation in a directory.
24391 finish_cmds=$lt_finish_cmds
24393 # Same as above, but a single script fragment to be evaled but not shown.
24394 finish_eval=$lt_finish_eval
24396 # Take the output of nm and produce a listing of raw symbols and C names.
24397 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24399 # Transform the output of nm in a proper C declaration
24400 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24402 # Transform the output of nm in a C name address pair
24403 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24405 # This is the shared library runtime path variable.
24406 runpath_var=$runpath_var
24408 # This is the shared library path variable.
24409 shlibpath_var=$shlibpath_var
24411 # Is shlibpath searched before the hard-coded library search path?
24412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24414 # How to hardcode a shared library path into an executable.
24415 hardcode_action=$hardcode_action_RC
24417 # Whether we should hardcode library paths into libraries.
24418 hardcode_into_libs=$hardcode_into_libs
24420 # Flag to hardcode \$libdir into a binary during linking.
24421 # This must work even if \$libdir does not exist.
24422 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24424 # If ld is used when linking, flag to hardcode \$libdir into
24425 # a binary during linking. This must work even if \$libdir does
24427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24429 # Whether we need a single -rpath flag with a separated argument.
24430 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24432 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24433 # resulting binary.
24434 hardcode_direct=$hardcode_direct_RC
24436 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24437 # resulting binary.
24438 hardcode_minus_L=$hardcode_minus_L_RC
24440 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24441 # the resulting binary.
24442 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24444 # Set to yes if building a shared library automatically hardcodes DIR into the library
24445 # and all subsequent libraries and executables linked against it.
24446 hardcode_automatic=$hardcode_automatic_RC
24448 # Variables whose values should be saved in libtool wrapper scripts and
24449 # restored at relink time.
24450 variables_saved_for_relink="$variables_saved_for_relink"
24452 # Whether libtool must link a program against all its dependency libraries.
24453 link_all_deplibs=$link_all_deplibs_RC
24455 # Compile-time system search path for libraries
24456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24458 # Run-time system search path for libraries
24459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24461 # Fix the shell variable \$srcfile for the compiler.
24462 fix_srcfile_path="$fix_srcfile_path_RC"
24464 # Set to yes if exported symbols are required.
24465 always_export_symbols=$always_export_symbols_RC
24467 # The commands to list exported symbols.
24468 export_symbols_cmds=$lt_export_symbols_cmds_RC
24470 # The commands to extract the exported symbol list from a shared archive.
24471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24473 # Symbols that should not be listed in the preloaded symbols.
24474 exclude_expsyms=$lt_exclude_expsyms_RC
24476 # Symbols that must always be exported.
24477 include_expsyms=$lt_include_expsyms_RC
24479 # ### END LIBTOOL TAG CONFIG: $tagname
24485 # If there is no Makefile yet, we rely on a make rule to execute
24486 # `config.status --recheck' to rerun these tests and create the
24487 # libtool script then.
24488 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24489 if test -f "$ltmain_in"; then
24490 test -f Makefile && make "$ltmain"
24496 ac_cpp='$CPP $CPPFLAGS'
24497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24506 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24507 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24508 { (exit 1); exit 1; }; }
24512 # Append the new tag name to the list of available tags.
24513 if test -n "$tagname" ; then
24514 available_tags="$available_tags $tagname"
24520 # Now substitute the updated list of available tags.
24521 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24522 mv "${ofile}T" "$ofile"
24526 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24527 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24528 { (exit 1); exit 1; }; }
24534 # This can be used to rebuild libtool when needed
24535 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24537 # Always use our own libtool.
24538 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24540 # Prevent multiple expansion
24562 if test "$lt_cv_dlopen_self" = "yes" ; then
24564 cat >>confdefs.h <<\_ACEOF
24565 #define CAN_DLOPEN_SELF 1
24570 etags_version=`$ETAGS --version 2>&1`
24571 case "$etags_version" in
24572 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24573 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24574 *) ETAGSFLAGS="" ;;
24576 ETAGSFLAGS=$ETAGSFLAGS
24579 if test "$WITH_LLVMGCCDIR" = "default" ; then
24580 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24581 set dummy llvm-gcc; ac_word=$2
24582 echo "$as_me:$LINENO: checking for $ac_word" >&5
24583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24584 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24589 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24593 for as_dir in $PATH
24596 test -z "$as_dir" && as_dir=.
24597 for ac_exec_ext in '' $ac_executable_extensions; do
24598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24599 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24606 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24610 LLVMGCC=$ac_cv_path_LLVMGCC
24612 if test -n "$LLVMGCC"; then
24613 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24614 echo "${ECHO_T}$LLVMGCC" >&6
24616 echo "$as_me:$LINENO: result: no" >&5
24617 echo "${ECHO_T}no" >&6
24620 # Extract the first word of "llvm-g++", so it can be a program name with args.
24621 set dummy llvm-g++; ac_word=$2
24622 echo "$as_me:$LINENO: checking for $ac_word" >&5
24623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24624 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24633 for as_dir in $PATH
24636 test -z "$as_dir" && as_dir=.
24637 for ac_exec_ext in '' $ac_executable_extensions; do
24638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24639 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24646 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24650 LLVMGXX=$ac_cv_path_LLVMGXX
24652 if test -n "$LLVMGXX"; then
24653 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24654 echo "${ECHO_T}$LLVMGXX" >&6
24656 echo "$as_me:$LINENO: result: no" >&5
24657 echo "${ECHO_T}no" >&6
24661 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24662 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24669 echo "$as_me:$LINENO: checking tool compatibility" >&5
24670 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24683 if test "$GCC" != "yes" && test "$ICC" != "yes"
24685 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24686 echo "$as_me: error: gcc|icc required but not found" >&2;}
24687 { (exit 1); exit 1; }; }
24690 if test "$GXX" != "yes" && test "$IXX" != "yes"
24692 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24693 echo "$as_me: error: g++|icc required but not found" >&2;}
24694 { (exit 1); exit 1; }; }
24697 if test "$GCC" = "yes"
24699 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24700 if test "$gccmajor" -lt "3"
24702 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24703 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24704 { (exit 1); exit 1; }; }
24708 if test -z "$llvm_cv_gnu_make_command"
24710 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24711 echo "$as_me: error: GNU Make required but not found" >&2;}
24712 { (exit 1); exit 1; }; }
24715 echo "$as_me:$LINENO: result: ok" >&5
24716 echo "${ECHO_T}ok" >&6
24720 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24721 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24722 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24725 ac_check_lib_save_LIBS=$LIBS
24727 cat >conftest.$ac_ext <<_ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24734 /* Override any gcc2 internal prototype to avoid an error. */
24738 /* We use char because int might match the return type of a gcc2
24739 builtin and then its argument prototype would still apply. */
24749 rm -f conftest.$ac_objext conftest$ac_exeext
24750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24751 (eval $ac_link) 2>conftest.er1
24753 grep -v '^ *+' conftest.er1 >conftest.err
24755 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } &&
24758 { ac_try='test -z "$ac_c_werror_flag"
24759 || test ! -s conftest.err'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; } &&
24765 { ac_try='test -s conftest$ac_exeext'
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; }; then
24771 ac_cv_lib_elf_elf_begin=yes
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_cv_lib_elf_elf_begin=no
24778 rm -f conftest.err conftest.$ac_objext \
24779 conftest$ac_exeext conftest.$ac_ext
24780 LIBS=$ac_check_lib_save_LIBS
24782 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24783 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24784 if test $ac_cv_lib_elf_elf_begin = yes; then
24785 cat >>confdefs.h <<_ACEOF
24786 #define HAVE_LIBELF 1
24794 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24795 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24796 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 ac_func_search_save_LIBS=$LIBS
24800 ac_cv_search_lt_dlopen=no
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24808 /* Override any gcc2 internal prototype to avoid an error. */
24812 /* We use char because int might match the return type of a gcc2
24813 builtin and then its argument prototype would still apply. */
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825 (eval $ac_link) 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } &&
24832 { ac_try='test -z "$ac_c_werror_flag"
24833 || test ! -s conftest.err'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } &&
24839 { ac_try='test -s conftest$ac_exeext'
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; }; then
24845 ac_cv_search_lt_dlopen="none required"
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24851 rm -f conftest.err conftest.$ac_objext \
24852 conftest$ac_exeext conftest.$ac_ext
24853 if test "$ac_cv_search_lt_dlopen" = no; then
24854 for ac_lib in ltdl; do
24855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24856 cat >conftest.$ac_ext <<_ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24863 /* Override any gcc2 internal prototype to avoid an error. */
24867 /* We use char because int might match the return type of a gcc2
24868 builtin and then its argument prototype would still apply. */
24878 rm -f conftest.$ac_objext conftest$ac_exeext
24879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24880 (eval $ac_link) 2>conftest.er1
24882 grep -v '^ *+' conftest.er1 >conftest.err
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } &&
24887 { ac_try='test -z "$ac_c_werror_flag"
24888 || test ! -s conftest.err'
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest$ac_exeext'
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; }; then
24900 ac_cv_search_lt_dlopen="-l$ac_lib"
24903 echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24907 rm -f conftest.err conftest.$ac_objext \
24908 conftest$ac_exeext conftest.$ac_ext
24911 LIBS=$ac_func_search_save_LIBS
24913 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24914 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24915 if test "$ac_cv_search_lt_dlopen" != no; then
24916 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24918 cat >>confdefs.h <<\_ACEOF
24919 #define HAVE_LT_DLOPEN 1
24923 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24924 not be available" >&5
24925 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24926 not be available" >&2;}
24930 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24931 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24932 if test "${ac_cv_search_dlopen+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 ac_func_search_save_LIBS=$LIBS
24936 ac_cv_search_dlopen=no
24937 cat >conftest.$ac_ext <<_ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h. */
24944 /* Override any gcc2 internal prototype to avoid an error. */
24948 /* We use char because int might match the return type of a gcc2
24949 builtin and then its argument prototype would still apply. */
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961 (eval $ac_link) 2>conftest.er1
24963 grep -v '^ *+' conftest.er1 >conftest.err
24965 cat conftest.err >&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); } &&
24968 { ac_try='test -z "$ac_c_werror_flag"
24969 || test ! -s conftest.err'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; } &&
24975 { ac_try='test -s conftest$ac_exeext'
24976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977 (eval $ac_try) 2>&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); }; }; then
24981 ac_cv_search_dlopen="none required"
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24987 rm -f conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext conftest.$ac_ext
24989 if test "$ac_cv_search_dlopen" = no; then
24990 for ac_lib in dl; do
24991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24999 /* Override any gcc2 internal prototype to avoid an error. */
25003 /* We use char because int might match the return type of a gcc2
25004 builtin and then its argument prototype would still apply. */
25014 rm -f conftest.$ac_objext conftest$ac_exeext
25015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25016 (eval $ac_link) 2>conftest.er1
25018 grep -v '^ *+' conftest.er1 >conftest.err
25020 cat conftest.err >&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
25023 { ac_try='test -z "$ac_c_werror_flag"
25024 || test ! -s conftest.err'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_cv_search_dlopen="-l$ac_lib"
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25043 rm -f conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
25047 LIBS=$ac_func_search_save_LIBS
25049 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25050 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25051 if test "$ac_cv_search_dlopen" != no; then
25052 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25054 cat >>confdefs.h <<\_ACEOF
25055 #define HAVE_DLOPEN 1
25059 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25060 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25064 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25065 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25066 if test "${ac_cv_search_mallinfo+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 ac_func_search_save_LIBS=$LIBS
25070 ac_cv_search_mallinfo=no
25071 cat >conftest.$ac_ext <<_ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25078 /* Override any gcc2 internal prototype to avoid an error. */
25082 /* We use char because int might match the return type of a gcc2
25083 builtin and then its argument prototype would still apply. */
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25095 (eval $ac_link) 2>conftest.er1
25097 grep -v '^ *+' conftest.er1 >conftest.err
25099 cat conftest.err >&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); } &&
25102 { ac_try='test -z "$ac_c_werror_flag"
25103 || test ! -s conftest.err'
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
25110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 ac_cv_search_mallinfo="none required"
25117 echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25121 rm -f conftest.err conftest.$ac_objext \
25122 conftest$ac_exeext conftest.$ac_ext
25123 if test "$ac_cv_search_mallinfo" = no; then
25124 for ac_lib in malloc; do
25125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25133 /* Override any gcc2 internal prototype to avoid an error. */
25137 /* We use char because int might match the return type of a gcc2
25138 builtin and then its argument prototype would still apply. */
25148 rm -f conftest.$ac_objext conftest$ac_exeext
25149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25150 (eval $ac_link) 2>conftest.er1
25152 grep -v '^ *+' conftest.er1 >conftest.err
25154 cat conftest.err >&5
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); } &&
25157 { ac_try='test -z "$ac_c_werror_flag"
25158 || test ! -s conftest.err'
25159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160 (eval $ac_try) 2>&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); }; } &&
25164 { ac_try='test -s conftest$ac_exeext'
25165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166 (eval $ac_try) 2>&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; }; then
25170 ac_cv_search_mallinfo="-l$ac_lib"
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25177 rm -f conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
25181 LIBS=$ac_func_search_save_LIBS
25183 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25184 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25185 if test "$ac_cv_search_mallinfo" != no; then
25186 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25188 cat >>confdefs.h <<\_ACEOF
25189 #define HAVE_MALLINFO 1
25195 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25196 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25197 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25198 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 ac_func_search_save_LIBS=$LIBS
25201 ac_cv_search_pthread_mutex_lock=no
25202 cat >conftest.$ac_ext <<_ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h. */
25209 /* Override any gcc2 internal prototype to avoid an error. */
25213 /* We use char because int might match the return type of a gcc2
25214 builtin and then its argument prototype would still apply. */
25215 char pthread_mutex_lock ();
25219 pthread_mutex_lock ();
25224 rm -f conftest.$ac_objext conftest$ac_exeext
25225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25226 (eval $ac_link) 2>conftest.er1
25228 grep -v '^ *+' conftest.er1 >conftest.err
25230 cat conftest.err >&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } &&
25233 { ac_try='test -z "$ac_c_werror_flag"
25234 || test ! -s conftest.err'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; } &&
25240 { ac_try='test -s conftest$ac_exeext'
25241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242 (eval $ac_try) 2>&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; }; then
25246 ac_cv_search_pthread_mutex_lock="none required"
25248 echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25252 rm -f conftest.err conftest.$ac_objext \
25253 conftest$ac_exeext conftest.$ac_ext
25254 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25255 for ac_lib in pthread; do
25256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25257 cat >conftest.$ac_ext <<_ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h. */
25264 /* Override any gcc2 internal prototype to avoid an error. */
25268 /* We use char because int might match the return type of a gcc2
25269 builtin and then its argument prototype would still apply. */
25270 char pthread_mutex_lock ();
25274 pthread_mutex_lock ();
25279 rm -f conftest.$ac_objext conftest$ac_exeext
25280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25281 (eval $ac_link) 2>conftest.er1
25283 grep -v '^ *+' conftest.er1 >conftest.err
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } &&
25288 { ac_try='test -z "$ac_c_werror_flag"
25289 || test ! -s conftest.err'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; } &&
25295 { ac_try='test -s conftest$ac_exeext'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; }; then
25301 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25304 echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25308 rm -f conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
25312 LIBS=$ac_func_search_save_LIBS
25314 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25315 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25316 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25317 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_PTHREAD_MUTEX_LOCK 1
25332 ac_header_dirent=no
25333 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25334 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25335 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25336 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25340 cat >conftest.$ac_ext <<_ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346 #include <sys/types.h>
25358 rm -f conftest.$ac_objext
25359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360 (eval $ac_compile) 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } &&
25367 { ac_try='test -z "$ac_c_werror_flag"
25368 || test ! -s conftest.err'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; } &&
25374 { ac_try='test -s conftest.$ac_objext'
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; }; then
25380 eval "$as_ac_Header=yes"
25382 echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25385 eval "$as_ac_Header=no"
25387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25392 cat >>confdefs.h <<_ACEOF
25393 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25396 ac_header_dirent=$ac_hdr; break
25400 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25401 if test $ac_header_dirent = dirent.h; then
25402 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25403 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25404 if test "${ac_cv_search_opendir+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25407 ac_func_search_save_LIBS=$LIBS
25408 ac_cv_search_opendir=no
25409 cat >conftest.$ac_ext <<_ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h. */
25416 /* Override any gcc2 internal prototype to avoid an error. */
25420 /* We use char because int might match the return type of a gcc2
25421 builtin and then its argument prototype would still apply. */
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25433 (eval $ac_link) 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } &&
25440 { ac_try='test -z "$ac_c_werror_flag"
25441 || test ! -s conftest.err'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; } &&
25447 { ac_try='test -s conftest$ac_exeext'
25448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449 (eval $ac_try) 2>&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; }; then
25453 ac_cv_search_opendir="none required"
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25459 rm -f conftest.err conftest.$ac_objext \
25460 conftest$ac_exeext conftest.$ac_ext
25461 if test "$ac_cv_search_opendir" = no; then
25462 for ac_lib in dir; do
25463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25464 cat >conftest.$ac_ext <<_ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h. */
25471 /* Override any gcc2 internal prototype to avoid an error. */
25475 /* We use char because int might match the return type of a gcc2
25476 builtin and then its argument prototype would still apply. */
25486 rm -f conftest.$ac_objext conftest$ac_exeext
25487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25488 (eval $ac_link) 2>conftest.er1
25490 grep -v '^ *+' conftest.er1 >conftest.err
25492 cat conftest.err >&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } &&
25495 { ac_try='test -z "$ac_c_werror_flag"
25496 || test ! -s conftest.err'
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; } &&
25502 { ac_try='test -s conftest$ac_exeext'
25503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25504 (eval $ac_try) 2>&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; }; then
25508 ac_cv_search_opendir="-l$ac_lib"
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25515 rm -f conftest.err conftest.$ac_objext \
25516 conftest$ac_exeext conftest.$ac_ext
25519 LIBS=$ac_func_search_save_LIBS
25521 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25522 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25523 if test "$ac_cv_search_opendir" != no; then
25524 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25531 if test "${ac_cv_search_opendir+set}" = set; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 ac_func_search_save_LIBS=$LIBS
25535 ac_cv_search_opendir=no
25536 cat >conftest.$ac_ext <<_ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h. */
25543 /* Override any gcc2 internal prototype to avoid an error. */
25547 /* We use char because int might match the return type of a gcc2
25548 builtin and then its argument prototype would still apply. */
25558 rm -f conftest.$ac_objext conftest$ac_exeext
25559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25560 (eval $ac_link) 2>conftest.er1
25562 grep -v '^ *+' conftest.er1 >conftest.err
25564 cat conftest.err >&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); } &&
25567 { ac_try='test -z "$ac_c_werror_flag"
25568 || test ! -s conftest.err'
25569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570 (eval $ac_try) 2>&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; } &&
25574 { ac_try='test -s conftest$ac_exeext'
25575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 (eval $ac_try) 2>&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); }; }; then
25580 ac_cv_search_opendir="none required"
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25586 rm -f conftest.err conftest.$ac_objext \
25587 conftest$ac_exeext conftest.$ac_ext
25588 if test "$ac_cv_search_opendir" = no; then
25589 for ac_lib in x; do
25590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25591 cat >conftest.$ac_ext <<_ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h. */
25598 /* Override any gcc2 internal prototype to avoid an error. */
25602 /* We use char because int might match the return type of a gcc2
25603 builtin and then its argument prototype would still apply. */
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25615 (eval $ac_link) 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } &&
25622 { ac_try='test -z "$ac_c_werror_flag"
25623 || test ! -s conftest.err'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; } &&
25629 { ac_try='test -s conftest$ac_exeext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_cv_search_opendir="-l$ac_lib"
25638 echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25642 rm -f conftest.err conftest.$ac_objext \
25643 conftest$ac_exeext conftest.$ac_ext
25646 LIBS=$ac_func_search_save_LIBS
25648 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25649 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25650 if test "$ac_cv_search_opendir" != no; then
25651 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25657 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25658 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25659 if test "${ac_cv_header_mmap_anon+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 ac_cpp='$CPP $CPPFLAGS'
25664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25668 cat >conftest.$ac_ext <<_ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h. */
25674 #include <sys/mman.h>
25675 #include <unistd.h>
25680 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25685 rm -f conftest.$ac_objext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25687 (eval $ac_compile) 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); } &&
25694 { ac_try='test -z "$ac_c_werror_flag"
25695 || test ! -s conftest.err'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; } &&
25701 { ac_try='test -s conftest.$ac_objext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 ac_cv_header_mmap_anon=yes
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25712 ac_cv_header_mmap_anon=no
25714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25716 ac_cpp='$CPP $CPPFLAGS'
25717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25723 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25724 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25725 if test "$ac_cv_header_mmap_anon" = yes; then
25727 cat >>confdefs.h <<\_ACEOF
25728 #define HAVE_MMAP_ANONYMOUS 1
25733 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25734 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25735 if test "${ac_cv_header_stat_broken+set}" = set; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 cat >conftest.$ac_ext <<_ACEOF
25741 cat confdefs.h >>conftest.$ac_ext
25742 cat >>conftest.$ac_ext <<_ACEOF
25743 /* end confdefs.h. */
25744 #include <sys/types.h>
25745 #include <sys/stat.h>
25747 #if defined(S_ISBLK) && defined(S_IFDIR)
25748 # if S_ISBLK (S_IFDIR)
25753 #if defined(S_ISBLK) && defined(S_IFCHR)
25754 # if S_ISBLK (S_IFCHR)
25759 #if defined(S_ISLNK) && defined(S_IFREG)
25760 # if S_ISLNK (S_IFREG)
25765 #if defined(S_ISSOCK) && defined(S_IFREG)
25766 # if S_ISSOCK (S_IFREG)
25772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25773 $EGREP "You lose" >/dev/null 2>&1; then
25774 ac_cv_header_stat_broken=yes
25776 ac_cv_header_stat_broken=no
25781 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25782 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25783 if test $ac_cv_header_stat_broken = yes; then
25785 cat >>confdefs.h <<\_ACEOF
25786 #define STAT_MACROS_BROKEN 1
25791 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25792 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25793 if test "${ac_cv_header_stdc+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 cat >conftest.$ac_ext <<_ACEOF
25799 cat confdefs.h >>conftest.$ac_ext
25800 cat >>conftest.$ac_ext <<_ACEOF
25801 /* end confdefs.h. */
25802 #include <stdlib.h>
25803 #include <stdarg.h>
25804 #include <string.h>
25815 rm -f conftest.$ac_objext
25816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25817 (eval $ac_compile) 2>conftest.er1
25819 grep -v '^ *+' conftest.er1 >conftest.err
25821 cat conftest.err >&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } &&
25824 { ac_try='test -z "$ac_c_werror_flag"
25825 || test ! -s conftest.err'
25826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827 (eval $ac_try) 2>&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); }; } &&
25831 { ac_try='test -s conftest.$ac_objext'
25832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833 (eval $ac_try) 2>&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); }; }; then
25837 ac_cv_header_stdc=yes
25839 echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25842 ac_cv_header_stdc=no
25844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25846 if test $ac_cv_header_stdc = yes; then
25847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25848 cat >conftest.$ac_ext <<_ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 #include <string.h>
25857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25858 $EGREP "memchr" >/dev/null 2>&1; then
25861 ac_cv_header_stdc=no
25867 if test $ac_cv_header_stdc = yes; then
25868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25869 cat >conftest.$ac_ext <<_ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h. */
25875 #include <stdlib.h>
25878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25879 $EGREP "free" >/dev/null 2>&1; then
25882 ac_cv_header_stdc=no
25888 if test $ac_cv_header_stdc = yes; then
25889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25890 if test "$cross_compiling" = yes; then
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25900 #if ((' ' & 0x0FF) == 0x020)
25901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25904 # define ISLOWER(c) \
25905 (('a' <= (c) && (c) <= 'i') \
25906 || ('j' <= (c) && (c) <= 'r') \
25907 || ('s' <= (c) && (c) <= 'z'))
25908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25916 for (i = 0; i < 256; i++)
25917 if (XOR (islower (i), ISLOWER (i))
25918 || toupper (i) != TOUPPER (i))
25923 rm -f conftest$ac_exeext
25924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25925 (eval $ac_link) 2>&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; }; then
25936 echo "$as_me: program exited with status $ac_status" >&5
25937 echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 ( exit $ac_status )
25941 ac_cv_header_stdc=no
25943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25947 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25948 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25949 if test $ac_cv_header_stdc = yes; then
25951 cat >>confdefs.h <<\_ACEOF
25952 #define STDC_HEADERS 1
25957 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25958 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25959 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 cat >conftest.$ac_ext <<_ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 #include <sys/types.h>
25969 #include <sys/wait.h>
25970 #ifndef WEXITSTATUS
25971 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25974 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25982 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25987 rm -f conftest.$ac_objext
25988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25989 (eval $ac_compile) 2>conftest.er1
25991 grep -v '^ *+' conftest.er1 >conftest.err
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } &&
25996 { ac_try='test -z "$ac_c_werror_flag"
25997 || test ! -s conftest.err'
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; } &&
26003 { ac_try='test -s conftest.$ac_objext'
26004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005 (eval $ac_try) 2>&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; }; then
26009 ac_cv_header_sys_wait_h=yes
26011 echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26014 ac_cv_header_sys_wait_h=no
26016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26018 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26019 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26020 if test $ac_cv_header_sys_wait_h = yes; then
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_SYS_WAIT_H 1
26028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26030 if test "${ac_cv_header_time+set}" = set; then
26031 echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
26040 #include <sys/time.h>
26046 if ((struct tm *) 0)
26052 rm -f conftest.$ac_objext
26053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26054 (eval $ac_compile) 2>conftest.er1
26056 grep -v '^ *+' conftest.er1 >conftest.err
26058 cat conftest.err >&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } &&
26061 { ac_try='test -z "$ac_c_werror_flag"
26062 || test ! -s conftest.err'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; } &&
26068 { ac_try='test -s conftest.$ac_objext'
26069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070 (eval $ac_try) 2>&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); }; }; then
26074 ac_cv_header_time=yes
26076 echo "$as_me: failed program was:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26079 ac_cv_header_time=no
26081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26083 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26084 echo "${ECHO_T}$ac_cv_header_time" >&6
26085 if test $ac_cv_header_time = yes; then
26087 cat >>confdefs.h <<\_ACEOF
26088 #define TIME_WITH_SYS_TIME 1
26100 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26104 echo "$as_me:$LINENO: checking for $ac_header" >&5
26105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26112 # Is the header compilable?
26113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121 $ac_includes_default
26122 #include <$ac_header>
26124 rm -f conftest.$ac_objext
26125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26126 (eval $ac_compile) 2>conftest.er1
26128 grep -v '^ *+' conftest.er1 >conftest.err
26130 cat conftest.err >&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } &&
26133 { ac_try='test -z "$ac_c_werror_flag"
26134 || test ! -s conftest.err'
26135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136 (eval $ac_try) 2>&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); }; } &&
26140 { ac_try='test -s conftest.$ac_objext'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; }; then
26146 ac_header_compiler=yes
26148 echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26151 ac_header_compiler=no
26153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26155 echo "${ECHO_T}$ac_header_compiler" >&6
26157 # Is the header present?
26158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26160 cat >conftest.$ac_ext <<_ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h. */
26166 #include <$ac_header>
26168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26171 grep -v '^ *+' conftest.er1 >conftest.err
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } >/dev/null; then
26176 if test -s conftest.err; then
26177 ac_cpp_err=$ac_c_preproc_warn_flag
26178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26185 if test -z "$ac_cpp_err"; then
26186 ac_header_preproc=yes
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 ac_header_preproc=no
26193 rm -f conftest.err conftest.$ac_ext
26194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26195 echo "${ECHO_T}$ac_header_preproc" >&6
26197 # So? What about this header?
26198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26204 ac_header_preproc=yes
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26221 ## ----------------------------------- ##
26222 ## Report this to llvmbugs@cs.uiuc.edu ##
26223 ## ----------------------------------- ##
26226 sed "s/^/$as_me: WARNING: /" >&2
26229 echo "$as_me:$LINENO: checking for $ac_header" >&5
26230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26234 eval "$as_ac_Header=\$ac_header_preproc"
26236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26241 cat >>confdefs.h <<_ACEOF
26242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26255 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26259 echo "$as_me:$LINENO: checking for $ac_header" >&5
26260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26262 echo $ECHO_N "(cached) $ECHO_C" >&6
26264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26267 # Is the header compilable?
26268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26276 $ac_includes_default
26277 #include <$ac_header>
26279 rm -f conftest.$ac_objext
26280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26281 (eval $ac_compile) 2>conftest.er1
26283 grep -v '^ *+' conftest.er1 >conftest.err
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } &&
26288 { ac_try='test -z "$ac_c_werror_flag"
26289 || test ! -s conftest.err'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; } &&
26295 { ac_try='test -s conftest.$ac_objext'
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; }; then
26301 ac_header_compiler=yes
26303 echo "$as_me: failed program was:" >&5
26304 sed 's/^/| /' conftest.$ac_ext >&5
26306 ac_header_compiler=no
26308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26310 echo "${ECHO_T}$ac_header_compiler" >&6
26312 # Is the header present?
26313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26315 cat >conftest.$ac_ext <<_ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26321 #include <$ac_header>
26323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26326 grep -v '^ *+' conftest.er1 >conftest.err
26328 cat conftest.err >&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } >/dev/null; then
26331 if test -s conftest.err; then
26332 ac_cpp_err=$ac_c_preproc_warn_flag
26333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26340 if test -z "$ac_cpp_err"; then
26341 ac_header_preproc=yes
26343 echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26346 ac_header_preproc=no
26348 rm -f conftest.err conftest.$ac_ext
26349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26350 echo "${ECHO_T}$ac_header_preproc" >&6
26352 # So? What about this header?
26353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26359 ac_header_preproc=yes
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26376 ## ----------------------------------- ##
26377 ## Report this to llvmbugs@cs.uiuc.edu ##
26378 ## ----------------------------------- ##
26381 sed "s/^/$as_me: WARNING: /" >&2
26384 echo "$as_me:$LINENO: checking for $ac_header" >&5
26385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 eval "$as_ac_Header=\$ac_header_preproc"
26391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26396 cat >>confdefs.h <<_ACEOF
26397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26409 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26413 echo "$as_me:$LINENO: checking for $ac_header" >&5
26414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26416 echo $ECHO_N "(cached) $ECHO_C" >&6
26418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26421 # Is the header compilable?
26422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26424 cat >conftest.$ac_ext <<_ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h. */
26430 $ac_includes_default
26431 #include <$ac_header>
26433 rm -f conftest.$ac_objext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26435 (eval $ac_compile) 2>conftest.er1
26437 grep -v '^ *+' conftest.er1 >conftest.err
26439 cat conftest.err >&5
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); } &&
26442 { ac_try='test -z "$ac_c_werror_flag"
26443 || test ! -s conftest.err'
26444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445 (eval $ac_try) 2>&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); }; } &&
26449 { ac_try='test -s conftest.$ac_objext'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 ac_header_compiler=yes
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 ac_header_compiler=no
26462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26464 echo "${ECHO_T}$ac_header_compiler" >&6
26466 # Is the header present?
26467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26469 cat >conftest.$ac_ext <<_ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h. */
26475 #include <$ac_header>
26477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } >/dev/null; then
26485 if test -s conftest.err; then
26486 ac_cpp_err=$ac_c_preproc_warn_flag
26487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26494 if test -z "$ac_cpp_err"; then
26495 ac_header_preproc=yes
26497 echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26500 ac_header_preproc=no
26502 rm -f conftest.err conftest.$ac_ext
26503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26504 echo "${ECHO_T}$ac_header_preproc" >&6
26506 # So? What about this header?
26507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26513 ac_header_preproc=yes
26516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26530 ## ----------------------------------- ##
26531 ## Report this to llvmbugs@cs.uiuc.edu ##
26532 ## ----------------------------------- ##
26535 sed "s/^/$as_me: WARNING: /" >&2
26538 echo "$as_me:$LINENO: checking for $ac_header" >&5
26539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26543 eval "$as_ac_Header=\$ac_header_preproc"
26545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26550 cat >>confdefs.h <<_ACEOF
26551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26560 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26564 echo "$as_me:$LINENO: checking for $ac_header" >&5
26565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26567 echo $ECHO_N "(cached) $ECHO_C" >&6
26569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26572 # Is the header compilable?
26573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26575 cat >conftest.$ac_ext <<_ACEOF
26578 cat confdefs.h >>conftest.$ac_ext
26579 cat >>conftest.$ac_ext <<_ACEOF
26580 /* end confdefs.h. */
26581 $ac_includes_default
26582 #include <$ac_header>
26584 rm -f conftest.$ac_objext
26585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586 (eval $ac_compile) 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } &&
26593 { ac_try='test -z "$ac_c_werror_flag"
26594 || test ! -s conftest.err'
26595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26596 (eval $ac_try) 2>&5
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); }; } &&
26600 { ac_try='test -s conftest.$ac_objext'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 ac_header_compiler=yes
26608 echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26611 ac_header_compiler=no
26613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26615 echo "${ECHO_T}$ac_header_compiler" >&6
26617 # Is the header present?
26618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26620 cat >conftest.$ac_ext <<_ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h. */
26626 #include <$ac_header>
26628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26631 grep -v '^ *+' conftest.er1 >conftest.err
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } >/dev/null; then
26636 if test -s conftest.err; then
26637 ac_cpp_err=$ac_c_preproc_warn_flag
26638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26645 if test -z "$ac_cpp_err"; then
26646 ac_header_preproc=yes
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26651 ac_header_preproc=no
26653 rm -f conftest.err conftest.$ac_ext
26654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26655 echo "${ECHO_T}$ac_header_preproc" >&6
26657 # So? What about this header?
26658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26664 ac_header_preproc=yes
26667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26681 ## ----------------------------------- ##
26682 ## Report this to llvmbugs@cs.uiuc.edu ##
26683 ## ----------------------------------- ##
26686 sed "s/^/$as_me: WARNING: /" >&2
26689 echo "$as_me:$LINENO: checking for $ac_header" >&5
26690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26694 eval "$as_ac_Header=\$ac_header_preproc"
26696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26701 cat >>confdefs.h <<_ACEOF
26702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26711 echo "$as_me:$LINENO: checking for pid_t" >&5
26712 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26713 if test "${ac_cv_type_pid_t+set}" = set; then
26714 echo $ECHO_N "(cached) $ECHO_C" >&6
26716 cat >conftest.$ac_ext <<_ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722 $ac_includes_default
26728 if (sizeof (pid_t))
26734 rm -f conftest.$ac_objext
26735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26736 (eval $ac_compile) 2>conftest.er1
26738 grep -v '^ *+' conftest.er1 >conftest.err
26740 cat conftest.err >&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } &&
26743 { ac_try='test -z "$ac_c_werror_flag"
26744 || test ! -s conftest.err'
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; } &&
26750 { ac_try='test -s conftest.$ac_objext'
26751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752 (eval $ac_try) 2>&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); }; }; then
26756 ac_cv_type_pid_t=yes
26758 echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26761 ac_cv_type_pid_t=no
26763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26765 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26766 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26767 if test $ac_cv_type_pid_t = yes; then
26771 cat >>confdefs.h <<_ACEOF
26777 echo "$as_me:$LINENO: checking for size_t" >&5
26778 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26779 if test "${ac_cv_type_size_t+set}" = set; then
26780 echo $ECHO_N "(cached) $ECHO_C" >&6
26782 cat >conftest.$ac_ext <<_ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26788 $ac_includes_default
26794 if (sizeof (size_t))
26800 rm -f conftest.$ac_objext
26801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26802 (eval $ac_compile) 2>conftest.er1
26804 grep -v '^ *+' conftest.er1 >conftest.err
26806 cat conftest.err >&5
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); } &&
26809 { ac_try='test -z "$ac_c_werror_flag"
26810 || test ! -s conftest.err'
26811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26812 (eval $ac_try) 2>&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); }; } &&
26816 { ac_try='test -s conftest.$ac_objext'
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
26822 ac_cv_type_size_t=yes
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ac_cv_type_size_t=no
26829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26831 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26832 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26833 if test $ac_cv_type_size_t = yes; then
26837 cat >>confdefs.h <<_ACEOF
26838 #define size_t unsigned
26843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26845 if test "${ac_cv_type_signal+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26848 cat >conftest.$ac_ext <<_ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h. */
26854 #include <sys/types.h>
26855 #include <signal.h>
26860 extern "C" void (*signal (int, void (*)(int)))(int);
26862 void (*signal ()) ();
26873 rm -f conftest.$ac_objext
26874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26875 (eval $ac_compile) 2>conftest.er1
26877 grep -v '^ *+' conftest.er1 >conftest.err
26879 cat conftest.err >&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); } &&
26882 { ac_try='test -z "$ac_c_werror_flag"
26883 || test ! -s conftest.err'
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; } &&
26889 { ac_try='test -s conftest.$ac_objext'
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; }; then
26895 ac_cv_type_signal=void
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 ac_cv_type_signal=int
26902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26904 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26905 echo "${ECHO_T}$ac_cv_type_signal" >&6
26907 cat >>confdefs.h <<_ACEOF
26908 #define RETSIGTYPE $ac_cv_type_signal
26912 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26913 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26914 if test "${ac_cv_struct_tm+set}" = set; then
26915 echo $ECHO_N "(cached) $ECHO_C" >&6
26917 cat >conftest.$ac_ext <<_ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h. */
26923 #include <sys/types.h>
26929 struct tm *tp; tp->tm_sec;
26934 rm -f conftest.$ac_objext
26935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26936 (eval $ac_compile) 2>conftest.er1
26938 grep -v '^ *+' conftest.er1 >conftest.err
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
26943 { ac_try='test -z "$ac_c_werror_flag"
26944 || test ! -s conftest.err'
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest.$ac_objext'
26951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952 (eval $ac_try) 2>&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); }; }; then
26956 ac_cv_struct_tm=time.h
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 ac_cv_struct_tm=sys/time.h
26963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26965 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26966 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26967 if test $ac_cv_struct_tm = sys/time.h; then
26969 cat >>confdefs.h <<\_ACEOF
26970 #define TM_IN_SYS_TIME 1
26975 echo "$as_me:$LINENO: checking for int64_t" >&5
26976 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26977 if test "${ac_cv_type_int64_t+set}" = set; then
26978 echo $ECHO_N "(cached) $ECHO_C" >&6
26980 cat >conftest.$ac_ext <<_ACEOF
26983 cat confdefs.h >>conftest.$ac_ext
26984 cat >>conftest.$ac_ext <<_ACEOF
26985 /* end confdefs.h. */
26986 $ac_includes_default
26992 if (sizeof (int64_t))
26998 rm -f conftest.$ac_objext
26999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27000 (eval $ac_compile) 2>conftest.er1
27002 grep -v '^ *+' conftest.er1 >conftest.err
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } &&
27007 { ac_try='test -z "$ac_c_werror_flag"
27008 || test ! -s conftest.err'
27009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010 (eval $ac_try) 2>&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; } &&
27014 { ac_try='test -s conftest.$ac_objext'
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27020 ac_cv_type_int64_t=yes
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27025 ac_cv_type_int64_t=no
27027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27029 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27030 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27031 if test $ac_cv_type_int64_t = yes; then
27033 cat >>confdefs.h <<_ACEOF
27034 #define HAVE_INT64_T 1
27039 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27040 echo "$as_me: error: Type int64_t required but not found" >&2;}
27041 { (exit 1); exit 1; }; }
27044 echo "$as_me:$LINENO: checking for uint64_t" >&5
27045 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27046 if test "${ac_cv_type_uint64_t+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 cat >conftest.$ac_ext <<_ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h. */
27055 $ac_includes_default
27059 if ((uint64_t *) 0)
27061 if (sizeof (uint64_t))
27067 rm -f conftest.$ac_objext
27068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27069 (eval $ac_compile) 2>conftest.er1
27071 grep -v '^ *+' conftest.er1 >conftest.err
27073 cat conftest.err >&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } &&
27076 { ac_try='test -z "$ac_c_werror_flag"
27077 || test ! -s conftest.err'
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest.$ac_objext'
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_type_uint64_t=yes
27091 echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27094 ac_cv_type_uint64_t=no
27096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27098 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27099 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27100 if test $ac_cv_type_uint64_t = yes; then
27102 cat >>confdefs.h <<_ACEOF
27103 #define HAVE_UINT64_T 1
27108 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27109 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27110 if test "${ac_cv_type_u_int64_t+set}" = set; then
27111 echo $ECHO_N "(cached) $ECHO_C" >&6
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27119 $ac_includes_default
27123 if ((u_int64_t *) 0)
27125 if (sizeof (u_int64_t))
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133 (eval $ac_compile) 2>conftest.er1
27135 grep -v '^ *+' conftest.er1 >conftest.err
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
27140 { ac_try='test -z "$ac_c_werror_flag"
27141 || test ! -s conftest.err'
27142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; } &&
27147 { ac_try='test -s conftest.$ac_objext'
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; }; then
27153 ac_cv_type_u_int64_t=yes
27155 echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27158 ac_cv_type_u_int64_t=no
27160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27162 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27163 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27164 if test $ac_cv_type_u_int64_t = yes; then
27166 cat >>confdefs.h <<_ACEOF
27167 #define HAVE_U_INT64_T 1
27172 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27173 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27174 { (exit 1); exit 1; }; }
27187 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27190 echo "$as_me:$LINENO: checking for $ac_func" >&5
27191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27192 if eval "test \"\${$as_ac_var+set}\" = set"; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
27195 cat >conftest.$ac_ext <<_ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27203 #define $ac_func innocuous_$ac_func
27205 /* System header to define __stub macros and hopefully few prototypes,
27206 which can conflict with char $ac_func (); below.
27207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208 <limits.h> exists even on freestanding compilers. */
27211 # include <limits.h>
27213 # include <assert.h>
27218 /* Override any gcc2 internal prototype to avoid an error. */
27223 /* We use char because int might match the return type of a gcc2
27224 builtin and then its argument prototype would still apply. */
27226 /* The GNU C library defines this for functions which it implements
27227 to always fail with ENOSYS. Some functions are actually named
27228 something starting with __ and the normal name is an alias. */
27229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27232 char (*f) () = $ac_func;
27241 return f != $ac_func;
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248 (eval $ac_link) 2>conftest.er1
27250 grep -v '^ *+' conftest.er1 >conftest.err
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest$ac_exeext'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 eval "$as_ac_var=yes"
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 eval "$as_ac_var=no"
27275 rm -f conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
27278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27280 if test `eval echo '${'$as_ac_var'}'` = yes; then
27281 cat >>confdefs.h <<_ACEOF
27282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27291 for ac_func in mkdtemp mkstemp mktemp
27293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27294 echo "$as_me:$LINENO: checking for $ac_func" >&5
27295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27296 if eval "test \"\${$as_ac_var+set}\" = set"; then
27297 echo $ECHO_N "(cached) $ECHO_C" >&6
27299 cat >conftest.$ac_ext <<_ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h. */
27305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27307 #define $ac_func innocuous_$ac_func
27309 /* System header to define __stub macros and hopefully few prototypes,
27310 which can conflict with char $ac_func (); below.
27311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27312 <limits.h> exists even on freestanding compilers. */
27315 # include <limits.h>
27317 # include <assert.h>
27322 /* Override any gcc2 internal prototype to avoid an error. */
27327 /* We use char because int might match the return type of a gcc2
27328 builtin and then its argument prototype would still apply. */
27330 /* The GNU C library defines this for functions which it implements
27331 to always fail with ENOSYS. Some functions are actually named
27332 something starting with __ and the normal name is an alias. */
27333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27336 char (*f) () = $ac_func;
27345 return f != $ac_func;
27350 rm -f conftest.$ac_objext conftest$ac_exeext
27351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27352 (eval $ac_link) 2>conftest.er1
27354 grep -v '^ *+' conftest.er1 >conftest.err
27356 cat conftest.err >&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } &&
27359 { ac_try='test -z "$ac_c_werror_flag"
27360 || test ! -s conftest.err'
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; } &&
27366 { ac_try='test -s conftest$ac_exeext'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 eval "$as_ac_var=yes"
27374 echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27377 eval "$as_ac_var=no"
27379 rm -f conftest.err conftest.$ac_objext \
27380 conftest$ac_exeext conftest.$ac_ext
27382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27384 if test `eval echo '${'$as_ac_var'}'` = yes; then
27385 cat >>confdefs.h <<_ACEOF
27386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27398 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27401 echo "$as_me:$LINENO: checking for $ac_func" >&5
27402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27403 if eval "test \"\${$as_ac_var+set}\" = set"; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 cat >conftest.$ac_ext <<_ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h. */
27412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27414 #define $ac_func innocuous_$ac_func
27416 /* System header to define __stub macros and hopefully few prototypes,
27417 which can conflict with char $ac_func (); below.
27418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27419 <limits.h> exists even on freestanding compilers. */
27422 # include <limits.h>
27424 # include <assert.h>
27429 /* Override any gcc2 internal prototype to avoid an error. */
27434 /* We use char because int might match the return type of a gcc2
27435 builtin and then its argument prototype would still apply. */
27437 /* The GNU C library defines this for functions which it implements
27438 to always fail with ENOSYS. Some functions are actually named
27439 something starting with __ and the normal name is an alias. */
27440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27443 char (*f) () = $ac_func;
27452 return f != $ac_func;
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459 (eval $ac_link) 2>conftest.er1
27461 grep -v '^ *+' conftest.er1 >conftest.err
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try='test -z "$ac_c_werror_flag"
27467 || test ! -s conftest.err'
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest$ac_exeext'
27474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; }; then
27479 eval "$as_ac_var=yes"
27481 echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27484 eval "$as_ac_var=no"
27486 rm -f conftest.err conftest.$ac_objext \
27487 conftest$ac_exeext conftest.$ac_ext
27489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27491 if test `eval echo '${'$as_ac_var'}'` = yes; then
27492 cat >>confdefs.h <<_ACEOF
27493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27502 for ac_func in strtoll strtoq sysconf
27504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27505 echo "$as_me:$LINENO: checking for $ac_func" >&5
27506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27507 if eval "test \"\${$as_ac_var+set}\" = set"; then
27508 echo $ECHO_N "(cached) $ECHO_C" >&6
27510 cat >conftest.$ac_ext <<_ACEOF
27513 cat confdefs.h >>conftest.$ac_ext
27514 cat >>conftest.$ac_ext <<_ACEOF
27515 /* end confdefs.h. */
27516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27518 #define $ac_func innocuous_$ac_func
27520 /* System header to define __stub macros and hopefully few prototypes,
27521 which can conflict with char $ac_func (); below.
27522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27523 <limits.h> exists even on freestanding compilers. */
27526 # include <limits.h>
27528 # include <assert.h>
27533 /* Override any gcc2 internal prototype to avoid an error. */
27538 /* We use char because int might match the return type of a gcc2
27539 builtin and then its argument prototype would still apply. */
27541 /* The GNU C library defines this for functions which it implements
27542 to always fail with ENOSYS. Some functions are actually named
27543 something starting with __ and the normal name is an alias. */
27544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27547 char (*f) () = $ac_func;
27556 return f != $ac_func;
27561 rm -f conftest.$ac_objext conftest$ac_exeext
27562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27563 (eval $ac_link) 2>conftest.er1
27565 grep -v '^ *+' conftest.er1 >conftest.err
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag"
27571 || test ! -s conftest.err'
27572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573 (eval $ac_try) 2>&5
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); }; } &&
27577 { ac_try='test -s conftest$ac_exeext'
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; }; then
27583 eval "$as_ac_var=yes"
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27588 eval "$as_ac_var=no"
27590 rm -f conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
27593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27595 if test `eval echo '${'$as_ac_var'}'` = yes; then
27596 cat >>confdefs.h <<_ACEOF
27597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27603 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27604 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27605 if test "${llvm_cv_c_printf_a+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27609 ac_cpp='$CPP $CPPFLAGS'
27610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27614 if test "$cross_compiling" = yes; then
27615 llvmac_cv_c_printf_a=no
27617 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27626 #include <stdlib.h>
27632 volatile double A, B;
27636 sprintf(Buffer, "%a", A);
27640 if (A != 0x1.999999999999ap-4)
27647 rm -f conftest$ac_exeext
27648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27649 (eval $ac_link) 2>&5
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
27658 llvm_cv_c_printf_a=yes
27660 echo "$as_me: program exited with status $ac_status" >&5
27661 echo "$as_me: failed program was:" >&5
27662 sed 's/^/| /' conftest.$ac_ext >&5
27664 ( exit $ac_status )
27665 llvmac_cv_c_printf_a=no
27667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27670 ac_cpp='$CPP $CPPFLAGS'
27671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27676 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27677 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27678 if test "$llvm_cv_c_printf_a" = "yes"; then
27680 cat >>confdefs.h <<\_ACEOF
27681 #define HAVE_PRINTF_A 1
27686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27687 # for constant arguments. Useless!
27688 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27689 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27690 if test "${ac_cv_working_alloca_h+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27693 cat >conftest.$ac_ext <<_ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27699 #include <alloca.h>
27703 char *p = (char *) alloca (2 * sizeof (int));
27708 rm -f conftest.$ac_objext conftest$ac_exeext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27710 (eval $ac_link) 2>conftest.er1
27712 grep -v '^ *+' conftest.er1 >conftest.err
27714 cat conftest.err >&5
27715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716 (exit $ac_status); } &&
27717 { ac_try='test -z "$ac_c_werror_flag"
27718 || test ! -s conftest.err'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; } &&
27724 { ac_try='test -s conftest$ac_exeext'
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 ac_cv_working_alloca_h=yes
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27735 ac_cv_working_alloca_h=no
27737 rm -f conftest.err conftest.$ac_objext \
27738 conftest$ac_exeext conftest.$ac_ext
27740 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27741 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27742 if test $ac_cv_working_alloca_h = yes; then
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_ALLOCA_H 1
27750 echo "$as_me:$LINENO: checking for alloca" >&5
27751 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27752 if test "${ac_cv_func_alloca_works+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27762 # define alloca __builtin_alloca
27765 # include <malloc.h>
27766 # define alloca _alloca
27769 # include <alloca.h>
27774 # ifndef alloca /* predefined by HP cc +Olibcalls */
27785 char *p = (char *) alloca (1);
27790 rm -f conftest.$ac_objext conftest$ac_exeext
27791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27792 (eval $ac_link) 2>conftest.er1
27794 grep -v '^ *+' conftest.er1 >conftest.err
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } &&
27799 { ac_try='test -z "$ac_c_werror_flag"
27800 || test ! -s conftest.err'
27801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802 (eval $ac_try) 2>&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try='test -s conftest$ac_exeext'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 ac_cv_func_alloca_works=yes
27814 echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27817 ac_cv_func_alloca_works=no
27819 rm -f conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27822 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27823 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27825 if test $ac_cv_func_alloca_works = yes; then
27827 cat >>confdefs.h <<\_ACEOF
27828 #define HAVE_ALLOCA 1
27832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27833 # that cause trouble. Some versions do not even contain alloca or
27834 # contain a buggy version. If you still want to use their alloca,
27835 # use ar to extract alloca.o from them instead of compiling alloca.c.
27837 ALLOCA=alloca.$ac_objext
27839 cat >>confdefs.h <<\_ACEOF
27844 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27845 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27846 if test "${ac_cv_os_cray+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27849 cat >conftest.$ac_ext <<_ACEOF
27852 cat confdefs.h >>conftest.$ac_ext
27853 cat >>conftest.$ac_ext <<_ACEOF
27854 /* end confdefs.h. */
27855 #if defined(CRAY) && ! defined(CRAY2)
27862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27863 $EGREP "webecray" >/dev/null 2>&1; then
27871 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27872 echo "${ECHO_T}$ac_cv_os_cray" >&6
27873 if test $ac_cv_os_cray = yes; then
27874 for ac_func in _getb67 GETB67 getb67; do
27875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27876 echo "$as_me:$LINENO: checking for $ac_func" >&5
27877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27878 if eval "test \"\${$as_ac_var+set}\" = set"; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27881 cat >conftest.$ac_ext <<_ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27889 #define $ac_func innocuous_$ac_func
27891 /* System header to define __stub macros and hopefully few prototypes,
27892 which can conflict with char $ac_func (); below.
27893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894 <limits.h> exists even on freestanding compilers. */
27897 # include <limits.h>
27899 # include <assert.h>
27904 /* Override any gcc2 internal prototype to avoid an error. */
27909 /* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27912 /* The GNU C library defines this for functions which it implements
27913 to always fail with ENOSYS. Some functions are actually named
27914 something starting with __ and the normal name is an alias. */
27915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27918 char (*f) () = $ac_func;
27927 return f != $ac_func;
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
27936 grep -v '^ *+' conftest.er1 >conftest.err
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 eval "$as_ac_var=yes"
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27959 eval "$as_ac_var=no"
27961 rm -f conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
27964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27966 if test `eval echo '${'$as_ac_var'}'` = yes; then
27968 cat >>confdefs.h <<_ACEOF
27969 #define CRAY_STACKSEG_END $ac_func
27978 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27979 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27980 if test "${ac_cv_c_stack_direction+set}" = set; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27983 if test "$cross_compiling" = yes; then
27984 ac_cv_c_stack_direction=0
27986 cat >conftest.$ac_ext <<_ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h. */
27993 find_stack_direction ()
27995 static char *addr = 0;
28000 return find_stack_direction ();
28003 return (&dummy > addr) ? 1 : -1;
28009 exit (find_stack_direction () < 0);
28012 rm -f conftest$ac_exeext
28013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28014 (eval $ac_link) 2>&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019 (eval $ac_try) 2>&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); }; }; then
28023 ac_cv_c_stack_direction=1
28025 echo "$as_me: program exited with status $ac_status" >&5
28026 echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28029 ( exit $ac_status )
28030 ac_cv_c_stack_direction=-1
28032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28035 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28036 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28038 cat >>confdefs.h <<_ACEOF
28039 #define STACK_DIRECTION $ac_cv_c_stack_direction
28046 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28047 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28048 if test "${ac_cv_func_rand48+set}" = set; then
28049 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 ac_cpp='$CXXCPP $CPPFLAGS'
28053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28057 cat >conftest.$ac_ext <<_ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28063 #include <stdlib.h>
28067 srand48(0);lrand48();drand48();
28072 rm -f conftest.$ac_objext
28073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074 (eval $ac_compile) 2>conftest.er1
28076 grep -v '^ *+' conftest.er1 >conftest.err
28078 cat conftest.err >&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } &&
28081 { ac_try='test -z "$ac_cxx_werror_flag"
28082 || test ! -s conftest.err'
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest.$ac_objext'
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_func_rand48=yes
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28099 ac_cv_func_rand48=no
28101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28103 ac_cpp='$CPP $CPPFLAGS'
28104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28109 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28110 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28112 if test "$ac_cv_func_rand48" = "yes" ; then
28114 cat >>confdefs.h <<\_ACEOF
28115 #define HAVE_RAND48 1
28121 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28122 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28123 if test "${ac_cv_cxx_namespaces+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28127 ac_cpp='$CXXCPP $CPPFLAGS'
28128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28138 namespace Outer { namespace Inner { int i = 0; }}
28142 using namespace Outer::Inner; return i;
28147 rm -f conftest.$ac_objext
28148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28149 (eval $ac_compile) 2>conftest.er1
28151 grep -v '^ *+' conftest.er1 >conftest.err
28153 cat conftest.err >&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); } &&
28156 { ac_try='test -z "$ac_cxx_werror_flag"
28157 || test ! -s conftest.err'
28158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159 (eval $ac_try) 2>&5
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; } &&
28163 { ac_try='test -s conftest.$ac_objext'
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; }; then
28169 ac_cv_cxx_namespaces=yes
28171 echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28174 ac_cv_cxx_namespaces=no
28176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28178 ac_cpp='$CPP $CPPFLAGS'
28179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28185 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28186 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28187 if test "$ac_cv_cxx_namespaces" = yes; then
28189 cat >>confdefs.h <<\_ACEOF
28190 #define HAVE_NAMESPACES
28195 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28196 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28197 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28202 ac_cpp='$CXXCPP $CPPFLAGS'
28203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28207 cat >conftest.$ac_ext <<_ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h. */
28213 #include <ext/hash_map>
28214 #ifdef HAVE_NAMESPACES
28215 using namespace std;
28220 hash_map<int, int> t;
28225 rm -f conftest.$ac_objext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28227 (eval $ac_compile) 2>conftest.er1
28229 grep -v '^ *+' conftest.er1 >conftest.err
28231 cat conftest.err >&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
28234 { ac_try='test -z "$ac_cxx_werror_flag"
28235 || test ! -s conftest.err'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try='test -s conftest.$ac_objext'
28242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; }; then
28247 ac_cv_cxx_have_std_ext_hash_map=yes
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 ac_cv_cxx_have_std_ext_hash_map=no
28254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28256 ac_cpp='$CPP $CPPFLAGS'
28257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28262 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28263 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28264 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28267 cat >>confdefs.h <<\_ACEOF
28268 #define HAVE_STD_EXT_HASH_MAP 1
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_STD_EXT_HASH_MAP 0
28279 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28280 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28281 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28286 ac_cpp='$CXXCPP $CPPFLAGS'
28287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28297 #include <ext/hash_map>
28298 #ifdef HAVE_NAMESPACES
28299 using namespace __gnu_cxx;
28304 hash_map<int,int> t;
28309 rm -f conftest.$ac_objext
28310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28311 (eval $ac_compile) 2>conftest.er1
28313 grep -v '^ *+' conftest.er1 >conftest.err
28315 cat conftest.err >&5
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } &&
28318 { ac_try='test -z "$ac_cxx_werror_flag"
28319 || test ! -s conftest.err'
28320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 (eval $ac_try) 2>&5
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); }; } &&
28325 { ac_try='test -s conftest.$ac_objext'
28326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327 (eval $ac_try) 2>&5
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); }; }; then
28331 ac_cv_cxx_have_gnu_ext_hash_map=yes
28333 echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28336 ac_cv_cxx_have_gnu_ext_hash_map=no
28338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28340 ac_cpp='$CPP $CPPFLAGS'
28341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28346 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28347 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28348 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28351 cat >>confdefs.h <<\_ACEOF
28352 #define HAVE_GNU_EXT_HASH_MAP 1
28357 cat >>confdefs.h <<\_ACEOF
28358 #define HAVE_GNU_EXT_HASH_MAP 0
28363 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28364 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28365 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28366 echo $ECHO_N "(cached) $ECHO_C" >&6
28370 ac_cpp='$CXXCPP $CPPFLAGS'
28371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28381 #include <hash_map>
28385 hash_map<int,int> t;
28390 rm -f conftest.$ac_objext
28391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28392 (eval $ac_compile) 2>conftest.er1
28394 grep -v '^ *+' conftest.er1 >conftest.err
28396 cat conftest.err >&5
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); } &&
28399 { ac_try='test -z "$ac_cxx_werror_flag"
28400 || test ! -s conftest.err'
28401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402 (eval $ac_try) 2>&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); }; } &&
28406 { ac_try='test -s conftest.$ac_objext'
28407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408 (eval $ac_try) 2>&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; }; then
28412 ac_cv_cxx_have_global_hash_map=yes
28414 echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28417 ac_cv_cxx_have_global_hash_map=no
28419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28421 ac_cpp='$CPP $CPPFLAGS'
28422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28428 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28429 if test "$ac_cv_cxx_have_global_hash_map" = yes
28432 cat >>confdefs.h <<\_ACEOF
28433 #define HAVE_GLOBAL_HASH_MAP 1
28438 cat >>confdefs.h <<\_ACEOF
28439 #define HAVE_GLOBAL_HASH_MAP 0
28444 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28445 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28446 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28447 echo $ECHO_N "(cached) $ECHO_C" >&6
28451 ac_cpp='$CXXCPP $CPPFLAGS'
28452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28456 cat >conftest.$ac_ext <<_ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h. */
28462 #include <ext/hash_set>
28463 #ifdef HAVE_NAMESPACES
28464 using namespace std;
28474 rm -f conftest.$ac_objext
28475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28476 (eval $ac_compile) 2>conftest.er1
28478 grep -v '^ *+' conftest.er1 >conftest.err
28480 cat conftest.err >&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } &&
28483 { ac_try='test -z "$ac_cxx_werror_flag"
28484 || test ! -s conftest.err'
28485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486 (eval $ac_try) 2>&5
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; } &&
28490 { ac_try='test -s conftest.$ac_objext'
28491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28492 (eval $ac_try) 2>&5
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); }; }; then
28496 ac_cv_cxx_have_std_ext_hash_set=yes
28498 echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28501 ac_cv_cxx_have_std_ext_hash_set=no
28503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28505 ac_cpp='$CPP $CPPFLAGS'
28506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28511 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28512 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28513 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28516 cat >>confdefs.h <<\_ACEOF
28517 #define HAVE_STD_EXT_HASH_SET 1
28522 cat >>confdefs.h <<\_ACEOF
28523 #define HAVE_STD_EXT_HASH_SET 0
28528 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28529 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28530 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28535 ac_cpp='$CXXCPP $CPPFLAGS'
28536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28540 cat >conftest.$ac_ext <<_ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h. */
28546 #include <ext/hash_set>
28547 #ifdef HAVE_NAMESPACES
28548 using namespace __gnu_cxx;
28558 rm -f conftest.$ac_objext
28559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28560 (eval $ac_compile) 2>conftest.er1
28562 grep -v '^ *+' conftest.er1 >conftest.err
28564 cat conftest.err >&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); } &&
28567 { ac_try='test -z "$ac_cxx_werror_flag"
28568 || test ! -s conftest.err'
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; } &&
28574 { ac_try='test -s conftest.$ac_objext'
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; }; then
28580 ac_cv_cxx_have_gnu_ext_hash_set=yes
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28585 ac_cv_cxx_have_gnu_ext_hash_set=no
28587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28589 ac_cpp='$CPP $CPPFLAGS'
28590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28595 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28596 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28597 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28600 cat >>confdefs.h <<\_ACEOF
28601 #define HAVE_GNU_EXT_HASH_SET 1
28606 cat >>confdefs.h <<\_ACEOF
28607 #define HAVE_GNU_EXT_HASH_SET 0
28612 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28613 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28614 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28615 echo $ECHO_N "(cached) $ECHO_C" >&6
28619 ac_cpp='$CXXCPP $CPPFLAGS'
28620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28624 cat >conftest.$ac_ext <<_ACEOF
28627 cat confdefs.h >>conftest.$ac_ext
28628 cat >>conftest.$ac_ext <<_ACEOF
28629 /* end confdefs.h. */
28630 #include <hash_set>
28634 hash_set<int> t; return 0;
28639 rm -f conftest.$ac_objext
28640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28641 (eval $ac_compile) 2>conftest.er1
28643 grep -v '^ *+' conftest.er1 >conftest.err
28645 cat conftest.err >&5
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } &&
28648 { ac_try='test -z "$ac_cxx_werror_flag"
28649 || test ! -s conftest.err'
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; } &&
28655 { ac_try='test -s conftest.$ac_objext'
28656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657 (eval $ac_try) 2>&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; }; then
28661 ac_cv_cxx_have_global_hash_set=yes
28663 echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28666 ac_cv_cxx_have_global_hash_set=no
28668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28670 ac_cpp='$CPP $CPPFLAGS'
28671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28676 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28677 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28678 if test "$ac_cv_cxx_have_global_hash_set" = yes
28681 cat >>confdefs.h <<\_ACEOF
28682 #define HAVE_GLOBAL_HASH_SET 1
28687 cat >>confdefs.h <<\_ACEOF
28688 #define HAVE_GLOBAL_HASH_SET 0
28693 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28694 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28695 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28696 echo $ECHO_N "(cached) $ECHO_C" >&6
28700 ac_cpp='$CXXCPP $CPPFLAGS'
28701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28711 #include <iterator>
28712 #ifdef HAVE_NAMESPACES
28713 using namespace std;
28718 iterator<int,int,int> t; return 0;
28723 rm -f conftest.$ac_objext
28724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28725 (eval $ac_compile) 2>conftest.er1
28727 grep -v '^ *+' conftest.er1 >conftest.err
28729 cat conftest.err >&5
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); } &&
28732 { ac_try='test -z "$ac_cxx_werror_flag"
28733 || test ! -s conftest.err'
28734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28735 (eval $ac_try) 2>&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); }; } &&
28739 { ac_try='test -s conftest.$ac_objext'
28740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741 (eval $ac_try) 2>&5
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; }; then
28745 ac_cv_cxx_have_std_iterator=yes
28747 echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28750 ac_cv_cxx_have_std_iterator=no
28752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28754 ac_cpp='$CPP $CPPFLAGS'
28755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28761 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28762 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28763 if test "$ac_cv_cxx_have_std_iterator" = yes
28766 cat >>confdefs.h <<\_ACEOF
28767 #define HAVE_STD_ITERATOR 1
28772 cat >>confdefs.h <<\_ACEOF
28773 #define HAVE_STD_ITERATOR 0
28778 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28779 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28780 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28785 ac_cpp='$CXXCPP $CPPFLAGS'
28786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28790 cat >conftest.$ac_ext <<_ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28796 #include <iterator>
28797 #ifdef HAVE_NAMESPACES
28798 using namespace std;
28803 bidirectional_iterator<int,int> t; return 0;
28808 rm -f conftest.$ac_objext
28809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28810 (eval $ac_compile) 2>conftest.er1
28812 grep -v '^ *+' conftest.er1 >conftest.err
28814 cat conftest.err >&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } &&
28817 { ac_try='test -z "$ac_cxx_werror_flag"
28818 || test ! -s conftest.err'
28819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820 (eval $ac_try) 2>&5
28822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823 (exit $ac_status); }; } &&
28824 { ac_try='test -s conftest.$ac_objext'
28825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826 (eval $ac_try) 2>&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); }; }; then
28830 ac_cv_cxx_have_bi_iterator=yes
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28835 ac_cv_cxx_have_bi_iterator=no
28837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28839 ac_cpp='$CPP $CPPFLAGS'
28840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28846 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28847 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28848 if test "$ac_cv_cxx_have_bi_iterator" = yes
28851 cat >>confdefs.h <<\_ACEOF
28852 #define HAVE_BI_ITERATOR 1
28857 cat >>confdefs.h <<\_ACEOF
28858 #define HAVE_BI_ITERATOR 0
28863 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28864 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28865 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28866 echo $ECHO_N "(cached) $ECHO_C" >&6
28870 ac_cpp='$CXXCPP $CPPFLAGS'
28871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28875 cat >conftest.$ac_ext <<_ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h. */
28881 #include <iterator>
28882 #ifdef HAVE_NAMESPACES
28883 using namespace std;
28888 forward_iterator<int,int> t; return 0;
28893 rm -f conftest.$ac_objext
28894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28895 (eval $ac_compile) 2>conftest.er1
28897 grep -v '^ *+' conftest.er1 >conftest.err
28899 cat conftest.err >&5
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } &&
28902 { ac_try='test -z "$ac_cxx_werror_flag"
28903 || test ! -s conftest.err'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; } &&
28909 { ac_try='test -s conftest.$ac_objext'
28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 ac_cv_cxx_have_fwd_iterator=yes
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28920 ac_cv_cxx_have_fwd_iterator=no
28922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28924 ac_cpp='$CPP $CPPFLAGS'
28925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28931 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28932 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28933 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28936 cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_FWD_ITERATOR 1
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_FWD_ITERATOR 0
28949 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28950 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28951 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
28955 ac_cpp='$CXXCPP $CPPFLAGS'
28956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28975 rm -f conftest.$ac_objext
28976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28977 (eval $ac_compile) 2>conftest.er1
28979 grep -v '^ *+' conftest.er1 >conftest.err
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } &&
28984 { ac_try='test -z "$ac_cxx_werror_flag"
28985 || test ! -s conftest.err'
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest.$ac_objext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_func_isnan_in_math_h=yes
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 ac_cv_func_isnan_in_math_h=no
29004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29006 ac_cpp='$CPP $CPPFLAGS'
29007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29012 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29013 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29016 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29018 cat >>confdefs.h <<\_ACEOF
29019 #define HAVE_ISNAN_IN_MATH_H 1
29024 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29025 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29026 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 ac_cpp='$CXXCPP $CPPFLAGS'
29031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29035 cat >conftest.$ac_ext <<_ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h. */
29050 rm -f conftest.$ac_objext
29051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29052 (eval $ac_compile) 2>conftest.er1
29054 grep -v '^ *+' conftest.er1 >conftest.err
29056 cat conftest.err >&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
29059 { ac_try='test -z "$ac_cxx_werror_flag"
29060 || test ! -s conftest.err'
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; } &&
29066 { ac_try='test -s conftest.$ac_objext'
29067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068 (eval $ac_try) 2>&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; }; then
29072 ac_cv_func_isnan_in_cmath=yes
29074 echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29077 ac_cv_func_isnan_in_cmath=no
29079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29081 ac_cpp='$CPP $CPPFLAGS'
29082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29087 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29088 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29090 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29092 cat >>confdefs.h <<\_ACEOF
29093 #define HAVE_ISNAN_IN_CMATH 1
29098 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29099 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29100 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29104 ac_cpp='$CXXCPP $CPPFLAGS'
29105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29109 cat >conftest.$ac_ext <<_ACEOF
29112 cat confdefs.h >>conftest.$ac_ext
29113 cat >>conftest.$ac_ext <<_ACEOF
29114 /* end confdefs.h. */
29119 float f; std::isnan(f);
29124 rm -f conftest.$ac_objext
29125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29126 (eval $ac_compile) 2>conftest.er1
29128 grep -v '^ *+' conftest.er1 >conftest.err
29130 cat conftest.err >&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } &&
29133 { ac_try='test -z "$ac_cxx_werror_flag"
29134 || test ! -s conftest.err'
29135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136 (eval $ac_try) 2>&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); }; } &&
29140 { ac_try='test -s conftest.$ac_objext'
29141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29142 (eval $ac_try) 2>&5
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); }; }; then
29146 ac_cv_func_std_isnan_in_cmath=yes
29148 echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29151 ac_cv_func_std_isnan_in_cmath=no
29153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29155 ac_cpp='$CPP $CPPFLAGS'
29156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29161 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29162 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29164 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29166 cat >>confdefs.h <<\_ACEOF
29167 #define HAVE_STD_ISNAN_IN_CMATH 1
29173 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29174 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29175 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 ac_cpp='$CXXCPP $CPPFLAGS'
29180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29184 cat >conftest.$ac_ext <<_ACEOF
29187 cat confdefs.h >>conftest.$ac_ext
29188 cat >>conftest.$ac_ext <<_ACEOF
29189 /* end confdefs.h. */
29199 rm -f conftest.$ac_objext
29200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29201 (eval $ac_compile) 2>conftest.er1
29203 grep -v '^ *+' conftest.er1 >conftest.err
29205 cat conftest.err >&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
29208 { ac_try='test -z "$ac_cxx_werror_flag"
29209 || test ! -s conftest.err'
29210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; } &&
29215 { ac_try='test -s conftest.$ac_objext'
29216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
29221 ac_cv_func_isinf_in_math_h=yes
29223 echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29226 ac_cv_func_isinf_in_math_h=no
29228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29230 ac_cpp='$CPP $CPPFLAGS'
29231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29236 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29237 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29239 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29241 cat >>confdefs.h <<\_ACEOF
29242 #define HAVE_ISINF_IN_MATH_H 1
29247 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29248 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29249 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29250 echo $ECHO_N "(cached) $ECHO_C" >&6
29253 ac_cpp='$CXXCPP $CPPFLAGS'
29254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29258 cat >conftest.$ac_ext <<_ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h. */
29273 rm -f conftest.$ac_objext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29275 (eval $ac_compile) 2>conftest.er1
29277 grep -v '^ *+' conftest.er1 >conftest.err
29279 cat conftest.err >&5
29280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281 (exit $ac_status); } &&
29282 { ac_try='test -z "$ac_cxx_werror_flag"
29283 || test ! -s conftest.err'
29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest.$ac_objext'
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
29295 ac_cv_func_isinf_in_cmath=yes
29297 echo "$as_me: failed program was:" >&5
29298 sed 's/^/| /' conftest.$ac_ext >&5
29300 ac_cv_func_isinf_in_cmath=no
29302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29304 ac_cpp='$CPP $CPPFLAGS'
29305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29310 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29311 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29313 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29315 cat >>confdefs.h <<\_ACEOF
29316 #define HAVE_ISINF_IN_CMATH 1
29321 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29322 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29323 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29327 ac_cpp='$CXXCPP $CPPFLAGS'
29328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29332 cat >conftest.$ac_ext <<_ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h. */
29342 float f; std::isinf(f)}
29347 rm -f conftest.$ac_objext
29348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29349 (eval $ac_compile) 2>conftest.er1
29351 grep -v '^ *+' conftest.er1 >conftest.err
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } &&
29356 { ac_try='test -z "$ac_cxx_werror_flag"
29357 || test ! -s conftest.err'
29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; } &&
29363 { ac_try='test -s conftest.$ac_objext'
29364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365 (eval $ac_try) 2>&5
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
29369 ac_cv_func_std_isinf_in_cmath=yes
29371 echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29374 ac_cv_func_std_isinf_in_cmath=no
29376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29378 ac_cpp='$CPP $CPPFLAGS'
29379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29384 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29385 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29387 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_STD_ISINF_IN_CMATH 1
29395 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29396 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29397 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29401 ac_cpp='$CXXCPP $CPPFLAGS'
29402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29406 cat >conftest.$ac_ext <<_ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h. */
29412 #include <ieeefp.h>
29416 float f; finite(f);
29421 rm -f conftest.$ac_objext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29423 (eval $ac_compile) 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_cxx_werror_flag"
29431 || test ! -s conftest.err'
29432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433 (eval $ac_try) 2>&5
29435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436 (exit $ac_status); }; } &&
29437 { ac_try='test -s conftest.$ac_objext'
29438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439 (eval $ac_try) 2>&5
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); }; }; then
29443 ac_cv_func_finite_in_ieeefp_h=yes
29445 echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29448 ac_cv_func_finite_in_ieeefp_h=no
29450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29452 ac_cpp='$CPP $CPPFLAGS'
29453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29458 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29459 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29461 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29463 cat >>confdefs.h <<\_ACEOF
29464 #define HAVE_FINITE_IN_IEEEFP_H 1
29473 for ac_header in stdlib.h unistd.h
29475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29477 echo "$as_me:$LINENO: checking for $ac_header" >&5
29478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29485 # Is the header compilable?
29486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29488 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29494 $ac_includes_default
29495 #include <$ac_header>
29497 rm -f conftest.$ac_objext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29499 (eval $ac_compile) 2>conftest.er1
29501 grep -v '^ *+' conftest.er1 >conftest.err
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); } &&
29506 { ac_try='test -z "$ac_c_werror_flag"
29507 || test ! -s conftest.err'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
29514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515 (eval $ac_try) 2>&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518 (exit $ac_status); }; }; then
29519 ac_header_compiler=yes
29521 echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29524 ac_header_compiler=no
29526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528 echo "${ECHO_T}$ac_header_compiler" >&6
29530 # Is the header present?
29531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29533 cat >conftest.$ac_ext <<_ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h. */
29539 #include <$ac_header>
29541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29544 grep -v '^ *+' conftest.er1 >conftest.err
29546 cat conftest.err >&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } >/dev/null; then
29549 if test -s conftest.err; then
29550 ac_cpp_err=$ac_c_preproc_warn_flag
29551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29558 if test -z "$ac_cpp_err"; then
29559 ac_header_preproc=yes
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 ac_header_preproc=no
29566 rm -f conftest.err conftest.$ac_ext
29567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568 echo "${ECHO_T}$ac_header_preproc" >&6
29570 # So? What about this header?
29571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29577 ac_header_preproc=yes
29580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29594 ## ----------------------------------- ##
29595 ## Report this to llvmbugs@cs.uiuc.edu ##
29596 ## ----------------------------------- ##
29599 sed "s/^/$as_me: WARNING: /" >&2
29602 echo "$as_me:$LINENO: checking for $ac_header" >&5
29603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29605 echo $ECHO_N "(cached) $ECHO_C" >&6
29607 eval "$as_ac_Header=\$ac_header_preproc"
29609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29614 cat >>confdefs.h <<_ACEOF
29615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29623 for ac_func in getpagesize
29625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29626 echo "$as_me:$LINENO: checking for $ac_func" >&5
29627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29628 if eval "test \"\${$as_ac_var+set}\" = set"; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
29631 cat >conftest.$ac_ext <<_ACEOF
29634 cat confdefs.h >>conftest.$ac_ext
29635 cat >>conftest.$ac_ext <<_ACEOF
29636 /* end confdefs.h. */
29637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29639 #define $ac_func innocuous_$ac_func
29641 /* System header to define __stub macros and hopefully few prototypes,
29642 which can conflict with char $ac_func (); below.
29643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29644 <limits.h> exists even on freestanding compilers. */
29647 # include <limits.h>
29649 # include <assert.h>
29654 /* Override any gcc2 internal prototype to avoid an error. */
29659 /* We use char because int might match the return type of a gcc2
29660 builtin and then its argument prototype would still apply. */
29662 /* The GNU C library defines this for functions which it implements
29663 to always fail with ENOSYS. Some functions are actually named
29664 something starting with __ and the normal name is an alias. */
29665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29668 char (*f) () = $ac_func;
29677 return f != $ac_func;
29682 rm -f conftest.$ac_objext conftest$ac_exeext
29683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29684 (eval $ac_link) 2>conftest.er1
29686 grep -v '^ *+' conftest.er1 >conftest.err
29688 cat conftest.err >&5
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); } &&
29691 { ac_try='test -z "$ac_c_werror_flag"
29692 || test ! -s conftest.err'
29693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694 (eval $ac_try) 2>&5
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); }; } &&
29698 { ac_try='test -s conftest$ac_exeext'
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29704 eval "$as_ac_var=yes"
29706 echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29709 eval "$as_ac_var=no"
29711 rm -f conftest.err conftest.$ac_objext \
29712 conftest$ac_exeext conftest.$ac_ext
29714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29716 if test `eval echo '${'$as_ac_var'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29724 echo "$as_me:$LINENO: checking for working mmap" >&5
29725 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29726 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 if test "$cross_compiling" = yes; then
29730 ac_cv_func_mmap_fixed_mapped=no
29732 cat >conftest.$ac_ext <<_ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h. */
29738 $ac_includes_default
29739 /* malloc might have been renamed as rpl_malloc. */
29742 /* Thanks to Mike Haertel and Jim Avera for this test.
29743 Here is a matrix of mmap possibilities:
29744 mmap private not fixed
29745 mmap private fixed at somewhere currently unmapped
29746 mmap private fixed at somewhere already mapped
29747 mmap shared not fixed
29748 mmap shared fixed at somewhere currently unmapped
29749 mmap shared fixed at somewhere already mapped
29750 For private mappings, we should verify that changes cannot be read()
29751 back from the file, nor mmap's back from the file at a different
29752 address. (There have been systems where private was not correctly
29753 implemented like the infamous i386 svr4.0, and systems where the
29754 VM page cache was not coherent with the file system buffer cache
29755 like early versions of FreeBSD and possibly contemporary NetBSD.)
29756 For shared mappings, we should conversely verify that changes get
29757 propagated back to all the places they're supposed to be.
29759 Grep wants private fixed already mapped.
29760 The main things grep needs to know about mmap are:
29761 * does it exist and is it safe to write into the mmap'd area
29762 * how to use it (BSD variants) */
29765 #include <sys/mman.h>
29767 #if !STDC_HEADERS && !HAVE_STDLIB_H
29771 /* This mess was copied from the GNU getpagesize.h. */
29772 #if !HAVE_GETPAGESIZE
29773 /* Assume that all systems that can run configure have sys/param.h. */
29774 # if !HAVE_SYS_PARAM_H
29775 # define HAVE_SYS_PARAM_H 1
29778 # ifdef _SC_PAGESIZE
29779 # define getpagesize() sysconf(_SC_PAGESIZE)
29780 # else /* no _SC_PAGESIZE */
29781 # if HAVE_SYS_PARAM_H
29782 # include <sys/param.h>
29783 # ifdef EXEC_PAGESIZE
29784 # define getpagesize() EXEC_PAGESIZE
29785 # else /* no EXEC_PAGESIZE */
29787 # define getpagesize() NBPG * CLSIZE
29790 # endif /* no CLSIZE */
29791 # else /* no NBPG */
29793 # define getpagesize() NBPC
29794 # else /* no NBPC */
29796 # define getpagesize() PAGESIZE
29797 # endif /* PAGESIZE */
29798 # endif /* no NBPC */
29799 # endif /* no NBPG */
29800 # endif /* no EXEC_PAGESIZE */
29801 # else /* no HAVE_SYS_PARAM_H */
29802 # define getpagesize() 8192 /* punt totally */
29803 # endif /* no HAVE_SYS_PARAM_H */
29804 # endif /* no _SC_PAGESIZE */
29806 #endif /* no HAVE_GETPAGESIZE */
29811 char *data, *data2, *data3;
29815 pagesize = getpagesize ();
29817 /* First, make a file with some known garbage in it. */
29818 data = (char *) malloc (pagesize);
29821 for (i = 0; i < pagesize; ++i)
29822 *(data + i) = rand ();
29824 fd = creat ("conftest.mmap", 0600);
29827 if (write (fd, data, pagesize) != pagesize)
29831 /* Next, try to mmap the file at a fixed address which already has
29832 something else allocated at it. If we can, also make sure that
29833 we see the same garbage. */
29834 fd = open ("conftest.mmap", O_RDWR);
29837 data2 = (char *) malloc (2 * pagesize);
29840 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29841 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29842 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29844 for (i = 0; i < pagesize; ++i)
29845 if (*(data + i) != *(data2 + i))
29848 /* Finally, make sure that changes to the mapped area do not
29849 percolate back to the file as seen by read(). (This is a bug on
29850 some variants of i386 svr4.0.) */
29851 for (i = 0; i < pagesize; ++i)
29852 *(data2 + i) = *(data2 + i) + 1;
29853 data3 = (char *) malloc (pagesize);
29856 if (read (fd, data3, pagesize) != pagesize)
29858 for (i = 0; i < pagesize; ++i)
29859 if (*(data + i) != *(data3 + i))
29865 rm -f conftest$ac_exeext
29866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29867 (eval $ac_link) 2>&5
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; }; then
29876 ac_cv_func_mmap_fixed_mapped=yes
29878 echo "$as_me: program exited with status $ac_status" >&5
29879 echo "$as_me: failed program was:" >&5
29880 sed 's/^/| /' conftest.$ac_ext >&5
29882 ( exit $ac_status )
29883 ac_cv_func_mmap_fixed_mapped=no
29885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29888 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29889 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29892 cat >>confdefs.h <<\_ACEOF
29893 #define HAVE_MMAP 1
29897 rm -f conftest.mmap
29899 echo "$as_me:$LINENO: checking for mmap of files" >&5
29900 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29901 if test "${ac_cv_func_mmap_file+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29910 if test "$cross_compiling" = yes; then
29911 ac_cv_func_mmap_file=no
29913 cat >conftest.$ac_ext <<_ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29921 #include <sys/types.h>
29922 #include <sys/mman.h>
29930 fd = creat ("foo",0777);
29931 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29933 return (fd != (int) MAP_FAILED);
29938 rm -f conftest$ac_exeext
29939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29940 (eval $ac_link) 2>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 (eval $ac_try) 2>&5
29947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29949 ac_cv_func_mmap_file=yes
29951 echo "$as_me: program exited with status $ac_status" >&5
29952 echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29955 ( exit $ac_status )
29956 ac_cv_func_mmap_file=no
29958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29961 ac_cpp='$CPP $CPPFLAGS'
29962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29968 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29969 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29970 if test "$ac_cv_func_mmap_file" = yes; then
29972 cat >>confdefs.h <<\_ACEOF
29973 #define HAVE_MMAP_FILE
29980 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
29981 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
29982 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29985 if test "$llvm_cv_os_type" = "Interix" ; then
29986 ac_cv_need_dev_zero_for_mmap=yes
29988 ac_cv_need_dev_zero_for_mmap=no
29992 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
29993 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
29994 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
29996 cat >>confdefs.h <<\_ACEOF
29997 #define NEED_DEV_ZERO_FOR_MMAP 1
30001 echo "$as_me:$LINENO: checking for mprotect" >&5
30002 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30003 if test "${ac_cv_func_mprotect+set}" = set; then
30004 echo $ECHO_N "(cached) $ECHO_C" >&6
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30012 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30014 #define mprotect innocuous_mprotect
30016 /* System header to define __stub macros and hopefully few prototypes,
30017 which can conflict with char mprotect (); below.
30018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30019 <limits.h> exists even on freestanding compilers. */
30022 # include <limits.h>
30024 # include <assert.h>
30029 /* Override any gcc2 internal prototype to avoid an error. */
30034 /* We use char because int might match the return type of a gcc2
30035 builtin and then its argument prototype would still apply. */
30037 /* The GNU C library defines this for functions which it implements
30038 to always fail with ENOSYS. Some functions are actually named
30039 something starting with __ and the normal name is an alias. */
30040 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30043 char (*f) () = mprotect;
30052 return f != mprotect;
30057 rm -f conftest.$ac_objext conftest$ac_exeext
30058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30059 (eval $ac_link) 2>conftest.er1
30061 grep -v '^ *+' conftest.er1 >conftest.err
30063 cat conftest.err >&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); } &&
30066 { ac_try='test -z "$ac_c_werror_flag"
30067 || test ! -s conftest.err'
30068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; } &&
30073 { ac_try='test -s conftest$ac_exeext'
30074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075 (eval $ac_try) 2>&5
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
30079 ac_cv_func_mprotect=yes
30081 echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30084 ac_cv_func_mprotect=no
30086 rm -f conftest.err conftest.$ac_objext \
30087 conftest$ac_exeext conftest.$ac_ext
30089 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30090 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30091 if test $ac_cv_func_mprotect = yes; then
30094 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30095 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30096 { (exit 1); exit 1; }; }
30100 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30102 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30103 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30105 if test "$ac_cv_func_mmap_file" = "no"
30107 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30108 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30112 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30113 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30114 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30117 llvm_cv_llvmgcc_sanity="no"
30118 if test -x "$LLVMGCC" ; then
30119 cp /dev/null conftest.c
30120 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30121 if test $? -eq 0 ; then
30122 llvm_cv_llvmgcc_sanity="yes"
30127 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30128 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30130 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30131 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30132 LLVMCC1=$llvmcc1path
30134 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30135 LLVMCC1PLUS=$llvmcc1pluspath
30137 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30138 LLVMGCCDIR=$llvmgccdir
30142 SHLIBEXT=$libltdl_cv_shlibext
30145 # Translate the various configuration directories and other basic
30146 # information into substitutions that will end up in Makefile.config.in
30147 # that these configured values can be used by the makefiles
30148 eval LLVM_PREFIX="${prefix}";
30149 eval LLVM_BINDIR="${prefix}/bin";
30150 eval LLVM_LIBDIR="${prefix}/lib";
30151 eval LLVM_DATADIR="${prefix}/share/llvm";
30152 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30153 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30154 eval LLVM_INCLUDEDIR="${prefix}/include";
30155 eval LLVM_INFODIR="${prefix}/info";
30156 eval LLVM_MANDIR="${prefix}/man";
30157 LLVM_CONFIGTIME=`date`
30169 # Place the various directores into the config.h file as #defines so that we
30170 # can know about the installation paths within LLVM.
30172 cat >>confdefs.h <<_ACEOF
30173 #define LLVM_PREFIX "$LLVM_PREFIX"
30177 cat >>confdefs.h <<_ACEOF
30178 #define LLVM_BINDIR "$LLVM_BINDIR"
30182 cat >>confdefs.h <<_ACEOF
30183 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30187 cat >>confdefs.h <<_ACEOF
30188 #define LLVM_DATADIR "$LLVM_DATADIR"
30192 cat >>confdefs.h <<_ACEOF
30193 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30197 cat >>confdefs.h <<_ACEOF
30198 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30202 cat >>confdefs.h <<_ACEOF
30203 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30207 cat >>confdefs.h <<_ACEOF
30208 #define LLVM_INFODIR "$LLVM_INFODIR"
30212 cat >>confdefs.h <<_ACEOF
30213 #define LLVM_MANDIR "$LLVM_MANDIR"
30217 cat >>confdefs.h <<_ACEOF
30218 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30223 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30226 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30228 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30230 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30232 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30234 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30237 ac_config_files="$ac_config_files Makefile.config"
30240 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30243 ac_config_files="$ac_config_files docs/doxygen.cfg"
30246 ac_config_commands="$ac_config_commands setup"
30248 ac_config_commands="$ac_config_commands Makefile"
30251 ac_config_commands="$ac_config_commands Makefile.common"
30254 ac_config_commands="$ac_config_commands examples/Makefile"
30257 ac_config_commands="$ac_config_commands lib/Makefile"
30260 ac_config_commands="$ac_config_commands runtime/Makefile"
30263 ac_config_commands="$ac_config_commands test/Makefile"
30266 ac_config_commands="$ac_config_commands test/Makefile.tests"
30269 ac_config_commands="$ac_config_commands tools/Makefile"
30272 ac_config_commands="$ac_config_commands utils/Makefile"
30275 ac_config_commands="$ac_config_commands projects/Makefile"
30279 cat >confcache <<\_ACEOF
30280 # This file is a shell script that caches the results of configure
30281 # tests run on this system so they can be shared between configure
30282 # scripts and configure runs, see configure's option --config-cache.
30283 # It is not useful on other systems. If it contains results you don't
30284 # want to keep, you may remove or edit it.
30286 # config.status only pays attention to the cache file if you give it
30287 # the --recheck option to rerun configure.
30289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30291 # following values.
30295 # The following way of writing the cache mishandles newlines in values,
30296 # but we know of no workaround that is simple, portable, and efficient.
30297 # So, don't put newlines in cache variables' values.
30298 # Ultrix sh set writes to stderr and can't be redirected directly,
30299 # and sets the high bit in the cache file unless we assign to the vars.
30302 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30304 # `set' does not quote correctly, so add quotes (double-quote
30305 # substitution turns \\\\ into \\, and sed turns \\ into \).
30308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30311 # `set' quotes correctly as required by POSIX, so do not add quotes.
30313 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30320 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30322 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30324 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30325 if test -w $cache_file; then
30326 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30327 cat confcache >$cache_file
30329 echo "not updating unwritable cache $cache_file"
30334 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30335 # Let make expand exec_prefix.
30336 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30338 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30339 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30340 # trailing colons and then remove the whole line if VPATH becomes empty
30341 # (actually we leave an empty line to preserve line numbers).
30342 if test "x$srcdir" = x.; then
30343 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30344 s/:*\$(srcdir):*/:/;
30345 s/:*\${srcdir}:*/:/;
30347 s/^\([^=]*=[ ]*\):*/\1/;
30353 DEFS=-DHAVE_CONFIG_H
30357 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30358 # 1. Remove the extension, and $U if already installed.
30359 ac_i=`echo "$ac_i" |
30360 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30362 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30363 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30365 LIBOBJS=$ac_libobjs
30367 LTLIBOBJS=$ac_ltlibobjs
30370 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30371 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30372 Usually this means the macro was only invoked conditionally." >&5
30373 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30374 Usually this means the macro was only invoked conditionally." >&2;}
30375 { (exit 1); exit 1; }; }
30377 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30378 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30379 Usually this means the macro was only invoked conditionally." >&5
30380 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30381 Usually this means the macro was only invoked conditionally." >&2;}
30382 { (exit 1); exit 1; }; }
30385 : ${CONFIG_STATUS=./config.status}
30386 ac_clean_files_save=$ac_clean_files
30387 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30388 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30389 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30390 cat >$CONFIG_STATUS <<_ACEOF
30392 # Generated by $as_me.
30393 # Run this file to recreate the current configuration.
30394 # Compiler output produced by configure, useful for debugging
30395 # configure, is in config.log if it exists.
30398 ac_cs_recheck=false
30400 SHELL=\${CONFIG_SHELL-$SHELL}
30403 cat >>$CONFIG_STATUS <<\_ACEOF
30404 ## --------------------- ##
30405 ## M4sh Initialization. ##
30406 ## --------------------- ##
30408 # Be Bourne compatible
30409 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30412 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30413 # is contrary to our usage. Disable this feature.
30414 alias -g '${1+"$@"}'='"$@"'
30415 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30418 DUALCASE=1; export DUALCASE # for MKS sh
30420 # Support unset when possible.
30421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30428 # Work around bugs in pre-3.0 UWIN ksh.
30429 $as_unset ENV MAIL MAILPATH
30436 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30437 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30438 LC_TELEPHONE LC_TIME
30440 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30441 eval $as_var=C; export $as_var
30447 # Required to use basename.
30448 if expr a : '\(a\)' >/dev/null 2>&1; then
30454 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30455 as_basename=basename
30461 # Name of the executable.
30462 as_me=`$as_basename "$0" ||
30463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30464 X"$0" : 'X\(//\)$' \| \
30465 X"$0" : 'X\(/\)$' \| \
30466 . : '\(.\)' 2>/dev/null ||
30468 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30469 /^X\/\(\/\/\)$/{ s//\1/; q; }
30470 /^X\/\(\/\).*/{ s//\1/; q; }
30474 # PATH needs CR, and LINENO needs CR and PATH.
30475 # Avoid depending upon Character Ranges.
30476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30479 as_cr_digits='0123456789'
30480 as_cr_alnum=$as_cr_Letters$as_cr_digits
30482 # The user is always right.
30483 if test "${PATH_SEPARATOR+set}" != set; then
30484 echo "#! /bin/sh" >conf$$.sh
30485 echo "exit 0" >>conf$$.sh
30487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30496 as_lineno_1=$LINENO
30497 as_lineno_2=$LINENO
30498 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30499 test "x$as_lineno_1" != "x$as_lineno_2" &&
30500 test "x$as_lineno_3" = "x$as_lineno_2" || {
30501 # Find who we are. Look in the path if we contain no path at all
30504 *[\\/]* ) as_myself=$0 ;;
30505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30506 for as_dir in $PATH
30509 test -z "$as_dir" && as_dir=.
30510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30515 # We did not find ourselves, most probably we were run as `sh COMMAND'
30516 # in which case we are not to be found in the path.
30517 if test "x$as_myself" = x; then
30520 if test ! -f "$as_myself"; then
30521 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30522 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30523 { (exit 1); exit 1; }; }
30525 case $CONFIG_SHELL in
30527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30528 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30531 test -z "$as_dir" && as_dir=.
30532 for as_base in sh bash ksh sh5; do
30535 if ("$as_dir/$as_base" -c '
30536 as_lineno_1=$LINENO
30537 as_lineno_2=$LINENO
30538 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30539 test "x$as_lineno_1" != "x$as_lineno_2" &&
30540 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30541 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30542 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30543 CONFIG_SHELL=$as_dir/$as_base
30544 export CONFIG_SHELL
30545 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30553 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30554 # uniformly replaced by the line number. The first 'sed' inserts a
30555 # line-number line before each line; the second 'sed' does the real
30556 # work. The second script uses 'N' to pair each line-number line
30557 # with the numbered line, and appends trailing '-' during
30558 # substitution so that $LINENO is not a special case at line end.
30559 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30560 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30561 sed '=' <$as_myself |
30566 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30569 s,^['$as_cr_digits']*\n,,
30570 ' >$as_me.lineno &&
30571 chmod +x $as_me.lineno ||
30572 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30573 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30574 { (exit 1); exit 1; }; }
30576 # Don't try to exec as it changes $[0], causing all sort of problems
30577 # (the dirname of $[0] is not the place where we might find the
30578 # original and so on. Autoconf is especially sensible to this).
30580 # Exit status is that of the last command.
30585 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30586 *c*,-n*) ECHO_N= ECHO_C='
30588 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30589 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30592 if expr a : '\(a\)' >/dev/null 2>&1; then
30598 rm -f conf$$ conf$$.exe conf$$.file
30600 if ln -s conf$$.file conf$$ 2>/dev/null; then
30601 # We could just check for DJGPP; but this test a) works b) is more generic
30602 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30603 if test -f conf$$.exe; then
30604 # Don't use ln at all; we don't have any links
30609 elif ln conf$$.file conf$$ 2>/dev/null; then
30614 rm -f conf$$ conf$$.exe conf$$.file
30616 if mkdir -p . 2>/dev/null; then
30619 test -d ./-p && rmdir ./-p
30623 as_executable_p="test -f"
30625 # Sed expression to map a string onto a valid CPP name.
30626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30628 # Sed expression to map a string onto a valid variable name.
30629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30633 # We need space, tab and new line, in precisely that order.
30643 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30644 # report actual input values of CONFIG_FILES etc. instead of their
30645 # values after options handling. Logging --version etc. is OK.
30649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30650 ## Running $as_me. ##
30655 This file was extended by llvm $as_me 1.5cvs, which was
30656 generated by GNU Autoconf 2.59. Invocation command line was
30658 CONFIG_FILES = $CONFIG_FILES
30659 CONFIG_HEADERS = $CONFIG_HEADERS
30660 CONFIG_LINKS = $CONFIG_LINKS
30661 CONFIG_COMMANDS = $CONFIG_COMMANDS
30665 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30669 # Files that config.status was made for.
30670 if test -n "$ac_config_files"; then
30671 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30674 if test -n "$ac_config_headers"; then
30675 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30678 if test -n "$ac_config_links"; then
30679 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30682 if test -n "$ac_config_commands"; then
30683 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30686 cat >>$CONFIG_STATUS <<\_ACEOF
30689 \`$as_me' instantiates files from templates according to the
30690 current configuration.
30692 Usage: $0 [OPTIONS] [FILE]...
30694 -h, --help print this help, then exit
30695 -V, --version print version number, then exit
30696 -q, --quiet do not print progress messages
30697 -d, --debug don't remove temporary files
30698 --recheck update $as_me by reconfiguring in the same conditions
30699 --file=FILE[:TEMPLATE]
30700 instantiate the configuration file FILE
30701 --header=FILE[:TEMPLATE]
30702 instantiate the configuration header FILE
30704 Configuration files:
30707 Configuration headers:
30710 Configuration commands:
30713 Report bugs to <bug-autoconf@gnu.org>."
30716 cat >>$CONFIG_STATUS <<_ACEOF
30718 llvm config.status 1.5cvs
30719 configured by $0, generated by GNU Autoconf 2.59,
30720 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30722 Copyright (C) 2003 Free Software Foundation, Inc.
30723 This config.status script is free software; the Free Software Foundation
30724 gives unlimited permission to copy, distribute and modify it."
30729 cat >>$CONFIG_STATUS <<\_ACEOF
30730 # If no file are specified by the user, then we need to provide default
30731 # value. By we need to know if files were specified by the user.
30737 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30738 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30746 *) # This is not an option, so the user has probably given explicit
30749 ac_need_defaults=false;;
30753 # Handling of the options.
30755 cat >>$CONFIG_STATUS <<\_ACEOF
30756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30758 --version | --vers* | -V )
30759 echo "$ac_cs_version"; exit 0 ;;
30761 # Conflict between --help and --header
30762 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30763 Try \`$0 --help' for more information." >&5
30764 echo "$as_me: error: ambiguous option: $1
30765 Try \`$0 --help' for more information." >&2;}
30766 { (exit 1); exit 1; }; };;
30767 --help | --hel | -h )
30768 echo "$ac_cs_usage"; exit 0 ;;
30769 --debug | --d* | -d )
30771 --file | --fil | --fi | --f )
30773 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30774 ac_need_defaults=false;;
30775 --header | --heade | --head | --hea )
30777 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30778 ac_need_defaults=false;;
30779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30783 # This is an error.
30784 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30785 Try \`$0 --help' for more information." >&5
30786 echo "$as_me: error: unrecognized option: $1
30787 Try \`$0 --help' for more information." >&2;}
30788 { (exit 1); exit 1; }; } ;;
30790 *) ac_config_targets="$ac_config_targets $1" ;;
30796 ac_configure_extra_args=
30798 if $ac_cs_silent; then
30800 ac_configure_extra_args="$ac_configure_extra_args --silent"
30804 cat >>$CONFIG_STATUS <<_ACEOF
30805 if \$ac_cs_recheck; then
30806 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30807 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30812 cat >>$CONFIG_STATUS <<_ACEOF
30814 # INIT-COMMANDS section.
30817 llvm_src="${srcdir}"
30823 cat >>$CONFIG_STATUS <<\_ACEOF
30824 for ac_config_target in $ac_config_targets
30826 case "$ac_config_target" in
30827 # Handling of arguments.
30828 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30829 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30830 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30831 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30832 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30833 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30834 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30835 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30836 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30837 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30838 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30839 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30840 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30841 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30842 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30843 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30844 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30845 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30846 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30847 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30848 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30849 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30850 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30853 { (exit 1); exit 1; }; };;
30857 # If the user did not use the arguments to specify the items to instantiate,
30858 # then the envvar interface is used. Set only those that are not.
30859 # We use the long form for the default assignment because of an extremely
30860 # bizarre bug on SunOS 4.1.3.
30861 if $ac_need_defaults; then
30862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30867 # Have a temporary directory for convenience. Make it in the build tree
30868 # simply because there is no reason to put it here, and in addition,
30869 # creating and moving files from /tmp can sometimes cause problems.
30870 # Create a temporary directory, and hook for its removal unless debugging.
30873 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30874 trap '{ (exit 1); exit 1; }' 1 2 13 15
30877 # Create a (secure) tmp directory for tmp files.
30880 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30881 test -n "$tmp" && test -d "$tmp"
30884 tmp=./confstat$$-$RANDOM
30885 (umask 077 && mkdir $tmp)
30888 echo "$me: cannot create a temporary directory in ." >&2
30889 { (exit 1); exit 1; }
30894 cat >>$CONFIG_STATUS <<_ACEOF
30897 # CONFIG_FILES section.
30900 # No need to generate the scripts if there are no CONFIG_FILES.
30901 # This happens for instance when ./config.status config.h
30902 if test -n "\$CONFIG_FILES"; then
30903 # Protect against being on the right side of a sed subst in config.status.
30904 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30905 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30906 s,@SHELL@,$SHELL,;t t
30907 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30908 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30909 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30910 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30911 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30912 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30913 s,@exec_prefix@,$exec_prefix,;t t
30914 s,@prefix@,$prefix,;t t
30915 s,@program_transform_name@,$program_transform_name,;t t
30916 s,@bindir@,$bindir,;t t
30917 s,@sbindir@,$sbindir,;t t
30918 s,@libexecdir@,$libexecdir,;t t
30919 s,@datadir@,$datadir,;t t
30920 s,@sysconfdir@,$sysconfdir,;t t
30921 s,@sharedstatedir@,$sharedstatedir,;t t
30922 s,@localstatedir@,$localstatedir,;t t
30923 s,@libdir@,$libdir,;t t
30924 s,@includedir@,$includedir,;t t
30925 s,@oldincludedir@,$oldincludedir,;t t
30926 s,@infodir@,$infodir,;t t
30927 s,@mandir@,$mandir,;t t
30928 s,@build_alias@,$build_alias,;t t
30929 s,@host_alias@,$host_alias,;t t
30930 s,@target_alias@,$target_alias,;t t
30931 s,@DEFS@,$DEFS,;t t
30932 s,@ECHO_C@,$ECHO_C,;t t
30933 s,@ECHO_N@,$ECHO_N,;t t
30934 s,@ECHO_T@,$ECHO_T,;t t
30935 s,@LIBS@,$LIBS,;t t
30936 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30937 s,@subdirs@,$subdirs,;t t
30938 s,@build@,$build,;t t
30939 s,@build_cpu@,$build_cpu,;t t
30940 s,@build_vendor@,$build_vendor,;t t
30941 s,@build_os@,$build_os,;t t
30942 s,@host@,$host,;t t
30943 s,@host_cpu@,$host_cpu,;t t
30944 s,@host_vendor@,$host_vendor,;t t
30945 s,@host_os@,$host_os,;t t
30946 s,@target@,$target,;t t
30947 s,@target_cpu@,$target_cpu,;t t
30948 s,@target_vendor@,$target_vendor,;t t
30949 s,@target_os@,$target_os,;t t
30951 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30952 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30953 s,@ARCH@,$ARCH,;t t
30954 s,@ENDIAN@,$ENDIAN,;t t
30956 s,@CFLAGS@,$CFLAGS,;t t
30957 s,@LDFLAGS@,$LDFLAGS,;t t
30958 s,@CPPFLAGS@,$CPPFLAGS,;t t
30959 s,@ac_ct_CC@,$ac_ct_CC,;t t
30960 s,@EXEEXT@,$EXEEXT,;t t
30961 s,@OBJEXT@,$OBJEXT,;t t
30962 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30964 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30967 s,@CXXFLAGS@,$CXXFLAGS,;t t
30968 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30970 s,@LEXLIB@,$LEXLIB,;t t
30971 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30972 s,@FLEX@,$FLEX,;t t
30973 s,@YACC@,$YACC,;t t
30974 s,@BISON@,$BISON,;t t
30975 s,@ifGNUmake@,$ifGNUmake,;t t
30976 s,@LN_S@,$LN_S,;t t
30979 s,@DATE@,$DATE,;t t
30980 s,@FIND@,$FIND,;t t
30981 s,@GREP@,$GREP,;t t
30982 s,@MKDIR@,$MKDIR,;t t
30984 s,@RANLIB@,$RANLIB,;t t
30985 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30989 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30990 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30991 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30992 s,@BZIP2@,$BZIP2,;t t
30994 s,@DOXYGEN@,$DOXYGEN,;t t
30995 s,@ETAGS@,$ETAGS,;t t
30996 s,@GROFF@,$GROFF,;t t
30997 s,@GZIP@,$GZIP,;t t
30998 s,@POD2HTML@,$POD2HTML,;t t
30999 s,@POD2MAN@,$POD2MAN,;t t
31000 s,@RUNTEST@,$RUNTEST,;t t
31001 s,@TCLSH@,$TCLSH,;t t
31003 s,@EGREP@,$EGREP,;t t
31004 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31005 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31006 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31007 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31008 s,@LIBADD_DL@,$LIBADD_DL,;t t
31009 s,@ECHO@,$ECHO,;t t
31011 s,@ac_ct_AR@,$ac_ct_AR,;t t
31012 s,@STRIP@,$STRIP,;t t
31013 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31014 s,@CXXCPP@,$CXXCPP,;t t
31016 s,@FFLAGS@,$FFLAGS,;t t
31017 s,@ac_ct_F77@,$ac_ct_F77,;t t
31018 s,@LIBTOOL@,$LIBTOOL,;t t
31019 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31020 s,@LLVMGCC@,$LLVMGCC,;t t
31021 s,@LLVMGXX@,$LLVMGXX,;t t
31022 s,@ALLOCA@,$ALLOCA,;t t
31023 s,@MMAP_FILE@,$MMAP_FILE,;t t
31024 s,@LLVMCC1@,$LLVMCC1,;t t
31025 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31026 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31027 s,@SHLIBEXT@,$SHLIBEXT,;t t
31028 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31029 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31030 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31031 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31032 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31033 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31034 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31035 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31036 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31037 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31038 s,@LIBOBJS@,$LIBOBJS,;t t
31039 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31044 cat >>$CONFIG_STATUS <<\_ACEOF
31045 # Split the substitutions into bite-sized pieces for seds with
31046 # small command number limits, like on Digital OSF/1 and HP-UX.
31047 ac_max_sed_lines=48
31048 ac_sed_frag=1 # Number of current file.
31049 ac_beg=1 # First line for current file.
31050 ac_end=$ac_max_sed_lines # Line after last line for current file.
31053 while $ac_more_lines; do
31054 if test $ac_beg -gt 1; then
31055 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31057 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31059 if test ! -s $tmp/subs.frag; then
31060 ac_more_lines=false
31062 # The purpose of the label and of the branching condition is to
31063 # speed up the sed processing (if there are no `@' at all, there
31064 # is no need to browse any of the substitutions).
31065 # These are the two extra sed commands mentioned above.
31067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31068 if test -z "$ac_sed_cmds"; then
31069 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31071 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31073 ac_sed_frag=`expr $ac_sed_frag + 1`
31075 ac_end=`expr $ac_end + $ac_max_sed_lines`
31078 if test -z "$ac_sed_cmds"; then
31081 fi # test -n "$CONFIG_FILES"
31084 cat >>$CONFIG_STATUS <<\_ACEOF
31085 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31088 - | *:- | *:-:* ) # input from stdin
31090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31094 * ) ac_file_in=$ac_file.in ;;
31097 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31100 X"$ac_file" : 'X\(//\)[^/]' \| \
31101 X"$ac_file" : 'X\(//\)$' \| \
31102 X"$ac_file" : 'X\(/\)' \| \
31103 . : '\(.\)' 2>/dev/null ||
31105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31107 /^X\(\/\/\)$/{ s//\1/; q; }
31108 /^X\(\/\).*/{ s//\1/; q; }
31110 { if $as_mkdir_p; then
31115 while test ! -d "$as_dir"; do
31116 as_dirs="$as_dir $as_dirs"
31117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31119 X"$as_dir" : 'X\(//\)[^/]' \| \
31120 X"$as_dir" : 'X\(//\)$' \| \
31121 X"$as_dir" : 'X\(/\)' \| \
31122 . : '\(.\)' 2>/dev/null ||
31124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31126 /^X\(\/\/\)$/{ s//\1/; q; }
31127 /^X\(\/\).*/{ s//\1/; q; }
31130 test ! -n "$as_dirs" || mkdir $as_dirs
31131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31132 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31133 { (exit 1); exit 1; }; }; }
31137 if test "$ac_dir" != .; then
31138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31139 # A "../" for each directory in $ac_dir_suffix.
31140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31142 ac_dir_suffix= ac_top_builddir=
31146 .) # No --srcdir option. We are building in place.
31148 if test -z "$ac_top_builddir"; then
31151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31153 [\\/]* | ?:[\\/]* ) # Absolute path.
31154 ac_srcdir=$srcdir$ac_dir_suffix;
31155 ac_top_srcdir=$srcdir ;;
31156 *) # Relative path.
31157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31161 # Do not use `cd foo && pwd` to compute absolute paths, because
31162 # the directories may not exist.
31164 .) ac_abs_builddir="$ac_dir";;
31167 .) ac_abs_builddir=`pwd`;;
31168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31172 case $ac_abs_builddir in
31173 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31175 case ${ac_top_builddir}. in
31176 .) ac_abs_top_builddir=$ac_abs_builddir;;
31177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31181 case $ac_abs_builddir in
31182 .) ac_abs_srcdir=$ac_srcdir;;
31185 .) ac_abs_srcdir=$ac_abs_builddir;;
31186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31190 case $ac_abs_builddir in
31191 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31193 case $ac_top_srcdir in
31194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31203 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31206 if test x"$ac_file" != x-; then
31207 { echo "$as_me:$LINENO: creating $ac_file" >&5
31208 echo "$as_me: creating $ac_file" >&6;}
31211 # Let's still pretend it is `configure' which instantiates (i.e., don't
31212 # use $as_me), people would be surprised to read:
31213 # /* config.h. Generated by config.status. */
31214 if test x"$ac_file" = x-; then
31217 configure_input="$ac_file. "
31219 configure_input=$configure_input"Generated from `echo $ac_file_in |
31220 sed 's,.*/,,'` by configure."
31222 # First look for the input files in the build tree, otherwise in the
31224 ac_file_inputs=`IFS=:
31225 for f in $ac_file_in; do
31227 -) echo $tmp/stdin ;;
31229 # Absolute (can't be DOS-style, as IFS=:)
31230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31231 echo "$as_me: error: cannot find input file: $f" >&2;}
31232 { (exit 1); exit 1; }; }
31235 if test -f "$f"; then
31238 elif test -f "$srcdir/$f"; then
31243 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31244 echo "$as_me: error: cannot find input file: $f" >&2;}
31245 { (exit 1); exit 1; }; }
31248 done` || { (exit 1); exit 1; }
31250 cat >>$CONFIG_STATUS <<_ACEOF
31254 cat >>$CONFIG_STATUS <<\_ACEOF
31256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31257 s,@configure_input@,$configure_input,;t t
31258 s,@srcdir@,$ac_srcdir,;t t
31259 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31260 s,@top_srcdir@,$ac_top_srcdir,;t t
31261 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31262 s,@builddir@,$ac_builddir,;t t
31263 s,@abs_builddir@,$ac_abs_builddir,;t t
31264 s,@top_builddir@,$ac_top_builddir,;t t
31265 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31266 s,@INSTALL@,$ac_INSTALL,;t t
31267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31269 if test x"$ac_file" != x-; then
31270 mv $tmp/out $ac_file
31278 cat >>$CONFIG_STATUS <<\_ACEOF
31281 # CONFIG_HEADER section.
31284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31287 # ac_d sets the value in "#define NAME VALUE" lines.
31288 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31289 ac_dB='[ ].*$,\1#\2'
31292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31293 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31294 ac_uB='$,\1#\2define\3'
31298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31301 - | *:- | *:-:* ) # input from stdin
31303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31307 * ) ac_file_in=$ac_file.in ;;
31310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31311 echo "$as_me: creating $ac_file" >&6;}
31313 # First look for the input files in the build tree, otherwise in the
31315 ac_file_inputs=`IFS=:
31316 for f in $ac_file_in; do
31318 -) echo $tmp/stdin ;;
31320 # Absolute (can't be DOS-style, as IFS=:)
31321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31322 echo "$as_me: error: cannot find input file: $f" >&2;}
31323 { (exit 1); exit 1; }; }
31324 # Do quote $f, to prevent DOS paths from being IFS'd.
31327 if test -f "$f"; then
31330 elif test -f "$srcdir/$f"; then
31335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31336 echo "$as_me: error: cannot find input file: $f" >&2;}
31337 { (exit 1); exit 1; }; }
31340 done` || { (exit 1); exit 1; }
31341 # Remove the trailing spaces.
31342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31346 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31347 # `conftest.undefs', that substitutes the proper values into
31348 # config.h.in to produce config.h. The first handles `#define'
31349 # templates, and the second `#undef' templates.
31350 # And first: Protect against being on the right side of a sed subst in
31351 # config.status. Protect against being in an unquoted here document
31352 # in config.status.
31353 rm -f conftest.defines conftest.undefs
31354 # Using a here document instead of a string reduces the quoting nightmare.
31355 # Putting comments in sed scripts is not portable.
31357 # `end' is used to avoid that the second main sed command (meant for
31358 # 0-ary CPP macros) applies to n-ary macro definitions.
31359 # See the Autoconf documentation for `clear'.
31360 cat >confdef2sed.sed <<\_ACEOF
31365 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31367 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31370 # If some macros were called several times there might be several times
31371 # the same #defines, which is useless. Nevertheless, we may not want to
31372 # sort them, since we want the *last* AC-DEFINE to be honored.
31373 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31374 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31375 rm -f confdef2sed.sed
31377 # This sed command replaces #undef with comments. This is necessary, for
31378 # example, in the case of _POSIX_SOURCE, which is predefined and required
31379 # on some systems where configure will not decide to define it.
31380 cat >>conftest.undefs <<\_ACEOF
31381 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31384 # Break up conftest.defines because some shells have a limit on the size
31385 # of here documents, and old seds have small limits too (100 cmds).
31386 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31387 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31388 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31389 echo ' :' >>$CONFIG_STATUS
31390 rm -f conftest.tail
31391 while grep . conftest.defines >/dev/null
31393 # Write a limited-size here document to $tmp/defines.sed.
31394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31395 # Speed up: don't consider the non `#define' lines.
31396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31397 # Work around the forget-to-reset-the-flag bug.
31398 echo 't clr' >>$CONFIG_STATUS
31399 echo ': clr' >>$CONFIG_STATUS
31400 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31404 mv $tmp/out $tmp/in
31406 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31407 rm -f conftest.defines
31408 mv conftest.tail conftest.defines
31410 rm -f conftest.defines
31411 echo ' fi # grep' >>$CONFIG_STATUS
31412 echo >>$CONFIG_STATUS
31414 # Break up conftest.undefs because some shells have a limit on the size
31415 # of here documents, and old seds have small limits too (100 cmds).
31416 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31417 rm -f conftest.tail
31418 while grep . conftest.undefs >/dev/null
31420 # Write a limited-size here document to $tmp/undefs.sed.
31421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31422 # Speed up: don't consider the non `#undef'
31423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31424 # Work around the forget-to-reset-the-flag bug.
31425 echo 't clr' >>$CONFIG_STATUS
31426 echo ': clr' >>$CONFIG_STATUS
31427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31431 mv $tmp/out $tmp/in
31433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31434 rm -f conftest.undefs
31435 mv conftest.tail conftest.undefs
31437 rm -f conftest.undefs
31439 cat >>$CONFIG_STATUS <<\_ACEOF
31440 # Let's still pretend it is `configure' which instantiates (i.e., don't
31441 # use $as_me), people would be surprised to read:
31442 # /* config.h. Generated by config.status. */
31443 if test x"$ac_file" = x-; then
31444 echo "/* Generated by configure. */" >$tmp/config.h
31446 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31448 cat $tmp/in >>$tmp/config.h
31450 if test x"$ac_file" != x-; then
31451 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31453 echo "$as_me: $ac_file is unchanged" >&6;}
31455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31457 X"$ac_file" : 'X\(//\)[^/]' \| \
31458 X"$ac_file" : 'X\(//\)$' \| \
31459 X"$ac_file" : 'X\(/\)' \| \
31460 . : '\(.\)' 2>/dev/null ||
31462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31464 /^X\(\/\/\)$/{ s//\1/; q; }
31465 /^X\(\/\).*/{ s//\1/; q; }
31467 { if $as_mkdir_p; then
31472 while test ! -d "$as_dir"; do
31473 as_dirs="$as_dir $as_dirs"
31474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31476 X"$as_dir" : 'X\(//\)[^/]' \| \
31477 X"$as_dir" : 'X\(//\)$' \| \
31478 X"$as_dir" : 'X\(/\)' \| \
31479 . : '\(.\)' 2>/dev/null ||
31481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31483 /^X\(\/\/\)$/{ s//\1/; q; }
31484 /^X\(\/\).*/{ s//\1/; q; }
31487 test ! -n "$as_dirs" || mkdir $as_dirs
31488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31490 { (exit 1); exit 1; }; }; }
31493 mv $tmp/config.h $ac_file
31497 rm -f $tmp/config.h
31501 cat >>$CONFIG_STATUS <<\_ACEOF
31504 # CONFIG_COMMANDS section.
31506 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31507 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31508 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31509 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31510 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31511 X"$ac_dest" : 'X\(//\)[^/]' \| \
31512 X"$ac_dest" : 'X\(//\)$' \| \
31513 X"$ac_dest" : 'X\(/\)' \| \
31514 . : '\(.\)' 2>/dev/null ||
31516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31518 /^X\(\/\/\)$/{ s//\1/; q; }
31519 /^X\(\/\).*/{ s//\1/; q; }
31521 { if $as_mkdir_p; then
31526 while test ! -d "$as_dir"; do
31527 as_dirs="$as_dir $as_dirs"
31528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31530 X"$as_dir" : 'X\(//\)[^/]' \| \
31531 X"$as_dir" : 'X\(//\)$' \| \
31532 X"$as_dir" : 'X\(/\)' \| \
31533 . : '\(.\)' 2>/dev/null ||
31535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31537 /^X\(\/\/\)$/{ s//\1/; q; }
31538 /^X\(\/\).*/{ s//\1/; q; }
31541 test ! -n "$as_dirs" || mkdir $as_dirs
31542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31544 { (exit 1); exit 1; }; }; }
31548 if test "$ac_dir" != .; then
31549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31550 # A "../" for each directory in $ac_dir_suffix.
31551 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31553 ac_dir_suffix= ac_top_builddir=
31557 .) # No --srcdir option. We are building in place.
31559 if test -z "$ac_top_builddir"; then
31562 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31564 [\\/]* | ?:[\\/]* ) # Absolute path.
31565 ac_srcdir=$srcdir$ac_dir_suffix;
31566 ac_top_srcdir=$srcdir ;;
31567 *) # Relative path.
31568 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31569 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31572 # Do not use `cd foo && pwd` to compute absolute paths, because
31573 # the directories may not exist.
31575 .) ac_abs_builddir="$ac_dir";;
31578 .) ac_abs_builddir=`pwd`;;
31579 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31580 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31583 case $ac_abs_builddir in
31584 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31586 case ${ac_top_builddir}. in
31587 .) ac_abs_top_builddir=$ac_abs_builddir;;
31588 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31589 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31592 case $ac_abs_builddir in
31593 .) ac_abs_srcdir=$ac_srcdir;;
31596 .) ac_abs_srcdir=$ac_abs_builddir;;
31597 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31598 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31601 case $ac_abs_builddir in
31602 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31604 case $ac_top_srcdir in
31605 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31606 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31607 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31612 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31613 echo "$as_me: executing $ac_dest commands" >&6;}
31615 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31617 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31619 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31621 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31623 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31624 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31625 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31626 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31627 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31628 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31629 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31630 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31631 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31632 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31633 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31634 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31639 cat >>$CONFIG_STATUS <<\_ACEOF
31641 { (exit 0); exit 0; }
31643 chmod +x $CONFIG_STATUS
31644 ac_clean_files=$ac_clean_files_save
31647 # configure is writing to config.log, and then calls config.status.
31648 # config.status does its own redirection, appending to config.log.
31649 # Unfortunately, on DOS this fails, as config.log is still kept open
31650 # by configure, so config.status won't be able to write to it; its
31651 # output is simply discarded. So we exec the FD to /dev/null,
31652 # effectively closing config.log, so it can be properly (re)opened and
31653 # appended to by config.status. When coming back to configure, we
31654 # need to make the FD available again.
31655 if test "$no_create" != yes; then
31657 ac_config_status_args=
31658 test "$silent" = yes &&
31659 ac_config_status_args="$ac_config_status_args --quiet"
31661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31664 # would make configure fail if this is the last instruction.
31665 $ac_cs_success || { (exit 1); exit 1; }
31669 # CONFIG_SUBDIRS section.
31671 if test "$no_recursion" != yes; then
31673 # Remove --cache-file and --srcdir arguments so they do not pile up.
31674 ac_sub_configure_args=
31676 for ac_arg in $ac_configure_args; do
31677 if test -n "$ac_prev"; then
31682 -cache-file | --cache-file | --cache-fil | --cache-fi \
31683 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31684 ac_prev=cache_file ;;
31685 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31686 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31689 --config-cache | -C)
31691 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31693 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31695 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31697 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31699 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31703 # Always prepend --prefix to ensure using the same prefix
31704 # in subdir configurations.
31705 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31708 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31710 # Do not complain, so a configure script can configure whichever
31711 # parts of a large source tree are present.
31712 test -d $srcdir/$ac_dir || continue
31714 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31715 echo "$as_me: configuring in $ac_dir" >&6;}
31716 { if $as_mkdir_p; then
31721 while test ! -d "$as_dir"; do
31722 as_dirs="$as_dir $as_dirs"
31723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31725 X"$as_dir" : 'X\(//\)[^/]' \| \
31726 X"$as_dir" : 'X\(//\)$' \| \
31727 X"$as_dir" : 'X\(/\)' \| \
31728 . : '\(.\)' 2>/dev/null ||
31730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31732 /^X\(\/\/\)$/{ s//\1/; q; }
31733 /^X\(\/\).*/{ s//\1/; q; }
31736 test ! -n "$as_dirs" || mkdir $as_dirs
31737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31739 { (exit 1); exit 1; }; }; }
31743 if test "$ac_dir" != .; then
31744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31745 # A "../" for each directory in $ac_dir_suffix.
31746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31748 ac_dir_suffix= ac_top_builddir=
31752 .) # No --srcdir option. We are building in place.
31754 if test -z "$ac_top_builddir"; then
31757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31759 [\\/]* | ?:[\\/]* ) # Absolute path.
31760 ac_srcdir=$srcdir$ac_dir_suffix;
31761 ac_top_srcdir=$srcdir ;;
31762 *) # Relative path.
31763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31767 # Do not use `cd foo && pwd` to compute absolute paths, because
31768 # the directories may not exist.
31770 .) ac_abs_builddir="$ac_dir";;
31773 .) ac_abs_builddir=`pwd`;;
31774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31778 case $ac_abs_builddir in
31779 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31781 case ${ac_top_builddir}. in
31782 .) ac_abs_top_builddir=$ac_abs_builddir;;
31783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31787 case $ac_abs_builddir in
31788 .) ac_abs_srcdir=$ac_srcdir;;
31791 .) ac_abs_srcdir=$ac_abs_builddir;;
31792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31796 case $ac_abs_builddir in
31797 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31799 case $ac_top_srcdir in
31800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31809 # Check for guested configure; otherwise get Cygnus style configure.
31810 if test -f $ac_srcdir/configure.gnu; then
31811 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31812 elif test -f $ac_srcdir/configure; then
31813 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31814 elif test -f $ac_srcdir/configure.in; then
31815 ac_sub_configure=$ac_configure
31817 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31818 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31822 # The recursion is here.
31823 if test -n "$ac_sub_configure"; then
31824 # Make the cache file name correct relative to the subdirectory.
31825 case $cache_file in
31826 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31827 *) # Relative path.
31828 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31831 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31832 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31833 # The eval makes quoting arguments work.
31834 eval $ac_sub_configure $ac_sub_configure_args \
31835 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31836 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31837 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31838 { (exit 1); exit 1; }; }
31846 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31847 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31848 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31849 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31850 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31851 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31852 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31853 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31854 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31855 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31856 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}