2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
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.4'
429 PACKAGE_STRING='llvm 1.4'
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/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/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 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 LLVMGCC LLVMGXX MKDIR MV PAX 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 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.4 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.4:";;
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-tclinclude directory where tcl headers are
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1057 include additional configurations [automatic]
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1076 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1087 if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 ac_dir_suffix= ac_top_builddir=
1096 .) # No --srcdir option. We are building in place.
1098 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1114 .) ac_abs_builddir="$ac_dir";;
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1161 $ac_configure --help
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1173 generated by GNU Autoconf 2.59
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by llvm $as_me 1.4, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1534 for ac_dir in autoconf $srcdir/autoconf; do
1535 if test -f $ac_dir/install-sh; then
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 elif test -f $ac_dir/install.sh; then
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 elif test -f $ac_dir/shtool; then
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 if test -z "$ac_aux_dir"; then
1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1552 { (exit 1); exit 1; }; }
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 if test ${srcdir} != "." ; then
1560 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1562 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563 { (exit 1); exit 1; }; }
1567 for i in `ls ${srcdir}/projects`
1569 if test -d ${srcdir}/projects/${i} ; then
1574 subdirs="$subdirs projects/sample"
1578 subdirs="$subdirs projects/Stacker"
1582 subdirs="$subdirs projects/llvm-test"
1586 subdirs="$subdirs projects/llvm-reopt"
1590 subdirs="$subdirs projects/llvm-gcc"
1594 subdirs="$subdirs projects/Java"
1598 subdirs="$subdirs projects/llvm-tv"
1602 subdirs="$subdirs projects/llvm-fefw"
1606 subdirs="$subdirs projects/poolalloc"
1609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1698 program_prefix=${target_alias}-
1700 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1701 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1702 if test "${llvm_cv_os_type+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 llvm_cv_os_type="AIX"
1708 llvm_cv_platform_type="Unix" ;;
1710 llvm_cv_os_type="Cygwin"
1711 llvm_cv_platform_type="Unix" ;;
1713 llvm_cv_os_type="Darwin"
1714 llvm_cv_platform_type="Unix" ;;
1716 llvm_cv_os_type="FreeBSD"
1717 llvm_cv_platform_type="Unix" ;;
1719 llvm_cv_os_type="Interix"
1720 llvm_cv_platform_type="Unix" ;;
1722 llvm_cv_os_type="Linux"
1723 llvm_cv_platform_type="Unix" ;;
1725 llvm_cv_os_type="SunOS"
1726 llvm_cv_platform_type="Unix" ;;
1728 llvm_cv_os_type="Win32"
1729 llvm_cv_platform_type="Win32" ;;
1731 llvm_cv_os_type="MingW"
1732 llvm_cv_platform_type="Win32" ;;
1734 llvm_cv_os_type="Unknown"
1735 llvm_cv_platform_type="Unknown" ;;
1738 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1739 echo "${ECHO_T}$llvm_cv_os_type" >&6
1741 if test "$llvm_cv_os_type" = "Unknown" ; then
1742 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1743 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1744 { (exit 1); exit 1; }; }
1750 case $llvm_cv_platform_type in
1753 cat >>confdefs.h <<\_ACEOF
1754 #define LLVM_ON_UNIX 1
1760 cat >>confdefs.h <<\_ACEOF
1761 #define LLVM_ON_WIN32 1
1767 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_os_type"
1771 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1776 echo "$as_me:$LINENO: checking target architecture" >&5
1777 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1778 if test "${llvm_cv_target_arch+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 i?86-*) llvm_cv_target_arch="x86" ;;
1783 amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
1784 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1785 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1786 *) llvm_cv_target_arch="Unknown" ;;
1789 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1790 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1792 if test "$llvm_cv_target_arch" = "Unknown" ; then
1793 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1794 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1797 ARCH=$llvm_cv_target_arch
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805 if test -n "$ac_tool_prefix"; then
1806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1842 if test -z "$ac_cv_prog_CC"; then
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy ${ac_tool_prefix}cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1922 if test -z "$ac_cv_prog_CC"; then
1924 # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_ac_ct_CC="cc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951 if test -n "$ac_ct_CC"; then
1952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953 echo "${ECHO_T}$ac_ct_CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1965 if test -z "$CC"; then
1966 # Extract the first word of "cc", so it can be a program name with args.
1967 set dummy cc; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1985 ac_prog_rejected=yes
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test $ac_prog_rejected = yes; then
1996 # We found a bogon in the path, so make sure we never use it.
1997 set dummy $ac_cv_prog_CC
1999 if test $# != 0; then
2000 # We chose a different compiler from the bogus one.
2001 # However, it has the same basename, so the bogon will be chosen
2002 # first if we set CC to just the basename; use the full file name.
2004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2019 if test -z "$CC"; then
2020 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2058 test -n "$CC" && break
2061 if test -z "$CC"; then
2065 # Extract the first word of "$ac_prog", so it can be a program name with args.
2066 set dummy $ac_prog; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC="$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2100 test -n "$ac_ct_CC" && break
2109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2115 # Provide some information about the compiler.
2116 echo "$as_me:$LINENO:" \
2117 "checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120 (eval $ac_compiler --version </dev/null >&5) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125 (eval $ac_compiler -v </dev/null >&5) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130 (eval $ac_compiler -V </dev/null >&5) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2155 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159 (eval $ac_link_default) 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Find the output, starting from the most likely. This scheme is
2164 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167 # Be careful to initialize this variable, since it used to be cached.
2168 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170 # b.out is created by i960 compilers.
2171 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173 test -f "$ac_file" || continue
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178 # This is the source file.
2181 # We found the default executable, but exeext='' is most
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # FIXME: I believe we export ac_cv_exeext for Libtool,
2187 # but it would be cool to find out if it's true. Does anybody
2188 # maintain Libtool? --akim.
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
2206 ac_exeext=$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6
2210 # Check the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2225 if test "$cross_compiling" = maybe; then
2228 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2238 echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6
2250 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253 (eval $ac_link) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2279 rm -f conftest$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281 echo "${ECHO_T}$ac_cv_exeext" >&6
2283 rm -f conftest.$ac_ext
2284 EXEEXT=$ac_cv_exeext
2286 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288 if test "${ac_cv_objext+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 cat >conftest.$ac_ext <<_ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2306 rm -f conftest.o conftest.obj
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; then
2312 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&5
2325 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326 See \`config.log' for more details." >&2;}
2327 { (exit 1); exit 1; }; }
2330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333 echo "${ECHO_T}$ac_cv_objext" >&6
2334 OBJEXT=$ac_cv_objext
2336 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394 GCC=`test $ac_compiler_gnu = yes && echo yes`
2395 ac_test_CFLAGS=${CFLAGS+set}
2396 ac_save_CFLAGS=$CFLAGS
2398 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400 if test "${ac_cv_prog_cc_g+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1 >conftest.err
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451 if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453 elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2460 if test "$GCC" = yes; then
2466 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_cv_prog_cc_stdc=no
2473 cat >conftest.$ac_ext <<_ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 #include <sys/types.h>
2482 #include <sys/stat.h>
2483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484 struct buf { int x; };
2485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486 static char *e (p, i)
2492 static char *f (char * (*g) (char **, int), char **p, ...)
2497 s = g (p, va_arg (v,int));
2502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2503 function prototypes and stuff, but not '\xHH' hex character constants.
2504 These don't provoke an error unfortunately, instead are silently treated
2505 as 'x'. The following induces an error, until -std1 is added to get
2506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2507 array size at least. It's necessary to write '\x00'==0 to get something
2508 that's true only with -std1. */
2509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2511 int test (int i, double x);
2512 struct s1 {int (*f) (int a);};
2513 struct s2 {int (*f) (double a);};
2514 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2520 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2525 # Don't try gcc -ansi; that turns off useful extensions and
2526 # breaks some systems' header files.
2527 # AIX -qlanglvl=ansi
2528 # Ultrix and OSF/1 -std1
2529 # HP-UX 10.20 and later -Ae
2530 # HP-UX older versions -Aa -D_HPUX_SOURCE
2531 # SVR4 -Xc -D__EXTENSIONS__
2532 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534 CC="$ac_save_CC $ac_arg"
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_prog_cc_stdc=$ac_arg
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2564 rm -f conftest.err conftest.$ac_objext
2566 rm -f conftest.$ac_ext conftest.$ac_objext
2571 case "x$ac_cv_prog_cc_stdc" in
2573 echo "$as_me:$LINENO: result: none needed" >&5
2574 echo "${ECHO_T}none needed" >&6 ;;
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578 CC="$CC $ac_cv_prog_cc_stdc" ;;
2581 # Some people use a C++ compiler to compile C. Since we use `exit',
2582 # in C++ we need to declare it. In case someone uses the same compiler
2583 # for both compiling C and C++ we need to have the C++ compiler decide
2584 # the declaration of exit, since it's the most demanding environment.
2585 cat >conftest.$ac_ext <<_ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2594 grep -v '^ *+' conftest.er1 >conftest.err
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 for ac_declaration in \
2614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2685 grep -v '^ *+' conftest.er1 >conftest.err
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712 if test -n "$ac_declaration"; then
2713 echo '#ifdef __cplusplus' >>confdefs.h
2714 echo $ac_declaration >>confdefs.h
2715 echo '#endif' >>confdefs.h
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2732 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2733 if test "${ac_cv_c_bigendian+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 # See if sys/param.h defines the BYTE_ORDER macro.
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743 #include <sys/types.h>
2744 #include <sys/param.h>
2749 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 # It does; now see whether it defined to BIG_ENDIAN or not.
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2786 #include <sys/types.h>
2787 #include <sys/param.h>
2792 #if BYTE_ORDER != BIG_ENDIAN
2800 rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1 >conftest.err
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -z "$ac_c_werror_flag"
2810 || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_c_bigendian=yes
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 ac_cv_c_bigendian=no
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2834 # It does not; compile a test program.
2835 if test "$cross_compiling" = yes; then
2836 # try to guess the endianness by grepping values into an object file
2837 ac_cv_c_bigendian=unknown
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2844 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2845 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2846 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2847 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2848 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2849 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2853 _ascii (); _ebcdic ();
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2862 grep -v '^ *+' conftest.er1 >conftest.err
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_c_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2880 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2881 ac_cv_c_bigendian=yes
2883 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2884 if test "$ac_cv_c_bigendian" = unknown; then
2885 ac_cv_c_bigendian=no
2887 # finding both strings is unlikely to happen, but who knows?
2888 ac_cv_c_bigendian=unknown
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 cat >conftest.$ac_ext <<_ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2907 /* Are we little or big endian? From Harbison&Steele. */
2911 char c[sizeof (long)];
2914 exit (u.c[sizeof (long) - 1] == 1);
2917 rm -f conftest$ac_exeext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 ac_cv_c_bigendian=no
2930 echo "$as_me: program exited with status $ac_status" >&5
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2935 ac_cv_c_bigendian=yes
2937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2942 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2943 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2944 case $ac_cv_c_bigendian in
2952 { { echo "$as_me:$LINENO: error: unknown endianness
2953 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2954 echo "$as_me: error: unknown endianness
2955 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2956 { (exit 1); exit 1; }; } ;;
2961 # Check whether --enable-optimized or --disable-optimized was given.
2962 if test "${enable_optimized+set}" = set; then
2963 enableval="$enable_optimized"
2968 if test ${enableval} = "no" ; then
2972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2976 # Check whether --enable-jit or --disable-jit was given.
2977 if test "${enable_jit+set}" = set; then
2978 enableval="$enable_jit"
2983 if test ${enableval} = "no"
2988 case "$llvm_cv_target_arch" in
2989 x86) JIT=TARGET_HAS_JIT=1
2991 Sparc) JIT=TARGET_HAS_JIT=1
2993 PowerPC) JIT=TARGET_HAS_JIT=1
3002 # Check whether --enable-doxygen or --disable-doxygen was given.
3003 if test "${enable_doxygen+set}" = set; then
3004 enableval="$enable_doxygen"
3009 case "$enableval" in
3010 yes) ENABLE_DOXYGEN=1
3012 no) ENABLE_DOXYGEN=0
3014 default) ENABLE_DOXYGEN=0
3016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3017 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3018 { (exit 1); exit 1; }; } ;;
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3028 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3029 # On Suns, sometimes $CPP names a directory.
3030 if test -n "$CPP" && test -d "$CPP"; then
3033 if test -z "$CPP"; then
3034 if test "${ac_cv_prog_CPP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 # Double quotes because CPP needs to be expanded
3038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3041 for ac_c_preproc_warn_flag in '' yes
3043 # Use a header file that comes with gcc, so configuring glibc
3044 # with a fresh cross-compiler works.
3045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 # <limits.h> exists even on freestanding compilers.
3047 # On the NeXT, cc -E runs the code through the compiler's parser,
3048 # not just through cpp. "Syntax error" is here to catch this case.
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3056 # include <limits.h>
3058 # include <assert.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 if test -z "$ac_cpp_err"; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Broken: fails on valid input.
3088 rm -f conftest.err conftest.$ac_ext
3090 # OK, works on sane cases. Now check whether non-existent headers
3091 # can be detected and how.
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 #include <ac_nonexistent.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 if test -z "$ac_cpp_err"; then
3118 # Broken: success on invalid input.
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Passes both tests.
3128 rm -f conftest.err conftest.$ac_ext
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then
3145 echo "$as_me:$LINENO: result: $CPP" >&5
3146 echo "${ECHO_T}$CPP" >&6
3148 for ac_c_preproc_warn_flag in '' yes
3150 # Use a header file that comes with gcc, so configuring glibc
3151 # with a fresh cross-compiler works.
3152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3153 # <limits.h> exists even on freestanding compilers.
3154 # On the NeXT, cc -E runs the code through the compiler's parser,
3155 # not just through cpp. "Syntax error" is here to catch this case.
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3163 # include <limits.h>
3165 # include <assert.h>
3169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null; then
3177 if test -s conftest.err; then
3178 ac_cpp_err=$ac_c_preproc_warn_flag
3179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3186 if test -z "$ac_cpp_err"; then
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 # Broken: fails on valid input.
3195 rm -f conftest.err conftest.$ac_ext
3197 # OK, works on sane cases. Now check whether non-existent headers
3198 # can be detected and how.
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205 #include <ac_nonexistent.h>
3207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } >/dev/null; then
3215 if test -s conftest.err; then
3216 ac_cpp_err=$ac_c_preproc_warn_flag
3217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3224 if test -z "$ac_cpp_err"; then
3225 # Broken: success on invalid input.
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 # Passes both tests.
3235 rm -f conftest.err conftest.$ac_ext
3238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3239 rm -f conftest.err conftest.$ac_ext
3240 if $ac_preproc_ok; then
3243 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3246 See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_prog_CC+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 echo "$as_me:$LINENO: result: $CC" >&5
3293 echo "${ECHO_T}$CC" >&6
3295 echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6
3299 test -n "$CC" && break
3302 if test -z "$CC"; then
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CC="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3333 if test -n "$ac_ct_CC"; then
3334 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3335 echo "${ECHO_T}$ac_ct_CC" >&6
3337 echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6
3341 test -n "$ac_ct_CC" && break
3348 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: no acceptable C compiler found in \$PATH
3351 See \`config.log' for more details." >&2;}
3352 { (exit 1); exit 1; }; }
3354 # Provide some information about the compiler.
3355 echo "$as_me:$LINENO:" \
3356 "checking for C compiler version" >&5
3357 ac_compiler=`set X $ac_compile; echo $2`
3358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3359 (eval $ac_compiler --version </dev/null >&5) 2>&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }
3363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3364 (eval $ac_compiler -v </dev/null >&5) 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3369 (eval $ac_compiler -V </dev/null >&5) 2>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3374 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3375 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3376 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3432 GCC=`test $ac_compiler_gnu = yes && echo yes`
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3436 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3437 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3438 if test "${ac_cv_prog_cc_g+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try='test -z "$ac_c_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3488 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3489 if test "$ac_test_CFLAGS" = set; then
3490 CFLAGS=$ac_save_CFLAGS
3491 elif test $ac_cv_prog_cc_g = yes; then
3492 if test "$GCC" = yes; then
3498 if test "$GCC" = yes; then
3504 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3505 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3506 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_cv_prog_cc_stdc=no
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3519 #include <sys/types.h>
3520 #include <sys/stat.h>
3521 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3522 struct buf { int x; };
3523 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3524 static char *e (p, i)
3530 static char *f (char * (*g) (char **, int), char **p, ...)
3535 s = g (p, va_arg (v,int));
3540 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3541 function prototypes and stuff, but not '\xHH' hex character constants.
3542 These don't provoke an error unfortunately, instead are silently treated
3543 as 'x'. The following induces an error, until -std1 is added to get
3544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3545 array size at least. It's necessary to write '\x00'==0 to get something
3546 that's true only with -std1. */
3547 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3549 int test (int i, double x);
3550 struct s1 {int (*f) (int a);};
3551 struct s2 {int (*f) (double a);};
3552 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3558 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3563 # Don't try gcc -ansi; that turns off useful extensions and
3564 # breaks some systems' header files.
3565 # AIX -qlanglvl=ansi
3566 # Ultrix and OSF/1 -std1
3567 # HP-UX 10.20 and later -Ae
3568 # HP-UX older versions -Aa -D_HPUX_SOURCE
3569 # SVR4 -Xc -D__EXTENSIONS__
3570 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572 CC="$ac_save_CC $ac_arg"
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_prog_cc_stdc=$ac_arg
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3602 rm -f conftest.err conftest.$ac_objext
3604 rm -f conftest.$ac_ext conftest.$ac_objext
3609 case "x$ac_cv_prog_cc_stdc" in
3611 echo "$as_me:$LINENO: result: none needed" >&5
3612 echo "${ECHO_T}none needed" >&6 ;;
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3615 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3616 CC="$CC $ac_cv_prog_cc_stdc" ;;
3619 # Some people use a C++ compiler to compile C. Since we use `exit',
3620 # in C++ we need to declare it. In case someone uses the same compiler
3621 # for both compiling C and C++ we need to have the C++ compiler decide
3622 # the declaration of exit, since it's the most demanding environment.
3623 cat >conftest.$ac_ext <<_ACEOF
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 for ac_declaration in \
3652 'extern "C" void std::exit (int) throw (); using std::exit;' \
3653 'extern "C" void std::exit (int); using std::exit;' \
3654 'extern "C" void exit (int) throw ();' \
3655 'extern "C" void exit (int);' \
3658 cat >conftest.$ac_ext <<_ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_c_werror_flag"
3684 || test ! -s conftest.err'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750 if test -n "$ac_declaration"; then
3751 echo '#ifdef __cplusplus' >>confdefs.h
3752 echo $ac_declaration >>confdefs.h
3753 echo '#endif' >>confdefs.h
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 ac_cpp='$CXXCPP $CPPFLAGS'
3770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3773 if test -n "$ac_tool_prefix"; then
3774 for ac_prog in $CCC g++
3776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_CXX+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$CXX"; then
3784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 if test -n "$CXX"; then
3804 echo "$as_me:$LINENO: result: $CXX" >&5
3805 echo "${ECHO_T}$CXX" >&6
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3811 test -n "$CXX" && break
3814 if test -z "$CXX"; then
3816 for ac_prog in $CCC g++
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 if test -n "$ac_ct_CXX"; then
3826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_CXX="$ac_prog"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3845 if test -n "$ac_ct_CXX"; then
3846 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3847 echo "${ECHO_T}$ac_ct_CXX" >&6
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3853 test -n "$ac_ct_CXX" && break
3855 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3861 # Provide some information about the compiler.
3862 echo "$as_me:$LINENO:" \
3863 "checking for C++ compiler version" >&5
3864 ac_compiler=`set X $ac_compile; echo $2`
3865 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3866 (eval $ac_compiler --version </dev/null >&5) 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }
3870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3871 (eval $ac_compiler -v </dev/null >&5) 2>&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }
3875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3876 (eval $ac_compiler -V </dev/null >&5) 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }
3881 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3882 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3883 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_cxx_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3937 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3938 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3939 GXX=`test $ac_compiler_gnu = yes && echo yes`
3940 ac_test_CXXFLAGS=${CXXFLAGS+set}
3941 ac_save_CXXFLAGS=$CXXFLAGS
3943 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3944 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3945 if test "${ac_cv_prog_cxx_g+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_cxx_werror_flag"
3973 || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_prog_cxx_g=yes
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3995 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3996 if test "$ac_test_CXXFLAGS" = set; then
3997 CXXFLAGS=$ac_save_CXXFLAGS
3998 elif test $ac_cv_prog_cxx_g = yes; then
3999 if test "$GXX" = yes; then
4005 if test "$GXX" = yes; then
4011 for ac_declaration in \
4013 'extern "C" void std::exit (int) throw (); using std::exit;' \
4014 'extern "C" void std::exit (int); using std::exit;' \
4015 'extern "C" void exit (int) throw ();' \
4016 'extern "C" void exit (int);' \
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_cxx_werror_flag"
4045 || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try='test -z "$ac_cxx_werror_flag"
4090 || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 if test -n "$ac_declaration"; then
4112 echo '#ifdef __cplusplus' >>confdefs.h
4113 echo $ac_declaration >>confdefs.h
4114 echo '#endif' >>confdefs.h
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 echo "$as_me:$LINENO: checking " >&5
4124 echo $ECHO_N "checking ... $ECHO_C" >&6
4125 if test "${ac_cv_has_flex+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 for ac_prog in flex lex
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_LEX+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 if test -n "$LEX"; then
4138 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_LEX="$ac_prog"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 if test -n "$LEX"; then
4158 echo "$as_me:$LINENO: result: $LEX" >&5
4159 echo "${ECHO_T}$LEX" >&6
4161 echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4165 test -n "$LEX" && break
4167 test -n "$LEX" || LEX=":"
4169 if test -z "$LEXLIB"
4171 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4172 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4173 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 ac_check_lib_save_LIBS=$LIBS
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4185 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4204 grep -v '^ *+' conftest.er1 >conftest.err
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 ac_cv_lib_fl_yywrap=yes
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ac_cv_lib_fl_yywrap=no
4229 rm -f conftest.err conftest.$ac_objext \
4230 conftest$ac_exeext conftest.$ac_ext
4231 LIBS=$ac_check_lib_save_LIBS
4233 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4234 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4235 if test $ac_cv_lib_fl_yywrap = yes; then
4238 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4239 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4240 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_check_lib_save_LIBS=$LIBS
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4252 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_l_yywrap=yes
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_lib_l_yywrap=no
4296 rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
4298 LIBS=$ac_check_lib_save_LIBS
4300 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4301 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4302 if test $ac_cv_lib_l_yywrap = yes; then
4310 if test "x$LEX" != "x:"; then
4311 echo "$as_me:$LINENO: checking lex output file root" >&5
4312 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4313 if test "${ac_cv_prog_lex_root+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 # The minimal lex program is just a single line: %%. But some broken lexes
4317 # (Solaris, I think it was) want two %% lines, so accommodate them.
4318 cat >conftest.l <<_ACEOF
4322 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4323 (eval $LEX conftest.l) 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }
4327 if test -f lex.yy.c; then
4328 ac_cv_prog_lex_root=lex.yy
4329 elif test -f lexyy.c; then
4330 ac_cv_prog_lex_root=lexyy
4332 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4333 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4334 { (exit 1); exit 1; }; }
4337 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4338 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4340 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4342 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4343 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4344 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 # POSIX says lex can declare yytext either as a pointer or an array; the
4348 # default is implementation-dependent. Figure out which it is, since
4349 # not all implementations provide the %pointer and %array declarations.
4350 ac_cv_prog_lex_yytext_pointer=no
4351 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4353 LIBS="$LIBS $LEXLIB"
4354 cat >conftest.$ac_ext <<_ACEOF
4355 `cat $LEX_OUTPUT_ROOT.c`
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359 (eval $ac_link) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_prog_lex_yytext_pointer=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4385 rm -f conftest.err conftest.$ac_objext \
4386 conftest$ac_exeext conftest.$ac_ext
4388 rm -f "${LEX_OUTPUT_ROOT}.c"
4391 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4392 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4393 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4395 cat >>confdefs.h <<\_ACEOF
4396 #define YYTEXT_POINTER 1
4404 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4405 echo "${ECHO_T}$ac_cv_has_flex" >&6
4406 if test "$LEX" != "flex"; then
4407 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4408 echo "$as_me: error: flex not found but required" >&2;}
4409 { (exit 1); exit 1; }; }
4415 echo "$as_me:$LINENO: checking " >&5
4416 echo $ECHO_N "checking ... $ECHO_C" >&6
4417 if test "${llvm_cv_has_bison+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 for ac_prog in 'bison -y' byacc
4422 # Extract the first word of "$ac_prog", so it can be a program name with args.
4423 set dummy $ac_prog; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_prog_YACC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$YACC"; then
4430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_YACC="$ac_prog"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 YACC=$ac_cv_prog_YACC
4449 if test -n "$YACC"; then
4450 echo "$as_me:$LINENO: result: $YACC" >&5
4451 echo "${ECHO_T}$YACC" >&6
4453 echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4457 test -n "$YACC" && break
4459 test -n "$YACC" || YACC="yacc"
4462 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4463 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4464 if test "$YACC" != "bison -y"; then
4465 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4466 echo "$as_me: error: bison not found but required" >&2;}
4467 { (exit 1); exit 1; }; }
4473 echo "$as_me:$LINENO: checking for GNU make" >&5
4474 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4475 if test "${llvm_cv_gnu_make_command+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 llvm_cv_gnu_make_command=''
4479 for a in "$MAKE" make gmake gnumake ; do
4480 if test -z "$a" ; then continue ; fi ;
4481 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4483 llvm_cv_gnu_make_command=$a ;
4488 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4489 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4490 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4494 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4495 echo "${ECHO_T}\"Not found\"" >&6;
4499 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4500 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4502 if test "$LN_S" = "ln -s"; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504 echo "${ECHO_T}yes" >&6
4506 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4507 echo "${ECHO_T}no, using $LN_S" >&6
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542 if test -n "$CMP"; then
4543 echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4550 # Extract the first word of "cp", so it can be a program name with args.
4551 set dummy cp; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_path_CP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4582 if test -n "$CP"; then
4583 echo "$as_me:$LINENO: result: $CP" >&5
4584 echo "${ECHO_T}$CP" >&6
4586 echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4590 # Extract the first word of "date", so it can be a program name with args.
4591 set dummy date; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_path_DATE+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4620 DATE=$ac_cv_path_DATE
4622 if test -n "$DATE"; then
4623 echo "$as_me:$LINENO: result: $DATE" >&5
4624 echo "${ECHO_T}$DATE" >&6
4626 echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4630 # Extract the first word of "find", so it can be a program name with args.
4631 set dummy find; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_path_FIND+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4660 FIND=$ac_cv_path_FIND
4662 if test -n "$FIND"; then
4663 echo "$as_me:$LINENO: result: $FIND" >&5
4664 echo "${ECHO_T}$FIND" >&6
4666 echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4670 # Extract the first word of "grep", so it can be a program name with args.
4671 set dummy grep; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_path_GREP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4700 GREP=$ac_cv_path_GREP
4702 if test -n "$GREP"; then
4703 echo "$as_me:$LINENO: result: $GREP" >&5
4704 echo "${ECHO_T}$GREP" >&6
4706 echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4710 # Extract the first word of "llvm-gcc", so it can be a program name with args.
4711 set dummy llvm-gcc; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_LLVMGCC+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
4740 LLVMGCC=$ac_cv_path_LLVMGCC
4742 if test -n "$LLVMGCC"; then
4743 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
4744 echo "${ECHO_T}$LLVMGCC" >&6
4746 echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6
4750 # Extract the first word of "llvm-g++", so it can be a program name with args.
4751 set dummy llvm-g++; ac_word=$2
4752 echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754 if test "${ac_cv_path_LLVMGXX+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
4780 LLVMGXX=$ac_cv_path_LLVMGXX
4782 if test -n "$LLVMGXX"; then
4783 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
4784 echo "${ECHO_T}$LLVMGXX" >&6
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 # Extract the first word of "mkdir", so it can be a program name with args.
4791 set dummy mkdir; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_path_MKDIR+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4820 MKDIR=$ac_cv_path_MKDIR
4822 if test -n "$MKDIR"; then
4823 echo "$as_me:$LINENO: result: $MKDIR" >&5
4824 echo "${ECHO_T}$MKDIR" >&6
4826 echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4830 # Extract the first word of "mv", so it can be a program name with args.
4831 set dummy mv; ac_word=$2
4832 echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834 if test "${ac_cv_path_MV+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4862 if test -n "$MV"; then
4863 echo "$as_me:$LINENO: result: $MV" >&5
4864 echo "${ECHO_T}$MV" >&6
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4870 # Extract the first word of "pax", so it can be a program name with args.
4871 set dummy pax; ac_word=$2
4872 echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_path_PAX+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4902 if test -n "$PAX"; then
4903 echo "$as_me:$LINENO: result: $PAX" >&5
4904 echo "${ECHO_T}$PAX" >&6
4906 echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4910 if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_RANLIB+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 if test -n "$RANLIB"; then
4919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 RANLIB=$ac_cv_prog_RANLIB
4938 if test -n "$RANLIB"; then
4939 echo "$as_me:$LINENO: result: $RANLIB" >&5
4940 echo "${ECHO_T}$RANLIB" >&6
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4947 if test -z "$ac_cv_prog_RANLIB"; then
4948 ac_ct_RANLIB=$RANLIB
4949 # Extract the first word of "ranlib", so it can be a program name with args.
4950 set dummy ranlib; ac_word=$2
4951 echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 if test -n "$ac_ct_RANLIB"; then
4957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_ac_ct_RANLIB="ranlib"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4977 if test -n "$ac_ct_RANLIB"; then
4978 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4979 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4981 echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6
4985 RANLIB=$ac_ct_RANLIB
4987 RANLIB="$ac_cv_prog_RANLIB"
4990 # Extract the first word of "rm", so it can be a program name with args.
4991 set dummy rm; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_path_RM+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5022 if test -n "$RM"; then
5023 echo "$as_me:$LINENO: result: $RM" >&5
5024 echo "${ECHO_T}$RM" >&6
5026 echo "$as_me:$LINENO: result: no" >&5
5027 echo "${ECHO_T}no" >&6
5030 # Extract the first word of "sed", so it can be a program name with args.
5031 set dummy sed; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_path_SED+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5062 if test -n "$SED"; then
5063 echo "$as_me:$LINENO: result: $SED" >&5
5064 echo "${ECHO_T}$SED" >&6
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5070 # Extract the first word of "tar", so it can be a program name with args.
5071 set dummy tar; ac_word=$2
5072 echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074 if test "${ac_cv_path_TAR+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5102 if test -n "$TAR"; then
5103 echo "$as_me:$LINENO: result: $TAR" >&5
5104 echo "${ECHO_T}$TAR" >&6
5106 echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6
5111 # Find a good install program. We prefer a C program (faster),
5112 # so one script is as good as another. But avoid the broken or
5113 # incompatible versions:
5114 # SysV /etc/install, /usr/sbin/install
5115 # SunOS /usr/etc/install
5116 # IRIX /sbin/install
5118 # AmigaOS /C/install, which installs bootblocks on floppy discs
5119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5122 # OS/2's system install, which has a completely different semantic
5123 # ./install, which can be erroneously created by make from ./install.sh.
5124 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5126 if test -z "$INSTALL"; then
5127 if test "${ac_cv_path_install+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 # Account for people who put trailing slashes in PATH elements.
5137 ./ | .// | /cC/* | \
5138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5142 # OSF1 and SCO ODT 3.0 have their own names for install.
5143 # Don't use installbsd from OSF since it installs stuff as root
5145 for ac_prog in ginstall scoinst install; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5148 if test $ac_prog = install &&
5149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5150 # AIX install. It has an incompatible calling convention.
5152 elif test $ac_prog = install &&
5153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5154 # program-specific install script used by HP pwplus--don't use.
5157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5169 if test "${ac_cv_path_install+set}" = set; then
5170 INSTALL=$ac_cv_path_install
5172 # As a last resort, use the slow shell script. We don't cache a
5173 # path for INSTALL within a source directory, because that will
5174 # break other packages using the cache if that directory is
5175 # removed, or if the path is relative.
5176 INSTALL=$ac_install_sh
5179 echo "$as_me:$LINENO: result: $INSTALL" >&5
5180 echo "${ECHO_T}$INSTALL" >&6
5182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5183 # It thinks the first close brace ends the variable substitution.
5184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5191 # Extract the first word of "bzip2", so it can be a program name with args.
5192 set dummy bzip2; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_path_BZIP2+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5221 BZIP2=$ac_cv_path_BZIP2
5223 if test -n "$BZIP2"; then
5224 echo "$as_me:$LINENO: result: $BZIP2" >&5
5225 echo "${ECHO_T}$BZIP2" >&6
5227 echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6
5231 # Extract the first word of "dot", so it can be a program name with args.
5232 set dummy dot; ac_word=$2
5233 echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235 if test "${ac_cv_path_DOT+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5263 if test -n "$DOT"; then
5264 echo "$as_me:$LINENO: result: $DOT" >&5
5265 echo "${ECHO_T}$DOT" >&6
5267 echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6
5271 # Extract the first word of "doxygen", so it can be a program name with args.
5272 set dummy doxygen; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5301 DOXYGEN=$ac_cv_path_DOXYGEN
5303 if test -n "$DOXYGEN"; then
5304 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5305 echo "${ECHO_T}$DOXYGEN" >&6
5307 echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6
5311 # Extract the first word of "etags", so it can be a program name with args.
5312 set dummy etags; ac_word=$2
5313 echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315 if test "${ac_cv_path_ETAGS+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5341 ETAGS=$ac_cv_path_ETAGS
5343 if test -n "$ETAGS"; then
5344 echo "$as_me:$LINENO: result: $ETAGS" >&5
5345 echo "${ECHO_T}$ETAGS" >&6
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 # Extract the first word of "groff", so it can be a program name with args.
5352 set dummy groff; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_path_GROFF+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5381 GROFF=$ac_cv_path_GROFF
5383 if test -n "$GROFF"; then
5384 echo "$as_me:$LINENO: result: $GROFF" >&5
5385 echo "${ECHO_T}$GROFF" >&6
5387 echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6
5391 # Extract the first word of "gzip", so it can be a program name with args.
5392 set dummy gzip; ac_word=$2
5393 echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395 if test "${ac_cv_path_GZIP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5421 GZIP=$ac_cv_path_GZIP
5423 if test -n "$GZIP"; then
5424 echo "$as_me:$LINENO: result: $GZIP" >&5
5425 echo "${ECHO_T}$GZIP" >&6
5427 echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6
5431 # Extract the first word of "pod2html", so it can be a program name with args.
5432 set dummy pod2html; ac_word=$2
5433 echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435 if test "${ac_cv_path_POD2HTML+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5461 POD2HTML=$ac_cv_path_POD2HTML
5463 if test -n "$POD2HTML"; then
5464 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5465 echo "${ECHO_T}$POD2HTML" >&6
5467 echo "$as_me:$LINENO: result: no" >&5
5468 echo "${ECHO_T}no" >&6
5471 # Extract the first word of "pod2man", so it can be a program name with args.
5472 set dummy pod2man; ac_word=$2
5473 echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475 if test "${ac_cv_path_POD2MAN+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5501 POD2MAN=$ac_cv_path_POD2MAN
5503 if test -n "$POD2MAN"; then
5504 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5505 echo "${ECHO_T}$POD2MAN" >&6
5507 echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6
5511 # Extract the first word of "runtest", so it can be a program name with args.
5512 set dummy runtest; ac_word=$2
5513 echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515 if test "${ac_cv_path_RUNTEST+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5541 RUNTEST=$ac_cv_path_RUNTEST
5543 if test -n "$RUNTEST"; then
5544 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5545 echo "${ECHO_T}$RUNTEST" >&6
5547 echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6
5553 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5554 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5556 # Check whether --with-tclinclude or --without-tclinclude was given.
5557 if test "${with_tclinclude+set}" = set; then
5558 withval="$with_tclinclude"
5559 with_tclinclude=${withval}
5563 if test "${ac_cv_path_tclsh+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 if test x"${with_tclinclude}" != x ; then
5568 if test -f ${with_tclinclude}/tclsh ; then
5569 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5570 elif test -f ${with_tclinclude}/src/tclsh ; then
5571 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5573 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5574 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5575 { (exit 1); exit 1; }; }
5579 if test x"${ac_cv_path_tclsh}" = x ; then
5580 echo "$as_me:$LINENO: result: none" >&5
5581 echo "${ECHO_T}none" >&6
5582 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
5584 # Extract the first word of "$ac_prog", so it can be a program name with args.
5585 set dummy $ac_prog; ac_word=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_TCLSH+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 TCLSH=$ac_cv_path_TCLSH
5615 if test -n "$TCLSH"; then
5616 echo "$as_me:$LINENO: result: $TCLSH" >&5
5617 echo "${ECHO_T}$TCLSH" >&6
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5623 test -n "$TCLSH" && break
5626 if test x"${TCLSH}" = x ; then
5627 ac_cv_path_tclsh='';
5629 ac_cv_path_tclsh="${TCLSH}";
5632 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5633 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5634 TCLSH="${ac_cv_path_tclsh}"
5640 # Extract the first word of "zip", so it can be a program name with args.
5641 set dummy zip; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_path_ZIP+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5672 if test -n "$ZIP"; then
5673 echo "$as_me:$LINENO: result: $ZIP" >&5
5674 echo "${ECHO_T}$ZIP" >&6
5676 echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5681 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5682 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5683 if test "${llvm_cv_link_use_r+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 ac_cpp='$CPP $CPPFLAGS'
5688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693 CFLAGS="$CFLAGS -Wl,-R."
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5704 int main() { return 0; }
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } &&
5718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest$ac_exeext'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
5731 llvm_cv_link_use_r=yes
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5736 llvm_cv_link_use_r=no
5738 rm -f conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5750 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5751 if test "$llvm_cv_link_use_r" = yes ; then
5753 cat >>confdefs.h <<\_ACEOF
5754 #define HAVE_LINK_R 1
5762 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5763 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5764 if test "${ac_cv_c_const+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5777 /* FIXME: Include the comments suggested by Paul. */
5779 /* Ultrix mips cc rejects this. */
5780 typedef int charset[2];
5782 /* SunOS 4.1.1 cc rejects this. */
5783 char const *const *ccp;
5785 /* NEC SVR4.0.2 mips cc rejects this. */
5786 struct point {int x, y;};
5787 static struct point const zero = {0,0};
5788 /* AIX XL C 1.02.0.0 rejects this.
5789 It does not let you subtract one const X* pointer from another in
5790 an arm of an if-expression whose if-part is not a constant
5792 const char *g = "string";
5793 ccp = &g + (g ? g-g : 0);
5794 /* HPUX 7.0 cc rejects these. */
5797 ccp = (char const *const *) p;
5798 { /* SCO 3.2v4 cc rejects this. */
5800 char const *s = 0 ? (char *) 0 : (char const *) 0;
5804 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5806 const int *foo = &x[0];
5809 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5810 typedef const int *iptr;
5814 { /* AIX XL C 1.02.0.0 rejects this saying
5815 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5816 struct s { int j; const int *ap[3]; };
5817 struct s *b; b->j = 5;
5819 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5860 echo "${ECHO_T}$ac_cv_c_const" >&6
5861 if test $ac_cv_c_const = no; then
5863 cat >>confdefs.h <<\_ACEOF
5870 echo "$as_me:$LINENO: checking for egrep" >&5
5871 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5872 if test "${ac_cv_prog_egrep+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5876 then ac_cv_prog_egrep='grep -E'
5877 else ac_cv_prog_egrep='egrep'
5880 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5881 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5882 EGREP=$ac_cv_prog_egrep
5885 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5886 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5887 if test "${ac_cv_header_stdc+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest.$ac_objext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_header_stdc=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_cv_header_stdc=no
5938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 if test $ac_cv_header_stdc = yes; then
5941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5942 cat >conftest.$ac_ext <<_ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 $EGREP "memchr" >/dev/null 2>&1; then
5955 ac_cv_header_stdc=no
5961 if test $ac_cv_header_stdc = yes; then
5962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 $EGREP "free" >/dev/null 2>&1; then
5976 ac_cv_header_stdc=no
5982 if test $ac_cv_header_stdc = yes; then
5983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5984 if test "$cross_compiling" = yes; then
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5994 #if ((' ' & 0x0FF) == 0x020)
5995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998 # define ISLOWER(c) \
5999 (('a' <= (c) && (c) <= 'i') \
6000 || ('j' <= (c) && (c) <= 'r') \
6001 || ('s' <= (c) && (c) <= 'z'))
6002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6010 for (i = 0; i < 256; i++)
6011 if (XOR (islower (i), ISLOWER (i))
6012 || toupper (i) != TOUPPER (i))
6017 rm -f conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6030 echo "$as_me: program exited with status $ac_status" >&5
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6035 ac_cv_header_stdc=no
6037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6042 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6043 if test $ac_cv_header_stdc = yes; then
6045 cat >>confdefs.h <<\_ACEOF
6046 #define STDC_HEADERS 1
6057 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6058 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6059 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6060 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 eval "$as_ac_Header=yes"
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 eval "$as_ac_Header=no"
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6116 cat >>confdefs.h <<_ACEOF
6117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6120 ac_header_dirent=$ac_hdr; break
6124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6125 if test $ac_header_dirent = dirent.h; then
6126 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6128 if test "${ac_cv_search_opendir+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 ac_func_search_save_LIBS=$LIBS
6132 ac_cv_search_opendir=no
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_search_opendir="none required"
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6183 rm -f conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 if test "$ac_cv_search_opendir" = no; then
6186 for ac_lib in dir; do
6187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_search_opendir="-l$ac_lib"
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6239 rm -f conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_func_search_save_LIBS
6245 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6246 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6247 if test "$ac_cv_search_opendir" != no; then
6248 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6253 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6254 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6255 if test "${ac_cv_search_opendir+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 ac_func_search_save_LIBS=$LIBS
6259 ac_cv_search_opendir=no
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6267 /* Override any gcc2 internal prototype to avoid an error. */
6271 /* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6282 rm -f conftest.$ac_objext conftest$ac_exeext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_c_werror_flag"
6292 || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_search_opendir="none required"
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6310 rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312 if test "$ac_cv_search_opendir" = no; then
6314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6322 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6337 rm -f conftest.$ac_objext conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>conftest.er1
6341 grep -v '^ *+' conftest.er1 >conftest.err
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -z "$ac_c_werror_flag"
6347 || test ! -s conftest.err'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_search_opendir="-l$ac_lib"
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6366 rm -f conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6370 LIBS=$ac_func_search_save_LIBS
6372 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6373 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6374 if test "$ac_cv_search_opendir" != no; then
6375 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6391 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6392 inttypes.h stdint.h unistd.h
6394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6408 #include <$ac_header>
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag"
6420 || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 eval "$as_ac_Header=yes"
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 eval "$as_ac_Header=no"
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454 for ac_header in dlfcn.h
6456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6458 echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 # Is the header compilable?
6467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 #include <$ac_header>
6478 rm -f conftest.$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480 (eval $ac_compile) 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_header_compiler=yes
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_header_compiler=no
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509 echo "${ECHO_T}$ac_header_compiler" >&6
6511 # Is the header present?
6512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <$ac_header>
6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev/null; then
6530 if test -s conftest.err; then
6531 ac_cpp_err=$ac_c_preproc_warn_flag
6532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6539 if test -z "$ac_cpp_err"; then
6540 ac_header_preproc=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_header_preproc=no
6547 rm -f conftest.err conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549 echo "${ECHO_T}$ac_header_preproc" >&6
6551 # So? What about this header?
6552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc=yes
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6575 ## ----------------------------------- ##
6576 ## Report this to llvmbugs@cs.uiuc.edu ##
6577 ## ----------------------------------- ##
6580 sed "s/^/$as_me: WARNING: /" >&2
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 eval "$as_ac_Header=\$ac_header_preproc"
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6604 if test "${enable_ltdl_install+set}" = set; then
6605 enableval="$enable_ltdl_install"
6611 if test x"${enable_ltdl_install-no}" != xno; then
6613 INSTALL_LTDL_FALSE='#'
6615 INSTALL_LTDL_TRUE='#'
6621 if test x"${enable_ltdl_convenience-no}" != xno; then
6622 CONVENIENCE_LTDL_TRUE=
6623 CONVENIENCE_LTDL_FALSE='#'
6625 CONVENIENCE_LTDL_TRUE='#'
6626 CONVENIENCE_LTDL_FALSE=
6630 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6631 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6633 libname_spec='lib$name'
6641 shlibpath_overrides_runpath=unknown
6643 dynamic_linker="$host_os ld.so"
6644 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6645 if test "$GCC" = yes; then
6646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6647 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6648 # if the path contains ";" then we assume it to be the separator
6649 # otherwise default to the standard path separator (i.e. ":") - it is
6650 # assumed that no part of a normal pathname contains ";" but that should
6651 # okay in the real world where ";" in dirpaths is itself problematic.
6652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6659 need_lib_prefix=unknown
6660 hardcode_into_libs=no
6662 # when you set need_version to no, make sure it does not cause -set_version
6663 # flags to be left without arguments
6664 need_version=unknown
6669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6670 shlibpath_var=LIBPATH
6672 # AIX 3 has no versioning support, so we append a major version to the name.
6673 soname_spec='${libname}${release}${shared_ext}$major'
6680 hardcode_into_libs=yes
6681 if test "$host_cpu" = ia64; then
6682 # AIX 5 supports IA64
6683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6684 shlibpath_var=LD_LIBRARY_PATH
6686 # With GCC up to 2.95.x, collect2 would create an import file
6687 # for dependence libraries. The import file would start with
6688 # the line `#! .'. This would cause the generated library to
6689 # depend on `.', always an invalid library. This was fixed in
6690 # development snapshots of GCC prior to 3.0.
6692 aix4 | aix4.[01] | aix4.[01].*)
6693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6703 # soname into executable. Probably we can add versioning support to
6704 # collect2, so additional links can be useful in future.
6705 if test "$aix_use_runtimelinking" = yes; then
6706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6707 # instead of lib<name>.a to let people know that these are not
6708 # typical AIX shared libraries.
6709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6711 # We preserve .a as extension for shared libraries through AIX4.2
6712 # and later when we are not doing run time linking.
6713 library_names_spec='${libname}${release}.a $libname.a'
6714 soname_spec='${libname}${release}${shared_ext}$major'
6716 shlibpath_var=LIBPATH
6721 library_names_spec='$libname.ixlibrary $libname.a'
6722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6723 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'
6727 library_names_spec='${libname}${shared_ext}'
6728 dynamic_linker="$host_os ld.so"
6729 shlibpath_var=LIBRARY_PATH
6735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6736 soname_spec='${libname}${release}${shared_ext}$major'
6737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6738 shlibpath_var=LD_LIBRARY_PATH
6739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6741 # the default ld.so.conf also contains /usr/contrib/lib and
6742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6743 # libtool to hard-code these into programs
6746 cygwin* | mingw* | pw32*)
6747 version_type=windows
6752 case $GCC,$host_os in
6753 yes,cygwin* | yes,mingw* | yes,pw32*)
6754 library_names_spec='$libname.dll.a'
6755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6756 postinstall_cmds='base_file=`basename \${file}`~
6757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6758 dldir=$destdir/`dirname \$dlpath`~
6759 test -d \$dldir || mkdir -p \$dldir~
6760 $install_prog $dir/$dlname \$dldir/$dlname'
6761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6762 dlpath=$dir/\$dldll~
6764 shlibpath_overrides_runpath=yes
6768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6773 # MinGW DLLs use traditional 'lib' prefix
6774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6777 # It is most probably a Windows format PATH printed by
6778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6779 # path with ; separators, and with drive letters. We can handle the
6780 # drive letters (cygwin fileutils understands them), so leave them,
6781 # especially as we might pass files found there to a mingw objdump,
6782 # which wouldn't understand a cygwinified path. Ahh.
6783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6789 # pw32 DLLs use 'pw' prefix rather than 'lib'
6790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6799 dynamic_linker='Win32 ld.exe'
6800 # FIXME: first we should search . and the directory the executable is in
6804 darwin* | rhapsody*)
6805 dynamic_linker="$host_os dyld"
6809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6810 soname_spec='${libname}${release}${major}$shared_ext'
6811 shlibpath_overrides_runpath=yes
6812 shlibpath_var=DYLD_LIBRARY_PATH
6813 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6815 if test "$GCC" = yes; then
6816 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"`
6818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6828 soname_spec='${libname}${release}${shared_ext}$major'
6829 shlibpath_var=LD_LIBRARY_PATH
6840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6841 soname_spec='${libname}${release}${shared_ext}$major'
6842 shlibpath_var=LD_LIBRARY_PATH
6843 shlibpath_overrides_runpath=no
6844 hardcode_into_libs=yes
6845 dynamic_linker='GNU ld.so'
6849 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6850 version_type=freebsd-$objformat
6851 case $version_type in
6853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6862 shlibpath_var=LD_LIBRARY_PATH
6865 shlibpath_overrides_runpath=yes
6867 freebsd3.01* | freebsdelf3.01*)
6868 shlibpath_overrides_runpath=yes
6869 hardcode_into_libs=yes
6872 shlibpath_overrides_runpath=no
6873 hardcode_into_libs=yes
6882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6883 soname_spec='${libname}${release}${shared_ext}$major'
6884 shlibpath_var=LD_LIBRARY_PATH
6885 hardcode_into_libs=yes
6888 hpux9* | hpux10* | hpux11*)
6889 # Give a soname corresponding to the major version so that dld.sl refuses to
6890 # link against other versions.
6897 hardcode_into_libs=yes
6898 dynamic_linker="$host_os dld.so"
6899 shlibpath_var=LD_LIBRARY_PATH
6900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6902 soname_spec='${libname}${release}${shared_ext}$major'
6903 if test "X$HPUX_IA64_MODE" = X32; then
6904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6912 hardcode_into_libs=yes
6913 dynamic_linker="$host_os dld.sl"
6914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917 soname_spec='${libname}${release}${shared_ext}$major'
6918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6923 dynamic_linker="$host_os dld.sl"
6924 shlibpath_var=SHLIB_PATH
6925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6927 soname_spec='${libname}${release}${shared_ext}$major'
6930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6931 postinstall_cmds='chmod 555 $lib'
6934 irix5* | irix6* | nonstopux*)
6936 nonstopux*) version_type=nonstopux ;;
6938 if test "$lt_cv_prog_gnu_ld" = yes; then
6946 soname_spec='${libname}${release}${shared_ext}$major'
6947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6949 irix5* | nonstopux*)
6953 case $LD in # libtool.m4 will add one of these switches to LD
6954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6955 libsuff= shlibsuff= libmagic=32-bit;;
6956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6957 libsuff=32 shlibsuff=N32 libmagic=N32;;
6958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6960 *) libsuff= shlibsuff= libmagic=never-match;;
6964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6965 shlibpath_overrides_runpath=no
6966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6968 hardcode_into_libs=yes
6971 # No shared lib support for Linux oldld, aout, or coff.
6972 linux*oldld* | linux*aout* | linux*coff*)
6976 # This must be Linux ELF.
6981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6982 soname_spec='${libname}${release}${shared_ext}$major'
6983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6984 shlibpath_var=LD_LIBRARY_PATH
6985 shlibpath_overrides_runpath=no
6986 # This implies no fast_install, which is unacceptable.
6987 # Some rework will be needed to allow for fast_install
6988 # before this can be enabled.
6989 hardcode_into_libs=yes
6991 # Append ld.so.conf contents to the search path
6992 if test -f /etc/ld.so.conf; then
6993 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6997 # We used to test for /lib/ld.so.1 and disable shared libraries on
6998 # powerpc, because MkLinux only supported shared libraries with the
6999 # GNU dynamic linker. Since this was broken with cross compilers,
7000 # most powerpc-linux boxes support dynamic linking these days and
7001 # people can always --disable-shared, the test was removed, and we
7002 # assume the GNU/Linux dynamic linker is in use.
7003 dynamic_linker='GNU/Linux ld.so'
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=no
7014 hardcode_into_libs=yes
7015 dynamic_linker='GNU ld.so'
7022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7025 dynamic_linker='NetBSD (a.out) ld.so'
7027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7028 soname_spec='${libname}${release}${shared_ext}$major'
7029 dynamic_linker='NetBSD ld.elf_so'
7031 shlibpath_var=LD_LIBRARY_PATH
7032 shlibpath_overrides_runpath=yes
7033 hardcode_into_libs=yes
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039 shlibpath_var=LD_LIBRARY_PATH
7040 shlibpath_overrides_runpath=yes
7047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7048 soname_spec='${libname}${release}${shared_ext}$major'
7049 shlibpath_var=LD_LIBRARY_PATH
7050 shlibpath_overrides_runpath=yes
7057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7059 shlibpath_var=LD_LIBRARY_PATH
7060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7062 openbsd2.[89] | openbsd2.[89].*)
7063 shlibpath_overrides_runpath=no
7066 shlibpath_overrides_runpath=yes
7070 shlibpath_overrides_runpath=yes
7075 libname_spec='$name'
7078 library_names_spec='$libname${shared_ext} $libname.a'
7079 dynamic_linker='OS/2 ld.exe'
7080 shlibpath_var=LIBPATH
7083 osf3* | osf4* | osf5*)
7087 soname_spec='${libname}${release}${shared_ext}$major'
7088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7089 shlibpath_var=LD_LIBRARY_PATH
7090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7096 soname_spec='${libname}${release}${shared_ext}$major'
7097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7098 shlibpath_var=LD_LIBRARY_PATH
7105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7106 soname_spec='${libname}${release}${shared_ext}$major'
7107 shlibpath_var=LD_LIBRARY_PATH
7108 shlibpath_overrides_runpath=yes
7109 hardcode_into_libs=yes
7110 # ldd complains unless libraries are executable
7111 postinstall_cmds='chmod +x $lib'
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7118 shlibpath_var=LD_LIBRARY_PATH
7119 shlibpath_overrides_runpath=yes
7120 if test "$with_gnu_ld" = yes; then
7126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7129 soname_spec='${libname}${release}${shared_ext}$major'
7130 shlibpath_var=LD_LIBRARY_PATH
7131 case $host_vendor in
7133 shlibpath_overrides_runpath=no
7135 export_dynamic_flag_spec='${wl}-Blargedynsym'
7136 runpath_var=LD_RUN_PATH
7144 shlibpath_overrides_runpath=no
7145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7151 if test -d /usr/nec ;then
7153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7154 soname_spec='$libname${shared_ext}.$major'
7155 shlibpath_var=LD_LIBRARY_PATH
7161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7162 soname_spec='${libname}${release}${shared_ext}$major'
7163 shlibpath_var=LD_LIBRARY_PATH
7170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7171 echo "${ECHO_T}$dynamic_linker" >&6
7172 test "$dynamic_linker" = no && can_build_shared=no
7175 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7176 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7177 if test "${libltdl_cv_shlibext+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 eval libltdl_cv_shlibext=$shrext_cmds
7185 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7186 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7187 if test -n "$libltdl_cv_shlibext"; then
7189 cat >>confdefs.h <<_ACEOF
7190 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7196 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7197 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7198 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 libltdl_cv_shlibpath_var="$shlibpath_var"
7203 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7204 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7205 if test -n "$libltdl_cv_shlibpath_var"; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7214 echo "$as_me:$LINENO: checking for the default library search path" >&5
7215 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7216 if test "${libltdl_cv_sys_search_path+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7221 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7222 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7223 if test -n "$libltdl_cv_sys_search_path"; then
7225 for dir in $libltdl_cv_sys_search_path; do
7226 if test -z "$sys_search_path"; then
7227 sys_search_path="$dir"
7229 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7233 cat >>confdefs.h <<_ACEOF
7234 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7239 echo "$as_me:$LINENO: checking for objdir" >&5
7240 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7241 if test "${libltdl_cv_objdir+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 libltdl_cv_objdir="$objdir"
7245 if test -n "$objdir"; then
7248 rm -f .libs 2>/dev/null
7249 mkdir .libs 2>/dev/null
7250 if test -d .libs; then
7251 libltdl_cv_objdir=.libs
7253 # MS-DOS does not allow filenames that begin with a dot.
7254 libltdl_cv_objdir=_libs
7256 rmdir .libs 2>/dev/null
7260 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7261 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7263 cat >>confdefs.h <<_ACEOF
7264 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7268 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7269 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7270 if test "${lt_cv_path_NM+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 if test -n "$NM"; then
7274 # Let the user override the test.
7277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7278 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7280 test -z "$ac_dir" && ac_dir=.
7281 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7283 # Check to see if the nm accepts a BSD-compat flag.
7284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7285 # nm: unknown option "B" ignored
7286 # Tru64's nm complains that /dev/null is an invalid object file
7287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7288 */dev/null* | *'Invalid file or object type'*)
7289 lt_cv_path_NM="$tmp_nm -B"
7293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7295 lt_cv_path_NM="$tmp_nm -p"
7299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7300 continue # so that we can try to find one that supports BSD flags
7307 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7310 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7311 echo "${ECHO_T}$lt_cv_path_NM" >&6
7318 # Check for command to grab the raw symbol name followed by C symbol from nm.
7319 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7320 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7321 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 # These are sane defaults that work on at least a few old systems.
7326 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7328 # Character class describing NM global symbol codes.
7329 symcode='[BCDEGRST]'
7331 # Regexp to match symbols that can be accessed directly from C.
7332 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7334 # Transform the above into a raw symbol and a C symbol.
7335 symxfrm='\1 \2\3 \3'
7337 # Transform an extracted symbol line into a proper C declaration
7338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7340 # Transform an extracted symbol line into symbol name and symbol address
7341 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'"
7343 # Define system-specific variables.
7348 cygwin* | mingw* | pw32*)
7349 symcode='[ABCDGISTW]'
7351 hpux*) # Its linker distinguishes data from code symbols
7352 if test "$host_cpu" = ia64; then
7353 symcode='[ABCDEGRST]'
7355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7359 if test "$host_cpu" = ia64; then
7360 symcode='[ABCDGIRSTW]'
7361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7362 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'"
7366 symcode='[BCDEGRST]'
7369 symcode='[BCDEGQRST]'
7379 # Handle CRLF in mingw tool chain
7383 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7387 # If we're using GNU nm, then use its standard symbol codes.
7388 case `$NM -V 2>&1` in
7389 *GNU* | *'with BFD'*)
7390 symcode='[ABCDGIRSTW]' ;;
7393 # Try without a prefix undercore, then with it.
7394 for ac_symprfx in "" "_"; do
7396 # Write the raw and C identifiers.
7397 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7399 # Check to see that the pipe works correctly.
7403 cat > conftest.$ac_ext <<EOF
7408 void nm_test_func(){}
7412 int main(){nm_test_var='a';nm_test_func();return(0);}
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; then
7420 # Now try to grab the symbols.
7422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && test -s "$nlist"; then
7427 # Try sorting and uniquifying the output.
7428 if sort "$nlist" | uniq > "$nlist"T; then
7429 mv -f "$nlist"T "$nlist"
7434 # Make sure that we snagged all the symbols we need.
7435 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7436 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7437 cat <<EOF > conftest.$ac_ext
7443 # Now generate the symbol file.
7444 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7446 cat <<EOF >> conftest.$ac_ext
7447 #if defined (__STDC__) && __STDC__
7448 # define lt_ptr_t void *
7450 # define lt_ptr_t char *
7454 /* The mapping between symbol names and symbols. */
7459 lt_preloaded_symbols[] =
7462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7463 cat <<\EOF >> conftest.$ac_ext
7471 # Now try linking the two files.
7472 mv conftest.$ac_objext conftstm.$ac_objext
7473 lt_save_LIBS="$LIBS"
7474 lt_save_CFLAGS="$CFLAGS"
7475 LIBS="conftstm.$ac_objext"
7476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7484 LIBS="$lt_save_LIBS"
7485 CFLAGS="$lt_save_CFLAGS"
7487 echo "cannot find nm_test_func in $nlist" >&5
7490 echo "cannot find nm_test_var in $nlist" >&5
7493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7496 echo "$progname: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7499 rm -f conftest* conftst*
7501 # Do not use the global_symbol_pipe unless it works.
7502 if test "$pipe_works" = yes; then
7505 lt_cv_sys_global_symbol_pipe=
7511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7512 lt_cv_sys_global_symbol_to_cdecl=
7514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7515 echo "$as_me:$LINENO: result: failed" >&5
7516 echo "${ECHO_T}failed" >&6
7518 echo "$as_me:$LINENO: result: ok" >&5
7519 echo "${ECHO_T}ok" >&6
7523 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7524 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7525 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7529 libltdl_cv_preloaded_symbols=yes
7531 libltdl_cv_preloaded_symbols=no
7535 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7536 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7537 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_PRELOADED_SYMBOLS 1
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554 echo "$as_me:$LINENO: checking for shl_load" >&5
7555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7556 if test "${ac_cv_func_shl_load+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7567 #define shl_load innocuous_shl_load
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char shl_load (); below.
7571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572 <limits.h> exists even on freestanding compilers. */
7575 # include <limits.h>
7577 # include <assert.h>
7582 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7596 char (*f) () = shl_load;
7605 return f != shl_load;
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_func_shl_load=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_func_shl_load=no
7639 rm -f conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7643 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7644 if test $ac_cv_func_shl_load = yes; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_SHL_LOAD 1
7651 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7652 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7653 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_check_lib_save_LIBS=$LIBS
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7665 /* Override any gcc2 internal prototype to avoid an error. */
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_lib_dld_shl_load=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_cv_lib_dld_shl_load=no
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7714 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7715 if test $ac_cv_lib_dld_shl_load = yes; then
7717 cat >>confdefs.h <<\_ACEOF
7718 #define HAVE_SHL_LOAD 1
7721 LIBADD_DL="$LIBADD_DL -ldld"
7723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 ac_check_lib_save_LIBS=$LIBS
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 /* Override any gcc2 internal prototype to avoid an error. */
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -z "$ac_c_werror_flag"
7762 || test ! -s conftest.err'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest$ac_exeext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_cv_lib_dl_dlopen=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_lib_dl_dlopen=no
7781 rm -f conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783 LIBS=$ac_check_lib_save_LIBS
7785 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7787 if test $ac_cv_lib_dl_dlopen = yes; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_LIBDL 1
7793 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>conftest.er1
7817 grep -v '^ *+' conftest.er1 >conftest.err
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7836 cat >>confdefs.h <<\_ACEOF
7837 #define HAVE_LIBDL 1
7839 libltdl_cv_func_dlopen="yes"
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7845 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 ac_check_lib_save_LIBS=$LIBS
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_lib_svld_dlopen=yes
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 ac_cv_lib_svld_dlopen=no
7902 rm -f conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7906 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7907 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7908 if test $ac_cv_lib_svld_dlopen = yes; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_LIBDL 1
7914 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7916 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7917 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7918 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 ac_check_lib_save_LIBS=$LIBS
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7930 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947 (eval $ac_link) 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest$ac_exeext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_lib_dld_dld_link=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_lib_dld_dld_link=no
7974 rm -f conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976 LIBS=$ac_check_lib_save_LIBS
7978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7980 if test $ac_cv_lib_dld_dld_link = yes; then
7982 cat >>confdefs.h <<\_ACEOF
7986 LIBADD_DL="$LIBADD_DL -ldld"
7988 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7989 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7990 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8001 #define _dyld_func_lookup innocuous__dyld_func_lookup
8003 /* System header to define __stub macros and hopefully few prototypes,
8004 which can conflict with char _dyld_func_lookup (); below.
8005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8006 <limits.h> exists even on freestanding compilers. */
8009 # include <limits.h>
8011 # include <assert.h>
8014 #undef _dyld_func_lookup
8016 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8023 char _dyld_func_lookup ();
8024 /* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8030 char (*f) () = _dyld_func_lookup;
8039 return f != _dyld_func_lookup;
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag"
8054 || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_func__dyld_func_lookup=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_func__dyld_func_lookup=no
8073 rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8076 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8077 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8078 if test $ac_cv_func__dyld_func_lookup = yes; then
8080 cat >>confdefs.h <<\_ACEOF
8094 rm -f conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8106 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8108 lt_save_LIBS="$LIBS"
8109 LIBS="$LIBS $LIBADD_DL"
8111 for ac_func in dlerror
8113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8114 echo "$as_me:$LINENO: checking for $ac_func" >&5
8115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8116 if eval "test \"\${$as_ac_var+set}\" = set"; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127 #define $ac_func innocuous_$ac_func
8129 /* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char $ac_func (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8135 # include <limits.h>
8137 # include <assert.h>
8142 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8150 /* The GNU C library defines this for functions which it implements
8151 to always fail with ENOSYS. Some functions are actually named
8152 something starting with __ and the normal name is an alias. */
8153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8156 char (*f) () = $ac_func;
8165 return f != $ac_func;
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag"
8180 || test ! -s conftest.err'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; } &&
8186 { ac_try='test -s conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 eval "$as_ac_var=yes"
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 eval "$as_ac_var=no"
8199 rm -f conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8204 if test `eval echo '${'$as_ac_var'}'` = yes; then
8205 cat >>confdefs.h <<_ACEOF
8206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8212 LIBS="$lt_save_LIBS"
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8222 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8223 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8224 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_cv_sys_symbol_underscore=no
8228 cat > conftest.$ac_ext <<EOF
8229 void nm_test_func(){}
8230 int main(){nm_test_func;return 0;}
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; then
8237 # Now try to grab the symbols.
8238 ac_nlist=conftest.nm
8239 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8240 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && test -s "$ac_nlist"; then
8244 # See whether the symbols have a leading underscore.
8245 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8246 ac_cv_sys_symbol_underscore=yes
8248 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8251 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8255 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8258 echo "configure: failed program was:" >&5
8264 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8265 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8268 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8269 if test x"$libltdl_cv_func_dlopen" = xyes ||
8270 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8271 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8272 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8273 if test "${libltdl_cv_need_uscore+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 libltdl_cv_need_uscore=unknown
8278 LIBS="$LIBS $LIBADD_DL"
8279 if test "$cross_compiling" = yes; then :
8280 libltdl_cv_need_uscore=cross
8282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8283 lt_status=$lt_dlunknown
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8285 "configure"
8286 #include "confdefs.h"
8295 # define LT_DLGLOBAL RTLD_GLOBAL
8298 # define LT_DLGLOBAL DL_GLOBAL
8300 # define LT_DLGLOBAL 0
8304 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8305 find out it does not work in some platform. */
8306 #ifndef LT_DLLAZY_OR_NOW
8308 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8311 # define LT_DLLAZY_OR_NOW DL_LAZY
8314 # define LT_DLLAZY_OR_NOW RTLD_NOW
8317 # define LT_DLLAZY_OR_NOW DL_NOW
8319 # define LT_DLLAZY_OR_NOW 0
8327 extern "C" void exit (int);
8330 void fnord() { int i=42;}
8333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8334 int status = $lt_dlunknown;
8338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8339 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8340 /* dlclose (self); */
8346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8347 (eval $ac_link) 2>&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8351 (./conftest; exit; ) 2>/dev/null
8354 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8355 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8359 # compilation failed
8368 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8369 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8373 if test x"$libltdl_cv_need_uscore" = xyes; then
8375 cat >>confdefs.h <<\_ACEOF
8376 #define NEED_USCORE 1
8382 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8383 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8384 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 # PORTME does your system automatically load deplibs for dlopen?
8388 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8389 # For now, we just catch OSes we know something about -- in the
8390 # future, we'll try test this programmatically.
8391 libltdl_cv_sys_dlopen_deplibs=unknown
8393 aix3*|aix4.1.*|aix4.2.*)
8394 # Unknown whether this is true for these versions of AIX, but
8395 # we want this `case' here to explicitly catch those versions.
8396 libltdl_cv_sys_dlopen_deplibs=unknown
8399 libltdl_cv_sys_dlopen_deplibs=yes
8402 # Assuming the user has installed a libdl from somewhere, this is true
8403 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8404 libltdl_cv_sys_dlopen_deplibs=yes
8406 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8407 # GNU and its variants, using gnu ld.so (Glibc)
8408 libltdl_cv_sys_dlopen_deplibs=yes
8411 libltdl_cv_sys_dlopen_deplibs=yes
8413 irix[12345]*|irix6.[01]*)
8414 # Catch all versions of IRIX before 6.2, and indicate that we don't
8415 # know how it worked for any of those versions.
8416 libltdl_cv_sys_dlopen_deplibs=unknown
8419 # The case above catches anything before 6.2, and it's known that
8420 # at 6.2 and later dlopen does load deplibs.
8421 libltdl_cv_sys_dlopen_deplibs=yes
8424 libltdl_cv_sys_dlopen_deplibs=yes
8427 libltdl_cv_sys_dlopen_deplibs=yes
8430 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8431 # it did *not* use an RPATH in a shared library to find objects the
8432 # library depends on, so we explictly say `no'.
8433 libltdl_cv_sys_dlopen_deplibs=no
8435 osf5.0|osf5.0a|osf5.1)
8436 # dlopen *does* load deplibs and with the right loader patch applied
8437 # it even uses RPATH in a shared library to search for shared objects
8438 # that the library depends on, but there's no easy way to know if that
8439 # patch is installed. Since this is the case, all we can really
8440 # say is unknown -- it depends on the patch being installed. If
8441 # it is, this changes to `yes'. Without it, it would be `no'.
8442 libltdl_cv_sys_dlopen_deplibs=unknown
8445 # the two cases above should catch all versions of osf <= 5.1. Read
8446 # the comments above for what we know about them.
8447 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8448 # is used to find them so we can finally say `yes'.
8449 libltdl_cv_sys_dlopen_deplibs=yes
8452 libltdl_cv_sys_dlopen_deplibs=yes
8457 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8458 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8459 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8461 cat >>confdefs.h <<\_ACEOF
8462 #define LTDL_DLOPEN_DEPLIBS 1
8468 for ac_header in argz.h
8470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472 echo "$as_me:$LINENO: checking for $ac_header" >&5
8473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480 # Is the header compilable?
8481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 #include <$ac_header>
8492 rm -f conftest.$ac_objext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_header_compiler=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_header_compiler=no
8521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8523 echo "${ECHO_T}$ac_header_compiler" >&6
8525 # Is the header present?
8526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8527 echo $ECHO_N "checking $ac_header presence... $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. */
8534 #include <$ac_header>
8536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } >/dev/null; then
8544 if test -s conftest.err; then
8545 ac_cpp_err=$ac_c_preproc_warn_flag
8546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8553 if test -z "$ac_cpp_err"; then
8554 ac_header_preproc=yes
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_header_preproc=no
8561 rm -f conftest.err conftest.$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563 echo "${ECHO_T}$ac_header_preproc" >&6
8565 # So? What about this header?
8566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572 ac_header_preproc=yes
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8589 ## ----------------------------------- ##
8590 ## Report this to llvmbugs@cs.uiuc.edu ##
8591 ## ----------------------------------- ##
8594 sed "s/^/$as_me: WARNING: /" >&2
8597 echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 eval "$as_ac_Header=\$ac_header_preproc"
8604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8609 cat >>confdefs.h <<_ACEOF
8610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8618 echo "$as_me:$LINENO: checking for error_t" >&5
8619 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8620 if test "${ac_cv_type_error_t+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8638 if (sizeof (error_t))
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_type_error_t=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_cv_type_error_t=no
8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8676 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8677 if test $ac_cv_type_error_t = yes; then
8679 cat >>confdefs.h <<_ACEOF
8680 #define HAVE_ERROR_T 1
8686 cat >>confdefs.h <<\_ACEOF
8698 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8701 echo "$as_me:$LINENO: checking for $ac_func" >&5
8702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8703 if eval "test \"\${$as_ac_var+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define $ac_func innocuous_$ac_func
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8729 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743 char (*f) () = $ac_func;
8752 return f != $ac_func;
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 eval "$as_ac_var=no"
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791 if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8826 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8831 echo "$as_me:$LINENO: checking for $ac_header" >&5
8832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8839 # Is the header compilable?
8840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 $ac_includes_default
8849 #include <$ac_header>
8851 rm -f conftest.$ac_objext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853 (eval $ac_compile) 2>conftest.er1
8855 grep -v '^ *+' conftest.er1 >conftest.err
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try='test -s conftest.$ac_objext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_header_compiler=yes
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_header_compiler=no
8880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8882 echo "${ECHO_T}$ac_header_compiler" >&6
8884 # Is the header present?
8885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 #include <$ac_header>
8895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } >/dev/null; then
8903 if test -s conftest.err; then
8904 ac_cpp_err=$ac_c_preproc_warn_flag
8905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8912 if test -z "$ac_cpp_err"; then
8913 ac_header_preproc=yes
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_header_preproc=no
8920 rm -f conftest.err conftest.$ac_ext
8921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8922 echo "${ECHO_T}$ac_header_preproc" >&6
8924 # So? What about this header?
8925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8931 ac_header_preproc=yes
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8948 ## ----------------------------------- ##
8949 ## Report this to llvmbugs@cs.uiuc.edu ##
8950 ## ----------------------------------- ##
8953 sed "s/^/$as_me: WARNING: /" >&2
8956 echo "$as_me:$LINENO: checking for $ac_header" >&5
8957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 eval "$as_ac_Header=\$ac_header_preproc"
8963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8968 cat >>confdefs.h <<_ACEOF
8969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 echo "$as_me:$LINENO: checking for $ac_header" >&5
8985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992 # Is the header compilable?
8993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 $ac_includes_default
9002 #include <$ac_header>
9004 rm -f conftest.$ac_objext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -z "$ac_c_werror_flag"
9014 || test ! -s conftest.err'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_header_compiler=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_header_compiler=no
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9035 echo "${ECHO_T}$ac_header_compiler" >&6
9037 # Is the header present?
9038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9040 cat >conftest.$ac_ext <<_ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9046 #include <$ac_header>
9048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9051 grep -v '^ *+' conftest.er1 >conftest.err
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } >/dev/null; then
9056 if test -s conftest.err; then
9057 ac_cpp_err=$ac_c_preproc_warn_flag
9058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9065 if test -z "$ac_cpp_err"; then
9066 ac_header_preproc=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_header_preproc=no
9073 rm -f conftest.err conftest.$ac_ext
9074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9075 echo "${ECHO_T}$ac_header_preproc" >&6
9077 # So? What about this header?
9078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9084 ac_header_preproc=yes
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9101 ## ----------------------------------- ##
9102 ## Report this to llvmbugs@cs.uiuc.edu ##
9103 ## ----------------------------------- ##
9106 sed "s/^/$as_me: WARNING: /" >&2
9109 echo "$as_me:$LINENO: checking for $ac_header" >&5
9110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 eval "$as_ac_Header=\$ac_header_preproc"
9116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9121 cat >>confdefs.h <<_ACEOF
9122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9131 for ac_header in string.h strings.h
9133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135 echo "$as_me:$LINENO: checking for $ac_header" >&5
9136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9143 # Is the header compilable?
9144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #include <$ac_header>
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9159 grep -v '^ *+' conftest.er1 >conftest.err
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_compiler=no
9184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6
9188 # Is the header present?
9189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null; then
9207 if test -s conftest.err; then
9208 ac_cpp_err=$ac_c_preproc_warn_flag
9209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9216 if test -z "$ac_cpp_err"; then
9217 ac_header_preproc=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_preproc=no
9224 rm -f conftest.err conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226 echo "${ECHO_T}$ac_header_preproc" >&6
9228 # So? What about this header?
9229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc=yes
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9252 ## ----------------------------------- ##
9253 ## Report this to llvmbugs@cs.uiuc.edu ##
9254 ## ----------------------------------- ##
9257 sed "s/^/$as_me: WARNING: /" >&2
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 eval "$as_ac_Header=\$ac_header_preproc"
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9283 for ac_func in strchr index
9285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9286 echo "$as_me:$LINENO: checking for $ac_func" >&5
9287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_var+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.$ac_ext <<_ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9299 #define $ac_func innocuous_$ac_func
9301 /* System header to define __stub macros and hopefully few prototypes,
9302 which can conflict with char $ac_func (); below.
9303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9304 <limits.h> exists even on freestanding compilers. */
9307 # include <limits.h>
9309 # include <assert.h>
9314 /* Override any gcc2 internal prototype to avoid an error. */
9319 /* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9322 /* The GNU C library defines this for functions which it implements
9323 to always fail with ENOSYS. Some functions are actually named
9324 something starting with __ and the normal name is an alias. */
9325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9328 char (*f) () = $ac_func;
9337 return f != $ac_func;
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag"
9352 || test ! -s conftest.err'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 eval "$as_ac_var=yes"
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 eval "$as_ac_var=no"
9371 rm -f conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9376 if test `eval echo '${'$as_ac_var'}'` = yes; then
9377 cat >>confdefs.h <<_ACEOF
9378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9386 for ac_func in strrchr rindex
9388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9389 echo "$as_me:$LINENO: checking for $ac_func" >&5
9390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9391 if eval "test \"\${$as_ac_var+set}\" = set"; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define $ac_func innocuous_$ac_func
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char $ac_func (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9410 # include <limits.h>
9412 # include <assert.h>
9417 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 char (*f) () = $ac_func;
9440 return f != $ac_func;
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 eval "$as_ac_var=yes"
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 eval "$as_ac_var=no"
9474 rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9479 if test `eval echo '${'$as_ac_var'}'` = yes; then
9480 cat >>confdefs.h <<_ACEOF
9481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9489 for ac_func in memcpy bcopy
9491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9492 echo "$as_me:$LINENO: checking for $ac_func" >&5
9493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9494 if eval "test \"\${$as_ac_var+set}\" = set"; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9505 #define $ac_func innocuous_$ac_func
9507 /* System header to define __stub macros and hopefully few prototypes,
9508 which can conflict with char $ac_func (); below.
9509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9510 <limits.h> exists even on freestanding compilers. */
9513 # include <limits.h>
9515 # include <assert.h>
9520 /* Override any gcc2 internal prototype to avoid an error. */
9525 /* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9534 char (*f) () = $ac_func;
9543 return f != $ac_func;
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag"
9558 || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 eval "$as_ac_var=yes"
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9575 eval "$as_ac_var=no"
9577 rm -f conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9582 if test `eval echo '${'$as_ac_var'}'` = yes; then
9583 cat >>confdefs.h <<_ACEOF
9584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9592 for ac_func in memmove strcmp
9594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9595 echo "$as_me:$LINENO: checking for $ac_func" >&5
9596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9597 if eval "test \"\${$as_ac_var+set}\" = set"; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608 #define $ac_func innocuous_$ac_func
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9616 # include <limits.h>
9618 # include <assert.h>
9623 /* Override any gcc2 internal prototype to avoid an error. */
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9637 char (*f) () = $ac_func;
9646 return f != $ac_func;
9651 rm -f conftest.$ac_objext conftest$ac_exeext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>conftest.er1
9655 grep -v '^ *+' conftest.er1 >conftest.err
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag"
9661 || test ! -s conftest.err'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; }; then
9673 eval "$as_ac_var=yes"
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 eval "$as_ac_var=no"
9680 rm -f conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9685 if test `eval echo '${'$as_ac_var'}'` = yes; then
9686 cat >>confdefs.h <<_ACEOF
9687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9696 for ac_func in closedir opendir readdir
9698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9699 echo "$as_me:$LINENO: checking for $ac_func" >&5
9700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9701 if eval "test \"\${$as_ac_var+set}\" = set"; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9712 #define $ac_func innocuous_$ac_func
9714 /* System header to define __stub macros and hopefully few prototypes,
9715 which can conflict with char $ac_func (); below.
9716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9717 <limits.h> exists even on freestanding compilers. */
9720 # include <limits.h>
9722 # include <assert.h>
9727 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9735 /* The GNU C library defines this for functions which it implements
9736 to always fail with ENOSYS. Some functions are actually named
9737 something starting with __ and the normal name is an alias. */
9738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9741 char (*f) () = $ac_func;
9750 return f != $ac_func;
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9757 (eval $ac_link) 2>conftest.er1
9759 grep -v '^ *+' conftest.er1 >conftest.err
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag"
9765 || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 eval "$as_ac_var=yes"
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 eval "$as_ac_var=no"
9784 rm -f conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9789 if test `eval echo '${'$as_ac_var'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9798 # Check whether --enable-shared or --disable-shared was given.
9799 if test "${enable_shared+set}" = set; then
9800 enableval="$enable_shared"
9801 p=${PACKAGE-default}
9803 yes) enable_shared=yes ;;
9804 no) enable_shared=no ;;
9807 # Look at the argument we got. We use all the common list separators.
9808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9809 for pkg in $enableval; do
9811 if test "X$pkg" = "X$p"; then
9822 # Check whether --enable-static or --disable-static was given.
9823 if test "${enable_static+set}" = set; then
9824 enableval="$enable_static"
9825 p=${PACKAGE-default}
9827 yes) enable_static=yes ;;
9828 no) enable_static=no ;;
9831 # Look at the argument we got. We use all the common list separators.
9832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9833 for pkg in $enableval; do
9835 if test "X$pkg" = "X$p"; then
9846 # Check whether --enable-fast-install or --disable-fast-install was given.
9847 if test "${enable_fast_install+set}" = set; then
9848 enableval="$enable_fast_install"
9849 p=${PACKAGE-default}
9851 yes) enable_fast_install=yes ;;
9852 no) enable_fast_install=no ;;
9854 enable_fast_install=no
9855 # Look at the argument we got. We use all the common list separators.
9856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9857 for pkg in $enableval; do
9859 if test "X$pkg" = "X$p"; then
9860 enable_fast_install=yes
9867 enable_fast_install=yes
9870 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9871 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9872 if test "${lt_cv_path_SED+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 # Loop through the user's path and test for sed and gsed.
9876 # Then use that list of sed's as ones to test for truncation.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 test -z "$as_dir" && as_dir=.
9882 for lt_ac_prog in sed gsed; do
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9885 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9892 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9893 # along with /bin/sed that truncates output.
9894 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9895 test ! -f $lt_ac_sed && break
9896 cat /dev/null > conftest.in
9898 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9899 # Check for GNU sed and select it if it is found.
9900 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9901 lt_cv_path_SED=$lt_ac_sed
9905 cat conftest.in conftest.in >conftest.tmp
9906 mv conftest.tmp conftest.in
9907 cp conftest.in conftest.nl
9909 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9910 cmp -s conftest.out conftest.nl || break
9911 # 10000 chars as input seems more than enough
9912 test $lt_ac_count -gt 10 && break
9913 lt_ac_count=`expr $lt_ac_count + 1`
9914 if test $lt_ac_count -gt $lt_ac_max; then
9915 lt_ac_max=$lt_ac_count
9916 lt_cv_path_SED=$lt_ac_sed
9924 echo "$as_me:$LINENO: result: $SED" >&5
9925 echo "${ECHO_T}$SED" >&6
9928 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9929 if test "${with_gnu_ld+set}" = set; then
9930 withval="$with_gnu_ld"
9931 test "$withval" = no || with_gnu_ld=yes
9936 if test "$GCC" = yes; then
9937 # Check if gcc -print-prog-name=ld gives a path.
9938 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9939 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9942 # gcc leaves a trailing carriage return which upsets mingw
9943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9948 # Accept absolute paths.
9950 re_direlt='/[^/][^/]*/\.\./'
9951 # Canonicalize the pathname of ld
9952 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9954 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9956 test -z "$LD" && LD="$ac_prog"
9959 # If it fails, then pretend we aren't using GCC.
9963 # If it is relative, then search for the first ld in PATH.
9967 elif test "$with_gnu_ld" = yes; then
9968 echo "$as_me:$LINENO: checking for GNU ld" >&5
9969 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9971 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9972 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9974 if test "${lt_cv_path_LD+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 if test -z "$LD"; then
9978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9979 for ac_dir in $PATH; do
9981 test -z "$ac_dir" && ac_dir=.
9982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9983 lt_cv_path_LD="$ac_dir/$ac_prog"
9984 # Check to see if the program is GNU ld. I'd rather use --version,
9985 # but apparently some GNU ld's only accept -v.
9986 # Break only if it was the GNU/non-GNU ld that we prefer.
9987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9988 *GNU* | *'with BFD'*)
9989 test "$with_gnu_ld" != no && break
9992 test "$with_gnu_ld" != yes && break
9999 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10003 LD="$lt_cv_path_LD"
10004 if test -n "$LD"; then
10005 echo "$as_me:$LINENO: result: $LD" >&5
10006 echo "${ECHO_T}$LD" >&6
10008 echo "$as_me:$LINENO: result: no" >&5
10009 echo "${ECHO_T}no" >&6
10011 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10012 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10013 { (exit 1); exit 1; }; }
10014 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10015 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10016 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10020 case `$LD -v 2>&1 </dev/null` in
10021 *GNU* | *'with BFD'*)
10022 lt_cv_prog_gnu_ld=yes
10025 lt_cv_prog_gnu_ld=no
10029 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10030 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10031 with_gnu_ld=$lt_cv_prog_gnu_ld
10034 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10035 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10036 if test "${lt_cv_ld_reload_flag+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 lt_cv_ld_reload_flag='-r'
10041 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10042 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10043 reload_flag=$lt_cv_ld_reload_flag
10044 case $reload_flag in
10046 *) reload_flag=" $reload_flag" ;;
10048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10051 if test "$GCC" = yes; then
10052 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10059 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10060 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10061 if test "${lt_cv_deplibs_check_method+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 lt_cv_file_magic_cmd='$MAGIC_CMD'
10065 lt_cv_file_magic_test_file=
10066 lt_cv_deplibs_check_method='unknown'
10067 # Need to set the preceding variable on all platforms that support
10068 # interlibrary dependencies.
10069 # 'none' -- dependencies not supported.
10070 # `unknown' -- same as none, but documents that we really don't know.
10071 # 'pass_all' -- all dependencies passed with no checks.
10072 # 'test_compile' -- check by making test program.
10073 # 'file_magic [[regex]]' -- check by looking for files in library path
10074 # which responds to the $file_magic_cmd with a given extended regex.
10075 # If you have `file' or equivalent on your system and you're not sure
10076 # whether `pass_all' will *always* work, you probably want this one.
10080 lt_cv_deplibs_check_method=pass_all
10084 lt_cv_deplibs_check_method=pass_all
10088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10089 lt_cv_file_magic_cmd='/usr/bin/file -L'
10090 lt_cv_file_magic_test_file=/shlib/libc.so
10094 # func_win32_libid is a shell function defined in ltmain.sh
10095 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10096 lt_cv_file_magic_cmd='func_win32_libid'
10100 # Base MSYS/MinGW do not provide the 'file' command needed by
10101 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10102 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10103 lt_cv_file_magic_cmd='$OBJDUMP -f'
10106 darwin* | rhapsody*)
10107 lt_cv_deplibs_check_method=pass_all
10110 freebsd* | kfreebsd*-gnu)
10111 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10114 # Not sure whether the presence of OpenBSD here was a mistake.
10115 # Let's accept both of them until this is cleared up.
10116 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10117 lt_cv_file_magic_cmd=/usr/bin/file
10118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10122 lt_cv_deplibs_check_method=pass_all
10127 lt_cv_deplibs_check_method=pass_all
10130 hpux10.20* | hpux11*)
10131 lt_cv_file_magic_cmd=/usr/bin/file
10132 case "$host_cpu" in
10134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10138 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]'
10139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10148 irix5* | irix6* | nonstopux*)
10150 *-32|*"-32 ") libmagic=32-bit;;
10151 *-n32|*"-n32 ") libmagic=N32;;
10152 *-64|*"-64 ") libmagic=64-bit;;
10153 *) libmagic=never-match;;
10155 lt_cv_deplibs_check_method=pass_all
10158 # This must be Linux ELF.
10160 lt_cv_deplibs_check_method=pass_all
10164 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10173 lt_cv_file_magic_cmd=/usr/bin/file
10174 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10178 lt_cv_deplibs_check_method=unknown
10182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10189 osf3* | osf4* | osf5*)
10190 lt_cv_deplibs_check_method=pass_all
10194 lt_cv_deplibs_check_method=pass_all
10198 lt_cv_deplibs_check_method=pass_all
10201 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10202 case $host_vendor in
10204 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]'
10205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10208 lt_cv_deplibs_check_method=pass_all
10211 lt_cv_file_magic_cmd='/bin/file'
10212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10215 lt_cv_file_magic_cmd='/bin/file'
10216 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10217 lt_cv_file_magic_test_file=/lib/libc.so
10220 lt_cv_deplibs_check_method=pass_all
10225 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10226 lt_cv_deplibs_check_method=pass_all
10231 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10232 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10233 file_magic_cmd=$lt_cv_file_magic_cmd
10234 deplibs_check_method=$lt_cv_deplibs_check_method
10235 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10239 # If no C compiler was specified, use CC.
10242 # Allow CC to be a program name with arguments.
10245 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10246 if test "${enable_libtool_lock+set}" = set; then
10247 enableval="$enable_libtool_lock"
10250 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10252 # Some flags need to be propagated to the compiler or linker for good
10256 # Find out which ABI we are using.
10257 echo 'int i;' > conftest.$ac_ext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; then
10263 case `/usr/bin/file conftest.$ac_objext` in
10265 HPUX_IA64_MODE="32"
10268 HPUX_IA64_MODE="64"
10275 # Find out which ABI we are using.
10276 echo '#line 10276 "configure"' > conftest.$ac_ext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; then
10282 if test "$lt_cv_prog_gnu_ld" = yes; then
10283 case `/usr/bin/file conftest.$ac_objext` in
10285 LD="${LD-ld} -melf32bsmip"
10288 LD="${LD-ld} -melf32bmipn32"
10291 LD="${LD-ld} -melf64bmip"
10295 case `/usr/bin/file conftest.$ac_objext` in
10311 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10312 # Find out which ABI we are using.
10313 echo 'int i;' > conftest.$ac_ext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; then
10319 case "`/usr/bin/file conftest.o`" in
10323 LD="${LD-ld} -m elf_i386"
10325 ppc64-*linux*|powerpc64-*linux*)
10326 LD="${LD-ld} -m elf32ppclinux"
10329 LD="${LD-ld} -m elf_s390"
10332 LD="${LD-ld} -m elf32_sparc"
10339 LD="${LD-ld} -m elf_x86_64"
10341 ppc*-*linux*|powerpc*-*linux*)
10342 LD="${LD-ld} -m elf64ppc"
10345 LD="${LD-ld} -m elf64_s390"
10348 LD="${LD-ld} -m elf64_sparc"
10358 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10359 SAVE_CFLAGS="$CFLAGS"
10360 CFLAGS="$CFLAGS -belf"
10361 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10362 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10363 if test "${lt_cv_cc_needs_belf+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 ac_cpp='$CPP $CPPFLAGS'
10368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest$ac_exeext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 lt_cv_cc_needs_belf=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 lt_cv_cc_needs_belf=no
10409 rm -f conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10412 ac_cpp='$CPP $CPPFLAGS'
10413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10418 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10419 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10422 CFLAGS="$SAVE_CFLAGS"
10428 need_locks="$enable_libtool_lock"
10433 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10434 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10435 (test "X$CXX" != "Xg++"))) ; then
10437 ac_cpp='$CXXCPP $CPPFLAGS'
10438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10441 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10442 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10443 if test -z "$CXXCPP"; then
10444 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 # Double quotes because CXXCPP needs to be expanded
10448 for CXXCPP in "$CXX -E" "/lib/cpp"
10450 ac_preproc_ok=false
10451 for ac_cxx_preproc_warn_flag in '' yes
10453 # Use a header file that comes with gcc, so configuring glibc
10454 # with a fresh cross-compiler works.
10455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10456 # <limits.h> exists even on freestanding compilers.
10457 # On the NeXT, cc -E runs the code through the compiler's parser,
10458 # not just through cpp. "Syntax error" is here to catch this case.
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10466 # include <limits.h>
10468 # include <assert.h>
10472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } >/dev/null; then
10480 if test -s conftest.err; then
10481 ac_cpp_err=$ac_cxx_preproc_warn_flag
10482 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10489 if test -z "$ac_cpp_err"; then
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 # Broken: fails on valid input.
10498 rm -f conftest.err conftest.$ac_ext
10500 # OK, works on sane cases. Now check whether non-existent headers
10501 # can be detected and how.
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <ac_nonexistent.h>
10510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null; then
10518 if test -s conftest.err; then
10519 ac_cpp_err=$ac_cxx_preproc_warn_flag
10520 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10527 if test -z "$ac_cpp_err"; then
10528 # Broken: success on invalid input.
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10534 # Passes both tests.
10538 rm -f conftest.err conftest.$ac_ext
10541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10542 rm -f conftest.err conftest.$ac_ext
10543 if $ac_preproc_ok; then
10548 ac_cv_prog_CXXCPP=$CXXCPP
10551 CXXCPP=$ac_cv_prog_CXXCPP
10553 ac_cv_prog_CXXCPP=$CXXCPP
10555 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10556 echo "${ECHO_T}$CXXCPP" >&6
10557 ac_preproc_ok=false
10558 for ac_cxx_preproc_warn_flag in '' yes
10560 # Use a header file that comes with gcc, so configuring glibc
10561 # with a fresh cross-compiler works.
10562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10563 # <limits.h> exists even on freestanding compilers.
10564 # On the NeXT, cc -E runs the code through the compiler's parser,
10565 # not just through cpp. "Syntax error" is here to catch this case.
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10573 # include <limits.h>
10575 # include <assert.h>
10579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null; then
10587 if test -s conftest.err; then
10588 ac_cpp_err=$ac_cxx_preproc_warn_flag
10589 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10596 if test -z "$ac_cpp_err"; then
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 # Broken: fails on valid input.
10605 rm -f conftest.err conftest.$ac_ext
10607 # OK, works on sane cases. Now check whether non-existent headers
10608 # can be detected and how.
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <ac_nonexistent.h>
10617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10620 grep -v '^ *+' conftest.er1 >conftest.err
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } >/dev/null; then
10625 if test -s conftest.err; then
10626 ac_cpp_err=$ac_cxx_preproc_warn_flag
10627 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10634 if test -z "$ac_cpp_err"; then
10635 # Broken: success on invalid input.
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 # Passes both tests.
10645 rm -f conftest.err conftest.$ac_ext
10648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10649 rm -f conftest.err conftest.$ac_ext
10650 if $ac_preproc_ok; then
10653 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10654 See \`config.log' for more details." >&5
10655 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10656 See \`config.log' for more details." >&2;}
10657 { (exit 1); exit 1; }; }
10661 ac_cpp='$CXXCPP $CPPFLAGS'
10662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10670 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10671 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10673 if test -n "$ac_tool_prefix"; then
10674 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10678 echo "$as_me:$LINENO: checking for $ac_word" >&5
10679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10680 if test "${ac_cv_prog_F77+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 if test -n "$F77"; then
10684 ac_cv_prog_F77="$F77" # Let the user override the test.
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 F77=$ac_cv_prog_F77
10703 if test -n "$F77"; then
10704 echo "$as_me:$LINENO: result: $F77" >&5
10705 echo "${ECHO_T}$F77" >&6
10707 echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6
10711 test -n "$F77" && break
10714 if test -z "$F77"; then
10716 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10718 # Extract the first word of "$ac_prog", so it can be a program name with args.
10719 set dummy $ac_prog; ac_word=$2
10720 echo "$as_me:$LINENO: checking for $ac_word" >&5
10721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10722 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 if test -n "$ac_ct_F77"; then
10726 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_prog_ac_ct_F77="$ac_prog"
10736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10745 if test -n "$ac_ct_F77"; then
10746 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10747 echo "${ECHO_T}$ac_ct_F77" >&6
10749 echo "$as_me:$LINENO: result: no" >&5
10750 echo "${ECHO_T}no" >&6
10753 test -n "$ac_ct_F77" && break
10760 # Provide some information about the compiler.
10761 echo "$as_me:10761:" \
10762 "checking for Fortran 77 compiler version" >&5
10763 ac_compiler=`set X $ac_compile; echo $2`
10764 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10765 (eval $ac_compiler --version </dev/null >&5) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }
10769 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10770 (eval $ac_compiler -v </dev/null >&5) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }
10774 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10775 (eval $ac_compiler -V </dev/null >&5) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }
10781 # If we don't use `.F' as extension, the preprocessor is not run on the
10782 # input file. (Note that this only needs to work for GNU compilers.)
10783 ac_save_ext=$ac_ext
10785 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10786 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10787 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10798 rm -f conftest.$ac_objext
10799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10800 (eval $ac_compile) 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
10807 { ac_try='test -z "$ac_f77_werror_flag"
10808 || test ! -s conftest.err'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest.$ac_objext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_compiler_gnu=yes
10822 echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10828 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10831 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10832 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10833 ac_ext=$ac_save_ext
10834 ac_test_FFLAGS=${FFLAGS+set}
10835 ac_save_FFLAGS=$FFLAGS
10837 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10838 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10839 if test "${ac_cv_prog_f77_g+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10848 rm -f conftest.$ac_objext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850 (eval $ac_compile) 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_f77_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 ac_cv_prog_f77_g=yes
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 ac_cv_prog_f77_g=no
10877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10880 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10881 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10882 if test "$ac_test_FFLAGS" = set; then
10883 FFLAGS=$ac_save_FFLAGS
10884 elif test $ac_cv_prog_f77_g = yes; then
10885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10891 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10898 G77=`test $ac_compiler_gnu = yes && echo yes`
10900 ac_cpp='$CPP $CPPFLAGS'
10901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10907 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10909 # find the maximum length of command line arguments
10910 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10911 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10912 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 # On DJGPP, this test can blow up pretty badly due to problems in libc
10921 # (any single argument exceeding 2000 bytes causes a buffer overrun
10922 # during glob expansion). Even if it were fixed, the result of this
10923 # check would be larger than it should be.
10924 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10928 # Under GNU Hurd, this test is not required because there is
10929 # no limit to the length of command line arguments.
10930 # Libtool will interpret -1 as no limit whatsoever
10931 lt_cv_sys_max_cmd_len=-1;
10935 # On Win9x/ME, this test blows up -- it succeeds, but takes
10936 # about 5 minutes as the teststring grows exponentially.
10937 # Worse, since 9x/ME are not pre-emptively multitasking,
10938 # you end up with a "frozen" computer, even though with patience
10939 # the test eventually succeeds (with a max line length of 256k).
10940 # Instead, let's just punt: use the minimum linelength reported by
10941 # all of the supported platforms: 8192 (on NT/2K/XP).
10942 lt_cv_sys_max_cmd_len=8192;
10946 # On AmigaOS with pdksh, this test takes hours, literally.
10947 # So we just punt and use a minimum line length of 8192.
10948 lt_cv_sys_max_cmd_len=8192;
10951 netbsd* | freebsd* | openbsd* | darwin* )
10952 # This has been around since 386BSD, at least. Likely further.
10953 if test -x /sbin/sysctl; then
10954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10955 elif test -x /usr/sbin/sysctl; then
10956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10958 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10960 # And add a safety zone
10961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10965 # If test is not a shell built-in, we'll probably end up computing a
10966 # maximum length that is only half of the actual maximum length, but
10968 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10969 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10970 = "XX$teststring") >/dev/null 2>&1 &&
10971 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10972 lt_cv_sys_max_cmd_len=$new_result &&
10973 test $i != 17 # 1/2 MB should be enough
10976 teststring=$teststring$teststring
10979 # Add a significant safety factor because C++ compilers can tack on massive
10980 # amounts of additional arguments before passing them to the linker.
10981 # It appears as though 1/2 is a usable value.
10982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10988 if test -n $lt_cv_sys_max_cmd_len ; then
10989 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10990 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10992 echo "$as_me:$LINENO: result: none" >&5
10993 echo "${ECHO_T}none" >&6
10999 # Check for command to grab the raw symbol name followed by C symbol from nm.
11000 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11001 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11002 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 # These are sane defaults that work on at least a few old systems.
11007 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11009 # Character class describing NM global symbol codes.
11010 symcode='[BCDEGRST]'
11012 # Regexp to match symbols that can be accessed directly from C.
11013 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11015 # Transform the above into a raw symbol and a C symbol.
11016 symxfrm='\1 \2\3 \3'
11018 # Transform an extracted symbol line into a proper C declaration
11019 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11021 # Transform an extracted symbol line into symbol name and symbol address
11022 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'"
11024 # Define system-specific variables.
11029 cygwin* | mingw* | pw32*)
11030 symcode='[ABCDGISTW]'
11032 hpux*) # Its linker distinguishes data from code symbols
11033 if test "$host_cpu" = ia64; then
11034 symcode='[ABCDEGRST]'
11036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11037 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11040 if test "$host_cpu" = ia64; then
11041 symcode='[ABCDGIRSTW]'
11042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11043 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'"
11046 irix* | nonstopux*)
11047 symcode='[BCDEGRST]'
11050 symcode='[BCDEGQRST]'
11060 # Handle CRLF in mingw tool chain
11064 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11068 # If we're using GNU nm, then use its standard symbol codes.
11069 case `$NM -V 2>&1` in
11070 *GNU* | *'with BFD'*)
11071 symcode='[ABCDGIRSTW]' ;;
11074 # Try without a prefix undercore, then with it.
11075 for ac_symprfx in "" "_"; do
11077 # Write the raw and C identifiers.
11078 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11080 # Check to see that the pipe works correctly.
11084 cat > conftest.$ac_ext <<EOF
11089 void nm_test_func(){}
11093 int main(){nm_test_var='a';nm_test_func();return(0);}
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; then
11101 # Now try to grab the symbols.
11103 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11104 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && test -s "$nlist"; then
11108 # Try sorting and uniquifying the output.
11109 if sort "$nlist" | uniq > "$nlist"T; then
11110 mv -f "$nlist"T "$nlist"
11115 # Make sure that we snagged all the symbols we need.
11116 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11117 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11118 cat <<EOF > conftest.$ac_ext
11124 # Now generate the symbol file.
11125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11127 cat <<EOF >> conftest.$ac_ext
11128 #if defined (__STDC__) && __STDC__
11129 # define lt_ptr_t void *
11131 # define lt_ptr_t char *
11135 /* The mapping between symbol names and symbols. */
11140 lt_preloaded_symbols[] =
11143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11144 cat <<\EOF >> conftest.$ac_ext
11152 # Now try linking the two files.
11153 mv conftest.$ac_objext conftstm.$ac_objext
11154 lt_save_LIBS="$LIBS"
11155 lt_save_CFLAGS="$CFLAGS"
11156 LIBS="conftstm.$ac_objext"
11157 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11159 (eval $ac_link) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11165 LIBS="$lt_save_LIBS"
11166 CFLAGS="$lt_save_CFLAGS"
11168 echo "cannot find nm_test_func in $nlist" >&5
11171 echo "cannot find nm_test_var in $nlist" >&5
11174 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11177 echo "$progname: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11180 rm -f conftest* conftst*
11182 # Do not use the global_symbol_pipe unless it works.
11183 if test "$pipe_works" = yes; then
11186 lt_cv_sys_global_symbol_pipe=
11192 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11193 lt_cv_sys_global_symbol_to_cdecl=
11195 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11196 echo "$as_me:$LINENO: result: failed" >&5
11197 echo "${ECHO_T}failed" >&6
11199 echo "$as_me:$LINENO: result: ok" >&5
11200 echo "${ECHO_T}ok" >&6
11203 echo "$as_me:$LINENO: checking for objdir" >&5
11204 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11205 if test "${lt_cv_objdir+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 rm -f .libs 2>/dev/null
11209 mkdir .libs 2>/dev/null
11210 if test -d .libs; then
11213 # MS-DOS does not allow filenames that begin with a dot.
11216 rmdir .libs 2>/dev/null
11218 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11219 echo "${ECHO_T}$lt_cv_objdir" >&6
11220 objdir=$lt_cv_objdir
11228 # AIX sometimes has problems with the GCC collect2 program. For some
11229 # reason, if we set the COLLECT_NAMES environment variable, the problems
11230 # vanish in a puff of smoke.
11231 if test "X${COLLECT_NAMES+set}" != Xset; then
11233 export COLLECT_NAMES
11238 # Sed substitution that helps us do robust quoting. It backslashifies
11239 # metacharacters that are still active within double-quoted strings.
11240 Xsed='sed -e s/^X//'
11241 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11243 # Same as above, but do not quote variable references.
11244 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11246 # Sed substitution to delay expansion of an escaped shell variable in a
11247 # double_quote_subst'ed string.
11248 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11250 # Sed substitution to avoid accidental globbing in evaled expressions
11251 no_glob_subst='s/\*/\\\*/g'
11256 # Global variables:
11257 default_ofile=mklib
11258 can_build_shared=yes
11260 # All known linkers require a `.a' archive for static linking (except M$VC,
11261 # which needs '.lib').
11263 ltmain="$ac_aux_dir/ltmain.sh"
11264 ofile="$default_ofile"
11265 with_gnu_ld="$lt_cv_prog_gnu_ld"
11267 if test -n "$ac_tool_prefix"; then
11268 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11269 set dummy ${ac_tool_prefix}ar; ac_word=$2
11270 echo "$as_me:$LINENO: checking for $ac_word" >&5
11271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11272 if test "${ac_cv_prog_AR+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 if test -n "$AR"; then
11276 ac_cv_prog_AR="$AR" # Let the user override the test.
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11285 ac_cv_prog_AR="${ac_tool_prefix}ar"
11286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 if test -n "$AR"; then
11296 echo "$as_me:$LINENO: result: $AR" >&5
11297 echo "${ECHO_T}$AR" >&6
11299 echo "$as_me:$LINENO: result: no" >&5
11300 echo "${ECHO_T}no" >&6
11304 if test -z "$ac_cv_prog_AR"; then
11306 # Extract the first word of "ar", so it can be a program name with args.
11307 set dummy ar; ac_word=$2
11308 echo "$as_me:$LINENO: checking for $ac_word" >&5
11309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 if test -n "$ac_ct_AR"; then
11314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11323 ac_cv_prog_ac_ct_AR="ar"
11324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11334 if test -n "$ac_ct_AR"; then
11335 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11336 echo "${ECHO_T}$ac_ct_AR" >&6
11338 echo "$as_me:$LINENO: result: no" >&5
11339 echo "${ECHO_T}no" >&6
11344 AR="$ac_cv_prog_AR"
11347 if test -n "$ac_tool_prefix"; then
11348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11350 echo "$as_me:$LINENO: checking for $ac_word" >&5
11351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11352 if test "${ac_cv_prog_RANLIB+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 if test -n "$RANLIB"; then
11356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 RANLIB=$ac_cv_prog_RANLIB
11375 if test -n "$RANLIB"; then
11376 echo "$as_me:$LINENO: result: $RANLIB" >&5
11377 echo "${ECHO_T}$RANLIB" >&6
11379 echo "$as_me:$LINENO: result: no" >&5
11380 echo "${ECHO_T}no" >&6
11384 if test -z "$ac_cv_prog_RANLIB"; then
11385 ac_ct_RANLIB=$RANLIB
11386 # Extract the first word of "ranlib", so it can be a program name with args.
11387 set dummy ranlib; ac_word=$2
11388 echo "$as_me:$LINENO: checking for $ac_word" >&5
11389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 if test -n "$ac_ct_RANLIB"; then
11394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_ac_ct_RANLIB="ranlib"
11404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11414 if test -n "$ac_ct_RANLIB"; then
11415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11416 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11418 echo "$as_me:$LINENO: result: no" >&5
11419 echo "${ECHO_T}no" >&6
11422 RANLIB=$ac_ct_RANLIB
11424 RANLIB="$ac_cv_prog_RANLIB"
11427 if test -n "$ac_tool_prefix"; then
11428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11429 set dummy ${ac_tool_prefix}strip; ac_word=$2
11430 echo "$as_me:$LINENO: checking for $ac_word" >&5
11431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11432 if test "${ac_cv_prog_STRIP+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 if test -n "$STRIP"; then
11436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $PATH
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 STRIP=$ac_cv_prog_STRIP
11455 if test -n "$STRIP"; then
11456 echo "$as_me:$LINENO: result: $STRIP" >&5
11457 echo "${ECHO_T}$STRIP" >&6
11459 echo "$as_me:$LINENO: result: no" >&5
11460 echo "${ECHO_T}no" >&6
11464 if test -z "$ac_cv_prog_STRIP"; then
11466 # Extract the first word of "strip", so it can be a program name with args.
11467 set dummy strip; ac_word=$2
11468 echo "$as_me:$LINENO: checking for $ac_word" >&5
11469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 if test -n "$ac_ct_STRIP"; then
11474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_ac_ct_STRIP="strip"
11484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11494 if test -n "$ac_ct_STRIP"; then
11495 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11496 echo "${ECHO_T}$ac_ct_STRIP" >&6
11498 echo "$as_me:$LINENO: result: no" >&5
11499 echo "${ECHO_T}no" >&6
11504 STRIP="$ac_cv_prog_STRIP"
11509 old_CFLAGS="$CFLAGS"
11511 # Set sane defaults for various variables
11512 test -z "$AR" && AR=ar
11513 test -z "$AR_FLAGS" && AR_FLAGS=cru
11514 test -z "$AS" && AS=as
11515 test -z "$CC" && CC=cc
11516 test -z "$LTCC" && LTCC=$CC
11517 test -z "$DLLTOOL" && DLLTOOL=dlltool
11518 test -z "$LD" && LD=ld
11519 test -z "$LN_S" && LN_S="ln -s"
11520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11521 test -z "$NM" && NM=nm
11522 test -z "$SED" && SED=sed
11523 test -z "$OBJDUMP" && OBJDUMP=objdump
11524 test -z "$RANLIB" && RANLIB=:
11525 test -z "$STRIP" && STRIP=:
11526 test -z "$ac_objext" && ac_objext=o
11528 # Determine commands to create old-style static archives.
11529 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11530 old_postinstall_cmds='chmod 644 $oldlib'
11531 old_postuninstall_cmds=
11533 if test -n "$RANLIB"; then
11536 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11539 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11542 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11545 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11547 # Only perform the check for file, if the check method requires it
11548 case $deplibs_check_method in
11550 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11551 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11552 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11553 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11561 lt_save_MAGIC_CMD="$MAGIC_CMD"
11562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11564 for ac_dir in $ac_dummy; do
11566 test -z "$ac_dir" && ac_dir=.
11567 if test -f $ac_dir/${ac_tool_prefix}file; then
11568 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11569 if test -n "$file_magic_test_file"; then
11570 case $deplibs_check_method in
11572 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11575 $EGREP "$file_magic_regex" > /dev/null; then
11580 *** Warning: the command libtool uses to detect shared libraries,
11581 *** $file_magic_cmd, produces output that libtool cannot recognize.
11582 *** The result is that libtool may fail to recognize shared libraries
11583 *** as such. This will affect the creation of libtool libraries that
11584 *** depend on shared libraries, but programs linked with such libtool
11585 *** libraries will work regardless of this problem. Nevertheless, you
11586 *** may want to report the problem to your system manager and/or to
11587 *** bug-libtool@gnu.org
11597 MAGIC_CMD="$lt_save_MAGIC_CMD"
11602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11603 if test -n "$MAGIC_CMD"; then
11604 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11605 echo "${ECHO_T}$MAGIC_CMD" >&6
11607 echo "$as_me:$LINENO: result: no" >&5
11608 echo "${ECHO_T}no" >&6
11611 if test -z "$lt_cv_path_MAGIC_CMD"; then
11612 if test -n "$ac_tool_prefix"; then
11613 echo "$as_me:$LINENO: checking for file" >&5
11614 echo $ECHO_N "checking for file... $ECHO_C" >&6
11615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11623 lt_save_MAGIC_CMD="$MAGIC_CMD"
11624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11626 for ac_dir in $ac_dummy; do
11628 test -z "$ac_dir" && ac_dir=.
11629 if test -f $ac_dir/file; then
11630 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11631 if test -n "$file_magic_test_file"; then
11632 case $deplibs_check_method in
11634 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11637 $EGREP "$file_magic_regex" > /dev/null; then
11642 *** Warning: the command libtool uses to detect shared libraries,
11643 *** $file_magic_cmd, produces output that libtool cannot recognize.
11644 *** The result is that libtool may fail to recognize shared libraries
11645 *** as such. This will affect the creation of libtool libraries that
11646 *** depend on shared libraries, but programs linked with such libtool
11647 *** libraries will work regardless of this problem. Nevertheless, you
11648 *** may want to report the problem to your system manager and/or to
11649 *** bug-libtool@gnu.org
11659 MAGIC_CMD="$lt_save_MAGIC_CMD"
11664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11665 if test -n "$MAGIC_CMD"; then
11666 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11667 echo "${ECHO_T}$MAGIC_CMD" >&6
11669 echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6
11683 enable_win32_dll=no
11685 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11686 if test "${enable_libtool_lock+set}" = set; then
11687 enableval="$enable_libtool_lock"
11690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11693 # Check whether --with-pic or --without-pic was given.
11694 if test "${with_pic+set}" = set; then
11695 withval="$with_pic"
11696 pic_mode="$withval"
11700 test -z "$pic_mode" && pic_mode=default
11702 # Use C for the default configuration in the libtool script
11706 ac_cpp='$CPP $CPPFLAGS'
11707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11712 # Source file extension for C test sources.
11715 # Object file extension for compiled C test sources.
11719 # Code to be used in simple compile tests
11720 lt_simple_compile_test_code="int some_variable = 0;\n"
11722 # Code to be used in simple link tests
11723 lt_simple_link_test_code='int main(){return(0);}\n'
11726 # If no C compiler was specified, use CC.
11729 # Allow CC to be a program name with arguments.
11734 # Check for any special shared library compilation flags.
11737 if test "$GCC" = no; then
11740 lt_prog_cc_shlib='-belf'
11744 if test -n "$lt_prog_cc_shlib"; then
11745 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11746 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11747 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11749 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11750 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11751 lt_cv_prog_cc_can_build_shared=no
11757 # Check to make sure the static flag actually works.
11759 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11760 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11761 if test "${lt_prog_compiler_static_works+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 lt_prog_compiler_static_works=no
11765 save_LDFLAGS="$LDFLAGS"
11766 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11767 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11769 # The compiler can only warn and ignore the option if not recognized
11770 # So say no if there are warnings
11771 if test -s conftest.err; then
11772 # Append any errors to the config.log.
11773 cat conftest.err 1>&5
11775 lt_prog_compiler_static_works=yes
11779 LDFLAGS="$save_LDFLAGS"
11782 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11783 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11785 if test x"$lt_prog_compiler_static_works" = xyes; then
11788 lt_prog_compiler_static=
11794 lt_prog_compiler_no_builtin_flag=
11796 if test "$GCC" = yes; then
11797 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11800 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11801 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11802 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 lt_cv_prog_compiler_rtti_exceptions=no
11806 ac_outfile=conftest.$ac_objext
11807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11808 lt_compiler_flag="-fno-rtti -fno-exceptions"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 # The option is referenced via a variable to avoid confusing sed.
11814 lt_compile=`echo "$ac_compile" | $SED \
11815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11817 -e 's:$: $lt_compiler_flag:'`
11818 (eval echo "\"\$as_me:11818: $lt_compile\"" >&5)
11819 (eval "$lt_compile" 2>conftest.err)
11821 cat conftest.err >&5
11822 echo "$as_me:11822: \$? = $ac_status" >&5
11823 if (exit $ac_status) && test -s "$ac_outfile"; then
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings
11826 if test ! -s conftest.err; then
11827 lt_cv_prog_compiler_rtti_exceptions=yes
11833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11844 lt_prog_compiler_wl=
11845 lt_prog_compiler_pic=
11846 lt_prog_compiler_static=
11848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11851 if test "$GCC" = yes; then
11852 lt_prog_compiler_wl='-Wl,'
11853 lt_prog_compiler_static='-static'
11857 # All AIX code is PIC.
11858 if test "$host_cpu" = ia64; then
11859 # AIX 5 now supports IA64 processor
11860 lt_prog_compiler_static='-Bstatic'
11865 # FIXME: we need at least 68020 code to build shared libraries, but
11866 # adding the `-m68020' flag to GCC prevents building anything better,
11868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11872 # PIC is the default for these OSes.
11875 mingw* | pw32* | os2*)
11876 # This hack is so that the source file can tell whether it is being
11877 # built for inclusion in a dll (and should export symbols for example).
11878 lt_prog_compiler_pic='-DDLL_EXPORT'
11881 darwin* | rhapsody*)
11882 # PIC is the default on this platform
11883 # Common symbols not allowed in MH_DYLIB files
11884 lt_prog_compiler_pic='-fno-common'
11888 # Just because we use GCC doesn't mean we suddenly get shared libraries
11889 # on systems that don't support them.
11890 lt_prog_compiler_can_build_shared=no
11895 if test -d /usr/nec; then
11896 lt_prog_compiler_pic=-Kconform_pic
11901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11902 # not for PA HP-UX.
11903 case "$host_cpu" in
11908 lt_prog_compiler_pic='-fPIC'
11914 lt_prog_compiler_pic='-fPIC'
11918 # PORTME Check for flag to pass linker flags through the system compiler.
11921 lt_prog_compiler_wl='-Wl,'
11922 if test "$host_cpu" = ia64; then
11923 # AIX 5 now supports IA64 processor
11924 lt_prog_compiler_static='-Bstatic'
11926 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11930 # PIC is the default on this platform
11931 # Common symbols not allowed in MH_DYLIB files
11932 case "$cc_basename" in
11934 lt_prog_compiler_pic='-qnocommon'
11935 lt_prog_compiler_wl='-Wl,'
11940 mingw* | pw32* | os2*)
11941 # This hack is so that the source file can tell whether it is being
11942 # built for inclusion in a dll (and should export symbols for example).
11943 lt_prog_compiler_pic='-DDLL_EXPORT'
11946 hpux9* | hpux10* | hpux11*)
11947 lt_prog_compiler_wl='-Wl,'
11948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11949 # not for PA HP-UX.
11950 case "$host_cpu" in
11955 lt_prog_compiler_pic='+Z'
11958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11959 lt_prog_compiler_static='${wl}-a ${wl}archive'
11962 irix5* | irix6* | nonstopux*)
11963 lt_prog_compiler_wl='-Wl,'
11964 # PIC (with -KPIC) is the default.
11965 lt_prog_compiler_static='-non_shared'
11969 lt_prog_compiler_pic='-KPIC'
11970 lt_prog_compiler_static='-Bstatic'
11976 lt_prog_compiler_wl='-Wl,'
11977 lt_prog_compiler_pic='-KPIC'
11978 lt_prog_compiler_static='-static'
11981 lt_prog_compiler_wl='-Wl,'
11982 # All Alpha code is PIC.
11983 lt_prog_compiler_static='-non_shared'
11988 osf3* | osf4* | osf5*)
11989 lt_prog_compiler_wl='-Wl,'
11990 # All OSF/1 code is PIC.
11991 lt_prog_compiler_static='-non_shared'
11995 lt_prog_compiler_pic='-Kpic'
11996 lt_prog_compiler_static='-dn'
12000 lt_prog_compiler_wl='-Wl,'
12001 lt_prog_compiler_pic='-KPIC'
12002 lt_prog_compiler_static='-Bstatic'
12006 lt_prog_compiler_wl='-Qoption ld '
12007 lt_prog_compiler_pic='-PIC'
12008 lt_prog_compiler_static='-Bstatic'
12011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12012 lt_prog_compiler_wl='-Wl,'
12013 lt_prog_compiler_pic='-KPIC'
12014 lt_prog_compiler_static='-Bstatic'
12018 if test -d /usr/nec ;then
12019 lt_prog_compiler_pic='-Kconform_pic'
12020 lt_prog_compiler_static='-Bstatic'
12025 lt_prog_compiler_pic='-pic'
12026 lt_prog_compiler_static='-Bstatic'
12030 lt_prog_compiler_can_build_shared=no
12035 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12036 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12039 # Check to make sure the PIC flag actually works.
12041 if test -n "$lt_prog_compiler_pic"; then
12043 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12044 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12045 if test "${lt_prog_compiler_pic_works+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 lt_prog_compiler_pic_works=no
12049 ac_outfile=conftest.$ac_objext
12050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12052 # Insert the option either (1) after the last *FLAGS variable, or
12053 # (2) before a word containing "conftest.", or (3) at the end.
12054 # Note that $ac_compile itself does not contain backslashes and begins
12055 # with a dollar sign (not a hyphen), so the echo should work correctly.
12056 # The option is referenced via a variable to avoid confusing sed.
12057 lt_compile=`echo "$ac_compile" | $SED \
12058 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060 -e 's:$: $lt_compiler_flag:'`
12061 (eval echo "\"\$as_me:12061: $lt_compile\"" >&5)
12062 (eval "$lt_compile" 2>conftest.err)
12064 cat conftest.err >&5
12065 echo "$as_me:12065: \$? = $ac_status" >&5
12066 if (exit $ac_status) && test -s "$ac_outfile"; then
12067 # The compiler can only warn and ignore the option if not recognized
12068 # So say no if there are warnings
12069 if test ! -s conftest.err; then
12070 lt_prog_compiler_pic_works=yes
12076 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12077 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12079 if test x"$lt_prog_compiler_pic_works" = xyes; then
12080 case $lt_prog_compiler_pic in
12082 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12085 lt_prog_compiler_pic=
12086 lt_prog_compiler_can_build_shared=no
12091 # For platforms which do not support PIC, -DPIC is meaningless:
12093 lt_prog_compiler_pic=
12096 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12100 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12101 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12102 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 lt_cv_prog_compiler_c_o=no
12106 $rm -r conftest 2>/dev/null
12110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12112 lt_compiler_flag="-o out/conftest2.$ac_objext"
12113 # Insert the option either (1) after the last *FLAGS variable, or
12114 # (2) before a word containing "conftest.", or (3) at the end.
12115 # Note that $ac_compile itself does not contain backslashes and begins
12116 # with a dollar sign (not a hyphen), so the echo should work correctly.
12117 lt_compile=`echo "$ac_compile" | $SED \
12118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12120 -e 's:$: $lt_compiler_flag:'`
12121 (eval echo "\"\$as_me:12121: $lt_compile\"" >&5)
12122 (eval "$lt_compile" 2>out/conftest.err)
12124 cat out/conftest.err >&5
12125 echo "$as_me:12125: \$? = $ac_status" >&5
12126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12128 # The compiler can only warn and ignore the option if not recognized
12129 # So say no if there are warnings
12130 if test ! -s out/conftest.err; then
12131 lt_cv_prog_compiler_c_o=yes
12136 # SGI C++ compiler will create directory out/ii_files/ for
12137 # template instantiation
12138 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12139 $rm out/* && rmdir out
12145 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12146 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12149 hard_links="nottested"
12150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12151 # do not overwrite the value of need_locks provided by the user
12152 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12153 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12158 ln conftest.a conftest.b 2>&5 || hard_links=no
12159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12160 echo "$as_me:$LINENO: result: $hard_links" >&5
12161 echo "${ECHO_T}$hard_links" >&6
12162 if test "$hard_links" = no; then
12163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12164 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12171 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12172 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12175 allow_undefined_flag=
12176 enable_shared_with_static_runtimes=no
12178 archive_expsym_cmds=
12179 old_archive_From_new_cmds=
12180 old_archive_from_expsyms_cmds=
12181 export_dynamic_flag_spec=
12182 whole_archive_flag_spec=
12183 thread_safe_flag_spec=
12184 hardcode_libdir_flag_spec=
12185 hardcode_libdir_flag_spec_ld=
12186 hardcode_libdir_separator=
12188 hardcode_minus_L=no
12189 hardcode_shlibpath_var=unsupported
12190 link_all_deplibs=unknown
12191 hardcode_automatic=no
12193 module_expsym_cmds=
12194 always_export_symbols=no
12195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12196 # include_expsyms should be a list of space-separated symbols to be *always*
12197 # included in the symbol list
12199 # exclude_expsyms can be an extended regexp of symbols to exclude
12200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12202 # as well as any symbol that contains `d'.
12203 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12205 # platforms (ab)use it in PIC code, but their linkers get confused if
12206 # the symbol is explicitly referenced. Since portable code cannot
12207 # rely on this symbol name, it's probably fine to never include it in
12208 # preloaded symbol tables.
12209 extract_expsyms_cmds=
12212 cygwin* | mingw* | pw32*)
12213 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12214 # When not using gcc, we currently assume that we are using
12215 # Microsoft Visual C++.
12216 if test "$GCC" != yes; then
12226 if test "$with_gnu_ld" = yes; then
12227 # If archive_cmds runs LD, not CC, wlarc should be empty
12230 # See if GNU ld supports shared libraries.
12232 aix3* | aix4* | aix5*)
12233 # On AIX/PPC, the GNU linker is very broken
12234 if test "$host_cpu" != ia64; then
12238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12239 *** to be unable to reliably create shared libraries on AIX.
12240 *** Therefore, libtool is disabling shared libraries support. If you
12241 *** really care for shared libraries, you may want to modify your PATH
12242 *** so that a non-GNU linker is found, and then restart.
12249 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)'
12250 hardcode_libdir_flag_spec='-L$libdir'
12251 hardcode_minus_L=yes
12253 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12254 # that the semantics of dynamic libraries on AmigaOS, at least up
12255 # to version 4, is to share data among multiple programs linked
12256 # with the same dynamic library. Since this doesn't match the
12257 # behavior of shared libraries on other platforms, we can't use
12263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12264 allow_undefined_flag=unsupported
12265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12266 # support --undefined. This deserves some investigation. FIXME
12267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 cygwin* | mingw* | pw32*)
12274 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12275 # as there is no search path for DLLs.
12276 hardcode_libdir_flag_spec='-L$libdir'
12277 allow_undefined_flag=unsupported
12278 always_export_symbols=no
12279 enable_shared_with_static_runtimes=yes
12280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12284 # If the export-symbols file already is a .def file (1st line
12285 # is EXPORTS), use it as is; otherwise, prepend...
12286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12287 cp $export_symbols $output_objdir/$soname.def;
12289 echo EXPORTS > $output_objdir/$soname.def;
12290 cat $export_symbols >> $output_objdir/$soname.def;
12292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12300 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12309 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12313 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12314 *** create shared libraries on Solaris systems. Therefore, libtool
12315 *** is disabling shared libraries support. We urge you to upgrade GNU
12316 *** binutils to release 2.9.1 or newer. Another option is to modify
12317 *** your PATH or compiler configuration so that the native linker is
12318 *** used, and then restart.
12321 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12330 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12332 hardcode_direct=yes
12333 hardcode_shlibpath_var=no
12337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12338 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12339 archive_cmds="$tmp_archive_cmds"
12340 supports_anon_versioning=no
12341 case `$LD -v 2>/dev/null` in
12342 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12345 *\ 2.11.*) ;; # other 2.11 versions
12346 *) supports_anon_versioning=yes ;;
12348 if test $supports_anon_versioning = yes; then
12349 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12351 $echo "local: *; };" >> $output_objdir/$libname.ver~
12352 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12354 archive_expsym_cmds="$tmp_archive_cmds"
12362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12371 if test "$ld_shlibs" = yes; then
12372 runpath_var=LD_RUN_PATH
12373 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12374 export_dynamic_flag_spec='${wl}--export-dynamic'
12375 # ancient GNU ld didn't support --whole-archive et. al.
12376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12379 whole_archive_flag_spec=
12383 # PORTME fill in a description of your system's linker (not GNU ld)
12386 allow_undefined_flag=unsupported
12387 always_export_symbols=yes
12388 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'
12389 # Note: this linker hardcodes the directories in LIBPATH if there
12390 # are no directories specified by -L.
12391 hardcode_minus_L=yes
12392 if test "$GCC" = yes && test -z "$link_static_flag"; then
12393 # Neither direct hardcoding nor static linking is supported with a
12395 hardcode_direct=unsupported
12400 if test "$host_cpu" = ia64; then
12401 # On IA64, the linker does run time linking by default, so we don't
12402 # have to do anything special.
12403 aix_use_runtimelinking=no
12404 exp_sym_flag='-Bexport'
12407 # If we're using GNU nm, then we don't want the "-C" option.
12408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12410 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'
12412 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'
12414 aix_use_runtimelinking=no
12416 # Test if we are trying to use run time linking or normal
12417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12418 # need to do runtime linking.
12419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12420 for ld_flag in $LDFLAGS; do
12421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12422 aix_use_runtimelinking=yes
12428 exp_sym_flag='-bexport'
12429 no_entry_flag='-bnoentry'
12432 # When large executables or shared objects are built, AIX ld can
12433 # have problems creating the table of contents. If linking a library
12434 # or program results in "error TOC overflow" add -mminimal-toc to
12435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12439 hardcode_direct=yes
12440 hardcode_libdir_separator=':'
12441 link_all_deplibs=yes
12443 if test "$GCC" = yes; then
12444 case $host_os in aix4.012|aix4.012.*)
12445 # We only want to do this on AIX 4.2 and lower, the check
12446 # below for broken collect2 doesn't work under 4.3+
12447 collect2name=`${CC} -print-prog-name=collect2`
12448 if test -f "$collect2name" && \
12449 strings "$collect2name" | grep resolve_lib_name >/dev/null
12451 # We have reworked collect2
12452 hardcode_direct=yes
12454 # We have old collect2
12455 hardcode_direct=unsupported
12456 # It fails to find uninstalled libraries when the uninstalled
12457 # path is not listed in the libpath. Setting hardcode_minus_L
12458 # to unsupported forces relinking
12459 hardcode_minus_L=yes
12460 hardcode_libdir_flag_spec='-L$libdir'
12461 hardcode_libdir_separator=
12464 shared_flag='-shared'
12467 if test "$host_cpu" = ia64; then
12468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12469 # chokes on -Wl,-G. The following line is correct:
12472 if test "$aix_use_runtimelinking" = yes; then
12473 shared_flag='${wl}-G'
12475 shared_flag='${wl}-bM:SRE'
12480 # It seems that -bexpall does not export symbols beginning with
12481 # underscore (_), so it is better to generate a list of symbols to export.
12482 always_export_symbols=yes
12483 if test "$aix_use_runtimelinking" = yes; then
12484 # Warning - without using the other runtime loading flags (-brtl),
12485 # -berok will link without error, but may produce a broken library.
12486 allow_undefined_flag='-berok'
12487 # Determine the default libpath from the value encoded in an empty executable.
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>conftest.er1
12507 grep -v '^ *+' conftest.er1 >conftest.err
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12526 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12528 # Check for a 64-bit object if we didn't find anything.
12529 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; }
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12536 rm -f conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12540 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12541 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"
12543 if test "$host_cpu" = ia64; then
12544 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12545 allow_undefined_flag="-z nodefs"
12546 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"
12548 # Determine the default libpath from the value encoded in an empty executable.
12549 cat >conftest.$ac_ext <<_ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>conftest.er1
12568 grep -v '^ *+' conftest.er1 >conftest.err
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12589 # Check for a 64-bit object if we didn't find anything.
12590 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; }
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12597 rm -f conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12601 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12602 # Warning - without using the other run time loading flags,
12603 # -berok will link without error, but may produce a broken library.
12604 no_undefined_flag=' ${wl}-bernotok'
12605 allow_undefined_flag=' ${wl}-berok'
12606 # -bexpall does not export symbols beginning with underscore (_)
12607 always_export_symbols=yes
12608 # Exported symbols can be pulled into shared objects from archives
12609 whole_archive_flag_spec=' '
12610 archive_cmds_need_lc=yes
12611 # This is similar to how AIX traditionally builds it's shared libraries.
12612 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'
12618 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)'
12619 hardcode_libdir_flag_spec='-L$libdir'
12620 hardcode_minus_L=yes
12621 # see comment about different semantics on the GNU ld section
12626 export_dynamic_flag_spec=-rdynamic
12629 cygwin* | mingw* | pw32*)
12630 # When not using gcc, we currently assume that we are using
12631 # Microsoft Visual C++.
12632 # hardcode_libdir_flag_spec is actually meaningless, as there is
12633 # no search path for DLLs.
12634 hardcode_libdir_flag_spec=' '
12635 allow_undefined_flag=unsupported
12636 # Tell ltmain to make .lib files, not .a files.
12638 # Tell ltmain to make .dll files, not .so files.
12640 # FIXME: Setting linknames here is a bad hack.
12641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12642 # The linker will automatically build a .lib file if we build a DLL.
12643 old_archive_From_new_cmds='true'
12644 # FIXME: Should let the user specify the lib program.
12645 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12646 fix_srcfile_path='`cygpath -w "$srcfile"`'
12647 enable_shared_with_static_runtimes=yes
12650 darwin* | rhapsody*)
12652 rhapsody* | darwin1.[012])
12653 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12656 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12657 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12659 case ${MACOSX_DEPLOYMENT_TARGET} in
12661 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12664 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12670 archive_cmds_need_lc=no
12672 hardcode_automatic=yes
12673 hardcode_shlibpath_var=unsupported
12674 whole_archive_flag_spec=''
12675 link_all_deplibs=yes
12676 if test "$GCC" = yes ; then
12677 output_verbose_link_cmd='echo'
12678 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12679 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12680 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12681 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}'
12682 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}'
12684 case "$cc_basename" in
12686 output_verbose_link_cmd='echo'
12687 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12688 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12689 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12690 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}'
12691 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}'
12701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12702 hardcode_libdir_flag_spec='-L$libdir'
12703 hardcode_shlibpath_var=no
12710 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12711 # support. Future versions do this automatically, but an explicit c++rt0.o
12712 # does not break anything, and helps significantly (at the cost of a little
12715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12716 hardcode_libdir_flag_spec='-R$libdir'
12717 hardcode_direct=yes
12718 hardcode_shlibpath_var=no
12721 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_direct=yes
12725 hardcode_minus_L=yes
12726 hardcode_shlibpath_var=no
12729 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12730 freebsd* | kfreebsd*-gnu)
12731 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12732 hardcode_libdir_flag_spec='-R$libdir'
12733 hardcode_direct=yes
12734 hardcode_shlibpath_var=no
12738 if test "$GCC" = yes; then
12739 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'
12741 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'
12743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12744 hardcode_libdir_separator=:
12745 hardcode_direct=yes
12747 # hardcode_minus_L: Not really in the search PATH,
12748 # but as the default location of the library.
12749 hardcode_minus_L=yes
12750 export_dynamic_flag_spec='${wl}-E'
12754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12755 case "$host_cpu" in
12757 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12764 case "$host_cpu" in
12766 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12773 if test "$with_gnu_ld" = no; then
12774 case "$host_cpu" in
12776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_flag_spec_ld='+b $libdir'
12778 hardcode_libdir_separator=:
12780 hardcode_shlibpath_var=no
12783 hardcode_libdir_flag_spec='-L$libdir'
12785 hardcode_shlibpath_var=no
12787 # hardcode_minus_L: Not really in the search PATH,
12788 # but as the default location of the library.
12789 hardcode_minus_L=yes
12792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12793 hardcode_libdir_separator=:
12794 hardcode_direct=yes
12795 export_dynamic_flag_spec='${wl}-E'
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L=yes
12805 irix5* | irix6* | nonstopux*)
12806 if test "$GCC" = yes; then
12807 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'
12809 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'
12810 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12813 hardcode_libdir_separator=:
12814 link_all_deplibs=yes
12818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12823 hardcode_libdir_flag_spec='-R$libdir'
12824 hardcode_direct=yes
12825 hardcode_shlibpath_var=no
12829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_direct=yes
12831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12832 hardcode_libdir_separator=:
12833 hardcode_shlibpath_var=no
12837 hardcode_direct=yes
12838 hardcode_shlibpath_var=no
12839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12843 export_dynamic_flag_spec='${wl}-E'
12846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12848 hardcode_libdir_flag_spec='-R$libdir'
12851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_minus_L=yes
12861 allow_undefined_flag=unsupported
12862 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'
12863 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12867 if test "$GCC" = yes; then
12868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12869 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'
12871 allow_undefined_flag=' -expect_unresolved \*'
12872 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'
12874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12875 hardcode_libdir_separator=:
12878 osf4* | osf5*) # as osf3* with the addition of -msym flag
12879 if test "$GCC" = yes; then
12880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12881 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'
12882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12884 allow_undefined_flag=' -expect_unresolved \*'
12885 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'
12886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12887 $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'
12889 # Both c and cxx compiler support -rpath directly
12890 hardcode_libdir_flag_spec='-rpath $libdir'
12892 hardcode_libdir_separator=:
12896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_shlibpath_var=no
12898 export_dynamic_flag_spec='${wl}-Bexport'
12899 runpath_var=LD_RUN_PATH
12900 hardcode_runpath_var=yes
12904 no_undefined_flag=' -z text'
12905 if test "$GCC" = yes; then
12906 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12908 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12914 hardcode_libdir_flag_spec='-R$libdir'
12915 hardcode_shlibpath_var=no
12917 solaris2.[0-5] | solaris2.[0-5].*) ;;
12918 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12919 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12921 link_all_deplibs=yes
12925 if test "x$host_vendor" = xsequent; then
12926 # Use $CC to link under sequent, because it throws in some extra .o
12927 # files that make .init and .fini sections work.
12928 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12930 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12932 hardcode_libdir_flag_spec='-L$libdir'
12933 hardcode_direct=yes
12934 hardcode_minus_L=yes
12935 hardcode_shlibpath_var=no
12939 case $host_vendor in
12941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_direct=yes # is this really true???
12945 ## LD is ld it makes a PLAMLIB
12946 ## CC just makes a GrossModule.
12947 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12948 reload_cmds='$CC -r -o $output$reload_objs'
12952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12953 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12956 runpath_var='LD_RUN_PATH'
12957 hardcode_shlibpath_var=no
12961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12962 hardcode_shlibpath_var=no
12963 export_dynamic_flag_spec='-Bexport'
12967 if test -d /usr/nec; then
12968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12969 hardcode_shlibpath_var=no
12970 runpath_var=LD_RUN_PATH
12971 hardcode_runpath_var=yes
12977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12978 hardcode_direct=yes
12979 hardcode_minus_L=no
12980 hardcode_shlibpath_var=no
12981 hardcode_runpath_var=yes
12982 runpath_var=LD_RUN_PATH
12985 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12986 no_undefined_flag='${wl}-z ${wl}text'
12987 if test "$GCC" = yes; then
12988 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 runpath_var='LD_RUN_PATH'
12993 hardcode_shlibpath_var=no
12997 no_undefined_flag=' -z text'
12998 # $CC -shared without GNU ld will not create a library from C++
12999 # object files and a static libstdc++, better avoid it by now
13000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13001 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13003 hardcode_libdir_flag_spec=
13004 hardcode_shlibpath_var=no
13005 runpath_var='LD_RUN_PATH'
13009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13010 hardcode_libdir_flag_spec='-L$libdir'
13011 hardcode_shlibpath_var=no
13020 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13021 echo "${ECHO_T}$ld_shlibs" >&6
13022 test "$ld_shlibs" = no && can_build_shared=no
13024 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13025 if test "$GCC" = yes; then
13026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13030 # Do we need to explicitly link libc?
13032 case "x$archive_cmds_need_lc" in
13034 # Assume -lc should be added
13035 archive_cmds_need_lc=yes
13037 if test "$enable_shared" = yes && test "$GCC" = yes; then
13038 case $archive_cmds in
13040 # FIXME: we may have to deal with multi-command sequences.
13043 # Test whether the compiler implicitly links with -lc since on some
13044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13045 # to ld, don't add -lc before -lgcc.
13046 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } 2>conftest.err; then
13058 libobjs=conftest.$ac_objext
13060 wl=$lt_prog_compiler_wl
13066 lt_save_allow_undefined_flag=$allow_undefined_flag
13067 allow_undefined_flag=
13068 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13069 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }
13074 archive_cmds_need_lc=no
13076 archive_cmds_need_lc=yes
13078 allow_undefined_flag=$lt_save_allow_undefined_flag
13080 cat conftest.err 1>&5
13083 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13084 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13091 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13092 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13093 library_names_spec=
13094 libname_spec='lib$name'
13098 postuninstall_cmds=
13102 shlibpath_overrides_runpath=unknown
13104 dynamic_linker="$host_os ld.so"
13105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13106 if test "$GCC" = yes; then
13107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13108 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13109 # if the path contains ";" then we assume it to be the separator
13110 # otherwise default to the standard path separator (i.e. ":") - it is
13111 # assumed that no part of a normal pathname contains ";" but that should
13112 # okay in the real world where ";" in dirpaths is itself problematic.
13113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13120 need_lib_prefix=unknown
13121 hardcode_into_libs=no
13123 # when you set need_version to no, make sure it does not cause -set_version
13124 # flags to be left without arguments
13125 need_version=unknown
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13131 shlibpath_var=LIBPATH
13133 # AIX 3 has no versioning support, so we append a major version to the name.
13134 soname_spec='${libname}${release}${shared_ext}$major'
13141 hardcode_into_libs=yes
13142 if test "$host_cpu" = ia64; then
13143 # AIX 5 supports IA64
13144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13145 shlibpath_var=LD_LIBRARY_PATH
13147 # With GCC up to 2.95.x, collect2 would create an import file
13148 # for dependence libraries. The import file would start with
13149 # the line `#! .'. This would cause the generated library to
13150 # depend on `.', always an invalid library. This was fixed in
13151 # development snapshots of GCC prior to 3.0.
13153 aix4 | aix4.[01] | aix4.[01].*)
13154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13156 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13159 can_build_shared=no
13163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13164 # soname into executable. Probably we can add versioning support to
13165 # collect2, so additional links can be useful in future.
13166 if test "$aix_use_runtimelinking" = yes; then
13167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13168 # instead of lib<name>.a to let people know that these are not
13169 # typical AIX shared libraries.
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 # We preserve .a as extension for shared libraries through AIX4.2
13173 # and later when we are not doing run time linking.
13174 library_names_spec='${libname}${release}.a $libname.a'
13175 soname_spec='${libname}${release}${shared_ext}$major'
13177 shlibpath_var=LIBPATH
13182 library_names_spec='$libname.ixlibrary $libname.a'
13183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13184 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'
13188 library_names_spec='${libname}${shared_ext}'
13189 dynamic_linker="$host_os ld.so"
13190 shlibpath_var=LIBRARY_PATH
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13202 # the default ld.so.conf also contains /usr/contrib/lib and
13203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13204 # libtool to hard-code these into programs
13207 cygwin* | mingw* | pw32*)
13208 version_type=windows
13213 case $GCC,$host_os in
13214 yes,cygwin* | yes,mingw* | yes,pw32*)
13215 library_names_spec='$libname.dll.a'
13216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13217 postinstall_cmds='base_file=`basename \${file}`~
13218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13219 dldir=$destdir/`dirname \$dlpath`~
13220 test -d \$dldir || mkdir -p \$dldir~
13221 $install_prog $dir/$dlname \$dldir/$dlname'
13222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13223 dlpath=$dir/\$dldll~
13225 shlibpath_overrides_runpath=yes
13229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13234 # MinGW DLLs use traditional 'lib' prefix
13235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13237 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13238 # It is most probably a Windows format PATH printed by
13239 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13240 # path with ; separators, and with drive letters. We can handle the
13241 # drive letters (cygwin fileutils understands them), so leave them,
13242 # especially as we might pass files found there to a mingw objdump,
13243 # which wouldn't understand a cygwinified path. Ahh.
13244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13250 # pw32 DLLs use 'pw' prefix rather than 'lib'
13251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13260 dynamic_linker='Win32 ld.exe'
13261 # FIXME: first we should search . and the directory the executable is in
13265 darwin* | rhapsody*)
13266 dynamic_linker="$host_os dyld"
13267 version_type=darwin
13270 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13271 soname_spec='${libname}${release}${major}$shared_ext'
13272 shlibpath_overrides_runpath=yes
13273 shlibpath_var=DYLD_LIBRARY_PATH
13274 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13275 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13276 if test "$GCC" = yes; then
13277 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"`
13279 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13281 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13289 soname_spec='${libname}${release}${shared_ext}$major'
13290 shlibpath_var=LD_LIBRARY_PATH
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=no
13305 hardcode_into_libs=yes
13306 dynamic_linker='GNU ld.so'
13310 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13311 version_type=freebsd-$objformat
13312 case $version_type in
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13323 shlibpath_var=LD_LIBRARY_PATH
13326 shlibpath_overrides_runpath=yes
13328 freebsd3.01* | freebsdelf3.01*)
13329 shlibpath_overrides_runpath=yes
13330 hardcode_into_libs=yes
13333 shlibpath_overrides_runpath=no
13334 hardcode_into_libs=yes
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 shlibpath_var=LD_LIBRARY_PATH
13346 hardcode_into_libs=yes
13349 hpux9* | hpux10* | hpux11*)
13350 # Give a soname corresponding to the major version so that dld.sl refuses to
13351 # link against other versions.
13355 case "$host_cpu" in
13358 hardcode_into_libs=yes
13359 dynamic_linker="$host_os dld.so"
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 if test "X$HPUX_IA64_MODE" = X32; then
13365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13373 hardcode_into_libs=yes
13374 dynamic_linker="$host_os dld.sl"
13375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13384 dynamic_linker="$host_os dld.sl"
13385 shlibpath_var=SHLIB_PATH
13386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13392 postinstall_cmds='chmod 555 $lib'
13395 irix5* | irix6* | nonstopux*)
13397 nonstopux*) version_type=nonstopux ;;
13399 if test "$lt_cv_prog_gnu_ld" = yes; then
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13410 irix5* | nonstopux*)
13411 libsuff= shlibsuff=
13414 case $LD in # libtool.m4 will add one of these switches to LD
13415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13416 libsuff= shlibsuff= libmagic=32-bit;;
13417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13418 libsuff=32 shlibsuff=N32 libmagic=N32;;
13419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13421 *) libsuff= shlibsuff= libmagic=never-match;;
13425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13426 shlibpath_overrides_runpath=no
13427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13429 hardcode_into_libs=yes
13432 # No shared lib support for Linux oldld, aout, or coff.
13433 linux*oldld* | linux*aout* | linux*coff*)
13437 # This must be Linux ELF.
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=no
13447 # This implies no fast_install, which is unacceptable.
13448 # Some rework will be needed to allow for fast_install
13449 # before this can be enabled.
13450 hardcode_into_libs=yes
13452 # Append ld.so.conf contents to the search path
13453 if test -f /etc/ld.so.conf; then
13454 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13458 # We used to test for /lib/ld.so.1 and disable shared libraries on
13459 # powerpc, because MkLinux only supported shared libraries with the
13460 # GNU dynamic linker. Since this was broken with cross compilers,
13461 # most powerpc-linux boxes support dynamic linking these days and
13462 # people can always --disable-shared, the test was removed, and we
13463 # assume the GNU/Linux dynamic linker is in use.
13464 dynamic_linker='GNU/Linux ld.so'
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=no
13475 hardcode_into_libs=yes
13476 dynamic_linker='GNU ld.so'
13483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13486 dynamic_linker='NetBSD (a.out) ld.so'
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 dynamic_linker='NetBSD ld.elf_so'
13492 shlibpath_var=LD_LIBRARY_PATH
13493 shlibpath_overrides_runpath=yes
13494 hardcode_into_libs=yes
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=yes
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=yes
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13520 shlibpath_var=LD_LIBRARY_PATH
13521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13523 openbsd2.[89] | openbsd2.[89].*)
13524 shlibpath_overrides_runpath=no
13527 shlibpath_overrides_runpath=yes
13531 shlibpath_overrides_runpath=yes
13536 libname_spec='$name'
13539 library_names_spec='$libname${shared_ext} $libname.a'
13540 dynamic_linker='OS/2 ld.exe'
13541 shlibpath_var=LIBPATH
13544 osf3* | osf4* | osf5*)
13548 soname_spec='${libname}${release}${shared_ext}$major'
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13557 soname_spec='${libname}${release}${shared_ext}$major'
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 shlibpath_var=LD_LIBRARY_PATH
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13570 hardcode_into_libs=yes
13571 # ldd complains unless libraries are executable
13572 postinstall_cmds='chmod +x $lib'
13577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 shlibpath_overrides_runpath=yes
13581 if test "$with_gnu_ld" = yes; then
13587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 shlibpath_var=LD_LIBRARY_PATH
13592 case $host_vendor in
13594 shlibpath_overrides_runpath=no
13596 export_dynamic_flag_spec='${wl}-Blargedynsym'
13597 runpath_var=LD_RUN_PATH
13605 shlibpath_overrides_runpath=no
13606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13612 if test -d /usr/nec ;then
13614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13615 soname_spec='$libname${shared_ext}.$major'
13616 shlibpath_var=LD_LIBRARY_PATH
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13631 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13632 echo "${ECHO_T}$dynamic_linker" >&6
13633 test "$dynamic_linker" = no && can_build_shared=no
13635 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13636 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13638 if test -n "$hardcode_libdir_flag_spec" || \
13639 test -n "$runpath_var" || \
13640 test "X$hardcode_automatic" = "Xyes" ; then
13642 # We can hardcode non-existant directories.
13643 if test "$hardcode_direct" != no &&
13644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13645 # have to relink, otherwise we might link with an installed library
13646 # when we should be linking with a yet-to-be-installed one
13647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13648 test "$hardcode_minus_L" != no; then
13649 # Linking always hardcodes the temporary library directory.
13650 hardcode_action=relink
13652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13653 hardcode_action=immediate
13656 # We cannot hardcode anything, or else we can only hardcode existing
13658 hardcode_action=unsupported
13660 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13661 echo "${ECHO_T}$hardcode_action" >&6
13663 if test "$hardcode_action" = relink; then
13664 # Fast installation is not supported
13665 enable_fast_install=no
13666 elif test "$shlibpath_overrides_runpath" = yes ||
13667 test "$enable_shared" = no; then
13668 # Fast installation is not necessary
13669 enable_fast_install=needless
13674 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13675 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13676 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13677 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13678 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13679 echo "$as_me:$LINENO: result: yes" >&5
13680 echo "${ECHO_T}yes" >&6
13682 # FIXME - insert some real tests, host_os isn't really good enough
13685 if test -n "$STRIP" ; then
13686 striplib="$STRIP -x"
13687 echo "$as_me:$LINENO: result: yes" >&5
13688 echo "${ECHO_T}yes" >&6
13690 echo "$as_me:$LINENO: result: no" >&5
13691 echo "${ECHO_T}no" >&6
13695 echo "$as_me:$LINENO: result: no" >&5
13696 echo "${ECHO_T}no" >&6
13701 if test "x$enable_dlopen" != xyes; then
13702 enable_dlopen=unknown
13703 enable_dlopen_self=unknown
13704 enable_dlopen_self_static=unknown
13711 lt_cv_dlopen="load_add_on"
13713 lt_cv_dlopen_self=yes
13717 lt_cv_dlopen="LoadLibrary"
13722 lt_cv_dlopen="dlopen"
13727 # if libdl is installed we need to link against it
13728 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 ac_check_lib_save_LIBS=$LIBS
13735 cat >conftest.$ac_ext <<_ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13742 /* Override any gcc2 internal prototype to avoid an error. */
13746 /* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */
13757 rm -f conftest.$ac_objext conftest$ac_exeext
13758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13759 (eval $ac_link) 2>conftest.er1
13761 grep -v '^ *+' conftest.er1 >conftest.err
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_lib_dl_dlopen=yes
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 ac_cv_lib_dl_dlopen=no
13786 rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 LIBS=$ac_check_lib_save_LIBS
13790 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13791 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13792 if test $ac_cv_lib_dl_dlopen = yes; then
13793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13796 lt_cv_dlopen="dyld"
13798 lt_cv_dlopen_self=yes
13805 echo "$as_me:$LINENO: checking for shl_load" >&5
13806 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13807 if test "${ac_cv_func_shl_load+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13818 #define shl_load innocuous_shl_load
13820 /* System header to define __stub macros and hopefully few prototypes,
13821 which can conflict with char shl_load (); below.
13822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13823 <limits.h> exists even on freestanding compilers. */
13826 # include <limits.h>
13828 # include <assert.h>
13833 /* Override any gcc2 internal prototype to avoid an error. */
13838 /* We use char because int might match the return type of a gcc2
13839 builtin and then its argument prototype would still apply. */
13841 /* The GNU C library defines this for functions which it implements
13842 to always fail with ENOSYS. Some functions are actually named
13843 something starting with __ and the normal name is an alias. */
13844 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13847 char (*f) () = shl_load;
13856 return f != shl_load;
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 ac_cv_func_shl_load=yes
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_cv_func_shl_load=no
13890 rm -f conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13893 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13894 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13895 if test $ac_cv_func_shl_load = yes; then
13896 lt_cv_dlopen="shl_load"
13898 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13899 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 ac_check_lib_save_LIBS=$LIBS
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag"
13937 || test ! -s conftest.err'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest$ac_exeext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_cv_lib_dld_shl_load=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_cv_lib_dld_shl_load=no
13956 rm -f conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13962 if test $ac_cv_lib_dld_shl_load = yes; then
13963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13965 echo "$as_me:$LINENO: checking for dlopen" >&5
13966 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13967 if test "${ac_cv_func_dlopen+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13978 #define dlopen innocuous_dlopen
13980 /* System header to define __stub macros and hopefully few prototypes,
13981 which can conflict with char dlopen (); below.
13982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13983 <limits.h> exists even on freestanding compilers. */
13986 # include <limits.h>
13988 # include <assert.h>
13993 /* Override any gcc2 internal prototype to avoid an error. */
13998 /* We use char because int might match the return type of a gcc2
13999 builtin and then its argument prototype would still apply. */
14001 /* The GNU C library defines this for functions which it implements
14002 to always fail with ENOSYS. Some functions are actually named
14003 something starting with __ and the normal name is an alias. */
14004 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14007 char (*f) () = dlopen;
14016 return f != dlopen;
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_func_dlopen=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_func_dlopen=no
14050 rm -f conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14054 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14055 if test $ac_cv_func_dlopen = yes; then
14056 lt_cv_dlopen="dlopen"
14058 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14059 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14060 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 ac_check_lib_save_LIBS=$LIBS
14065 cat >conftest.$ac_ext <<_ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14072 /* Override any gcc2 internal prototype to avoid an error. */
14076 /* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089 (eval $ac_link) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_cv_lib_dl_dlopen=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_cv_lib_dl_dlopen=no
14116 rm -f conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14122 if test $ac_cv_lib_dl_dlopen = yes; then
14123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14125 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14126 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14127 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 ac_check_lib_save_LIBS=$LIBS
14131 LIBS="-lsvld $LIBS"
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14139 /* Override any gcc2 internal prototype to avoid an error. */
14143 /* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14154 rm -f conftest.$ac_objext conftest$ac_exeext
14155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156 (eval $ac_link) 2>conftest.er1
14158 grep -v '^ *+' conftest.er1 >conftest.err
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -z "$ac_c_werror_flag"
14164 || test ! -s conftest.err'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 ac_cv_lib_svld_dlopen=yes
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ac_cv_lib_svld_dlopen=no
14183 rm -f conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14187 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14188 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14189 if test $ac_cv_lib_svld_dlopen = yes; then
14190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14192 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14193 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14194 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 ac_check_lib_save_LIBS=$LIBS
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14206 /* Override any gcc2 internal prototype to avoid an error. */
14210 /* We use char because int might match the return type of a gcc2
14211 builtin and then its argument prototype would still apply. */
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14223 (eval $ac_link) 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest$ac_exeext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_cv_lib_dld_dld_link=yes
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14248 ac_cv_lib_dld_dld_link=no
14250 rm -f conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14252 LIBS=$ac_check_lib_save_LIBS
14254 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14255 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14256 if test $ac_cv_lib_dld_dld_link = yes; then
14257 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14278 if test "x$lt_cv_dlopen" != xno; then
14284 case $lt_cv_dlopen in
14286 save_CPPFLAGS="$CPPFLAGS"
14287 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14289 save_LDFLAGS="$LDFLAGS"
14290 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14293 LIBS="$lt_cv_dlopen_libs $LIBS"
14295 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14296 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14297 if test "${lt_cv_dlopen_self+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 if test "$cross_compiling" = yes; then :
14301 lt_cv_dlopen_self=cross
14303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14304 lt_status=$lt_dlunknown
14305 cat > conftest.$ac_ext <<EOF
14306 #line 14306 "configure"
14307 #include "confdefs.h"
14316 # define LT_DLGLOBAL RTLD_GLOBAL
14319 # define LT_DLGLOBAL DL_GLOBAL
14321 # define LT_DLGLOBAL 0
14325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14326 find out it does not work in some platform. */
14327 #ifndef LT_DLLAZY_OR_NOW
14329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14332 # define LT_DLLAZY_OR_NOW DL_LAZY
14335 # define LT_DLLAZY_OR_NOW RTLD_NOW
14338 # define LT_DLLAZY_OR_NOW DL_NOW
14340 # define LT_DLLAZY_OR_NOW 0
14348 extern "C" void exit (int);
14351 void fnord() { int i=42;}
14354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14355 int status = $lt_dlunknown;
14359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14361 /* dlclose (self); */
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368 (eval $ac_link) 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14372 (./conftest; exit; ) 2>/dev/null
14374 case x$lt_status in
14375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14377 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14380 # compilation failed
14381 lt_cv_dlopen_self=no
14388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14389 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14391 if test "x$lt_cv_dlopen_self" = xyes; then
14392 LDFLAGS="$LDFLAGS $link_static_flag"
14393 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14394 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14395 if test "${lt_cv_dlopen_self_static+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 if test "$cross_compiling" = yes; then :
14399 lt_cv_dlopen_self_static=cross
14401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14402 lt_status=$lt_dlunknown
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14404 "configure"
14405 #include "confdefs.h"
14414 # define LT_DLGLOBAL RTLD_GLOBAL
14417 # define LT_DLGLOBAL DL_GLOBAL
14419 # define LT_DLGLOBAL 0
14423 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14424 find out it does not work in some platform. */
14425 #ifndef LT_DLLAZY_OR_NOW
14427 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14430 # define LT_DLLAZY_OR_NOW DL_LAZY
14433 # define LT_DLLAZY_OR_NOW RTLD_NOW
14436 # define LT_DLLAZY_OR_NOW DL_NOW
14438 # define LT_DLLAZY_OR_NOW 0
14446 extern "C" void exit (int);
14449 void fnord() { int i=42;}
14452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14453 int status = $lt_dlunknown;
14457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14459 /* dlclose (self); */
14465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14466 (eval $ac_link) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14470 (./conftest; exit; ) 2>/dev/null
14472 case x$lt_status in
14473 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14474 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14475 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14478 # compilation failed
14479 lt_cv_dlopen_self_static=no
14486 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14487 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14490 CPPFLAGS="$save_CPPFLAGS"
14491 LDFLAGS="$save_LDFLAGS"
14496 case $lt_cv_dlopen_self in
14497 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14498 *) enable_dlopen_self=unknown ;;
14501 case $lt_cv_dlopen_self_static in
14502 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14503 *) enable_dlopen_self_static=unknown ;;
14508 # Report which librarie types wil actually be built
14509 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14510 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14511 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14512 echo "${ECHO_T}$can_build_shared" >&6
14514 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14515 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14516 test "$can_build_shared" = "no" && enable_shared=no
14518 # On AIX, shared libraries and static libraries use the same namespace, and
14519 # are all built from PIC.
14522 test "$enable_shared" = yes && enable_static=no
14523 if test -n "$RANLIB"; then
14524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14525 postinstall_cmds='$RANLIB $lib'
14530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14531 test "$enable_shared" = yes && enable_static=no
14535 echo "$as_me:$LINENO: result: $enable_shared" >&5
14536 echo "${ECHO_T}$enable_shared" >&6
14538 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14539 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14540 # Make sure either enable_shared or enable_static is yes.
14541 test "$enable_shared" = yes || enable_static=yes
14542 echo "$as_me:$LINENO: result: $enable_static" >&5
14543 echo "${ECHO_T}$enable_static" >&6
14545 # The else clause should only fire when bootstrapping the
14546 # libtool distribution, otherwise you forgot to ship ltmain.sh
14547 # with your package, and you will get complaints that there are
14548 # no rules to generate ltmain.sh.
14549 if test -f "$ltmain"; then
14550 # See if we are running on zsh, and set the options which allow our commands through
14551 # without removal of \ escapes.
14552 if test -n "${ZSH_VERSION+set}" ; then
14553 setopt NO_GLOB_SUBST
14555 # Now quote all the things that may contain metacharacters while being
14556 # careful not to overquote the AC_SUBSTed values. We take copies of the
14557 # variables and quote the copies for generation of the libtool script.
14558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14562 deplibs_check_method reload_flag reload_cmds need_locks \
14563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14564 lt_cv_sys_global_symbol_to_c_name_address \
14565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14566 old_postinstall_cmds old_postuninstall_cmds \
14570 lt_prog_compiler_wl \
14571 lt_prog_compiler_pic \
14572 lt_prog_compiler_static \
14573 lt_prog_compiler_no_builtin_flag \
14574 export_dynamic_flag_spec \
14575 thread_safe_flag_spec \
14576 whole_archive_flag_spec \
14577 enable_shared_with_static_runtimes \
14579 old_archive_from_new_cmds \
14584 compiler_lib_search_path \
14586 archive_expsym_cmds \
14588 postuninstall_cmds \
14589 old_archive_from_expsyms_cmds \
14590 allow_undefined_flag \
14591 no_undefined_flag \
14592 export_symbols_cmds \
14593 hardcode_libdir_flag_spec \
14594 hardcode_libdir_flag_spec_ld \
14595 hardcode_libdir_separator \
14596 hardcode_automatic \
14598 module_expsym_cmds \
14599 lt_cv_prog_compiler_c_o \
14601 include_expsyms; do
14604 old_archive_cmds | \
14605 old_archive_from_new_cmds | \
14607 archive_expsym_cmds | \
14609 module_expsym_cmds | \
14610 old_archive_from_expsyms_cmds | \
14611 export_symbols_cmds | \
14612 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14613 postinstall_cmds | postuninstall_cmds | \
14614 old_postinstall_cmds | old_postuninstall_cmds | \
14615 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14616 # Double-quote double-evaled strings.
14617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14626 *'\$0 --fallback-echo"')
14627 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14631 cfgfile="${ofile}T"
14632 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14634 { echo "$as_me:$LINENO: creating $ofile" >&5
14635 echo "$as_me: creating $ofile" >&6;}
14637 cat <<__EOF__ >> "$cfgfile"
14640 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14641 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14644 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14645 # Free Software Foundation, Inc.
14647 # This file is part of GNU Libtool:
14648 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14650 # This program is free software; you can redistribute it and/or modify
14651 # it under the terms of the GNU General Public License as published by
14652 # the Free Software Foundation; either version 2 of the License, or
14653 # (at your option) any later version.
14655 # This program is distributed in the hope that it will be useful, but
14656 # WITHOUT ANY WARRANTY; without even the implied warranty of
14657 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14658 # General Public License for more details.
14660 # You should have received a copy of the GNU General Public License
14661 # along with this program; if not, write to the Free Software
14662 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14664 # As a special exception to the GNU General Public License, if you
14665 # distribute this file as part of a program that contains a
14666 # configuration script generated by Autoconf, you may include it under
14667 # the same distribution terms that you use for the rest of that program.
14669 # A sed program that does not truncate output.
14672 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14673 Xsed="$SED -e s/^X//"
14675 # The HP-UX ksh and POSIX shell print the target directory to stdout
14676 # if CDPATH is set.
14677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14679 # The names of the tagged configurations supported by this script.
14682 # ### BEGIN LIBTOOL CONFIG
14684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14686 # Shell to use when invoking shell scripts.
14689 # Whether or not to build shared libraries.
14690 build_libtool_libs=$enable_shared
14692 # Whether or not to build static libraries.
14693 build_old_libs=$enable_static
14695 # Whether or not to add -lc for building shared libraries.
14696 build_libtool_need_lc=$archive_cmds_need_lc
14698 # Whether or not to disallow shared libs when runtime libs are static
14699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14701 # Whether or not to optimize for fast installation.
14702 fast_install=$enable_fast_install
14705 host_alias=$host_alias
14708 # An echo program that does not interpret backslashes.
14713 AR_FLAGS=$lt_AR_FLAGS
14718 # A language-specific compiler.
14721 # Is the compiler the GNU C compiler?
14727 # The linker used to build libraries.
14730 # Whether we need hard or soft links.
14733 # A BSD-compatible nm program.
14736 # A symbol stripping program
14739 # Used to examine libraries when file_magic_cmd begins "file"
14740 MAGIC_CMD=$MAGIC_CMD
14742 # Used on cygwin: DLL creation program.
14745 # Used on cygwin: object dumper.
14748 # Used on cygwin: assembler.
14751 # The name of the directory that contains temporary libtool files.
14754 # How to create reloadable object files.
14755 reload_flag=$lt_reload_flag
14756 reload_cmds=$lt_reload_cmds
14758 # How to pass a linker flag through the compiler.
14759 wl=$lt_lt_prog_compiler_wl
14761 # Object file suffix (normally "o").
14762 objext="$ac_objext"
14764 # Old archive suffix (normally "a").
14767 # Shared library suffix (normally ".so").
14768 shrext_cmds='$shrext_cmds'
14770 # Executable file suffix (normally "").
14773 # Additional compiler flags for building library objects.
14774 pic_flag=$lt_lt_prog_compiler_pic
14777 # What is the maximum length of a command?
14778 max_cmd_len=$lt_cv_sys_max_cmd_len
14780 # Does compiler simultaneously support -c and -o options?
14781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14783 # Must we lock files when doing compilation ?
14784 need_locks=$lt_need_locks
14786 # Do we need the lib prefix for modules?
14787 need_lib_prefix=$need_lib_prefix
14789 # Do we need a version for libraries?
14790 need_version=$need_version
14792 # Whether dlopen is supported.
14793 dlopen_support=$enable_dlopen
14795 # Whether dlopen of programs is supported.
14796 dlopen_self=$enable_dlopen_self
14798 # Whether dlopen of statically linked programs is supported.
14799 dlopen_self_static=$enable_dlopen_self_static
14801 # Compiler flag to prevent dynamic linking.
14802 link_static_flag=$lt_lt_prog_compiler_static
14804 # Compiler flag to turn off builtin functions.
14805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14807 # Compiler flag to allow reflexive dlopens.
14808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14810 # Compiler flag to generate shared objects directly from archives.
14811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14813 # Compiler flag to generate thread-safe objects.
14814 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14816 # Library versioning type.
14817 version_type=$version_type
14819 # Format of library name prefix.
14820 libname_spec=$lt_libname_spec
14822 # List of archive names. First name is the real one, the rest are links.
14823 # The last name is the one that the linker finds with -lNAME.
14824 library_names_spec=$lt_library_names_spec
14826 # The coded name of the library, if different from the real name.
14827 soname_spec=$lt_soname_spec
14829 # Commands used to build and install an old-style archive.
14831 old_archive_cmds=$lt_old_archive_cmds
14832 old_postinstall_cmds=$lt_old_postinstall_cmds
14833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14835 # Create an old-style archive from a shared archive.
14836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14838 # Create a temporary old-style archive to link instead of a shared archive.
14839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14841 # Commands used to build and install a shared archive.
14842 archive_cmds=$lt_archive_cmds
14843 archive_expsym_cmds=$lt_archive_expsym_cmds
14844 postinstall_cmds=$lt_postinstall_cmds
14845 postuninstall_cmds=$lt_postuninstall_cmds
14847 # Commands used to build a loadable module (assumed same as above if empty)
14848 module_cmds=$lt_module_cmds
14849 module_expsym_cmds=$lt_module_expsym_cmds
14851 # Commands to strip libraries.
14852 old_striplib=$lt_old_striplib
14853 striplib=$lt_striplib
14855 # Dependencies to place before the objects being linked to create a
14857 predep_objects=$lt_predep_objects
14859 # Dependencies to place after the objects being linked to create a
14861 postdep_objects=$lt_postdep_objects
14863 # Dependencies to place before the objects being linked to create a
14865 predeps=$lt_predeps
14867 # Dependencies to place after the objects being linked to create a
14869 postdeps=$lt_postdeps
14871 # The library search path used internally by the compiler when linking
14872 # a shared library.
14873 compiler_lib_search_path=$lt_compiler_lib_search_path
14875 # Method to check whether dependent libraries are shared objects.
14876 deplibs_check_method=$lt_deplibs_check_method
14878 # Command to use when deplibs_check_method == file_magic.
14879 file_magic_cmd=$lt_file_magic_cmd
14881 # Flag that allows shared libraries with undefined symbols to be built.
14882 allow_undefined_flag=$lt_allow_undefined_flag
14884 # Flag that forces no undefined symbols.
14885 no_undefined_flag=$lt_no_undefined_flag
14887 # Commands used to finish a libtool library installation in a directory.
14888 finish_cmds=$lt_finish_cmds
14890 # Same as above, but a single script fragment to be evaled but not shown.
14891 finish_eval=$lt_finish_eval
14893 # Take the output of nm and produce a listing of raw symbols and C names.
14894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14896 # Transform the output of nm in a proper C declaration
14897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14899 # Transform the output of nm in a C name address pair
14900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14902 # This is the shared library runtime path variable.
14903 runpath_var=$runpath_var
14905 # This is the shared library path variable.
14906 shlibpath_var=$shlibpath_var
14908 # Is shlibpath searched before the hard-coded library search path?
14909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14911 # How to hardcode a shared library path into an executable.
14912 hardcode_action=$hardcode_action
14914 # Whether we should hardcode library paths into libraries.
14915 hardcode_into_libs=$hardcode_into_libs
14917 # Flag to hardcode \$libdir into a binary during linking.
14918 # This must work even if \$libdir does not exist.
14919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14921 # If ld is used when linking, flag to hardcode \$libdir into
14922 # a binary during linking. This must work even if \$libdir does
14924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14926 # Whether we need a single -rpath flag with a separated argument.
14927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14930 # resulting binary.
14931 hardcode_direct=$hardcode_direct
14933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14934 # resulting binary.
14935 hardcode_minus_L=$hardcode_minus_L
14937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14938 # the resulting binary.
14939 hardcode_shlibpath_var=$hardcode_shlibpath_var
14941 # Set to yes if building a shared library automatically hardcodes DIR into the library
14942 # and all subsequent libraries and executables linked against it.
14943 hardcode_automatic=$hardcode_automatic
14945 # Variables whose values should be saved in libtool wrapper scripts and
14946 # restored at relink time.
14947 variables_saved_for_relink="$variables_saved_for_relink"
14949 # Whether libtool must link a program against all its dependency libraries.
14950 link_all_deplibs=$link_all_deplibs
14952 # Compile-time system search path for libraries
14953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14955 # Run-time system search path for libraries
14956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14958 # Fix the shell variable \$srcfile for the compiler.
14959 fix_srcfile_path="$fix_srcfile_path"
14961 # Set to yes if exported symbols are required.
14962 always_export_symbols=$always_export_symbols
14964 # The commands to list exported symbols.
14965 export_symbols_cmds=$lt_export_symbols_cmds
14967 # The commands to extract the exported symbol list from a shared archive.
14968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970 # Symbols that should not be listed in the preloaded symbols.
14971 exclude_expsyms=$lt_exclude_expsyms
14973 # Symbols that must always be exported.
14974 include_expsyms=$lt_include_expsyms
14976 # ### END LIBTOOL CONFIG
14983 cat <<\EOF >> "$cfgfile"
14985 # AIX sometimes has problems with the GCC collect2 program. For some
14986 # reason, if we set the COLLECT_NAMES environment variable, the problems
14987 # vanish in a puff of smoke.
14988 if test "X${COLLECT_NAMES+set}" != Xset; then
14990 export COLLECT_NAMES
14996 # We use sed instead of cat because bash on DJGPP gets confused if
14997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14998 # text mode, it properly converts lines to CR/LF. This bash problem
14999 # is reportedly fixed, but why not run on old versions too?
15000 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15002 mv -f "$cfgfile" "$ofile" || \
15003 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15007 # If there is no Makefile yet, we rely on a make rule to execute
15008 # `config.status --recheck' to rerun these tests and create the
15009 # libtool script then.
15010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15011 if test -f "$ltmain_in"; then
15012 test -f Makefile && make "$ltmain"
15018 ac_cpp='$CPP $CPPFLAGS'
15019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15026 # Check whether --with-tags or --without-tags was given.
15027 if test "${with_tags+set}" = set; then
15028 withval="$with_tags"
15029 tagnames="$withval"
15032 if test -f "$ltmain" && test -n "$tagnames"; then
15033 if test ! -f "${ofile}"; then
15034 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15035 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15038 if test -z "$LTCC"; then
15039 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15040 if test -z "$LTCC"; then
15041 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15042 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15045 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15049 # Extract list of available tagged configurations in $ofile.
15050 # Note that this assumes the entire list is on one line.
15051 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15054 for tagname in $tagnames; do
15056 # Check whether tagname contains only valid characters
15057 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15059 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15060 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15061 { (exit 1); exit 1; }; }
15065 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15067 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15068 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15069 { (exit 1); exit 1; }; }
15072 # Update the list of available tags.
15073 if test -n "$tagname"; then
15074 echo appending configuration tag "$tagname" to $ofile
15078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15080 (test "X$CXX" != "Xg++"))) ; then
15082 ac_cpp='$CXXCPP $CPPFLAGS'
15083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15090 archive_cmds_need_lc_CXX=no
15091 allow_undefined_flag_CXX=
15092 always_export_symbols_CXX=no
15093 archive_expsym_cmds_CXX=
15094 export_dynamic_flag_spec_CXX=
15095 hardcode_direct_CXX=no
15096 hardcode_libdir_flag_spec_CXX=
15097 hardcode_libdir_flag_spec_ld_CXX=
15098 hardcode_libdir_separator_CXX=
15099 hardcode_minus_L_CXX=no
15100 hardcode_automatic_CXX=no
15102 module_expsym_cmds_CXX=
15103 link_all_deplibs_CXX=unknown
15104 old_archive_cmds_CXX=$old_archive_cmds
15105 no_undefined_flag_CXX=
15106 whole_archive_flag_spec_CXX=
15107 enable_shared_with_static_runtimes_CXX=no
15109 # Dependencies to place before and after the object being linked:
15110 predep_objects_CXX=
15111 postdep_objects_CXX=
15114 compiler_lib_search_path_CXX=
15116 # Source file extension for C++ test sources.
15119 # Object file extension for compiled C++ test sources.
15123 # Code to be used in simple compile tests
15124 lt_simple_compile_test_code="int some_variable = 0;\n"
15126 # Code to be used in simple link tests
15127 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15129 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15131 # If no C compiler was specified, use CC.
15134 # Allow CC to be a program name with arguments.
15138 # Allow CC to be a program name with arguments.
15143 lt_save_with_gnu_ld=$with_gnu_ld
15144 lt_save_path_LD=$lt_cv_path_LD
15145 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15146 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15148 unset lt_cv_prog_gnu_ld
15150 if test -n "${lt_cv_path_LDCXX+set}"; then
15151 lt_cv_path_LD=$lt_cv_path_LDCXX
15153 unset lt_cv_path_LD
15155 test -z "${LDCXX+set}" || LD=$LDCXX
15159 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15161 # We don't want -fno-exception wen compiling C++ code, so set the
15162 # no_builtin_flag separately
15163 if test "$GXX" = yes; then
15164 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15166 lt_prog_compiler_no_builtin_flag_CXX=
15169 if test "$GXX" = yes; then
15170 # Set up default GNU C++ configuration
15173 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15174 if test "${with_gnu_ld+set}" = set; then
15175 withval="$with_gnu_ld"
15176 test "$withval" = no || with_gnu_ld=yes
15181 if test "$GCC" = yes; then
15182 # Check if gcc -print-prog-name=ld gives a path.
15183 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15184 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15187 # gcc leaves a trailing carriage return which upsets mingw
15188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15193 # Accept absolute paths.
15195 re_direlt='/[^/][^/]*/\.\./'
15196 # Canonicalize the pathname of ld
15197 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15198 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15199 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15201 test -z "$LD" && LD="$ac_prog"
15204 # If it fails, then pretend we aren't using GCC.
15208 # If it is relative, then search for the first ld in PATH.
15209 with_gnu_ld=unknown
15212 elif test "$with_gnu_ld" = yes; then
15213 echo "$as_me:$LINENO: checking for GNU ld" >&5
15214 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15216 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15217 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15219 if test "${lt_cv_path_LD+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 if test -z "$LD"; then
15223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15224 for ac_dir in $PATH; do
15226 test -z "$ac_dir" && ac_dir=.
15227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15228 lt_cv_path_LD="$ac_dir/$ac_prog"
15229 # Check to see if the program is GNU ld. I'd rather use --version,
15230 # but apparently some GNU ld's only accept -v.
15231 # Break only if it was the GNU/non-GNU ld that we prefer.
15232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15233 *GNU* | *'with BFD'*)
15234 test "$with_gnu_ld" != no && break
15237 test "$with_gnu_ld" != yes && break
15244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15248 LD="$lt_cv_path_LD"
15249 if test -n "$LD"; then
15250 echo "$as_me:$LINENO: result: $LD" >&5
15251 echo "${ECHO_T}$LD" >&6
15253 echo "$as_me:$LINENO: result: no" >&5
15254 echo "${ECHO_T}no" >&6
15256 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15257 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15258 { (exit 1); exit 1; }; }
15259 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15260 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15261 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15265 case `$LD -v 2>&1 </dev/null` in
15266 *GNU* | *'with BFD'*)
15267 lt_cv_prog_gnu_ld=yes
15270 lt_cv_prog_gnu_ld=no
15274 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15275 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15276 with_gnu_ld=$lt_cv_prog_gnu_ld
15280 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15281 # archiving commands below assume that GNU ld is being used.
15282 if test "$with_gnu_ld" = yes; then
15283 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 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'
15286 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15289 # If archive_cmds runs LD, not CC, wlarc should be empty
15290 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15291 # investigate it a little bit more. (MM)
15294 # ancient GNU ld didn't support --whole-archive et. al.
15295 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15296 grep 'no-whole-archive' > /dev/null; then
15297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15299 whole_archive_flag_spec_CXX=
15305 # A generic and very simple default shared library creation
15306 # command for GNU C++ for the case where it uses the native
15307 # linker, instead of GNU ld. If possible, this setting should
15308 # overridden to take advantage of the native linker features on
15309 # the platform it is being used on.
15310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15313 # Commands to make compiler produce verbose output that lists
15314 # what "hidden" libraries, object files and flags are used when
15315 # linking a shared library.
15316 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15324 # PORTME: fill in a description of your system's C++ link characteristics
15325 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15326 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15330 # FIXME: insert proper C++ library support
15334 if test "$host_cpu" = ia64; then
15335 # On IA64, the linker does run time linking by default, so we don't
15336 # have to do anything special.
15337 aix_use_runtimelinking=no
15338 exp_sym_flag='-Bexport'
15341 aix_use_runtimelinking=no
15343 # Test if we are trying to use run time linking or normal
15344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15345 # need to do runtime linking.
15346 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15347 for ld_flag in $LDFLAGS; do
15350 aix_use_runtimelinking=yes
15357 exp_sym_flag='-bexport'
15358 no_entry_flag='-bnoentry'
15361 # When large executables or shared objects are built, AIX ld can
15362 # have problems creating the table of contents. If linking a library
15363 # or program results in "error TOC overflow" add -mminimal-toc to
15364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15367 archive_cmds_CXX=''
15368 hardcode_direct_CXX=yes
15369 hardcode_libdir_separator_CXX=':'
15370 link_all_deplibs_CXX=yes
15372 if test "$GXX" = yes; then
15373 case $host_os in aix4.012|aix4.012.*)
15374 # We only want to do this on AIX 4.2 and lower, the check
15375 # below for broken collect2 doesn't work under 4.3+
15376 collect2name=`${CC} -print-prog-name=collect2`
15377 if test -f "$collect2name" && \
15378 strings "$collect2name" | grep resolve_lib_name >/dev/null
15380 # We have reworked collect2
15381 hardcode_direct_CXX=yes
15383 # We have old collect2
15384 hardcode_direct_CXX=unsupported
15385 # It fails to find uninstalled libraries when the uninstalled
15386 # path is not listed in the libpath. Setting hardcode_minus_L
15387 # to unsupported forces relinking
15388 hardcode_minus_L_CXX=yes
15389 hardcode_libdir_flag_spec_CXX='-L$libdir'
15390 hardcode_libdir_separator_CXX=
15393 shared_flag='-shared'
15396 if test "$host_cpu" = ia64; then
15397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15398 # chokes on -Wl,-G. The following line is correct:
15401 if test "$aix_use_runtimelinking" = yes; then
15402 shared_flag='${wl}-G'
15404 shared_flag='${wl}-bM:SRE'
15409 # It seems that -bexpall does not export symbols beginning with
15410 # underscore (_), so it is better to generate a list of symbols to export.
15411 always_export_symbols_CXX=yes
15412 if test "$aix_use_runtimelinking" = yes; then
15413 # Warning - without using the other runtime loading flags (-brtl),
15414 # -berok will link without error, but may produce a broken library.
15415 allow_undefined_flag_CXX='-berok'
15416 # Determine the default libpath from the value encoded in an empty executable.
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434 (eval $ac_link) 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_cxx_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest$ac_exeext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15457 # Check for a 64-bit object if we didn't find anything.
15458 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; }
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15465 rm -f conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15471 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"
15473 if test "$host_cpu" = ia64; then
15474 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15475 allow_undefined_flag_CXX="-z nodefs"
15476 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"
15478 # Determine the default libpath from the value encoded in an empty executable.
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>conftest.er1
15498 grep -v '^ *+' conftest.er1 >conftest.err
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_cxx_werror_flag"
15504 || test ! -s conftest.err'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15519 # Check for a 64-bit object if we didn't find anything.
15520 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; }
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15527 rm -f conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15531 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15532 # Warning - without using the other run time loading flags,
15533 # -berok will link without error, but may produce a broken library.
15534 no_undefined_flag_CXX=' ${wl}-bernotok'
15535 allow_undefined_flag_CXX=' ${wl}-berok'
15536 # -bexpall does not export symbols beginning with underscore (_)
15537 always_export_symbols_CXX=yes
15538 # Exported symbols can be pulled into shared objects from archives
15539 whole_archive_flag_spec_CXX=' '
15540 archive_cmds_need_lc_CXX=yes
15541 # This is similar to how AIX traditionally builds it's shared libraries.
15542 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'
15547 case $cc_basename in
15549 # FIXME: insert proper C++ library support
15556 cygwin* | mingw* | pw32*)
15557 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15558 # as there is no search path for DLLs.
15559 hardcode_libdir_flag_spec_CXX='-L$libdir'
15560 allow_undefined_flag_CXX=unsupported
15561 always_export_symbols_CXX=no
15562 enable_shared_with_static_runtimes_CXX=yes
15564 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15565 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'
15566 # If the export-symbols file already is a .def file (1st line
15567 # is EXPORTS), use it as is; otherwise, prepend...
15568 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15569 cp $export_symbols $output_objdir/$soname.def;
15571 echo EXPORTS > $output_objdir/$soname.def;
15572 cat $export_symbols >> $output_objdir/$soname.def;
15574 $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'
15579 darwin* | rhapsody*)
15581 rhapsody* | darwin1.[012])
15582 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15585 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15586 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15588 case ${MACOSX_DEPLOYMENT_TARGET} in
15590 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15593 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15599 archive_cmds_need_lc_CXX=no
15600 hardcode_direct_CXX=no
15601 hardcode_automatic_CXX=yes
15602 hardcode_shlibpath_var_CXX=unsupported
15603 whole_archive_flag_spec_CXX=''
15604 link_all_deplibs_CXX=yes
15606 if test "$GXX" = yes ; then
15607 lt_int_apple_cc_single_mod=no
15608 output_verbose_link_cmd='echo'
15609 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15610 lt_int_apple_cc_single_mod=yes
15612 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15613 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15615 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'
15617 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15619 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15620 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}'
15622 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}'
15624 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}'
15626 case "$cc_basename" in
15628 output_verbose_link_cmd='echo'
15629 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'
15630 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15632 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}'
15633 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}'
15643 case $cc_basename in
15645 # FIXME: insert proper C++ library support
15649 # Green Hills C++ Compiler
15650 # FIXME: insert proper C++ library support
15654 # FIXME: insert proper C++ library support
15660 # C++ shared libraries reported to be fairly broken before switch to ELF
15664 archive_cmds_need_lc_CXX=no
15666 freebsd* | kfreebsd*-gnu)
15667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15674 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15675 hardcode_libdir_separator_CXX=:
15676 export_dynamic_flag_spec_CXX='${wl}-E'
15677 hardcode_direct_CXX=yes
15678 hardcode_minus_L_CXX=yes # Not in the search PATH,
15679 # but as the default
15680 # location of the library.
15682 case $cc_basename in
15684 # FIXME: insert proper C++ library support
15688 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'
15689 # Commands to make compiler produce verbose output that lists
15690 # what "hidden" libraries, object files and flags are used when
15691 # linking a shared library.
15693 # There doesn't appear to be a way to prevent this compiler from
15694 # explicitly linking system object files so we need to strip them
15695 # from the output so that they don't get included in the library
15697 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'
15700 if test "$GXX" = yes; then
15701 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'
15703 # FIXME: insert proper C++ library support
15710 if test $with_gnu_ld = no; then
15711 case "$host_cpu" in
15713 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15714 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15715 hardcode_libdir_separator_CXX=:
15718 hardcode_libdir_flag_spec_CXX='-L$libdir'
15721 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15722 hardcode_libdir_separator_CXX=:
15723 export_dynamic_flag_spec_CXX='${wl}-E'
15727 case "$host_cpu" in
15729 hardcode_direct_CXX=no
15730 hardcode_shlibpath_var_CXX=no
15733 hardcode_direct_CXX=no
15734 hardcode_shlibpath_var_CXX=no
15735 hardcode_minus_L_CXX=yes # Not in the search PATH,
15736 # but as the default
15737 # location of the library.
15740 hardcode_direct_CXX=yes
15741 hardcode_minus_L_CXX=yes # Not in the search PATH,
15742 # but as the default
15743 # location of the library.
15747 case $cc_basename in
15749 # FIXME: insert proper C++ library support
15753 case "$host_cpu" in
15755 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15761 # Commands to make compiler produce verbose output that lists
15762 # what "hidden" libraries, object files and flags are used when
15763 # linking a shared library.
15765 # There doesn't appear to be a way to prevent this compiler from
15766 # explicitly linking system object files so we need to strip them
15767 # from the output so that they don't get included in the library
15769 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'
15772 if test "$GXX" = yes; then
15773 if test $with_gnu_ld = no; then
15774 case "$host_cpu" in
15776 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15779 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'
15784 # FIXME: insert proper C++ library support
15791 case $cc_basename in
15794 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'
15796 # Archives containing C++ object files must be created using
15797 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15798 # necessary to make sure instantiated templates are included
15800 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15803 if test "$GXX" = yes; then
15804 if test "$with_gnu_ld" = no; then
15805 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'
15807 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'
15810 link_all_deplibs_CXX=yes
15813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15814 hardcode_libdir_separator_CXX=:
15817 case $cc_basename in
15819 # Kuck and Associates, Inc. (KAI) C++ Compiler
15821 # KCC will only create a shared library if the output file
15822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15823 # to its proper name (with version) after linking.
15824 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'
15825 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'
15826 # Commands to make compiler produce verbose output that lists
15827 # what "hidden" libraries, object files and flags are used when
15828 # linking a shared library.
15830 # There doesn't appear to be a way to prevent this compiler from
15831 # explicitly linking system object files so we need to strip them
15832 # from the output so that they don't get included in the library
15834 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'
15836 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15839 # Archives containing C++ object files must be created using
15840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15846 # version 8.0 and above of icpc choke on multiply defined symbols
15847 # if we add $predep_objects and $postdep_objects, however 7.1 and
15848 # earlier do not add the objects themselves.
15849 case `$CC -V 2>&1` in
15851 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 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'
15854 *) # Version 8.0 or newer
15855 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15859 archive_cmds_need_lc_CXX=no
15860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 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'
15869 runpath_var=LD_RUN_PATH
15870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15871 hardcode_libdir_separator_CXX=:
15873 # Commands to make compiler produce verbose output that lists
15874 # what "hidden" libraries, object files and flags are used when
15875 # linking a shared library.
15877 # There doesn't appear to be a way to prevent this compiler from
15878 # explicitly linking system object files so we need to strip them
15879 # from the output so that they don't get included in the library
15881 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'
15886 # FIXME: insert proper C++ library support
15890 # FIXME: insert proper C++ library support
15894 case $cc_basename in
15896 # FIXME: insert proper C++ library support
15900 # FIXME: insert proper C++ library support
15906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15907 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15909 hardcode_libdir_flag_spec_CXX='-R$libdir'
15910 hardcode_direct_CXX=yes
15911 hardcode_shlibpath_var_CXX=no
15913 # Workaround some broken pre-1.5 toolchains
15914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15917 # C++ shared libraries are fairly broken
15921 hardcode_direct_CXX=yes
15922 hardcode_shlibpath_var_CXX=no
15923 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15926 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15927 export_dynamic_flag_spec_CXX='${wl}-E'
15928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15930 output_verbose_link_cmd='echo'
15933 case $cc_basename in
15935 # Kuck and Associates, Inc. (KAI) C++ Compiler
15937 # KCC will only create a shared library if the output file
15938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15939 # to its proper name (with version) after linking.
15940 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'
15942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15943 hardcode_libdir_separator_CXX=:
15945 # Archives containing C++ object files must be created using
15946 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15947 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15951 # Rational C++ 2.4.1
15952 # FIXME: insert proper C++ library support
15956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15957 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'
15959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15960 hardcode_libdir_separator_CXX=:
15962 # Commands to make compiler produce verbose output that lists
15963 # what "hidden" libraries, object files and flags are used when
15964 # linking a shared library.
15966 # There doesn't appear to be a way to prevent this compiler from
15967 # explicitly linking system object files so we need to strip them
15968 # from the output so that they don't get included in the library
15970 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'
15973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15975 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'
15977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator_CXX=:
15980 # Commands to make compiler produce verbose output that lists
15981 # what "hidden" libraries, object files and flags are used when
15982 # linking a shared library.
15983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15986 # FIXME: insert proper C++ library support
15993 case $cc_basename in
15995 # Kuck and Associates, Inc. (KAI) C++ Compiler
15997 # KCC will only create a shared library if the output file
15998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15999 # to its proper name (with version) after linking.
16000 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'
16002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16003 hardcode_libdir_separator_CXX=:
16005 # Archives containing C++ object files must be created using
16006 # the KAI C++ compiler.
16007 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16010 # Rational C++ 2.4.1
16011 # FIXME: insert proper C++ library support
16015 allow_undefined_flag_CXX=' -expect_unresolved \*'
16016 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'
16017 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16018 echo "-hidden">> $lib.exp~
16019 $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~
16022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16023 hardcode_libdir_separator_CXX=:
16025 # Commands to make compiler produce verbose output that lists
16026 # what "hidden" libraries, object files and flags are used when
16027 # linking a shared library.
16029 # There doesn't appear to be a way to prevent this compiler from
16030 # explicitly linking system object files so we need to strip them
16031 # from the output so that they don't get included in the library
16033 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'
16036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16037 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16038 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'
16040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16041 hardcode_libdir_separator_CXX=:
16043 # Commands to make compiler produce verbose output that lists
16044 # what "hidden" libraries, object files and flags are used when
16045 # linking a shared library.
16046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16049 # FIXME: insert proper C++ library support
16056 # FIXME: insert proper C++ library support
16060 archive_cmds_need_lc_CXX=no
16061 case $cc_basename in
16063 # FIXME: insert proper C++ library support
16067 # FIXME: insert proper C++ library support
16073 case $cc_basename in
16076 # FIXME: insert proper C++ library support
16081 # FIXME: insert proper C++ library support
16085 # FIXME: insert proper C++ library support
16091 case $cc_basename in
16093 # Sun C++ 4.2, 5.x and Centerline C++
16094 no_undefined_flag_CXX=' -zdefs'
16095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097 $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'
16099 hardcode_libdir_flag_spec_CXX='-R$libdir'
16100 hardcode_shlibpath_var_CXX=no
16102 solaris2.0-5 | solaris2.0-5.*) ;;
16104 # The C++ compiler is used as linker so we must use $wl
16105 # flag to pass the commands to the underlying system
16107 # Supported since Solaris 2.6 (maybe 2.5.1?)
16108 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16111 link_all_deplibs_CXX=yes
16113 # Commands to make compiler produce verbose output that lists
16114 # what "hidden" libraries, object files and flags are used when
16115 # linking a shared library.
16117 # There doesn't appear to be a way to prevent this compiler from
16118 # explicitly linking system object files so we need to strip them
16119 # from the output so that they don't get included in the library
16121 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'
16123 # Archives containing C++ object files must be created using
16124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16125 # necessary to make sure instantiated templates are included
16127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16130 # Green Hills C++ Compiler
16131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16133 # The C++ compiler must be used to create the archive.
16134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16137 # GNU C++ compiler with Solaris linker
16138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16140 if $CC --version | grep -v '^2\.7' > /dev/null; then
16141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16142 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16145 # Commands to make compiler produce verbose output that lists
16146 # what "hidden" libraries, object files and flags are used when
16147 # linking a shared library.
16148 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16153 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16156 # Commands to make compiler produce verbose output that lists
16157 # what "hidden" libraries, object files and flags are used when
16158 # linking a shared library.
16159 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16167 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16168 archive_cmds_need_lc_CXX=no
16171 case $cc_basename in
16173 # NonStop-UX NCC 3.20
16174 # FIXME: insert proper C++ library support
16178 # FIXME: insert proper C++ library support
16184 # FIXME: insert proper C++ library support
16188 # FIXME: insert proper C++ library support
16192 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16193 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16194 test "$ld_shlibs_CXX" = no && can_build_shared=no
16200 cat > conftest.$ac_ext <<EOF
16204 Foo (void) { a = 0; }
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; then
16215 # Parse the compiler output and extract the necessary
16216 # objects, libraries and library flags.
16218 # Sentinel used to keep track of whether or not we are before
16219 # the conftest object file.
16220 pre_test_object_deps_done=no
16222 # The `*' in the case matches for architectures that use `case' in
16223 # $output_verbose_cmd can trigger glob expansion during the loop
16224 # eval without this substitution.
16225 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16227 for p in `eval $output_verbose_link_cmd`; do
16231 # Some compilers place space between "-{L,R}" and the path.
16232 # Remove the space.
16233 if test $p = "-L" \
16234 || test $p = "-R"; then
16241 if test "$pre_test_object_deps_done" = no; then
16244 # Internal compiler library paths should come after those
16245 # provided the user. The postdeps already come after the
16246 # user supplied libs so there is no need to process them.
16247 if test -z "$compiler_lib_search_path_CXX"; then
16248 compiler_lib_search_path_CXX="${prev}${p}"
16250 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16253 # The "-l" case would never come before the object being
16254 # linked, so don't bother handling this case.
16257 if test -z "$postdeps_CXX"; then
16258 postdeps_CXX="${prev}${p}"
16260 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16266 # This assumes that the test object file only shows up
16267 # once in the compiler output.
16268 if test "$p" = "conftest.$objext"; then
16269 pre_test_object_deps_done=yes
16273 if test "$pre_test_object_deps_done" = no; then
16274 if test -z "$predep_objects_CXX"; then
16275 predep_objects_CXX="$p"
16277 predep_objects_CXX="$predep_objects_CXX $p"
16280 if test -z "$postdep_objects_CXX"; then
16281 postdep_objects_CXX="$p"
16283 postdep_objects_CXX="$postdep_objects_CXX $p"
16288 *) ;; # Ignore the rest.
16296 echo "libtool.m4: error: problem compiling CXX test program"
16299 $rm -f confest.$objext
16301 case " $postdeps_CXX " in
16302 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16305 lt_prog_compiler_wl_CXX=
16306 lt_prog_compiler_pic_CXX=
16307 lt_prog_compiler_static_CXX=
16309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16312 # C++ specific cases for pic, static, wl, etc.
16313 if test "$GXX" = yes; then
16314 lt_prog_compiler_wl_CXX='-Wl,'
16315 lt_prog_compiler_static_CXX='-static'
16319 # All AIX code is PIC.
16320 if test "$host_cpu" = ia64; then
16321 # AIX 5 now supports IA64 processor
16322 lt_prog_compiler_static_CXX='-Bstatic'
16326 # FIXME: we need at least 68020 code to build shared libraries, but
16327 # adding the `-m68020' flag to GCC prevents building anything better,
16329 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16331 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16332 # PIC is the default for these OSes.
16334 mingw* | os2* | pw32*)
16335 # This hack is so that the source file can tell whether it is being
16336 # built for inclusion in a dll (and should export symbols for example).
16337 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16339 darwin* | rhapsody*)
16340 # PIC is the default on this platform
16341 # Common symbols not allowed in MH_DYLIB files
16342 lt_prog_compiler_pic_CXX='-fno-common'
16345 # DJGPP does not support shared libraries at all
16346 lt_prog_compiler_pic_CXX=
16349 if test -d /usr/nec; then
16350 lt_prog_compiler_pic_CXX=-Kconform_pic
16354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16355 # not for PA HP-UX.
16356 case "$host_cpu" in
16360 lt_prog_compiler_pic_CXX='-fPIC'
16365 lt_prog_compiler_pic_CXX='-fPIC'
16371 # All AIX code is PIC.
16372 if test "$host_cpu" = ia64; then
16373 # AIX 5 now supports IA64 processor
16374 lt_prog_compiler_static_CXX='-Bstatic'
16376 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16380 case $cc_basename in
16382 # Green Hills C++ Compiler
16383 # _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"
16388 # PIC is the default on this platform
16389 # Common symbols not allowed in MH_DYLIB files
16390 case "$cc_basename" in
16392 lt_prog_compiler_pic_CXX='-qnocommon'
16393 lt_prog_compiler_wl_CXX='-Wl,'
16398 case $cc_basename in
16400 lt_prog_compiler_pic_CXX='-KPIC'
16403 # Green Hills C++ Compiler
16404 lt_prog_compiler_pic_CXX='-pic'
16410 freebsd* | kfreebsd*-gnu)
16411 # FreeBSD uses GNU C++
16413 hpux9* | hpux10* | hpux11*)
16414 case $cc_basename in
16416 lt_prog_compiler_wl_CXX='-Wl,'
16417 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16418 if test "$host_cpu" != ia64; then
16419 lt_prog_compiler_pic_CXX='+Z'
16423 lt_prog_compiler_wl_CXX='-Wl,'
16424 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16425 case "$host_cpu" in
16430 lt_prog_compiler_pic_CXX='+Z'
16438 irix5* | irix6* | nonstopux*)
16439 case $cc_basename in
16441 lt_prog_compiler_wl_CXX='-Wl,'
16442 lt_prog_compiler_static_CXX='-non_shared'
16443 # CC pic flag -KPIC is the default.
16450 case $cc_basename in
16453 lt_prog_compiler_wl_CXX='--backend -Wl,'
16454 lt_prog_compiler_pic_CXX='-fPIC'
16458 lt_prog_compiler_wl_CXX='-Wl,'
16459 lt_prog_compiler_pic_CXX='-KPIC'
16460 lt_prog_compiler_static_CXX='-static'
16464 # Make sure the PIC flag is empty. It appears that all Alpha
16465 # Linux and Compaq Tru64 Unix objects are PIC.
16466 lt_prog_compiler_pic_CXX=
16467 lt_prog_compiler_static_CXX='-non_shared'
16478 case $cc_basename in
16480 lt_prog_compiler_pic_CXX='-W c,exportall'
16488 osf3* | osf4* | osf5*)
16489 case $cc_basename in
16491 lt_prog_compiler_wl_CXX='--backend -Wl,'
16494 # Rational C++ 2.4.1
16495 lt_prog_compiler_pic_CXX='-pic'
16498 # Digital/Compaq C++
16499 lt_prog_compiler_wl_CXX='-Wl,'
16500 # Make sure the PIC flag is empty. It appears that all Alpha
16501 # Linux and Compaq Tru64 Unix objects are PIC.
16502 lt_prog_compiler_pic_CXX=
16503 lt_prog_compiler_static_CXX='-non_shared'
16512 case $cc_basename in
16514 lt_prog_compiler_pic_CXX='-fPIC'
16521 case $cc_basename in
16523 # Sun C++ 4.2, 5.x and Centerline C++
16524 lt_prog_compiler_pic_CXX='-KPIC'
16525 lt_prog_compiler_static_CXX='-Bstatic'
16526 lt_prog_compiler_wl_CXX='-Qoption ld '
16529 # Green Hills C++ Compiler
16530 lt_prog_compiler_pic_CXX='-PIC'
16537 case $cc_basename in
16540 lt_prog_compiler_pic_CXX='-pic'
16541 lt_prog_compiler_static_CXX='-Bstatic'
16545 lt_prog_compiler_pic_CXX='-pic'
16552 case $cc_basename in
16554 # NonStop-UX NCC 3.20
16555 lt_prog_compiler_pic_CXX='-KPIC'
16566 lt_prog_compiler_can_build_shared_CXX=no
16571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16572 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16575 # Check to make sure the PIC flag actually works.
16577 if test -n "$lt_prog_compiler_pic_CXX"; then
16579 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16580 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16581 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16584 lt_prog_compiler_pic_works_CXX=no
16585 ac_outfile=conftest.$ac_objext
16586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16587 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16588 # Insert the option either (1) after the last *FLAGS variable, or
16589 # (2) before a word containing "conftest.", or (3) at the end.
16590 # Note that $ac_compile itself does not contain backslashes and begins
16591 # with a dollar sign (not a hyphen), so the echo should work correctly.
16592 # The option is referenced via a variable to avoid confusing sed.
16593 lt_compile=`echo "$ac_compile" | $SED \
16594 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16596 -e 's:$: $lt_compiler_flag:'`
16597 (eval echo "\"\$as_me:16597: $lt_compile\"" >&5)
16598 (eval "$lt_compile" 2>conftest.err)
16600 cat conftest.err >&5
16601 echo "$as_me:16601: \$? = $ac_status" >&5
16602 if (exit $ac_status) && test -s "$ac_outfile"; then
16603 # The compiler can only warn and ignore the option if not recognized
16604 # So say no if there are warnings
16605 if test ! -s conftest.err; then
16606 lt_prog_compiler_pic_works_CXX=yes
16612 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16613 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16615 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16616 case $lt_prog_compiler_pic_CXX in
16618 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16621 lt_prog_compiler_pic_CXX=
16622 lt_prog_compiler_can_build_shared_CXX=no
16627 # For platforms which do not support PIC, -DPIC is meaningless:
16629 lt_prog_compiler_pic_CXX=
16632 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16636 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16637 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16638 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 lt_cv_prog_compiler_c_o_CXX=no
16642 $rm -r conftest 2>/dev/null
16646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16648 lt_compiler_flag="-o out/conftest2.$ac_objext"
16649 # Insert the option either (1) after the last *FLAGS variable, or
16650 # (2) before a word containing "conftest.", or (3) at the end.
16651 # Note that $ac_compile itself does not contain backslashes and begins
16652 # with a dollar sign (not a hyphen), so the echo should work correctly.
16653 lt_compile=`echo "$ac_compile" | $SED \
16654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16656 -e 's:$: $lt_compiler_flag:'`
16657 (eval echo "\"\$as_me:16657: $lt_compile\"" >&5)
16658 (eval "$lt_compile" 2>out/conftest.err)
16660 cat out/conftest.err >&5
16661 echo "$as_me:16661: \$? = $ac_status" >&5
16662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16664 # The compiler can only warn and ignore the option if not recognized
16665 # So say no if there are warnings
16666 if test ! -s out/conftest.err; then
16667 lt_cv_prog_compiler_c_o_CXX=yes
16672 # SGI C++ compiler will create directory out/ii_files/ for
16673 # template instantiation
16674 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16675 $rm out/* && rmdir out
16681 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16682 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16685 hard_links="nottested"
16686 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16687 # do not overwrite the value of need_locks provided by the user
16688 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16689 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16694 ln conftest.a conftest.b 2>&5 || hard_links=no
16695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16696 echo "$as_me:$LINENO: result: $hard_links" >&5
16697 echo "${ECHO_T}$hard_links" >&6
16698 if test "$hard_links" = no; then
16699 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16700 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16707 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16708 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16710 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16713 # If we're using GNU nm, then we don't want the "-C" option.
16714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16716 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'
16718 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'
16722 export_symbols_cmds_CXX="$ltdll_cmds"
16725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16728 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16732 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16733 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16734 test "$ld_shlibs_CXX" = no && can_build_shared=no
16736 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16737 if test "$GCC" = yes; then
16738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16742 # Do we need to explicitly link libc?
16744 case "x$archive_cmds_need_lc_CXX" in
16746 # Assume -lc should be added
16747 archive_cmds_need_lc_CXX=yes
16749 if test "$enable_shared" = yes && test "$GCC" = yes; then
16750 case $archive_cmds_CXX in
16752 # FIXME: we may have to deal with multi-command sequences.
16755 # Test whether the compiler implicitly links with -lc since on some
16756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16757 # to ld, don't add -lc before -lgcc.
16758 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } 2>conftest.err; then
16770 libobjs=conftest.$ac_objext
16772 wl=$lt_prog_compiler_wl_CXX
16778 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16779 allow_undefined_flag_CXX=
16780 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16781 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }
16786 archive_cmds_need_lc_CXX=no
16788 archive_cmds_need_lc_CXX=yes
16790 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16792 cat conftest.err 1>&5
16795 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16796 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16803 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16804 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16805 library_names_spec=
16806 libname_spec='lib$name'
16810 postuninstall_cmds=
16814 shlibpath_overrides_runpath=unknown
16816 dynamic_linker="$host_os ld.so"
16817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16818 if test "$GCC" = yes; then
16819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16820 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16832 need_lib_prefix=unknown
16833 hardcode_into_libs=no
16835 # when you set need_version to no, make sure it does not cause -set_version
16836 # flags to be left without arguments
16837 need_version=unknown
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16843 shlibpath_var=LIBPATH
16845 # AIX 3 has no versioning support, so we append a major version to the name.
16846 soname_spec='${libname}${release}${shared_ext}$major'
16853 hardcode_into_libs=yes
16854 if test "$host_cpu" = ia64; then
16855 # AIX 5 supports IA64
16856 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16857 shlibpath_var=LD_LIBRARY_PATH
16859 # With GCC up to 2.95.x, collect2 would create an import file
16860 # for dependence libraries. The import file would start with
16861 # the line `#! .'. This would cause the generated library to
16862 # depend on `.', always an invalid library. This was fixed in
16863 # development snapshots of GCC prior to 3.0.
16865 aix4 | aix4.[01] | aix4.[01].*)
16866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16868 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16871 can_build_shared=no
16875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16876 # soname into executable. Probably we can add versioning support to
16877 # collect2, so additional links can be useful in future.
16878 if test "$aix_use_runtimelinking" = yes; then
16879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16880 # instead of lib<name>.a to let people know that these are not
16881 # typical AIX shared libraries.
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 # We preserve .a as extension for shared libraries through AIX4.2
16885 # and later when we are not doing run time linking.
16886 library_names_spec='${libname}${release}.a $libname.a'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16889 shlibpath_var=LIBPATH
16894 library_names_spec='$libname.ixlibrary $libname.a'
16895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16896 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'
16900 library_names_spec='${libname}${shared_ext}'
16901 dynamic_linker="$host_os ld.so"
16902 shlibpath_var=LIBRARY_PATH
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16914 # the default ld.so.conf also contains /usr/contrib/lib and
16915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16916 # libtool to hard-code these into programs
16919 cygwin* | mingw* | pw32*)
16920 version_type=windows
16925 case $GCC,$host_os in
16926 yes,cygwin* | yes,mingw* | yes,pw32*)
16927 library_names_spec='$libname.dll.a'
16928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16929 postinstall_cmds='base_file=`basename \${file}`~
16930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16931 dldir=$destdir/`dirname \$dlpath`~
16932 test -d \$dldir || mkdir -p \$dldir~
16933 $install_prog $dir/$dlname \$dldir/$dlname'
16934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16935 dlpath=$dir/\$dldll~
16937 shlibpath_overrides_runpath=yes
16941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16946 # MinGW DLLs use traditional 'lib' prefix
16947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16950 # It is most probably a Windows format PATH printed by
16951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16952 # path with ; separators, and with drive letters. We can handle the
16953 # drive letters (cygwin fileutils understands them), so leave them,
16954 # especially as we might pass files found there to a mingw objdump,
16955 # which wouldn't understand a cygwinified path. Ahh.
16956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16962 # pw32 DLLs use 'pw' prefix rather than 'lib'
16963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16972 dynamic_linker='Win32 ld.exe'
16973 # FIXME: first we should search . and the directory the executable is in
16977 darwin* | rhapsody*)
16978 dynamic_linker="$host_os dyld"
16979 version_type=darwin
16982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16983 soname_spec='${libname}${release}${major}$shared_ext'
16984 shlibpath_overrides_runpath=yes
16985 shlibpath_var=DYLD_LIBRARY_PATH
16986 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16988 if test "$GCC" = yes; then
16989 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"`
16991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 shlibpath_var=LD_LIBRARY_PATH
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=no
17017 hardcode_into_libs=yes
17018 dynamic_linker='GNU ld.so'
17022 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17023 version_type=freebsd-$objformat
17024 case $version_type in
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17035 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes
17040 freebsd3.01* | freebsdelf3.01*)
17041 shlibpath_overrides_runpath=yes
17042 hardcode_into_libs=yes
17045 shlibpath_overrides_runpath=no
17046 hardcode_into_libs=yes
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 hardcode_into_libs=yes
17061 hpux9* | hpux10* | hpux11*)
17062 # Give a soname corresponding to the major version so that dld.sl refuses to
17063 # link against other versions.
17067 case "$host_cpu" in
17070 hardcode_into_libs=yes
17071 dynamic_linker="$host_os dld.so"
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 if test "X$HPUX_IA64_MODE" = X32; then
17077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17085 hardcode_into_libs=yes
17086 dynamic_linker="$host_os dld.sl"
17087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17096 dynamic_linker="$host_os dld.sl"
17097 shlibpath_var=SHLIB_PATH
17098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17104 postinstall_cmds='chmod 555 $lib'
17107 irix5* | irix6* | nonstopux*)
17109 nonstopux*) version_type=nonstopux ;;
17111 if test "$lt_cv_prog_gnu_ld" = yes; then
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17122 irix5* | nonstopux*)
17123 libsuff= shlibsuff=
17126 case $LD in # libtool.m4 will add one of these switches to LD
17127 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17128 libsuff= shlibsuff= libmagic=32-bit;;
17129 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17130 libsuff=32 shlibsuff=N32 libmagic=N32;;
17131 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17132 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17133 *) libsuff= shlibsuff= libmagic=never-match;;
17137 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17138 shlibpath_overrides_runpath=no
17139 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17140 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17141 hardcode_into_libs=yes
17144 # No shared lib support for Linux oldld, aout, or coff.
17145 linux*oldld* | linux*aout* | linux*coff*)
17149 # This must be Linux ELF.
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=no
17159 # This implies no fast_install, which is unacceptable.
17160 # Some rework will be needed to allow for fast_install
17161 # before this can be enabled.
17162 hardcode_into_libs=yes
17164 # Append ld.so.conf contents to the search path
17165 if test -f /etc/ld.so.conf; then
17166 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17167 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17170 # We used to test for /lib/ld.so.1 and disable shared libraries on
17171 # powerpc, because MkLinux only supported shared libraries with the
17172 # GNU dynamic linker. Since this was broken with cross compilers,
17173 # most powerpc-linux boxes support dynamic linking these days and
17174 # people can always --disable-shared, the test was removed, and we
17175 # assume the GNU/Linux dynamic linker is in use.
17176 dynamic_linker='GNU/Linux ld.so'
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=no
17187 hardcode_into_libs=yes
17188 dynamic_linker='GNU ld.so'
17195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17198 dynamic_linker='NetBSD (a.out) ld.so'
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 dynamic_linker='NetBSD ld.elf_so'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 hardcode_into_libs=yes
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=yes
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17235 openbsd2.[89] | openbsd2.[89].*)
17236 shlibpath_overrides_runpath=no
17239 shlibpath_overrides_runpath=yes
17243 shlibpath_overrides_runpath=yes
17248 libname_spec='$name'
17251 library_names_spec='$libname${shared_ext} $libname.a'
17252 dynamic_linker='OS/2 ld.exe'
17253 shlibpath_var=LIBPATH
17256 osf3* | osf4* | osf5*)
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 shlibpath_var=LD_LIBRARY_PATH
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes
17282 hardcode_into_libs=yes
17283 # ldd complains unless libraries are executable
17284 postinstall_cmds='chmod +x $lib'
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 if test "$with_gnu_ld" = yes; then
17299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 case $host_vendor in
17306 shlibpath_overrides_runpath=no
17308 export_dynamic_flag_spec='${wl}-Blargedynsym'
17309 runpath_var=LD_RUN_PATH
17317 shlibpath_overrides_runpath=no
17318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17324 if test -d /usr/nec ;then
17326 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17327 soname_spec='$libname${shared_ext}.$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17343 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344 echo "${ECHO_T}$dynamic_linker" >&6
17345 test "$dynamic_linker" = no && can_build_shared=no
17347 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17348 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17349 hardcode_action_CXX=
17350 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17351 test -n "$runpath_var_CXX" || \
17352 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17354 # We can hardcode non-existant directories.
17355 if test "$hardcode_direct_CXX" != no &&
17356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17357 # have to relink, otherwise we might link with an installed library
17358 # when we should be linking with a yet-to-be-installed one
17359 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17360 test "$hardcode_minus_L_CXX" != no; then
17361 # Linking always hardcodes the temporary library directory.
17362 hardcode_action_CXX=relink
17364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17365 hardcode_action_CXX=immediate
17368 # We cannot hardcode anything, or else we can only hardcode existing
17370 hardcode_action_CXX=unsupported
17372 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17373 echo "${ECHO_T}$hardcode_action_CXX" >&6
17375 if test "$hardcode_action_CXX" = relink; then
17376 # Fast installation is not supported
17377 enable_fast_install=no
17378 elif test "$shlibpath_overrides_runpath" = yes ||
17379 test "$enable_shared" = no; then
17380 # Fast installation is not necessary
17381 enable_fast_install=needless
17386 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17387 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17388 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17391 echo "$as_me:$LINENO: result: yes" >&5
17392 echo "${ECHO_T}yes" >&6
17394 # FIXME - insert some real tests, host_os isn't really good enough
17397 if test -n "$STRIP" ; then
17398 striplib="$STRIP -x"
17399 echo "$as_me:$LINENO: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17402 echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6
17407 echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6
17413 if test "x$enable_dlopen" != xyes; then
17414 enable_dlopen=unknown
17415 enable_dlopen_self=unknown
17416 enable_dlopen_self_static=unknown
17423 lt_cv_dlopen="load_add_on"
17425 lt_cv_dlopen_self=yes
17429 lt_cv_dlopen="LoadLibrary"
17434 lt_cv_dlopen="dlopen"
17439 # if libdl is installed we need to link against it
17440 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17441 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17442 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 ac_check_lib_save_LIBS=$LIBS
17447 cat >conftest.$ac_ext <<_ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17454 /* Override any gcc2 internal prototype to avoid an error. */
17458 /* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471 (eval $ac_link) 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_cxx_werror_flag"
17479 || test ! -s conftest.err'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_lib_dl_dlopen=yes
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ac_cv_lib_dl_dlopen=no
17498 rm -f conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 LIBS=$ac_check_lib_save_LIBS
17502 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17503 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17504 if test $ac_cv_lib_dl_dlopen = yes; then
17505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17508 lt_cv_dlopen="dyld"
17510 lt_cv_dlopen_self=yes
17517 echo "$as_me:$LINENO: checking for shl_load" >&5
17518 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17519 if test "${ac_cv_func_shl_load+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17530 #define shl_load innocuous_shl_load
17532 /* System header to define __stub macros and hopefully few prototypes,
17533 which can conflict with char shl_load (); below.
17534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17535 <limits.h> exists even on freestanding compilers. */
17538 # include <limits.h>
17540 # include <assert.h>
17545 /* Override any gcc2 internal prototype to avoid an error. */
17550 /* We use char because int might match the return type of a gcc2
17551 builtin and then its argument prototype would still apply. */
17553 /* The GNU C library defines this for functions which it implements
17554 to always fail with ENOSYS. Some functions are actually named
17555 something starting with __ and the normal name is an alias. */
17556 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17559 char (*f) () = shl_load;
17568 return f != shl_load;
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575 (eval $ac_link) 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_cxx_werror_flag"
17583 || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest$ac_exeext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_func_shl_load=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_func_shl_load=no
17602 rm -f conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17605 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17606 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17607 if test $ac_cv_func_shl_load = yes; then
17608 lt_cv_dlopen="shl_load"
17610 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17611 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17612 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 ac_check_lib_save_LIBS=$LIBS
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17624 /* Override any gcc2 internal prototype to avoid an error. */
17628 /* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_cxx_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_lib_dld_shl_load=yes
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_lib_dld_shl_load=no
17668 rm -f conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17670 LIBS=$ac_check_lib_save_LIBS
17672 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17673 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17674 if test $ac_cv_lib_dld_shl_load = yes; then
17675 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17677 echo "$as_me:$LINENO: checking for dlopen" >&5
17678 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17679 if test "${ac_cv_func_dlopen+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17690 #define dlopen innocuous_dlopen
17692 /* System header to define __stub macros and hopefully few prototypes,
17693 which can conflict with char dlopen (); below.
17694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695 <limits.h> exists even on freestanding compilers. */
17698 # include <limits.h>
17700 # include <assert.h>
17705 /* Override any gcc2 internal prototype to avoid an error. */
17710 /* We use char because int might match the return type of a gcc2
17711 builtin and then its argument prototype would still apply. */
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17719 char (*f) () = dlopen;
17728 return f != dlopen;
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_cxx_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_func_dlopen=yes
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_func_dlopen=no
17762 rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17765 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17766 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17767 if test $ac_cv_func_dlopen = yes; then
17768 lt_cv_dlopen="dlopen"
17770 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17771 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17772 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 ac_check_lib_save_LIBS=$LIBS
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17784 /* Override any gcc2 internal prototype to avoid an error. */
17788 /* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801 (eval $ac_link) 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_cxx_werror_flag"
17809 || test ! -s conftest.err'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_lib_dl_dlopen=yes
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ac_cv_lib_dl_dlopen=no
17828 rm -f conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
17830 LIBS=$ac_check_lib_save_LIBS
17832 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17834 if test $ac_cv_lib_dl_dlopen = yes; then
17835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17837 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17838 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17839 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-lsvld $LIBS"
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* Override any gcc2 internal prototype to avoid an error. */
17855 /* We use char because int might match the return type of a gcc2
17856 builtin and then its argument prototype would still apply. */
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868 (eval $ac_link) 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_cxx_werror_flag"
17876 || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_cv_lib_svld_dlopen=yes
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_cv_lib_svld_dlopen=no
17895 rm -f conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17897 LIBS=$ac_check_lib_save_LIBS
17899 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17900 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17901 if test $ac_cv_lib_svld_dlopen = yes; then
17902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17904 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17905 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17906 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 ac_check_lib_save_LIBS=$LIBS
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any gcc2 internal prototype to avoid an error. */
17922 /* We use char because int might match the return type of a gcc2
17923 builtin and then its argument prototype would still apply. */
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935 (eval $ac_link) 2>conftest.er1
17937 grep -v '^ *+' conftest.er1 >conftest.err
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_cxx_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_lib_dld_dld_link=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_lib_dld_dld_link=no
17962 rm -f conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17966 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17967 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17968 if test $ac_cv_lib_dld_dld_link = yes; then
17969 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17990 if test "x$lt_cv_dlopen" != xno; then
17996 case $lt_cv_dlopen in
17998 save_CPPFLAGS="$CPPFLAGS"
17999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18001 save_LDFLAGS="$LDFLAGS"
18002 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18005 LIBS="$lt_cv_dlopen_libs $LIBS"
18007 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18008 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18009 if test "${lt_cv_dlopen_self+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 if test "$cross_compiling" = yes; then :
18013 lt_cv_dlopen_self=cross
18015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18016 lt_status=$lt_dlunknown
18017 cat > conftest.$ac_ext <<EOF
18018 #line 18018 "configure"
18019 #include "confdefs.h"
18028 # define LT_DLGLOBAL RTLD_GLOBAL
18031 # define LT_DLGLOBAL DL_GLOBAL
18033 # define LT_DLGLOBAL 0
18037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18038 find out it does not work in some platform. */
18039 #ifndef LT_DLLAZY_OR_NOW
18041 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18044 # define LT_DLLAZY_OR_NOW DL_LAZY
18047 # define LT_DLLAZY_OR_NOW RTLD_NOW
18050 # define LT_DLLAZY_OR_NOW DL_NOW
18052 # define LT_DLLAZY_OR_NOW 0
18060 extern "C" void exit (int);
18063 void fnord() { int i=42;}
18066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18067 int status = $lt_dlunknown;
18071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18073 /* dlclose (self); */
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18084 (./conftest; exit; ) 2>/dev/null
18086 case x$lt_status in
18087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18089 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18092 # compilation failed
18093 lt_cv_dlopen_self=no
18100 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18101 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18103 if test "x$lt_cv_dlopen_self" = xyes; then
18104 LDFLAGS="$LDFLAGS $link_static_flag"
18105 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18106 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18107 if test "${lt_cv_dlopen_self_static+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 if test "$cross_compiling" = yes; then :
18111 lt_cv_dlopen_self_static=cross
18113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18114 lt_status=$lt_dlunknown
18115 cat > conftest.$ac_ext <<EOF
18116 #line 18116 "configure"
18117 #include "confdefs.h"
18126 # define LT_DLGLOBAL RTLD_GLOBAL
18129 # define LT_DLGLOBAL DL_GLOBAL
18131 # define LT_DLGLOBAL 0
18135 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18136 find out it does not work in some platform. */
18137 #ifndef LT_DLLAZY_OR_NOW
18139 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18142 # define LT_DLLAZY_OR_NOW DL_LAZY
18145 # define LT_DLLAZY_OR_NOW RTLD_NOW
18148 # define LT_DLLAZY_OR_NOW DL_NOW
18150 # define LT_DLLAZY_OR_NOW 0
18158 extern "C" void exit (int);
18161 void fnord() { int i=42;}
18164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18165 int status = $lt_dlunknown;
18169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18171 /* dlclose (self); */
18177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18178 (eval $ac_link) 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18182 (./conftest; exit; ) 2>/dev/null
18184 case x$lt_status in
18185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18190 # compilation failed
18191 lt_cv_dlopen_self_static=no
18198 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18199 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18202 CPPFLAGS="$save_CPPFLAGS"
18203 LDFLAGS="$save_LDFLAGS"
18208 case $lt_cv_dlopen_self in
18209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18210 *) enable_dlopen_self=unknown ;;
18213 case $lt_cv_dlopen_self_static in
18214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18215 *) enable_dlopen_self_static=unknown ;;
18220 # The else clause should only fire when bootstrapping the
18221 # libtool distribution, otherwise you forgot to ship ltmain.sh
18222 # with your package, and you will get complaints that there are
18223 # no rules to generate ltmain.sh.
18224 if test -f "$ltmain"; then
18225 # See if we are running on zsh, and set the options which allow our commands through
18226 # without removal of \ escapes.
18227 if test -n "${ZSH_VERSION+set}" ; then
18228 setopt NO_GLOB_SUBST
18230 # Now quote all the things that may contain metacharacters while being
18231 # careful not to overquote the AC_SUBSTed values. We take copies of the
18232 # variables and quote the copies for generation of the libtool script.
18233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18236 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18237 deplibs_check_method reload_flag reload_cmds need_locks \
18238 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18239 lt_cv_sys_global_symbol_to_c_name_address \
18240 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18241 old_postinstall_cmds old_postuninstall_cmds \
18245 lt_prog_compiler_wl_CXX \
18246 lt_prog_compiler_pic_CXX \
18247 lt_prog_compiler_static_CXX \
18248 lt_prog_compiler_no_builtin_flag_CXX \
18249 export_dynamic_flag_spec_CXX \
18250 thread_safe_flag_spec_CXX \
18251 whole_archive_flag_spec_CXX \
18252 enable_shared_with_static_runtimes_CXX \
18253 old_archive_cmds_CXX \
18254 old_archive_from_new_cmds_CXX \
18255 predep_objects_CXX \
18256 postdep_objects_CXX \
18259 compiler_lib_search_path_CXX \
18261 archive_expsym_cmds_CXX \
18262 postinstall_cmds_CXX \
18263 postuninstall_cmds_CXX \
18264 old_archive_from_expsyms_cmds_CXX \
18265 allow_undefined_flag_CXX \
18266 no_undefined_flag_CXX \
18267 export_symbols_cmds_CXX \
18268 hardcode_libdir_flag_spec_CXX \
18269 hardcode_libdir_flag_spec_ld_CXX \
18270 hardcode_libdir_separator_CXX \
18271 hardcode_automatic_CXX \
18273 module_expsym_cmds_CXX \
18274 lt_cv_prog_compiler_c_o_CXX \
18275 exclude_expsyms_CXX \
18276 include_expsyms_CXX; do
18279 old_archive_cmds_CXX | \
18280 old_archive_from_new_cmds_CXX | \
18281 archive_cmds_CXX | \
18282 archive_expsym_cmds_CXX | \
18283 module_cmds_CXX | \
18284 module_expsym_cmds_CXX | \
18285 old_archive_from_expsyms_cmds_CXX | \
18286 export_symbols_cmds_CXX | \
18287 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18288 postinstall_cmds | postuninstall_cmds | \
18289 old_postinstall_cmds | old_postuninstall_cmds | \
18290 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18291 # Double-quote double-evaled strings.
18292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18301 *'\$0 --fallback-echo"')
18302 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18308 cat <<__EOF__ >> "$cfgfile"
18309 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18311 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18313 # Shell to use when invoking shell scripts.
18316 # Whether or not to build shared libraries.
18317 build_libtool_libs=$enable_shared
18319 # Whether or not to build static libraries.
18320 build_old_libs=$enable_static
18322 # Whether or not to add -lc for building shared libraries.
18323 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18325 # Whether or not to disallow shared libs when runtime libs are static
18326 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18328 # Whether or not to optimize for fast installation.
18329 fast_install=$enable_fast_install
18332 host_alias=$host_alias
18335 # An echo program that does not interpret backslashes.
18340 AR_FLAGS=$lt_AR_FLAGS
18345 # A language-specific compiler.
18346 CC=$lt_compiler_CXX
18348 # Is the compiler the GNU C compiler?
18354 # The linker used to build libraries.
18357 # Whether we need hard or soft links.
18360 # A BSD-compatible nm program.
18363 # A symbol stripping program
18366 # Used to examine libraries when file_magic_cmd begins "file"
18367 MAGIC_CMD=$MAGIC_CMD
18369 # Used on cygwin: DLL creation program.
18372 # Used on cygwin: object dumper.
18375 # Used on cygwin: assembler.
18378 # The name of the directory that contains temporary libtool files.
18381 # How to create reloadable object files.
18382 reload_flag=$lt_reload_flag
18383 reload_cmds=$lt_reload_cmds
18385 # How to pass a linker flag through the compiler.
18386 wl=$lt_lt_prog_compiler_wl_CXX
18388 # Object file suffix (normally "o").
18389 objext="$ac_objext"
18391 # Old archive suffix (normally "a").
18394 # Shared library suffix (normally ".so").
18395 shrext_cmds='$shrext_cmds'
18397 # Executable file suffix (normally "").
18400 # Additional compiler flags for building library objects.
18401 pic_flag=$lt_lt_prog_compiler_pic_CXX
18404 # What is the maximum length of a command?
18405 max_cmd_len=$lt_cv_sys_max_cmd_len
18407 # Does compiler simultaneously support -c and -o options?
18408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18410 # Must we lock files when doing compilation ?
18411 need_locks=$lt_need_locks
18413 # Do we need the lib prefix for modules?
18414 need_lib_prefix=$need_lib_prefix
18416 # Do we need a version for libraries?
18417 need_version=$need_version
18419 # Whether dlopen is supported.
18420 dlopen_support=$enable_dlopen
18422 # Whether dlopen of programs is supported.
18423 dlopen_self=$enable_dlopen_self
18425 # Whether dlopen of statically linked programs is supported.
18426 dlopen_self_static=$enable_dlopen_self_static
18428 # Compiler flag to prevent dynamic linking.
18429 link_static_flag=$lt_lt_prog_compiler_static_CXX
18431 # Compiler flag to turn off builtin functions.
18432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18434 # Compiler flag to allow reflexive dlopens.
18435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18437 # Compiler flag to generate shared objects directly from archives.
18438 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18440 # Compiler flag to generate thread-safe objects.
18441 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18443 # Library versioning type.
18444 version_type=$version_type
18446 # Format of library name prefix.
18447 libname_spec=$lt_libname_spec
18449 # List of archive names. First name is the real one, the rest are links.
18450 # The last name is the one that the linker finds with -lNAME.
18451 library_names_spec=$lt_library_names_spec
18453 # The coded name of the library, if different from the real name.
18454 soname_spec=$lt_soname_spec
18456 # Commands used to build and install an old-style archive.
18458 old_archive_cmds=$lt_old_archive_cmds_CXX
18459 old_postinstall_cmds=$lt_old_postinstall_cmds
18460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18462 # Create an old-style archive from a shared archive.
18463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18465 # Create a temporary old-style archive to link instead of a shared archive.
18466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18468 # Commands used to build and install a shared archive.
18469 archive_cmds=$lt_archive_cmds_CXX
18470 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18471 postinstall_cmds=$lt_postinstall_cmds
18472 postuninstall_cmds=$lt_postuninstall_cmds
18474 # Commands used to build a loadable module (assumed same as above if empty)
18475 module_cmds=$lt_module_cmds_CXX
18476 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18478 # Commands to strip libraries.
18479 old_striplib=$lt_old_striplib
18480 striplib=$lt_striplib
18482 # Dependencies to place before the objects being linked to create a
18484 predep_objects=$lt_predep_objects_CXX
18486 # Dependencies to place after the objects being linked to create a
18488 postdep_objects=$lt_postdep_objects_CXX
18490 # Dependencies to place before the objects being linked to create a
18492 predeps=$lt_predeps_CXX
18494 # Dependencies to place after the objects being linked to create a
18496 postdeps=$lt_postdeps_CXX
18498 # The library search path used internally by the compiler when linking
18499 # a shared library.
18500 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18502 # Method to check whether dependent libraries are shared objects.
18503 deplibs_check_method=$lt_deplibs_check_method
18505 # Command to use when deplibs_check_method == file_magic.
18506 file_magic_cmd=$lt_file_magic_cmd
18508 # Flag that allows shared libraries with undefined symbols to be built.
18509 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18511 # Flag that forces no undefined symbols.
18512 no_undefined_flag=$lt_no_undefined_flag_CXX
18514 # Commands used to finish a libtool library installation in a directory.
18515 finish_cmds=$lt_finish_cmds
18517 # Same as above, but a single script fragment to be evaled but not shown.
18518 finish_eval=$lt_finish_eval
18520 # Take the output of nm and produce a listing of raw symbols and C names.
18521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18523 # Transform the output of nm in a proper C declaration
18524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18526 # Transform the output of nm in a C name address pair
18527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18529 # This is the shared library runtime path variable.
18530 runpath_var=$runpath_var
18532 # This is the shared library path variable.
18533 shlibpath_var=$shlibpath_var
18535 # Is shlibpath searched before the hard-coded library search path?
18536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18538 # How to hardcode a shared library path into an executable.
18539 hardcode_action=$hardcode_action_CXX
18541 # Whether we should hardcode library paths into libraries.
18542 hardcode_into_libs=$hardcode_into_libs
18544 # Flag to hardcode \$libdir into a binary during linking.
18545 # This must work even if \$libdir does not exist.
18546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18548 # If ld is used when linking, flag to hardcode \$libdir into
18549 # a binary during linking. This must work even if \$libdir does
18551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18553 # Whether we need a single -rpath flag with a separated argument.
18554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18557 # resulting binary.
18558 hardcode_direct=$hardcode_direct_CXX
18560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18561 # resulting binary.
18562 hardcode_minus_L=$hardcode_minus_L_CXX
18564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18565 # the resulting binary.
18566 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18568 # Set to yes if building a shared library automatically hardcodes DIR into the library
18569 # and all subsequent libraries and executables linked against it.
18570 hardcode_automatic=$hardcode_automatic_CXX
18572 # Variables whose values should be saved in libtool wrapper scripts and
18573 # restored at relink time.
18574 variables_saved_for_relink="$variables_saved_for_relink"
18576 # Whether libtool must link a program against all its dependency libraries.
18577 link_all_deplibs=$link_all_deplibs_CXX
18579 # Compile-time system search path for libraries
18580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18582 # Run-time system search path for libraries
18583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18585 # Fix the shell variable \$srcfile for the compiler.
18586 fix_srcfile_path="$fix_srcfile_path_CXX"
18588 # Set to yes if exported symbols are required.
18589 always_export_symbols=$always_export_symbols_CXX
18591 # The commands to list exported symbols.
18592 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18594 # The commands to extract the exported symbol list from a shared archive.
18595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18597 # Symbols that should not be listed in the preloaded symbols.
18598 exclude_expsyms=$lt_exclude_expsyms_CXX
18600 # Symbols that must always be exported.
18601 include_expsyms=$lt_include_expsyms_CXX
18603 # ### END LIBTOOL TAG CONFIG: $tagname
18609 # If there is no Makefile yet, we rely on a make rule to execute
18610 # `config.status --recheck' to rerun these tests and create the
18611 # libtool script then.
18612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18613 if test -f "$ltmain_in"; then
18614 test -f Makefile && make "$ltmain"
18620 ac_cpp='$CPP $CPPFLAGS'
18621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18629 with_gnu_ldcxx=$with_gnu_ld
18630 with_gnu_ld=$lt_save_with_gnu_ld
18631 lt_cv_path_LDCXX=$lt_cv_path_LD
18632 lt_cv_path_LD=$lt_save_path_LD
18633 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18634 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18642 if test -n "$F77" && test "X$F77" != "Xno"; then
18645 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18646 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18647 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18650 archive_cmds_need_lc_F77=no
18651 allow_undefined_flag_F77=
18652 always_export_symbols_F77=no
18653 archive_expsym_cmds_F77=
18654 export_dynamic_flag_spec_F77=
18655 hardcode_direct_F77=no
18656 hardcode_libdir_flag_spec_F77=
18657 hardcode_libdir_flag_spec_ld_F77=
18658 hardcode_libdir_separator_F77=
18659 hardcode_minus_L_F77=no
18660 hardcode_automatic_F77=no
18662 module_expsym_cmds_F77=
18663 link_all_deplibs_F77=unknown
18664 old_archive_cmds_F77=$old_archive_cmds
18665 no_undefined_flag_F77=
18666 whole_archive_flag_spec_F77=
18667 enable_shared_with_static_runtimes_F77=no
18669 # Source file extension for f77 test sources.
18672 # Object file extension for compiled f77 test sources.
18676 # Code to be used in simple compile tests
18677 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18679 # Code to be used in simple link tests
18680 lt_simple_link_test_code=" program t\n end\n"
18682 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18684 # If no C compiler was specified, use CC.
18687 # Allow CC to be a program name with arguments.
18691 # Allow CC to be a program name with arguments.
18696 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18698 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18699 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18700 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18701 echo "${ECHO_T}$can_build_shared" >&6
18703 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18704 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18705 test "$can_build_shared" = "no" && enable_shared=no
18707 # On AIX, shared libraries and static libraries use the same namespace, and
18708 # are all built from PIC.
18711 test "$enable_shared" = yes && enable_static=no
18712 if test -n "$RANLIB"; then
18713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18714 postinstall_cmds='$RANLIB $lib'
18718 test "$enable_shared" = yes && enable_static=no
18721 echo "$as_me:$LINENO: result: $enable_shared" >&5
18722 echo "${ECHO_T}$enable_shared" >&6
18724 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18725 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18726 # Make sure either enable_shared or enable_static is yes.
18727 test "$enable_shared" = yes || enable_static=yes
18728 echo "$as_me:$LINENO: result: $enable_static" >&5
18729 echo "${ECHO_T}$enable_static" >&6
18731 test "$ld_shlibs_F77" = no && can_build_shared=no
18736 lt_prog_compiler_wl_F77=
18737 lt_prog_compiler_pic_F77=
18738 lt_prog_compiler_static_F77=
18740 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18741 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18743 if test "$GCC" = yes; then
18744 lt_prog_compiler_wl_F77='-Wl,'
18745 lt_prog_compiler_static_F77='-static'
18749 # All AIX code is PIC.
18750 if test "$host_cpu" = ia64; then
18751 # AIX 5 now supports IA64 processor
18752 lt_prog_compiler_static_F77='-Bstatic'
18757 # FIXME: we need at least 68020 code to build shared libraries, but
18758 # adding the `-m68020' flag to GCC prevents building anything better,
18760 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18763 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18764 # PIC is the default for these OSes.
18767 mingw* | pw32* | os2*)
18768 # This hack is so that the source file can tell whether it is being
18769 # built for inclusion in a dll (and should export symbols for example).
18770 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18773 darwin* | rhapsody*)
18774 # PIC is the default on this platform
18775 # Common symbols not allowed in MH_DYLIB files
18776 lt_prog_compiler_pic_F77='-fno-common'
18780 # Just because we use GCC doesn't mean we suddenly get shared libraries
18781 # on systems that don't support them.
18782 lt_prog_compiler_can_build_shared_F77=no
18787 if test -d /usr/nec; then
18788 lt_prog_compiler_pic_F77=-Kconform_pic
18793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18794 # not for PA HP-UX.
18795 case "$host_cpu" in
18800 lt_prog_compiler_pic_F77='-fPIC'
18806 lt_prog_compiler_pic_F77='-fPIC'
18810 # PORTME Check for flag to pass linker flags through the system compiler.
18813 lt_prog_compiler_wl_F77='-Wl,'
18814 if test "$host_cpu" = ia64; then
18815 # AIX 5 now supports IA64 processor
18816 lt_prog_compiler_static_F77='-Bstatic'
18818 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18822 # PIC is the default on this platform
18823 # Common symbols not allowed in MH_DYLIB files
18824 case "$cc_basename" in
18826 lt_prog_compiler_pic_F77='-qnocommon'
18827 lt_prog_compiler_wl_F77='-Wl,'
18832 mingw* | pw32* | os2*)
18833 # This hack is so that the source file can tell whether it is being
18834 # built for inclusion in a dll (and should export symbols for example).
18835 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18838 hpux9* | hpux10* | hpux11*)
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18841 # not for PA HP-UX.
18842 case "$host_cpu" in
18847 lt_prog_compiler_pic_F77='+Z'
18850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18851 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18854 irix5* | irix6* | nonstopux*)
18855 lt_prog_compiler_wl_F77='-Wl,'
18856 # PIC (with -KPIC) is the default.
18857 lt_prog_compiler_static_F77='-non_shared'
18861 lt_prog_compiler_pic_F77='-KPIC'
18862 lt_prog_compiler_static_F77='-Bstatic'
18868 lt_prog_compiler_wl_F77='-Wl,'
18869 lt_prog_compiler_pic_F77='-KPIC'
18870 lt_prog_compiler_static_F77='-static'
18873 lt_prog_compiler_wl_F77='-Wl,'
18874 # All Alpha code is PIC.
18875 lt_prog_compiler_static_F77='-non_shared'
18880 osf3* | osf4* | osf5*)
18881 lt_prog_compiler_wl_F77='-Wl,'
18882 # All OSF/1 code is PIC.
18883 lt_prog_compiler_static_F77='-non_shared'
18887 lt_prog_compiler_pic_F77='-Kpic'
18888 lt_prog_compiler_static_F77='-dn'
18892 lt_prog_compiler_wl_F77='-Wl,'
18893 lt_prog_compiler_pic_F77='-KPIC'
18894 lt_prog_compiler_static_F77='-Bstatic'
18898 lt_prog_compiler_wl_F77='-Qoption ld '
18899 lt_prog_compiler_pic_F77='-PIC'
18900 lt_prog_compiler_static_F77='-Bstatic'
18903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18904 lt_prog_compiler_wl_F77='-Wl,'
18905 lt_prog_compiler_pic_F77='-KPIC'
18906 lt_prog_compiler_static_F77='-Bstatic'
18910 if test -d /usr/nec ;then
18911 lt_prog_compiler_pic_F77='-Kconform_pic'
18912 lt_prog_compiler_static_F77='-Bstatic'
18917 lt_prog_compiler_pic_F77='-pic'
18918 lt_prog_compiler_static_F77='-Bstatic'
18922 lt_prog_compiler_can_build_shared_F77=no
18927 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18928 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18931 # Check to make sure the PIC flag actually works.
18933 if test -n "$lt_prog_compiler_pic_F77"; then
18935 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18936 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18937 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 lt_prog_compiler_pic_works_F77=no
18941 ac_outfile=conftest.$ac_objext
18942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18943 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18944 # Insert the option either (1) after the last *FLAGS variable, or
18945 # (2) before a word containing "conftest.", or (3) at the end.
18946 # Note that $ac_compile itself does not contain backslashes and begins
18947 # with a dollar sign (not a hyphen), so the echo should work correctly.
18948 # The option is referenced via a variable to avoid confusing sed.
18949 lt_compile=`echo "$ac_compile" | $SED \
18950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18952 -e 's:$: $lt_compiler_flag:'`
18953 (eval echo "\"\$as_me:18953: $lt_compile\"" >&5)
18954 (eval "$lt_compile" 2>conftest.err)
18956 cat conftest.err >&5
18957 echo "$as_me:18957: \$? = $ac_status" >&5
18958 if (exit $ac_status) && test -s "$ac_outfile"; then
18959 # The compiler can only warn and ignore the option if not recognized
18960 # So say no if there are warnings
18961 if test ! -s conftest.err; then
18962 lt_prog_compiler_pic_works_F77=yes
18968 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18969 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18971 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18972 case $lt_prog_compiler_pic_F77 in
18974 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18977 lt_prog_compiler_pic_F77=
18978 lt_prog_compiler_can_build_shared_F77=no
18983 # For platforms which do not support PIC, -DPIC is meaningless:
18985 lt_prog_compiler_pic_F77=
18988 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18992 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18993 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18994 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 lt_cv_prog_compiler_c_o_F77=no
18998 $rm -r conftest 2>/dev/null
19002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19004 lt_compiler_flag="-o out/conftest2.$ac_objext"
19005 # Insert the option either (1) after the last *FLAGS variable, or
19006 # (2) before a word containing "conftest.", or (3) at the end.
19007 # Note that $ac_compile itself does not contain backslashes and begins
19008 # with a dollar sign (not a hyphen), so the echo should work correctly.
19009 lt_compile=`echo "$ac_compile" | $SED \
19010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19012 -e 's:$: $lt_compiler_flag:'`
19013 (eval echo "\"\$as_me:19013: $lt_compile\"" >&5)
19014 (eval "$lt_compile" 2>out/conftest.err)
19016 cat out/conftest.err >&5
19017 echo "$as_me:19017: \$? = $ac_status" >&5
19018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19020 # The compiler can only warn and ignore the option if not recognized
19021 # So say no if there are warnings
19022 if test ! -s out/conftest.err; then
19023 lt_cv_prog_compiler_c_o_F77=yes
19028 # SGI C++ compiler will create directory out/ii_files/ for
19029 # template instantiation
19030 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19031 $rm out/* && rmdir out
19037 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19038 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19041 hard_links="nottested"
19042 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19043 # do not overwrite the value of need_locks provided by the user
19044 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19045 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19050 ln conftest.a conftest.b 2>&5 || hard_links=no
19051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19052 echo "$as_me:$LINENO: result: $hard_links" >&5
19053 echo "${ECHO_T}$hard_links" >&6
19054 if test "$hard_links" = no; then
19055 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19056 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19063 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19064 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19067 allow_undefined_flag_F77=
19068 enable_shared_with_static_runtimes_F77=no
19070 archive_expsym_cmds_F77=
19071 old_archive_From_new_cmds_F77=
19072 old_archive_from_expsyms_cmds_F77=
19073 export_dynamic_flag_spec_F77=
19074 whole_archive_flag_spec_F77=
19075 thread_safe_flag_spec_F77=
19076 hardcode_libdir_flag_spec_F77=
19077 hardcode_libdir_flag_spec_ld_F77=
19078 hardcode_libdir_separator_F77=
19079 hardcode_direct_F77=no
19080 hardcode_minus_L_F77=no
19081 hardcode_shlibpath_var_F77=unsupported
19082 link_all_deplibs_F77=unknown
19083 hardcode_automatic_F77=no
19085 module_expsym_cmds_F77=
19086 always_export_symbols_F77=no
19087 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19088 # include_expsyms should be a list of space-separated symbols to be *always*
19089 # included in the symbol list
19090 include_expsyms_F77=
19091 # exclude_expsyms can be an extended regexp of symbols to exclude
19092 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19094 # as well as any symbol that contains `d'.
19095 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19097 # platforms (ab)use it in PIC code, but their linkers get confused if
19098 # the symbol is explicitly referenced. Since portable code cannot
19099 # rely on this symbol name, it's probably fine to never include it in
19100 # preloaded symbol tables.
19101 extract_expsyms_cmds=
19104 cygwin* | mingw* | pw32*)
19105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19106 # When not using gcc, we currently assume that we are using
19107 # Microsoft Visual C++.
19108 if test "$GCC" != yes; then
19118 if test "$with_gnu_ld" = yes; then
19119 # If archive_cmds runs LD, not CC, wlarc should be empty
19122 # See if GNU ld supports shared libraries.
19124 aix3* | aix4* | aix5*)
19125 # On AIX/PPC, the GNU linker is very broken
19126 if test "$host_cpu" != ia64; then
19130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19131 *** to be unable to reliably create shared libraries on AIX.
19132 *** Therefore, libtool is disabling shared libraries support. If you
19133 *** really care for shared libraries, you may want to modify your PATH
19134 *** so that a non-GNU linker is found, and then restart.
19141 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)'
19142 hardcode_libdir_flag_spec_F77='-L$libdir'
19143 hardcode_minus_L_F77=yes
19145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19146 # that the semantics of dynamic libraries on AmigaOS, at least up
19147 # to version 4, is to share data among multiple programs linked
19148 # with the same dynamic library. Since this doesn't match the
19149 # behavior of shared libraries on other platforms, we can't use
19155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19156 allow_undefined_flag_F77=unsupported
19157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19158 # support --undefined. This deserves some investigation. FIXME
19159 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 cygwin* | mingw* | pw32*)
19166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19167 # as there is no search path for DLLs.
19168 hardcode_libdir_flag_spec_F77='-L$libdir'
19169 allow_undefined_flag_F77=unsupported
19170 always_export_symbols_F77=no
19171 enable_shared_with_static_runtimes_F77=yes
19172 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19176 # If the export-symbols file already is a .def file (1st line
19177 # is EXPORTS), use it as is; otherwise, prepend...
19178 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19179 cp $export_symbols $output_objdir/$soname.def;
19181 echo EXPORTS > $output_objdir/$soname.def;
19182 cat $export_symbols >> $output_objdir/$soname.def;
19184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19192 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19195 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19196 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19201 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19206 *** create shared libraries on Solaris systems. Therefore, libtool
19207 *** is disabling shared libraries support. We urge you to upgrade GNU
19208 *** binutils to release 2.9.1 or newer. Another option is to modify
19209 *** your PATH or compiler configuration so that the native linker is
19210 *** used, and then restart.
19213 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19222 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19224 hardcode_direct_F77=yes
19225 hardcode_shlibpath_var_F77=no
19229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19230 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 archive_cmds_F77="$tmp_archive_cmds"
19232 supports_anon_versioning=no
19233 case `$LD -v 2>/dev/null` in
19234 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19237 *\ 2.11.*) ;; # other 2.11 versions
19238 *) supports_anon_versioning=yes ;;
19240 if test $supports_anon_versioning = yes; then
19241 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19243 $echo "local: *; };" >> $output_objdir/$libname.ver~
19244 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19246 archive_expsym_cmds_F77="$tmp_archive_cmds"
19254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19256 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19263 if test "$ld_shlibs_F77" = yes; then
19264 runpath_var=LD_RUN_PATH
19265 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19266 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19267 # ancient GNU ld didn't support --whole-archive et. al.
19268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19269 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19271 whole_archive_flag_spec_F77=
19275 # PORTME fill in a description of your system's linker (not GNU ld)
19278 allow_undefined_flag_F77=unsupported
19279 always_export_symbols_F77=yes
19280 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'
19281 # Note: this linker hardcodes the directories in LIBPATH if there
19282 # are no directories specified by -L.
19283 hardcode_minus_L_F77=yes
19284 if test "$GCC" = yes && test -z "$link_static_flag"; then
19285 # Neither direct hardcoding nor static linking is supported with a
19287 hardcode_direct_F77=unsupported
19292 if test "$host_cpu" = ia64; then
19293 # On IA64, the linker does run time linking by default, so we don't
19294 # have to do anything special.
19295 aix_use_runtimelinking=no
19296 exp_sym_flag='-Bexport'
19299 # If we're using GNU nm, then we don't want the "-C" option.
19300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19301 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19302 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'
19304 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'
19306 aix_use_runtimelinking=no
19308 # Test if we are trying to use run time linking or normal
19309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19310 # need to do runtime linking.
19311 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19312 for ld_flag in $LDFLAGS; do
19313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19314 aix_use_runtimelinking=yes
19320 exp_sym_flag='-bexport'
19321 no_entry_flag='-bnoentry'
19324 # When large executables or shared objects are built, AIX ld can
19325 # have problems creating the table of contents. If linking a library
19326 # or program results in "error TOC overflow" add -mminimal-toc to
19327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19330 archive_cmds_F77=''
19331 hardcode_direct_F77=yes
19332 hardcode_libdir_separator_F77=':'
19333 link_all_deplibs_F77=yes
19335 if test "$GCC" = yes; then
19336 case $host_os in aix4.012|aix4.012.*)
19337 # We only want to do this on AIX 4.2 and lower, the check
19338 # below for broken collect2 doesn't work under 4.3+
19339 collect2name=`${CC} -print-prog-name=collect2`
19340 if test -f "$collect2name" && \
19341 strings "$collect2name" | grep resolve_lib_name >/dev/null
19343 # We have reworked collect2
19344 hardcode_direct_F77=yes
19346 # We have old collect2
19347 hardcode_direct_F77=unsupported
19348 # It fails to find uninstalled libraries when the uninstalled
19349 # path is not listed in the libpath. Setting hardcode_minus_L
19350 # to unsupported forces relinking
19351 hardcode_minus_L_F77=yes
19352 hardcode_libdir_flag_spec_F77='-L$libdir'
19353 hardcode_libdir_separator_F77=
19356 shared_flag='-shared'
19359 if test "$host_cpu" = ia64; then
19360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19361 # chokes on -Wl,-G. The following line is correct:
19364 if test "$aix_use_runtimelinking" = yes; then
19365 shared_flag='${wl}-G'
19367 shared_flag='${wl}-bM:SRE'
19372 # It seems that -bexpall does not export symbols beginning with
19373 # underscore (_), so it is better to generate a list of symbols to export.
19374 always_export_symbols_F77=yes
19375 if test "$aix_use_runtimelinking" = yes; then
19376 # Warning - without using the other runtime loading flags (-brtl),
19377 # -berok will link without error, but may produce a broken library.
19378 allow_undefined_flag_F77='-berok'
19379 # Determine the default libpath from the value encoded in an empty executable.
19380 cat >conftest.$ac_ext <<_ACEOF
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19387 (eval $ac_link) 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_f77_werror_flag"
19395 || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest$ac_exeext'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19410 # Check for a 64-bit object if we didn't find anything.
19411 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; }
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19418 rm -f conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19422 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19423 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"
19425 if test "$host_cpu" = ia64; then
19426 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19427 allow_undefined_flag_F77="-z nodefs"
19428 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"
19430 # Determine the default libpath from the value encoded in an empty executable.
19431 cat >conftest.$ac_ext <<_ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438 (eval $ac_link) 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try='test -z "$ac_f77_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19461 # Check for a 64-bit object if we didn't find anything.
19462 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; }
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19469 rm -f conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
19471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19473 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19474 # Warning - without using the other run time loading flags,
19475 # -berok will link without error, but may produce a broken library.
19476 no_undefined_flag_F77=' ${wl}-bernotok'
19477 allow_undefined_flag_F77=' ${wl}-berok'
19478 # -bexpall does not export symbols beginning with underscore (_)
19479 always_export_symbols_F77=yes
19480 # Exported symbols can be pulled into shared objects from archives
19481 whole_archive_flag_spec_F77=' '
19482 archive_cmds_need_lc_F77=yes
19483 # This is similar to how AIX traditionally builds it's shared libraries.
19484 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'
19490 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)'
19491 hardcode_libdir_flag_spec_F77='-L$libdir'
19492 hardcode_minus_L_F77=yes
19493 # see comment about different semantics on the GNU ld section
19498 export_dynamic_flag_spec_F77=-rdynamic
19501 cygwin* | mingw* | pw32*)
19502 # When not using gcc, we currently assume that we are using
19503 # Microsoft Visual C++.
19504 # hardcode_libdir_flag_spec is actually meaningless, as there is
19505 # no search path for DLLs.
19506 hardcode_libdir_flag_spec_F77=' '
19507 allow_undefined_flag_F77=unsupported
19508 # Tell ltmain to make .lib files, not .a files.
19510 # Tell ltmain to make .dll files, not .so files.
19512 # FIXME: Setting linknames here is a bad hack.
19513 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19514 # The linker will automatically build a .lib file if we build a DLL.
19515 old_archive_From_new_cmds_F77='true'
19516 # FIXME: Should let the user specify the lib program.
19517 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19518 fix_srcfile_path='`cygpath -w "$srcfile"`'
19519 enable_shared_with_static_runtimes_F77=yes
19522 darwin* | rhapsody*)
19524 rhapsody* | darwin1.[012])
19525 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19529 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19531 case ${MACOSX_DEPLOYMENT_TARGET} in
19533 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19536 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19542 archive_cmds_need_lc_F77=no
19543 hardcode_direct_F77=no
19544 hardcode_automatic_F77=yes
19545 hardcode_shlibpath_var_F77=unsupported
19546 whole_archive_flag_spec_F77=''
19547 link_all_deplibs_F77=yes
19548 if test "$GCC" = yes ; then
19549 output_verbose_link_cmd='echo'
19550 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19551 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19553 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}'
19554 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}'
19556 case "$cc_basename" in
19558 output_verbose_link_cmd='echo'
19559 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19560 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19562 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}'
19563 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}'
19573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19574 hardcode_libdir_flag_spec_F77='-L$libdir'
19575 hardcode_shlibpath_var_F77=no
19582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19583 # support. Future versions do this automatically, but an explicit c++rt0.o
19584 # does not break anything, and helps significantly (at the cost of a little
19587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19588 hardcode_libdir_flag_spec_F77='-R$libdir'
19589 hardcode_direct_F77=yes
19590 hardcode_shlibpath_var_F77=no
19593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19596 hardcode_direct_F77=yes
19597 hardcode_minus_L_F77=yes
19598 hardcode_shlibpath_var_F77=no
19601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19602 freebsd* | kfreebsd*-gnu)
19603 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19604 hardcode_libdir_flag_spec_F77='-R$libdir'
19605 hardcode_direct_F77=yes
19606 hardcode_shlibpath_var_F77=no
19610 if test "$GCC" = yes; then
19611 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'
19613 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'
19615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19616 hardcode_libdir_separator_F77=:
19617 hardcode_direct_F77=yes
19619 # hardcode_minus_L: Not really in the search PATH,
19620 # but as the default location of the library.
19621 hardcode_minus_L_F77=yes
19622 export_dynamic_flag_spec_F77='${wl}-E'
19626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19627 case "$host_cpu" in
19629 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19636 case "$host_cpu" in
19638 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19641 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19645 if test "$with_gnu_ld" = no; then
19646 case "$host_cpu" in
19648 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19649 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19650 hardcode_libdir_separator_F77=:
19651 hardcode_direct_F77=no
19652 hardcode_shlibpath_var_F77=no
19655 hardcode_libdir_flag_spec_F77='-L$libdir'
19656 hardcode_direct_F77=no
19657 hardcode_shlibpath_var_F77=no
19659 # hardcode_minus_L: Not really in the search PATH,
19660 # but as the default location of the library.
19661 hardcode_minus_L_F77=yes
19664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19665 hardcode_libdir_separator_F77=:
19666 hardcode_direct_F77=yes
19667 export_dynamic_flag_spec_F77='${wl}-E'
19669 # hardcode_minus_L: Not really in the search PATH,
19670 # but as the default location of the library.
19671 hardcode_minus_L_F77=yes
19677 irix5* | irix6* | nonstopux*)
19678 if test "$GCC" = yes; then
19679 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'
19681 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'
19682 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19685 hardcode_libdir_separator_F77=:
19686 link_all_deplibs_F77=yes
19690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19693 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19695 hardcode_libdir_flag_spec_F77='-R$libdir'
19696 hardcode_direct_F77=yes
19697 hardcode_shlibpath_var_F77=no
19701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19702 hardcode_direct_F77=yes
19703 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19704 hardcode_libdir_separator_F77=:
19705 hardcode_shlibpath_var_F77=no
19709 hardcode_direct_F77=yes
19710 hardcode_shlibpath_var_F77=no
19711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19712 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19713 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19714 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19715 export_dynamic_flag_spec_F77='${wl}-E'
19718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19719 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19720 hardcode_libdir_flag_spec_F77='-R$libdir'
19723 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19724 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19731 hardcode_libdir_flag_spec_F77='-L$libdir'
19732 hardcode_minus_L_F77=yes
19733 allow_undefined_flag_F77=unsupported
19734 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'
19735 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19739 if test "$GCC" = yes; then
19740 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19741 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'
19743 allow_undefined_flag_F77=' -expect_unresolved \*'
19744 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'
19746 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19747 hardcode_libdir_separator_F77=:
19750 osf4* | osf5*) # as osf3* with the addition of -msym flag
19751 if test "$GCC" = yes; then
19752 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19753 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'
19754 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19756 allow_undefined_flag_F77=' -expect_unresolved \*'
19757 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'
19758 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~
19759 $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'
19761 # Both c and cxx compiler support -rpath directly
19762 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19764 hardcode_libdir_separator_F77=:
19768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_shlibpath_var_F77=no
19770 export_dynamic_flag_spec_F77='${wl}-Bexport'
19771 runpath_var=LD_RUN_PATH
19772 hardcode_runpath_var=yes
19776 no_undefined_flag_F77=' -z text'
19777 if test "$GCC" = yes; then
19778 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19779 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19780 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19782 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19783 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19786 hardcode_libdir_flag_spec_F77='-R$libdir'
19787 hardcode_shlibpath_var_F77=no
19789 solaris2.[0-5] | solaris2.[0-5].*) ;;
19790 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19791 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19793 link_all_deplibs_F77=yes
19797 if test "x$host_vendor" = xsequent; then
19798 # Use $CC to link under sequent, because it throws in some extra .o
19799 # files that make .init and .fini sections work.
19800 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19802 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19804 hardcode_libdir_flag_spec_F77='-L$libdir'
19805 hardcode_direct_F77=yes
19806 hardcode_minus_L_F77=yes
19807 hardcode_shlibpath_var_F77=no
19811 case $host_vendor in
19813 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19814 hardcode_direct_F77=yes # is this really true???
19817 ## LD is ld it makes a PLAMLIB
19818 ## CC just makes a GrossModule.
19819 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19820 reload_cmds_F77='$CC -r -o $output$reload_objs'
19821 hardcode_direct_F77=no
19824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19825 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19828 runpath_var='LD_RUN_PATH'
19829 hardcode_shlibpath_var_F77=no
19833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19834 hardcode_shlibpath_var_F77=no
19835 export_dynamic_flag_spec_F77='-Bexport'
19839 if test -d /usr/nec; then
19840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19841 hardcode_shlibpath_var_F77=no
19842 runpath_var=LD_RUN_PATH
19843 hardcode_runpath_var=yes
19849 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19850 hardcode_direct_F77=yes
19851 hardcode_minus_L_F77=no
19852 hardcode_shlibpath_var_F77=no
19853 hardcode_runpath_var=yes
19854 runpath_var=LD_RUN_PATH
19857 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19858 no_undefined_flag_F77='${wl}-z ${wl}text'
19859 if test "$GCC" = yes; then
19860 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19862 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19864 runpath_var='LD_RUN_PATH'
19865 hardcode_shlibpath_var_F77=no
19869 no_undefined_flag_F77=' -z text'
19870 # $CC -shared without GNU ld will not create a library from C++
19871 # object files and a static libstdc++, better avoid it by now
19872 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19875 hardcode_libdir_flag_spec_F77=
19876 hardcode_shlibpath_var_F77=no
19877 runpath_var='LD_RUN_PATH'
19881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19882 hardcode_libdir_flag_spec_F77='-L$libdir'
19883 hardcode_shlibpath_var_F77=no
19892 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19893 echo "${ECHO_T}$ld_shlibs_F77" >&6
19894 test "$ld_shlibs_F77" = no && can_build_shared=no
19896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19897 if test "$GCC" = yes; then
19898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19902 # Do we need to explicitly link libc?
19904 case "x$archive_cmds_need_lc_F77" in
19906 # Assume -lc should be added
19907 archive_cmds_need_lc_F77=yes
19909 if test "$enable_shared" = yes && test "$GCC" = yes; then
19910 case $archive_cmds_F77 in
19912 # FIXME: we may have to deal with multi-command sequences.
19915 # Test whether the compiler implicitly links with -lc since on some
19916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19917 # to ld, don't add -lc before -lgcc.
19918 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19919 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } 2>conftest.err; then
19930 libobjs=conftest.$ac_objext
19932 wl=$lt_prog_compiler_wl_F77
19938 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19939 allow_undefined_flag_F77=
19940 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19941 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }
19946 archive_cmds_need_lc_F77=no
19948 archive_cmds_need_lc_F77=yes
19950 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19952 cat conftest.err 1>&5
19955 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19956 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19963 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19964 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19965 library_names_spec=
19966 libname_spec='lib$name'
19970 postuninstall_cmds=
19974 shlibpath_overrides_runpath=unknown
19976 dynamic_linker="$host_os ld.so"
19977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19978 if test "$GCC" = yes; then
19979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19980 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19981 # if the path contains ";" then we assume it to be the separator
19982 # otherwise default to the standard path separator (i.e. ":") - it is
19983 # assumed that no part of a normal pathname contains ";" but that should
19984 # okay in the real world where ";" in dirpaths is itself problematic.
19985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19992 need_lib_prefix=unknown
19993 hardcode_into_libs=no
19995 # when you set need_version to no, make sure it does not cause -set_version
19996 # flags to be left without arguments
19997 need_version=unknown
20002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20003 shlibpath_var=LIBPATH
20005 # AIX 3 has no versioning support, so we append a major version to the name.
20006 soname_spec='${libname}${release}${shared_ext}$major'
20013 hardcode_into_libs=yes
20014 if test "$host_cpu" = ia64; then
20015 # AIX 5 supports IA64
20016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20017 shlibpath_var=LD_LIBRARY_PATH
20019 # With GCC up to 2.95.x, collect2 would create an import file
20020 # for dependence libraries. The import file would start with
20021 # the line `#! .'. This would cause the generated library to
20022 # depend on `.', always an invalid library. This was fixed in
20023 # development snapshots of GCC prior to 3.0.
20025 aix4 | aix4.[01] | aix4.[01].*)
20026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20028 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20031 can_build_shared=no
20035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20036 # soname into executable. Probably we can add versioning support to
20037 # collect2, so additional links can be useful in future.
20038 if test "$aix_use_runtimelinking" = yes; then
20039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20040 # instead of lib<name>.a to let people know that these are not
20041 # typical AIX shared libraries.
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044 # We preserve .a as extension for shared libraries through AIX4.2
20045 # and later when we are not doing run time linking.
20046 library_names_spec='${libname}${release}.a $libname.a'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20049 shlibpath_var=LIBPATH
20054 library_names_spec='$libname.ixlibrary $libname.a'
20055 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20056 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'
20060 library_names_spec='${libname}${shared_ext}'
20061 dynamic_linker="$host_os ld.so"
20062 shlibpath_var=LIBRARY_PATH
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20071 shlibpath_var=LD_LIBRARY_PATH
20072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20074 # the default ld.so.conf also contains /usr/contrib/lib and
20075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20076 # libtool to hard-code these into programs
20079 cygwin* | mingw* | pw32*)
20080 version_type=windows
20085 case $GCC,$host_os in
20086 yes,cygwin* | yes,mingw* | yes,pw32*)
20087 library_names_spec='$libname.dll.a'
20088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20089 postinstall_cmds='base_file=`basename \${file}`~
20090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20091 dldir=$destdir/`dirname \$dlpath`~
20092 test -d \$dldir || mkdir -p \$dldir~
20093 $install_prog $dir/$dlname \$dldir/$dlname'
20094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20095 dlpath=$dir/\$dldll~
20097 shlibpath_overrides_runpath=yes
20101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20103 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20106 # MinGW DLLs use traditional 'lib' prefix
20107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20109 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20110 # It is most probably a Windows format PATH printed by
20111 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20112 # path with ; separators, and with drive letters. We can handle the
20113 # drive letters (cygwin fileutils understands them), so leave them,
20114 # especially as we might pass files found there to a mingw objdump,
20115 # which wouldn't understand a cygwinified path. Ahh.
20116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20122 # pw32 DLLs use 'pw' prefix rather than 'lib'
20123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20132 dynamic_linker='Win32 ld.exe'
20133 # FIXME: first we should search . and the directory the executable is in
20137 darwin* | rhapsody*)
20138 dynamic_linker="$host_os dyld"
20139 version_type=darwin
20142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20143 soname_spec='${libname}${release}${major}$shared_ext'
20144 shlibpath_overrides_runpath=yes
20145 shlibpath_var=DYLD_LIBRARY_PATH
20146 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20148 if test "$GCC" = yes; then
20149 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"`
20151 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20161 soname_spec='${libname}${release}${shared_ext}$major'
20162 shlibpath_var=LD_LIBRARY_PATH
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=no
20177 hardcode_into_libs=yes
20178 dynamic_linker='GNU ld.so'
20182 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20183 version_type=freebsd-$objformat
20184 case $version_type in
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20195 shlibpath_var=LD_LIBRARY_PATH
20198 shlibpath_overrides_runpath=yes
20200 freebsd3.01* | freebsdelf3.01*)
20201 shlibpath_overrides_runpath=yes
20202 hardcode_into_libs=yes
20205 shlibpath_overrides_runpath=no
20206 hardcode_into_libs=yes
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 hardcode_into_libs=yes
20221 hpux9* | hpux10* | hpux11*)
20222 # Give a soname corresponding to the major version so that dld.sl refuses to
20223 # link against other versions.
20227 case "$host_cpu" in
20230 hardcode_into_libs=yes
20231 dynamic_linker="$host_os dld.so"
20232 shlibpath_var=LD_LIBRARY_PATH
20233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 if test "X$HPUX_IA64_MODE" = X32; then
20237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20245 hardcode_into_libs=yes
20246 dynamic_linker="$host_os dld.sl"
20247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20256 dynamic_linker="$host_os dld.sl"
20257 shlibpath_var=SHLIB_PATH
20258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20264 postinstall_cmds='chmod 555 $lib'
20267 irix5* | irix6* | nonstopux*)
20269 nonstopux*) version_type=nonstopux ;;
20271 if test "$lt_cv_prog_gnu_ld" = yes; then
20279 soname_spec='${libname}${release}${shared_ext}$major'
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 irix5* | nonstopux*)
20283 libsuff= shlibsuff=
20286 case $LD in # libtool.m4 will add one of these switches to LD
20287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20288 libsuff= shlibsuff= libmagic=32-bit;;
20289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20290 libsuff=32 shlibsuff=N32 libmagic=N32;;
20291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20293 *) libsuff= shlibsuff= libmagic=never-match;;
20297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20298 shlibpath_overrides_runpath=no
20299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20301 hardcode_into_libs=yes
20304 # No shared lib support for Linux oldld, aout, or coff.
20305 linux*oldld* | linux*aout* | linux*coff*)
20309 # This must be Linux ELF.
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315 soname_spec='${libname}${release}${shared_ext}$major'
20316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=no
20319 # This implies no fast_install, which is unacceptable.
20320 # Some rework will be needed to allow for fast_install
20321 # before this can be enabled.
20322 hardcode_into_libs=yes
20324 # Append ld.so.conf contents to the search path
20325 if test -f /etc/ld.so.conf; then
20326 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20330 # We used to test for /lib/ld.so.1 and disable shared libraries on
20331 # powerpc, because MkLinux only supported shared libraries with the
20332 # GNU dynamic linker. Since this was broken with cross compilers,
20333 # most powerpc-linux boxes support dynamic linking these days and
20334 # people can always --disable-shared, the test was removed, and we
20335 # assume the GNU/Linux dynamic linker is in use.
20336 dynamic_linker='GNU/Linux ld.so'
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=no
20347 hardcode_into_libs=yes
20348 dynamic_linker='GNU ld.so'
20355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20358 dynamic_linker='NetBSD (a.out) ld.so'
20360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20361 soname_spec='${libname}${release}${shared_ext}$major'
20362 dynamic_linker='NetBSD ld.elf_so'
20364 shlibpath_var=LD_LIBRARY_PATH
20365 shlibpath_overrides_runpath=yes
20366 hardcode_into_libs=yes
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 shlibpath_overrides_runpath=yes
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 shlibpath_overrides_runpath=yes
20390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20395 openbsd2.[89] | openbsd2.[89].*)
20396 shlibpath_overrides_runpath=no
20399 shlibpath_overrides_runpath=yes
20403 shlibpath_overrides_runpath=yes
20408 libname_spec='$name'
20411 library_names_spec='$libname${shared_ext} $libname.a'
20412 dynamic_linker='OS/2 ld.exe'
20413 shlibpath_var=LIBPATH
20416 osf3* | osf4* | osf5*)
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 shlibpath_var=LD_LIBRARY_PATH
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 shlibpath_overrides_runpath=yes
20442 hardcode_into_libs=yes
20443 # ldd complains unless libraries are executable
20444 postinstall_cmds='chmod +x $lib'
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 shlibpath_overrides_runpath=yes
20453 if test "$with_gnu_ld" = yes; then
20459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 case $host_vendor in
20466 shlibpath_overrides_runpath=no
20468 export_dynamic_flag_spec='${wl}-Blargedynsym'
20469 runpath_var=LD_RUN_PATH
20477 shlibpath_overrides_runpath=no
20478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20484 if test -d /usr/nec ;then
20486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20487 soname_spec='$libname${shared_ext}.$major'
20488 shlibpath_var=LD_LIBRARY_PATH
20494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495 soname_spec='${libname}${release}${shared_ext}$major'
20496 shlibpath_var=LD_LIBRARY_PATH
20503 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20504 echo "${ECHO_T}$dynamic_linker" >&6
20505 test "$dynamic_linker" = no && can_build_shared=no
20507 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20508 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20509 hardcode_action_F77=
20510 if test -n "$hardcode_libdir_flag_spec_F77" || \
20511 test -n "$runpath_var_F77" || \
20512 test "X$hardcode_automatic_F77" = "Xyes" ; then
20514 # We can hardcode non-existant directories.
20515 if test "$hardcode_direct_F77" != no &&
20516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20517 # have to relink, otherwise we might link with an installed library
20518 # when we should be linking with a yet-to-be-installed one
20519 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20520 test "$hardcode_minus_L_F77" != no; then
20521 # Linking always hardcodes the temporary library directory.
20522 hardcode_action_F77=relink
20524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20525 hardcode_action_F77=immediate
20528 # We cannot hardcode anything, or else we can only hardcode existing
20530 hardcode_action_F77=unsupported
20532 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20533 echo "${ECHO_T}$hardcode_action_F77" >&6
20535 if test "$hardcode_action_F77" = relink; then
20536 # Fast installation is not supported
20537 enable_fast_install=no
20538 elif test "$shlibpath_overrides_runpath" = yes ||
20539 test "$enable_shared" = no; then
20540 # Fast installation is not necessary
20541 enable_fast_install=needless
20546 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20547 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20548 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20549 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20550 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20551 echo "$as_me:$LINENO: result: yes" >&5
20552 echo "${ECHO_T}yes" >&6
20554 # FIXME - insert some real tests, host_os isn't really good enough
20557 if test -n "$STRIP" ; then
20558 striplib="$STRIP -x"
20559 echo "$as_me:$LINENO: result: yes" >&5
20560 echo "${ECHO_T}yes" >&6
20562 echo "$as_me:$LINENO: result: no" >&5
20563 echo "${ECHO_T}no" >&6
20567 echo "$as_me:$LINENO: result: no" >&5
20568 echo "${ECHO_T}no" >&6
20575 # The else clause should only fire when bootstrapping the
20576 # libtool distribution, otherwise you forgot to ship ltmain.sh
20577 # with your package, and you will get complaints that there are
20578 # no rules to generate ltmain.sh.
20579 if test -f "$ltmain"; then
20580 # See if we are running on zsh, and set the options which allow our commands through
20581 # without removal of \ escapes.
20582 if test -n "${ZSH_VERSION+set}" ; then
20583 setopt NO_GLOB_SUBST
20585 # Now quote all the things that may contain metacharacters while being
20586 # careful not to overquote the AC_SUBSTed values. We take copies of the
20587 # variables and quote the copies for generation of the libtool script.
20588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20592 deplibs_check_method reload_flag reload_cmds need_locks \
20593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20594 lt_cv_sys_global_symbol_to_c_name_address \
20595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20596 old_postinstall_cmds old_postuninstall_cmds \
20600 lt_prog_compiler_wl_F77 \
20601 lt_prog_compiler_pic_F77 \
20602 lt_prog_compiler_static_F77 \
20603 lt_prog_compiler_no_builtin_flag_F77 \
20604 export_dynamic_flag_spec_F77 \
20605 thread_safe_flag_spec_F77 \
20606 whole_archive_flag_spec_F77 \
20607 enable_shared_with_static_runtimes_F77 \
20608 old_archive_cmds_F77 \
20609 old_archive_from_new_cmds_F77 \
20610 predep_objects_F77 \
20611 postdep_objects_F77 \
20614 compiler_lib_search_path_F77 \
20616 archive_expsym_cmds_F77 \
20617 postinstall_cmds_F77 \
20618 postuninstall_cmds_F77 \
20619 old_archive_from_expsyms_cmds_F77 \
20620 allow_undefined_flag_F77 \
20621 no_undefined_flag_F77 \
20622 export_symbols_cmds_F77 \
20623 hardcode_libdir_flag_spec_F77 \
20624 hardcode_libdir_flag_spec_ld_F77 \
20625 hardcode_libdir_separator_F77 \
20626 hardcode_automatic_F77 \
20628 module_expsym_cmds_F77 \
20629 lt_cv_prog_compiler_c_o_F77 \
20630 exclude_expsyms_F77 \
20631 include_expsyms_F77; do
20634 old_archive_cmds_F77 | \
20635 old_archive_from_new_cmds_F77 | \
20636 archive_cmds_F77 | \
20637 archive_expsym_cmds_F77 | \
20638 module_cmds_F77 | \
20639 module_expsym_cmds_F77 | \
20640 old_archive_from_expsyms_cmds_F77 | \
20641 export_symbols_cmds_F77 | \
20642 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20643 postinstall_cmds | postuninstall_cmds | \
20644 old_postinstall_cmds | old_postuninstall_cmds | \
20645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20646 # Double-quote double-evaled strings.
20647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20656 *'\$0 --fallback-echo"')
20657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20663 cat <<__EOF__ >> "$cfgfile"
20664 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20668 # Shell to use when invoking shell scripts.
20671 # Whether or not to build shared libraries.
20672 build_libtool_libs=$enable_shared
20674 # Whether or not to build static libraries.
20675 build_old_libs=$enable_static
20677 # Whether or not to add -lc for building shared libraries.
20678 build_libtool_need_lc=$archive_cmds_need_lc_F77
20680 # Whether or not to disallow shared libs when runtime libs are static
20681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20683 # Whether or not to optimize for fast installation.
20684 fast_install=$enable_fast_install
20687 host_alias=$host_alias
20690 # An echo program that does not interpret backslashes.
20695 AR_FLAGS=$lt_AR_FLAGS
20700 # A language-specific compiler.
20701 CC=$lt_compiler_F77
20703 # Is the compiler the GNU C compiler?
20709 # The linker used to build libraries.
20712 # Whether we need hard or soft links.
20715 # A BSD-compatible nm program.
20718 # A symbol stripping program
20721 # Used to examine libraries when file_magic_cmd begins "file"
20722 MAGIC_CMD=$MAGIC_CMD
20724 # Used on cygwin: DLL creation program.
20727 # Used on cygwin: object dumper.
20730 # Used on cygwin: assembler.
20733 # The name of the directory that contains temporary libtool files.
20736 # How to create reloadable object files.
20737 reload_flag=$lt_reload_flag
20738 reload_cmds=$lt_reload_cmds
20740 # How to pass a linker flag through the compiler.
20741 wl=$lt_lt_prog_compiler_wl_F77
20743 # Object file suffix (normally "o").
20744 objext="$ac_objext"
20746 # Old archive suffix (normally "a").
20749 # Shared library suffix (normally ".so").
20750 shrext_cmds='$shrext_cmds'
20752 # Executable file suffix (normally "").
20755 # Additional compiler flags for building library objects.
20756 pic_flag=$lt_lt_prog_compiler_pic_F77
20759 # What is the maximum length of a command?
20760 max_cmd_len=$lt_cv_sys_max_cmd_len
20762 # Does compiler simultaneously support -c and -o options?
20763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20765 # Must we lock files when doing compilation ?
20766 need_locks=$lt_need_locks
20768 # Do we need the lib prefix for modules?
20769 need_lib_prefix=$need_lib_prefix
20771 # Do we need a version for libraries?
20772 need_version=$need_version
20774 # Whether dlopen is supported.
20775 dlopen_support=$enable_dlopen
20777 # Whether dlopen of programs is supported.
20778 dlopen_self=$enable_dlopen_self
20780 # Whether dlopen of statically linked programs is supported.
20781 dlopen_self_static=$enable_dlopen_self_static
20783 # Compiler flag to prevent dynamic linking.
20784 link_static_flag=$lt_lt_prog_compiler_static_F77
20786 # Compiler flag to turn off builtin functions.
20787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20789 # Compiler flag to allow reflexive dlopens.
20790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20792 # Compiler flag to generate shared objects directly from archives.
20793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20795 # Compiler flag to generate thread-safe objects.
20796 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20798 # Library versioning type.
20799 version_type=$version_type
20801 # Format of library name prefix.
20802 libname_spec=$lt_libname_spec
20804 # List of archive names. First name is the real one, the rest are links.
20805 # The last name is the one that the linker finds with -lNAME.
20806 library_names_spec=$lt_library_names_spec
20808 # The coded name of the library, if different from the real name.
20809 soname_spec=$lt_soname_spec
20811 # Commands used to build and install an old-style archive.
20813 old_archive_cmds=$lt_old_archive_cmds_F77
20814 old_postinstall_cmds=$lt_old_postinstall_cmds
20815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20817 # Create an old-style archive from a shared archive.
20818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20820 # Create a temporary old-style archive to link instead of a shared archive.
20821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20823 # Commands used to build and install a shared archive.
20824 archive_cmds=$lt_archive_cmds_F77
20825 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20826 postinstall_cmds=$lt_postinstall_cmds
20827 postuninstall_cmds=$lt_postuninstall_cmds
20829 # Commands used to build a loadable module (assumed same as above if empty)
20830 module_cmds=$lt_module_cmds_F77
20831 module_expsym_cmds=$lt_module_expsym_cmds_F77
20833 # Commands to strip libraries.
20834 old_striplib=$lt_old_striplib
20835 striplib=$lt_striplib
20837 # Dependencies to place before the objects being linked to create a
20839 predep_objects=$lt_predep_objects_F77
20841 # Dependencies to place after the objects being linked to create a
20843 postdep_objects=$lt_postdep_objects_F77
20845 # Dependencies to place before the objects being linked to create a
20847 predeps=$lt_predeps_F77
20849 # Dependencies to place after the objects being linked to create a
20851 postdeps=$lt_postdeps_F77
20853 # The library search path used internally by the compiler when linking
20854 # a shared library.
20855 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20857 # Method to check whether dependent libraries are shared objects.
20858 deplibs_check_method=$lt_deplibs_check_method
20860 # Command to use when deplibs_check_method == file_magic.
20861 file_magic_cmd=$lt_file_magic_cmd
20863 # Flag that allows shared libraries with undefined symbols to be built.
20864 allow_undefined_flag=$lt_allow_undefined_flag_F77
20866 # Flag that forces no undefined symbols.
20867 no_undefined_flag=$lt_no_undefined_flag_F77
20869 # Commands used to finish a libtool library installation in a directory.
20870 finish_cmds=$lt_finish_cmds
20872 # Same as above, but a single script fragment to be evaled but not shown.
20873 finish_eval=$lt_finish_eval
20875 # Take the output of nm and produce a listing of raw symbols and C names.
20876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20878 # Transform the output of nm in a proper C declaration
20879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20881 # Transform the output of nm in a C name address pair
20882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20884 # This is the shared library runtime path variable.
20885 runpath_var=$runpath_var
20887 # This is the shared library path variable.
20888 shlibpath_var=$shlibpath_var
20890 # Is shlibpath searched before the hard-coded library search path?
20891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20893 # How to hardcode a shared library path into an executable.
20894 hardcode_action=$hardcode_action_F77
20896 # Whether we should hardcode library paths into libraries.
20897 hardcode_into_libs=$hardcode_into_libs
20899 # Flag to hardcode \$libdir into a binary during linking.
20900 # This must work even if \$libdir does not exist.
20901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20903 # If ld is used when linking, flag to hardcode \$libdir into
20904 # a binary during linking. This must work even if \$libdir does
20906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20908 # Whether we need a single -rpath flag with a separated argument.
20909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20912 # resulting binary.
20913 hardcode_direct=$hardcode_direct_F77
20915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20916 # resulting binary.
20917 hardcode_minus_L=$hardcode_minus_L_F77
20919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20920 # the resulting binary.
20921 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20923 # Set to yes if building a shared library automatically hardcodes DIR into the library
20924 # and all subsequent libraries and executables linked against it.
20925 hardcode_automatic=$hardcode_automatic_F77
20927 # Variables whose values should be saved in libtool wrapper scripts and
20928 # restored at relink time.
20929 variables_saved_for_relink="$variables_saved_for_relink"
20931 # Whether libtool must link a program against all its dependency libraries.
20932 link_all_deplibs=$link_all_deplibs_F77
20934 # Compile-time system search path for libraries
20935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20937 # Run-time system search path for libraries
20938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20940 # Fix the shell variable \$srcfile for the compiler.
20941 fix_srcfile_path="$fix_srcfile_path_F77"
20943 # Set to yes if exported symbols are required.
20944 always_export_symbols=$always_export_symbols_F77
20946 # The commands to list exported symbols.
20947 export_symbols_cmds=$lt_export_symbols_cmds_F77
20949 # The commands to extract the exported symbol list from a shared archive.
20950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20952 # Symbols that should not be listed in the preloaded symbols.
20953 exclude_expsyms=$lt_exclude_expsyms_F77
20955 # Symbols that must always be exported.
20956 include_expsyms=$lt_include_expsyms_F77
20958 # ### END LIBTOOL TAG CONFIG: $tagname
20964 # If there is no Makefile yet, we rely on a make rule to execute
20965 # `config.status --recheck' to rerun these tests and create the
20966 # libtool script then.
20967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20968 if test -f "$ltmain_in"; then
20969 test -f Makefile && make "$ltmain"
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20996 # Source file extension for Java test sources.
20999 # Object file extension for compiled Java test sources.
21003 # Code to be used in simple compile tests
21004 lt_simple_compile_test_code="class foo {}\n"
21006 # Code to be used in simple link tests
21007 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21011 # If no C compiler was specified, use CC.
21014 # Allow CC to be a program name with arguments.
21018 # Allow CC to be a program name with arguments.
21024 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21025 archive_cmds_need_lc_GCJ=no
21028 lt_prog_compiler_no_builtin_flag_GCJ=
21030 if test "$GCC" = yes; then
21031 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21034 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21035 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 lt_cv_prog_compiler_rtti_exceptions=no
21040 ac_outfile=conftest.$ac_objext
21041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21042 lt_compiler_flag="-fno-rtti -fno-exceptions"
21043 # Insert the option either (1) after the last *FLAGS variable, or
21044 # (2) before a word containing "conftest.", or (3) at the end.
21045 # Note that $ac_compile itself does not contain backslashes and begins
21046 # with a dollar sign (not a hyphen), so the echo should work correctly.
21047 # The option is referenced via a variable to avoid confusing sed.
21048 lt_compile=`echo "$ac_compile" | $SED \
21049 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21051 -e 's:$: $lt_compiler_flag:'`
21052 (eval echo "\"\$as_me:21052: $lt_compile\"" >&5)
21053 (eval "$lt_compile" 2>conftest.err)
21055 cat conftest.err >&5
21056 echo "$as_me:21056: \$? = $ac_status" >&5
21057 if (exit $ac_status) && test -s "$ac_outfile"; then
21058 # The compiler can only warn and ignore the option if not recognized
21059 # So say no if there are warnings
21060 if test ! -s conftest.err; then
21061 lt_cv_prog_compiler_rtti_exceptions=yes
21067 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21068 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21070 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21071 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21078 lt_prog_compiler_wl_GCJ=
21079 lt_prog_compiler_pic_GCJ=
21080 lt_prog_compiler_static_GCJ=
21082 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21083 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21085 if test "$GCC" = yes; then
21086 lt_prog_compiler_wl_GCJ='-Wl,'
21087 lt_prog_compiler_static_GCJ='-static'
21091 # All AIX code is PIC.
21092 if test "$host_cpu" = ia64; then
21093 # AIX 5 now supports IA64 processor
21094 lt_prog_compiler_static_GCJ='-Bstatic'
21099 # FIXME: we need at least 68020 code to build shared libraries, but
21100 # adding the `-m68020' flag to GCC prevents building anything better,
21102 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21105 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21106 # PIC is the default for these OSes.
21109 mingw* | pw32* | os2*)
21110 # This hack is so that the source file can tell whether it is being
21111 # built for inclusion in a dll (and should export symbols for example).
21112 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21115 darwin* | rhapsody*)
21116 # PIC is the default on this platform
21117 # Common symbols not allowed in MH_DYLIB files
21118 lt_prog_compiler_pic_GCJ='-fno-common'
21122 # Just because we use GCC doesn't mean we suddenly get shared libraries
21123 # on systems that don't support them.
21124 lt_prog_compiler_can_build_shared_GCJ=no
21129 if test -d /usr/nec; then
21130 lt_prog_compiler_pic_GCJ=-Kconform_pic
21135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21136 # not for PA HP-UX.
21137 case "$host_cpu" in
21142 lt_prog_compiler_pic_GCJ='-fPIC'
21148 lt_prog_compiler_pic_GCJ='-fPIC'
21152 # PORTME Check for flag to pass linker flags through the system compiler.
21155 lt_prog_compiler_wl_GCJ='-Wl,'
21156 if test "$host_cpu" = ia64; then
21157 # AIX 5 now supports IA64 processor
21158 lt_prog_compiler_static_GCJ='-Bstatic'
21160 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21164 # PIC is the default on this platform
21165 # Common symbols not allowed in MH_DYLIB files
21166 case "$cc_basename" in
21168 lt_prog_compiler_pic_GCJ='-qnocommon'
21169 lt_prog_compiler_wl_GCJ='-Wl,'
21174 mingw* | pw32* | os2*)
21175 # This hack is so that the source file can tell whether it is being
21176 # built for inclusion in a dll (and should export symbols for example).
21177 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21180 hpux9* | hpux10* | hpux11*)
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21183 # not for PA HP-UX.
21184 case "$host_cpu" in
21189 lt_prog_compiler_pic_GCJ='+Z'
21192 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21193 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21196 irix5* | irix6* | nonstopux*)
21197 lt_prog_compiler_wl_GCJ='-Wl,'
21198 # PIC (with -KPIC) is the default.
21199 lt_prog_compiler_static_GCJ='-non_shared'
21203 lt_prog_compiler_pic_GCJ='-KPIC'
21204 lt_prog_compiler_static_GCJ='-Bstatic'
21210 lt_prog_compiler_wl_GCJ='-Wl,'
21211 lt_prog_compiler_pic_GCJ='-KPIC'
21212 lt_prog_compiler_static_GCJ='-static'
21215 lt_prog_compiler_wl_GCJ='-Wl,'
21216 # All Alpha code is PIC.
21217 lt_prog_compiler_static_GCJ='-non_shared'
21222 osf3* | osf4* | osf5*)
21223 lt_prog_compiler_wl_GCJ='-Wl,'
21224 # All OSF/1 code is PIC.
21225 lt_prog_compiler_static_GCJ='-non_shared'
21229 lt_prog_compiler_pic_GCJ='-Kpic'
21230 lt_prog_compiler_static_GCJ='-dn'
21234 lt_prog_compiler_wl_GCJ='-Wl,'
21235 lt_prog_compiler_pic_GCJ='-KPIC'
21236 lt_prog_compiler_static_GCJ='-Bstatic'
21240 lt_prog_compiler_wl_GCJ='-Qoption ld '
21241 lt_prog_compiler_pic_GCJ='-PIC'
21242 lt_prog_compiler_static_GCJ='-Bstatic'
21245 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21246 lt_prog_compiler_wl_GCJ='-Wl,'
21247 lt_prog_compiler_pic_GCJ='-KPIC'
21248 lt_prog_compiler_static_GCJ='-Bstatic'
21252 if test -d /usr/nec ;then
21253 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21254 lt_prog_compiler_static_GCJ='-Bstatic'
21259 lt_prog_compiler_pic_GCJ='-pic'
21260 lt_prog_compiler_static_GCJ='-Bstatic'
21264 lt_prog_compiler_can_build_shared_GCJ=no
21269 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21270 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21273 # Check to make sure the PIC flag actually works.
21275 if test -n "$lt_prog_compiler_pic_GCJ"; then
21277 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21278 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21279 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 lt_prog_compiler_pic_works_GCJ=no
21283 ac_outfile=conftest.$ac_objext
21284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21285 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21286 # Insert the option either (1) after the last *FLAGS variable, or
21287 # (2) before a word containing "conftest.", or (3) at the end.
21288 # Note that $ac_compile itself does not contain backslashes and begins
21289 # with a dollar sign (not a hyphen), so the echo should work correctly.
21290 # The option is referenced via a variable to avoid confusing sed.
21291 lt_compile=`echo "$ac_compile" | $SED \
21292 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21294 -e 's:$: $lt_compiler_flag:'`
21295 (eval echo "\"\$as_me:21295: $lt_compile\"" >&5)
21296 (eval "$lt_compile" 2>conftest.err)
21298 cat conftest.err >&5
21299 echo "$as_me:21299: \$? = $ac_status" >&5
21300 if (exit $ac_status) && test -s "$ac_outfile"; then
21301 # The compiler can only warn and ignore the option if not recognized
21302 # So say no if there are warnings
21303 if test ! -s conftest.err; then
21304 lt_prog_compiler_pic_works_GCJ=yes
21310 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21311 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21313 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21314 case $lt_prog_compiler_pic_GCJ in
21316 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21319 lt_prog_compiler_pic_GCJ=
21320 lt_prog_compiler_can_build_shared_GCJ=no
21325 # For platforms which do not support PIC, -DPIC is meaningless:
21327 lt_prog_compiler_pic_GCJ=
21330 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21334 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21335 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21336 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 lt_cv_prog_compiler_c_o_GCJ=no
21340 $rm -r conftest 2>/dev/null
21344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21346 lt_compiler_flag="-o out/conftest2.$ac_objext"
21347 # Insert the option either (1) after the last *FLAGS variable, or
21348 # (2) before a word containing "conftest.", or (3) at the end.
21349 # Note that $ac_compile itself does not contain backslashes and begins
21350 # with a dollar sign (not a hyphen), so the echo should work correctly.
21351 lt_compile=`echo "$ac_compile" | $SED \
21352 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21354 -e 's:$: $lt_compiler_flag:'`
21355 (eval echo "\"\$as_me:21355: $lt_compile\"" >&5)
21356 (eval "$lt_compile" 2>out/conftest.err)
21358 cat out/conftest.err >&5
21359 echo "$as_me:21359: \$? = $ac_status" >&5
21360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21362 # The compiler can only warn and ignore the option if not recognized
21363 # So say no if there are warnings
21364 if test ! -s out/conftest.err; then
21365 lt_cv_prog_compiler_c_o_GCJ=yes
21370 # SGI C++ compiler will create directory out/ii_files/ for
21371 # template instantiation
21372 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21373 $rm out/* && rmdir out
21379 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21380 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21383 hard_links="nottested"
21384 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21385 # do not overwrite the value of need_locks provided by the user
21386 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21387 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21392 ln conftest.a conftest.b 2>&5 || hard_links=no
21393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21394 echo "$as_me:$LINENO: result: $hard_links" >&5
21395 echo "${ECHO_T}$hard_links" >&6
21396 if test "$hard_links" = no; then
21397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21398 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21405 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21406 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21409 allow_undefined_flag_GCJ=
21410 enable_shared_with_static_runtimes_GCJ=no
21412 archive_expsym_cmds_GCJ=
21413 old_archive_From_new_cmds_GCJ=
21414 old_archive_from_expsyms_cmds_GCJ=
21415 export_dynamic_flag_spec_GCJ=
21416 whole_archive_flag_spec_GCJ=
21417 thread_safe_flag_spec_GCJ=
21418 hardcode_libdir_flag_spec_GCJ=
21419 hardcode_libdir_flag_spec_ld_GCJ=
21420 hardcode_libdir_separator_GCJ=
21421 hardcode_direct_GCJ=no
21422 hardcode_minus_L_GCJ=no
21423 hardcode_shlibpath_var_GCJ=unsupported
21424 link_all_deplibs_GCJ=unknown
21425 hardcode_automatic_GCJ=no
21427 module_expsym_cmds_GCJ=
21428 always_export_symbols_GCJ=no
21429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21430 # include_expsyms should be a list of space-separated symbols to be *always*
21431 # included in the symbol list
21432 include_expsyms_GCJ=
21433 # exclude_expsyms can be an extended regexp of symbols to exclude
21434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21436 # as well as any symbol that contains `d'.
21437 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21439 # platforms (ab)use it in PIC code, but their linkers get confused if
21440 # the symbol is explicitly referenced. Since portable code cannot
21441 # rely on this symbol name, it's probably fine to never include it in
21442 # preloaded symbol tables.
21443 extract_expsyms_cmds=
21446 cygwin* | mingw* | pw32*)
21447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21448 # When not using gcc, we currently assume that we are using
21449 # Microsoft Visual C++.
21450 if test "$GCC" != yes; then
21460 if test "$with_gnu_ld" = yes; then
21461 # If archive_cmds runs LD, not CC, wlarc should be empty
21464 # See if GNU ld supports shared libraries.
21466 aix3* | aix4* | aix5*)
21467 # On AIX/PPC, the GNU linker is very broken
21468 if test "$host_cpu" != ia64; then
21472 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21473 *** to be unable to reliably create shared libraries on AIX.
21474 *** Therefore, libtool is disabling shared libraries support. If you
21475 *** really care for shared libraries, you may want to modify your PATH
21476 *** so that a non-GNU linker is found, and then restart.
21483 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)'
21484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21485 hardcode_minus_L_GCJ=yes
21487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21488 # that the semantics of dynamic libraries on AmigaOS, at least up
21489 # to version 4, is to share data among multiple programs linked
21490 # with the same dynamic library. Since this doesn't match the
21491 # behavior of shared libraries on other platforms, we can't use
21497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21498 allow_undefined_flag_GCJ=unsupported
21499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21500 # support --undefined. This deserves some investigation. FIXME
21501 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21507 cygwin* | mingw* | pw32*)
21508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21509 # as there is no search path for DLLs.
21510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21511 allow_undefined_flag_GCJ=unsupported
21512 always_export_symbols_GCJ=no
21513 enable_shared_with_static_runtimes_GCJ=yes
21514 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21518 # If the export-symbols file already is a .def file (1st line
21519 # is EXPORTS), use it as is; otherwise, prepend...
21520 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21521 cp $export_symbols $output_objdir/$soname.def;
21523 echo EXPORTS > $output_objdir/$soname.def;
21524 cat $export_symbols >> $output_objdir/$soname.def;
21526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21534 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21543 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21547 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21548 *** create shared libraries on Solaris systems. Therefore, libtool
21549 *** is disabling shared libraries support. We urge you to upgrade GNU
21550 *** binutils to release 2.9.1 or newer. Another option is to modify
21551 *** your PATH or compiler configuration so that the native linker is
21552 *** used, and then restart.
21555 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21564 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21566 hardcode_direct_GCJ=yes
21567 hardcode_shlibpath_var_GCJ=no
21571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21573 archive_cmds_GCJ="$tmp_archive_cmds"
21574 supports_anon_versioning=no
21575 case `$LD -v 2>/dev/null` in
21576 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21577 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21578 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21579 *\ 2.11.*) ;; # other 2.11 versions
21580 *) supports_anon_versioning=yes ;;
21582 if test $supports_anon_versioning = yes; then
21583 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21585 $echo "local: *; };" >> $output_objdir/$libname.ver~
21586 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21588 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21597 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21598 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21605 if test "$ld_shlibs_GCJ" = yes; then
21606 runpath_var=LD_RUN_PATH
21607 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21608 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21609 # ancient GNU ld didn't support --whole-archive et. al.
21610 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21611 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21613 whole_archive_flag_spec_GCJ=
21617 # PORTME fill in a description of your system's linker (not GNU ld)
21620 allow_undefined_flag_GCJ=unsupported
21621 always_export_symbols_GCJ=yes
21622 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'
21623 # Note: this linker hardcodes the directories in LIBPATH if there
21624 # are no directories specified by -L.
21625 hardcode_minus_L_GCJ=yes
21626 if test "$GCC" = yes && test -z "$link_static_flag"; then
21627 # Neither direct hardcoding nor static linking is supported with a
21629 hardcode_direct_GCJ=unsupported
21634 if test "$host_cpu" = ia64; then
21635 # On IA64, the linker does run time linking by default, so we don't
21636 # have to do anything special.
21637 aix_use_runtimelinking=no
21638 exp_sym_flag='-Bexport'
21641 # If we're using GNU nm, then we don't want the "-C" option.
21642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21643 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21644 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'
21646 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'
21648 aix_use_runtimelinking=no
21650 # Test if we are trying to use run time linking or normal
21651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21652 # need to do runtime linking.
21653 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21654 for ld_flag in $LDFLAGS; do
21655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21656 aix_use_runtimelinking=yes
21662 exp_sym_flag='-bexport'
21663 no_entry_flag='-bnoentry'
21666 # When large executables or shared objects are built, AIX ld can
21667 # have problems creating the table of contents. If linking a library
21668 # or program results in "error TOC overflow" add -mminimal-toc to
21669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21672 archive_cmds_GCJ=''
21673 hardcode_direct_GCJ=yes
21674 hardcode_libdir_separator_GCJ=':'
21675 link_all_deplibs_GCJ=yes
21677 if test "$GCC" = yes; then
21678 case $host_os in aix4.012|aix4.012.*)
21679 # We only want to do this on AIX 4.2 and lower, the check
21680 # below for broken collect2 doesn't work under 4.3+
21681 collect2name=`${CC} -print-prog-name=collect2`
21682 if test -f "$collect2name" && \
21683 strings "$collect2name" | grep resolve_lib_name >/dev/null
21685 # We have reworked collect2
21686 hardcode_direct_GCJ=yes
21688 # We have old collect2
21689 hardcode_direct_GCJ=unsupported
21690 # It fails to find uninstalled libraries when the uninstalled
21691 # path is not listed in the libpath. Setting hardcode_minus_L
21692 # to unsupported forces relinking
21693 hardcode_minus_L_GCJ=yes
21694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21695 hardcode_libdir_separator_GCJ=
21698 shared_flag='-shared'
21701 if test "$host_cpu" = ia64; then
21702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21703 # chokes on -Wl,-G. The following line is correct:
21706 if test "$aix_use_runtimelinking" = yes; then
21707 shared_flag='${wl}-G'
21709 shared_flag='${wl}-bM:SRE'
21714 # It seems that -bexpall does not export symbols beginning with
21715 # underscore (_), so it is better to generate a list of symbols to export.
21716 always_export_symbols_GCJ=yes
21717 if test "$aix_use_runtimelinking" = yes; then
21718 # Warning - without using the other runtime loading flags (-brtl),
21719 # -berok will link without error, but may produce a broken library.
21720 allow_undefined_flag_GCJ='-berok'
21721 # Determine the default libpath from the value encoded in an empty executable.
21722 cat >conftest.$ac_ext <<_ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21737 rm -f conftest.$ac_objext conftest$ac_exeext
21738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21739 (eval $ac_link) 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try='test -z "$ac_c_werror_flag"
21747 || test ! -s conftest.err'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; } &&
21753 { ac_try='test -s conftest$ac_exeext'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21762 # Check for a 64-bit object if we didn't find anything.
21763 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; }
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21770 rm -f conftest.err conftest.$ac_objext \
21771 conftest$ac_exeext conftest.$ac_ext
21772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21774 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21775 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"
21777 if test "$host_cpu" = ia64; then
21778 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21779 allow_undefined_flag_GCJ="-z nodefs"
21780 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"
21782 # Determine the default libpath from the value encoded in an empty executable.
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21798 rm -f conftest.$ac_objext conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800 (eval $ac_link) 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
21807 { ac_try='test -z "$ac_c_werror_flag"
21808 || test ! -s conftest.err'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest$ac_exeext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21823 # Check for a 64-bit object if we didn't find anything.
21824 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; }
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21831 rm -f conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
21833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21835 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21836 # Warning - without using the other run time loading flags,
21837 # -berok will link without error, but may produce a broken library.
21838 no_undefined_flag_GCJ=' ${wl}-bernotok'
21839 allow_undefined_flag_GCJ=' ${wl}-berok'
21840 # -bexpall does not export symbols beginning with underscore (_)
21841 always_export_symbols_GCJ=yes
21842 # Exported symbols can be pulled into shared objects from archives
21843 whole_archive_flag_spec_GCJ=' '
21844 archive_cmds_need_lc_GCJ=yes
21845 # This is similar to how AIX traditionally builds it's shared libraries.
21846 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'
21852 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)'
21853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21854 hardcode_minus_L_GCJ=yes
21855 # see comment about different semantics on the GNU ld section
21860 export_dynamic_flag_spec_GCJ=-rdynamic
21863 cygwin* | mingw* | pw32*)
21864 # When not using gcc, we currently assume that we are using
21865 # Microsoft Visual C++.
21866 # hardcode_libdir_flag_spec is actually meaningless, as there is
21867 # no search path for DLLs.
21868 hardcode_libdir_flag_spec_GCJ=' '
21869 allow_undefined_flag_GCJ=unsupported
21870 # Tell ltmain to make .lib files, not .a files.
21872 # Tell ltmain to make .dll files, not .so files.
21874 # FIXME: Setting linknames here is a bad hack.
21875 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21876 # The linker will automatically build a .lib file if we build a DLL.
21877 old_archive_From_new_cmds_GCJ='true'
21878 # FIXME: Should let the user specify the lib program.
21879 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21880 fix_srcfile_path='`cygpath -w "$srcfile"`'
21881 enable_shared_with_static_runtimes_GCJ=yes
21884 darwin* | rhapsody*)
21886 rhapsody* | darwin1.[012])
21887 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21890 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21891 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893 case ${MACOSX_DEPLOYMENT_TARGET} in
21895 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21898 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21904 archive_cmds_need_lc_GCJ=no
21905 hardcode_direct_GCJ=no
21906 hardcode_automatic_GCJ=yes
21907 hardcode_shlibpath_var_GCJ=unsupported
21908 whole_archive_flag_spec_GCJ=''
21909 link_all_deplibs_GCJ=yes
21910 if test "$GCC" = yes ; then
21911 output_verbose_link_cmd='echo'
21912 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21913 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21915 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}'
21916 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}'
21918 case "$cc_basename" in
21920 output_verbose_link_cmd='echo'
21921 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21922 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21923 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21924 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}'
21925 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}'
21935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21937 hardcode_shlibpath_var_GCJ=no
21944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21945 # support. Future versions do this automatically, but an explicit c++rt0.o
21946 # does not break anything, and helps significantly (at the cost of a little
21949 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21950 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21951 hardcode_direct_GCJ=yes
21952 hardcode_shlibpath_var_GCJ=no
21955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21958 hardcode_direct_GCJ=yes
21959 hardcode_minus_L_GCJ=yes
21960 hardcode_shlibpath_var_GCJ=no
21963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21964 freebsd* | kfreebsd*-gnu)
21965 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21966 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21967 hardcode_direct_GCJ=yes
21968 hardcode_shlibpath_var_GCJ=no
21972 if test "$GCC" = yes; then
21973 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'
21975 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'
21977 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21978 hardcode_libdir_separator_GCJ=:
21979 hardcode_direct_GCJ=yes
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_GCJ=yes
21984 export_dynamic_flag_spec_GCJ='${wl}-E'
21988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21989 case "$host_cpu" in
21991 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21994 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21998 case "$host_cpu" in
22000 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22003 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22007 if test "$with_gnu_ld" = no; then
22008 case "$host_cpu" in
22010 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22011 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22012 hardcode_libdir_separator_GCJ=:
22013 hardcode_direct_GCJ=no
22014 hardcode_shlibpath_var_GCJ=no
22017 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22018 hardcode_direct_GCJ=no
22019 hardcode_shlibpath_var_GCJ=no
22021 # hardcode_minus_L: Not really in the search PATH,
22022 # but as the default location of the library.
22023 hardcode_minus_L_GCJ=yes
22026 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22027 hardcode_libdir_separator_GCJ=:
22028 hardcode_direct_GCJ=yes
22029 export_dynamic_flag_spec_GCJ='${wl}-E'
22031 # hardcode_minus_L: Not really in the search PATH,
22032 # but as the default location of the library.
22033 hardcode_minus_L_GCJ=yes
22039 irix5* | irix6* | nonstopux*)
22040 if test "$GCC" = yes; then
22041 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'
22043 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'
22044 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22047 hardcode_libdir_separator_GCJ=:
22048 link_all_deplibs_GCJ=yes
22052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22053 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22055 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22058 hardcode_direct_GCJ=yes
22059 hardcode_shlibpath_var_GCJ=no
22063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22064 hardcode_direct_GCJ=yes
22065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22066 hardcode_libdir_separator_GCJ=:
22067 hardcode_shlibpath_var_GCJ=no
22071 hardcode_direct_GCJ=yes
22072 hardcode_shlibpath_var_GCJ=no
22073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22075 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22077 export_dynamic_flag_spec_GCJ='${wl}-E'
22080 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22081 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22085 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22094 hardcode_minus_L_GCJ=yes
22095 allow_undefined_flag_GCJ=unsupported
22096 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'
22097 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22101 if test "$GCC" = yes; then
22102 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22103 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'
22105 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22106 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'
22108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22109 hardcode_libdir_separator_GCJ=:
22112 osf4* | osf5*) # as osf3* with the addition of -msym flag
22113 if test "$GCC" = yes; then
22114 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22115 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'
22116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22118 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22119 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'
22120 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~
22121 $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'
22123 # Both c and cxx compiler support -rpath directly
22124 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22126 hardcode_libdir_separator_GCJ=:
22130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131 hardcode_shlibpath_var_GCJ=no
22132 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22133 runpath_var=LD_RUN_PATH
22134 hardcode_runpath_var=yes
22138 no_undefined_flag_GCJ=' -z text'
22139 if test "$GCC" = yes; then
22140 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22141 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22142 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22144 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22145 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22146 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22148 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22149 hardcode_shlibpath_var_GCJ=no
22151 solaris2.[0-5] | solaris2.[0-5].*) ;;
22152 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22153 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22155 link_all_deplibs_GCJ=yes
22159 if test "x$host_vendor" = xsequent; then
22160 # Use $CC to link under sequent, because it throws in some extra .o
22161 # files that make .init and .fini sections work.
22162 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22164 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22167 hardcode_direct_GCJ=yes
22168 hardcode_minus_L_GCJ=yes
22169 hardcode_shlibpath_var_GCJ=no
22173 case $host_vendor in
22175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_direct_GCJ=yes # is this really true???
22179 ## LD is ld it makes a PLAMLIB
22180 ## CC just makes a GrossModule.
22181 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22182 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22183 hardcode_direct_GCJ=no
22186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22187 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22190 runpath_var='LD_RUN_PATH'
22191 hardcode_shlibpath_var_GCJ=no
22195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22196 hardcode_shlibpath_var_GCJ=no
22197 export_dynamic_flag_spec_GCJ='-Bexport'
22201 if test -d /usr/nec; then
22202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22203 hardcode_shlibpath_var_GCJ=no
22204 runpath_var=LD_RUN_PATH
22205 hardcode_runpath_var=yes
22211 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22212 hardcode_direct_GCJ=yes
22213 hardcode_minus_L_GCJ=no
22214 hardcode_shlibpath_var_GCJ=no
22215 hardcode_runpath_var=yes
22216 runpath_var=LD_RUN_PATH
22219 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22220 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22221 if test "$GCC" = yes; then
22222 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22224 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22226 runpath_var='LD_RUN_PATH'
22227 hardcode_shlibpath_var_GCJ=no
22231 no_undefined_flag_GCJ=' -z text'
22232 # $CC -shared without GNU ld will not create a library from C++
22233 # object files and a static libstdc++, better avoid it by now
22234 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22237 hardcode_libdir_flag_spec_GCJ=
22238 hardcode_shlibpath_var_GCJ=no
22239 runpath_var='LD_RUN_PATH'
22243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22245 hardcode_shlibpath_var_GCJ=no
22254 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22255 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22256 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22259 if test "$GCC" = yes; then
22260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22264 # Do we need to explicitly link libc?
22266 case "x$archive_cmds_need_lc_GCJ" in
22268 # Assume -lc should be added
22269 archive_cmds_need_lc_GCJ=yes
22271 if test "$enable_shared" = yes && test "$GCC" = yes; then
22272 case $archive_cmds_GCJ in
22274 # FIXME: we may have to deal with multi-command sequences.
22277 # Test whether the compiler implicitly links with -lc since on some
22278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22279 # to ld, don't add -lc before -lgcc.
22280 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22281 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286 (eval $ac_compile) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } 2>conftest.err; then
22292 libobjs=conftest.$ac_objext
22294 wl=$lt_prog_compiler_wl_GCJ
22300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22301 allow_undefined_flag_GCJ=
22302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }
22308 archive_cmds_need_lc_GCJ=no
22310 archive_cmds_need_lc_GCJ=yes
22312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22314 cat conftest.err 1>&5
22317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22325 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22327 library_names_spec=
22328 libname_spec='lib$name'
22332 postuninstall_cmds=
22336 shlibpath_overrides_runpath=unknown
22338 dynamic_linker="$host_os ld.so"
22339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22340 if test "$GCC" = yes; then
22341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22342 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22343 # if the path contains ";" then we assume it to be the separator
22344 # otherwise default to the standard path separator (i.e. ":") - it is
22345 # assumed that no part of a normal pathname contains ";" but that should
22346 # okay in the real world where ";" in dirpaths is itself problematic.
22347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22354 need_lib_prefix=unknown
22355 hardcode_into_libs=no
22357 # when you set need_version to no, make sure it does not cause -set_version
22358 # flags to be left without arguments
22359 need_version=unknown
22364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22365 shlibpath_var=LIBPATH
22367 # AIX 3 has no versioning support, so we append a major version to the name.
22368 soname_spec='${libname}${release}${shared_ext}$major'
22375 hardcode_into_libs=yes
22376 if test "$host_cpu" = ia64; then
22377 # AIX 5 supports IA64
22378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22379 shlibpath_var=LD_LIBRARY_PATH
22381 # With GCC up to 2.95.x, collect2 would create an import file
22382 # for dependence libraries. The import file would start with
22383 # the line `#! .'. This would cause the generated library to
22384 # depend on `.', always an invalid library. This was fixed in
22385 # development snapshots of GCC prior to 3.0.
22387 aix4 | aix4.[01] | aix4.[01].*)
22388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22393 can_build_shared=no
22397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22398 # soname into executable. Probably we can add versioning support to
22399 # collect2, so additional links can be useful in future.
22400 if test "$aix_use_runtimelinking" = yes; then
22401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22402 # instead of lib<name>.a to let people know that these are not
22403 # typical AIX shared libraries.
22404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22406 # We preserve .a as extension for shared libraries through AIX4.2
22407 # and later when we are not doing run time linking.
22408 library_names_spec='${libname}${release}.a $libname.a'
22409 soname_spec='${libname}${release}${shared_ext}$major'
22411 shlibpath_var=LIBPATH
22416 library_names_spec='$libname.ixlibrary $libname.a'
22417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22418 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'
22422 library_names_spec='${libname}${shared_ext}'
22423 dynamic_linker="$host_os ld.so"
22424 shlibpath_var=LIBRARY_PATH
22430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22431 soname_spec='${libname}${release}${shared_ext}$major'
22432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22433 shlibpath_var=LD_LIBRARY_PATH
22434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22436 # the default ld.so.conf also contains /usr/contrib/lib and
22437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22438 # libtool to hard-code these into programs
22441 cygwin* | mingw* | pw32*)
22442 version_type=windows
22447 case $GCC,$host_os in
22448 yes,cygwin* | yes,mingw* | yes,pw32*)
22449 library_names_spec='$libname.dll.a'
22450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22451 postinstall_cmds='base_file=`basename \${file}`~
22452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22453 dldir=$destdir/`dirname \$dlpath`~
22454 test -d \$dldir || mkdir -p \$dldir~
22455 $install_prog $dir/$dlname \$dldir/$dlname'
22456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22457 dlpath=$dir/\$dldll~
22459 shlibpath_overrides_runpath=yes
22463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22464 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22465 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22468 # MinGW DLLs use traditional 'lib' prefix
22469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22470 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22471 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22472 # It is most probably a Windows format PATH printed by
22473 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22474 # path with ; separators, and with drive letters. We can handle the
22475 # drive letters (cygwin fileutils understands them), so leave them,
22476 # especially as we might pass files found there to a mingw objdump,
22477 # which wouldn't understand a cygwinified path. Ahh.
22478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22484 # pw32 DLLs use 'pw' prefix rather than 'lib'
22485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22491 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22494 dynamic_linker='Win32 ld.exe'
22495 # FIXME: first we should search . and the directory the executable is in
22499 darwin* | rhapsody*)
22500 dynamic_linker="$host_os dyld"
22501 version_type=darwin
22504 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22505 soname_spec='${libname}${release}${major}$shared_ext'
22506 shlibpath_overrides_runpath=yes
22507 shlibpath_var=DYLD_LIBRARY_PATH
22508 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22509 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22510 if test "$GCC" = yes; then
22511 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"`
22513 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22523 soname_spec='${libname}${release}${shared_ext}$major'
22524 shlibpath_var=LD_LIBRARY_PATH
22535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22536 soname_spec='${libname}${release}${shared_ext}$major'
22537 shlibpath_var=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath=no
22539 hardcode_into_libs=yes
22540 dynamic_linker='GNU ld.so'
22544 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22545 version_type=freebsd-$objformat
22546 case $version_type in
22548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22557 shlibpath_var=LD_LIBRARY_PATH
22560 shlibpath_overrides_runpath=yes
22562 freebsd3.01* | freebsdelf3.01*)
22563 shlibpath_overrides_runpath=yes
22564 hardcode_into_libs=yes
22567 shlibpath_overrides_runpath=no
22568 hardcode_into_libs=yes
22577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22578 soname_spec='${libname}${release}${shared_ext}$major'
22579 shlibpath_var=LD_LIBRARY_PATH
22580 hardcode_into_libs=yes
22583 hpux9* | hpux10* | hpux11*)
22584 # Give a soname corresponding to the major version so that dld.sl refuses to
22585 # link against other versions.
22589 case "$host_cpu" in
22592 hardcode_into_libs=yes
22593 dynamic_linker="$host_os dld.so"
22594 shlibpath_var=LD_LIBRARY_PATH
22595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22597 soname_spec='${libname}${release}${shared_ext}$major'
22598 if test "X$HPUX_IA64_MODE" = X32; then
22599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22607 hardcode_into_libs=yes
22608 dynamic_linker="$host_os dld.sl"
22609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22618 dynamic_linker="$host_os dld.sl"
22619 shlibpath_var=SHLIB_PATH
22620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22622 soname_spec='${libname}${release}${shared_ext}$major'
22625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22626 postinstall_cmds='chmod 555 $lib'
22629 irix5* | irix6* | nonstopux*)
22631 nonstopux*) version_type=nonstopux ;;
22633 if test "$lt_cv_prog_gnu_ld" = yes; then
22641 soname_spec='${libname}${release}${shared_ext}$major'
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22644 irix5* | nonstopux*)
22645 libsuff= shlibsuff=
22648 case $LD in # libtool.m4 will add one of these switches to LD
22649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22650 libsuff= shlibsuff= libmagic=32-bit;;
22651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22652 libsuff=32 shlibsuff=N32 libmagic=N32;;
22653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22655 *) libsuff= shlibsuff= libmagic=never-match;;
22659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22660 shlibpath_overrides_runpath=no
22661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22663 hardcode_into_libs=yes
22666 # No shared lib support for Linux oldld, aout, or coff.
22667 linux*oldld* | linux*aout* | linux*coff*)
22671 # This must be Linux ELF.
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22677 soname_spec='${libname}${release}${shared_ext}$major'
22678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22679 shlibpath_var=LD_LIBRARY_PATH
22680 shlibpath_overrides_runpath=no
22681 # This implies no fast_install, which is unacceptable.
22682 # Some rework will be needed to allow for fast_install
22683 # before this can be enabled.
22684 hardcode_into_libs=yes
22686 # Append ld.so.conf contents to the search path
22687 if test -f /etc/ld.so.conf; then
22688 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22692 # We used to test for /lib/ld.so.1 and disable shared libraries on
22693 # powerpc, because MkLinux only supported shared libraries with the
22694 # GNU dynamic linker. Since this was broken with cross compilers,
22695 # most powerpc-linux boxes support dynamic linking these days and
22696 # people can always --disable-shared, the test was removed, and we
22697 # assume the GNU/Linux dynamic linker is in use.
22698 dynamic_linker='GNU/Linux ld.so'
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=no
22709 hardcode_into_libs=yes
22710 dynamic_linker='GNU ld.so'
22717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22720 dynamic_linker='NetBSD (a.out) ld.so'
22722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22723 soname_spec='${libname}${release}${shared_ext}$major'
22724 dynamic_linker='NetBSD ld.elf_so'
22726 shlibpath_var=LD_LIBRARY_PATH
22727 shlibpath_overrides_runpath=yes
22728 hardcode_into_libs=yes
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 shlibpath_overrides_runpath=yes
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22744 shlibpath_var=LD_LIBRARY_PATH
22745 shlibpath_overrides_runpath=yes
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22757 openbsd2.[89] | openbsd2.[89].*)
22758 shlibpath_overrides_runpath=no
22761 shlibpath_overrides_runpath=yes
22765 shlibpath_overrides_runpath=yes
22770 libname_spec='$name'
22773 library_names_spec='$libname${shared_ext} $libname.a'
22774 dynamic_linker='OS/2 ld.exe'
22775 shlibpath_var=LIBPATH
22778 osf3* | osf4* | osf5*)
22782 soname_spec='${libname}${release}${shared_ext}$major'
22783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22784 shlibpath_var=LD_LIBRARY_PATH
22785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22791 soname_spec='${libname}${release}${shared_ext}$major'
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22793 shlibpath_var=LD_LIBRARY_PATH
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=yes
22804 hardcode_into_libs=yes
22805 # ldd complains unless libraries are executable
22806 postinstall_cmds='chmod +x $lib'
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 shlibpath_overrides_runpath=yes
22815 if test "$with_gnu_ld" = yes; then
22821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22824 soname_spec='${libname}${release}${shared_ext}$major'
22825 shlibpath_var=LD_LIBRARY_PATH
22826 case $host_vendor in
22828 shlibpath_overrides_runpath=no
22830 export_dynamic_flag_spec='${wl}-Blargedynsym'
22831 runpath_var=LD_RUN_PATH
22839 shlibpath_overrides_runpath=no
22840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22846 if test -d /usr/nec ;then
22848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22849 soname_spec='$libname${shared_ext}.$major'
22850 shlibpath_var=LD_LIBRARY_PATH
22856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22857 soname_spec='${libname}${release}${shared_ext}$major'
22858 shlibpath_var=LD_LIBRARY_PATH
22865 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22866 echo "${ECHO_T}$dynamic_linker" >&6
22867 test "$dynamic_linker" = no && can_build_shared=no
22869 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22870 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22871 hardcode_action_GCJ=
22872 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22873 test -n "$runpath_var_GCJ" || \
22874 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22876 # We can hardcode non-existant directories.
22877 if test "$hardcode_direct_GCJ" != no &&
22878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22879 # have to relink, otherwise we might link with an installed library
22880 # when we should be linking with a yet-to-be-installed one
22881 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22882 test "$hardcode_minus_L_GCJ" != no; then
22883 # Linking always hardcodes the temporary library directory.
22884 hardcode_action_GCJ=relink
22886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22887 hardcode_action_GCJ=immediate
22890 # We cannot hardcode anything, or else we can only hardcode existing
22892 hardcode_action_GCJ=unsupported
22894 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22895 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22897 if test "$hardcode_action_GCJ" = relink; then
22898 # Fast installation is not supported
22899 enable_fast_install=no
22900 elif test "$shlibpath_overrides_runpath" = yes ||
22901 test "$enable_shared" = no; then
22902 # Fast installation is not necessary
22903 enable_fast_install=needless
22908 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22909 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22910 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22911 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22912 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22913 echo "$as_me:$LINENO: result: yes" >&5
22914 echo "${ECHO_T}yes" >&6
22916 # FIXME - insert some real tests, host_os isn't really good enough
22919 if test -n "$STRIP" ; then
22920 striplib="$STRIP -x"
22921 echo "$as_me:$LINENO: result: yes" >&5
22922 echo "${ECHO_T}yes" >&6
22924 echo "$as_me:$LINENO: result: no" >&5
22925 echo "${ECHO_T}no" >&6
22929 echo "$as_me:$LINENO: result: no" >&5
22930 echo "${ECHO_T}no" >&6
22935 if test "x$enable_dlopen" != xyes; then
22936 enable_dlopen=unknown
22937 enable_dlopen_self=unknown
22938 enable_dlopen_self_static=unknown
22945 lt_cv_dlopen="load_add_on"
22947 lt_cv_dlopen_self=yes
22951 lt_cv_dlopen="LoadLibrary"
22956 lt_cv_dlopen="dlopen"
22961 # if libdl is installed we need to link against it
22962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 ac_check_lib_save_LIBS=$LIBS
22969 cat >conftest.$ac_ext <<_ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22976 /* Override any gcc2 internal prototype to avoid an error. */
22980 /* We use char because int might match the return type of a gcc2
22981 builtin and then its argument prototype would still apply. */
22991 rm -f conftest.$ac_objext conftest$ac_exeext
22992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22993 (eval $ac_link) 2>conftest.er1
22995 grep -v '^ *+' conftest.er1 >conftest.err
22997 cat conftest.err >&5
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); } &&
23000 { ac_try='test -z "$ac_c_werror_flag"
23001 || test ! -s conftest.err'
23002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; } &&
23007 { ac_try='test -s conftest$ac_exeext'
23008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23009 (eval $ac_try) 2>&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); }; }; then
23013 ac_cv_lib_dl_dlopen=yes
23015 echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23018 ac_cv_lib_dl_dlopen=no
23020 rm -f conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
23022 LIBS=$ac_check_lib_save_LIBS
23024 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23026 if test $ac_cv_lib_dl_dlopen = yes; then
23027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23030 lt_cv_dlopen="dyld"
23032 lt_cv_dlopen_self=yes
23039 echo "$as_me:$LINENO: checking for shl_load" >&5
23040 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23041 if test "${ac_cv_func_shl_load+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23052 #define shl_load innocuous_shl_load
23054 /* System header to define __stub macros and hopefully few prototypes,
23055 which can conflict with char shl_load (); below.
23056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23057 <limits.h> exists even on freestanding compilers. */
23060 # include <limits.h>
23062 # include <assert.h>
23067 /* Override any gcc2 internal prototype to avoid an error. */
23072 /* We use char because int might match the return type of a gcc2
23073 builtin and then its argument prototype would still apply. */
23075 /* The GNU C library defines this for functions which it implements
23076 to always fail with ENOSYS. Some functions are actually named
23077 something starting with __ and the normal name is an alias. */
23078 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23081 char (*f) () = shl_load;
23090 return f != shl_load;
23095 rm -f conftest.$ac_objext conftest$ac_exeext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23097 (eval $ac_link) 2>conftest.er1
23099 grep -v '^ *+' conftest.er1 >conftest.err
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } &&
23104 { ac_try='test -z "$ac_c_werror_flag"
23105 || test ! -s conftest.err'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest$ac_exeext'
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23117 ac_cv_func_shl_load=yes
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_cv_func_shl_load=no
23124 rm -f conftest.err conftest.$ac_objext \
23125 conftest$ac_exeext conftest.$ac_ext
23127 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23128 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23129 if test $ac_cv_func_shl_load = yes; then
23130 lt_cv_dlopen="shl_load"
23132 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23133 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23134 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23137 ac_check_lib_save_LIBS=$LIBS
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23146 /* Override any gcc2 internal prototype to avoid an error. */
23150 /* We use char because int might match the return type of a gcc2
23151 builtin and then its argument prototype would still apply. */
23161 rm -f conftest.$ac_objext conftest$ac_exeext
23162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23163 (eval $ac_link) 2>conftest.er1
23165 grep -v '^ *+' conftest.er1 >conftest.err
23167 cat conftest.err >&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } &&
23170 { ac_try='test -z "$ac_c_werror_flag"
23171 || test ! -s conftest.err'
23172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; } &&
23177 { ac_try='test -s conftest$ac_exeext'
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_lib_dld_shl_load=yes
23185 echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23188 ac_cv_lib_dld_shl_load=no
23190 rm -f conftest.err conftest.$ac_objext \
23191 conftest$ac_exeext conftest.$ac_ext
23192 LIBS=$ac_check_lib_save_LIBS
23194 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23195 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23196 if test $ac_cv_lib_dld_shl_load = yes; then
23197 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23199 echo "$as_me:$LINENO: checking for dlopen" >&5
23200 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23201 if test "${ac_cv_func_dlopen+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23212 #define dlopen innocuous_dlopen
23214 /* System header to define __stub macros and hopefully few prototypes,
23215 which can conflict with char dlopen (); below.
23216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23217 <limits.h> exists even on freestanding compilers. */
23220 # include <limits.h>
23222 # include <assert.h>
23227 /* Override any gcc2 internal prototype to avoid an error. */
23232 /* We use char because int might match the return type of a gcc2
23233 builtin and then its argument prototype would still apply. */
23235 /* The GNU C library defines this for functions which it implements
23236 to always fail with ENOSYS. Some functions are actually named
23237 something starting with __ and the normal name is an alias. */
23238 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23241 char (*f) () = dlopen;
23250 return f != dlopen;
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23257 (eval $ac_link) 2>conftest.er1
23259 grep -v '^ *+' conftest.er1 >conftest.err
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
23264 { ac_try='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest$ac_exeext'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_func_dlopen=yes
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_cv_func_dlopen=no
23284 rm -f conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
23287 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23288 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23289 if test $ac_cv_func_dlopen = yes; then
23290 lt_cv_dlopen="dlopen"
23292 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23293 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23295 echo $ECHO_N "(cached) $ECHO_C" >&6
23297 ac_check_lib_save_LIBS=$LIBS
23299 cat >conftest.$ac_ext <<_ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h. */
23306 /* Override any gcc2 internal prototype to avoid an error. */
23310 /* We use char because int might match the return type of a gcc2
23311 builtin and then its argument prototype would still apply. */
23321 rm -f conftest.$ac_objext conftest$ac_exeext
23322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23323 (eval $ac_link) 2>conftest.er1
23325 grep -v '^ *+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } &&
23330 { ac_try='test -z "$ac_c_werror_flag"
23331 || test ! -s conftest.err'
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest$ac_exeext'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 ac_cv_lib_dl_dlopen=yes
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ac_cv_lib_dl_dlopen=no
23350 rm -f conftest.err conftest.$ac_objext \
23351 conftest$ac_exeext conftest.$ac_ext
23352 LIBS=$ac_check_lib_save_LIBS
23354 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23355 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23356 if test $ac_cv_lib_dl_dlopen = yes; then
23357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23359 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23360 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23361 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 ac_check_lib_save_LIBS=$LIBS
23365 LIBS="-lsvld $LIBS"
23366 cat >conftest.$ac_ext <<_ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23373 /* Override any gcc2 internal prototype to avoid an error. */
23377 /* We use char because int might match the return type of a gcc2
23378 builtin and then its argument prototype would still apply. */
23388 rm -f conftest.$ac_objext conftest$ac_exeext
23389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23390 (eval $ac_link) 2>conftest.er1
23392 grep -v '^ *+' conftest.er1 >conftest.err
23394 cat conftest.err >&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } &&
23397 { ac_try='test -z "$ac_c_werror_flag"
23398 || test ! -s conftest.err'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; } &&
23404 { ac_try='test -s conftest$ac_exeext'
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_lib_svld_dlopen=yes
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ac_cv_lib_svld_dlopen=no
23417 rm -f conftest.err conftest.$ac_objext \
23418 conftest$ac_exeext conftest.$ac_ext
23419 LIBS=$ac_check_lib_save_LIBS
23421 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23422 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23423 if test $ac_cv_lib_svld_dlopen = yes; then
23424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23426 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23427 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23428 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23429 echo $ECHO_N "(cached) $ECHO_C" >&6
23431 ac_check_lib_save_LIBS=$LIBS
23433 cat >conftest.$ac_ext <<_ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23440 /* Override any gcc2 internal prototype to avoid an error. */
23444 /* We use char because int might match the return type of a gcc2
23445 builtin and then its argument prototype would still apply. */
23455 rm -f conftest.$ac_objext conftest$ac_exeext
23456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23457 (eval $ac_link) 2>conftest.er1
23459 grep -v '^ *+' conftest.er1 >conftest.err
23461 cat conftest.err >&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
23464 { ac_try='test -z "$ac_c_werror_flag"
23465 || test ! -s conftest.err'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; } &&
23471 { ac_try='test -s conftest$ac_exeext'
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; }; then
23477 ac_cv_lib_dld_dld_link=yes
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_cv_lib_dld_dld_link=no
23484 rm -f conftest.err conftest.$ac_objext \
23485 conftest$ac_exeext conftest.$ac_ext
23486 LIBS=$ac_check_lib_save_LIBS
23488 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23489 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23490 if test $ac_cv_lib_dld_dld_link = yes; then
23491 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23512 if test "x$lt_cv_dlopen" != xno; then
23518 case $lt_cv_dlopen in
23520 save_CPPFLAGS="$CPPFLAGS"
23521 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23523 save_LDFLAGS="$LDFLAGS"
23524 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23527 LIBS="$lt_cv_dlopen_libs $LIBS"
23529 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23530 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23531 if test "${lt_cv_dlopen_self+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 if test "$cross_compiling" = yes; then :
23535 lt_cv_dlopen_self=cross
23537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23538 lt_status=$lt_dlunknown
23539 cat > conftest.$ac_ext <<EOF
23540 #line 23540 "configure"
23541 #include "confdefs.h"
23550 # define LT_DLGLOBAL RTLD_GLOBAL
23553 # define LT_DLGLOBAL DL_GLOBAL
23555 # define LT_DLGLOBAL 0
23559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23560 find out it does not work in some platform. */
23561 #ifndef LT_DLLAZY_OR_NOW
23563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23566 # define LT_DLLAZY_OR_NOW DL_LAZY
23569 # define LT_DLLAZY_OR_NOW RTLD_NOW
23572 # define LT_DLLAZY_OR_NOW DL_NOW
23574 # define LT_DLLAZY_OR_NOW 0
23582 extern "C" void exit (int);
23585 void fnord() { int i=42;}
23588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23589 int status = $lt_dlunknown;
23593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23595 /* dlclose (self); */
23601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23602 (eval $ac_link) 2>&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23606 (./conftest; exit; ) 2>/dev/null
23608 case x$lt_status in
23609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23611 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23614 # compilation failed
23615 lt_cv_dlopen_self=no
23622 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23623 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23625 if test "x$lt_cv_dlopen_self" = xyes; then
23626 LDFLAGS="$LDFLAGS $link_static_flag"
23627 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23628 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23629 if test "${lt_cv_dlopen_self_static+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 if test "$cross_compiling" = yes; then :
23633 lt_cv_dlopen_self_static=cross
23635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23636 lt_status=$lt_dlunknown
23637 cat > conftest.$ac_ext <<EOF
23638 #line 23638 "configure"
23639 #include "confdefs.h"
23648 # define LT_DLGLOBAL RTLD_GLOBAL
23651 # define LT_DLGLOBAL DL_GLOBAL
23653 # define LT_DLGLOBAL 0
23657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23658 find out it does not work in some platform. */
23659 #ifndef LT_DLLAZY_OR_NOW
23661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23664 # define LT_DLLAZY_OR_NOW DL_LAZY
23667 # define LT_DLLAZY_OR_NOW RTLD_NOW
23670 # define LT_DLLAZY_OR_NOW DL_NOW
23672 # define LT_DLLAZY_OR_NOW 0
23680 extern "C" void exit (int);
23683 void fnord() { int i=42;}
23686 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23687 int status = $lt_dlunknown;
23691 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23692 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23693 /* dlclose (self); */
23699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23704 (./conftest; exit; ) 2>/dev/null
23706 case x$lt_status in
23707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23709 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23712 # compilation failed
23713 lt_cv_dlopen_self_static=no
23720 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23721 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23724 CPPFLAGS="$save_CPPFLAGS"
23725 LDFLAGS="$save_LDFLAGS"
23730 case $lt_cv_dlopen_self in
23731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23732 *) enable_dlopen_self=unknown ;;
23735 case $lt_cv_dlopen_self_static in
23736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23737 *) enable_dlopen_self_static=unknown ;;
23742 # The else clause should only fire when bootstrapping the
23743 # libtool distribution, otherwise you forgot to ship ltmain.sh
23744 # with your package, and you will get complaints that there are
23745 # no rules to generate ltmain.sh.
23746 if test -f "$ltmain"; then
23747 # See if we are running on zsh, and set the options which allow our commands through
23748 # without removal of \ escapes.
23749 if test -n "${ZSH_VERSION+set}" ; then
23750 setopt NO_GLOB_SUBST
23752 # Now quote all the things that may contain metacharacters while being
23753 # careful not to overquote the AC_SUBSTed values. We take copies of the
23754 # variables and quote the copies for generation of the libtool script.
23755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23759 deplibs_check_method reload_flag reload_cmds need_locks \
23760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23761 lt_cv_sys_global_symbol_to_c_name_address \
23762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23763 old_postinstall_cmds old_postuninstall_cmds \
23767 lt_prog_compiler_wl_GCJ \
23768 lt_prog_compiler_pic_GCJ \
23769 lt_prog_compiler_static_GCJ \
23770 lt_prog_compiler_no_builtin_flag_GCJ \
23771 export_dynamic_flag_spec_GCJ \
23772 thread_safe_flag_spec_GCJ \
23773 whole_archive_flag_spec_GCJ \
23774 enable_shared_with_static_runtimes_GCJ \
23775 old_archive_cmds_GCJ \
23776 old_archive_from_new_cmds_GCJ \
23777 predep_objects_GCJ \
23778 postdep_objects_GCJ \
23781 compiler_lib_search_path_GCJ \
23783 archive_expsym_cmds_GCJ \
23784 postinstall_cmds_GCJ \
23785 postuninstall_cmds_GCJ \
23786 old_archive_from_expsyms_cmds_GCJ \
23787 allow_undefined_flag_GCJ \
23788 no_undefined_flag_GCJ \
23789 export_symbols_cmds_GCJ \
23790 hardcode_libdir_flag_spec_GCJ \
23791 hardcode_libdir_flag_spec_ld_GCJ \
23792 hardcode_libdir_separator_GCJ \
23793 hardcode_automatic_GCJ \
23795 module_expsym_cmds_GCJ \
23796 lt_cv_prog_compiler_c_o_GCJ \
23797 exclude_expsyms_GCJ \
23798 include_expsyms_GCJ; do
23801 old_archive_cmds_GCJ | \
23802 old_archive_from_new_cmds_GCJ | \
23803 archive_cmds_GCJ | \
23804 archive_expsym_cmds_GCJ | \
23805 module_cmds_GCJ | \
23806 module_expsym_cmds_GCJ | \
23807 old_archive_from_expsyms_cmds_GCJ | \
23808 export_symbols_cmds_GCJ | \
23809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23810 postinstall_cmds | postuninstall_cmds | \
23811 old_postinstall_cmds | old_postuninstall_cmds | \
23812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23813 # Double-quote double-evaled strings.
23814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23823 *'\$0 --fallback-echo"')
23824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23830 cat <<__EOF__ >> "$cfgfile"
23831 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23835 # Shell to use when invoking shell scripts.
23838 # Whether or not to build shared libraries.
23839 build_libtool_libs=$enable_shared
23841 # Whether or not to build static libraries.
23842 build_old_libs=$enable_static
23844 # Whether or not to add -lc for building shared libraries.
23845 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23847 # Whether or not to disallow shared libs when runtime libs are static
23848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23850 # Whether or not to optimize for fast installation.
23851 fast_install=$enable_fast_install
23854 host_alias=$host_alias
23857 # An echo program that does not interpret backslashes.
23862 AR_FLAGS=$lt_AR_FLAGS
23867 # A language-specific compiler.
23868 CC=$lt_compiler_GCJ
23870 # Is the compiler the GNU C compiler?
23876 # The linker used to build libraries.
23879 # Whether we need hard or soft links.
23882 # A BSD-compatible nm program.
23885 # A symbol stripping program
23888 # Used to examine libraries when file_magic_cmd begins "file"
23889 MAGIC_CMD=$MAGIC_CMD
23891 # Used on cygwin: DLL creation program.
23894 # Used on cygwin: object dumper.
23897 # Used on cygwin: assembler.
23900 # The name of the directory that contains temporary libtool files.
23903 # How to create reloadable object files.
23904 reload_flag=$lt_reload_flag
23905 reload_cmds=$lt_reload_cmds
23907 # How to pass a linker flag through the compiler.
23908 wl=$lt_lt_prog_compiler_wl_GCJ
23910 # Object file suffix (normally "o").
23911 objext="$ac_objext"
23913 # Old archive suffix (normally "a").
23916 # Shared library suffix (normally ".so").
23917 shrext_cmds='$shrext_cmds'
23919 # Executable file suffix (normally "").
23922 # Additional compiler flags for building library objects.
23923 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23926 # What is the maximum length of a command?
23927 max_cmd_len=$lt_cv_sys_max_cmd_len
23929 # Does compiler simultaneously support -c and -o options?
23930 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23932 # Must we lock files when doing compilation ?
23933 need_locks=$lt_need_locks
23935 # Do we need the lib prefix for modules?
23936 need_lib_prefix=$need_lib_prefix
23938 # Do we need a version for libraries?
23939 need_version=$need_version
23941 # Whether dlopen is supported.
23942 dlopen_support=$enable_dlopen
23944 # Whether dlopen of programs is supported.
23945 dlopen_self=$enable_dlopen_self
23947 # Whether dlopen of statically linked programs is supported.
23948 dlopen_self_static=$enable_dlopen_self_static
23950 # Compiler flag to prevent dynamic linking.
23951 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23953 # Compiler flag to turn off builtin functions.
23954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23956 # Compiler flag to allow reflexive dlopens.
23957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23959 # Compiler flag to generate shared objects directly from archives.
23960 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23962 # Compiler flag to generate thread-safe objects.
23963 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23965 # Library versioning type.
23966 version_type=$version_type
23968 # Format of library name prefix.
23969 libname_spec=$lt_libname_spec
23971 # List of archive names. First name is the real one, the rest are links.
23972 # The last name is the one that the linker finds with -lNAME.
23973 library_names_spec=$lt_library_names_spec
23975 # The coded name of the library, if different from the real name.
23976 soname_spec=$lt_soname_spec
23978 # Commands used to build and install an old-style archive.
23980 old_archive_cmds=$lt_old_archive_cmds_GCJ
23981 old_postinstall_cmds=$lt_old_postinstall_cmds
23982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23984 # Create an old-style archive from a shared archive.
23985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23987 # Create a temporary old-style archive to link instead of a shared archive.
23988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23990 # Commands used to build and install a shared archive.
23991 archive_cmds=$lt_archive_cmds_GCJ
23992 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23993 postinstall_cmds=$lt_postinstall_cmds
23994 postuninstall_cmds=$lt_postuninstall_cmds
23996 # Commands used to build a loadable module (assumed same as above if empty)
23997 module_cmds=$lt_module_cmds_GCJ
23998 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24000 # Commands to strip libraries.
24001 old_striplib=$lt_old_striplib
24002 striplib=$lt_striplib
24004 # Dependencies to place before the objects being linked to create a
24006 predep_objects=$lt_predep_objects_GCJ
24008 # Dependencies to place after the objects being linked to create a
24010 postdep_objects=$lt_postdep_objects_GCJ
24012 # Dependencies to place before the objects being linked to create a
24014 predeps=$lt_predeps_GCJ
24016 # Dependencies to place after the objects being linked to create a
24018 postdeps=$lt_postdeps_GCJ
24020 # The library search path used internally by the compiler when linking
24021 # a shared library.
24022 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24024 # Method to check whether dependent libraries are shared objects.
24025 deplibs_check_method=$lt_deplibs_check_method
24027 # Command to use when deplibs_check_method == file_magic.
24028 file_magic_cmd=$lt_file_magic_cmd
24030 # Flag that allows shared libraries with undefined symbols to be built.
24031 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24033 # Flag that forces no undefined symbols.
24034 no_undefined_flag=$lt_no_undefined_flag_GCJ
24036 # Commands used to finish a libtool library installation in a directory.
24037 finish_cmds=$lt_finish_cmds
24039 # Same as above, but a single script fragment to be evaled but not shown.
24040 finish_eval=$lt_finish_eval
24042 # Take the output of nm and produce a listing of raw symbols and C names.
24043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24045 # Transform the output of nm in a proper C declaration
24046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24048 # Transform the output of nm in a C name address pair
24049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24051 # This is the shared library runtime path variable.
24052 runpath_var=$runpath_var
24054 # This is the shared library path variable.
24055 shlibpath_var=$shlibpath_var
24057 # Is shlibpath searched before the hard-coded library search path?
24058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24060 # How to hardcode a shared library path into an executable.
24061 hardcode_action=$hardcode_action_GCJ
24063 # Whether we should hardcode library paths into libraries.
24064 hardcode_into_libs=$hardcode_into_libs
24066 # Flag to hardcode \$libdir into a binary during linking.
24067 # This must work even if \$libdir does not exist.
24068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24070 # If ld is used when linking, flag to hardcode \$libdir into
24071 # a binary during linking. This must work even if \$libdir does
24073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24075 # Whether we need a single -rpath flag with a separated argument.
24076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24079 # resulting binary.
24080 hardcode_direct=$hardcode_direct_GCJ
24082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24083 # resulting binary.
24084 hardcode_minus_L=$hardcode_minus_L_GCJ
24086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24087 # the resulting binary.
24088 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24090 # Set to yes if building a shared library automatically hardcodes DIR into the library
24091 # and all subsequent libraries and executables linked against it.
24092 hardcode_automatic=$hardcode_automatic_GCJ
24094 # Variables whose values should be saved in libtool wrapper scripts and
24095 # restored at relink time.
24096 variables_saved_for_relink="$variables_saved_for_relink"
24098 # Whether libtool must link a program against all its dependency libraries.
24099 link_all_deplibs=$link_all_deplibs_GCJ
24101 # Compile-time system search path for libraries
24102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24104 # Run-time system search path for libraries
24105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24107 # Fix the shell variable \$srcfile for the compiler.
24108 fix_srcfile_path="$fix_srcfile_path_GCJ"
24110 # Set to yes if exported symbols are required.
24111 always_export_symbols=$always_export_symbols_GCJ
24113 # The commands to list exported symbols.
24114 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24116 # The commands to extract the exported symbol list from a shared archive.
24117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24119 # Symbols that should not be listed in the preloaded symbols.
24120 exclude_expsyms=$lt_exclude_expsyms_GCJ
24122 # Symbols that must always be exported.
24123 include_expsyms=$lt_include_expsyms_GCJ
24125 # ### END LIBTOOL TAG CONFIG: $tagname
24131 # If there is no Makefile yet, we rely on a make rule to execute
24132 # `config.status --recheck' to rerun these tests and create the
24133 # libtool script then.
24134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24135 if test -f "$ltmain_in"; then
24136 test -f Makefile && make "$ltmain"
24142 ac_cpp='$CPP $CPPFLAGS'
24143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24156 ac_cpp='$CPP $CPPFLAGS'
24157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24162 # Source file extension for RC test sources.
24165 # Object file extension for compiled RC test sources.
24169 # Code to be used in simple compile tests
24170 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24172 # Code to be used in simple link tests
24173 lt_simple_link_test_code="$lt_simple_compile_test_code"
24175 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24177 # If no C compiler was specified, use CC.
24180 # Allow CC to be a program name with arguments.
24184 # Allow CC to be a program name with arguments.
24189 lt_cv_prog_compiler_c_o_RC=yes
24191 # The else clause should only fire when bootstrapping the
24192 # libtool distribution, otherwise you forgot to ship ltmain.sh
24193 # with your package, and you will get complaints that there are
24194 # no rules to generate ltmain.sh.
24195 if test -f "$ltmain"; then
24196 # See if we are running on zsh, and set the options which allow our commands through
24197 # without removal of \ escapes.
24198 if test -n "${ZSH_VERSION+set}" ; then
24199 setopt NO_GLOB_SUBST
24201 # Now quote all the things that may contain metacharacters while being
24202 # careful not to overquote the AC_SUBSTed values. We take copies of the
24203 # variables and quote the copies for generation of the libtool script.
24204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24208 deplibs_check_method reload_flag reload_cmds need_locks \
24209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24210 lt_cv_sys_global_symbol_to_c_name_address \
24211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24212 old_postinstall_cmds old_postuninstall_cmds \
24216 lt_prog_compiler_wl_RC \
24217 lt_prog_compiler_pic_RC \
24218 lt_prog_compiler_static_RC \
24219 lt_prog_compiler_no_builtin_flag_RC \
24220 export_dynamic_flag_spec_RC \
24221 thread_safe_flag_spec_RC \
24222 whole_archive_flag_spec_RC \
24223 enable_shared_with_static_runtimes_RC \
24224 old_archive_cmds_RC \
24225 old_archive_from_new_cmds_RC \
24226 predep_objects_RC \
24227 postdep_objects_RC \
24230 compiler_lib_search_path_RC \
24232 archive_expsym_cmds_RC \
24233 postinstall_cmds_RC \
24234 postuninstall_cmds_RC \
24235 old_archive_from_expsyms_cmds_RC \
24236 allow_undefined_flag_RC \
24237 no_undefined_flag_RC \
24238 export_symbols_cmds_RC \
24239 hardcode_libdir_flag_spec_RC \
24240 hardcode_libdir_flag_spec_ld_RC \
24241 hardcode_libdir_separator_RC \
24242 hardcode_automatic_RC \
24244 module_expsym_cmds_RC \
24245 lt_cv_prog_compiler_c_o_RC \
24246 exclude_expsyms_RC \
24247 include_expsyms_RC; do
24250 old_archive_cmds_RC | \
24251 old_archive_from_new_cmds_RC | \
24252 archive_cmds_RC | \
24253 archive_expsym_cmds_RC | \
24255 module_expsym_cmds_RC | \
24256 old_archive_from_expsyms_cmds_RC | \
24257 export_symbols_cmds_RC | \
24258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24259 postinstall_cmds | postuninstall_cmds | \
24260 old_postinstall_cmds | old_postuninstall_cmds | \
24261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24262 # Double-quote double-evaled strings.
24263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24272 *'\$0 --fallback-echo"')
24273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24279 cat <<__EOF__ >> "$cfgfile"
24280 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24284 # Shell to use when invoking shell scripts.
24287 # Whether or not to build shared libraries.
24288 build_libtool_libs=$enable_shared
24290 # Whether or not to build static libraries.
24291 build_old_libs=$enable_static
24293 # Whether or not to add -lc for building shared libraries.
24294 build_libtool_need_lc=$archive_cmds_need_lc_RC
24296 # Whether or not to disallow shared libs when runtime libs are static
24297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24299 # Whether or not to optimize for fast installation.
24300 fast_install=$enable_fast_install
24303 host_alias=$host_alias
24306 # An echo program that does not interpret backslashes.
24311 AR_FLAGS=$lt_AR_FLAGS
24316 # A language-specific compiler.
24319 # Is the compiler the GNU C compiler?
24325 # The linker used to build libraries.
24328 # Whether we need hard or soft links.
24331 # A BSD-compatible nm program.
24334 # A symbol stripping program
24337 # Used to examine libraries when file_magic_cmd begins "file"
24338 MAGIC_CMD=$MAGIC_CMD
24340 # Used on cygwin: DLL creation program.
24343 # Used on cygwin: object dumper.
24346 # Used on cygwin: assembler.
24349 # The name of the directory that contains temporary libtool files.
24352 # How to create reloadable object files.
24353 reload_flag=$lt_reload_flag
24354 reload_cmds=$lt_reload_cmds
24356 # How to pass a linker flag through the compiler.
24357 wl=$lt_lt_prog_compiler_wl_RC
24359 # Object file suffix (normally "o").
24360 objext="$ac_objext"
24362 # Old archive suffix (normally "a").
24365 # Shared library suffix (normally ".so").
24366 shrext_cmds='$shrext_cmds'
24368 # Executable file suffix (normally "").
24371 # Additional compiler flags for building library objects.
24372 pic_flag=$lt_lt_prog_compiler_pic_RC
24375 # What is the maximum length of a command?
24376 max_cmd_len=$lt_cv_sys_max_cmd_len
24378 # Does compiler simultaneously support -c and -o options?
24379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24381 # Must we lock files when doing compilation ?
24382 need_locks=$lt_need_locks
24384 # Do we need the lib prefix for modules?
24385 need_lib_prefix=$need_lib_prefix
24387 # Do we need a version for libraries?
24388 need_version=$need_version
24390 # Whether dlopen is supported.
24391 dlopen_support=$enable_dlopen
24393 # Whether dlopen of programs is supported.
24394 dlopen_self=$enable_dlopen_self
24396 # Whether dlopen of statically linked programs is supported.
24397 dlopen_self_static=$enable_dlopen_self_static
24399 # Compiler flag to prevent dynamic linking.
24400 link_static_flag=$lt_lt_prog_compiler_static_RC
24402 # Compiler flag to turn off builtin functions.
24403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24405 # Compiler flag to allow reflexive dlopens.
24406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24408 # Compiler flag to generate shared objects directly from archives.
24409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24411 # Compiler flag to generate thread-safe objects.
24412 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24414 # Library versioning type.
24415 version_type=$version_type
24417 # Format of library name prefix.
24418 libname_spec=$lt_libname_spec
24420 # List of archive names. First name is the real one, the rest are links.
24421 # The last name is the one that the linker finds with -lNAME.
24422 library_names_spec=$lt_library_names_spec
24424 # The coded name of the library, if different from the real name.
24425 soname_spec=$lt_soname_spec
24427 # Commands used to build and install an old-style archive.
24429 old_archive_cmds=$lt_old_archive_cmds_RC
24430 old_postinstall_cmds=$lt_old_postinstall_cmds
24431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24433 # Create an old-style archive from a shared archive.
24434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24436 # Create a temporary old-style archive to link instead of a shared archive.
24437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24439 # Commands used to build and install a shared archive.
24440 archive_cmds=$lt_archive_cmds_RC
24441 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24442 postinstall_cmds=$lt_postinstall_cmds
24443 postuninstall_cmds=$lt_postuninstall_cmds
24445 # Commands used to build a loadable module (assumed same as above if empty)
24446 module_cmds=$lt_module_cmds_RC
24447 module_expsym_cmds=$lt_module_expsym_cmds_RC
24449 # Commands to strip libraries.
24450 old_striplib=$lt_old_striplib
24451 striplib=$lt_striplib
24453 # Dependencies to place before the objects being linked to create a
24455 predep_objects=$lt_predep_objects_RC
24457 # Dependencies to place after the objects being linked to create a
24459 postdep_objects=$lt_postdep_objects_RC
24461 # Dependencies to place before the objects being linked to create a
24463 predeps=$lt_predeps_RC
24465 # Dependencies to place after the objects being linked to create a
24467 postdeps=$lt_postdeps_RC
24469 # The library search path used internally by the compiler when linking
24470 # a shared library.
24471 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24473 # Method to check whether dependent libraries are shared objects.
24474 deplibs_check_method=$lt_deplibs_check_method
24476 # Command to use when deplibs_check_method == file_magic.
24477 file_magic_cmd=$lt_file_magic_cmd
24479 # Flag that allows shared libraries with undefined symbols to be built.
24480 allow_undefined_flag=$lt_allow_undefined_flag_RC
24482 # Flag that forces no undefined symbols.
24483 no_undefined_flag=$lt_no_undefined_flag_RC
24485 # Commands used to finish a libtool library installation in a directory.
24486 finish_cmds=$lt_finish_cmds
24488 # Same as above, but a single script fragment to be evaled but not shown.
24489 finish_eval=$lt_finish_eval
24491 # Take the output of nm and produce a listing of raw symbols and C names.
24492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24494 # Transform the output of nm in a proper C declaration
24495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24497 # Transform the output of nm in a C name address pair
24498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24500 # This is the shared library runtime path variable.
24501 runpath_var=$runpath_var
24503 # This is the shared library path variable.
24504 shlibpath_var=$shlibpath_var
24506 # Is shlibpath searched before the hard-coded library search path?
24507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24509 # How to hardcode a shared library path into an executable.
24510 hardcode_action=$hardcode_action_RC
24512 # Whether we should hardcode library paths into libraries.
24513 hardcode_into_libs=$hardcode_into_libs
24515 # Flag to hardcode \$libdir into a binary during linking.
24516 # This must work even if \$libdir does not exist.
24517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24519 # If ld is used when linking, flag to hardcode \$libdir into
24520 # a binary during linking. This must work even if \$libdir does
24522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24524 # Whether we need a single -rpath flag with a separated argument.
24525 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24528 # resulting binary.
24529 hardcode_direct=$hardcode_direct_RC
24531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24532 # resulting binary.
24533 hardcode_minus_L=$hardcode_minus_L_RC
24535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24536 # the resulting binary.
24537 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24539 # Set to yes if building a shared library automatically hardcodes DIR into the library
24540 # and all subsequent libraries and executables linked against it.
24541 hardcode_automatic=$hardcode_automatic_RC
24543 # Variables whose values should be saved in libtool wrapper scripts and
24544 # restored at relink time.
24545 variables_saved_for_relink="$variables_saved_for_relink"
24547 # Whether libtool must link a program against all its dependency libraries.
24548 link_all_deplibs=$link_all_deplibs_RC
24550 # Compile-time system search path for libraries
24551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24553 # Run-time system search path for libraries
24554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24556 # Fix the shell variable \$srcfile for the compiler.
24557 fix_srcfile_path="$fix_srcfile_path_RC"
24559 # Set to yes if exported symbols are required.
24560 always_export_symbols=$always_export_symbols_RC
24562 # The commands to list exported symbols.
24563 export_symbols_cmds=$lt_export_symbols_cmds_RC
24565 # The commands to extract the exported symbol list from a shared archive.
24566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24568 # Symbols that should not be listed in the preloaded symbols.
24569 exclude_expsyms=$lt_exclude_expsyms_RC
24571 # Symbols that must always be exported.
24572 include_expsyms=$lt_include_expsyms_RC
24574 # ### END LIBTOOL TAG CONFIG: $tagname
24580 # If there is no Makefile yet, we rely on a make rule to execute
24581 # `config.status --recheck' to rerun these tests and create the
24582 # libtool script then.
24583 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24584 if test -f "$ltmain_in"; then
24585 test -f Makefile && make "$ltmain"
24591 ac_cpp='$CPP $CPPFLAGS'
24592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24601 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24602 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24603 { (exit 1); exit 1; }; }
24607 # Append the new tag name to the list of available tags.
24608 if test -n "$tagname" ; then
24609 available_tags="$available_tags $tagname"
24615 # Now substitute the updated list of available tags.
24616 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24617 mv "${ofile}T" "$ofile"
24621 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24622 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24623 { (exit 1); exit 1; }; }
24629 # This can be used to rebuild libtool when needed
24630 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24632 # Always use our own libtool.
24633 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24635 # Prevent multiple expansion
24657 etags_version=`$ETAGS --version 2>&1`
24658 case "$etags_version" in
24659 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24660 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24661 *) ETAGSFLAGS="" ;;
24663 ETAGSFLAGS=$ETAGSFLAGS
24666 echo "$as_me:$LINENO: checking tool compatibility" >&5
24667 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24680 if test "$GCC" != "yes" && test "$ICC" != "yes"
24682 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24683 echo "$as_me: error: gcc|icc required but not found" >&2;}
24684 { (exit 1); exit 1; }; }
24687 if test "$GXX" != "yes" && test "$IXX" != "yes"
24689 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24690 echo "$as_me: error: g++|icc required but not found" >&2;}
24691 { (exit 1); exit 1; }; }
24694 if test "$GCC" = "yes"
24696 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24697 if test "$gccmajor" -lt "3"
24699 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24700 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24701 { (exit 1); exit 1; }; }
24705 if test -z "$llvm_cv_gnu_make_command"
24707 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24708 echo "$as_me: error: GNU Make required but not found" >&2;}
24709 { (exit 1); exit 1; }; }
24712 echo "$as_me:$LINENO: result: ok" >&5
24713 echo "${ECHO_T}ok" >&6
24717 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24718 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24719 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 ac_check_lib_save_LIBS=$LIBS
24724 cat >conftest.$ac_ext <<_ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24731 /* Override any gcc2 internal prototype to avoid an error. */
24735 /* We use char because int might match the return type of a gcc2
24736 builtin and then its argument prototype would still apply. */
24746 rm -f conftest.$ac_objext conftest$ac_exeext
24747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24748 (eval $ac_link) 2>conftest.er1
24750 grep -v '^ *+' conftest.er1 >conftest.err
24752 cat conftest.err >&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } &&
24755 { ac_try='test -z "$ac_c_werror_flag"
24756 || test ! -s conftest.err'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; } &&
24762 { ac_try='test -s conftest$ac_exeext'
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
24768 ac_cv_lib_elf_elf_begin=yes
24770 echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24773 ac_cv_lib_elf_elf_begin=no
24775 rm -f conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
24777 LIBS=$ac_check_lib_save_LIBS
24779 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24780 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24781 if test $ac_cv_lib_elf_elf_begin = yes; then
24782 cat >>confdefs.h <<_ACEOF
24783 #define HAVE_LIBELF 1
24791 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24792 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24793 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24794 echo $ECHO_N "(cached) $ECHO_C" >&6
24796 ac_func_search_save_LIBS=$LIBS
24797 ac_cv_search_lt_dlopen=no
24798 cat >conftest.$ac_ext <<_ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24805 /* Override any gcc2 internal prototype to avoid an error. */
24809 /* We use char because int might match the return type of a gcc2
24810 builtin and then its argument prototype would still apply. */
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24822 (eval $ac_link) 2>conftest.er1
24824 grep -v '^ *+' conftest.er1 >conftest.err
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } &&
24829 { ac_try='test -z "$ac_c_werror_flag"
24830 || test ! -s conftest.err'
24831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832 (eval $ac_try) 2>&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); }; } &&
24836 { ac_try='test -s conftest$ac_exeext'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; }; then
24842 ac_cv_search_lt_dlopen="none required"
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24848 rm -f conftest.err conftest.$ac_objext \
24849 conftest$ac_exeext conftest.$ac_ext
24850 if test "$ac_cv_search_lt_dlopen" = no; then
24851 for ac_lib in ltdl; do
24852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24853 cat >conftest.$ac_ext <<_ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h. */
24860 /* Override any gcc2 internal prototype to avoid an error. */
24864 /* We use char because int might match the return type of a gcc2
24865 builtin and then its argument prototype would still apply. */
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_cv_search_lt_dlopen="-l$ac_lib"
24900 echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24904 rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
24908 LIBS=$ac_func_search_save_LIBS
24910 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24911 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24912 if test "$ac_cv_search_lt_dlopen" != no; then
24913 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24915 cat >>confdefs.h <<\_ACEOF
24916 #define HAVE_LT_DLOPEN 1
24920 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24921 not be available" >&5
24922 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24923 not be available" >&2;}
24927 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24928 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24929 if test "${ac_cv_search_dlopen+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 ac_func_search_save_LIBS=$LIBS
24933 ac_cv_search_dlopen=no
24934 cat >conftest.$ac_ext <<_ACEOF
24937 cat confdefs.h >>conftest.$ac_ext
24938 cat >>conftest.$ac_ext <<_ACEOF
24939 /* end confdefs.h. */
24941 /* Override any gcc2 internal prototype to avoid an error. */
24945 /* We use char because int might match the return type of a gcc2
24946 builtin and then its argument prototype would still apply. */
24956 rm -f conftest.$ac_objext conftest$ac_exeext
24957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24958 (eval $ac_link) 2>conftest.er1
24960 grep -v '^ *+' conftest.er1 >conftest.err
24962 cat conftest.err >&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } &&
24965 { ac_try='test -z "$ac_c_werror_flag"
24966 || test ! -s conftest.err'
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; } &&
24972 { ac_try='test -s conftest$ac_exeext'
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_cv_search_dlopen="none required"
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24984 rm -f conftest.err conftest.$ac_objext \
24985 conftest$ac_exeext conftest.$ac_ext
24986 if test "$ac_cv_search_dlopen" = no; then
24987 for ac_lib in dl; do
24988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24989 cat >conftest.$ac_ext <<_ACEOF
24992 cat confdefs.h >>conftest.$ac_ext
24993 cat >>conftest.$ac_ext <<_ACEOF
24994 /* end confdefs.h. */
24996 /* Override any gcc2 internal prototype to avoid an error. */
25000 /* We use char because int might match the return type of a gcc2
25001 builtin and then its argument prototype would still apply. */
25011 rm -f conftest.$ac_objext conftest$ac_exeext
25012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25013 (eval $ac_link) 2>conftest.er1
25015 grep -v '^ *+' conftest.er1 >conftest.err
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } &&
25020 { ac_try='test -z "$ac_c_werror_flag"
25021 || test ! -s conftest.err'
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
25028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; }; then
25033 ac_cv_search_dlopen="-l$ac_lib"
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25040 rm -f conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext conftest.$ac_ext
25044 LIBS=$ac_func_search_save_LIBS
25046 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25047 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25048 if test "$ac_cv_search_dlopen" != no; then
25049 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25051 cat >>confdefs.h <<\_ACEOF
25052 #define HAVE_DLOPEN 1
25056 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25057 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25061 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25062 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25063 if test "${ac_cv_search_mallinfo+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25066 ac_func_search_save_LIBS=$LIBS
25067 ac_cv_search_mallinfo=no
25068 cat >conftest.$ac_ext <<_ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25075 /* Override any gcc2 internal prototype to avoid an error. */
25079 /* We use char because int might match the return type of a gcc2
25080 builtin and then its argument prototype would still apply. */
25090 rm -f conftest.$ac_objext conftest$ac_exeext
25091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25092 (eval $ac_link) 2>conftest.er1
25094 grep -v '^ *+' conftest.er1 >conftest.err
25096 cat conftest.err >&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } &&
25099 { ac_try='test -z "$ac_c_werror_flag"
25100 || test ! -s conftest.err'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; } &&
25106 { ac_try='test -s conftest$ac_exeext'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 ac_cv_search_mallinfo="none required"
25114 echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25118 rm -f conftest.err conftest.$ac_objext \
25119 conftest$ac_exeext conftest.$ac_ext
25120 if test "$ac_cv_search_mallinfo" = no; then
25121 for ac_lib in malloc; do
25122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25123 cat >conftest.$ac_ext <<_ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25130 /* Override any gcc2 internal prototype to avoid an error. */
25134 /* We use char because int might match the return type of a gcc2
25135 builtin and then its argument prototype would still apply. */
25145 rm -f conftest.$ac_objext conftest$ac_exeext
25146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25147 (eval $ac_link) 2>conftest.er1
25149 grep -v '^ *+' conftest.er1 >conftest.err
25151 cat conftest.err >&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } &&
25154 { ac_try='test -z "$ac_c_werror_flag"
25155 || test ! -s conftest.err'
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; } &&
25161 { ac_try='test -s conftest$ac_exeext'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; }; then
25167 ac_cv_search_mallinfo="-l$ac_lib"
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25174 rm -f conftest.err conftest.$ac_objext \
25175 conftest$ac_exeext conftest.$ac_ext
25178 LIBS=$ac_func_search_save_LIBS
25180 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25181 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25182 if test "$ac_cv_search_mallinfo" != no; then
25183 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25185 cat >>confdefs.h <<\_ACEOF
25186 #define HAVE_MALLINFO 1
25192 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25193 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25194 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25195 echo $ECHO_N "(cached) $ECHO_C" >&6
25197 ac_func_search_save_LIBS=$LIBS
25198 ac_cv_search_pthread_mutex_lock=no
25199 cat >conftest.$ac_ext <<_ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25206 /* Override any gcc2 internal prototype to avoid an error. */
25210 /* We use char because int might match the return type of a gcc2
25211 builtin and then its argument prototype would still apply. */
25212 char pthread_mutex_lock ();
25216 pthread_mutex_lock ();
25221 rm -f conftest.$ac_objext conftest$ac_exeext
25222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25223 (eval $ac_link) 2>conftest.er1
25225 grep -v '^ *+' conftest.er1 >conftest.err
25227 cat conftest.err >&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } &&
25230 { ac_try='test -z "$ac_c_werror_flag"
25231 || test ! -s conftest.err'
25232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233 (eval $ac_try) 2>&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); }; } &&
25237 { ac_try='test -s conftest$ac_exeext'
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; }; then
25243 ac_cv_search_pthread_mutex_lock="none required"
25245 echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25249 rm -f conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25251 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25252 for ac_lib in pthread; do
25253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25254 cat >conftest.$ac_ext <<_ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h. */
25261 /* Override any gcc2 internal prototype to avoid an error. */
25265 /* We use char because int might match the return type of a gcc2
25266 builtin and then its argument prototype would still apply. */
25267 char pthread_mutex_lock ();
25271 pthread_mutex_lock ();
25276 rm -f conftest.$ac_objext conftest$ac_exeext
25277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25278 (eval $ac_link) 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
25285 { ac_try='test -z "$ac_c_werror_flag"
25286 || test ! -s conftest.err'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; } &&
25292 { ac_try='test -s conftest$ac_exeext'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
25298 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25301 echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25305 rm -f conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
25309 LIBS=$ac_func_search_save_LIBS
25311 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25312 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25313 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25314 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_PTHREAD_MUTEX_LOCK 1
25324 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25325 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25326 if test "${ac_cv_header_stdc+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 cat >conftest.$ac_ext <<_ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 #include <stdlib.h>
25336 #include <stdarg.h>
25337 #include <string.h>
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350 (eval $ac_compile) 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
25357 { ac_try='test -z "$ac_c_werror_flag"
25358 || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_cv_header_stdc=yes
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_cv_header_stdc=no
25377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25379 if test $ac_cv_header_stdc = yes; then
25380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 #include <string.h>
25390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25391 $EGREP "memchr" >/dev/null 2>&1; then
25394 ac_cv_header_stdc=no
25400 if test $ac_cv_header_stdc = yes; then
25401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 #include <stdlib.h>
25411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25412 $EGREP "free" >/dev/null 2>&1; then
25415 ac_cv_header_stdc=no
25421 if test $ac_cv_header_stdc = yes; then
25422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25423 if test "$cross_compiling" = yes; then
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25433 #if ((' ' & 0x0FF) == 0x020)
25434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25437 # define ISLOWER(c) \
25438 (('a' <= (c) && (c) <= 'i') \
25439 || ('j' <= (c) && (c) <= 'r') \
25440 || ('s' <= (c) && (c) <= 'z'))
25441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25449 for (i = 0; i < 256; i++)
25450 if (XOR (islower (i), ISLOWER (i))
25451 || toupper (i) != TOUPPER (i))
25456 rm -f conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25469 echo "$as_me: program exited with status $ac_status" >&5
25470 echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25473 ( exit $ac_status )
25474 ac_cv_header_stdc=no
25476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25482 if test $ac_cv_header_stdc = yes; then
25484 cat >>confdefs.h <<\_ACEOF
25485 #define STDC_HEADERS 1
25491 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25492 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25493 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 #include <sys/types.h>
25503 #include <sys/wait.h>
25504 #ifndef WEXITSTATUS
25505 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25508 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25516 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25521 rm -f conftest.$ac_objext
25522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25523 (eval $ac_compile) 2>conftest.er1
25525 grep -v '^ *+' conftest.er1 >conftest.err
25527 cat conftest.err >&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } &&
25530 { ac_try='test -z "$ac_c_werror_flag"
25531 || test ! -s conftest.err'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; } &&
25537 { ac_try='test -s conftest.$ac_objext'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; }; then
25543 ac_cv_header_sys_wait_h=yes
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ac_cv_header_sys_wait_h=no
25550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25552 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25553 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25554 if test $ac_cv_header_sys_wait_h = yes; then
25556 cat >>confdefs.h <<\_ACEOF
25557 #define HAVE_SYS_WAIT_H 1
25567 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571 echo "$as_me:$LINENO: checking for $ac_header" >&5
25572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25579 # Is the header compilable?
25580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25582 cat >conftest.$ac_ext <<_ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 $ac_includes_default
25589 #include <$ac_header>
25591 rm -f conftest.$ac_objext
25592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25593 (eval $ac_compile) 2>conftest.er1
25595 grep -v '^ *+' conftest.er1 >conftest.err
25597 cat conftest.err >&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } &&
25600 { ac_try='test -z "$ac_c_werror_flag"
25601 || test ! -s conftest.err'
25602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603 (eval $ac_try) 2>&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; } &&
25607 { ac_try='test -s conftest.$ac_objext'
25608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; }; then
25613 ac_header_compiler=yes
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25618 ac_header_compiler=no
25620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25622 echo "${ECHO_T}$ac_header_compiler" >&6
25624 # Is the header present?
25625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25627 cat >conftest.$ac_ext <<_ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h. */
25633 #include <$ac_header>
25635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25638 grep -v '^ *+' conftest.er1 >conftest.err
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } >/dev/null; then
25643 if test -s conftest.err; then
25644 ac_cpp_err=$ac_c_preproc_warn_flag
25645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25652 if test -z "$ac_cpp_err"; then
25653 ac_header_preproc=yes
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25658 ac_header_preproc=no
25660 rm -f conftest.err conftest.$ac_ext
25661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25662 echo "${ECHO_T}$ac_header_preproc" >&6
25664 # So? What about this header?
25665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25671 ac_header_preproc=yes
25674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25688 ## ----------------------------------- ##
25689 ## Report this to llvmbugs@cs.uiuc.edu ##
25690 ## ----------------------------------- ##
25693 sed "s/^/$as_me: WARNING: /" >&2
25696 echo "$as_me:$LINENO: checking for $ac_header" >&5
25697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25701 eval "$as_ac_Header=\$ac_header_preproc"
25703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25708 cat >>confdefs.h <<_ACEOF
25709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25721 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25725 echo "$as_me:$LINENO: checking for $ac_header" >&5
25726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25728 echo $ECHO_N "(cached) $ECHO_C" >&6
25730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25733 # Is the header compilable?
25734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25736 cat >conftest.$ac_ext <<_ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25742 $ac_includes_default
25743 #include <$ac_header>
25745 rm -f conftest.$ac_objext
25746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747 (eval $ac_compile) 2>conftest.er1
25749 grep -v '^ *+' conftest.er1 >conftest.err
25751 cat conftest.err >&5
25752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
25754 { ac_try='test -z "$ac_c_werror_flag"
25755 || test ! -s conftest.err'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; } &&
25761 { ac_try='test -s conftest.$ac_objext'
25762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
25767 ac_header_compiler=yes
25769 echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25772 ac_header_compiler=no
25774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25776 echo "${ECHO_T}$ac_header_compiler" >&6
25778 # Is the header present?
25779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25781 cat >conftest.$ac_ext <<_ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h. */
25787 #include <$ac_header>
25789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } >/dev/null; then
25797 if test -s conftest.err; then
25798 ac_cpp_err=$ac_c_preproc_warn_flag
25799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25806 if test -z "$ac_cpp_err"; then
25807 ac_header_preproc=yes
25809 echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25812 ac_header_preproc=no
25814 rm -f conftest.err conftest.$ac_ext
25815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25816 echo "${ECHO_T}$ac_header_preproc" >&6
25818 # So? What about this header?
25819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25825 ac_header_preproc=yes
25828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25842 ## ----------------------------------- ##
25843 ## Report this to llvmbugs@cs.uiuc.edu ##
25844 ## ----------------------------------- ##
25847 sed "s/^/$as_me: WARNING: /" >&2
25850 echo "$as_me:$LINENO: checking for $ac_header" >&5
25851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25855 eval "$as_ac_Header=\$ac_header_preproc"
25857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25862 cat >>confdefs.h <<_ACEOF
25863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25873 for ac_header in malloc.h unistd.h windows.h
25875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25877 echo "$as_me:$LINENO: checking for $ac_header" >&5
25878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25885 # Is the header compilable?
25886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25895 #include <$ac_header>
25897 rm -f conftest.$ac_objext
25898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899 (eval $ac_compile) 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest.$ac_objext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 ac_header_compiler=yes
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25924 ac_header_compiler=no
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25928 echo "${ECHO_T}$ac_header_compiler" >&6
25930 # Is the header present?
25931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25933 cat >conftest.$ac_ext <<_ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h. */
25939 #include <$ac_header>
25941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25944 grep -v '^ *+' conftest.er1 >conftest.err
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } >/dev/null; then
25949 if test -s conftest.err; then
25950 ac_cpp_err=$ac_c_preproc_warn_flag
25951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25958 if test -z "$ac_cpp_err"; then
25959 ac_header_preproc=yes
25961 echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25964 ac_header_preproc=no
25966 rm -f conftest.err conftest.$ac_ext
25967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25968 echo "${ECHO_T}$ac_header_preproc" >&6
25970 # So? What about this header?
25971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25977 ac_header_preproc=yes
25980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25994 ## ----------------------------------- ##
25995 ## Report this to llvmbugs@cs.uiuc.edu ##
25996 ## ----------------------------------- ##
25999 sed "s/^/$as_me: WARNING: /" >&2
26002 echo "$as_me:$LINENO: checking for $ac_header" >&5
26003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26005 echo $ECHO_N "(cached) $ECHO_C" >&6
26007 eval "$as_ac_Header=\$ac_header_preproc"
26009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014 cat >>confdefs.h <<_ACEOF
26015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26022 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26023 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26024 if test "${ac_cv_header_time+set}" = set; then
26025 echo $ECHO_N "(cached) $ECHO_C" >&6
26027 cat >conftest.$ac_ext <<_ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 #include <sys/types.h>
26034 #include <sys/time.h>
26040 if ((struct tm *) 0)
26046 rm -f conftest.$ac_objext
26047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048 (eval $ac_compile) 2>conftest.er1
26050 grep -v '^ *+' conftest.er1 >conftest.err
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } &&
26055 { ac_try='test -z "$ac_c_werror_flag"
26056 || test ! -s conftest.err'
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; } &&
26062 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26068 ac_cv_header_time=yes
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26073 ac_cv_header_time=no
26075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26077 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26078 echo "${ECHO_T}$ac_cv_header_time" >&6
26079 if test $ac_cv_header_time = yes; then
26081 cat >>confdefs.h <<\_ACEOF
26082 #define TIME_WITH_SYS_TIME 1
26087 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26088 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26089 if test "${ac_cv_header_mmap_anon+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26093 ac_cpp='$CPP $CPPFLAGS'
26094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26098 cat >conftest.$ac_ext <<_ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26104 #include <sys/mman.h>
26105 #include <unistd.h>
26110 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26115 rm -f conftest.$ac_objext
26116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117 (eval $ac_compile) 2>conftest.er1
26119 grep -v '^ *+' conftest.er1 >conftest.err
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_header_mmap_anon=yes
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 ac_cv_header_mmap_anon=no
26144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26146 ac_cpp='$CPP $CPPFLAGS'
26147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26153 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26154 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26155 if test "$ac_cv_header_mmap_anon" = yes; then
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_MMAP_ANONYMOUS
26166 for ac_header in inttypes.h stdint.h
26168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26170 echo "$as_me:$LINENO: checking for $ac_header" >&5
26171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26173 echo $ECHO_N "(cached) $ECHO_C" >&6
26175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26178 # Is the header compilable?
26179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26188 #include <$ac_header>
26190 rm -f conftest.$ac_objext
26191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26192 (eval $ac_compile) 2>conftest.er1
26194 grep -v '^ *+' conftest.er1 >conftest.err
26196 cat conftest.err >&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
26199 { ac_try='test -z "$ac_c_werror_flag"
26200 || test ! -s conftest.err'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; } &&
26206 { ac_try='test -s conftest.$ac_objext'
26207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 ac_header_compiler=yes
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 ac_header_compiler=no
26219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26221 echo "${ECHO_T}$ac_header_compiler" >&6
26223 # Is the header present?
26224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26232 #include <$ac_header>
26234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26237 grep -v '^ *+' conftest.er1 >conftest.err
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } >/dev/null; then
26242 if test -s conftest.err; then
26243 ac_cpp_err=$ac_c_preproc_warn_flag
26244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26251 if test -z "$ac_cpp_err"; then
26252 ac_header_preproc=yes
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 ac_header_preproc=no
26259 rm -f conftest.err conftest.$ac_ext
26260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26261 echo "${ECHO_T}$ac_header_preproc" >&6
26263 # So? What about this header?
26264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26270 ac_header_preproc=yes
26273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26287 ## ----------------------------------- ##
26288 ## Report this to llvmbugs@cs.uiuc.edu ##
26289 ## ----------------------------------- ##
26292 sed "s/^/$as_me: WARNING: /" >&2
26295 echo "$as_me:$LINENO: checking for $ac_header" >&5
26296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 eval "$as_ac_Header=\$ac_header_preproc"
26302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26307 cat >>confdefs.h <<_ACEOF
26308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26317 echo "$as_me:$LINENO: checking for pid_t" >&5
26318 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26319 if test "${ac_cv_type_pid_t+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 cat >conftest.$ac_ext <<_ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26328 $ac_includes_default
26334 if (sizeof (pid_t))
26340 rm -f conftest.$ac_objext
26341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26342 (eval $ac_compile) 2>conftest.er1
26344 grep -v '^ *+' conftest.er1 >conftest.err
26346 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } &&
26349 { ac_try='test -z "$ac_c_werror_flag"
26350 || test ! -s conftest.err'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; } &&
26356 { ac_try='test -s conftest.$ac_objext'
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 ac_cv_type_pid_t=yes
26364 echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26367 ac_cv_type_pid_t=no
26369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26371 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26372 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26373 if test $ac_cv_type_pid_t = yes; then
26377 cat >>confdefs.h <<_ACEOF
26383 echo "$as_me:$LINENO: checking for size_t" >&5
26384 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26385 if test "${ac_cv_type_size_t+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26388 cat >conftest.$ac_ext <<_ACEOF
26391 cat confdefs.h >>conftest.$ac_ext
26392 cat >>conftest.$ac_ext <<_ACEOF
26393 /* end confdefs.h. */
26394 $ac_includes_default
26400 if (sizeof (size_t))
26406 rm -f conftest.$ac_objext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408 (eval $ac_compile) 2>conftest.er1
26410 grep -v '^ *+' conftest.er1 >conftest.err
26412 cat conftest.err >&5
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
26415 { ac_try='test -z "$ac_c_werror_flag"
26416 || test ! -s conftest.err'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest.$ac_objext'
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
26428 ac_cv_type_size_t=yes
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 ac_cv_type_size_t=no
26435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26437 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26438 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26439 if test $ac_cv_type_size_t = yes; then
26443 cat >>confdefs.h <<_ACEOF
26444 #define size_t unsigned
26449 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26450 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26451 if test "${ac_cv_type_signal+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26454 cat >conftest.$ac_ext <<_ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h. */
26460 #include <sys/types.h>
26461 #include <signal.h>
26466 extern "C" void (*signal (int, void (*)(int)))(int);
26468 void (*signal ()) ();
26479 rm -f conftest.$ac_objext
26480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26481 (eval $ac_compile) 2>conftest.er1
26483 grep -v '^ *+' conftest.er1 >conftest.err
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } &&
26488 { ac_try='test -z "$ac_c_werror_flag"
26489 || test ! -s conftest.err'
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest.$ac_objext'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; }; then
26501 ac_cv_type_signal=void
26503 echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26506 ac_cv_type_signal=int
26508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26510 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26511 echo "${ECHO_T}$ac_cv_type_signal" >&6
26513 cat >>confdefs.h <<_ACEOF
26514 #define RETSIGTYPE $ac_cv_type_signal
26518 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26519 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26520 if test "${ac_cv_struct_tm+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26523 cat >conftest.$ac_ext <<_ACEOF
26526 cat confdefs.h >>conftest.$ac_ext
26527 cat >>conftest.$ac_ext <<_ACEOF
26528 /* end confdefs.h. */
26529 #include <sys/types.h>
26535 struct tm *tp; tp->tm_sec;
26540 rm -f conftest.$ac_objext
26541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26542 (eval $ac_compile) 2>conftest.er1
26544 grep -v '^ *+' conftest.er1 >conftest.err
26546 cat conftest.err >&5
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } &&
26549 { ac_try='test -z "$ac_c_werror_flag"
26550 || test ! -s conftest.err'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest.$ac_objext'
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 ac_cv_struct_tm=time.h
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ac_cv_struct_tm=sys/time.h
26569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26572 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26573 if test $ac_cv_struct_tm = sys/time.h; then
26575 cat >>confdefs.h <<\_ACEOF
26576 #define TM_IN_SYS_TIME 1
26581 echo "$as_me:$LINENO: checking for int64_t" >&5
26582 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26583 if test "${ac_cv_type_int64_t+set}" = set; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26586 cat >conftest.$ac_ext <<_ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 $ac_includes_default
26598 if (sizeof (int64_t))
26604 rm -f conftest.$ac_objext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26606 (eval $ac_compile) 2>conftest.er1
26608 grep -v '^ *+' conftest.er1 >conftest.err
26610 cat conftest.err >&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
26613 { ac_try='test -z "$ac_c_werror_flag"
26614 || test ! -s conftest.err'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; } &&
26620 { ac_try='test -s conftest.$ac_objext'
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626 ac_cv_type_int64_t=yes
26628 echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26631 ac_cv_type_int64_t=no
26633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26636 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26637 if test $ac_cv_type_int64_t = yes; then
26639 cat >>confdefs.h <<_ACEOF
26640 #define HAVE_INT64_T 1
26645 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26646 echo "$as_me: error: Type int64_t required but not found" >&2;}
26647 { (exit 1); exit 1; }; }
26650 echo "$as_me:$LINENO: checking for uint64_t" >&5
26651 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26652 if test "${ac_cv_type_uint64_t+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26655 cat >conftest.$ac_ext <<_ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h. */
26661 $ac_includes_default
26665 if ((uint64_t *) 0)
26667 if (sizeof (uint64_t))
26673 rm -f conftest.$ac_objext
26674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26675 (eval $ac_compile) 2>conftest.er1
26677 grep -v '^ *+' conftest.er1 >conftest.err
26679 cat conftest.err >&5
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } &&
26682 { ac_try='test -z "$ac_c_werror_flag"
26683 || test ! -s conftest.err'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; } &&
26689 { ac_try='test -s conftest.$ac_objext'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }; then
26695 ac_cv_type_uint64_t=yes
26697 echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26700 ac_cv_type_uint64_t=no
26702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26704 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26705 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26706 if test $ac_cv_type_uint64_t = yes; then
26708 cat >>confdefs.h <<_ACEOF
26709 #define HAVE_UINT64_T 1
26714 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26715 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26716 if test "${ac_cv_type_u_int64_t+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26719 cat >conftest.$ac_ext <<_ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26725 $ac_includes_default
26729 if ((u_int64_t *) 0)
26731 if (sizeof (u_int64_t))
26737 rm -f conftest.$ac_objext
26738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26739 (eval $ac_compile) 2>conftest.er1
26741 grep -v '^ *+' conftest.er1 >conftest.err
26743 cat conftest.err >&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
26746 { ac_try='test -z "$ac_c_werror_flag"
26747 || test ! -s conftest.err'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest.$ac_objext'
26754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755 (eval $ac_try) 2>&5
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); }; }; then
26759 ac_cv_type_u_int64_t=yes
26761 echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26764 ac_cv_type_u_int64_t=no
26766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26768 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26769 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26770 if test $ac_cv_type_u_int64_t = yes; then
26772 cat >>confdefs.h <<_ACEOF
26773 #define HAVE_U_INT64_T 1
26778 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26779 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26780 { (exit 1); exit 1; }; }
26793 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26796 echo "$as_me:$LINENO: checking for $ac_func" >&5
26797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26798 if eval "test \"\${$as_ac_var+set}\" = set"; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 cat >conftest.$ac_ext <<_ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h. */
26807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26809 #define $ac_func innocuous_$ac_func
26811 /* System header to define __stub macros and hopefully few prototypes,
26812 which can conflict with char $ac_func (); below.
26813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26814 <limits.h> exists even on freestanding compilers. */
26817 # include <limits.h>
26819 # include <assert.h>
26824 /* Override any gcc2 internal prototype to avoid an error. */
26829 /* We use char because int might match the return type of a gcc2
26830 builtin and then its argument prototype would still apply. */
26832 /* The GNU C library defines this for functions which it implements
26833 to always fail with ENOSYS. Some functions are actually named
26834 something starting with __ and the normal name is an alias. */
26835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26838 char (*f) () = $ac_func;
26847 return f != $ac_func;
26852 rm -f conftest.$ac_objext conftest$ac_exeext
26853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26854 (eval $ac_link) 2>conftest.er1
26856 grep -v '^ *+' conftest.er1 >conftest.err
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
26861 { ac_try='test -z "$ac_c_werror_flag"
26862 || test ! -s conftest.err'
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; } &&
26868 { ac_try='test -s conftest$ac_exeext'
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; }; then
26874 eval "$as_ac_var=yes"
26876 echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26879 eval "$as_ac_var=no"
26881 rm -f conftest.err conftest.$ac_objext \
26882 conftest$ac_exeext conftest.$ac_ext
26884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26886 if test `eval echo '${'$as_ac_var'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26897 for ac_func in mkdtemp mkstemp mktemp
26899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26900 echo "$as_me:$LINENO: checking for $ac_func" >&5
26901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26902 if eval "test \"\${$as_ac_var+set}\" = set"; then
26903 echo $ECHO_N "(cached) $ECHO_C" >&6
26905 cat >conftest.$ac_ext <<_ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h. */
26911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26913 #define $ac_func innocuous_$ac_func
26915 /* System header to define __stub macros and hopefully few prototypes,
26916 which can conflict with char $ac_func (); below.
26917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26918 <limits.h> exists even on freestanding compilers. */
26921 # include <limits.h>
26923 # include <assert.h>
26928 /* Override any gcc2 internal prototype to avoid an error. */
26933 /* We use char because int might match the return type of a gcc2
26934 builtin and then its argument prototype would still apply. */
26936 /* The GNU C library defines this for functions which it implements
26937 to always fail with ENOSYS. Some functions are actually named
26938 something starting with __ and the normal name is an alias. */
26939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26942 char (*f) () = $ac_func;
26951 return f != $ac_func;
26956 rm -f conftest.$ac_objext conftest$ac_exeext
26957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26958 (eval $ac_link) 2>conftest.er1
26960 grep -v '^ *+' conftest.er1 >conftest.err
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } &&
26965 { ac_try='test -z "$ac_c_werror_flag"
26966 || test ! -s conftest.err'
26967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26968 (eval $ac_try) 2>&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; } &&
26972 { ac_try='test -s conftest$ac_exeext'
26973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26974 (eval $ac_try) 2>&5
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; }; then
26978 eval "$as_ac_var=yes"
26980 echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26983 eval "$as_ac_var=no"
26985 rm -f conftest.err conftest.$ac_objext \
26986 conftest$ac_exeext conftest.$ac_ext
26988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26990 if test `eval echo '${'$as_ac_var'}'` = yes; then
26991 cat >>confdefs.h <<_ACEOF
26992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27003 for ac_func in realpath strdup strtoq strtoll sysconf
27005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27006 echo "$as_me:$LINENO: checking for $ac_func" >&5
27007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27008 if eval "test \"\${$as_ac_var+set}\" = set"; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27011 cat >conftest.$ac_ext <<_ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27019 #define $ac_func innocuous_$ac_func
27021 /* System header to define __stub macros and hopefully few prototypes,
27022 which can conflict with char $ac_func (); below.
27023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27024 <limits.h> exists even on freestanding compilers. */
27027 # include <limits.h>
27029 # include <assert.h>
27034 /* Override any gcc2 internal prototype to avoid an error. */
27039 /* We use char because int might match the return type of a gcc2
27040 builtin and then its argument prototype would still apply. */
27042 /* The GNU C library defines this for functions which it implements
27043 to always fail with ENOSYS. Some functions are actually named
27044 something starting with __ and the normal name is an alias. */
27045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27048 char (*f) () = $ac_func;
27057 return f != $ac_func;
27062 rm -f conftest.$ac_objext conftest$ac_exeext
27063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27064 (eval $ac_link) 2>conftest.er1
27066 grep -v '^ *+' conftest.er1 >conftest.err
27068 cat conftest.err >&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); } &&
27071 { ac_try='test -z "$ac_c_werror_flag"
27072 || test ! -s conftest.err'
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
27078 { ac_try='test -s conftest$ac_exeext'
27079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080 (eval $ac_try) 2>&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; }; then
27084 eval "$as_ac_var=yes"
27086 echo "$as_me: failed program was:" >&5
27087 sed 's/^/| /' conftest.$ac_ext >&5
27089 eval "$as_ac_var=no"
27091 rm -f conftest.err conftest.$ac_objext \
27092 conftest$ac_exeext conftest.$ac_ext
27094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27096 if test `eval echo '${'$as_ac_var'}'` = yes; then
27097 cat >>confdefs.h <<_ACEOF
27098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27104 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27105 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27106 if test "${llvm_cv_c_printf_a+set}" = set; then
27107 echo $ECHO_N "(cached) $ECHO_C" >&6
27110 ac_cpp='$CPP $CPPFLAGS'
27111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27115 if test "$cross_compiling" = yes; then
27116 llvmac_cv_c_printf_a=no
27118 cat >conftest.$ac_ext <<_ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h. */
27127 #include <stdlib.h>
27133 volatile double A, B;
27137 sprintf(Buffer, "%a", A);
27141 if (A != 0x1.999999999999ap-4)
27148 rm -f conftest$ac_exeext
27149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27150 (eval $ac_link) 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 llvm_cv_c_printf_a=yes
27161 echo "$as_me: program exited with status $ac_status" >&5
27162 echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 ( exit $ac_status )
27166 llvmac_cv_c_printf_a=no
27168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27171 ac_cpp='$CPP $CPPFLAGS'
27172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27177 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27178 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27179 if test "$llvm_cv_c_printf_a" = "yes"; then
27181 cat >>confdefs.h <<\_ACEOF
27182 #define HAVE_PRINTF_A 1
27187 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27188 # for constant arguments. Useless!
27189 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27190 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27191 if test "${ac_cv_working_alloca_h+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 #include <alloca.h>
27204 char *p = (char *) alloca (2 * sizeof (int));
27209 rm -f conftest.$ac_objext conftest$ac_exeext
27210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27211 (eval $ac_link) 2>conftest.er1
27213 grep -v '^ *+' conftest.er1 >conftest.err
27215 cat conftest.err >&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); } &&
27218 { ac_try='test -z "$ac_c_werror_flag"
27219 || test ! -s conftest.err'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_cv_working_alloca_h=yes
27233 echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.$ac_ext >&5
27236 ac_cv_working_alloca_h=no
27238 rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
27241 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27242 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27243 if test $ac_cv_working_alloca_h = yes; then
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_ALLOCA_H 1
27251 echo "$as_me:$LINENO: checking for alloca" >&5
27252 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27253 if test "${ac_cv_func_alloca_works+set}" = set; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27256 cat >conftest.$ac_ext <<_ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h. */
27263 # define alloca __builtin_alloca
27266 # include <malloc.h>
27267 # define alloca _alloca
27270 # include <alloca.h>
27275 # ifndef alloca /* predefined by HP cc +Olibcalls */
27286 char *p = (char *) alloca (1);
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293 (eval $ac_link) 2>conftest.er1
27295 grep -v '^ *+' conftest.er1 >conftest.err
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag"
27301 || test ! -s conftest.err'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest$ac_exeext'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27313 ac_cv_func_alloca_works=yes
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27318 ac_cv_func_alloca_works=no
27320 rm -f conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext conftest.$ac_ext
27323 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27324 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27326 if test $ac_cv_func_alloca_works = yes; then
27328 cat >>confdefs.h <<\_ACEOF
27329 #define HAVE_ALLOCA 1
27333 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27334 # that cause trouble. Some versions do not even contain alloca or
27335 # contain a buggy version. If you still want to use their alloca,
27336 # use ar to extract alloca.o from them instead of compiling alloca.c.
27338 ALLOCA=alloca.$ac_objext
27340 cat >>confdefs.h <<\_ACEOF
27345 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27346 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27347 if test "${ac_cv_os_cray+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 cat >conftest.$ac_ext <<_ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h. */
27356 #if defined(CRAY) && ! defined(CRAY2)
27363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27364 $EGREP "webecray" >/dev/null 2>&1; then
27372 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27373 echo "${ECHO_T}$ac_cv_os_cray" >&6
27374 if test $ac_cv_os_cray = yes; then
27375 for ac_func in _getb67 GETB67 getb67; do
27376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27377 echo "$as_me:$LINENO: checking for $ac_func" >&5
27378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27379 if eval "test \"\${$as_ac_var+set}\" = set"; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27390 #define $ac_func innocuous_$ac_func
27392 /* System header to define __stub macros and hopefully few prototypes,
27393 which can conflict with char $ac_func (); below.
27394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27395 <limits.h> exists even on freestanding compilers. */
27398 # include <limits.h>
27400 # include <assert.h>
27405 /* Override any gcc2 internal prototype to avoid an error. */
27410 /* We use char because int might match the return type of a gcc2
27411 builtin and then its argument prototype would still apply. */
27413 /* The GNU C library defines this for functions which it implements
27414 to always fail with ENOSYS. Some functions are actually named
27415 something starting with __ and the normal name is an alias. */
27416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27419 char (*f) () = $ac_func;
27428 return f != $ac_func;
27433 rm -f conftest.$ac_objext conftest$ac_exeext
27434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27435 (eval $ac_link) 2>conftest.er1
27437 grep -v '^ *+' conftest.er1 >conftest.err
27439 cat conftest.err >&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } &&
27442 { ac_try='test -z "$ac_c_werror_flag"
27443 || test ! -s conftest.err'
27444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445 (eval $ac_try) 2>&5
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; } &&
27449 { ac_try='test -s conftest$ac_exeext'
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; }; then
27455 eval "$as_ac_var=yes"
27457 echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27460 eval "$as_ac_var=no"
27462 rm -f conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
27465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27467 if test `eval echo '${'$as_ac_var'}'` = yes; then
27469 cat >>confdefs.h <<_ACEOF
27470 #define CRAY_STACKSEG_END $ac_func
27479 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27480 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27481 if test "${ac_cv_c_stack_direction+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27484 if test "$cross_compiling" = yes; then
27485 ac_cv_c_stack_direction=0
27487 cat >conftest.$ac_ext <<_ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h. */
27494 find_stack_direction ()
27496 static char *addr = 0;
27501 return find_stack_direction ();
27504 return (&dummy > addr) ? 1 : -1;
27510 exit (find_stack_direction () < 0);
27513 rm -f conftest$ac_exeext
27514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27515 (eval $ac_link) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ac_cv_c_stack_direction=1
27526 echo "$as_me: program exited with status $ac_status" >&5
27527 echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27530 ( exit $ac_status )
27531 ac_cv_c_stack_direction=-1
27533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27536 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27537 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27539 cat >>confdefs.h <<_ACEOF
27540 #define STACK_DIRECTION $ac_cv_c_stack_direction
27547 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27548 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27549 if test "${ac_cv_func_rand48+set}" = set; then
27550 echo $ECHO_N "(cached) $ECHO_C" >&6
27553 ac_cpp='$CXXCPP $CPPFLAGS'
27554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27564 #include <stdlib.h>
27568 srand48(0);lrand48();drand48();
27573 rm -f conftest.$ac_objext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575 (eval $ac_compile) 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_cxx_werror_flag"
27583 || test ! -s conftest.err'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest.$ac_objext'
27590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 ac_cv_func_rand48=yes
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 ac_cv_func_rand48=no
27602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27604 ac_cpp='$CPP $CPPFLAGS'
27605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27610 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27611 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27613 if test "$ac_cv_func_rand48" = "yes" ; then
27615 cat >>confdefs.h <<\_ACEOF
27616 #define HAVE_RAND48 1
27622 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27623 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27624 if test "${ac_cv_cxx_namespaces+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 ac_cpp='$CXXCPP $CPPFLAGS'
27629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27633 cat >conftest.$ac_ext <<_ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h. */
27639 namespace Outer { namespace Inner { int i = 0; }}
27643 using namespace Outer::Inner; return i;
27648 rm -f conftest.$ac_objext
27649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27650 (eval $ac_compile) 2>conftest.er1
27652 grep -v '^ *+' conftest.er1 >conftest.err
27654 cat conftest.err >&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -z "$ac_cxx_werror_flag"
27658 || test ! -s conftest.err'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; } &&
27664 { ac_try='test -s conftest.$ac_objext'
27665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666 (eval $ac_try) 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_cxx_namespaces=yes
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ac_cv_cxx_namespaces=no
27677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27679 ac_cpp='$CPP $CPPFLAGS'
27680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27686 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27687 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27688 if test "$ac_cv_cxx_namespaces" = yes; then
27690 cat >>confdefs.h <<\_ACEOF
27691 #define HAVE_NAMESPACES
27696 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27697 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27698 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27699 echo $ECHO_N "(cached) $ECHO_C" >&6
27703 ac_cpp='$CXXCPP $CPPFLAGS'
27704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27708 cat >conftest.$ac_ext <<_ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27714 #include <ext/hash_map>
27715 #ifdef HAVE_NAMESPACES
27716 using namespace std;
27721 hash_map<int, int> t;
27726 rm -f conftest.$ac_objext
27727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27728 (eval $ac_compile) 2>conftest.er1
27730 grep -v '^ *+' conftest.er1 >conftest.err
27732 cat conftest.err >&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } &&
27735 { ac_try='test -z "$ac_cxx_werror_flag"
27736 || test ! -s conftest.err'
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest.$ac_objext'
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
27748 ac_cv_cxx_have_std_ext_hash_map=yes
27750 echo "$as_me: failed program was:" >&5
27751 sed 's/^/| /' conftest.$ac_ext >&5
27753 ac_cv_cxx_have_std_ext_hash_map=no
27755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27757 ac_cpp='$CPP $CPPFLAGS'
27758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27763 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27764 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27765 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27768 cat >>confdefs.h <<\_ACEOF
27769 #define HAVE_STD_EXT_HASH_MAP 1
27774 cat >>confdefs.h <<\_ACEOF
27775 #define HAVE_STD_EXT_HASH_MAP 0
27780 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27781 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27782 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27787 ac_cpp='$CXXCPP $CPPFLAGS'
27788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27792 cat >conftest.$ac_ext <<_ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27798 #include <ext/hash_map>
27799 #ifdef HAVE_NAMESPACES
27800 using namespace __gnu_cxx;
27805 hash_map<int,int> t;
27810 rm -f conftest.$ac_objext
27811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27812 (eval $ac_compile) 2>conftest.er1
27814 grep -v '^ *+' conftest.er1 >conftest.err
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
27819 { ac_try='test -z "$ac_cxx_werror_flag"
27820 || test ! -s conftest.err'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; } &&
27826 { ac_try='test -s conftest.$ac_objext'
27827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27828 (eval $ac_try) 2>&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; }; then
27832 ac_cv_cxx_have_gnu_ext_hash_map=yes
27834 echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27837 ac_cv_cxx_have_gnu_ext_hash_map=no
27839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27841 ac_cpp='$CPP $CPPFLAGS'
27842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27847 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27848 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27849 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27852 cat >>confdefs.h <<\_ACEOF
27853 #define HAVE_GNU_EXT_HASH_MAP 1
27858 cat >>confdefs.h <<\_ACEOF
27859 #define HAVE_GNU_EXT_HASH_MAP 0
27864 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27865 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27866 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27871 ac_cpp='$CXXCPP $CPPFLAGS'
27872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27876 cat >conftest.$ac_ext <<_ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27882 #include <hash_map>
27886 hash_map<int,int> t;
27891 rm -f conftest.$ac_objext
27892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27893 (eval $ac_compile) 2>conftest.er1
27895 grep -v '^ *+' conftest.er1 >conftest.err
27897 cat conftest.err >&5
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
27900 { ac_try='test -z "$ac_cxx_werror_flag"
27901 || test ! -s conftest.err'
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; } &&
27907 { ac_try='test -s conftest.$ac_objext'
27908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; }; then
27913 ac_cv_cxx_have_global_hash_map=yes
27915 echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27918 ac_cv_cxx_have_global_hash_map=no
27920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27922 ac_cpp='$CPP $CPPFLAGS'
27923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27928 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27929 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27930 if test "$ac_cv_cxx_have_global_hash_map" = yes
27933 cat >>confdefs.h <<\_ACEOF
27934 #define HAVE_GLOBAL_HASH_MAP 1
27939 cat >>confdefs.h <<\_ACEOF
27940 #define HAVE_GLOBAL_HASH_MAP 0
27945 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27946 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27947 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 ac_cpp='$CXXCPP $CPPFLAGS'
27953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27957 cat >conftest.$ac_ext <<_ACEOF
27960 cat confdefs.h >>conftest.$ac_ext
27961 cat >>conftest.$ac_ext <<_ACEOF
27962 /* end confdefs.h. */
27963 #include <ext/hash_set>
27964 #ifdef HAVE_NAMESPACES
27965 using namespace std;
27975 rm -f conftest.$ac_objext
27976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27977 (eval $ac_compile) 2>conftest.er1
27979 grep -v '^ *+' conftest.er1 >conftest.err
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
27984 { ac_try='test -z "$ac_cxx_werror_flag"
27985 || test ! -s conftest.err'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest.$ac_objext'
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 ac_cv_cxx_have_std_ext_hash_set=yes
27999 echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28002 ac_cv_cxx_have_std_ext_hash_set=no
28004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28006 ac_cpp='$CPP $CPPFLAGS'
28007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28012 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28013 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28014 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28017 cat >>confdefs.h <<\_ACEOF
28018 #define HAVE_STD_EXT_HASH_SET 1
28023 cat >>confdefs.h <<\_ACEOF
28024 #define HAVE_STD_EXT_HASH_SET 0
28029 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28030 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28031 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 ac_cpp='$CXXCPP $CPPFLAGS'
28037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28041 cat >conftest.$ac_ext <<_ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28047 #include <ext/hash_set>
28048 #ifdef HAVE_NAMESPACES
28049 using namespace __gnu_cxx;
28059 rm -f conftest.$ac_objext
28060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28061 (eval $ac_compile) 2>conftest.er1
28063 grep -v '^ *+' conftest.er1 >conftest.err
28065 cat conftest.err >&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } &&
28068 { ac_try='test -z "$ac_cxx_werror_flag"
28069 || test ! -s conftest.err'
28070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28071 (eval $ac_try) 2>&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; } &&
28075 { ac_try='test -s conftest.$ac_objext'
28076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077 (eval $ac_try) 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 ac_cv_cxx_have_gnu_ext_hash_set=yes
28083 echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 ac_cv_cxx_have_gnu_ext_hash_set=no
28088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28090 ac_cpp='$CPP $CPPFLAGS'
28091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28096 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28097 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28098 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28101 cat >>confdefs.h <<\_ACEOF
28102 #define HAVE_GNU_EXT_HASH_SET 1
28107 cat >>confdefs.h <<\_ACEOF
28108 #define HAVE_GNU_EXT_HASH_SET 0
28113 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28114 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28115 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
28120 ac_cpp='$CXXCPP $CPPFLAGS'
28121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28131 #include <hash_set>
28135 hash_set<int> t; return 0;
28140 rm -f conftest.$ac_objext
28141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28142 (eval $ac_compile) 2>conftest.er1
28144 grep -v '^ *+' conftest.er1 >conftest.err
28146 cat conftest.err >&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } &&
28149 { ac_try='test -z "$ac_cxx_werror_flag"
28150 || test ! -s conftest.err'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; } &&
28156 { ac_try='test -s conftest.$ac_objext'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
28162 ac_cv_cxx_have_global_hash_set=yes
28164 echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28167 ac_cv_cxx_have_global_hash_set=no
28169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28171 ac_cpp='$CPP $CPPFLAGS'
28172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28177 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28178 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28179 if test "$ac_cv_cxx_have_global_hash_set" = yes
28182 cat >>confdefs.h <<\_ACEOF
28183 #define HAVE_GLOBAL_HASH_SET 1
28188 cat >>confdefs.h <<\_ACEOF
28189 #define HAVE_GLOBAL_HASH_SET 0
28194 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28195 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28196 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28201 ac_cpp='$CXXCPP $CPPFLAGS'
28202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 #include <iterator>
28213 #ifdef HAVE_NAMESPACES
28214 using namespace std;
28219 iterator<int,int,int> t; return 0;
28224 rm -f conftest.$ac_objext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28226 (eval $ac_compile) 2>conftest.er1
28228 grep -v '^ *+' conftest.er1 >conftest.err
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
28233 { ac_try='test -z "$ac_cxx_werror_flag"
28234 || test ! -s conftest.err'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 ac_cv_cxx_have_std_iterator=yes
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ac_cv_cxx_have_std_iterator=no
28253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28255 ac_cpp='$CPP $CPPFLAGS'
28256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28262 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28263 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28264 if test "$ac_cv_cxx_have_std_iterator" = yes
28267 cat >>confdefs.h <<\_ACEOF
28268 #define HAVE_STD_ITERATOR 1
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_STD_ITERATOR 0
28279 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28280 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28281 if test "${ac_cv_cxx_have_bi_iterator+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 <iterator>
28298 #ifdef HAVE_NAMESPACES
28299 using namespace std;
28304 bidirectional_iterator<int,int> t; return 0;
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_bi_iterator=yes
28333 echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28336 ac_cv_cxx_have_bi_iterator=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
28347 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28348 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28349 if test "$ac_cv_cxx_have_bi_iterator" = yes
28352 cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_BI_ITERATOR 1
28358 cat >>confdefs.h <<\_ACEOF
28359 #define HAVE_BI_ITERATOR 0
28364 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28365 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28366 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ac_cpp='$CXXCPP $CPPFLAGS'
28372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28376 cat >conftest.$ac_ext <<_ACEOF
28379 cat confdefs.h >>conftest.$ac_ext
28380 cat >>conftest.$ac_ext <<_ACEOF
28381 /* end confdefs.h. */
28382 #include <iterator>
28383 #ifdef HAVE_NAMESPACES
28384 using namespace std;
28389 forward_iterator<int,int> t; return 0;
28394 rm -f conftest.$ac_objext
28395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28396 (eval $ac_compile) 2>conftest.er1
28398 grep -v '^ *+' conftest.er1 >conftest.err
28400 cat conftest.err >&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } &&
28403 { ac_try='test -z "$ac_cxx_werror_flag"
28404 || test ! -s conftest.err'
28405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28406 (eval $ac_try) 2>&5
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; } &&
28410 { ac_try='test -s conftest.$ac_objext'
28411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; }; then
28416 ac_cv_cxx_have_fwd_iterator=yes
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28421 ac_cv_cxx_have_fwd_iterator=no
28423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28425 ac_cpp='$CPP $CPPFLAGS'
28426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28432 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28433 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28434 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28437 cat >>confdefs.h <<\_ACEOF
28438 #define HAVE_FWD_ITERATOR 1
28443 cat >>confdefs.h <<\_ACEOF
28444 #define HAVE_FWD_ITERATOR 0
28450 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28451 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28452 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28456 ac_cpp='$CXXCPP $CPPFLAGS'
28457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28461 cat >conftest.$ac_ext <<_ACEOF
28464 cat confdefs.h >>conftest.$ac_ext
28465 cat >>conftest.$ac_ext <<_ACEOF
28466 /* end confdefs.h. */
28476 rm -f conftest.$ac_objext
28477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28478 (eval $ac_compile) 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_cxx_werror_flag"
28486 || test ! -s conftest.err'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest.$ac_objext'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498 ac_cv_func_isnan_in_math_h=yes
28500 echo "$as_me: failed program was:" >&5
28501 sed 's/^/| /' conftest.$ac_ext >&5
28503 ac_cv_func_isnan_in_math_h=no
28505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28507 ac_cpp='$CPP $CPPFLAGS'
28508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28513 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28514 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28517 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_ISNAN_IN_MATH_H 1
28525 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28526 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28527 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28531 ac_cpp='$CXXCPP $CPPFLAGS'
28532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28536 cat >conftest.$ac_ext <<_ACEOF
28539 cat confdefs.h >>conftest.$ac_ext
28540 cat >>conftest.$ac_ext <<_ACEOF
28541 /* end confdefs.h. */
28551 rm -f conftest.$ac_objext
28552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28553 (eval $ac_compile) 2>conftest.er1
28555 grep -v '^ *+' conftest.er1 >conftest.err
28557 cat conftest.err >&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } &&
28560 { ac_try='test -z "$ac_cxx_werror_flag"
28561 || test ! -s conftest.err'
28562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563 (eval $ac_try) 2>&5
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; } &&
28567 { ac_try='test -s conftest.$ac_objext'
28568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; }; then
28573 ac_cv_func_isnan_in_cmath=yes
28575 echo "$as_me: failed program was:" >&5
28576 sed 's/^/| /' conftest.$ac_ext >&5
28578 ac_cv_func_isnan_in_cmath=no
28580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28582 ac_cpp='$CPP $CPPFLAGS'
28583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28588 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28589 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28591 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28593 cat >>confdefs.h <<\_ACEOF
28594 #define HAVE_ISNAN_IN_CMATH 1
28599 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28600 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28601 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28605 ac_cpp='$CXXCPP $CPPFLAGS'
28606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28610 cat >conftest.$ac_ext <<_ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h. */
28620 float f; std::isnan(f);
28625 rm -f conftest.$ac_objext
28626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28627 (eval $ac_compile) 2>conftest.er1
28629 grep -v '^ *+' conftest.er1 >conftest.err
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } &&
28634 { ac_try='test -z "$ac_cxx_werror_flag"
28635 || test ! -s conftest.err'
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; }; then
28647 ac_cv_func_std_isnan_in_cmath=yes
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28652 ac_cv_func_std_isnan_in_cmath=no
28654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28656 ac_cpp='$CPP $CPPFLAGS'
28657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28662 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28663 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28665 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28667 cat >>confdefs.h <<\_ACEOF
28668 #define HAVE_STD_ISNAN_IN_CMATH 1
28674 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28675 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28676 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28680 ac_cpp='$CXXCPP $CPPFLAGS'
28681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28685 cat >conftest.$ac_ext <<_ACEOF
28688 cat confdefs.h >>conftest.$ac_ext
28689 cat >>conftest.$ac_ext <<_ACEOF
28690 /* end confdefs.h. */
28700 rm -f conftest.$ac_objext
28701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28702 (eval $ac_compile) 2>conftest.er1
28704 grep -v '^ *+' conftest.er1 >conftest.err
28706 cat conftest.err >&5
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } &&
28709 { ac_try='test -z "$ac_cxx_werror_flag"
28710 || test ! -s conftest.err'
28711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712 (eval $ac_try) 2>&5
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest.$ac_objext'
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 ac_cv_func_isinf_in_math_h=yes
28724 echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28727 ac_cv_func_isinf_in_math_h=no
28729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28731 ac_cpp='$CPP $CPPFLAGS'
28732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28737 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28738 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28740 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28742 cat >>confdefs.h <<\_ACEOF
28743 #define HAVE_ISINF_IN_MATH_H 1
28748 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28749 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28750 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28754 ac_cpp='$CXXCPP $CPPFLAGS'
28755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28759 cat >conftest.$ac_ext <<_ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h. */
28774 rm -f conftest.$ac_objext
28775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28776 (eval $ac_compile) 2>conftest.er1
28778 grep -v '^ *+' conftest.er1 >conftest.err
28780 cat conftest.err >&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); } &&
28783 { ac_try='test -z "$ac_cxx_werror_flag"
28784 || test ! -s conftest.err'
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; } &&
28790 { ac_try='test -s conftest.$ac_objext'
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 ac_cv_func_isinf_in_cmath=yes
28798 echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28801 ac_cv_func_isinf_in_cmath=no
28803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28805 ac_cpp='$CPP $CPPFLAGS'
28806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28811 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28812 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28814 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28816 cat >>confdefs.h <<\_ACEOF
28817 #define HAVE_ISINF_IN_CMATH 1
28822 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28823 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28824 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28828 ac_cpp='$CXXCPP $CPPFLAGS'
28829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28843 float f; std::isinf(f)}
28848 rm -f conftest.$ac_objext
28849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28850 (eval $ac_compile) 2>conftest.er1
28852 grep -v '^ *+' conftest.er1 >conftest.err
28854 cat conftest.err >&5
28855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
28857 { ac_try='test -z "$ac_cxx_werror_flag"
28858 || test ! -s conftest.err'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest.$ac_objext'
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_func_std_isinf_in_cmath=yes
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28875 ac_cv_func_std_isinf_in_cmath=no
28877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28879 ac_cpp='$CPP $CPPFLAGS'
28880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28885 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28886 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28888 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28890 cat >>confdefs.h <<\_ACEOF
28891 #define HAVE_STD_ISINF_IN_CMATH 1
28896 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28897 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28898 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28902 ac_cpp='$CXXCPP $CPPFLAGS'
28903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28907 cat >conftest.$ac_ext <<_ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h. */
28913 #include <ieeefp.h>
28917 float f; finite(f);
28922 rm -f conftest.$ac_objext
28923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28924 (eval $ac_compile) 2>conftest.er1
28926 grep -v '^ *+' conftest.er1 >conftest.err
28928 cat conftest.err >&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); } &&
28931 { ac_try='test -z "$ac_cxx_werror_flag"
28932 || test ! -s conftest.err'
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; } &&
28938 { ac_try='test -s conftest.$ac_objext'
28939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; }; then
28944 ac_cv_func_finite_in_ieeefp_h=yes
28946 echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28949 ac_cv_func_finite_in_ieeefp_h=no
28951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28953 ac_cpp='$CPP $CPPFLAGS'
28954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28959 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28960 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28962 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28964 cat >>confdefs.h <<\_ACEOF
28965 #define HAVE_FINITE_IN_IEEEFP_H 1
28974 for ac_header in stdlib.h unistd.h
28976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28978 echo "$as_me:$LINENO: checking for $ac_header" >&5
28979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28986 # Is the header compilable?
28987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 $ac_includes_default
28996 #include <$ac_header>
28998 rm -f conftest.$ac_objext
28999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29000 (eval $ac_compile) 2>conftest.er1
29002 grep -v '^ *+' conftest.er1 >conftest.err
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } &&
29007 { ac_try='test -z "$ac_c_werror_flag"
29008 || test ! -s conftest.err'
29009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29010 (eval $ac_try) 2>&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest.$ac_objext'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
29020 ac_header_compiler=yes
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29025 ac_header_compiler=no
29027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29029 echo "${ECHO_T}$ac_header_compiler" >&6
29031 # Is the header present?
29032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29034 cat >conftest.$ac_ext <<_ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h. */
29040 #include <$ac_header>
29042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29045 grep -v '^ *+' conftest.er1 >conftest.err
29047 cat conftest.err >&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } >/dev/null; then
29050 if test -s conftest.err; then
29051 ac_cpp_err=$ac_c_preproc_warn_flag
29052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29059 if test -z "$ac_cpp_err"; then
29060 ac_header_preproc=yes
29062 echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29065 ac_header_preproc=no
29067 rm -f conftest.err conftest.$ac_ext
29068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29069 echo "${ECHO_T}$ac_header_preproc" >&6
29071 # So? What about this header?
29072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29078 ac_header_preproc=yes
29081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29095 ## ----------------------------------- ##
29096 ## Report this to llvmbugs@cs.uiuc.edu ##
29097 ## ----------------------------------- ##
29100 sed "s/^/$as_me: WARNING: /" >&2
29103 echo "$as_me:$LINENO: checking for $ac_header" >&5
29104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 eval "$as_ac_Header=\$ac_header_preproc"
29110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29115 cat >>confdefs.h <<_ACEOF
29116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29124 for ac_func in getpagesize
29126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29127 echo "$as_me:$LINENO: checking for $ac_func" >&5
29128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29129 if eval "test \"\${$as_ac_var+set}\" = set"; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29132 cat >conftest.$ac_ext <<_ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h. */
29138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29140 #define $ac_func innocuous_$ac_func
29142 /* System header to define __stub macros and hopefully few prototypes,
29143 which can conflict with char $ac_func (); below.
29144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29145 <limits.h> exists even on freestanding compilers. */
29148 # include <limits.h>
29150 # include <assert.h>
29155 /* Override any gcc2 internal prototype to avoid an error. */
29160 /* We use char because int might match the return type of a gcc2
29161 builtin and then its argument prototype would still apply. */
29163 /* The GNU C library defines this for functions which it implements
29164 to always fail with ENOSYS. Some functions are actually named
29165 something starting with __ and the normal name is an alias. */
29166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29169 char (*f) () = $ac_func;
29178 return f != $ac_func;
29183 rm -f conftest.$ac_objext conftest$ac_exeext
29184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29185 (eval $ac_link) 2>conftest.er1
29187 grep -v '^ *+' conftest.er1 >conftest.err
29189 cat conftest.err >&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); } &&
29192 { ac_try='test -z "$ac_c_werror_flag"
29193 || test ! -s conftest.err'
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest$ac_exeext'
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 eval "$as_ac_var=yes"
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29210 eval "$as_ac_var=no"
29212 rm -f conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
29215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29217 if test `eval echo '${'$as_ac_var'}'` = yes; then
29218 cat >>confdefs.h <<_ACEOF
29219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29225 echo "$as_me:$LINENO: checking for working mmap" >&5
29226 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29227 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29230 if test "$cross_compiling" = yes; then
29231 ac_cv_func_mmap_fixed_mapped=no
29233 cat >conftest.$ac_ext <<_ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h. */
29239 $ac_includes_default
29240 /* malloc might have been renamed as rpl_malloc. */
29243 /* Thanks to Mike Haertel and Jim Avera for this test.
29244 Here is a matrix of mmap possibilities:
29245 mmap private not fixed
29246 mmap private fixed at somewhere currently unmapped
29247 mmap private fixed at somewhere already mapped
29248 mmap shared not fixed
29249 mmap shared fixed at somewhere currently unmapped
29250 mmap shared fixed at somewhere already mapped
29251 For private mappings, we should verify that changes cannot be read()
29252 back from the file, nor mmap's back from the file at a different
29253 address. (There have been systems where private was not correctly
29254 implemented like the infamous i386 svr4.0, and systems where the
29255 VM page cache was not coherent with the file system buffer cache
29256 like early versions of FreeBSD and possibly contemporary NetBSD.)
29257 For shared mappings, we should conversely verify that changes get
29258 propagated back to all the places they're supposed to be.
29260 Grep wants private fixed already mapped.
29261 The main things grep needs to know about mmap are:
29262 * does it exist and is it safe to write into the mmap'd area
29263 * how to use it (BSD variants) */
29266 #include <sys/mman.h>
29268 #if !STDC_HEADERS && !HAVE_STDLIB_H
29272 /* This mess was copied from the GNU getpagesize.h. */
29273 #if !HAVE_GETPAGESIZE
29274 /* Assume that all systems that can run configure have sys/param.h. */
29275 # if !HAVE_SYS_PARAM_H
29276 # define HAVE_SYS_PARAM_H 1
29279 # ifdef _SC_PAGESIZE
29280 # define getpagesize() sysconf(_SC_PAGESIZE)
29281 # else /* no _SC_PAGESIZE */
29282 # if HAVE_SYS_PARAM_H
29283 # include <sys/param.h>
29284 # ifdef EXEC_PAGESIZE
29285 # define getpagesize() EXEC_PAGESIZE
29286 # else /* no EXEC_PAGESIZE */
29288 # define getpagesize() NBPG * CLSIZE
29291 # endif /* no CLSIZE */
29292 # else /* no NBPG */
29294 # define getpagesize() NBPC
29295 # else /* no NBPC */
29297 # define getpagesize() PAGESIZE
29298 # endif /* PAGESIZE */
29299 # endif /* no NBPC */
29300 # endif /* no NBPG */
29301 # endif /* no EXEC_PAGESIZE */
29302 # else /* no HAVE_SYS_PARAM_H */
29303 # define getpagesize() 8192 /* punt totally */
29304 # endif /* no HAVE_SYS_PARAM_H */
29305 # endif /* no _SC_PAGESIZE */
29307 #endif /* no HAVE_GETPAGESIZE */
29312 char *data, *data2, *data3;
29316 pagesize = getpagesize ();
29318 /* First, make a file with some known garbage in it. */
29319 data = (char *) malloc (pagesize);
29322 for (i = 0; i < pagesize; ++i)
29323 *(data + i) = rand ();
29325 fd = creat ("conftest.mmap", 0600);
29328 if (write (fd, data, pagesize) != pagesize)
29332 /* Next, try to mmap the file at a fixed address which already has
29333 something else allocated at it. If we can, also make sure that
29334 we see the same garbage. */
29335 fd = open ("conftest.mmap", O_RDWR);
29338 data2 = (char *) malloc (2 * pagesize);
29341 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29343 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29345 for (i = 0; i < pagesize; ++i)
29346 if (*(data + i) != *(data2 + i))
29349 /* Finally, make sure that changes to the mapped area do not
29350 percolate back to the file as seen by read(). (This is a bug on
29351 some variants of i386 svr4.0.) */
29352 for (i = 0; i < pagesize; ++i)
29353 *(data2 + i) = *(data2 + i) + 1;
29354 data3 = (char *) malloc (pagesize);
29357 if (read (fd, data3, pagesize) != pagesize)
29359 for (i = 0; i < pagesize; ++i)
29360 if (*(data + i) != *(data3 + i))
29366 rm -f conftest$ac_exeext
29367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29368 (eval $ac_link) 2>&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; }; then
29377 ac_cv_func_mmap_fixed_mapped=yes
29379 echo "$as_me: program exited with status $ac_status" >&5
29380 echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29383 ( exit $ac_status )
29384 ac_cv_func_mmap_fixed_mapped=no
29386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29389 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29390 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29391 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29393 cat >>confdefs.h <<\_ACEOF
29394 #define HAVE_MMAP 1
29398 rm -f conftest.mmap
29400 echo "$as_me:$LINENO: checking for mmap of files" >&5
29401 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29402 if test "${ac_cv_func_mmap_file+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29406 ac_cpp='$CPP $CPPFLAGS'
29407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29411 if test "$cross_compiling" = yes; then
29412 ac_cv_func_mmap_file=no
29414 cat >conftest.$ac_ext <<_ACEOF
29418 cat confdefs.h >>conftest.$ac_ext
29419 cat >>conftest.$ac_ext <<_ACEOF
29420 /* end confdefs.h. */
29422 #include <sys/types.h>
29423 #include <sys/mman.h>
29431 fd = creat ("foo",0777);
29432 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29434 return (fd != (int) MAP_FAILED);
29439 rm -f conftest$ac_exeext
29440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29441 (eval $ac_link) 2>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29446 (eval $ac_try) 2>&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_cv_func_mmap_file=yes
29452 echo "$as_me: program exited with status $ac_status" >&5
29453 echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29456 ( exit $ac_status )
29457 ac_cv_func_mmap_file=no
29459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29462 ac_cpp='$CPP $CPPFLAGS'
29463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29469 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29470 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29471 if test "$ac_cv_func_mmap_file" = yes; then
29473 cat >>confdefs.h <<\_ACEOF
29474 #define HAVE_MMAP_FILE
29481 echo "$as_me:$LINENO: checking for mprotect" >&5
29482 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29483 if test "${ac_cv_func_mprotect+set}" = set; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29486 cat >conftest.$ac_ext <<_ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h. */
29492 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29494 #define mprotect innocuous_mprotect
29496 /* System header to define __stub macros and hopefully few prototypes,
29497 which can conflict with char mprotect (); below.
29498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29499 <limits.h> exists even on freestanding compilers. */
29502 # include <limits.h>
29504 # include <assert.h>
29509 /* Override any gcc2 internal prototype to avoid an error. */
29514 /* We use char because int might match the return type of a gcc2
29515 builtin and then its argument prototype would still apply. */
29517 /* The GNU C library defines this for functions which it implements
29518 to always fail with ENOSYS. Some functions are actually named
29519 something starting with __ and the normal name is an alias. */
29520 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29523 char (*f) () = mprotect;
29532 return f != mprotect;
29537 rm -f conftest.$ac_objext conftest$ac_exeext
29538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29539 (eval $ac_link) 2>conftest.er1
29541 grep -v '^ *+' conftest.er1 >conftest.err
29543 cat conftest.err >&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
29546 { ac_try='test -z "$ac_c_werror_flag"
29547 || test ! -s conftest.err'
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest$ac_exeext'
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_func_mprotect=yes
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 ac_cv_func_mprotect=no
29566 rm -f conftest.err conftest.$ac_objext \
29567 conftest$ac_exeext conftest.$ac_ext
29569 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29570 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29571 if test $ac_cv_func_mprotect = yes; then
29574 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29575 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29576 { (exit 1); exit 1; }; }
29580 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29582 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29583 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29585 if test "$ac_cv_func_mmap_file" = "no"
29587 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29588 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29592 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29593 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29594 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29597 llvm_cv_llvmgcc_sanity="no"
29598 if test -x "$LLVMGCC" ; then
29599 cp /dev/null conftest.c
29600 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29601 if test $? -eq 0 ; then
29602 llvm_cv_llvmgcc_sanity="yes"
29607 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29608 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29610 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29611 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
29612 LLVMCC1=$llvmcc1path
29614 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
29615 LLVMCC1PLUS=$llvmcc1pluspath
29617 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29618 LLVMGCCDIR=$llvmgccdir
29622 SHLIBEXT=$libltdl_cv_shlibext
29625 # Translate the various configuration directories and other basic
29626 # information into substitutions that will end up in Makefile.config.in
29627 # that these configured values can be used by the makefiles
29628 eval LLVM_PREFIX="${prefix}";
29629 eval LLVM_BINDIR="${prefix}/bin";
29630 eval LLVM_LIBDIR="${prefix}/lib";
29631 eval LLVM_DATADIR="${prefix}/share/llvm";
29632 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29633 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29634 eval LLVM_INCLUDEDIR="${prefix}/include";
29635 eval LLVM_INFODIR="${prefix}/info";
29636 eval LLVM_MANDIR="${prefix}/man";
29637 LLVM_CONFIGTIME=`date`
29649 # Place the various directores into the config.h file as #defines so that we
29650 # can know about the installation paths within LLVM.
29652 cat >>confdefs.h <<_ACEOF
29653 #define LLVM_PREFIX "$LLVM_PREFIX"
29657 cat >>confdefs.h <<_ACEOF
29658 #define LLVM_BINDIR "$LLVM_BINDIR"
29662 cat >>confdefs.h <<_ACEOF
29663 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29667 cat >>confdefs.h <<_ACEOF
29668 #define LLVM_DATADIR "$LLVM_DATADIR"
29672 cat >>confdefs.h <<_ACEOF
29673 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29677 cat >>confdefs.h <<_ACEOF
29678 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29682 cat >>confdefs.h <<_ACEOF
29683 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29687 cat >>confdefs.h <<_ACEOF
29688 #define LLVM_INFODIR "$LLVM_INFODIR"
29692 cat >>confdefs.h <<_ACEOF
29693 #define LLVM_MANDIR "$LLVM_MANDIR"
29697 cat >>confdefs.h <<_ACEOF
29698 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29703 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29706 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29708 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29710 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29712 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29714 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29717 ac_config_files="$ac_config_files Makefile.config"
29720 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29723 ac_config_files="$ac_config_files docs/doxygen.cfg"
29726 ac_config_commands="$ac_config_commands Makefile"
29729 ac_config_commands="$ac_config_commands Makefile.common"
29732 ac_config_commands="$ac_config_commands examples/Makefile"
29735 ac_config_commands="$ac_config_commands lib/Makefile"
29738 ac_config_commands="$ac_config_commands runtime/Makefile"
29741 ac_config_commands="$ac_config_commands test/Makefile"
29744 ac_config_commands="$ac_config_commands test/Makefile.tests"
29747 ac_config_commands="$ac_config_commands tools/Makefile"
29750 ac_config_commands="$ac_config_commands utils/Makefile"
29753 ac_config_commands="$ac_config_commands projects/Makefile"
29757 cat >confcache <<\_ACEOF
29758 # This file is a shell script that caches the results of configure
29759 # tests run on this system so they can be shared between configure
29760 # scripts and configure runs, see configure's option --config-cache.
29761 # It is not useful on other systems. If it contains results you don't
29762 # want to keep, you may remove or edit it.
29764 # config.status only pays attention to the cache file if you give it
29765 # the --recheck option to rerun configure.
29767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29769 # following values.
29773 # The following way of writing the cache mishandles newlines in values,
29774 # but we know of no workaround that is simple, portable, and efficient.
29775 # So, don't put newlines in cache variables' values.
29776 # Ultrix sh set writes to stderr and can't be redirected directly,
29777 # and sets the high bit in the cache file unless we assign to the vars.
29780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29782 # `set' does not quote correctly, so add quotes (double-quote
29783 # substitution turns \\\\ into \\, and sed turns \\ into \).
29786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29789 # `set' quotes correctly as required by POSIX, so do not add quotes.
29791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29800 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29802 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29803 if test -w $cache_file; then
29804 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29805 cat confcache >$cache_file
29807 echo "not updating unwritable cache $cache_file"
29812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29813 # Let make expand exec_prefix.
29814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29818 # trailing colons and then remove the whole line if VPATH becomes empty
29819 # (actually we leave an empty line to preserve line numbers).
29820 if test "x$srcdir" = x.; then
29821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29822 s/:*\$(srcdir):*/:/;
29823 s/:*\${srcdir}:*/:/;
29825 s/^\([^=]*=[ ]*\):*/\1/;
29831 DEFS=-DHAVE_CONFIG_H
29835 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29836 # 1. Remove the extension, and $U if already installed.
29837 ac_i=`echo "$ac_i" |
29838 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29840 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29841 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29843 LIBOBJS=$ac_libobjs
29845 LTLIBOBJS=$ac_ltlibobjs
29848 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29849 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29850 Usually this means the macro was only invoked conditionally." >&5
29851 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29852 Usually this means the macro was only invoked conditionally." >&2;}
29853 { (exit 1); exit 1; }; }
29855 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29856 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29857 Usually this means the macro was only invoked conditionally." >&5
29858 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29859 Usually this means the macro was only invoked conditionally." >&2;}
29860 { (exit 1); exit 1; }; }
29863 : ${CONFIG_STATUS=./config.status}
29864 ac_clean_files_save=$ac_clean_files
29865 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29866 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29867 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29868 cat >$CONFIG_STATUS <<_ACEOF
29870 # Generated by $as_me.
29871 # Run this file to recreate the current configuration.
29872 # Compiler output produced by configure, useful for debugging
29873 # configure, is in config.log if it exists.
29876 ac_cs_recheck=false
29878 SHELL=\${CONFIG_SHELL-$SHELL}
29881 cat >>$CONFIG_STATUS <<\_ACEOF
29882 ## --------------------- ##
29883 ## M4sh Initialization. ##
29884 ## --------------------- ##
29886 # Be Bourne compatible
29887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29890 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29891 # is contrary to our usage. Disable this feature.
29892 alias -g '${1+"$@"}'='"$@"'
29893 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29896 DUALCASE=1; export DUALCASE # for MKS sh
29898 # Support unset when possible.
29899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29906 # Work around bugs in pre-3.0 UWIN ksh.
29907 $as_unset ENV MAIL MAILPATH
29914 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29915 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29916 LC_TELEPHONE LC_TIME
29918 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29919 eval $as_var=C; export $as_var
29925 # Required to use basename.
29926 if expr a : '\(a\)' >/dev/null 2>&1; then
29932 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29933 as_basename=basename
29939 # Name of the executable.
29940 as_me=`$as_basename "$0" ||
29941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29942 X"$0" : 'X\(//\)$' \| \
29943 X"$0" : 'X\(/\)$' \| \
29944 . : '\(.\)' 2>/dev/null ||
29946 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29947 /^X\/\(\/\/\)$/{ s//\1/; q; }
29948 /^X\/\(\/\).*/{ s//\1/; q; }
29952 # PATH needs CR, and LINENO needs CR and PATH.
29953 # Avoid depending upon Character Ranges.
29954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29957 as_cr_digits='0123456789'
29958 as_cr_alnum=$as_cr_Letters$as_cr_digits
29960 # The user is always right.
29961 if test "${PATH_SEPARATOR+set}" != set; then
29962 echo "#! /bin/sh" >conf$$.sh
29963 echo "exit 0" >>conf$$.sh
29965 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29974 as_lineno_1=$LINENO
29975 as_lineno_2=$LINENO
29976 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29977 test "x$as_lineno_1" != "x$as_lineno_2" &&
29978 test "x$as_lineno_3" = "x$as_lineno_2" || {
29979 # Find who we are. Look in the path if we contain no path at all
29982 *[\\/]* ) as_myself=$0 ;;
29983 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29984 for as_dir in $PATH
29987 test -z "$as_dir" && as_dir=.
29988 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29993 # We did not find ourselves, most probably we were run as `sh COMMAND'
29994 # in which case we are not to be found in the path.
29995 if test "x$as_myself" = x; then
29998 if test ! -f "$as_myself"; then
29999 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30000 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30001 { (exit 1); exit 1; }; }
30003 case $CONFIG_SHELL in
30005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30009 test -z "$as_dir" && as_dir=.
30010 for as_base in sh bash ksh sh5; do
30013 if ("$as_dir/$as_base" -c '
30014 as_lineno_1=$LINENO
30015 as_lineno_2=$LINENO
30016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30017 test "x$as_lineno_1" != "x$as_lineno_2" &&
30018 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30019 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30020 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30021 CONFIG_SHELL=$as_dir/$as_base
30022 export CONFIG_SHELL
30023 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30031 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30032 # uniformly replaced by the line number. The first 'sed' inserts a
30033 # line-number line before each line; the second 'sed' does the real
30034 # work. The second script uses 'N' to pair each line-number line
30035 # with the numbered line, and appends trailing '-' during
30036 # substitution so that $LINENO is not a special case at line end.
30037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30038 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30039 sed '=' <$as_myself |
30044 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30047 s,^['$as_cr_digits']*\n,,
30048 ' >$as_me.lineno &&
30049 chmod +x $as_me.lineno ||
30050 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30051 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30052 { (exit 1); exit 1; }; }
30054 # Don't try to exec as it changes $[0], causing all sort of problems
30055 # (the dirname of $[0] is not the place where we might find the
30056 # original and so on. Autoconf is especially sensible to this).
30058 # Exit status is that of the last command.
30063 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30064 *c*,-n*) ECHO_N= ECHO_C='
30066 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30067 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30070 if expr a : '\(a\)' >/dev/null 2>&1; then
30076 rm -f conf$$ conf$$.exe conf$$.file
30078 if ln -s conf$$.file conf$$ 2>/dev/null; then
30079 # We could just check for DJGPP; but this test a) works b) is more generic
30080 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30081 if test -f conf$$.exe; then
30082 # Don't use ln at all; we don't have any links
30087 elif ln conf$$.file conf$$ 2>/dev/null; then
30092 rm -f conf$$ conf$$.exe conf$$.file
30094 if mkdir -p . 2>/dev/null; then
30097 test -d ./-p && rmdir ./-p
30101 as_executable_p="test -f"
30103 # Sed expression to map a string onto a valid CPP name.
30104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30106 # Sed expression to map a string onto a valid variable name.
30107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30111 # We need space, tab and new line, in precisely that order.
30121 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30122 # report actual input values of CONFIG_FILES etc. instead of their
30123 # values after options handling. Logging --version etc. is OK.
30127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30128 ## Running $as_me. ##
30133 This file was extended by llvm $as_me 1.4, which was
30134 generated by GNU Autoconf 2.59. Invocation command line was
30136 CONFIG_FILES = $CONFIG_FILES
30137 CONFIG_HEADERS = $CONFIG_HEADERS
30138 CONFIG_LINKS = $CONFIG_LINKS
30139 CONFIG_COMMANDS = $CONFIG_COMMANDS
30143 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30147 # Files that config.status was made for.
30148 if test -n "$ac_config_files"; then
30149 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30152 if test -n "$ac_config_headers"; then
30153 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30156 if test -n "$ac_config_links"; then
30157 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30160 if test -n "$ac_config_commands"; then
30161 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30164 cat >>$CONFIG_STATUS <<\_ACEOF
30167 \`$as_me' instantiates files from templates according to the
30168 current configuration.
30170 Usage: $0 [OPTIONS] [FILE]...
30172 -h, --help print this help, then exit
30173 -V, --version print version number, then exit
30174 -q, --quiet do not print progress messages
30175 -d, --debug don't remove temporary files
30176 --recheck update $as_me by reconfiguring in the same conditions
30177 --file=FILE[:TEMPLATE]
30178 instantiate the configuration file FILE
30179 --header=FILE[:TEMPLATE]
30180 instantiate the configuration header FILE
30182 Configuration files:
30185 Configuration headers:
30188 Configuration links:
30191 Configuration commands:
30194 Report bugs to <bug-autoconf@gnu.org>."
30197 cat >>$CONFIG_STATUS <<_ACEOF
30199 llvm config.status 1.4
30200 configured by $0, generated by GNU Autoconf 2.59,
30201 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30203 Copyright (C) 2003 Free Software Foundation, Inc.
30204 This config.status script is free software; the Free Software Foundation
30205 gives unlimited permission to copy, distribute and modify it."
30210 cat >>$CONFIG_STATUS <<\_ACEOF
30211 # If no file are specified by the user, then we need to provide default
30212 # value. By we need to know if files were specified by the user.
30218 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30219 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30227 *) # This is not an option, so the user has probably given explicit
30230 ac_need_defaults=false;;
30234 # Handling of the options.
30236 cat >>$CONFIG_STATUS <<\_ACEOF
30237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30239 --version | --vers* | -V )
30240 echo "$ac_cs_version"; exit 0 ;;
30242 # Conflict between --help and --header
30243 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30244 Try \`$0 --help' for more information." >&5
30245 echo "$as_me: error: ambiguous option: $1
30246 Try \`$0 --help' for more information." >&2;}
30247 { (exit 1); exit 1; }; };;
30248 --help | --hel | -h )
30249 echo "$ac_cs_usage"; exit 0 ;;
30250 --debug | --d* | -d )
30252 --file | --fil | --fi | --f )
30254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30255 ac_need_defaults=false;;
30256 --header | --heade | --head | --hea )
30258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30259 ac_need_defaults=false;;
30260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30264 # This is an error.
30265 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30266 Try \`$0 --help' for more information." >&5
30267 echo "$as_me: error: unrecognized option: $1
30268 Try \`$0 --help' for more information." >&2;}
30269 { (exit 1); exit 1; }; } ;;
30271 *) ac_config_targets="$ac_config_targets $1" ;;
30277 ac_configure_extra_args=
30279 if $ac_cs_silent; then
30281 ac_configure_extra_args="$ac_configure_extra_args --silent"
30285 cat >>$CONFIG_STATUS <<_ACEOF
30286 if \$ac_cs_recheck; then
30287 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30288 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30293 cat >>$CONFIG_STATUS <<_ACEOF
30295 # INIT-COMMANDS section.
30298 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30299 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30300 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30301 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30302 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30303 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30304 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30305 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30306 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30307 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30313 cat >>$CONFIG_STATUS <<\_ACEOF
30314 for ac_config_target in $ac_config_targets
30316 case "$ac_config_target" in
30317 # Handling of arguments.
30318 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30319 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30320 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30321 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30322 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30323 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30324 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_os_type" ;;
30325 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30326 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30327 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30328 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30329 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30330 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30331 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30332 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30333 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30334 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30335 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30336 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30337 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30338 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30339 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30340 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30343 { (exit 1); exit 1; }; };;
30347 # If the user did not use the arguments to specify the items to instantiate,
30348 # then the envvar interface is used. Set only those that are not.
30349 # We use the long form for the default assignment because of an extremely
30350 # bizarre bug on SunOS 4.1.3.
30351 if $ac_need_defaults; then
30352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30354 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30358 # Have a temporary directory for convenience. Make it in the build tree
30359 # simply because there is no reason to put it here, and in addition,
30360 # creating and moving files from /tmp can sometimes cause problems.
30361 # Create a temporary directory, and hook for its removal unless debugging.
30364 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30365 trap '{ (exit 1); exit 1; }' 1 2 13 15
30368 # Create a (secure) tmp directory for tmp files.
30371 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30372 test -n "$tmp" && test -d "$tmp"
30375 tmp=./confstat$$-$RANDOM
30376 (umask 077 && mkdir $tmp)
30379 echo "$me: cannot create a temporary directory in ." >&2
30380 { (exit 1); exit 1; }
30385 cat >>$CONFIG_STATUS <<_ACEOF
30388 # CONFIG_FILES section.
30391 # No need to generate the scripts if there are no CONFIG_FILES.
30392 # This happens for instance when ./config.status config.h
30393 if test -n "\$CONFIG_FILES"; then
30394 # Protect against being on the right side of a sed subst in config.status.
30395 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30396 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30397 s,@SHELL@,$SHELL,;t t
30398 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30399 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30400 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30401 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30402 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30403 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30404 s,@exec_prefix@,$exec_prefix,;t t
30405 s,@prefix@,$prefix,;t t
30406 s,@program_transform_name@,$program_transform_name,;t t
30407 s,@bindir@,$bindir,;t t
30408 s,@sbindir@,$sbindir,;t t
30409 s,@libexecdir@,$libexecdir,;t t
30410 s,@datadir@,$datadir,;t t
30411 s,@sysconfdir@,$sysconfdir,;t t
30412 s,@sharedstatedir@,$sharedstatedir,;t t
30413 s,@localstatedir@,$localstatedir,;t t
30414 s,@libdir@,$libdir,;t t
30415 s,@includedir@,$includedir,;t t
30416 s,@oldincludedir@,$oldincludedir,;t t
30417 s,@infodir@,$infodir,;t t
30418 s,@mandir@,$mandir,;t t
30419 s,@build_alias@,$build_alias,;t t
30420 s,@host_alias@,$host_alias,;t t
30421 s,@target_alias@,$target_alias,;t t
30422 s,@DEFS@,$DEFS,;t t
30423 s,@ECHO_C@,$ECHO_C,;t t
30424 s,@ECHO_N@,$ECHO_N,;t t
30425 s,@ECHO_T@,$ECHO_T,;t t
30426 s,@LIBS@,$LIBS,;t t
30427 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30428 s,@subdirs@,$subdirs,;t t
30429 s,@build@,$build,;t t
30430 s,@build_cpu@,$build_cpu,;t t
30431 s,@build_vendor@,$build_vendor,;t t
30432 s,@build_os@,$build_os,;t t
30433 s,@host@,$host,;t t
30434 s,@host_cpu@,$host_cpu,;t t
30435 s,@host_vendor@,$host_vendor,;t t
30436 s,@host_os@,$host_os,;t t
30437 s,@target@,$target,;t t
30438 s,@target_cpu@,$target_cpu,;t t
30439 s,@target_vendor@,$target_vendor,;t t
30440 s,@target_os@,$target_os,;t t
30442 s,@ARCH@,$ARCH,;t t
30443 s,@ENDIAN@,$ENDIAN,;t t
30445 s,@CFLAGS@,$CFLAGS,;t t
30446 s,@LDFLAGS@,$LDFLAGS,;t t
30447 s,@CPPFLAGS@,$CPPFLAGS,;t t
30448 s,@ac_ct_CC@,$ac_ct_CC,;t t
30449 s,@EXEEXT@,$EXEEXT,;t t
30450 s,@OBJEXT@,$OBJEXT,;t t
30451 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30453 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30456 s,@CXXFLAGS@,$CXXFLAGS,;t t
30457 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30459 s,@LEXLIB@,$LEXLIB,;t t
30460 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30461 s,@FLEX@,$FLEX,;t t
30462 s,@YACC@,$YACC,;t t
30463 s,@BISON@,$BISON,;t t
30464 s,@ifGNUmake@,$ifGNUmake,;t t
30465 s,@LN_S@,$LN_S,;t t
30468 s,@DATE@,$DATE,;t t
30469 s,@FIND@,$FIND,;t t
30470 s,@GREP@,$GREP,;t t
30471 s,@LLVMGCC@,$LLVMGCC,;t t
30472 s,@LLVMGXX@,$LLVMGXX,;t t
30473 s,@MKDIR@,$MKDIR,;t t
30476 s,@RANLIB@,$RANLIB,;t t
30477 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30481 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30482 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30483 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30484 s,@BZIP2@,$BZIP2,;t t
30486 s,@DOXYGEN@,$DOXYGEN,;t t
30487 s,@ETAGS@,$ETAGS,;t t
30488 s,@GROFF@,$GROFF,;t t
30489 s,@GZIP@,$GZIP,;t t
30490 s,@POD2HTML@,$POD2HTML,;t t
30491 s,@POD2MAN@,$POD2MAN,;t t
30492 s,@RUNTEST@,$RUNTEST,;t t
30493 s,@TCLSH@,$TCLSH,;t t
30495 s,@EGREP@,$EGREP,;t t
30496 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30497 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30498 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30499 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30500 s,@LIBADD_DL@,$LIBADD_DL,;t t
30501 s,@ECHO@,$ECHO,;t t
30503 s,@ac_ct_AR@,$ac_ct_AR,;t t
30504 s,@STRIP@,$STRIP,;t t
30505 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30506 s,@CXXCPP@,$CXXCPP,;t t
30508 s,@FFLAGS@,$FFLAGS,;t t
30509 s,@ac_ct_F77@,$ac_ct_F77,;t t
30510 s,@LIBTOOL@,$LIBTOOL,;t t
30511 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30512 s,@ALLOCA@,$ALLOCA,;t t
30513 s,@MMAP_FILE@,$MMAP_FILE,;t t
30514 s,@LLVMCC1@,$LLVMCC1,;t t
30515 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30516 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30517 s,@SHLIBEXT@,$SHLIBEXT,;t t
30518 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30519 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30520 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30521 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30522 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30523 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30524 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30525 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30526 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30527 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30528 s,@LIBOBJS@,$LIBOBJS,;t t
30529 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30534 cat >>$CONFIG_STATUS <<\_ACEOF
30535 # Split the substitutions into bite-sized pieces for seds with
30536 # small command number limits, like on Digital OSF/1 and HP-UX.
30537 ac_max_sed_lines=48
30538 ac_sed_frag=1 # Number of current file.
30539 ac_beg=1 # First line for current file.
30540 ac_end=$ac_max_sed_lines # Line after last line for current file.
30543 while $ac_more_lines; do
30544 if test $ac_beg -gt 1; then
30545 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30547 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30549 if test ! -s $tmp/subs.frag; then
30550 ac_more_lines=false
30552 # The purpose of the label and of the branching condition is to
30553 # speed up the sed processing (if there are no `@' at all, there
30554 # is no need to browse any of the substitutions).
30555 # These are the two extra sed commands mentioned above.
30557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30558 if test -z "$ac_sed_cmds"; then
30559 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30561 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30563 ac_sed_frag=`expr $ac_sed_frag + 1`
30565 ac_end=`expr $ac_end + $ac_max_sed_lines`
30568 if test -z "$ac_sed_cmds"; then
30571 fi # test -n "$CONFIG_FILES"
30574 cat >>$CONFIG_STATUS <<\_ACEOF
30575 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30578 - | *:- | *:-:* ) # input from stdin
30580 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30581 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30582 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30584 * ) ac_file_in=$ac_file.in ;;
30587 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30590 X"$ac_file" : 'X\(//\)[^/]' \| \
30591 X"$ac_file" : 'X\(//\)$' \| \
30592 X"$ac_file" : 'X\(/\)' \| \
30593 . : '\(.\)' 2>/dev/null ||
30595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30597 /^X\(\/\/\)$/{ s//\1/; q; }
30598 /^X\(\/\).*/{ s//\1/; q; }
30600 { if $as_mkdir_p; then
30605 while test ! -d "$as_dir"; do
30606 as_dirs="$as_dir $as_dirs"
30607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30609 X"$as_dir" : 'X\(//\)[^/]' \| \
30610 X"$as_dir" : 'X\(//\)$' \| \
30611 X"$as_dir" : 'X\(/\)' \| \
30612 . : '\(.\)' 2>/dev/null ||
30614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30616 /^X\(\/\/\)$/{ s//\1/; q; }
30617 /^X\(\/\).*/{ s//\1/; q; }
30620 test ! -n "$as_dirs" || mkdir $as_dirs
30621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30622 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30623 { (exit 1); exit 1; }; }; }
30627 if test "$ac_dir" != .; then
30628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30629 # A "../" for each directory in $ac_dir_suffix.
30630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30632 ac_dir_suffix= ac_top_builddir=
30636 .) # No --srcdir option. We are building in place.
30638 if test -z "$ac_top_builddir"; then
30641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30643 [\\/]* | ?:[\\/]* ) # Absolute path.
30644 ac_srcdir=$srcdir$ac_dir_suffix;
30645 ac_top_srcdir=$srcdir ;;
30646 *) # Relative path.
30647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30651 # Do not use `cd foo && pwd` to compute absolute paths, because
30652 # the directories may not exist.
30654 .) ac_abs_builddir="$ac_dir";;
30657 .) ac_abs_builddir=`pwd`;;
30658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30662 case $ac_abs_builddir in
30663 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30665 case ${ac_top_builddir}. in
30666 .) ac_abs_top_builddir=$ac_abs_builddir;;
30667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30671 case $ac_abs_builddir in
30672 .) ac_abs_srcdir=$ac_srcdir;;
30675 .) ac_abs_srcdir=$ac_abs_builddir;;
30676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30680 case $ac_abs_builddir in
30681 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30683 case $ac_top_srcdir in
30684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30696 if test x"$ac_file" != x-; then
30697 { echo "$as_me:$LINENO: creating $ac_file" >&5
30698 echo "$as_me: creating $ac_file" >&6;}
30701 # Let's still pretend it is `configure' which instantiates (i.e., don't
30702 # use $as_me), people would be surprised to read:
30703 # /* config.h. Generated by config.status. */
30704 if test x"$ac_file" = x-; then
30707 configure_input="$ac_file. "
30709 configure_input=$configure_input"Generated from `echo $ac_file_in |
30710 sed 's,.*/,,'` by configure."
30712 # First look for the input files in the build tree, otherwise in the
30714 ac_file_inputs=`IFS=:
30715 for f in $ac_file_in; do
30717 -) echo $tmp/stdin ;;
30719 # Absolute (can't be DOS-style, as IFS=:)
30720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30721 echo "$as_me: error: cannot find input file: $f" >&2;}
30722 { (exit 1); exit 1; }; }
30725 if test -f "$f"; then
30728 elif test -f "$srcdir/$f"; then
30733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30734 echo "$as_me: error: cannot find input file: $f" >&2;}
30735 { (exit 1); exit 1; }; }
30738 done` || { (exit 1); exit 1; }
30740 cat >>$CONFIG_STATUS <<_ACEOF
30744 cat >>$CONFIG_STATUS <<\_ACEOF
30746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30747 s,@configure_input@,$configure_input,;t t
30748 s,@srcdir@,$ac_srcdir,;t t
30749 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30750 s,@top_srcdir@,$ac_top_srcdir,;t t
30751 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30752 s,@builddir@,$ac_builddir,;t t
30753 s,@abs_builddir@,$ac_abs_builddir,;t t
30754 s,@top_builddir@,$ac_top_builddir,;t t
30755 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30756 s,@INSTALL@,$ac_INSTALL,;t t
30757 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30759 if test x"$ac_file" != x-; then
30760 mv $tmp/out $ac_file
30768 cat >>$CONFIG_STATUS <<\_ACEOF
30771 # CONFIG_HEADER section.
30774 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30775 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30777 # ac_d sets the value in "#define NAME VALUE" lines.
30778 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30779 ac_dB='[ ].*$,\1#\2'
30782 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30783 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30784 ac_uB='$,\1#\2define\3'
30788 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30791 - | *:- | *:-:* ) # input from stdin
30793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30797 * ) ac_file_in=$ac_file.in ;;
30800 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30801 echo "$as_me: creating $ac_file" >&6;}
30803 # First look for the input files in the build tree, otherwise in the
30805 ac_file_inputs=`IFS=:
30806 for f in $ac_file_in; do
30808 -) echo $tmp/stdin ;;
30810 # Absolute (can't be DOS-style, as IFS=:)
30811 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30812 echo "$as_me: error: cannot find input file: $f" >&2;}
30813 { (exit 1); exit 1; }; }
30814 # Do quote $f, to prevent DOS paths from being IFS'd.
30817 if test -f "$f"; then
30820 elif test -f "$srcdir/$f"; then
30825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30826 echo "$as_me: error: cannot find input file: $f" >&2;}
30827 { (exit 1); exit 1; }; }
30830 done` || { (exit 1); exit 1; }
30831 # Remove the trailing spaces.
30832 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30836 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30837 # `conftest.undefs', that substitutes the proper values into
30838 # config.h.in to produce config.h. The first handles `#define'
30839 # templates, and the second `#undef' templates.
30840 # And first: Protect against being on the right side of a sed subst in
30841 # config.status. Protect against being in an unquoted here document
30842 # in config.status.
30843 rm -f conftest.defines conftest.undefs
30844 # Using a here document instead of a string reduces the quoting nightmare.
30845 # Putting comments in sed scripts is not portable.
30847 # `end' is used to avoid that the second main sed command (meant for
30848 # 0-ary CPP macros) applies to n-ary macro definitions.
30849 # See the Autoconf documentation for `clear'.
30850 cat >confdef2sed.sed <<\_ACEOF
30855 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30857 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30860 # If some macros were called several times there might be several times
30861 # the same #defines, which is useless. Nevertheless, we may not want to
30862 # sort them, since we want the *last* AC-DEFINE to be honored.
30863 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30864 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30865 rm -f confdef2sed.sed
30867 # This sed command replaces #undef with comments. This is necessary, for
30868 # example, in the case of _POSIX_SOURCE, which is predefined and required
30869 # on some systems where configure will not decide to define it.
30870 cat >>conftest.undefs <<\_ACEOF
30871 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30874 # Break up conftest.defines because some shells have a limit on the size
30875 # of here documents, and old seds have small limits too (100 cmds).
30876 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30877 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30878 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30879 echo ' :' >>$CONFIG_STATUS
30880 rm -f conftest.tail
30881 while grep . conftest.defines >/dev/null
30883 # Write a limited-size here document to $tmp/defines.sed.
30884 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30885 # Speed up: don't consider the non `#define' lines.
30886 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30887 # Work around the forget-to-reset-the-flag bug.
30888 echo 't clr' >>$CONFIG_STATUS
30889 echo ': clr' >>$CONFIG_STATUS
30890 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30892 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30894 mv $tmp/out $tmp/in
30896 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30897 rm -f conftest.defines
30898 mv conftest.tail conftest.defines
30900 rm -f conftest.defines
30901 echo ' fi # grep' >>$CONFIG_STATUS
30902 echo >>$CONFIG_STATUS
30904 # Break up conftest.undefs because some shells have a limit on the size
30905 # of here documents, and old seds have small limits too (100 cmds).
30906 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30907 rm -f conftest.tail
30908 while grep . conftest.undefs >/dev/null
30910 # Write a limited-size here document to $tmp/undefs.sed.
30911 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30912 # Speed up: don't consider the non `#undef'
30913 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30914 # Work around the forget-to-reset-the-flag bug.
30915 echo 't clr' >>$CONFIG_STATUS
30916 echo ': clr' >>$CONFIG_STATUS
30917 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30919 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30921 mv $tmp/out $tmp/in
30923 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30924 rm -f conftest.undefs
30925 mv conftest.tail conftest.undefs
30927 rm -f conftest.undefs
30929 cat >>$CONFIG_STATUS <<\_ACEOF
30930 # Let's still pretend it is `configure' which instantiates (i.e., don't
30931 # use $as_me), people would be surprised to read:
30932 # /* config.h. Generated by config.status. */
30933 if test x"$ac_file" = x-; then
30934 echo "/* Generated by configure. */" >$tmp/config.h
30936 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30938 cat $tmp/in >>$tmp/config.h
30940 if test x"$ac_file" != x-; then
30941 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30943 echo "$as_me: $ac_file is unchanged" >&6;}
30945 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30947 X"$ac_file" : 'X\(//\)[^/]' \| \
30948 X"$ac_file" : 'X\(//\)$' \| \
30949 X"$ac_file" : 'X\(/\)' \| \
30950 . : '\(.\)' 2>/dev/null ||
30952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30954 /^X\(\/\/\)$/{ s//\1/; q; }
30955 /^X\(\/\).*/{ s//\1/; q; }
30957 { if $as_mkdir_p; then
30962 while test ! -d "$as_dir"; do
30963 as_dirs="$as_dir $as_dirs"
30964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30966 X"$as_dir" : 'X\(//\)[^/]' \| \
30967 X"$as_dir" : 'X\(//\)$' \| \
30968 X"$as_dir" : 'X\(/\)' \| \
30969 . : '\(.\)' 2>/dev/null ||
30971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30973 /^X\(\/\/\)$/{ s//\1/; q; }
30974 /^X\(\/\).*/{ s//\1/; q; }
30977 test ! -n "$as_dirs" || mkdir $as_dirs
30978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30979 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30980 { (exit 1); exit 1; }; }; }
30983 mv $tmp/config.h $ac_file
30987 rm -f $tmp/config.h
30991 cat >>$CONFIG_STATUS <<\_ACEOF
30994 # CONFIG_LINKS section.
30997 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30998 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30999 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31001 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
31002 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
31004 if test ! -r $srcdir/$ac_source; then
31005 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
31006 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
31007 { (exit 1); exit 1; }; }
31011 # Make relative symlinks.
31012 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
31013 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31014 X"$ac_dest" : 'X\(//\)[^/]' \| \
31015 X"$ac_dest" : 'X\(//\)$' \| \
31016 X"$ac_dest" : 'X\(/\)' \| \
31017 . : '\(.\)' 2>/dev/null ||
31019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31021 /^X\(\/\/\)$/{ s//\1/; q; }
31022 /^X\(\/\).*/{ s//\1/; q; }
31024 { if $as_mkdir_p; then
31025 mkdir -p "$ac_dest_dir"
31027 as_dir="$ac_dest_dir"
31029 while test ! -d "$as_dir"; do
31030 as_dirs="$as_dir $as_dirs"
31031 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31033 X"$as_dir" : 'X\(//\)[^/]' \| \
31034 X"$as_dir" : 'X\(//\)$' \| \
31035 X"$as_dir" : 'X\(/\)' \| \
31036 . : '\(.\)' 2>/dev/null ||
31038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31040 /^X\(\/\/\)$/{ s//\1/; q; }
31041 /^X\(\/\).*/{ s//\1/; q; }
31044 test ! -n "$as_dirs" || mkdir $as_dirs
31045 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31046 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31047 { (exit 1); exit 1; }; }; }
31051 if test "$ac_dest_dir" != .; then
31052 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31053 # A "../" for each directory in $ac_dir_suffix.
31054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31056 ac_dir_suffix= ac_top_builddir=
31060 .) # No --srcdir option. We are building in place.
31062 if test -z "$ac_top_builddir"; then
31065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31067 [\\/]* | ?:[\\/]* ) # Absolute path.
31068 ac_srcdir=$srcdir$ac_dir_suffix;
31069 ac_top_srcdir=$srcdir ;;
31070 *) # Relative path.
31071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31075 # Do not use `cd foo && pwd` to compute absolute paths, because
31076 # the directories may not exist.
31078 .) ac_abs_builddir="$ac_dest_dir";;
31080 case "$ac_dest_dir" in
31081 .) ac_abs_builddir=`pwd`;;
31082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31083 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31086 case $ac_abs_builddir in
31087 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31089 case ${ac_top_builddir}. in
31090 .) ac_abs_top_builddir=$ac_abs_builddir;;
31091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31095 case $ac_abs_builddir in
31096 .) ac_abs_srcdir=$ac_srcdir;;
31099 .) ac_abs_srcdir=$ac_abs_builddir;;
31100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31104 case $ac_abs_builddir in
31105 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31107 case $ac_top_srcdir in
31108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31116 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31117 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31120 # Try a symlink, then a hard link, then a copy.
31121 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31122 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31123 cp -p $srcdir/$ac_source $ac_dest ||
31124 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31125 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31126 { (exit 1); exit 1; }; }
31129 cat >>$CONFIG_STATUS <<\_ACEOF
31132 # CONFIG_COMMANDS section.
31134 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31135 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31136 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31137 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31138 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31139 X"$ac_dest" : 'X\(//\)[^/]' \| \
31140 X"$ac_dest" : 'X\(//\)$' \| \
31141 X"$ac_dest" : 'X\(/\)' \| \
31142 . : '\(.\)' 2>/dev/null ||
31144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31146 /^X\(\/\/\)$/{ s//\1/; q; }
31147 /^X\(\/\).*/{ s//\1/; q; }
31149 { if $as_mkdir_p; then
31154 while test ! -d "$as_dir"; do
31155 as_dirs="$as_dir $as_dirs"
31156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31158 X"$as_dir" : 'X\(//\)[^/]' \| \
31159 X"$as_dir" : 'X\(//\)$' \| \
31160 X"$as_dir" : 'X\(/\)' \| \
31161 . : '\(.\)' 2>/dev/null ||
31163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31165 /^X\(\/\/\)$/{ s//\1/; q; }
31166 /^X\(\/\).*/{ s//\1/; q; }
31169 test ! -n "$as_dirs" || mkdir $as_dirs
31170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31172 { (exit 1); exit 1; }; }; }
31176 if test "$ac_dir" != .; then
31177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31178 # A "../" for each directory in $ac_dir_suffix.
31179 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31181 ac_dir_suffix= ac_top_builddir=
31185 .) # No --srcdir option. We are building in place.
31187 if test -z "$ac_top_builddir"; then
31190 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31192 [\\/]* | ?:[\\/]* ) # Absolute path.
31193 ac_srcdir=$srcdir$ac_dir_suffix;
31194 ac_top_srcdir=$srcdir ;;
31195 *) # Relative path.
31196 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31197 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31200 # Do not use `cd foo && pwd` to compute absolute paths, because
31201 # the directories may not exist.
31203 .) ac_abs_builddir="$ac_dir";;
31206 .) ac_abs_builddir=`pwd`;;
31207 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31208 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31211 case $ac_abs_builddir in
31212 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31214 case ${ac_top_builddir}. in
31215 .) ac_abs_top_builddir=$ac_abs_builddir;;
31216 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31217 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31220 case $ac_abs_builddir in
31221 .) ac_abs_srcdir=$ac_srcdir;;
31224 .) ac_abs_srcdir=$ac_abs_builddir;;
31225 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31226 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31229 case $ac_abs_builddir in
31230 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31232 case $ac_top_srcdir in
31233 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31234 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31235 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31240 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31241 echo "$as_me: executing $ac_dest commands" >&6;}
31243 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31244 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31245 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31246 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31247 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31248 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31249 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31250 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31251 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31252 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31257 cat >>$CONFIG_STATUS <<\_ACEOF
31259 { (exit 0); exit 0; }
31261 chmod +x $CONFIG_STATUS
31262 ac_clean_files=$ac_clean_files_save
31265 # configure is writing to config.log, and then calls config.status.
31266 # config.status does its own redirection, appending to config.log.
31267 # Unfortunately, on DOS this fails, as config.log is still kept open
31268 # by configure, so config.status won't be able to write to it; its
31269 # output is simply discarded. So we exec the FD to /dev/null,
31270 # effectively closing config.log, so it can be properly (re)opened and
31271 # appended to by config.status. When coming back to configure, we
31272 # need to make the FD available again.
31273 if test "$no_create" != yes; then
31275 ac_config_status_args=
31276 test "$silent" = yes &&
31277 ac_config_status_args="$ac_config_status_args --quiet"
31279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31282 # would make configure fail if this is the last instruction.
31283 $ac_cs_success || { (exit 1); exit 1; }
31287 # CONFIG_SUBDIRS section.
31289 if test "$no_recursion" != yes; then
31291 # Remove --cache-file and --srcdir arguments so they do not pile up.
31292 ac_sub_configure_args=
31294 for ac_arg in $ac_configure_args; do
31295 if test -n "$ac_prev"; then
31300 -cache-file | --cache-file | --cache-fil | --cache-fi \
31301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31302 ac_prev=cache_file ;;
31303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31307 --config-cache | -C)
31309 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31311 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31317 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31321 # Always prepend --prefix to ensure using the same prefix
31322 # in subdir configurations.
31323 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31326 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31328 # Do not complain, so a configure script can configure whichever
31329 # parts of a large source tree are present.
31330 test -d $srcdir/$ac_dir || continue
31332 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31333 echo "$as_me: configuring in $ac_dir" >&6;}
31334 { if $as_mkdir_p; then
31339 while test ! -d "$as_dir"; do
31340 as_dirs="$as_dir $as_dirs"
31341 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31343 X"$as_dir" : 'X\(//\)[^/]' \| \
31344 X"$as_dir" : 'X\(//\)$' \| \
31345 X"$as_dir" : 'X\(/\)' \| \
31346 . : '\(.\)' 2>/dev/null ||
31348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31350 /^X\(\/\/\)$/{ s//\1/; q; }
31351 /^X\(\/\).*/{ s//\1/; q; }
31354 test ! -n "$as_dirs" || mkdir $as_dirs
31355 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31356 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31357 { (exit 1); exit 1; }; }; }
31361 if test "$ac_dir" != .; then
31362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31363 # A "../" for each directory in $ac_dir_suffix.
31364 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31366 ac_dir_suffix= ac_top_builddir=
31370 .) # No --srcdir option. We are building in place.
31372 if test -z "$ac_top_builddir"; then
31375 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31377 [\\/]* | ?:[\\/]* ) # Absolute path.
31378 ac_srcdir=$srcdir$ac_dir_suffix;
31379 ac_top_srcdir=$srcdir ;;
31380 *) # Relative path.
31381 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31382 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31385 # Do not use `cd foo && pwd` to compute absolute paths, because
31386 # the directories may not exist.
31388 .) ac_abs_builddir="$ac_dir";;
31391 .) ac_abs_builddir=`pwd`;;
31392 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31393 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31396 case $ac_abs_builddir in
31397 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31399 case ${ac_top_builddir}. in
31400 .) ac_abs_top_builddir=$ac_abs_builddir;;
31401 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31402 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31405 case $ac_abs_builddir in
31406 .) ac_abs_srcdir=$ac_srcdir;;
31409 .) ac_abs_srcdir=$ac_abs_builddir;;
31410 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31411 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31414 case $ac_abs_builddir in
31415 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31417 case $ac_top_srcdir in
31418 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31419 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31420 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31427 # Check for guested configure; otherwise get Cygnus style configure.
31428 if test -f $ac_srcdir/configure.gnu; then
31429 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31430 elif test -f $ac_srcdir/configure; then
31431 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31432 elif test -f $ac_srcdir/configure.in; then
31433 ac_sub_configure=$ac_configure
31435 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31440 # The recursion is here.
31441 if test -n "$ac_sub_configure"; then
31442 # Make the cache file name correct relative to the subdirectory.
31443 case $cache_file in
31444 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31445 *) # Relative path.
31446 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31449 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31450 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31451 # The eval makes quoting arguments work.
31452 eval $ac_sub_configure $ac_sub_configure_args \
31453 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31454 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31455 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31456 { (exit 1); exit 1; }; }
31464 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31465 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31466 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31467 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31468 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31469 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31470 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31471 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31472 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31473 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31474 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}