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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP 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 LLVMGCC LLVMCC1 LLVMCC1PLUS 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-llvmgccdir Location of LLVM GCC front-end
1053 --with-tclinclude directory where tcl headers are
1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1058 include additional configurations [automatic]
1060 Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1077 Report bugs to <llvmbugs@cs.uiuc.edu>.
1081 if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1088 if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 ac_dir_suffix= ac_top_builddir=
1097 .) # No --srcdir option. We are building in place.
1099 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1115 .) ac_abs_builddir="$ac_dir";;
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
1160 test -f $ac_srcdir/configure.in; then
1162 $ac_configure --help
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1174 generated by GNU Autoconf 2.59
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1189 It was created by llvm $as_me 1.4, which was
1190 generated by GNU Autoconf 2.59. Invocation command line was
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_must_keep_next=false
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 -* ) ac_must_keep_next=true ;;
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log. We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1307 # The following way of writing the cache mishandles newlines in values,
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1330 for ac_var in $ac_subst_vars
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1337 if test -n "$ac_subst_files"; then
1344 for ac_var in $ac_subst_files
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1352 if test -s confdefs.h; then
1359 sed "/^$/d" confdefs.h | sort
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 # Predefined preprocessor variables.
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1425 if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1442 # Check that the precious variables saved in the cache have kept the same
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466 echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468 echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485 if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1535 for ac_dir in autoconf $srcdir/autoconf; do
1536 if test -f $ac_dir/install-sh; then
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 elif test -f $ac_dir/install.sh; then
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 elif test -f $ac_dir/shtool; then
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1550 if test -z "$ac_aux_dir"; then
1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1553 { (exit 1); exit 1; }; }
1555 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560 if test ${srcdir} != "." ; then
1561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1563 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
1568 for i in `ls ${srcdir}/projects`
1570 if test -d ${srcdir}/projects/${i} ; then
1575 subdirs="$subdirs projects/sample"
1579 subdirs="$subdirs projects/Stacker"
1583 subdirs="$subdirs projects/llvm-test"
1587 subdirs="$subdirs projects/llvm-reopt"
1591 subdirs="$subdirs projects/llvm-gcc"
1595 subdirs="$subdirs projects/Java"
1599 subdirs="$subdirs projects/llvm-tv"
1603 subdirs="$subdirs projects/llvm-fefw"
1607 subdirs="$subdirs projects/poolalloc"
1610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618 # Make sure we can run config.sub.
1619 $ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1624 echo "$as_me:$LINENO: checking build system type" >&5
1625 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626 if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 ac_cv_build_alias=$build_alias
1630 test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632 test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643 echo "${ECHO_T}$ac_cv_build" >&6
1645 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650 echo "$as_me:$LINENO: checking host system type" >&5
1651 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652 if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 ac_cv_host_alias=$host_alias
1656 test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665 echo "${ECHO_T}$ac_cv_host" >&6
1667 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 echo "$as_me:$LINENO: checking target system type" >&5
1673 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674 if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 ac_cv_target_alias=$target_alias
1678 test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687 echo "${ECHO_T}$ac_cv_target" >&6
1688 target=$ac_cv_target
1689 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694 # The aliases save the names the user supplied, while $host etc.
1695 # will get canonicalized.
1696 test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1699 program_prefix=${target_alias}-
1701 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1703 if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
1719 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1722 if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1725 { (exit 1); exit 1; }; }
1728 OS=$llvm_cv_platform_type
1731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1740 echo "$as_me:$LINENO: checking target architecture" >&5
1741 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1742 if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
1752 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1755 if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1760 ARCH=$llvm_cv_target_arch
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850 set dummy ${ac_tool_prefix}cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1885 if test -z "$ac_cv_prog_CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914 if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916 echo "${ECHO_T}$ac_ct_CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930 set dummy cc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1973 if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975 echo "${ECHO_T}$CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2063 test -n "$ac_ct_CC" && break
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO:" \
2080 "checking for C compiler version" >&5
2081 ac_compiler=`set X $ac_compile; echo $2`
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2098 cat >conftest.$ac_ext <<_ACEOF
2101 cat confdefs.h >>conftest.$ac_ext
2102 cat >>conftest.$ac_ext <<_ACEOF
2103 /* end confdefs.h. */
2113 ac_clean_files_save=$ac_clean_files
2114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115 # Try to create an executable without -o first, disregard a.out.
2116 # It will help us diagnose broken compilers, and finding out an intuition
2118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # Be careful to initialize this variable, since it used to be cached.
2131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2133 # b.out is created by i960 compilers.
2134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 # This is the source file.
2144 # We found the default executable, but exeext='' is most
2148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&2;}
2166 { (exit 77); exit 77; }; }
2169 ac_exeext=$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_file" >&5
2171 echo "${ECHO_T}$ac_file" >&6
2173 # Check the compiler produces executables we can run. If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178 # If not cross compiling, check that we can run a simple program.
2179 if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2188 if test "$cross_compiling" = maybe; then
2191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot run C compiled programs.
2195 If you meant to cross compile, use \`--host'.
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205 ac_clean_files=$ac_clean_files_save
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211 echo "${ECHO_T}$cross_compiling" >&6
2213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222 # work properly (i.e., refer to `conftest.exe'), while it won't with
2224 for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244 echo "${ECHO_T}$ac_cv_exeext" >&6
2246 rm -f conftest.$ac_ext
2247 EXEEXT=$ac_cv_exeext
2249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251 if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.$ac_ext <<_ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2269 rm -f conftest.o conftest.obj
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc=no
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2534 case "x$ac_cv_prog_cc_stdc" in
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 # Some people use a C++ compiler to compile C. Since we use `exit',
2545 # in C++ we need to declare it. In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696 if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 #include <sys/types.h>
2707 #include <sys/param.h>
2712 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2755 #if BYTE_ORDER != BIG_ENDIAN
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_cv_c_bigendian=no
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 # It does not; compile a test program.
2798 if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2816 _ascii (); _ebcdic ();
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2825 grep -v '^ *+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2870 /* Are we little or big endian? From Harbison&Steele. */
2874 char c[sizeof (long)];
2877 exit (u.c[sizeof (long) - 1] == 1);
2880 rm -f conftest$ac_exeext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2893 echo "$as_me: program exited with status $ac_status" >&5
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_cv_c_bigendian=yes
2900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907 case $ac_cv_c_bigendian in
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917 echo "$as_me: error: unknown endianness
2918 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2924 # Check whether --enable-optimized or --disable-optimized was given.
2925 if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2931 if test ${enableval} = "no" ; then
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2939 # Check whether --enable-jit or --disable-jit was given.
2940 if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2946 if test ${enableval} = "no"
2951 case "$llvm_cv_target_arch" in
2952 x86) JIT=TARGET_HAS_JIT=1
2954 Sparc) JIT=TARGET_HAS_JIT=1
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2963 # Check whether --enable-doxygen or --disable-doxygen was given.
2964 if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
2970 case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2973 no) ENABLE_DOXYGEN=0
2975 default) ENABLE_DOXYGEN=0
2977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2983 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984 if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2990 if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015 # On Suns, sometimes $CPP names a directory.
3016 if test -n "$CPP" && test -d "$CPP"; then
3019 if test -z "$CPP"; then
3020 if test "${ac_cv_prog_CPP+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 # Double quotes because CPP needs to be expanded
3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3027 for ac_c_preproc_warn_flag in '' yes
3029 # Use a header file that comes with gcc, so configuring glibc
3030 # with a fresh cross-compiler works.
3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032 # <limits.h> exists even on freestanding compilers.
3033 # On the NeXT, cc -E runs the code through the compiler's parser,
3034 # not just through cpp. "Syntax error" is here to catch this case.
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3042 # include <limits.h>
3044 # include <assert.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065 if test -z "$ac_cpp_err"; then
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 # Broken: fails on valid input.
3074 rm -f conftest.err conftest.$ac_ext
3076 # OK, works on sane cases. Now check whether non-existent headers
3077 # can be detected and how.
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 #include <ac_nonexistent.h>
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103 if test -z "$ac_cpp_err"; then
3104 # Broken: success on invalid input.
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 # Passes both tests.
3114 rm -f conftest.err conftest.$ac_ext
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then
3131 echo "$as_me:$LINENO: result: $CPP" >&5
3132 echo "${ECHO_T}$CPP" >&6
3134 for ac_c_preproc_warn_flag in '' yes
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3149 # include <limits.h>
3151 # include <assert.h>
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172 if test -z "$ac_cpp_err"; then
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 # Broken: fails on valid input.
3181 rm -f conftest.err conftest.$ac_ext
3183 # OK, works on sane cases. Now check whether non-existent headers
3184 # can be detected and how.
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #include <ac_nonexistent.h>
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3210 if test -z "$ac_cpp_err"; then
3211 # Broken: success on invalid input.
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 # Passes both tests.
3221 rm -f conftest.err conftest.$ac_ext
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252 echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 if test -n "$CC"; then
3278 echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6
3281 echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3285 test -n "$CC" && break
3288 if test -z "$CC"; then
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 if test -n "$ac_ct_CC"; then
3300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_CC="$ac_prog"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321 echo "${ECHO_T}$ac_ct_CC" >&6
3323 echo "$as_me:$LINENO: result: no" >&5
3324 echo "${ECHO_T}no" >&6
3327 test -n "$ac_ct_CC" && break
3334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338 { (exit 1); exit 1; }; }
3340 # Provide some information about the compiler.
3341 echo "$as_me:$LINENO:" \
3342 "checking for C compiler version" >&5
3343 ac_compiler=`set X $ac_compile; echo $2`
3344 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418 GCC=`test $ac_compiler_gnu = yes && echo yes`
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424 if test "${ac_cv_prog_cc_g+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475 if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477 elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3484 if test "$GCC" = yes; then
3490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 ac_cv_prog_cc_stdc=no
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3505 #include <sys/types.h>
3506 #include <sys/stat.h>
3507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508 struct buf { int x; };
3509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510 static char *e (p, i)
3516 static char *f (char * (*g) (char **, int), char **p, ...)
3521 s = g (p, va_arg (v,int));
3526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std1 is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std1. */
3533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3549 # Don't try gcc -ansi; that turns off useful extensions and
3550 # breaks some systems' header files.
3551 # AIX -qlanglvl=ansi
3552 # Ultrix and OSF/1 -std1
3553 # HP-UX 10.20 and later -Ae
3554 # HP-UX older versions -Aa -D_HPUX_SOURCE
3555 # SVR4 -Xc -D__EXTENSIONS__
3556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558 CC="$ac_save_CC $ac_arg"
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_prog_cc_stdc=$ac_arg
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext
3590 rm -f conftest.$ac_ext conftest.$ac_objext
3595 case "x$ac_cv_prog_cc_stdc" in
3597 echo "$as_me:$LINENO: result: none needed" >&5
3598 echo "${ECHO_T}none needed" >&6 ;;
3600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602 CC="$CC $ac_cv_prog_cc_stdc" ;;
3605 # Some people use a C++ compiler to compile C. Since we use `exit',
3606 # in C++ we need to declare it. In case someone uses the same compiler
3607 # for both compiling C and C++ we need to have the C++ compiler decide
3608 # the declaration of exit, since it's the most demanding environment.
3609 cat >conftest.$ac_ext <<_ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 for ac_declaration in \
3638 'extern "C" void std::exit (int) throw (); using std::exit;' \
3639 'extern "C" void std::exit (int); using std::exit;' \
3640 'extern "C" void exit (int) throw ();' \
3641 'extern "C" void exit (int);' \
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736 if test -n "$ac_declaration"; then
3737 echo '#ifdef __cplusplus' >>confdefs.h
3738 echo $ac_declaration >>confdefs.h
3739 echo '#endif' >>confdefs.h
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
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760 for ac_prog in $CCC g++
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test -n "$CXX"; then
3790 echo "$as_me:$LINENO: result: $CXX" >&5
3791 echo "${ECHO_T}$CXX" >&6
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 test -n "$CXX" && break
3800 if test -z "$CXX"; then
3802 for ac_prog in $CCC g++
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test -n "$ac_ct_CXX"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CXX="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831 if test -n "$ac_ct_CXX"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833 echo "${ECHO_T}$ac_ct_CXX" >&6
3835 echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3839 test -n "$ac_ct_CXX" && break
3841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3847 # Provide some information about the compiler.
3848 echo "$as_me:$LINENO:" \
3849 "checking for C++ compiler version" >&5
3850 ac_compiler=`set X $ac_compile; echo $2`
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852 (eval $ac_compiler --version </dev/null >&5) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857 (eval $ac_compiler -v </dev/null >&5) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }
3861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862 (eval $ac_compiler -V </dev/null >&5) 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3867 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_cxx_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3923 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3929 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_prog_cxx_g=yes
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982 if test "$ac_test_CXXFLAGS" = set; then
3983 CXXFLAGS=$ac_save_CXXFLAGS
3984 elif test $ac_cv_prog_cxx_g = yes; then
3985 if test "$GXX" = yes; then
3991 if test "$GXX" = yes; then
3997 for ac_declaration in \
3999 'extern "C" void std::exit (int) throw (); using std::exit;' \
4000 'extern "C" void std::exit (int); using std::exit;' \
4001 'extern "C" void exit (int) throw ();' \
4002 'extern "C" void exit (int);' \
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4097 if test -n "$ac_declaration"; then
4098 echo '#ifdef __cplusplus' >>confdefs.h
4099 echo $ac_declaration >>confdefs.h
4100 echo '#endif' >>confdefs.h
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 echo "$as_me:$LINENO: checking " >&5
4110 echo $ECHO_N "checking ... $ECHO_C" >&6
4111 if test "${ac_cv_has_flex+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 for ac_prog in flex lex
4116 # Extract the first word of "$ac_prog", so it can be a program name with args.
4117 set dummy $ac_prog; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LEX+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 if test -n "$LEX"; then
4124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_LEX="$ac_prog"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 if test -n "$LEX"; then
4144 echo "$as_me:$LINENO: result: $LEX" >&5
4145 echo "${ECHO_T}$LEX" >&6
4147 echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4151 test -n "$LEX" && break
4153 test -n "$LEX" || LEX=":"
4155 if test -z "$LEXLIB"
4157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 ac_check_lib_save_LIBS=$LIBS
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4171 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4186 rm -f conftest.$ac_objext conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_lib_fl_yywrap=yes
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_lib_fl_yywrap=no
4215 rm -f conftest.err conftest.$ac_objext \
4216 conftest$ac_exeext conftest.$ac_ext
4217 LIBS=$ac_check_lib_save_LIBS
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221 if test $ac_cv_lib_fl_yywrap = yes; then
4224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 ac_check_lib_save_LIBS=$LIBS
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4238 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_l_yywrap=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_cv_lib_l_yywrap=no
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284 LIBS=$ac_check_lib_save_LIBS
4286 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288 if test $ac_cv_lib_l_yywrap = yes; then
4296 if test "x$LEX" != "x:"; then
4297 echo "$as_me:$LINENO: checking lex output file root" >&5
4298 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299 if test "${ac_cv_prog_lex_root+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 # The minimal lex program is just a single line: %%. But some broken lexes
4303 # (Solaris, I think it was) want two %% lines, so accommodate them.
4304 cat >conftest.l <<_ACEOF
4308 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309 (eval $LEX conftest.l) 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313 if test -f lex.yy.c; then
4314 ac_cv_prog_lex_root=lex.yy
4315 elif test -f lexyy.c; then
4316 ac_cv_prog_lex_root=lexyy
4318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320 { (exit 1); exit 1; }; }
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4328 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 # POSIX says lex can declare yytext either as a pointer or an array; the
4334 # default is implementation-dependent. Figure out which it is, since
4335 # not all implementations provide the %pointer and %array declarations.
4336 ac_cv_prog_lex_yytext_pointer=no
4337 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4339 LIBS="$LIBS $LEXLIB"
4340 cat >conftest.$ac_ext <<_ACEOF
4341 `cat $LEX_OUTPUT_ROOT.c`
4343 rm -f conftest.$ac_objext conftest$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_lex_yytext_pointer=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4371 rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
4374 rm -f "${LEX_OUTPUT_ROOT}.c"
4377 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4381 cat >>confdefs.h <<\_ACEOF
4382 #define YYTEXT_POINTER 1
4390 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391 echo "${ECHO_T}$ac_cv_has_flex" >&6
4392 if test "$LEX" != "flex"; then
4393 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394 echo "$as_me: error: flex not found but required" >&2;}
4395 { (exit 1); exit 1; }; }
4401 echo "$as_me:$LINENO: checking " >&5
4402 echo $ECHO_N "checking ... $ECHO_C" >&6
4403 if test "${llvm_cv_has_bison+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 for ac_prog in 'bison -y' byacc
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409 set dummy $ac_prog; ac_word=$2
4410 echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412 if test "${ac_cv_prog_YACC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$YACC"; then
4416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_YACC="$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 YACC=$ac_cv_prog_YACC
4435 if test -n "$YACC"; then
4436 echo "$as_me:$LINENO: result: $YACC" >&5
4437 echo "${ECHO_T}$YACC" >&6
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4443 test -n "$YACC" && break
4445 test -n "$YACC" || YACC="yacc"
4449 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4451 if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453 echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4461 echo "$as_me:$LINENO: checking for GNU make" >&5
4462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463 if test "${llvm_cv_gnu_make_command+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 llvm_cv_gnu_make_command=''
4467 for a in "$MAKE" make gmake gnumake ; do
4468 if test -z "$a" ; then continue ; fi ;
4469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4471 llvm_cv_gnu_make_command=$a ;
4476 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4482 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483 echo "${ECHO_T}\"Not found\"" >&6;
4487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4490 if test "$LN_S" = "ln -s"; then
4491 echo "$as_me:$LINENO: result: yes" >&5
4492 echo "${ECHO_T}yes" >&6
4494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495 echo "${ECHO_T}no, using $LN_S" >&6
4498 # Extract the first word of "date", so it can be a program name with args.
4499 set dummy date; ac_word=$2
4500 echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502 if test "${ac_cv_path_DATE+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4528 DATE=$ac_cv_path_DATE
4530 if test -n "$DATE"; then
4531 echo "$as_me:$LINENO: result: $DATE" >&5
4532 echo "${ECHO_T}$DATE" >&6
4534 echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4538 # Extract the first word of "find", so it can be a program name with args.
4539 set dummy find; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_path_FIND+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4568 FIND=$ac_cv_path_FIND
4570 if test -n "$FIND"; then
4571 echo "$as_me:$LINENO: result: $FIND" >&5
4572 echo "${ECHO_T}$FIND" >&6
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 # Extract the first word of "grep", so it can be a program name with args.
4579 set dummy grep; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_path_GREP+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4608 GREP=$ac_cv_path_GREP
4610 if test -n "$GREP"; then
4611 echo "$as_me:$LINENO: result: $GREP" >&5
4612 echo "${ECHO_T}$GREP" >&6
4614 echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4618 # Extract the first word of "mkdir", so it can be a program name with args.
4619 set dummy mkdir; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_path_MKDIR+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4648 MKDIR=$ac_cv_path_MKDIR
4650 if test -n "$MKDIR"; then
4651 echo "$as_me:$LINENO: result: $MKDIR" >&5
4652 echo "${ECHO_T}$MKDIR" >&6
4654 echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4658 # Extract the first word of "mv", so it can be a program name with args.
4659 set dummy mv; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_path_MV+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4690 if test -n "$MV"; then
4691 echo "$as_me:$LINENO: result: $MV" >&5
4692 echo "${ECHO_T}$MV" >&6
4694 echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6
4698 # Extract the first word of "pax", so it can be a program name with args.
4699 set dummy pax; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_path_PAX+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4730 if test -n "$PAX"; then
4731 echo "$as_me:$LINENO: result: $PAX" >&5
4732 echo "${ECHO_T}$PAX" >&6
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 RANLIB=$ac_cv_prog_RANLIB
4766 if test -n "$RANLIB"; then
4767 echo "$as_me:$LINENO: result: $RANLIB" >&5
4768 echo "${ECHO_T}$RANLIB" >&6
4770 echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4775 if test -z "$ac_cv_prog_RANLIB"; then
4776 ac_ct_RANLIB=$RANLIB
4777 # Extract the first word of "ranlib", so it can be a program name with args.
4778 set dummy ranlib; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$ac_ct_RANLIB"; then
4785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_RANLIB="ranlib"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805 if test -n "$ac_ct_RANLIB"; then
4806 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4813 RANLIB=$ac_ct_RANLIB
4815 RANLIB="$ac_cv_prog_RANLIB"
4818 # Extract the first word of "rm", so it can be a program name with args.
4819 set dummy rm; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_path_RM+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4850 if test -n "$RM"; then
4851 echo "$as_me:$LINENO: result: $RM" >&5
4852 echo "${ECHO_T}$RM" >&6
4854 echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4858 # Extract the first word of "sed", so it can be a program name with args.
4859 set dummy sed; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_path_SED+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4890 if test -n "$SED"; then
4891 echo "$as_me:$LINENO: result: $SED" >&5
4892 echo "${ECHO_T}$SED" >&6
4894 echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4898 # Extract the first word of "tar", so it can be a program name with args.
4899 set dummy tar; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_TAR+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4930 if test -n "$TAR"; then
4931 echo "$as_me:$LINENO: result: $TAR" >&5
4932 echo "${ECHO_T}$TAR" >&6
4934 echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4939 # Find a good install program. We prefer a C program (faster),
4940 # so one script is as good as another. But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954 if test -z "$INSTALL"; then
4955 if test "${ac_cv_path_install+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 # Account for people who put trailing slashes in PATH elements.
4965 ./ | .// | /cC/* | \
4966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4970 # OSF1 and SCO ODT 3.0 have their own names for install.
4971 # Don't use installbsd from OSF since it installs stuff as root
4973 for ac_prog in ginstall scoinst install; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976 if test $ac_prog = install &&
4977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # AIX install. It has an incompatible calling convention.
4980 elif test $ac_prog = install &&
4981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982 # program-specific install script used by HP pwplus--don't use.
4985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4997 if test "${ac_cv_path_install+set}" = set; then
4998 INSTALL=$ac_cv_path_install
5000 # As a last resort, use the slow shell script. We don't cache a
5001 # path for INSTALL within a source directory, because that will
5002 # break other packages using the cache if that directory is
5003 # removed, or if the path is relative.
5004 INSTALL=$ac_install_sh
5007 echo "$as_me:$LINENO: result: $INSTALL" >&5
5008 echo "${ECHO_T}$INSTALL" >&6
5010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011 # It thinks the first close brace ends the variable substitution.
5012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5019 # Extract the first word of "bzip2", so it can be a program name with args.
5020 set dummy bzip2; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_path_BZIP2+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5049 BZIP2=$ac_cv_path_BZIP2
5051 if test -n "$BZIP2"; then
5052 echo "$as_me:$LINENO: result: $BZIP2" >&5
5053 echo "${ECHO_T}$BZIP2" >&6
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5059 # Extract the first word of "dot", so it can be a program name with args.
5060 set dummy dot; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_path_DOT+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5091 if test -n "$DOT"; then
5092 echo "$as_me:$LINENO: result: $DOT" >&5
5093 echo "${ECHO_T}$DOT" >&6
5095 echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5099 # Extract the first word of "doxygen", so it can be a program name with args.
5100 set dummy doxygen; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5129 DOXYGEN=$ac_cv_path_DOXYGEN
5131 if test -n "$DOXYGEN"; then
5132 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133 echo "${ECHO_T}$DOXYGEN" >&6
5135 echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6
5139 # Extract the first word of "etags", so it can be a program name with args.
5140 set dummy etags; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_path_ETAGS+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5169 ETAGS=$ac_cv_path_ETAGS
5171 if test -n "$ETAGS"; then
5172 echo "$as_me:$LINENO: result: $ETAGS" >&5
5173 echo "${ECHO_T}$ETAGS" >&6
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5179 # Extract the first word of "groff", so it can be a program name with args.
5180 set dummy groff; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_path_GROFF+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5209 GROFF=$ac_cv_path_GROFF
5211 if test -n "$GROFF"; then
5212 echo "$as_me:$LINENO: result: $GROFF" >&5
5213 echo "${ECHO_T}$GROFF" >&6
5215 echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy gzip; ac_word=$2
5221 echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 if test "${ac_cv_path_GZIP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5249 GZIP=$ac_cv_path_GZIP
5251 if test -n "$GZIP"; then
5252 echo "$as_me:$LINENO: result: $GZIP" >&5
5253 echo "${ECHO_T}$GZIP" >&6
5255 echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 # Extract the first word of "pod2html", so it can be a program name with args.
5260 set dummy pod2html; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_path_POD2HTML+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5289 POD2HTML=$ac_cv_path_POD2HTML
5291 if test -n "$POD2HTML"; then
5292 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293 echo "${ECHO_T}$POD2HTML" >&6
5295 echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5299 # Extract the first word of "pod2man", so it can be a program name with args.
5300 set dummy pod2man; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_POD2MAN+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5329 POD2MAN=$ac_cv_path_POD2MAN
5331 if test -n "$POD2MAN"; then
5332 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333 echo "${ECHO_T}$POD2MAN" >&6
5335 echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5339 # Extract the first word of "runtest", so it can be a program name with args.
5340 set dummy runtest; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_path_RUNTEST+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5369 RUNTEST=$ac_cv_path_RUNTEST
5371 if test -n "$RUNTEST"; then
5372 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5373 echo "${ECHO_T}$RUNTEST" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5381 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5382 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5384 # Check whether --with-tclinclude or --without-tclinclude was given.
5385 if test "${with_tclinclude+set}" = set; then
5386 withval="$with_tclinclude"
5387 with_tclinclude=${withval}
5391 if test "${ac_cv_path_tclsh+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 if test x"${with_tclinclude}" != x ; then
5396 if test -f ${with_tclinclude}/tclsh ; then
5397 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5398 elif test -f ${with_tclinclude}/src/tclsh ; then
5399 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5401 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5402 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5403 { (exit 1); exit 1; }; }
5407 if test x"${ac_cv_path_tclsh}" = x ; then
5408 echo "$as_me:$LINENO: result: none" >&5
5409 echo "${ECHO_T}none" >&6
5410 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
5412 # Extract the first word of "$ac_prog", so it can be a program name with args.
5413 set dummy $ac_prog; ac_word=$2
5414 echo "$as_me:$LINENO: checking for $ac_word" >&5
5415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5416 if test "${ac_cv_path_TCLSH+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 TCLSH=$ac_cv_path_TCLSH
5443 if test -n "$TCLSH"; then
5444 echo "$as_me:$LINENO: result: $TCLSH" >&5
5445 echo "${ECHO_T}$TCLSH" >&6
5447 echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5451 test -n "$TCLSH" && break
5454 if test x"${TCLSH}" = x ; then
5455 ac_cv_path_tclsh='';
5457 ac_cv_path_tclsh="${TCLSH}";
5460 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5461 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5462 TCLSH="${ac_cv_path_tclsh}"
5468 # Extract the first word of "zip", so it can be a program name with args.
5469 set dummy zip; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_path_ZIP+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5500 if test -n "$ZIP"; then
5501 echo "$as_me:$LINENO: result: $ZIP" >&5
5502 echo "${ECHO_T}$ZIP" >&6
5504 echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5509 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5510 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5511 if test "${llvm_cv_link_use_r+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_cpp='$CPP $CPPFLAGS'
5516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521 CFLAGS="$CFLAGS -Wl,-R."
5522 cat >conftest.$ac_ext <<_ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5532 int main() { return 0; }
5537 rm -f conftest.$ac_objext conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest$ac_exeext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 llvm_cv_link_use_r=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 llvm_cv_link_use_r=no
5566 rm -f conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext conftest.$ac_ext
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5577 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5578 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5579 if test "$llvm_cv_link_use_r" = yes ; then
5581 cat >>confdefs.h <<\_ACEOF
5582 #define HAVE_LINK_R 1
5590 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5591 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5592 if test "${ac_cv_c_const+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5605 /* FIXME: Include the comments suggested by Paul. */
5607 /* Ultrix mips cc rejects this. */
5608 typedef int charset[2];
5610 /* SunOS 4.1.1 cc rejects this. */
5611 char const *const *ccp;
5613 /* NEC SVR4.0.2 mips cc rejects this. */
5614 struct point {int x, y;};
5615 static struct point const zero = {0,0};
5616 /* AIX XL C 1.02.0.0 rejects this.
5617 It does not let you subtract one const X* pointer from another in
5618 an arm of an if-expression whose if-part is not a constant
5620 const char *g = "string";
5621 ccp = &g + (g ? g-g : 0);
5622 /* HPUX 7.0 cc rejects these. */
5625 ccp = (char const *const *) p;
5626 { /* SCO 3.2v4 cc rejects this. */
5628 char const *s = 0 ? (char *) 0 : (char const *) 0;
5632 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5634 const int *foo = &x[0];
5637 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5638 typedef const int *iptr;
5642 { /* AIX XL C 1.02.0.0 rejects this saying
5643 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5644 struct s { int j; const int *ap[3]; };
5645 struct s *b; b->j = 5;
5647 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5656 rm -f conftest.$ac_objext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try='test -s conftest.$ac_objext'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5688 echo "${ECHO_T}$ac_cv_c_const" >&6
5689 if test $ac_cv_c_const = no; then
5691 cat >>confdefs.h <<\_ACEOF
5698 echo "$as_me:$LINENO: checking for egrep" >&5
5699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5700 if test "${ac_cv_prog_egrep+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5704 then ac_cv_prog_egrep='grep -E'
5705 else ac_cv_prog_egrep='egrep'
5708 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5709 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5710 EGREP=$ac_cv_prog_egrep
5713 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5714 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5715 if test "${ac_cv_header_stdc+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 cat >conftest.$ac_ext <<_ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>conftest.er1
5741 grep -v '^ *+' conftest.er1 >conftest.err
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_header_stdc=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 ac_cv_header_stdc=no
5766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5768 if test $ac_cv_header_stdc = yes; then
5769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5770 cat >conftest.$ac_ext <<_ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780 $EGREP "memchr" >/dev/null 2>&1; then
5783 ac_cv_header_stdc=no
5789 if test $ac_cv_header_stdc = yes; then
5790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5801 $EGREP "free" >/dev/null 2>&1; then
5804 ac_cv_header_stdc=no
5810 if test $ac_cv_header_stdc = yes; then
5811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5812 if test "$cross_compiling" = yes; then
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5822 #if ((' ' & 0x0FF) == 0x020)
5823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5826 # define ISLOWER(c) \
5827 (('a' <= (c) && (c) <= 'i') \
5828 || ('j' <= (c) && (c) <= 'r') \
5829 || ('s' <= (c) && (c) <= 'z'))
5830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5838 for (i = 0; i < 256; i++)
5839 if (XOR (islower (i), ISLOWER (i))
5840 || toupper (i) != TOUPPER (i))
5845 rm -f conftest$ac_exeext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5858 echo "$as_me: program exited with status $ac_status" >&5
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_header_stdc=no
5865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5869 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5870 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5871 if test $ac_cv_header_stdc = yes; then
5873 cat >>confdefs.h <<\_ACEOF
5874 #define STDC_HEADERS 1
5885 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5886 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5887 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5888 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 eval "$as_ac_Header=yes"
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 eval "$as_ac_Header=no"
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5944 cat >>confdefs.h <<_ACEOF
5945 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5948 ac_header_dirent=$ac_hdr; break
5952 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5953 if test $ac_header_dirent = dirent.h; then
5954 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5955 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5956 if test "${ac_cv_search_opendir+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_func_search_save_LIBS=$LIBS
5960 ac_cv_search_opendir=no
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5968 /* Override any gcc2 internal prototype to avoid an error. */
5972 /* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_search_opendir="none required"
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6013 if test "$ac_cv_search_opendir" = no; then
6014 for ac_lib in dir; do
6015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_search_opendir="-l$ac_lib"
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6067 rm -f conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_func_search_save_LIBS
6073 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6074 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6075 if test "$ac_cv_search_opendir" != no; then
6076 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6081 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6083 if test "${ac_cv_search_opendir+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 ac_func_search_save_LIBS=$LIBS
6087 ac_cv_search_opendir=no
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6095 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest$ac_exeext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_search_opendir="none required"
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6138 rm -f conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140 if test "$ac_cv_search_opendir" = no; then
6142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6143 cat >conftest.$ac_ext <<_ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6150 /* Override any gcc2 internal prototype to avoid an error. */
6154 /* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6165 rm -f conftest.$ac_objext conftest$ac_exeext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_search_opendir="-l$ac_lib"
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6194 rm -f conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6198 LIBS=$ac_func_search_save_LIBS
6200 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6201 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6202 if test "$ac_cv_search_opendir" != no; then
6203 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6220 inttypes.h stdint.h unistd.h
6222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6236 #include <$ac_header>
6238 rm -f conftest.$ac_objext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240 (eval $ac_compile) 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -z "$ac_c_werror_flag"
6248 || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 eval "$as_ac_Header=yes"
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 eval "$as_ac_Header=no"
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272 cat >>confdefs.h <<_ACEOF
6273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6282 for ac_header in dlfcn.h
6284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286 echo "$as_me:$LINENO: checking for $ac_header" >&5
6287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6294 # Is the header compilable?
6295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 $ac_includes_default
6304 #include <$ac_header>
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -z "$ac_c_werror_flag"
6316 || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_header_compiler=yes
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 ac_header_compiler=no
6335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337 echo "${ECHO_T}$ac_header_compiler" >&6
6339 # Is the header present?
6340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6342 cat >conftest.$ac_ext <<_ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #include <$ac_header>
6350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } >/dev/null; then
6358 if test -s conftest.err; then
6359 ac_cpp_err=$ac_c_preproc_warn_flag
6360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6367 if test -z "$ac_cpp_err"; then
6368 ac_header_preproc=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_header_preproc=no
6375 rm -f conftest.err conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6377 echo "${ECHO_T}$ac_header_preproc" >&6
6379 # So? What about this header?
6380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6386 ac_header_preproc=yes
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6403 ## ----------------------------------- ##
6404 ## Report this to llvmbugs@cs.uiuc.edu ##
6405 ## ----------------------------------- ##
6408 sed "s/^/$as_me: WARNING: /" >&2
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 eval "$as_ac_Header=\$ac_header_preproc"
6418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6431 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6432 if test "${enable_ltdl_install+set}" = set; then
6433 enableval="$enable_ltdl_install"
6439 if test x"${enable_ltdl_install-no}" != xno; then
6441 INSTALL_LTDL_FALSE='#'
6443 INSTALL_LTDL_TRUE='#'
6449 if test x"${enable_ltdl_convenience-no}" != xno; then
6450 CONVENIENCE_LTDL_TRUE=
6451 CONVENIENCE_LTDL_FALSE='#'
6453 CONVENIENCE_LTDL_TRUE='#'
6454 CONVENIENCE_LTDL_FALSE=
6458 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6461 libname_spec='lib$name'
6469 shlibpath_overrides_runpath=unknown
6471 dynamic_linker="$host_os ld.so"
6472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6473 if test "$GCC" = yes; then
6474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6475 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6476 # if the path contains ";" then we assume it to be the separator
6477 # otherwise default to the standard path separator (i.e. ":") - it is
6478 # assumed that no part of a normal pathname contains ";" but that should
6479 # okay in the real world where ";" in dirpaths is itself problematic.
6480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6487 need_lib_prefix=unknown
6488 hardcode_into_libs=no
6490 # when you set need_version to no, make sure it does not cause -set_version
6491 # flags to be left without arguments
6492 need_version=unknown
6497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6498 shlibpath_var=LIBPATH
6500 # AIX 3 has no versioning support, so we append a major version to the name.
6501 soname_spec='${libname}${release}${shared_ext}$major'
6508 hardcode_into_libs=yes
6509 if test "$host_cpu" = ia64; then
6510 # AIX 5 supports IA64
6511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6512 shlibpath_var=LD_LIBRARY_PATH
6514 # With GCC up to 2.95.x, collect2 would create an import file
6515 # for dependence libraries. The import file would start with
6516 # the line `#! .'. This would cause the generated library to
6517 # depend on `.', always an invalid library. This was fixed in
6518 # development snapshots of GCC prior to 3.0.
6520 aix4 | aix4.[01] | aix4.[01].*)
6521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6523 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6531 # soname into executable. Probably we can add versioning support to
6532 # collect2, so additional links can be useful in future.
6533 if test "$aix_use_runtimelinking" = yes; then
6534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6535 # instead of lib<name>.a to let people know that these are not
6536 # typical AIX shared libraries.
6537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6539 # We preserve .a as extension for shared libraries through AIX4.2
6540 # and later when we are not doing run time linking.
6541 library_names_spec='${libname}${release}.a $libname.a'
6542 soname_spec='${libname}${release}${shared_ext}$major'
6544 shlibpath_var=LIBPATH
6549 library_names_spec='$libname.ixlibrary $libname.a'
6550 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6551 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'
6555 library_names_spec='${libname}${shared_ext}'
6556 dynamic_linker="$host_os ld.so"
6557 shlibpath_var=LIBRARY_PATH
6563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6564 soname_spec='${libname}${release}${shared_ext}$major'
6565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6566 shlibpath_var=LD_LIBRARY_PATH
6567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6569 # the default ld.so.conf also contains /usr/contrib/lib and
6570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6571 # libtool to hard-code these into programs
6574 cygwin* | mingw* | pw32*)
6575 version_type=windows
6580 case $GCC,$host_os in
6581 yes,cygwin* | yes,mingw* | yes,pw32*)
6582 library_names_spec='$libname.dll.a'
6583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6584 postinstall_cmds='base_file=`basename \${file}`~
6585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6586 dldir=$destdir/`dirname \$dlpath`~
6587 test -d \$dldir || mkdir -p \$dldir~
6588 $install_prog $dir/$dlname \$dldir/$dlname'
6589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6590 dlpath=$dir/\$dldll~
6592 shlibpath_overrides_runpath=yes
6596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6598 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6601 # MinGW DLLs use traditional 'lib' prefix
6602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6604 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6605 # It is most probably a Windows format PATH printed by
6606 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6607 # path with ; separators, and with drive letters. We can handle the
6608 # drive letters (cygwin fileutils understands them), so leave them,
6609 # especially as we might pass files found there to a mingw objdump,
6610 # which wouldn't understand a cygwinified path. Ahh.
6611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6617 # pw32 DLLs use 'pw' prefix rather than 'lib'
6618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6627 dynamic_linker='Win32 ld.exe'
6628 # FIXME: first we should search . and the directory the executable is in
6632 darwin* | rhapsody*)
6633 dynamic_linker="$host_os dyld"
6637 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6638 soname_spec='${libname}${release}${major}$shared_ext'
6639 shlibpath_overrides_runpath=yes
6640 shlibpath_var=DYLD_LIBRARY_PATH
6641 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6642 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6643 if test "$GCC" = yes; then
6644 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"`
6646 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6656 soname_spec='${libname}${release}${shared_ext}$major'
6657 shlibpath_var=LD_LIBRARY_PATH
6668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6669 soname_spec='${libname}${release}${shared_ext}$major'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=no
6672 hardcode_into_libs=yes
6673 dynamic_linker='GNU ld.so'
6677 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6678 version_type=freebsd-$objformat
6679 case $version_type in
6681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6690 shlibpath_var=LD_LIBRARY_PATH
6693 shlibpath_overrides_runpath=yes
6695 freebsd3.01* | freebsdelf3.01*)
6696 shlibpath_overrides_runpath=yes
6697 hardcode_into_libs=yes
6700 shlibpath_overrides_runpath=no
6701 hardcode_into_libs=yes
6710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6711 soname_spec='${libname}${release}${shared_ext}$major'
6712 shlibpath_var=LD_LIBRARY_PATH
6713 hardcode_into_libs=yes
6716 hpux9* | hpux10* | hpux11*)
6717 # Give a soname corresponding to the major version so that dld.sl refuses to
6718 # link against other versions.
6725 hardcode_into_libs=yes
6726 dynamic_linker="$host_os dld.so"
6727 shlibpath_var=LD_LIBRARY_PATH
6728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6730 soname_spec='${libname}${release}${shared_ext}$major'
6731 if test "X$HPUX_IA64_MODE" = X32; then
6732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6740 hardcode_into_libs=yes
6741 dynamic_linker="$host_os dld.sl"
6742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6745 soname_spec='${libname}${release}${shared_ext}$major'
6746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6751 dynamic_linker="$host_os dld.sl"
6752 shlibpath_var=SHLIB_PATH
6753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6755 soname_spec='${libname}${release}${shared_ext}$major'
6758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6759 postinstall_cmds='chmod 555 $lib'
6762 irix5* | irix6* | nonstopux*)
6764 nonstopux*) version_type=nonstopux ;;
6766 if test "$lt_cv_prog_gnu_ld" = yes; then
6774 soname_spec='${libname}${release}${shared_ext}$major'
6775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6777 irix5* | nonstopux*)
6781 case $LD in # libtool.m4 will add one of these switches to LD
6782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6783 libsuff= shlibsuff= libmagic=32-bit;;
6784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6785 libsuff=32 shlibsuff=N32 libmagic=N32;;
6786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6788 *) libsuff= shlibsuff= libmagic=never-match;;
6792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6793 shlibpath_overrides_runpath=no
6794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6796 hardcode_into_libs=yes
6799 # No shared lib support for Linux oldld, aout, or coff.
6800 linux*oldld* | linux*aout* | linux*coff*)
6804 # This must be Linux ELF.
6809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810 soname_spec='${libname}${release}${shared_ext}$major'
6811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6812 shlibpath_var=LD_LIBRARY_PATH
6813 shlibpath_overrides_runpath=no
6814 # This implies no fast_install, which is unacceptable.
6815 # Some rework will be needed to allow for fast_install
6816 # before this can be enabled.
6817 hardcode_into_libs=yes
6819 # Append ld.so.conf contents to the search path
6820 if test -f /etc/ld.so.conf; then
6821 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6825 # We used to test for /lib/ld.so.1 and disable shared libraries on
6826 # powerpc, because MkLinux only supported shared libraries with the
6827 # GNU dynamic linker. Since this was broken with cross compilers,
6828 # most powerpc-linux boxes support dynamic linking these days and
6829 # people can always --disable-shared, the test was removed, and we
6830 # assume the GNU/Linux dynamic linker is in use.
6831 dynamic_linker='GNU/Linux ld.so'
6838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6839 soname_spec='${libname}${release}${shared_ext}$major'
6840 shlibpath_var=LD_LIBRARY_PATH
6841 shlibpath_overrides_runpath=no
6842 hardcode_into_libs=yes
6843 dynamic_linker='GNU ld.so'
6850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6853 dynamic_linker='NetBSD (a.out) ld.so'
6855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6856 soname_spec='${libname}${release}${shared_ext}$major'
6857 dynamic_linker='NetBSD ld.elf_so'
6859 shlibpath_var=LD_LIBRARY_PATH
6860 shlibpath_overrides_runpath=yes
6861 hardcode_into_libs=yes
6866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6876 soname_spec='${libname}${release}${shared_ext}$major'
6877 shlibpath_var=LD_LIBRARY_PATH
6878 shlibpath_overrides_runpath=yes
6885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6887 shlibpath_var=LD_LIBRARY_PATH
6888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6890 openbsd2.[89] | openbsd2.[89].*)
6891 shlibpath_overrides_runpath=no
6894 shlibpath_overrides_runpath=yes
6898 shlibpath_overrides_runpath=yes
6903 libname_spec='$name'
6906 library_names_spec='$libname${shared_ext} $libname.a'
6907 dynamic_linker='OS/2 ld.exe'
6908 shlibpath_var=LIBPATH
6911 osf3* | osf4* | osf5*)
6915 soname_spec='${libname}${release}${shared_ext}$major'
6916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6924 soname_spec='${libname}${release}${shared_ext}$major'
6925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926 shlibpath_var=LD_LIBRARY_PATH
6933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6934 soname_spec='${libname}${release}${shared_ext}$major'
6935 shlibpath_var=LD_LIBRARY_PATH
6936 shlibpath_overrides_runpath=yes
6937 hardcode_into_libs=yes
6938 # ldd complains unless libraries are executable
6939 postinstall_cmds='chmod +x $lib'
6944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6946 shlibpath_var=LD_LIBRARY_PATH
6947 shlibpath_overrides_runpath=yes
6948 if test "$with_gnu_ld" = yes; then
6954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6957 soname_spec='${libname}${release}${shared_ext}$major'
6958 shlibpath_var=LD_LIBRARY_PATH
6959 case $host_vendor in
6961 shlibpath_overrides_runpath=no
6963 export_dynamic_flag_spec='${wl}-Blargedynsym'
6964 runpath_var=LD_RUN_PATH
6972 shlibpath_overrides_runpath=no
6973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6979 if test -d /usr/nec ;then
6981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6982 soname_spec='$libname${shared_ext}.$major'
6983 shlibpath_var=LD_LIBRARY_PATH
6989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6990 soname_spec='${libname}${release}${shared_ext}$major'
6991 shlibpath_var=LD_LIBRARY_PATH
6998 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6999 echo "${ECHO_T}$dynamic_linker" >&6
7000 test "$dynamic_linker" = no && can_build_shared=no
7003 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7004 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7005 if test "${libltdl_cv_shlibext+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 eval libltdl_cv_shlibext=$shrext_cmds
7013 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7014 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7015 if test -n "$libltdl_cv_shlibext"; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7024 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7025 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7026 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 libltdl_cv_shlibpath_var="$shlibpath_var"
7031 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7032 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7033 if test -n "$libltdl_cv_shlibpath_var"; then
7035 cat >>confdefs.h <<_ACEOF
7036 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7042 echo "$as_me:$LINENO: checking for the default library search path" >&5
7043 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7044 if test "${libltdl_cv_sys_search_path+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7049 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7050 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7051 if test -n "$libltdl_cv_sys_search_path"; then
7053 for dir in $libltdl_cv_sys_search_path; do
7054 if test -z "$sys_search_path"; then
7055 sys_search_path="$dir"
7057 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7061 cat >>confdefs.h <<_ACEOF
7062 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7067 echo "$as_me:$LINENO: checking for objdir" >&5
7068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7069 if test "${libltdl_cv_objdir+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 libltdl_cv_objdir="$objdir"
7073 if test -n "$objdir"; then
7076 rm -f .libs 2>/dev/null
7077 mkdir .libs 2>/dev/null
7078 if test -d .libs; then
7079 libltdl_cv_objdir=.libs
7081 # MS-DOS does not allow filenames that begin with a dot.
7082 libltdl_cv_objdir=_libs
7084 rmdir .libs 2>/dev/null
7088 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7089 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7091 cat >>confdefs.h <<_ACEOF
7092 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7096 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7097 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7098 if test "${lt_cv_path_NM+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 if test -n "$NM"; then
7102 # Let the user override the test.
7105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7108 test -z "$ac_dir" && ac_dir=.
7109 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7110 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7111 # Check to see if the nm accepts a BSD-compat flag.
7112 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7113 # nm: unknown option "B" ignored
7114 # Tru64's nm complains that /dev/null is an invalid object file
7115 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7116 */dev/null* | *'Invalid file or object type'*)
7117 lt_cv_path_NM="$tmp_nm -B"
7121 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7123 lt_cv_path_NM="$tmp_nm -p"
7127 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7128 continue # so that we can try to find one that supports BSD flags
7135 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7138 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7139 echo "${ECHO_T}$lt_cv_path_NM" >&6
7146 # Check for command to grab the raw symbol name followed by C symbol from nm.
7147 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7148 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7149 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 # These are sane defaults that work on at least a few old systems.
7154 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7156 # Character class describing NM global symbol codes.
7157 symcode='[BCDEGRST]'
7159 # Regexp to match symbols that can be accessed directly from C.
7160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7162 # Transform the above into a raw symbol and a C symbol.
7163 symxfrm='\1 \2\3 \3'
7165 # Transform an extracted symbol line into a proper C declaration
7166 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7168 # Transform an extracted symbol line into symbol name and symbol address
7169 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'"
7171 # Define system-specific variables.
7176 cygwin* | mingw* | pw32*)
7177 symcode='[ABCDGISTW]'
7179 hpux*) # Its linker distinguishes data from code symbols
7180 if test "$host_cpu" = ia64; then
7181 symcode='[ABCDEGRST]'
7183 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7184 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'"
7187 if test "$host_cpu" = ia64; then
7188 symcode='[ABCDGIRSTW]'
7189 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7190 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'"
7194 symcode='[BCDEGRST]'
7197 symcode='[BCDEGQRST]'
7207 # Handle CRLF in mingw tool chain
7211 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7215 # If we're using GNU nm, then use its standard symbol codes.
7216 case `$NM -V 2>&1` in
7217 *GNU* | *'with BFD'*)
7218 symcode='[ABCDGIRSTW]' ;;
7221 # Try without a prefix undercore, then with it.
7222 for ac_symprfx in "" "_"; do
7224 # Write the raw and C identifiers.
7225 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7227 # Check to see that the pipe works correctly.
7231 cat > conftest.$ac_ext <<EOF
7236 void nm_test_func(){}
7240 int main(){nm_test_var='a';nm_test_func();return(0);}
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; then
7248 # Now try to grab the symbols.
7250 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7251 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && test -s "$nlist"; then
7255 # Try sorting and uniquifying the output.
7256 if sort "$nlist" | uniq > "$nlist"T; then
7257 mv -f "$nlist"T "$nlist"
7262 # Make sure that we snagged all the symbols we need.
7263 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7264 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7265 cat <<EOF > conftest.$ac_ext
7271 # Now generate the symbol file.
7272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7274 cat <<EOF >> conftest.$ac_ext
7275 #if defined (__STDC__) && __STDC__
7276 # define lt_ptr_t void *
7278 # define lt_ptr_t char *
7282 /* The mapping between symbol names and symbols. */
7287 lt_preloaded_symbols[] =
7290 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7291 cat <<\EOF >> conftest.$ac_ext
7299 # Now try linking the two files.
7300 mv conftest.$ac_objext conftstm.$ac_objext
7301 lt_save_LIBS="$LIBS"
7302 lt_save_CFLAGS="$CFLAGS"
7303 LIBS="conftstm.$ac_objext"
7304 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7312 LIBS="$lt_save_LIBS"
7313 CFLAGS="$lt_save_CFLAGS"
7315 echo "cannot find nm_test_func in $nlist" >&5
7318 echo "cannot find nm_test_var in $nlist" >&5
7321 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7324 echo "$progname: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 rm -f conftest* conftst*
7329 # Do not use the global_symbol_pipe unless it works.
7330 if test "$pipe_works" = yes; then
7333 lt_cv_sys_global_symbol_pipe=
7339 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7340 lt_cv_sys_global_symbol_to_cdecl=
7342 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7343 echo "$as_me:$LINENO: result: failed" >&5
7344 echo "${ECHO_T}failed" >&6
7346 echo "$as_me:$LINENO: result: ok" >&5
7347 echo "${ECHO_T}ok" >&6
7351 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7352 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7353 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7357 libltdl_cv_preloaded_symbols=yes
7359 libltdl_cv_preloaded_symbols=no
7363 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7364 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7365 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7367 cat >>confdefs.h <<\_ACEOF
7368 #define HAVE_PRELOADED_SYMBOLS 1
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7382 echo "$as_me:$LINENO: checking for shl_load" >&5
7383 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7384 if test "${ac_cv_func_shl_load+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 cat >conftest.$ac_ext <<_ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7395 #define shl_load innocuous_shl_load
7397 /* System header to define __stub macros and hopefully few prototypes,
7398 which can conflict with char shl_load (); below.
7399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400 <limits.h> exists even on freestanding compilers. */
7403 # include <limits.h>
7405 # include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7418 /* The GNU C library defines this for functions which it implements
7419 to always fail with ENOSYS. Some functions are actually named
7420 something starting with __ and the normal name is an alias. */
7421 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7424 char (*f) () = shl_load;
7433 return f != shl_load;
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440 (eval $ac_link) 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try='test -z "$ac_c_werror_flag"
7448 || test ! -s conftest.err'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; } &&
7454 { ac_try='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_cv_func_shl_load=yes
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 ac_cv_func_shl_load=no
7467 rm -f conftest.err conftest.$ac_objext \
7468 conftest$ac_exeext conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7471 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7472 if test $ac_cv_func_shl_load = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_SHL_LOAD 1
7479 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7480 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7481 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 ac_check_lib_save_LIBS=$LIBS
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>conftest.er1
7512 grep -v '^ *+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_dld_shl_load=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_lib_dld_shl_load=no
7537 rm -f conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7542 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7543 if test $ac_cv_lib_dld_shl_load = yes; then
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_SHL_LOAD 1
7549 LIBADD_DL="$LIBADD_DL -ldld"
7551 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_check_lib_save_LIBS=$LIBS
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 /* Override any gcc2 internal prototype to avoid an error. */
7569 /* We use char because int might match the return type of a gcc2
7570 builtin and then its argument prototype would still apply. */
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582 (eval $ac_link) 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_lib_dl_dlopen=yes
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 ac_cv_lib_dl_dlopen=no
7609 rm -f conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7615 if test $ac_cv_lib_dl_dlopen = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_LIBDL 1
7621 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643 (eval $ac_link) 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try='test -z "$ac_c_werror_flag"
7651 || test ! -s conftest.err'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try='test -s conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7664 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_LIBDL 1
7667 libltdl_cv_func_dlopen="yes"
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7672 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7673 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7674 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_check_lib_save_LIBS=$LIBS
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7686 /* Override any gcc2 internal prototype to avoid an error. */
7690 /* We use char because int might match the return type of a gcc2
7691 builtin and then its argument prototype would still apply. */
7701 rm -f conftest.$ac_objext conftest$ac_exeext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703 (eval $ac_link) 2>conftest.er1
7705 grep -v '^ *+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest$ac_exeext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_lib_svld_dlopen=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 ac_cv_lib_svld_dlopen=no
7730 rm -f conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7734 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7735 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7736 if test $ac_cv_lib_svld_dlopen = yes; then
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_LIBDL 1
7742 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7744 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7745 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7746 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_check_lib_save_LIBS=$LIBS
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7758 /* Override any gcc2 internal prototype to avoid an error. */
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>conftest.er1
7777 grep -v '^ *+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -z "$ac_c_werror_flag"
7783 || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_lib_dld_dld_link=yes
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 ac_cv_lib_dld_dld_link=no
7802 rm -f conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 LIBS=$ac_check_lib_save_LIBS
7806 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7807 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7808 if test $ac_cv_lib_dld_dld_link = yes; then
7810 cat >>confdefs.h <<\_ACEOF
7814 LIBADD_DL="$LIBADD_DL -ldld"
7816 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7817 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7818 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7829 #define _dyld_func_lookup innocuous__dyld_func_lookup
7831 /* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char _dyld_func_lookup (); below.
7833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7834 <limits.h> exists even on freestanding compilers. */
7837 # include <limits.h>
7839 # include <assert.h>
7842 #undef _dyld_func_lookup
7844 /* Override any gcc2 internal prototype to avoid an error. */
7849 /* We use char because int might match the return type of a gcc2
7850 builtin and then its argument prototype would still apply. */
7851 char _dyld_func_lookup ();
7852 /* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7858 char (*f) () = _dyld_func_lookup;
7867 return f != _dyld_func_lookup;
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_func__dyld_func_lookup=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_func__dyld_func_lookup=no
7901 rm -f conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7905 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7906 if test $ac_cv_func__dyld_func_lookup = yes; then
7908 cat >>confdefs.h <<\_ACEOF
7922 rm -f conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7934 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7936 lt_save_LIBS="$LIBS"
7937 LIBS="$LIBS $LIBADD_DL"
7939 for ac_func in dlerror
7941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942 echo "$as_me:$LINENO: checking for $ac_func" >&5
7943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7944 if eval "test \"\${$as_ac_var+set}\" = set"; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7955 #define $ac_func innocuous_$ac_func
7957 /* System header to define __stub macros and hopefully few prototypes,
7958 which can conflict with char $ac_func (); below.
7959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960 <limits.h> exists even on freestanding compilers. */
7963 # include <limits.h>
7965 # include <assert.h>
7970 /* Override any gcc2 internal prototype to avoid an error. */
7975 /* We use char because int might match the return type of a gcc2
7976 builtin and then its argument prototype would still apply. */
7978 /* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7984 char (*f) () = $ac_func;
7993 return f != $ac_func;
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 eval "$as_ac_var=yes"
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 eval "$as_ac_var=no"
8027 rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8032 if test `eval echo '${'$as_ac_var'}'` = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8040 LIBS="$lt_save_LIBS"
8043 ac_cpp='$CPP $CPPFLAGS'
8044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8050 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8051 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8052 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 ac_cv_sys_symbol_underscore=no
8056 cat > conftest.$ac_ext <<EOF
8057 void nm_test_func(){}
8058 int main(){nm_test_func;return 0;}
8060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8061 (eval $ac_compile) 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; then
8065 # Now try to grab the symbols.
8066 ac_nlist=conftest.nm
8067 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && test -s "$ac_nlist"; then
8072 # See whether the symbols have a leading underscore.
8073 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8074 ac_cv_sys_symbol_underscore=yes
8076 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8079 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8083 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8086 echo "configure: failed program was:" >&5
8092 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8093 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8096 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8097 if test x"$libltdl_cv_func_dlopen" = xyes ||
8098 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8099 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8100 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8101 if test "${libltdl_cv_need_uscore+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 libltdl_cv_need_uscore=unknown
8106 LIBS="$LIBS $LIBADD_DL"
8107 if test "$cross_compiling" = yes; then :
8108 libltdl_cv_need_uscore=cross
8110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8111 lt_status=$lt_dlunknown
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8113 "configure"
8114 #include "confdefs.h"
8123 # define LT_DLGLOBAL RTLD_GLOBAL
8126 # define LT_DLGLOBAL DL_GLOBAL
8128 # define LT_DLGLOBAL 0
8132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8133 find out it does not work in some platform. */
8134 #ifndef LT_DLLAZY_OR_NOW
8136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8139 # define LT_DLLAZY_OR_NOW DL_LAZY
8142 # define LT_DLLAZY_OR_NOW RTLD_NOW
8145 # define LT_DLLAZY_OR_NOW DL_NOW
8147 # define LT_DLLAZY_OR_NOW 0
8155 extern "C" void exit (int);
8158 void fnord() { int i=42;}
8161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8162 int status = $lt_dlunknown;
8166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8168 /* dlclose (self); */
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8179 (./conftest; exit; ) 2>/dev/null
8182 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8183 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8187 # compilation failed
8196 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8197 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8201 if test x"$libltdl_cv_need_uscore" = xyes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define NEED_USCORE 1
8210 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8211 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8212 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 # PORTME does your system automatically load deplibs for dlopen?
8216 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8217 # For now, we just catch OSes we know something about -- in the
8218 # future, we'll try test this programmatically.
8219 libltdl_cv_sys_dlopen_deplibs=unknown
8221 aix3*|aix4.1.*|aix4.2.*)
8222 # Unknown whether this is true for these versions of AIX, but
8223 # we want this `case' here to explicitly catch those versions.
8224 libltdl_cv_sys_dlopen_deplibs=unknown
8227 libltdl_cv_sys_dlopen_deplibs=yes
8230 # Assuming the user has installed a libdl from somewhere, this is true
8231 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8232 libltdl_cv_sys_dlopen_deplibs=yes
8234 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8235 # GNU and its variants, using gnu ld.so (Glibc)
8236 libltdl_cv_sys_dlopen_deplibs=yes
8239 libltdl_cv_sys_dlopen_deplibs=yes
8241 irix[12345]*|irix6.[01]*)
8242 # Catch all versions of IRIX before 6.2, and indicate that we don't
8243 # know how it worked for any of those versions.
8244 libltdl_cv_sys_dlopen_deplibs=unknown
8247 # The case above catches anything before 6.2, and it's known that
8248 # at 6.2 and later dlopen does load deplibs.
8249 libltdl_cv_sys_dlopen_deplibs=yes
8252 libltdl_cv_sys_dlopen_deplibs=yes
8255 libltdl_cv_sys_dlopen_deplibs=yes
8258 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8259 # it did *not* use an RPATH in a shared library to find objects the
8260 # library depends on, so we explictly say `no'.
8261 libltdl_cv_sys_dlopen_deplibs=no
8263 osf5.0|osf5.0a|osf5.1)
8264 # dlopen *does* load deplibs and with the right loader patch applied
8265 # it even uses RPATH in a shared library to search for shared objects
8266 # that the library depends on, but there's no easy way to know if that
8267 # patch is installed. Since this is the case, all we can really
8268 # say is unknown -- it depends on the patch being installed. If
8269 # it is, this changes to `yes'. Without it, it would be `no'.
8270 libltdl_cv_sys_dlopen_deplibs=unknown
8273 # the two cases above should catch all versions of osf <= 5.1. Read
8274 # the comments above for what we know about them.
8275 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8276 # is used to find them so we can finally say `yes'.
8277 libltdl_cv_sys_dlopen_deplibs=yes
8280 libltdl_cv_sys_dlopen_deplibs=yes
8285 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8286 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8287 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8289 cat >>confdefs.h <<\_ACEOF
8290 #define LTDL_DLOPEN_DEPLIBS 1
8296 for ac_header in argz.h
8298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8300 echo "$as_me:$LINENO: checking for $ac_header" >&5
8301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8308 # Is the header compilable?
8309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 $ac_includes_default
8318 #include <$ac_header>
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322 (eval $ac_compile) 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -z "$ac_c_werror_flag"
8330 || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_header_compiler=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_header_compiler=no
8349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351 echo "${ECHO_T}$ac_header_compiler" >&6
8353 # Is the header present?
8354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 #include <$ac_header>
8364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } >/dev/null; then
8372 if test -s conftest.err; then
8373 ac_cpp_err=$ac_c_preproc_warn_flag
8374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8381 if test -z "$ac_cpp_err"; then
8382 ac_header_preproc=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_header_preproc=no
8389 rm -f conftest.err conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8391 echo "${ECHO_T}$ac_header_preproc" >&6
8393 # So? What about this header?
8394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8400 ac_header_preproc=yes
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8417 ## ----------------------------------- ##
8418 ## Report this to llvmbugs@cs.uiuc.edu ##
8419 ## ----------------------------------- ##
8422 sed "s/^/$as_me: WARNING: /" >&2
8425 echo "$as_me:$LINENO: checking for $ac_header" >&5
8426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 eval "$as_ac_Header=\$ac_header_preproc"
8432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8446 echo "$as_me:$LINENO: checking for error_t" >&5
8447 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8448 if test "${ac_cv_type_error_t+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8466 if (sizeof (error_t))
8472 rm -f conftest.$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474 (eval $ac_compile) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest.$ac_objext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_type_error_t=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_type_error_t=no
8501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8503 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8504 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8505 if test $ac_cv_type_error_t = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_ERROR_T 1
8514 cat >>confdefs.h <<\_ACEOF
8526 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8529 echo "$as_me:$LINENO: checking for $ac_func" >&5
8530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_var+set}\" = set"; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8542 #define $ac_func innocuous_$ac_func
8544 /* System header to define __stub macros and hopefully few prototypes,
8545 which can conflict with char $ac_func (); below.
8546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8547 <limits.h> exists even on freestanding compilers. */
8550 # include <limits.h>
8552 # include <assert.h>
8557 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8565 /* The GNU C library defines this for functions which it implements
8566 to always fail with ENOSYS. Some functions are actually named
8567 something starting with __ and the normal name is an alias. */
8568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8571 char (*f) () = $ac_func;
8580 return f != $ac_func;
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1 >conftest.err
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 eval "$as_ac_var=yes"
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 eval "$as_ac_var=no"
8614 rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8619 if test `eval echo '${'$as_ac_var'}'` = yes; then
8620 cat >>confdefs.h <<_ACEOF
8621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8654 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8659 echo "$as_me:$LINENO: checking for $ac_header" >&5
8660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8667 # Is the header compilable?
8668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 #include <$ac_header>
8679 rm -f conftest.$ac_objext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681 (eval $ac_compile) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_header_compiler=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_header_compiler=no
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8710 echo "${ECHO_T}$ac_header_compiler" >&6
8712 # Is the header present?
8713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 #include <$ac_header>
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } >/dev/null; then
8731 if test -s conftest.err; then
8732 ac_cpp_err=$ac_c_preproc_warn_flag
8733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740 if test -z "$ac_cpp_err"; then
8741 ac_header_preproc=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_header_preproc=no
8748 rm -f conftest.err conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6
8752 # So? What about this header?
8753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759 ac_header_preproc=yes
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8776 ## ----------------------------------- ##
8777 ## Report this to llvmbugs@cs.uiuc.edu ##
8778 ## ----------------------------------- ##
8781 sed "s/^/$as_me: WARNING: /" >&2
8784 echo "$as_me:$LINENO: checking for $ac_header" >&5
8785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 eval "$as_ac_Header=\$ac_header_preproc"
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796 cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8808 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8812 echo "$as_me:$LINENO: checking for $ac_header" >&5
8813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8820 # Is the header compilable?
8821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 $ac_includes_default
8830 #include <$ac_header>
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_header_compiler=yes
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 ac_header_compiler=no
8861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8863 echo "${ECHO_T}$ac_header_compiler" >&6
8865 # Is the header present?
8866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8868 cat >conftest.$ac_ext <<_ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8874 #include <$ac_header>
8876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8879 grep -v '^ *+' conftest.er1 >conftest.err
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } >/dev/null; then
8884 if test -s conftest.err; then
8885 ac_cpp_err=$ac_c_preproc_warn_flag
8886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8893 if test -z "$ac_cpp_err"; then
8894 ac_header_preproc=yes
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 ac_header_preproc=no
8901 rm -f conftest.err conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8903 echo "${ECHO_T}$ac_header_preproc" >&6
8905 # So? What about this header?
8906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8912 ac_header_preproc=yes
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8929 ## ----------------------------------- ##
8930 ## Report this to llvmbugs@cs.uiuc.edu ##
8931 ## ----------------------------------- ##
8934 sed "s/^/$as_me: WARNING: /" >&2
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 eval "$as_ac_Header=\$ac_header_preproc"
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8949 cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8959 for ac_header in string.h strings.h
8961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963 echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8971 # Is the header compilable?
8972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8980 $ac_includes_default
8981 #include <$ac_header>
8983 rm -f conftest.$ac_objext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8985 (eval $ac_compile) 2>conftest.er1
8987 grep -v '^ *+' conftest.er1 >conftest.err
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -z "$ac_c_werror_flag"
8993 || test ! -s conftest.err'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest.$ac_objext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_header_compiler=yes
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_header_compiler=no
9012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9014 echo "${ECHO_T}$ac_header_compiler" >&6
9016 # Is the header present?
9017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 #include <$ac_header>
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } >/dev/null; then
9035 if test -s conftest.err; then
9036 ac_cpp_err=$ac_c_preproc_warn_flag
9037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9044 if test -z "$ac_cpp_err"; then
9045 ac_header_preproc=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_header_preproc=no
9052 rm -f conftest.err conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054 echo "${ECHO_T}$ac_header_preproc" >&6
9056 # So? What about this header?
9057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9063 ac_header_preproc=yes
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9080 ## ----------------------------------- ##
9081 ## Report this to llvmbugs@cs.uiuc.edu ##
9082 ## ----------------------------------- ##
9085 sed "s/^/$as_me: WARNING: /" >&2
9088 echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 eval "$as_ac_Header=\$ac_header_preproc"
9095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100 cat >>confdefs.h <<_ACEOF
9101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9111 for ac_func in strchr index
9113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 echo "$as_me:$LINENO: checking for $ac_func" >&5
9115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_var+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9127 #define $ac_func innocuous_$ac_func
9129 /* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char $ac_func (); below.
9131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 <limits.h> exists even on freestanding compilers. */
9135 # include <limits.h>
9137 # include <assert.h>
9142 /* Override any gcc2 internal prototype to avoid an error. */
9147 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9150 /* The GNU C library defines this for functions which it implements
9151 to always fail with ENOSYS. Some functions are actually named
9152 something starting with __ and the normal name is an alias. */
9153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9156 char (*f) () = $ac_func;
9165 return f != $ac_func;
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 eval "$as_ac_var=yes"
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 eval "$as_ac_var=no"
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204 if test `eval echo '${'$as_ac_var'}'` = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9214 for ac_func in strrchr rindex
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9219 if eval "test \"\${$as_ac_var+set}\" = set"; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230 #define $ac_func innocuous_$ac_func
9232 /* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9238 # include <limits.h>
9240 # include <assert.h>
9245 /* Override any gcc2 internal prototype to avoid an error. */
9250 /* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9253 /* The GNU C library defines this for functions which it implements
9254 to always fail with ENOSYS. Some functions are actually named
9255 something starting with __ and the normal name is an alias. */
9256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9259 char (*f) () = $ac_func;
9268 return f != $ac_func;
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 eval "$as_ac_var=yes"
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 eval "$as_ac_var=no"
9302 rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9307 if test `eval echo '${'$as_ac_var'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9317 for ac_func in memcpy bcopy
9319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333 #define $ac_func innocuous_$ac_func
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9341 # include <limits.h>
9343 # include <assert.h>
9348 /* Override any gcc2 internal prototype to avoid an error. */
9353 /* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9356 /* The GNU C library defines this for functions which it implements
9357 to always fail with ENOSYS. Some functions are actually named
9358 something starting with __ and the normal name is an alias. */
9359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9362 char (*f) () = $ac_func;
9371 return f != $ac_func;
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 eval "$as_ac_var=yes"
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 eval "$as_ac_var=no"
9405 rm -f conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9410 if test `eval echo '${'$as_ac_var'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9420 for ac_func in memmove strcmp
9422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9423 echo "$as_me:$LINENO: checking for $ac_func" >&5
9424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9425 if eval "test \"\${$as_ac_var+set}\" = set"; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 cat >conftest.$ac_ext <<_ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9436 #define $ac_func innocuous_$ac_func
9438 /* System header to define __stub macros and hopefully few prototypes,
9439 which can conflict with char $ac_func (); below.
9440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441 <limits.h> exists even on freestanding compilers. */
9444 # include <limits.h>
9446 # include <assert.h>
9451 /* Override any gcc2 internal prototype to avoid an error. */
9456 /* We use char because int might match the return type of a gcc2
9457 builtin and then its argument prototype would still apply. */
9459 /* The GNU C library defines this for functions which it implements
9460 to always fail with ENOSYS. Some functions are actually named
9461 something starting with __ and the normal name is an alias. */
9462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9465 char (*f) () = $ac_func;
9474 return f != $ac_func;
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481 (eval $ac_link) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 eval "$as_ac_var=yes"
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 eval "$as_ac_var=no"
9508 rm -f conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9513 if test `eval echo '${'$as_ac_var'}'` = yes; then
9514 cat >>confdefs.h <<_ACEOF
9515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9524 for ac_func in closedir opendir readdir
9526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9527 echo "$as_me:$LINENO: checking for $ac_func" >&5
9528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9529 if eval "test \"\${$as_ac_var+set}\" = set"; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9540 #define $ac_func innocuous_$ac_func
9542 /* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char $ac_func (); below.
9544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545 <limits.h> exists even on freestanding compilers. */
9548 # include <limits.h>
9550 # include <assert.h>
9555 /* Override any gcc2 internal prototype to avoid an error. */
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9563 /* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
9566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9569 char (*f) () = $ac_func;
9578 return f != $ac_func;
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585 (eval $ac_link) 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -z "$ac_c_werror_flag"
9593 || test ! -s conftest.err'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
9605 eval "$as_ac_var=yes"
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9610 eval "$as_ac_var=no"
9612 rm -f conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9617 if test `eval echo '${'$as_ac_var'}'` = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9626 # Check whether --enable-shared or --disable-shared was given.
9627 if test "${enable_shared+set}" = set; then
9628 enableval="$enable_shared"
9629 p=${PACKAGE-default}
9631 yes) enable_shared=yes ;;
9632 no) enable_shared=no ;;
9635 # Look at the argument we got. We use all the common list separators.
9636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9637 for pkg in $enableval; do
9639 if test "X$pkg" = "X$p"; then
9650 # Check whether --enable-static or --disable-static was given.
9651 if test "${enable_static+set}" = set; then
9652 enableval="$enable_static"
9653 p=${PACKAGE-default}
9655 yes) enable_static=yes ;;
9656 no) enable_static=no ;;
9659 # Look at the argument we got. We use all the common list separators.
9660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9661 for pkg in $enableval; do
9663 if test "X$pkg" = "X$p"; then
9674 # Check whether --enable-fast-install or --disable-fast-install was given.
9675 if test "${enable_fast_install+set}" = set; then
9676 enableval="$enable_fast_install"
9677 p=${PACKAGE-default}
9679 yes) enable_fast_install=yes ;;
9680 no) enable_fast_install=no ;;
9682 enable_fast_install=no
9683 # Look at the argument we got. We use all the common list separators.
9684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9685 for pkg in $enableval; do
9687 if test "X$pkg" = "X$p"; then
9688 enable_fast_install=yes
9695 enable_fast_install=yes
9698 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9699 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9700 if test "${lt_cv_path_SED+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 # Loop through the user's path and test for sed and gsed.
9704 # Then use that list of sed's as ones to test for truncation.
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 test -z "$as_dir" && as_dir=.
9710 for lt_ac_prog in sed gsed; do
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9713 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9720 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9721 # along with /bin/sed that truncates output.
9722 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9723 test ! -f $lt_ac_sed && break
9724 cat /dev/null > conftest.in
9726 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9727 # Check for GNU sed and select it if it is found.
9728 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9729 lt_cv_path_SED=$lt_ac_sed
9733 cat conftest.in conftest.in >conftest.tmp
9734 mv conftest.tmp conftest.in
9735 cp conftest.in conftest.nl
9737 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9738 cmp -s conftest.out conftest.nl || break
9739 # 10000 chars as input seems more than enough
9740 test $lt_ac_count -gt 10 && break
9741 lt_ac_count=`expr $lt_ac_count + 1`
9742 if test $lt_ac_count -gt $lt_ac_max; then
9743 lt_ac_max=$lt_ac_count
9744 lt_cv_path_SED=$lt_ac_sed
9752 echo "$as_me:$LINENO: result: $SED" >&5
9753 echo "${ECHO_T}$SED" >&6
9756 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9757 if test "${with_gnu_ld+set}" = set; then
9758 withval="$with_gnu_ld"
9759 test "$withval" = no || with_gnu_ld=yes
9764 if test "$GCC" = yes; then
9765 # Check if gcc -print-prog-name=ld gives a path.
9766 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9767 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9770 # gcc leaves a trailing carriage return which upsets mingw
9771 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9773 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9776 # Accept absolute paths.
9778 re_direlt='/[^/][^/]*/\.\./'
9779 # Canonicalize the pathname of ld
9780 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9781 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9782 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9784 test -z "$LD" && LD="$ac_prog"
9787 # If it fails, then pretend we aren't using GCC.
9791 # If it is relative, then search for the first ld in PATH.
9795 elif test "$with_gnu_ld" = yes; then
9796 echo "$as_me:$LINENO: checking for GNU ld" >&5
9797 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9799 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9800 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9802 if test "${lt_cv_path_LD+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 if test -z "$LD"; then
9806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9807 for ac_dir in $PATH; do
9809 test -z "$ac_dir" && ac_dir=.
9810 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9811 lt_cv_path_LD="$ac_dir/$ac_prog"
9812 # Check to see if the program is GNU ld. I'd rather use --version,
9813 # but apparently some GNU ld's only accept -v.
9814 # Break only if it was the GNU/non-GNU ld that we prefer.
9815 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9816 *GNU* | *'with BFD'*)
9817 test "$with_gnu_ld" != no && break
9820 test "$with_gnu_ld" != yes && break
9827 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9832 if test -n "$LD"; then
9833 echo "$as_me:$LINENO: result: $LD" >&5
9834 echo "${ECHO_T}$LD" >&6
9836 echo "$as_me:$LINENO: result: no" >&5
9837 echo "${ECHO_T}no" >&6
9839 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9840 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9841 { (exit 1); exit 1; }; }
9842 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9843 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9844 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9848 case `$LD -v 2>&1 </dev/null` in
9849 *GNU* | *'with BFD'*)
9850 lt_cv_prog_gnu_ld=yes
9853 lt_cv_prog_gnu_ld=no
9857 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9858 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9859 with_gnu_ld=$lt_cv_prog_gnu_ld
9862 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9863 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9864 if test "${lt_cv_ld_reload_flag+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 lt_cv_ld_reload_flag='-r'
9869 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9870 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9871 reload_flag=$lt_cv_ld_reload_flag
9872 case $reload_flag in
9874 *) reload_flag=" $reload_flag" ;;
9876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9879 if test "$GCC" = yes; then
9880 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9887 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9888 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9889 if test "${lt_cv_deplibs_check_method+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 lt_cv_file_magic_cmd='$MAGIC_CMD'
9893 lt_cv_file_magic_test_file=
9894 lt_cv_deplibs_check_method='unknown'
9895 # Need to set the preceding variable on all platforms that support
9896 # interlibrary dependencies.
9897 # 'none' -- dependencies not supported.
9898 # `unknown' -- same as none, but documents that we really don't know.
9899 # 'pass_all' -- all dependencies passed with no checks.
9900 # 'test_compile' -- check by making test program.
9901 # 'file_magic [[regex]]' -- check by looking for files in library path
9902 # which responds to the $file_magic_cmd with a given extended regex.
9903 # If you have `file' or equivalent on your system and you're not sure
9904 # whether `pass_all' will *always* work, you probably want this one.
9908 lt_cv_deplibs_check_method=pass_all
9912 lt_cv_deplibs_check_method=pass_all
9916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9917 lt_cv_file_magic_cmd='/usr/bin/file -L'
9918 lt_cv_file_magic_test_file=/shlib/libc.so
9922 # func_win32_libid is a shell function defined in ltmain.sh
9923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9924 lt_cv_file_magic_cmd='func_win32_libid'
9928 # Base MSYS/MinGW do not provide the 'file' command needed by
9929 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9931 lt_cv_file_magic_cmd='$OBJDUMP -f'
9934 darwin* | rhapsody*)
9935 lt_cv_deplibs_check_method=pass_all
9938 freebsd* | kfreebsd*-gnu)
9939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9942 # Not sure whether the presence of OpenBSD here was a mistake.
9943 # Let's accept both of them until this is cleared up.
9944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9945 lt_cv_file_magic_cmd=/usr/bin/file
9946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9950 lt_cv_deplibs_check_method=pass_all
9955 lt_cv_deplibs_check_method=pass_all
9958 hpux10.20* | hpux11*)
9959 lt_cv_file_magic_cmd=/usr/bin/file
9962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9966 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]'
9967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9976 irix5* | irix6* | nonstopux*)
9978 *-32|*"-32 ") libmagic=32-bit;;
9979 *-n32|*"-n32 ") libmagic=N32;;
9980 *-64|*"-64 ") libmagic=64-bit;;
9981 *) libmagic=never-match;;
9983 lt_cv_deplibs_check_method=pass_all
9986 # This must be Linux ELF.
9988 lt_cv_deplibs_check_method=pass_all
9992 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10001 lt_cv_file_magic_cmd=/usr/bin/file
10002 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10006 lt_cv_deplibs_check_method=unknown
10010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10017 osf3* | osf4* | osf5*)
10018 lt_cv_deplibs_check_method=pass_all
10022 lt_cv_deplibs_check_method=pass_all
10026 lt_cv_deplibs_check_method=pass_all
10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 case $host_vendor in
10032 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]'
10033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10036 lt_cv_deplibs_check_method=pass_all
10039 lt_cv_file_magic_cmd='/bin/file'
10040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10043 lt_cv_file_magic_cmd='/bin/file'
10044 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10045 lt_cv_file_magic_test_file=/lib/libc.so
10048 lt_cv_deplibs_check_method=pass_all
10053 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10054 lt_cv_deplibs_check_method=pass_all
10059 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10060 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10061 file_magic_cmd=$lt_cv_file_magic_cmd
10062 deplibs_check_method=$lt_cv_deplibs_check_method
10063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10067 # If no C compiler was specified, use CC.
10070 # Allow CC to be a program name with arguments.
10073 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10074 if test "${enable_libtool_lock+set}" = set; then
10075 enableval="$enable_libtool_lock"
10078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10080 # Some flags need to be propagated to the compiler or linker for good
10084 # Find out which ABI we are using.
10085 echo 'int i;' > conftest.$ac_ext
10086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; then
10091 case `/usr/bin/file conftest.$ac_objext` in
10093 HPUX_IA64_MODE="32"
10096 HPUX_IA64_MODE="64"
10103 # Find out which ABI we are using.
10104 echo '#line 10104 "configure"' > conftest.$ac_ext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; then
10110 if test "$lt_cv_prog_gnu_ld" = yes; then
10111 case `/usr/bin/file conftest.$ac_objext` in
10113 LD="${LD-ld} -melf32bsmip"
10116 LD="${LD-ld} -melf32bmipn32"
10119 LD="${LD-ld} -melf64bmip"
10123 case `/usr/bin/file conftest.$ac_objext` in
10139 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10140 # Find out which ABI we are using.
10141 echo 'int i;' > conftest.$ac_ext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; then
10147 case "`/usr/bin/file conftest.o`" in
10151 LD="${LD-ld} -m elf_i386"
10153 ppc64-*linux*|powerpc64-*linux*)
10154 LD="${LD-ld} -m elf32ppclinux"
10157 LD="${LD-ld} -m elf_s390"
10160 LD="${LD-ld} -m elf32_sparc"
10167 LD="${LD-ld} -m elf_x86_64"
10169 ppc*-*linux*|powerpc*-*linux*)
10170 LD="${LD-ld} -m elf64ppc"
10173 LD="${LD-ld} -m elf64_s390"
10176 LD="${LD-ld} -m elf64_sparc"
10186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10187 SAVE_CFLAGS="$CFLAGS"
10188 CFLAGS="$CFLAGS -belf"
10189 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10190 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10191 if test "${lt_cv_cc_needs_belf+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 ac_cpp='$CPP $CPPFLAGS'
10196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 lt_cv_cc_needs_belf=yes
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 lt_cv_cc_needs_belf=no
10237 rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10240 ac_cpp='$CPP $CPPFLAGS'
10241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10246 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10247 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10248 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10249 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10250 CFLAGS="$SAVE_CFLAGS"
10256 need_locks="$enable_libtool_lock"
10261 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10263 (test "X$CXX" != "Xg++"))) ; then
10265 ac_cpp='$CXXCPP $CPPFLAGS'
10266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10269 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10270 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10271 if test -z "$CXXCPP"; then
10272 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 # Double quotes because CXXCPP needs to be expanded
10276 for CXXCPP in "$CXX -E" "/lib/cpp"
10278 ac_preproc_ok=false
10279 for ac_cxx_preproc_warn_flag in '' yes
10281 # Use a header file that comes with gcc, so configuring glibc
10282 # with a fresh cross-compiler works.
10283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10284 # <limits.h> exists even on freestanding compilers.
10285 # On the NeXT, cc -E runs the code through the compiler's parser,
10286 # not just through cpp. "Syntax error" is here to catch this case.
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10294 # include <limits.h>
10296 # include <assert.h>
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev/null; then
10308 if test -s conftest.err; then
10309 ac_cpp_err=$ac_cxx_preproc_warn_flag
10310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10317 if test -z "$ac_cpp_err"; then
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 # Broken: fails on valid input.
10326 rm -f conftest.err conftest.$ac_ext
10328 # OK, works on sane cases. Now check whether non-existent headers
10329 # can be detected and how.
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 #include <ac_nonexistent.h>
10338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } >/dev/null; then
10346 if test -s conftest.err; then
10347 ac_cpp_err=$ac_cxx_preproc_warn_flag
10348 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10355 if test -z "$ac_cpp_err"; then
10356 # Broken: success on invalid input.
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 # Passes both tests.
10366 rm -f conftest.err conftest.$ac_ext
10369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10370 rm -f conftest.err conftest.$ac_ext
10371 if $ac_preproc_ok; then
10376 ac_cv_prog_CXXCPP=$CXXCPP
10379 CXXCPP=$ac_cv_prog_CXXCPP
10381 ac_cv_prog_CXXCPP=$CXXCPP
10383 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10384 echo "${ECHO_T}$CXXCPP" >&6
10385 ac_preproc_ok=false
10386 for ac_cxx_preproc_warn_flag in '' yes
10388 # Use a header file that comes with gcc, so configuring glibc
10389 # with a fresh cross-compiler works.
10390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391 # <limits.h> exists even on freestanding compilers.
10392 # On the NeXT, cc -E runs the code through the compiler's parser,
10393 # not just through cpp. "Syntax error" is here to catch this case.
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 # include <limits.h>
10403 # include <assert.h>
10407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then
10416 ac_cpp_err=$ac_cxx_preproc_warn_flag
10417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10424 if test -z "$ac_cpp_err"; then
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 # Broken: fails on valid input.
10433 rm -f conftest.err conftest.$ac_ext
10435 # OK, works on sane cases. Now check whether non-existent headers
10436 # can be detected and how.
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <ac_nonexistent.h>
10445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_cxx_preproc_warn_flag
10455 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10462 if test -z "$ac_cpp_err"; then
10463 # Broken: success on invalid input.
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 # Passes both tests.
10473 rm -f conftest.err conftest.$ac_ext
10476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477 rm -f conftest.err conftest.$ac_ext
10478 if $ac_preproc_ok; then
10481 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10482 See \`config.log' for more details." >&5
10483 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10484 See \`config.log' for more details." >&2;}
10485 { (exit 1); exit 1; }; }
10489 ac_cpp='$CXXCPP $CPPFLAGS'
10490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10498 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10499 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10500 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10501 if test -n "$ac_tool_prefix"; then
10502 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10506 echo "$as_me:$LINENO: checking for $ac_word" >&5
10507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10508 if test "${ac_cv_prog_F77+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 if test -n "$F77"; then
10512 ac_cv_prog_F77="$F77" # Let the user override the test.
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 F77=$ac_cv_prog_F77
10531 if test -n "$F77"; then
10532 echo "$as_me:$LINENO: result: $F77" >&5
10533 echo "${ECHO_T}$F77" >&6
10535 echo "$as_me:$LINENO: result: no" >&5
10536 echo "${ECHO_T}no" >&6
10539 test -n "$F77" && break
10542 if test -z "$F77"; then
10544 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10546 # Extract the first word of "$ac_prog", so it can be a program name with args.
10547 set dummy $ac_prog; ac_word=$2
10548 echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10550 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 if test -n "$ac_ct_F77"; then
10554 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 for as_dir in $PATH
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_ac_ct_F77="$ac_prog"
10564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10573 if test -n "$ac_ct_F77"; then
10574 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10575 echo "${ECHO_T}$ac_ct_F77" >&6
10577 echo "$as_me:$LINENO: result: no" >&5
10578 echo "${ECHO_T}no" >&6
10581 test -n "$ac_ct_F77" && break
10588 # Provide some information about the compiler.
10589 echo "$as_me:10589:" \
10590 "checking for Fortran 77 compiler version" >&5
10591 ac_compiler=`set X $ac_compile; echo $2`
10592 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10593 (eval $ac_compiler --version </dev/null >&5) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }
10597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10598 (eval $ac_compiler -v </dev/null >&5) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }
10602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10603 (eval $ac_compiler -V </dev/null >&5) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }
10609 # If we don't use `.F' as extension, the preprocessor is not run on the
10610 # input file. (Note that this only needs to work for GNU compilers.)
10611 ac_save_ext=$ac_ext
10613 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10614 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10615 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_f77_werror_flag"
10636 || test ! -s conftest.err'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; } &&
10642 { ac_try='test -s conftest.$ac_objext'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_compiler_gnu=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10656 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10659 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10660 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10661 ac_ext=$ac_save_ext
10662 ac_test_FFLAGS=${FFLAGS+set}
10663 ac_save_FFLAGS=$FFLAGS
10665 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10666 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10667 if test "${ac_cv_prog_f77_g+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10676 rm -f conftest.$ac_objext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10678 (eval $ac_compile) 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -z "$ac_f77_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 ac_cv_prog_f77_g=yes
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10703 ac_cv_prog_f77_g=no
10705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10708 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10709 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10710 if test "$ac_test_FFLAGS" = set; then
10711 FFLAGS=$ac_save_FFLAGS
10712 elif test $ac_cv_prog_f77_g = yes; then
10713 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10726 G77=`test $ac_compiler_gnu = yes && echo yes`
10728 ac_cpp='$CPP $CPPFLAGS'
10729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10735 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10737 # find the maximum length of command line arguments
10738 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10739 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10740 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 # On DJGPP, this test can blow up pretty badly due to problems in libc
10749 # (any single argument exceeding 2000 bytes causes a buffer overrun
10750 # during glob expansion). Even if it were fixed, the result of this
10751 # check would be larger than it should be.
10752 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10756 # Under GNU Hurd, this test is not required because there is
10757 # no limit to the length of command line arguments.
10758 # Libtool will interpret -1 as no limit whatsoever
10759 lt_cv_sys_max_cmd_len=-1;
10763 # On Win9x/ME, this test blows up -- it succeeds, but takes
10764 # about 5 minutes as the teststring grows exponentially.
10765 # Worse, since 9x/ME are not pre-emptively multitasking,
10766 # you end up with a "frozen" computer, even though with patience
10767 # the test eventually succeeds (with a max line length of 256k).
10768 # Instead, let's just punt: use the minimum linelength reported by
10769 # all of the supported platforms: 8192 (on NT/2K/XP).
10770 lt_cv_sys_max_cmd_len=8192;
10774 # On AmigaOS with pdksh, this test takes hours, literally.
10775 # So we just punt and use a minimum line length of 8192.
10776 lt_cv_sys_max_cmd_len=8192;
10779 netbsd* | freebsd* | openbsd* | darwin* )
10780 # This has been around since 386BSD, at least. Likely further.
10781 if test -x /sbin/sysctl; then
10782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10783 elif test -x /usr/sbin/sysctl; then
10784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10786 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10788 # And add a safety zone
10789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10793 # If test is not a shell built-in, we'll probably end up computing a
10794 # maximum length that is only half of the actual maximum length, but
10796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10797 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10798 = "XX$teststring") >/dev/null 2>&1 &&
10799 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10800 lt_cv_sys_max_cmd_len=$new_result &&
10801 test $i != 17 # 1/2 MB should be enough
10804 teststring=$teststring$teststring
10807 # Add a significant safety factor because C++ compilers can tack on massive
10808 # amounts of additional arguments before passing them to the linker.
10809 # It appears as though 1/2 is a usable value.
10810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10816 if test -n $lt_cv_sys_max_cmd_len ; then
10817 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10818 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10820 echo "$as_me:$LINENO: result: none" >&5
10821 echo "${ECHO_T}none" >&6
10827 # Check for command to grab the raw symbol name followed by C symbol from nm.
10828 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10829 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10830 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 # These are sane defaults that work on at least a few old systems.
10835 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10837 # Character class describing NM global symbol codes.
10838 symcode='[BCDEGRST]'
10840 # Regexp to match symbols that can be accessed directly from C.
10841 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10843 # Transform the above into a raw symbol and a C symbol.
10844 symxfrm='\1 \2\3 \3'
10846 # Transform an extracted symbol line into a proper C declaration
10847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10849 # Transform an extracted symbol line into symbol name and symbol address
10850 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'"
10852 # Define system-specific variables.
10857 cygwin* | mingw* | pw32*)
10858 symcode='[ABCDGISTW]'
10860 hpux*) # Its linker distinguishes data from code symbols
10861 if test "$host_cpu" = ia64; then
10862 symcode='[ABCDEGRST]'
10864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10865 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'"
10868 if test "$host_cpu" = ia64; then
10869 symcode='[ABCDGIRSTW]'
10870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10871 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'"
10874 irix* | nonstopux*)
10875 symcode='[BCDEGRST]'
10878 symcode='[BCDEGQRST]'
10888 # Handle CRLF in mingw tool chain
10892 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10896 # If we're using GNU nm, then use its standard symbol codes.
10897 case `$NM -V 2>&1` in
10898 *GNU* | *'with BFD'*)
10899 symcode='[ABCDGIRSTW]' ;;
10902 # Try without a prefix undercore, then with it.
10903 for ac_symprfx in "" "_"; do
10905 # Write the raw and C identifiers.
10906 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10908 # Check to see that the pipe works correctly.
10912 cat > conftest.$ac_ext <<EOF
10917 void nm_test_func(){}
10921 int main(){nm_test_var='a';nm_test_func();return(0);}
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; then
10929 # Now try to grab the symbols.
10931 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10932 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && test -s "$nlist"; then
10936 # Try sorting and uniquifying the output.
10937 if sort "$nlist" | uniq > "$nlist"T; then
10938 mv -f "$nlist"T "$nlist"
10943 # Make sure that we snagged all the symbols we need.
10944 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10945 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10946 cat <<EOF > conftest.$ac_ext
10952 # Now generate the symbol file.
10953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10955 cat <<EOF >> conftest.$ac_ext
10956 #if defined (__STDC__) && __STDC__
10957 # define lt_ptr_t void *
10959 # define lt_ptr_t char *
10963 /* The mapping between symbol names and symbols. */
10968 lt_preloaded_symbols[] =
10971 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10972 cat <<\EOF >> conftest.$ac_ext
10980 # Now try linking the two files.
10981 mv conftest.$ac_objext conftstm.$ac_objext
10982 lt_save_LIBS="$LIBS"
10983 lt_save_CFLAGS="$CFLAGS"
10984 LIBS="conftstm.$ac_objext"
10985 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10993 LIBS="$lt_save_LIBS"
10994 CFLAGS="$lt_save_CFLAGS"
10996 echo "cannot find nm_test_func in $nlist" >&5
10999 echo "cannot find nm_test_var in $nlist" >&5
11002 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11005 echo "$progname: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 rm -f conftest* conftst*
11010 # Do not use the global_symbol_pipe unless it works.
11011 if test "$pipe_works" = yes; then
11014 lt_cv_sys_global_symbol_pipe=
11020 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11021 lt_cv_sys_global_symbol_to_cdecl=
11023 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11024 echo "$as_me:$LINENO: result: failed" >&5
11025 echo "${ECHO_T}failed" >&6
11027 echo "$as_me:$LINENO: result: ok" >&5
11028 echo "${ECHO_T}ok" >&6
11031 echo "$as_me:$LINENO: checking for objdir" >&5
11032 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11033 if test "${lt_cv_objdir+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 rm -f .libs 2>/dev/null
11037 mkdir .libs 2>/dev/null
11038 if test -d .libs; then
11041 # MS-DOS does not allow filenames that begin with a dot.
11044 rmdir .libs 2>/dev/null
11046 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11047 echo "${ECHO_T}$lt_cv_objdir" >&6
11048 objdir=$lt_cv_objdir
11056 # AIX sometimes has problems with the GCC collect2 program. For some
11057 # reason, if we set the COLLECT_NAMES environment variable, the problems
11058 # vanish in a puff of smoke.
11059 if test "X${COLLECT_NAMES+set}" != Xset; then
11061 export COLLECT_NAMES
11066 # Sed substitution that helps us do robust quoting. It backslashifies
11067 # metacharacters that are still active within double-quoted strings.
11068 Xsed='sed -e s/^X//'
11069 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11071 # Same as above, but do not quote variable references.
11072 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11074 # Sed substitution to delay expansion of an escaped shell variable in a
11075 # double_quote_subst'ed string.
11076 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11078 # Sed substitution to avoid accidental globbing in evaled expressions
11079 no_glob_subst='s/\*/\\\*/g'
11084 # Global variables:
11085 default_ofile=mklib
11086 can_build_shared=yes
11088 # All known linkers require a `.a' archive for static linking (except M$VC,
11089 # which needs '.lib').
11091 ltmain="$ac_aux_dir/ltmain.sh"
11092 ofile="$default_ofile"
11093 with_gnu_ld="$lt_cv_prog_gnu_ld"
11095 if test -n "$ac_tool_prefix"; then
11096 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11097 set dummy ${ac_tool_prefix}ar; ac_word=$2
11098 echo "$as_me:$LINENO: checking for $ac_word" >&5
11099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11100 if test "${ac_cv_prog_AR+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 if test -n "$AR"; then
11104 ac_cv_prog_AR="$AR" # Let the user override the test.
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_prog_AR="${ac_tool_prefix}ar"
11114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 if test -n "$AR"; then
11124 echo "$as_me:$LINENO: result: $AR" >&5
11125 echo "${ECHO_T}$AR" >&6
11127 echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6
11132 if test -z "$ac_cv_prog_AR"; then
11134 # Extract the first word of "ar", so it can be a program name with args.
11135 set dummy ar; ac_word=$2
11136 echo "$as_me:$LINENO: checking for $ac_word" >&5
11137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11138 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 if test -n "$ac_ct_AR"; then
11142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_ac_ct_AR="ar"
11152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11162 if test -n "$ac_ct_AR"; then
11163 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11164 echo "${ECHO_T}$ac_ct_AR" >&6
11166 echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6
11172 AR="$ac_cv_prog_AR"
11175 if test -n "$ac_tool_prefix"; then
11176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11178 echo "$as_me:$LINENO: checking for $ac_word" >&5
11179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180 if test "${ac_cv_prog_RANLIB+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 if test -n "$RANLIB"; then
11184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 RANLIB=$ac_cv_prog_RANLIB
11203 if test -n "$RANLIB"; then
11204 echo "$as_me:$LINENO: result: $RANLIB" >&5
11205 echo "${ECHO_T}$RANLIB" >&6
11207 echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11212 if test -z "$ac_cv_prog_RANLIB"; then
11213 ac_ct_RANLIB=$RANLIB
11214 # Extract the first word of "ranlib", so it can be a program name with args.
11215 set dummy ranlib; ac_word=$2
11216 echo "$as_me:$LINENO: checking for $ac_word" >&5
11217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 if test -n "$ac_ct_RANLIB"; then
11222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_ac_ct_RANLIB="ranlib"
11232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11242 if test -n "$ac_ct_RANLIB"; then
11243 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11244 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11246 echo "$as_me:$LINENO: result: no" >&5
11247 echo "${ECHO_T}no" >&6
11250 RANLIB=$ac_ct_RANLIB
11252 RANLIB="$ac_cv_prog_RANLIB"
11255 if test -n "$ac_tool_prefix"; then
11256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11257 set dummy ${ac_tool_prefix}strip; ac_word=$2
11258 echo "$as_me:$LINENO: checking for $ac_word" >&5
11259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260 if test "${ac_cv_prog_STRIP+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 if test -n "$STRIP"; then
11264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 STRIP=$ac_cv_prog_STRIP
11283 if test -n "$STRIP"; then
11284 echo "$as_me:$LINENO: result: $STRIP" >&5
11285 echo "${ECHO_T}$STRIP" >&6
11287 echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6
11292 if test -z "$ac_cv_prog_STRIP"; then
11294 # Extract the first word of "strip", so it can be a program name with args.
11295 set dummy strip; ac_word=$2
11296 echo "$as_me:$LINENO: checking for $ac_word" >&5
11297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 if test -n "$ac_ct_STRIP"; then
11302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_prog_ac_ct_STRIP="strip"
11312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11322 if test -n "$ac_ct_STRIP"; then
11323 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11324 echo "${ECHO_T}$ac_ct_STRIP" >&6
11326 echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11332 STRIP="$ac_cv_prog_STRIP"
11337 old_CFLAGS="$CFLAGS"
11339 # Set sane defaults for various variables
11340 test -z "$AR" && AR=ar
11341 test -z "$AR_FLAGS" && AR_FLAGS=cru
11342 test -z "$AS" && AS=as
11343 test -z "$CC" && CC=cc
11344 test -z "$LTCC" && LTCC=$CC
11345 test -z "$DLLTOOL" && DLLTOOL=dlltool
11346 test -z "$LD" && LD=ld
11347 test -z "$LN_S" && LN_S="ln -s"
11348 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11349 test -z "$NM" && NM=nm
11350 test -z "$SED" && SED=sed
11351 test -z "$OBJDUMP" && OBJDUMP=objdump
11352 test -z "$RANLIB" && RANLIB=:
11353 test -z "$STRIP" && STRIP=:
11354 test -z "$ac_objext" && ac_objext=o
11356 # Determine commands to create old-style static archives.
11357 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11358 old_postinstall_cmds='chmod 644 $oldlib'
11359 old_postuninstall_cmds=
11361 if test -n "$RANLIB"; then
11364 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11367 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11370 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11373 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11375 # Only perform the check for file, if the check method requires it
11376 case $deplibs_check_method in
11378 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11379 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11380 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11381 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11389 lt_save_MAGIC_CMD="$MAGIC_CMD"
11390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11391 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11392 for ac_dir in $ac_dummy; do
11394 test -z "$ac_dir" && ac_dir=.
11395 if test -f $ac_dir/${ac_tool_prefix}file; then
11396 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11397 if test -n "$file_magic_test_file"; then
11398 case $deplibs_check_method in
11400 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11403 $EGREP "$file_magic_regex" > /dev/null; then
11408 *** Warning: the command libtool uses to detect shared libraries,
11409 *** $file_magic_cmd, produces output that libtool cannot recognize.
11410 *** The result is that libtool may fail to recognize shared libraries
11411 *** as such. This will affect the creation of libtool libraries that
11412 *** depend on shared libraries, but programs linked with such libtool
11413 *** libraries will work regardless of this problem. Nevertheless, you
11414 *** may want to report the problem to your system manager and/or to
11415 *** bug-libtool@gnu.org
11425 MAGIC_CMD="$lt_save_MAGIC_CMD"
11430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11431 if test -n "$MAGIC_CMD"; then
11432 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11433 echo "${ECHO_T}$MAGIC_CMD" >&6
11435 echo "$as_me:$LINENO: result: no" >&5
11436 echo "${ECHO_T}no" >&6
11439 if test -z "$lt_cv_path_MAGIC_CMD"; then
11440 if test -n "$ac_tool_prefix"; then
11441 echo "$as_me:$LINENO: checking for file" >&5
11442 echo $ECHO_N "checking for file... $ECHO_C" >&6
11443 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11451 lt_save_MAGIC_CMD="$MAGIC_CMD"
11452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11453 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11454 for ac_dir in $ac_dummy; do
11456 test -z "$ac_dir" && ac_dir=.
11457 if test -f $ac_dir/file; then
11458 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11459 if test -n "$file_magic_test_file"; then
11460 case $deplibs_check_method in
11462 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11465 $EGREP "$file_magic_regex" > /dev/null; then
11470 *** Warning: the command libtool uses to detect shared libraries,
11471 *** $file_magic_cmd, produces output that libtool cannot recognize.
11472 *** The result is that libtool may fail to recognize shared libraries
11473 *** as such. This will affect the creation of libtool libraries that
11474 *** depend on shared libraries, but programs linked with such libtool
11475 *** libraries will work regardless of this problem. Nevertheless, you
11476 *** may want to report the problem to your system manager and/or to
11477 *** bug-libtool@gnu.org
11487 MAGIC_CMD="$lt_save_MAGIC_CMD"
11492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11493 if test -n "$MAGIC_CMD"; then
11494 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11495 echo "${ECHO_T}$MAGIC_CMD" >&6
11497 echo "$as_me:$LINENO: result: no" >&5
11498 echo "${ECHO_T}no" >&6
11511 enable_win32_dll=no
11513 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11514 if test "${enable_libtool_lock+set}" = set; then
11515 enableval="$enable_libtool_lock"
11518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11521 # Check whether --with-pic or --without-pic was given.
11522 if test "${with_pic+set}" = set; then
11523 withval="$with_pic"
11524 pic_mode="$withval"
11528 test -z "$pic_mode" && pic_mode=default
11530 # Use C for the default configuration in the libtool script
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540 # Source file extension for C test sources.
11543 # Object file extension for compiled C test sources.
11547 # Code to be used in simple compile tests
11548 lt_simple_compile_test_code="int some_variable = 0;\n"
11550 # Code to be used in simple link tests
11551 lt_simple_link_test_code='int main(){return(0);}\n'
11554 # If no C compiler was specified, use CC.
11557 # Allow CC to be a program name with arguments.
11562 # Check for any special shared library compilation flags.
11565 if test "$GCC" = no; then
11568 lt_prog_cc_shlib='-belf'
11572 if test -n "$lt_prog_cc_shlib"; then
11573 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11574 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11575 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11577 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11578 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11579 lt_cv_prog_cc_can_build_shared=no
11585 # Check to make sure the static flag actually works.
11587 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11588 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11589 if test "${lt_prog_compiler_static_works+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 lt_prog_compiler_static_works=no
11593 save_LDFLAGS="$LDFLAGS"
11594 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11595 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11597 # The compiler can only warn and ignore the option if not recognized
11598 # So say no if there are warnings
11599 if test -s conftest.err; then
11600 # Append any errors to the config.log.
11601 cat conftest.err 1>&5
11603 lt_prog_compiler_static_works=yes
11607 LDFLAGS="$save_LDFLAGS"
11610 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11611 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11613 if test x"$lt_prog_compiler_static_works" = xyes; then
11616 lt_prog_compiler_static=
11622 lt_prog_compiler_no_builtin_flag=
11624 if test "$GCC" = yes; then
11625 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11628 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11629 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11630 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 lt_cv_prog_compiler_rtti_exceptions=no
11634 ac_outfile=conftest.$ac_objext
11635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11636 lt_compiler_flag="-fno-rtti -fno-exceptions"
11637 # Insert the option either (1) after the last *FLAGS variable, or
11638 # (2) before a word containing "conftest.", or (3) at the end.
11639 # Note that $ac_compile itself does not contain backslashes and begins
11640 # with a dollar sign (not a hyphen), so the echo should work correctly.
11641 # The option is referenced via a variable to avoid confusing sed.
11642 lt_compile=`echo "$ac_compile" | $SED \
11643 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11645 -e 's:$: $lt_compiler_flag:'`
11646 (eval echo "\"\$as_me:11646: $lt_compile\"" >&5)
11647 (eval "$lt_compile" 2>conftest.err)
11649 cat conftest.err >&5
11650 echo "$as_me:11650: \$? = $ac_status" >&5
11651 if (exit $ac_status) && test -s "$ac_outfile"; then
11652 # The compiler can only warn and ignore the option if not recognized
11653 # So say no if there are warnings
11654 if test ! -s conftest.err; then
11655 lt_cv_prog_compiler_rtti_exceptions=yes
11661 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11662 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11672 lt_prog_compiler_wl=
11673 lt_prog_compiler_pic=
11674 lt_prog_compiler_static=
11676 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11677 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11679 if test "$GCC" = yes; then
11680 lt_prog_compiler_wl='-Wl,'
11681 lt_prog_compiler_static='-static'
11685 # All AIX code is PIC.
11686 if test "$host_cpu" = ia64; then
11687 # AIX 5 now supports IA64 processor
11688 lt_prog_compiler_static='-Bstatic'
11693 # FIXME: we need at least 68020 code to build shared libraries, but
11694 # adding the `-m68020' flag to GCC prevents building anything better,
11696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11699 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11700 # PIC is the default for these OSes.
11703 mingw* | pw32* | os2*)
11704 # This hack is so that the source file can tell whether it is being
11705 # built for inclusion in a dll (and should export symbols for example).
11706 lt_prog_compiler_pic='-DDLL_EXPORT'
11709 darwin* | rhapsody*)
11710 # PIC is the default on this platform
11711 # Common symbols not allowed in MH_DYLIB files
11712 lt_prog_compiler_pic='-fno-common'
11716 # Just because we use GCC doesn't mean we suddenly get shared libraries
11717 # on systems that don't support them.
11718 lt_prog_compiler_can_build_shared=no
11723 if test -d /usr/nec; then
11724 lt_prog_compiler_pic=-Kconform_pic
11729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11730 # not for PA HP-UX.
11731 case "$host_cpu" in
11736 lt_prog_compiler_pic='-fPIC'
11742 lt_prog_compiler_pic='-fPIC'
11746 # PORTME Check for flag to pass linker flags through the system compiler.
11749 lt_prog_compiler_wl='-Wl,'
11750 if test "$host_cpu" = ia64; then
11751 # AIX 5 now supports IA64 processor
11752 lt_prog_compiler_static='-Bstatic'
11754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11758 # PIC is the default on this platform
11759 # Common symbols not allowed in MH_DYLIB files
11760 case "$cc_basename" in
11762 lt_prog_compiler_pic='-qnocommon'
11763 lt_prog_compiler_wl='-Wl,'
11768 mingw* | pw32* | os2*)
11769 # This hack is so that the source file can tell whether it is being
11770 # built for inclusion in a dll (and should export symbols for example).
11771 lt_prog_compiler_pic='-DDLL_EXPORT'
11774 hpux9* | hpux10* | hpux11*)
11775 lt_prog_compiler_wl='-Wl,'
11776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11777 # not for PA HP-UX.
11778 case "$host_cpu" in
11783 lt_prog_compiler_pic='+Z'
11786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11787 lt_prog_compiler_static='${wl}-a ${wl}archive'
11790 irix5* | irix6* | nonstopux*)
11791 lt_prog_compiler_wl='-Wl,'
11792 # PIC (with -KPIC) is the default.
11793 lt_prog_compiler_static='-non_shared'
11797 lt_prog_compiler_pic='-KPIC'
11798 lt_prog_compiler_static='-Bstatic'
11804 lt_prog_compiler_wl='-Wl,'
11805 lt_prog_compiler_pic='-KPIC'
11806 lt_prog_compiler_static='-static'
11809 lt_prog_compiler_wl='-Wl,'
11810 # All Alpha code is PIC.
11811 lt_prog_compiler_static='-non_shared'
11816 osf3* | osf4* | osf5*)
11817 lt_prog_compiler_wl='-Wl,'
11818 # All OSF/1 code is PIC.
11819 lt_prog_compiler_static='-non_shared'
11823 lt_prog_compiler_pic='-Kpic'
11824 lt_prog_compiler_static='-dn'
11828 lt_prog_compiler_wl='-Wl,'
11829 lt_prog_compiler_pic='-KPIC'
11830 lt_prog_compiler_static='-Bstatic'
11834 lt_prog_compiler_wl='-Qoption ld '
11835 lt_prog_compiler_pic='-PIC'
11836 lt_prog_compiler_static='-Bstatic'
11839 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11840 lt_prog_compiler_wl='-Wl,'
11841 lt_prog_compiler_pic='-KPIC'
11842 lt_prog_compiler_static='-Bstatic'
11846 if test -d /usr/nec ;then
11847 lt_prog_compiler_pic='-Kconform_pic'
11848 lt_prog_compiler_static='-Bstatic'
11853 lt_prog_compiler_pic='-pic'
11854 lt_prog_compiler_static='-Bstatic'
11858 lt_prog_compiler_can_build_shared=no
11863 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11864 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11867 # Check to make sure the PIC flag actually works.
11869 if test -n "$lt_prog_compiler_pic"; then
11871 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11872 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11873 if test "${lt_prog_compiler_pic_works+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 lt_prog_compiler_pic_works=no
11877 ac_outfile=conftest.$ac_objext
11878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11879 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11880 # Insert the option either (1) after the last *FLAGS variable, or
11881 # (2) before a word containing "conftest.", or (3) at the end.
11882 # Note that $ac_compile itself does not contain backslashes and begins
11883 # with a dollar sign (not a hyphen), so the echo should work correctly.
11884 # The option is referenced via a variable to avoid confusing sed.
11885 lt_compile=`echo "$ac_compile" | $SED \
11886 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11888 -e 's:$: $lt_compiler_flag:'`
11889 (eval echo "\"\$as_me:11889: $lt_compile\"" >&5)
11890 (eval "$lt_compile" 2>conftest.err)
11892 cat conftest.err >&5
11893 echo "$as_me:11893: \$? = $ac_status" >&5
11894 if (exit $ac_status) && test -s "$ac_outfile"; then
11895 # The compiler can only warn and ignore the option if not recognized
11896 # So say no if there are warnings
11897 if test ! -s conftest.err; then
11898 lt_prog_compiler_pic_works=yes
11904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11905 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11907 if test x"$lt_prog_compiler_pic_works" = xyes; then
11908 case $lt_prog_compiler_pic in
11910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11913 lt_prog_compiler_pic=
11914 lt_prog_compiler_can_build_shared=no
11919 # For platforms which do not support PIC, -DPIC is meaningless:
11921 lt_prog_compiler_pic=
11924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11928 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 lt_cv_prog_compiler_c_o=no
11934 $rm -r conftest 2>/dev/null
11938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11940 lt_compiler_flag="-o out/conftest2.$ac_objext"
11941 # Insert the option either (1) after the last *FLAGS variable, or
11942 # (2) before a word containing "conftest.", or (3) at the end.
11943 # Note that $ac_compile itself does not contain backslashes and begins
11944 # with a dollar sign (not a hyphen), so the echo should work correctly.
11945 lt_compile=`echo "$ac_compile" | $SED \
11946 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11948 -e 's:$: $lt_compiler_flag:'`
11949 (eval echo "\"\$as_me:11949: $lt_compile\"" >&5)
11950 (eval "$lt_compile" 2>out/conftest.err)
11952 cat out/conftest.err >&5
11953 echo "$as_me:11953: \$? = $ac_status" >&5
11954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11956 # The compiler can only warn and ignore the option if not recognized
11957 # So say no if there are warnings
11958 if test ! -s out/conftest.err; then
11959 lt_cv_prog_compiler_c_o=yes
11964 # SGI C++ compiler will create directory out/ii_files/ for
11965 # template instantiation
11966 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11967 $rm out/* && rmdir out
11973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11977 hard_links="nottested"
11978 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11979 # do not overwrite the value of need_locks provided by the user
11980 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11986 ln conftest.a conftest.b 2>&5 || hard_links=no
11987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11988 echo "$as_me:$LINENO: result: $hard_links" >&5
11989 echo "${ECHO_T}$hard_links" >&6
11990 if test "$hard_links" = no; then
11991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11999 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12003 allow_undefined_flag=
12004 enable_shared_with_static_runtimes=no
12006 archive_expsym_cmds=
12007 old_archive_From_new_cmds=
12008 old_archive_from_expsyms_cmds=
12009 export_dynamic_flag_spec=
12010 whole_archive_flag_spec=
12011 thread_safe_flag_spec=
12012 hardcode_libdir_flag_spec=
12013 hardcode_libdir_flag_spec_ld=
12014 hardcode_libdir_separator=
12016 hardcode_minus_L=no
12017 hardcode_shlibpath_var=unsupported
12018 link_all_deplibs=unknown
12019 hardcode_automatic=no
12021 module_expsym_cmds=
12022 always_export_symbols=no
12023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12024 # include_expsyms should be a list of space-separated symbols to be *always*
12025 # included in the symbol list
12027 # exclude_expsyms can be an extended regexp of symbols to exclude
12028 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12030 # as well as any symbol that contains `d'.
12031 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12033 # platforms (ab)use it in PIC code, but their linkers get confused if
12034 # the symbol is explicitly referenced. Since portable code cannot
12035 # rely on this symbol name, it's probably fine to never include it in
12036 # preloaded symbol tables.
12037 extract_expsyms_cmds=
12040 cygwin* | mingw* | pw32*)
12041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12042 # When not using gcc, we currently assume that we are using
12043 # Microsoft Visual C++.
12044 if test "$GCC" != yes; then
12054 if test "$with_gnu_ld" = yes; then
12055 # If archive_cmds runs LD, not CC, wlarc should be empty
12058 # See if GNU ld supports shared libraries.
12060 aix3* | aix4* | aix5*)
12061 # On AIX/PPC, the GNU linker is very broken
12062 if test "$host_cpu" != ia64; then
12066 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12067 *** to be unable to reliably create shared libraries on AIX.
12068 *** Therefore, libtool is disabling shared libraries support. If you
12069 *** really care for shared libraries, you may want to modify your PATH
12070 *** so that a non-GNU linker is found, and then restart.
12077 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)'
12078 hardcode_libdir_flag_spec='-L$libdir'
12079 hardcode_minus_L=yes
12081 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12082 # that the semantics of dynamic libraries on AmigaOS, at least up
12083 # to version 4, is to share data among multiple programs linked
12084 # with the same dynamic library. Since this doesn't match the
12085 # behavior of shared libraries on other platforms, we can't use
12091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12092 allow_undefined_flag=unsupported
12093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12094 # support --undefined. This deserves some investigation. FIXME
12095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12101 cygwin* | mingw* | pw32*)
12102 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12103 # as there is no search path for DLLs.
12104 hardcode_libdir_flag_spec='-L$libdir'
12105 allow_undefined_flag=unsupported
12106 always_export_symbols=no
12107 enable_shared_with_static_runtimes=yes
12108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12110 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12112 # If the export-symbols file already is a .def file (1st line
12113 # is EXPORTS), use it as is; otherwise, prepend...
12114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12115 cp $export_symbols $output_objdir/$soname.def;
12117 echo EXPORTS > $output_objdir/$soname.def;
12118 cat $export_symbols >> $output_objdir/$soname.def;
12120 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12137 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12142 *** create shared libraries on Solaris systems. Therefore, libtool
12143 *** is disabling shared libraries support. We urge you to upgrade GNU
12144 *** binutils to release 2.9.1 or newer. Another option is to modify
12145 *** your PATH or compiler configuration so that the native linker is
12146 *** used, and then restart.
12149 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12160 hardcode_direct=yes
12161 hardcode_shlibpath_var=no
12165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12166 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12167 archive_cmds="$tmp_archive_cmds"
12168 supports_anon_versioning=no
12169 case `$LD -v 2>/dev/null` in
12170 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12173 *\ 2.11.*) ;; # other 2.11 versions
12174 *) supports_anon_versioning=yes ;;
12176 if test $supports_anon_versioning = yes; then
12177 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12179 $echo "local: *; };" >> $output_objdir/$libname.ver~
12180 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12182 archive_expsym_cmds="$tmp_archive_cmds"
12190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12199 if test "$ld_shlibs" = yes; then
12200 runpath_var=LD_RUN_PATH
12201 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12202 export_dynamic_flag_spec='${wl}--export-dynamic'
12203 # ancient GNU ld didn't support --whole-archive et. al.
12204 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12205 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12207 whole_archive_flag_spec=
12211 # PORTME fill in a description of your system's linker (not GNU ld)
12214 allow_undefined_flag=unsupported
12215 always_export_symbols=yes
12216 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'
12217 # Note: this linker hardcodes the directories in LIBPATH if there
12218 # are no directories specified by -L.
12219 hardcode_minus_L=yes
12220 if test "$GCC" = yes && test -z "$link_static_flag"; then
12221 # Neither direct hardcoding nor static linking is supported with a
12223 hardcode_direct=unsupported
12228 if test "$host_cpu" = ia64; then
12229 # On IA64, the linker does run time linking by default, so we don't
12230 # have to do anything special.
12231 aix_use_runtimelinking=no
12232 exp_sym_flag='-Bexport'
12235 # If we're using GNU nm, then we don't want the "-C" option.
12236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12237 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12238 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'
12240 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'
12242 aix_use_runtimelinking=no
12244 # Test if we are trying to use run time linking or normal
12245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12246 # need to do runtime linking.
12247 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12248 for ld_flag in $LDFLAGS; do
12249 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12250 aix_use_runtimelinking=yes
12256 exp_sym_flag='-bexport'
12257 no_entry_flag='-bnoentry'
12260 # When large executables or shared objects are built, AIX ld can
12261 # have problems creating the table of contents. If linking a library
12262 # or program results in "error TOC overflow" add -mminimal-toc to
12263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12267 hardcode_direct=yes
12268 hardcode_libdir_separator=':'
12269 link_all_deplibs=yes
12271 if test "$GCC" = yes; then
12272 case $host_os in aix4.012|aix4.012.*)
12273 # We only want to do this on AIX 4.2 and lower, the check
12274 # below for broken collect2 doesn't work under 4.3+
12275 collect2name=`${CC} -print-prog-name=collect2`
12276 if test -f "$collect2name" && \
12277 strings "$collect2name" | grep resolve_lib_name >/dev/null
12279 # We have reworked collect2
12280 hardcode_direct=yes
12282 # We have old collect2
12283 hardcode_direct=unsupported
12284 # It fails to find uninstalled libraries when the uninstalled
12285 # path is not listed in the libpath. Setting hardcode_minus_L
12286 # to unsupported forces relinking
12287 hardcode_minus_L=yes
12288 hardcode_libdir_flag_spec='-L$libdir'
12289 hardcode_libdir_separator=
12292 shared_flag='-shared'
12295 if test "$host_cpu" = ia64; then
12296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12297 # chokes on -Wl,-G. The following line is correct:
12300 if test "$aix_use_runtimelinking" = yes; then
12301 shared_flag='${wl}-G'
12303 shared_flag='${wl}-bM:SRE'
12308 # It seems that -bexpall does not export symbols beginning with
12309 # underscore (_), so it is better to generate a list of symbols to export.
12310 always_export_symbols=yes
12311 if test "$aix_use_runtimelinking" = yes; then
12312 # Warning - without using the other runtime loading flags (-brtl),
12313 # -berok will link without error, but may produce a broken library.
12314 allow_undefined_flag='-berok'
12315 # Determine the default libpath from the value encoded in an empty executable.
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12333 (eval $ac_link) 2>conftest.er1
12335 grep -v '^ *+' conftest.er1 >conftest.err
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -z "$ac_c_werror_flag"
12341 || test ! -s conftest.err'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12356 # Check for a 64-bit object if we didn't find anything.
12357 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; }
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12364 rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12369 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"
12371 if test "$host_cpu" = ia64; then
12372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12373 allow_undefined_flag="-z nodefs"
12374 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"
12376 # Determine the default libpath from the value encoded in an empty executable.
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12417 # Check for a 64-bit object if we didn't find anything.
12418 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; }
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12425 rm -f conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12430 # Warning - without using the other run time loading flags,
12431 # -berok will link without error, but may produce a broken library.
12432 no_undefined_flag=' ${wl}-bernotok'
12433 allow_undefined_flag=' ${wl}-berok'
12434 # -bexpall does not export symbols beginning with underscore (_)
12435 always_export_symbols=yes
12436 # Exported symbols can be pulled into shared objects from archives
12437 whole_archive_flag_spec=' '
12438 archive_cmds_need_lc=yes
12439 # This is similar to how AIX traditionally builds it's shared libraries.
12440 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'
12446 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)'
12447 hardcode_libdir_flag_spec='-L$libdir'
12448 hardcode_minus_L=yes
12449 # see comment about different semantics on the GNU ld section
12454 export_dynamic_flag_spec=-rdynamic
12457 cygwin* | mingw* | pw32*)
12458 # When not using gcc, we currently assume that we are using
12459 # Microsoft Visual C++.
12460 # hardcode_libdir_flag_spec is actually meaningless, as there is
12461 # no search path for DLLs.
12462 hardcode_libdir_flag_spec=' '
12463 allow_undefined_flag=unsupported
12464 # Tell ltmain to make .lib files, not .a files.
12466 # Tell ltmain to make .dll files, not .so files.
12468 # FIXME: Setting linknames here is a bad hack.
12469 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12470 # The linker will automatically build a .lib file if we build a DLL.
12471 old_archive_From_new_cmds='true'
12472 # FIXME: Should let the user specify the lib program.
12473 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12474 fix_srcfile_path='`cygpath -w "$srcfile"`'
12475 enable_shared_with_static_runtimes=yes
12478 darwin* | rhapsody*)
12480 rhapsody* | darwin1.[012])
12481 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12484 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12485 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12487 case ${MACOSX_DEPLOYMENT_TARGET} in
12489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12492 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12498 archive_cmds_need_lc=no
12500 hardcode_automatic=yes
12501 hardcode_shlibpath_var=unsupported
12502 whole_archive_flag_spec=''
12503 link_all_deplibs=yes
12504 if test "$GCC" = yes ; then
12505 output_verbose_link_cmd='echo'
12506 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12507 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12509 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}'
12510 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}'
12512 case "$cc_basename" in
12514 output_verbose_link_cmd='echo'
12515 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12516 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12518 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}'
12519 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}'
12529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12530 hardcode_libdir_flag_spec='-L$libdir'
12531 hardcode_shlibpath_var=no
12538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12539 # support. Future versions do this automatically, but an explicit c++rt0.o
12540 # does not break anything, and helps significantly (at the cost of a little
12543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12544 hardcode_libdir_flag_spec='-R$libdir'
12545 hardcode_direct=yes
12546 hardcode_shlibpath_var=no
12549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12552 hardcode_direct=yes
12553 hardcode_minus_L=yes
12554 hardcode_shlibpath_var=no
12557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12558 freebsd* | kfreebsd*-gnu)
12559 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12560 hardcode_libdir_flag_spec='-R$libdir'
12561 hardcode_direct=yes
12562 hardcode_shlibpath_var=no
12566 if test "$GCC" = yes; then
12567 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'
12569 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'
12571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12572 hardcode_libdir_separator=:
12573 hardcode_direct=yes
12575 # hardcode_minus_L: Not really in the search PATH,
12576 # but as the default location of the library.
12577 hardcode_minus_L=yes
12578 export_dynamic_flag_spec='${wl}-E'
12582 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12583 case "$host_cpu" in
12585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12588 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12592 case "$host_cpu" in
12594 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12601 if test "$with_gnu_ld" = no; then
12602 case "$host_cpu" in
12604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12605 hardcode_libdir_flag_spec_ld='+b $libdir'
12606 hardcode_libdir_separator=:
12608 hardcode_shlibpath_var=no
12611 hardcode_libdir_flag_spec='-L$libdir'
12613 hardcode_shlibpath_var=no
12615 # hardcode_minus_L: Not really in the search PATH,
12616 # but as the default location of the library.
12617 hardcode_minus_L=yes
12620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12621 hardcode_libdir_separator=:
12622 hardcode_direct=yes
12623 export_dynamic_flag_spec='${wl}-E'
12625 # hardcode_minus_L: Not really in the search PATH,
12626 # but as the default location of the library.
12627 hardcode_minus_L=yes
12633 irix5* | irix6* | nonstopux*)
12634 if test "$GCC" = yes; then
12635 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'
12637 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'
12638 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12641 hardcode_libdir_separator=:
12642 link_all_deplibs=yes
12646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12649 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12651 hardcode_libdir_flag_spec='-R$libdir'
12652 hardcode_direct=yes
12653 hardcode_shlibpath_var=no
12657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12658 hardcode_direct=yes
12659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12660 hardcode_libdir_separator=:
12661 hardcode_shlibpath_var=no
12665 hardcode_direct=yes
12666 hardcode_shlibpath_var=no
12667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12669 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12671 export_dynamic_flag_spec='${wl}-E'
12674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12676 hardcode_libdir_flag_spec='-R$libdir'
12679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12687 hardcode_libdir_flag_spec='-L$libdir'
12688 hardcode_minus_L=yes
12689 allow_undefined_flag=unsupported
12690 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'
12691 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12695 if test "$GCC" = yes; then
12696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12697 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'
12699 allow_undefined_flag=' -expect_unresolved \*'
12700 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'
12702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12703 hardcode_libdir_separator=:
12706 osf4* | osf5*) # as osf3* with the addition of -msym flag
12707 if test "$GCC" = yes; then
12708 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12709 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'
12710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12712 allow_undefined_flag=' -expect_unresolved \*'
12713 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'
12714 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12715 $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'
12717 # Both c and cxx compiler support -rpath directly
12718 hardcode_libdir_flag_spec='-rpath $libdir'
12720 hardcode_libdir_separator=:
12724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12725 hardcode_shlibpath_var=no
12726 export_dynamic_flag_spec='${wl}-Bexport'
12727 runpath_var=LD_RUN_PATH
12728 hardcode_runpath_var=yes
12732 no_undefined_flag=' -z text'
12733 if test "$GCC" = yes; then
12734 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12736 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12739 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12742 hardcode_libdir_flag_spec='-R$libdir'
12743 hardcode_shlibpath_var=no
12745 solaris2.[0-5] | solaris2.[0-5].*) ;;
12746 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12747 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12749 link_all_deplibs=yes
12753 if test "x$host_vendor" = xsequent; then
12754 # Use $CC to link under sequent, because it throws in some extra .o
12755 # files that make .init and .fini sections work.
12756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_libdir_flag_spec='-L$libdir'
12761 hardcode_direct=yes
12762 hardcode_minus_L=yes
12763 hardcode_shlibpath_var=no
12767 case $host_vendor in
12769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12770 hardcode_direct=yes # is this really true???
12773 ## LD is ld it makes a PLAMLIB
12774 ## CC just makes a GrossModule.
12775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12776 reload_cmds='$CC -r -o $output$reload_objs'
12780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12784 runpath_var='LD_RUN_PATH'
12785 hardcode_shlibpath_var=no
12789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12790 hardcode_shlibpath_var=no
12791 export_dynamic_flag_spec='-Bexport'
12795 if test -d /usr/nec; then
12796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797 hardcode_shlibpath_var=no
12798 runpath_var=LD_RUN_PATH
12799 hardcode_runpath_var=yes
12805 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12806 hardcode_direct=yes
12807 hardcode_minus_L=no
12808 hardcode_shlibpath_var=no
12809 hardcode_runpath_var=yes
12810 runpath_var=LD_RUN_PATH
12813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12814 no_undefined_flag='${wl}-z ${wl}text'
12815 if test "$GCC" = yes; then
12816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12818 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12820 runpath_var='LD_RUN_PATH'
12821 hardcode_shlibpath_var=no
12825 no_undefined_flag=' -z text'
12826 # $CC -shared without GNU ld will not create a library from C++
12827 # object files and a static libstdc++, better avoid it by now
12828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12829 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12831 hardcode_libdir_flag_spec=
12832 hardcode_shlibpath_var=no
12833 runpath_var='LD_RUN_PATH'
12837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12838 hardcode_libdir_flag_spec='-L$libdir'
12839 hardcode_shlibpath_var=no
12848 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12849 echo "${ECHO_T}$ld_shlibs" >&6
12850 test "$ld_shlibs" = no && can_build_shared=no
12852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12853 if test "$GCC" = yes; then
12854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12858 # Do we need to explicitly link libc?
12860 case "x$archive_cmds_need_lc" in
12862 # Assume -lc should be added
12863 archive_cmds_need_lc=yes
12865 if test "$enable_shared" = yes && test "$GCC" = yes; then
12866 case $archive_cmds in
12868 # FIXME: we may have to deal with multi-command sequences.
12871 # Test whether the compiler implicitly links with -lc since on some
12872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12873 # to ld, don't add -lc before -lgcc.
12874 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12875 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } 2>conftest.err; then
12886 libobjs=conftest.$ac_objext
12888 wl=$lt_prog_compiler_wl
12894 lt_save_allow_undefined_flag=$allow_undefined_flag
12895 allow_undefined_flag=
12896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }
12902 archive_cmds_need_lc=no
12904 archive_cmds_need_lc=yes
12906 allow_undefined_flag=$lt_save_allow_undefined_flag
12908 cat conftest.err 1>&5
12911 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12912 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12919 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12921 library_names_spec=
12922 libname_spec='lib$name'
12926 postuninstall_cmds=
12930 shlibpath_overrides_runpath=unknown
12932 dynamic_linker="$host_os ld.so"
12933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12934 if test "$GCC" = yes; then
12935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12937 # if the path contains ";" then we assume it to be the separator
12938 # otherwise default to the standard path separator (i.e. ":") - it is
12939 # assumed that no part of a normal pathname contains ";" but that should
12940 # okay in the real world where ";" in dirpaths is itself problematic.
12941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12948 need_lib_prefix=unknown
12949 hardcode_into_libs=no
12951 # when you set need_version to no, make sure it does not cause -set_version
12952 # flags to be left without arguments
12953 need_version=unknown
12958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12959 shlibpath_var=LIBPATH
12961 # AIX 3 has no versioning support, so we append a major version to the name.
12962 soname_spec='${libname}${release}${shared_ext}$major'
12969 hardcode_into_libs=yes
12970 if test "$host_cpu" = ia64; then
12971 # AIX 5 supports IA64
12972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12973 shlibpath_var=LD_LIBRARY_PATH
12975 # With GCC up to 2.95.x, collect2 would create an import file
12976 # for dependence libraries. The import file would start with
12977 # the line `#! .'. This would cause the generated library to
12978 # depend on `.', always an invalid library. This was fixed in
12979 # development snapshots of GCC prior to 3.0.
12981 aix4 | aix4.[01] | aix4.[01].*)
12982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12987 can_build_shared=no
12991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12992 # soname into executable. Probably we can add versioning support to
12993 # collect2, so additional links can be useful in future.
12994 if test "$aix_use_runtimelinking" = yes; then
12995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12996 # instead of lib<name>.a to let people know that these are not
12997 # typical AIX shared libraries.
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 # We preserve .a as extension for shared libraries through AIX4.2
13001 # and later when we are not doing run time linking.
13002 library_names_spec='${libname}${release}.a $libname.a'
13003 soname_spec='${libname}${release}${shared_ext}$major'
13005 shlibpath_var=LIBPATH
13010 library_names_spec='$libname.ixlibrary $libname.a'
13011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13012 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'
13016 library_names_spec='${libname}${shared_ext}'
13017 dynamic_linker="$host_os ld.so"
13018 shlibpath_var=LIBRARY_PATH
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13027 shlibpath_var=LD_LIBRARY_PATH
13028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13030 # the default ld.so.conf also contains /usr/contrib/lib and
13031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13032 # libtool to hard-code these into programs
13035 cygwin* | mingw* | pw32*)
13036 version_type=windows
13041 case $GCC,$host_os in
13042 yes,cygwin* | yes,mingw* | yes,pw32*)
13043 library_names_spec='$libname.dll.a'
13044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13045 postinstall_cmds='base_file=`basename \${file}`~
13046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13047 dldir=$destdir/`dirname \$dlpath`~
13048 test -d \$dldir || mkdir -p \$dldir~
13049 $install_prog $dir/$dlname \$dldir/$dlname'
13050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13051 dlpath=$dir/\$dldll~
13053 shlibpath_overrides_runpath=yes
13057 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13058 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13059 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13062 # MinGW DLLs use traditional 'lib' prefix
13063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13065 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13066 # It is most probably a Windows format PATH printed by
13067 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13068 # path with ; separators, and with drive letters. We can handle the
13069 # drive letters (cygwin fileutils understands them), so leave them,
13070 # especially as we might pass files found there to a mingw objdump,
13071 # which wouldn't understand a cygwinified path. Ahh.
13072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13078 # pw32 DLLs use 'pw' prefix rather than 'lib'
13079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13088 dynamic_linker='Win32 ld.exe'
13089 # FIXME: first we should search . and the directory the executable is in
13093 darwin* | rhapsody*)
13094 dynamic_linker="$host_os dyld"
13095 version_type=darwin
13098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13099 soname_spec='${libname}${release}${major}$shared_ext'
13100 shlibpath_overrides_runpath=yes
13101 shlibpath_var=DYLD_LIBRARY_PATH
13102 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13104 if test "$GCC" = yes; then
13105 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"`
13107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130 soname_spec='${libname}${release}${shared_ext}$major'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=no
13133 hardcode_into_libs=yes
13134 dynamic_linker='GNU ld.so'
13138 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13139 version_type=freebsd-$objformat
13140 case $version_type in
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13151 shlibpath_var=LD_LIBRARY_PATH
13154 shlibpath_overrides_runpath=yes
13156 freebsd3.01* | freebsdelf3.01*)
13157 shlibpath_overrides_runpath=yes
13158 hardcode_into_libs=yes
13161 shlibpath_overrides_runpath=no
13162 hardcode_into_libs=yes
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13173 shlibpath_var=LD_LIBRARY_PATH
13174 hardcode_into_libs=yes
13177 hpux9* | hpux10* | hpux11*)
13178 # Give a soname corresponding to the major version so that dld.sl refuses to
13179 # link against other versions.
13183 case "$host_cpu" in
13186 hardcode_into_libs=yes
13187 dynamic_linker="$host_os dld.so"
13188 shlibpath_var=LD_LIBRARY_PATH
13189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 if test "X$HPUX_IA64_MODE" = X32; then
13193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13201 hardcode_into_libs=yes
13202 dynamic_linker="$host_os dld.sl"
13203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13212 dynamic_linker="$host_os dld.sl"
13213 shlibpath_var=SHLIB_PATH
13214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13220 postinstall_cmds='chmod 555 $lib'
13223 irix5* | irix6* | nonstopux*)
13225 nonstopux*) version_type=nonstopux ;;
13227 if test "$lt_cv_prog_gnu_ld" = yes; then
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13238 irix5* | nonstopux*)
13239 libsuff= shlibsuff=
13242 case $LD in # libtool.m4 will add one of these switches to LD
13243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13244 libsuff= shlibsuff= libmagic=32-bit;;
13245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13246 libsuff=32 shlibsuff=N32 libmagic=N32;;
13247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13249 *) libsuff= shlibsuff= libmagic=never-match;;
13253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13254 shlibpath_overrides_runpath=no
13255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13257 hardcode_into_libs=yes
13260 # No shared lib support for Linux oldld, aout, or coff.
13261 linux*oldld* | linux*aout* | linux*coff*)
13265 # This must be Linux ELF.
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 soname_spec='${libname}${release}${shared_ext}$major'
13272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 shlibpath_overrides_runpath=no
13275 # This implies no fast_install, which is unacceptable.
13276 # Some rework will be needed to allow for fast_install
13277 # before this can be enabled.
13278 hardcode_into_libs=yes
13280 # Append ld.so.conf contents to the search path
13281 if test -f /etc/ld.so.conf; then
13282 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13286 # We used to test for /lib/ld.so.1 and disable shared libraries on
13287 # powerpc, because MkLinux only supported shared libraries with the
13288 # GNU dynamic linker. Since this was broken with cross compilers,
13289 # most powerpc-linux boxes support dynamic linking these days and
13290 # people can always --disable-shared, the test was removed, and we
13291 # assume the GNU/Linux dynamic linker is in use.
13292 dynamic_linker='GNU/Linux ld.so'
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13303 hardcode_into_libs=yes
13304 dynamic_linker='GNU ld.so'
13311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13314 dynamic_linker='NetBSD (a.out) ld.so'
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13317 soname_spec='${libname}${release}${shared_ext}$major'
13318 dynamic_linker='NetBSD ld.elf_so'
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=yes
13322 hardcode_into_libs=yes
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 shlibpath_overrides_runpath=yes
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348 shlibpath_var=LD_LIBRARY_PATH
13349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13351 openbsd2.[89] | openbsd2.[89].*)
13352 shlibpath_overrides_runpath=no
13355 shlibpath_overrides_runpath=yes
13359 shlibpath_overrides_runpath=yes
13364 libname_spec='$name'
13367 library_names_spec='$libname${shared_ext} $libname.a'
13368 dynamic_linker='OS/2 ld.exe'
13369 shlibpath_var=LIBPATH
13372 osf3* | osf4* | osf5*)
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387 shlibpath_var=LD_LIBRARY_PATH
13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395 soname_spec='${libname}${release}${shared_ext}$major'
13396 shlibpath_var=LD_LIBRARY_PATH
13397 shlibpath_overrides_runpath=yes
13398 hardcode_into_libs=yes
13399 # ldd complains unless libraries are executable
13400 postinstall_cmds='chmod +x $lib'
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 shlibpath_overrides_runpath=yes
13409 if test "$with_gnu_ld" = yes; then
13415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13420 case $host_vendor in
13422 shlibpath_overrides_runpath=no
13424 export_dynamic_flag_spec='${wl}-Blargedynsym'
13425 runpath_var=LD_RUN_PATH
13433 shlibpath_overrides_runpath=no
13434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13440 if test -d /usr/nec ;then
13442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13443 soname_spec='$libname${shared_ext}.$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451 soname_spec='${libname}${release}${shared_ext}$major'
13452 shlibpath_var=LD_LIBRARY_PATH
13459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13460 echo "${ECHO_T}$dynamic_linker" >&6
13461 test "$dynamic_linker" = no && can_build_shared=no
13463 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13464 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13466 if test -n "$hardcode_libdir_flag_spec" || \
13467 test -n "$runpath_var" || \
13468 test "X$hardcode_automatic" = "Xyes" ; then
13470 # We can hardcode non-existant directories.
13471 if test "$hardcode_direct" != no &&
13472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13473 # have to relink, otherwise we might link with an installed library
13474 # when we should be linking with a yet-to-be-installed one
13475 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13476 test "$hardcode_minus_L" != no; then
13477 # Linking always hardcodes the temporary library directory.
13478 hardcode_action=relink
13480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13481 hardcode_action=immediate
13484 # We cannot hardcode anything, or else we can only hardcode existing
13486 hardcode_action=unsupported
13488 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13489 echo "${ECHO_T}$hardcode_action" >&6
13491 if test "$hardcode_action" = relink; then
13492 # Fast installation is not supported
13493 enable_fast_install=no
13494 elif test "$shlibpath_overrides_runpath" = yes ||
13495 test "$enable_shared" = no; then
13496 # Fast installation is not necessary
13497 enable_fast_install=needless
13502 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13503 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13504 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13507 echo "$as_me:$LINENO: result: yes" >&5
13508 echo "${ECHO_T}yes" >&6
13510 # FIXME - insert some real tests, host_os isn't really good enough
13513 if test -n "$STRIP" ; then
13514 striplib="$STRIP -x"
13515 echo "$as_me:$LINENO: result: yes" >&5
13516 echo "${ECHO_T}yes" >&6
13518 echo "$as_me:$LINENO: result: no" >&5
13519 echo "${ECHO_T}no" >&6
13523 echo "$as_me:$LINENO: result: no" >&5
13524 echo "${ECHO_T}no" >&6
13529 if test "x$enable_dlopen" != xyes; then
13530 enable_dlopen=unknown
13531 enable_dlopen_self=unknown
13532 enable_dlopen_self_static=unknown
13539 lt_cv_dlopen="load_add_on"
13541 lt_cv_dlopen_self=yes
13545 lt_cv_dlopen="LoadLibrary"
13550 lt_cv_dlopen="dlopen"
13555 # if libdl is installed we need to link against it
13556 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_check_lib_save_LIBS=$LIBS
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 /* Override any gcc2 internal prototype to avoid an error. */
13574 /* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13587 (eval $ac_link) 2>conftest.er1
13589 grep -v '^ *+' conftest.er1 >conftest.err
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
13594 { ac_try='test -z "$ac_c_werror_flag"
13595 || test ! -s conftest.err'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_lib_dl_dlopen=yes
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 ac_cv_lib_dl_dlopen=no
13614 rm -f conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS
13618 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13619 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13620 if test $ac_cv_lib_dl_dlopen = yes; then
13621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13624 lt_cv_dlopen="dyld"
13626 lt_cv_dlopen_self=yes
13633 echo "$as_me:$LINENO: checking for shl_load" >&5
13634 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13635 if test "${ac_cv_func_shl_load+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13646 #define shl_load innocuous_shl_load
13648 /* System header to define __stub macros and hopefully few prototypes,
13649 which can conflict with char shl_load (); below.
13650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651 <limits.h> exists even on freestanding compilers. */
13654 # include <limits.h>
13656 # include <assert.h>
13661 /* Override any gcc2 internal prototype to avoid an error. */
13666 /* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13669 /* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13675 char (*f) () = shl_load;
13684 return f != shl_load;
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag"
13699 || test ! -s conftest.err'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest$ac_exeext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_func_shl_load=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_cv_func_shl_load=no
13718 rm -f conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13721 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13722 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13723 if test $ac_cv_func_shl_load = yes; then
13724 lt_cv_dlopen="shl_load"
13726 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13727 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13728 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 ac_check_lib_save_LIBS=$LIBS
13733 cat >conftest.$ac_ext <<_ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13740 /* Override any gcc2 internal prototype to avoid an error. */
13744 /* We use char because int might match the return type of a gcc2
13745 builtin and then its argument prototype would still apply. */
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13757 (eval $ac_link) 2>conftest.er1
13759 grep -v '^ *+' conftest.er1 >conftest.err
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 ac_cv_lib_dld_shl_load=yes
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 ac_cv_lib_dld_shl_load=no
13784 rm -f conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
13786 LIBS=$ac_check_lib_save_LIBS
13788 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13789 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13790 if test $ac_cv_lib_dld_shl_load = yes; then
13791 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13793 echo "$as_me:$LINENO: checking for dlopen" >&5
13794 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13795 if test "${ac_cv_func_dlopen+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 cat >conftest.$ac_ext <<_ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13806 #define dlopen innocuous_dlopen
13808 /* System header to define __stub macros and hopefully few prototypes,
13809 which can conflict with char dlopen (); below.
13810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13811 <limits.h> exists even on freestanding compilers. */
13814 # include <limits.h>
13816 # include <assert.h>
13821 /* Override any gcc2 internal prototype to avoid an error. */
13826 /* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13829 /* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13835 char (*f) () = dlopen;
13844 return f != dlopen;
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851 (eval $ac_link) 2>conftest.er1
13853 grep -v '^ *+' conftest.er1 >conftest.err
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
13858 { ac_try='test -z "$ac_c_werror_flag"
13859 || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_cv_func_dlopen=yes
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 ac_cv_func_dlopen=no
13878 rm -f conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13881 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13882 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13883 if test $ac_cv_func_dlopen = yes; then
13884 lt_cv_dlopen="dlopen"
13886 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 ac_check_lib_save_LIBS=$LIBS
13893 cat >conftest.$ac_ext <<_ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13900 /* Override any gcc2 internal prototype to avoid an error. */
13904 /* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13915 rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>conftest.er1
13919 grep -v '^ *+' conftest.er1 >conftest.err
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -z "$ac_c_werror_flag"
13925 || test ! -s conftest.err'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; } &&
13931 { ac_try='test -s conftest$ac_exeext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_lib_dl_dlopen=yes
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_lib_dl_dlopen=no
13944 rm -f conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13948 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13949 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13950 if test $ac_cv_lib_dl_dlopen = yes; then
13951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13953 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13954 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13955 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lsvld $LIBS"
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13967 /* Override any gcc2 internal prototype to avoid an error. */
13971 /* We use char because int might match the return type of a gcc2
13972 builtin and then its argument prototype would still apply. */
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984 (eval $ac_link) 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest$ac_exeext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_cv_lib_svld_dlopen=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_svld_dlopen=no
14011 rm -f conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14015 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14016 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14017 if test $ac_cv_lib_svld_dlopen = yes; then
14018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14020 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14021 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 ac_check_lib_save_LIBS=$LIBS
14027 cat >conftest.$ac_ext <<_ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14034 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14051 (eval $ac_link) 2>conftest.er1
14053 grep -v '^ *+' conftest.er1 >conftest.err
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag"
14059 || test ! -s conftest.err'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest$ac_exeext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_cv_lib_dld_dld_link=yes
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_cv_lib_dld_dld_link=no
14078 rm -f conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14080 LIBS=$ac_check_lib_save_LIBS
14082 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14083 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14084 if test $ac_cv_lib_dld_dld_link = yes; then
14085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14106 if test "x$lt_cv_dlopen" != xno; then
14112 case $lt_cv_dlopen in
14114 save_CPPFLAGS="$CPPFLAGS"
14115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14117 save_LDFLAGS="$LDFLAGS"
14118 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14121 LIBS="$lt_cv_dlopen_libs $LIBS"
14123 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14124 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14125 if test "${lt_cv_dlopen_self+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 if test "$cross_compiling" = yes; then :
14129 lt_cv_dlopen_self=cross
14131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14132 lt_status=$lt_dlunknown
14133 cat > conftest.$ac_ext <<EOF
14134 #line 14134 "configure"
14135 #include "confdefs.h"
14144 # define LT_DLGLOBAL RTLD_GLOBAL
14147 # define LT_DLGLOBAL DL_GLOBAL
14149 # define LT_DLGLOBAL 0
14153 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14154 find out it does not work in some platform. */
14155 #ifndef LT_DLLAZY_OR_NOW
14157 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14160 # define LT_DLLAZY_OR_NOW DL_LAZY
14163 # define LT_DLLAZY_OR_NOW RTLD_NOW
14166 # define LT_DLLAZY_OR_NOW DL_NOW
14168 # define LT_DLLAZY_OR_NOW 0
14176 extern "C" void exit (int);
14179 void fnord() { int i=42;}
14182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14183 int status = $lt_dlunknown;
14187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14188 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14189 /* dlclose (self); */
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14200 (./conftest; exit; ) 2>/dev/null
14202 case x$lt_status in
14203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14205 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14208 # compilation failed
14209 lt_cv_dlopen_self=no
14216 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14217 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14219 if test "x$lt_cv_dlopen_self" = xyes; then
14220 LDFLAGS="$LDFLAGS $link_static_flag"
14221 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14222 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14223 if test "${lt_cv_dlopen_self_static+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 if test "$cross_compiling" = yes; then :
14227 lt_cv_dlopen_self_static=cross
14229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14230 lt_status=$lt_dlunknown
14231 cat > conftest.$ac_ext <<EOF
14232 #line 14232 "configure"
14233 #include "confdefs.h"
14242 # define LT_DLGLOBAL RTLD_GLOBAL
14245 # define LT_DLGLOBAL DL_GLOBAL
14247 # define LT_DLGLOBAL 0
14251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14252 find out it does not work in some platform. */
14253 #ifndef LT_DLLAZY_OR_NOW
14255 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14258 # define LT_DLLAZY_OR_NOW DL_LAZY
14261 # define LT_DLLAZY_OR_NOW RTLD_NOW
14264 # define LT_DLLAZY_OR_NOW DL_NOW
14266 # define LT_DLLAZY_OR_NOW 0
14274 extern "C" void exit (int);
14277 void fnord() { int i=42;}
14280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14281 int status = $lt_dlunknown;
14285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14287 /* dlclose (self); */
14293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14298 (./conftest; exit; ) 2>/dev/null
14300 case x$lt_status in
14301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14303 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14306 # compilation failed
14307 lt_cv_dlopen_self_static=no
14314 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14315 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14318 CPPFLAGS="$save_CPPFLAGS"
14319 LDFLAGS="$save_LDFLAGS"
14324 case $lt_cv_dlopen_self in
14325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14326 *) enable_dlopen_self=unknown ;;
14329 case $lt_cv_dlopen_self_static in
14330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14331 *) enable_dlopen_self_static=unknown ;;
14336 # Report which librarie types wil actually be built
14337 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14338 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14339 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14340 echo "${ECHO_T}$can_build_shared" >&6
14342 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14343 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14344 test "$can_build_shared" = "no" && enable_shared=no
14346 # On AIX, shared libraries and static libraries use the same namespace, and
14347 # are all built from PIC.
14350 test "$enable_shared" = yes && enable_static=no
14351 if test -n "$RANLIB"; then
14352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14353 postinstall_cmds='$RANLIB $lib'
14358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14359 test "$enable_shared" = yes && enable_static=no
14363 echo "$as_me:$LINENO: result: $enable_shared" >&5
14364 echo "${ECHO_T}$enable_shared" >&6
14366 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14367 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14368 # Make sure either enable_shared or enable_static is yes.
14369 test "$enable_shared" = yes || enable_static=yes
14370 echo "$as_me:$LINENO: result: $enable_static" >&5
14371 echo "${ECHO_T}$enable_static" >&6
14373 # The else clause should only fire when bootstrapping the
14374 # libtool distribution, otherwise you forgot to ship ltmain.sh
14375 # with your package, and you will get complaints that there are
14376 # no rules to generate ltmain.sh.
14377 if test -f "$ltmain"; then
14378 # See if we are running on zsh, and set the options which allow our commands through
14379 # without removal of \ escapes.
14380 if test -n "${ZSH_VERSION+set}" ; then
14381 setopt NO_GLOB_SUBST
14383 # Now quote all the things that may contain metacharacters while being
14384 # careful not to overquote the AC_SUBSTed values. We take copies of the
14385 # variables and quote the copies for generation of the libtool script.
14386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14390 deplibs_check_method reload_flag reload_cmds need_locks \
14391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14392 lt_cv_sys_global_symbol_to_c_name_address \
14393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14394 old_postinstall_cmds old_postuninstall_cmds \
14398 lt_prog_compiler_wl \
14399 lt_prog_compiler_pic \
14400 lt_prog_compiler_static \
14401 lt_prog_compiler_no_builtin_flag \
14402 export_dynamic_flag_spec \
14403 thread_safe_flag_spec \
14404 whole_archive_flag_spec \
14405 enable_shared_with_static_runtimes \
14407 old_archive_from_new_cmds \
14412 compiler_lib_search_path \
14414 archive_expsym_cmds \
14416 postuninstall_cmds \
14417 old_archive_from_expsyms_cmds \
14418 allow_undefined_flag \
14419 no_undefined_flag \
14420 export_symbols_cmds \
14421 hardcode_libdir_flag_spec \
14422 hardcode_libdir_flag_spec_ld \
14423 hardcode_libdir_separator \
14424 hardcode_automatic \
14426 module_expsym_cmds \
14427 lt_cv_prog_compiler_c_o \
14429 include_expsyms; do
14432 old_archive_cmds | \
14433 old_archive_from_new_cmds | \
14435 archive_expsym_cmds | \
14437 module_expsym_cmds | \
14438 old_archive_from_expsyms_cmds | \
14439 export_symbols_cmds | \
14440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14441 postinstall_cmds | postuninstall_cmds | \
14442 old_postinstall_cmds | old_postuninstall_cmds | \
14443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14444 # Double-quote double-evaled strings.
14445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14454 *'\$0 --fallback-echo"')
14455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14459 cfgfile="${ofile}T"
14460 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14462 { echo "$as_me:$LINENO: creating $ofile" >&5
14463 echo "$as_me: creating $ofile" >&6;}
14465 cat <<__EOF__ >> "$cfgfile"
14468 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14469 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14472 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14473 # Free Software Foundation, Inc.
14475 # This file is part of GNU Libtool:
14476 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14478 # This program is free software; you can redistribute it and/or modify
14479 # it under the terms of the GNU General Public License as published by
14480 # the Free Software Foundation; either version 2 of the License, or
14481 # (at your option) any later version.
14483 # This program is distributed in the hope that it will be useful, but
14484 # WITHOUT ANY WARRANTY; without even the implied warranty of
14485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14486 # General Public License for more details.
14488 # You should have received a copy of the GNU General Public License
14489 # along with this program; if not, write to the Free Software
14490 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14492 # As a special exception to the GNU General Public License, if you
14493 # distribute this file as part of a program that contains a
14494 # configuration script generated by Autoconf, you may include it under
14495 # the same distribution terms that you use for the rest of that program.
14497 # A sed program that does not truncate output.
14500 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14501 Xsed="$SED -e s/^X//"
14503 # The HP-UX ksh and POSIX shell print the target directory to stdout
14504 # if CDPATH is set.
14505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14507 # The names of the tagged configurations supported by this script.
14510 # ### BEGIN LIBTOOL CONFIG
14512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14514 # Shell to use when invoking shell scripts.
14517 # Whether or not to build shared libraries.
14518 build_libtool_libs=$enable_shared
14520 # Whether or not to build static libraries.
14521 build_old_libs=$enable_static
14523 # Whether or not to add -lc for building shared libraries.
14524 build_libtool_need_lc=$archive_cmds_need_lc
14526 # Whether or not to disallow shared libs when runtime libs are static
14527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14529 # Whether or not to optimize for fast installation.
14530 fast_install=$enable_fast_install
14533 host_alias=$host_alias
14536 # An echo program that does not interpret backslashes.
14541 AR_FLAGS=$lt_AR_FLAGS
14546 # A language-specific compiler.
14549 # Is the compiler the GNU C compiler?
14555 # The linker used to build libraries.
14558 # Whether we need hard or soft links.
14561 # A BSD-compatible nm program.
14564 # A symbol stripping program
14567 # Used to examine libraries when file_magic_cmd begins "file"
14568 MAGIC_CMD=$MAGIC_CMD
14570 # Used on cygwin: DLL creation program.
14573 # Used on cygwin: object dumper.
14576 # Used on cygwin: assembler.
14579 # The name of the directory that contains temporary libtool files.
14582 # How to create reloadable object files.
14583 reload_flag=$lt_reload_flag
14584 reload_cmds=$lt_reload_cmds
14586 # How to pass a linker flag through the compiler.
14587 wl=$lt_lt_prog_compiler_wl
14589 # Object file suffix (normally "o").
14590 objext="$ac_objext"
14592 # Old archive suffix (normally "a").
14595 # Shared library suffix (normally ".so").
14596 shrext_cmds='$shrext_cmds'
14598 # Executable file suffix (normally "").
14601 # Additional compiler flags for building library objects.
14602 pic_flag=$lt_lt_prog_compiler_pic
14605 # What is the maximum length of a command?
14606 max_cmd_len=$lt_cv_sys_max_cmd_len
14608 # Does compiler simultaneously support -c and -o options?
14609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14611 # Must we lock files when doing compilation ?
14612 need_locks=$lt_need_locks
14614 # Do we need the lib prefix for modules?
14615 need_lib_prefix=$need_lib_prefix
14617 # Do we need a version for libraries?
14618 need_version=$need_version
14620 # Whether dlopen is supported.
14621 dlopen_support=$enable_dlopen
14623 # Whether dlopen of programs is supported.
14624 dlopen_self=$enable_dlopen_self
14626 # Whether dlopen of statically linked programs is supported.
14627 dlopen_self_static=$enable_dlopen_self_static
14629 # Compiler flag to prevent dynamic linking.
14630 link_static_flag=$lt_lt_prog_compiler_static
14632 # Compiler flag to turn off builtin functions.
14633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14635 # Compiler flag to allow reflexive dlopens.
14636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14638 # Compiler flag to generate shared objects directly from archives.
14639 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14641 # Compiler flag to generate thread-safe objects.
14642 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14644 # Library versioning type.
14645 version_type=$version_type
14647 # Format of library name prefix.
14648 libname_spec=$lt_libname_spec
14650 # List of archive names. First name is the real one, the rest are links.
14651 # The last name is the one that the linker finds with -lNAME.
14652 library_names_spec=$lt_library_names_spec
14654 # The coded name of the library, if different from the real name.
14655 soname_spec=$lt_soname_spec
14657 # Commands used to build and install an old-style archive.
14659 old_archive_cmds=$lt_old_archive_cmds
14660 old_postinstall_cmds=$lt_old_postinstall_cmds
14661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14663 # Create an old-style archive from a shared archive.
14664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14666 # Create a temporary old-style archive to link instead of a shared archive.
14667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14669 # Commands used to build and install a shared archive.
14670 archive_cmds=$lt_archive_cmds
14671 archive_expsym_cmds=$lt_archive_expsym_cmds
14672 postinstall_cmds=$lt_postinstall_cmds
14673 postuninstall_cmds=$lt_postuninstall_cmds
14675 # Commands used to build a loadable module (assumed same as above if empty)
14676 module_cmds=$lt_module_cmds
14677 module_expsym_cmds=$lt_module_expsym_cmds
14679 # Commands to strip libraries.
14680 old_striplib=$lt_old_striplib
14681 striplib=$lt_striplib
14683 # Dependencies to place before the objects being linked to create a
14685 predep_objects=$lt_predep_objects
14687 # Dependencies to place after the objects being linked to create a
14689 postdep_objects=$lt_postdep_objects
14691 # Dependencies to place before the objects being linked to create a
14693 predeps=$lt_predeps
14695 # Dependencies to place after the objects being linked to create a
14697 postdeps=$lt_postdeps
14699 # The library search path used internally by the compiler when linking
14700 # a shared library.
14701 compiler_lib_search_path=$lt_compiler_lib_search_path
14703 # Method to check whether dependent libraries are shared objects.
14704 deplibs_check_method=$lt_deplibs_check_method
14706 # Command to use when deplibs_check_method == file_magic.
14707 file_magic_cmd=$lt_file_magic_cmd
14709 # Flag that allows shared libraries with undefined symbols to be built.
14710 allow_undefined_flag=$lt_allow_undefined_flag
14712 # Flag that forces no undefined symbols.
14713 no_undefined_flag=$lt_no_undefined_flag
14715 # Commands used to finish a libtool library installation in a directory.
14716 finish_cmds=$lt_finish_cmds
14718 # Same as above, but a single script fragment to be evaled but not shown.
14719 finish_eval=$lt_finish_eval
14721 # Take the output of nm and produce a listing of raw symbols and C names.
14722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14724 # Transform the output of nm in a proper C declaration
14725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14727 # Transform the output of nm in a C name address pair
14728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14730 # This is the shared library runtime path variable.
14731 runpath_var=$runpath_var
14733 # This is the shared library path variable.
14734 shlibpath_var=$shlibpath_var
14736 # Is shlibpath searched before the hard-coded library search path?
14737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14739 # How to hardcode a shared library path into an executable.
14740 hardcode_action=$hardcode_action
14742 # Whether we should hardcode library paths into libraries.
14743 hardcode_into_libs=$hardcode_into_libs
14745 # Flag to hardcode \$libdir into a binary during linking.
14746 # This must work even if \$libdir does not exist.
14747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14749 # If ld is used when linking, flag to hardcode \$libdir into
14750 # a binary during linking. This must work even if \$libdir does
14752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14754 # Whether we need a single -rpath flag with a separated argument.
14755 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14758 # resulting binary.
14759 hardcode_direct=$hardcode_direct
14761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14762 # resulting binary.
14763 hardcode_minus_L=$hardcode_minus_L
14765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14766 # the resulting binary.
14767 hardcode_shlibpath_var=$hardcode_shlibpath_var
14769 # Set to yes if building a shared library automatically hardcodes DIR into the library
14770 # and all subsequent libraries and executables linked against it.
14771 hardcode_automatic=$hardcode_automatic
14773 # Variables whose values should be saved in libtool wrapper scripts and
14774 # restored at relink time.
14775 variables_saved_for_relink="$variables_saved_for_relink"
14777 # Whether libtool must link a program against all its dependency libraries.
14778 link_all_deplibs=$link_all_deplibs
14780 # Compile-time system search path for libraries
14781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14783 # Run-time system search path for libraries
14784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14786 # Fix the shell variable \$srcfile for the compiler.
14787 fix_srcfile_path="$fix_srcfile_path"
14789 # Set to yes if exported symbols are required.
14790 always_export_symbols=$always_export_symbols
14792 # The commands to list exported symbols.
14793 export_symbols_cmds=$lt_export_symbols_cmds
14795 # The commands to extract the exported symbol list from a shared archive.
14796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14798 # Symbols that should not be listed in the preloaded symbols.
14799 exclude_expsyms=$lt_exclude_expsyms
14801 # Symbols that must always be exported.
14802 include_expsyms=$lt_include_expsyms
14804 # ### END LIBTOOL CONFIG
14811 cat <<\EOF >> "$cfgfile"
14813 # AIX sometimes has problems with the GCC collect2 program. For some
14814 # reason, if we set the COLLECT_NAMES environment variable, the problems
14815 # vanish in a puff of smoke.
14816 if test "X${COLLECT_NAMES+set}" != Xset; then
14818 export COLLECT_NAMES
14824 # We use sed instead of cat because bash on DJGPP gets confused if
14825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14826 # text mode, it properly converts lines to CR/LF. This bash problem
14827 # is reportedly fixed, but why not run on old versions too?
14828 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14830 mv -f "$cfgfile" "$ofile" || \
14831 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14835 # If there is no Makefile yet, we rely on a make rule to execute
14836 # `config.status --recheck' to rerun these tests and create the
14837 # libtool script then.
14838 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14839 if test -f "$ltmain_in"; then
14840 test -f Makefile && make "$ltmain"
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854 # Check whether --with-tags or --without-tags was given.
14855 if test "${with_tags+set}" = set; then
14856 withval="$with_tags"
14857 tagnames="$withval"
14860 if test -f "$ltmain" && test -n "$tagnames"; then
14861 if test ! -f "${ofile}"; then
14862 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14863 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14866 if test -z "$LTCC"; then
14867 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14868 if test -z "$LTCC"; then
14869 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14870 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14873 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14877 # Extract list of available tagged configurations in $ofile.
14878 # Note that this assumes the entire list is on one line.
14879 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14882 for tagname in $tagnames; do
14884 # Check whether tagname contains only valid characters
14885 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14887 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14888 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14889 { (exit 1); exit 1; }; }
14893 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14895 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14896 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14897 { (exit 1); exit 1; }; }
14900 # Update the list of available tags.
14901 if test -n "$tagname"; then
14902 echo appending configuration tag "$tagname" to $ofile
14906 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14907 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14908 (test "X$CXX" != "Xg++"))) ; then
14910 ac_cpp='$CXXCPP $CPPFLAGS'
14911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14918 archive_cmds_need_lc_CXX=no
14919 allow_undefined_flag_CXX=
14920 always_export_symbols_CXX=no
14921 archive_expsym_cmds_CXX=
14922 export_dynamic_flag_spec_CXX=
14923 hardcode_direct_CXX=no
14924 hardcode_libdir_flag_spec_CXX=
14925 hardcode_libdir_flag_spec_ld_CXX=
14926 hardcode_libdir_separator_CXX=
14927 hardcode_minus_L_CXX=no
14928 hardcode_automatic_CXX=no
14930 module_expsym_cmds_CXX=
14931 link_all_deplibs_CXX=unknown
14932 old_archive_cmds_CXX=$old_archive_cmds
14933 no_undefined_flag_CXX=
14934 whole_archive_flag_spec_CXX=
14935 enable_shared_with_static_runtimes_CXX=no
14937 # Dependencies to place before and after the object being linked:
14938 predep_objects_CXX=
14939 postdep_objects_CXX=
14942 compiler_lib_search_path_CXX=
14944 # Source file extension for C++ test sources.
14947 # Object file extension for compiled C++ test sources.
14951 # Code to be used in simple compile tests
14952 lt_simple_compile_test_code="int some_variable = 0;\n"
14954 # Code to be used in simple link tests
14955 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14959 # If no C compiler was specified, use CC.
14962 # Allow CC to be a program name with arguments.
14966 # Allow CC to be a program name with arguments.
14971 lt_save_with_gnu_ld=$with_gnu_ld
14972 lt_save_path_LD=$lt_cv_path_LD
14973 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14974 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14976 unset lt_cv_prog_gnu_ld
14978 if test -n "${lt_cv_path_LDCXX+set}"; then
14979 lt_cv_path_LD=$lt_cv_path_LDCXX
14981 unset lt_cv_path_LD
14983 test -z "${LDCXX+set}" || LD=$LDCXX
14987 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14989 # We don't want -fno-exception wen compiling C++ code, so set the
14990 # no_builtin_flag separately
14991 if test "$GXX" = yes; then
14992 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14994 lt_prog_compiler_no_builtin_flag_CXX=
14997 if test "$GXX" = yes; then
14998 # Set up default GNU C++ configuration
15001 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15002 if test "${with_gnu_ld+set}" = set; then
15003 withval="$with_gnu_ld"
15004 test "$withval" = no || with_gnu_ld=yes
15009 if test "$GCC" = yes; then
15010 # Check if gcc -print-prog-name=ld gives a path.
15011 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15012 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15015 # gcc leaves a trailing carriage return which upsets mingw
15016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15021 # Accept absolute paths.
15023 re_direlt='/[^/][^/]*/\.\./'
15024 # Canonicalize the pathname of ld
15025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15029 test -z "$LD" && LD="$ac_prog"
15032 # If it fails, then pretend we aren't using GCC.
15036 # If it is relative, then search for the first ld in PATH.
15037 with_gnu_ld=unknown
15040 elif test "$with_gnu_ld" = yes; then
15041 echo "$as_me:$LINENO: checking for GNU ld" >&5
15042 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15044 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15045 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15047 if test "${lt_cv_path_LD+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 if test -z "$LD"; then
15051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15052 for ac_dir in $PATH; do
15054 test -z "$ac_dir" && ac_dir=.
15055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15056 lt_cv_path_LD="$ac_dir/$ac_prog"
15057 # Check to see if the program is GNU ld. I'd rather use --version,
15058 # but apparently some GNU ld's only accept -v.
15059 # Break only if it was the GNU/non-GNU ld that we prefer.
15060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15061 *GNU* | *'with BFD'*)
15062 test "$with_gnu_ld" != no && break
15065 test "$with_gnu_ld" != yes && break
15072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15076 LD="$lt_cv_path_LD"
15077 if test -n "$LD"; then
15078 echo "$as_me:$LINENO: result: $LD" >&5
15079 echo "${ECHO_T}$LD" >&6
15081 echo "$as_me:$LINENO: result: no" >&5
15082 echo "${ECHO_T}no" >&6
15084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15086 { (exit 1); exit 1; }; }
15087 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15093 case `$LD -v 2>&1 </dev/null` in
15094 *GNU* | *'with BFD'*)
15095 lt_cv_prog_gnu_ld=yes
15098 lt_cv_prog_gnu_ld=no
15102 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15103 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15104 with_gnu_ld=$lt_cv_prog_gnu_ld
15108 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15109 # archiving commands below assume that GNU ld is being used.
15110 if test "$with_gnu_ld" = yes; then
15111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112 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'
15114 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15117 # If archive_cmds runs LD, not CC, wlarc should be empty
15118 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15119 # investigate it a little bit more. (MM)
15122 # ancient GNU ld didn't support --whole-archive et. al.
15123 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15124 grep 'no-whole-archive' > /dev/null; then
15125 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15127 whole_archive_flag_spec_CXX=
15133 # A generic and very simple default shared library creation
15134 # command for GNU C++ for the case where it uses the native
15135 # linker, instead of GNU ld. If possible, this setting should
15136 # overridden to take advantage of the native linker features on
15137 # the platform it is being used on.
15138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15141 # Commands to make compiler produce verbose output that lists
15142 # what "hidden" libraries, object files and flags are used when
15143 # linking a shared library.
15144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15152 # PORTME: fill in a description of your system's C++ link characteristics
15153 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15154 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15158 # FIXME: insert proper C++ library support
15162 if test "$host_cpu" = ia64; then
15163 # On IA64, the linker does run time linking by default, so we don't
15164 # have to do anything special.
15165 aix_use_runtimelinking=no
15166 exp_sym_flag='-Bexport'
15169 aix_use_runtimelinking=no
15171 # Test if we are trying to use run time linking or normal
15172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15173 # need to do runtime linking.
15174 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15175 for ld_flag in $LDFLAGS; do
15178 aix_use_runtimelinking=yes
15185 exp_sym_flag='-bexport'
15186 no_entry_flag='-bnoentry'
15189 # When large executables or shared objects are built, AIX ld can
15190 # have problems creating the table of contents. If linking a library
15191 # or program results in "error TOC overflow" add -mminimal-toc to
15192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15195 archive_cmds_CXX=''
15196 hardcode_direct_CXX=yes
15197 hardcode_libdir_separator_CXX=':'
15198 link_all_deplibs_CXX=yes
15200 if test "$GXX" = yes; then
15201 case $host_os in aix4.012|aix4.012.*)
15202 # We only want to do this on AIX 4.2 and lower, the check
15203 # below for broken collect2 doesn't work under 4.3+
15204 collect2name=`${CC} -print-prog-name=collect2`
15205 if test -f "$collect2name" && \
15206 strings "$collect2name" | grep resolve_lib_name >/dev/null
15208 # We have reworked collect2
15209 hardcode_direct_CXX=yes
15211 # We have old collect2
15212 hardcode_direct_CXX=unsupported
15213 # It fails to find uninstalled libraries when the uninstalled
15214 # path is not listed in the libpath. Setting hardcode_minus_L
15215 # to unsupported forces relinking
15216 hardcode_minus_L_CXX=yes
15217 hardcode_libdir_flag_spec_CXX='-L$libdir'
15218 hardcode_libdir_separator_CXX=
15221 shared_flag='-shared'
15224 if test "$host_cpu" = ia64; then
15225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15226 # chokes on -Wl,-G. The following line is correct:
15229 if test "$aix_use_runtimelinking" = yes; then
15230 shared_flag='${wl}-G'
15232 shared_flag='${wl}-bM:SRE'
15237 # It seems that -bexpall does not export symbols beginning with
15238 # underscore (_), so it is better to generate a list of symbols to export.
15239 always_export_symbols_CXX=yes
15240 if test "$aix_use_runtimelinking" = yes; then
15241 # Warning - without using the other runtime loading flags (-brtl),
15242 # -berok will link without error, but may produce a broken library.
15243 allow_undefined_flag_CXX='-berok'
15244 # Determine the default libpath from the value encoded in an empty executable.
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>conftest.er1
15264 grep -v '^ *+' conftest.er1 >conftest.err
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_cxx_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest$ac_exeext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15285 # Check for a 64-bit object if we didn't find anything.
15286 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; }
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15293 rm -f conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
15295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15297 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15299 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"
15301 if test "$host_cpu" = ia64; then
15302 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15303 allow_undefined_flag_CXX="-z nodefs"
15304 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"
15306 # Determine the default libpath from the value encoded in an empty executable.
15307 cat >conftest.$ac_ext <<_ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_cxx_werror_flag"
15332 || test ! -s conftest.err'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15347 # Check for a 64-bit object if we didn't find anything.
15348 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; }
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15355 rm -f conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext conftest.$ac_ext
15357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15359 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15360 # Warning - without using the other run time loading flags,
15361 # -berok will link without error, but may produce a broken library.
15362 no_undefined_flag_CXX=' ${wl}-bernotok'
15363 allow_undefined_flag_CXX=' ${wl}-berok'
15364 # -bexpall does not export symbols beginning with underscore (_)
15365 always_export_symbols_CXX=yes
15366 # Exported symbols can be pulled into shared objects from archives
15367 whole_archive_flag_spec_CXX=' '
15368 archive_cmds_need_lc_CXX=yes
15369 # This is similar to how AIX traditionally builds it's shared libraries.
15370 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'
15375 case $cc_basename in
15377 # FIXME: insert proper C++ library support
15384 cygwin* | mingw* | pw32*)
15385 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15386 # as there is no search path for DLLs.
15387 hardcode_libdir_flag_spec_CXX='-L$libdir'
15388 allow_undefined_flag_CXX=unsupported
15389 always_export_symbols_CXX=no
15390 enable_shared_with_static_runtimes_CXX=yes
15392 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15393 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'
15394 # If the export-symbols file already is a .def file (1st line
15395 # is EXPORTS), use it as is; otherwise, prepend...
15396 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15397 cp $export_symbols $output_objdir/$soname.def;
15399 echo EXPORTS > $output_objdir/$soname.def;
15400 cat $export_symbols >> $output_objdir/$soname.def;
15402 $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'
15407 darwin* | rhapsody*)
15409 rhapsody* | darwin1.[012])
15410 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15414 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15416 case ${MACOSX_DEPLOYMENT_TARGET} in
15418 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15421 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15427 archive_cmds_need_lc_CXX=no
15428 hardcode_direct_CXX=no
15429 hardcode_automatic_CXX=yes
15430 hardcode_shlibpath_var_CXX=unsupported
15431 whole_archive_flag_spec_CXX=''
15432 link_all_deplibs_CXX=yes
15434 if test "$GXX" = yes ; then
15435 lt_int_apple_cc_single_mod=no
15436 output_verbose_link_cmd='echo'
15437 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15438 lt_int_apple_cc_single_mod=yes
15440 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15441 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15443 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'
15445 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15447 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15448 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}'
15450 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}'
15452 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}'
15454 case "$cc_basename" in
15456 output_verbose_link_cmd='echo'
15457 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'
15458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15460 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}'
15461 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}'
15471 case $cc_basename in
15473 # FIXME: insert proper C++ library support
15477 # Green Hills C++ Compiler
15478 # FIXME: insert proper C++ library support
15482 # FIXME: insert proper C++ library support
15488 # C++ shared libraries reported to be fairly broken before switch to ELF
15492 archive_cmds_need_lc_CXX=no
15494 freebsd* | kfreebsd*-gnu)
15495 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15503 hardcode_libdir_separator_CXX=:
15504 export_dynamic_flag_spec_CXX='${wl}-E'
15505 hardcode_direct_CXX=yes
15506 hardcode_minus_L_CXX=yes # Not in the search PATH,
15507 # but as the default
15508 # location of the library.
15510 case $cc_basename in
15512 # FIXME: insert proper C++ library support
15516 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'
15517 # Commands to make compiler produce verbose output that lists
15518 # what "hidden" libraries, object files and flags are used when
15519 # linking a shared library.
15521 # There doesn't appear to be a way to prevent this compiler from
15522 # explicitly linking system object files so we need to strip them
15523 # from the output so that they don't get included in the library
15525 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'
15528 if test "$GXX" = yes; then
15529 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'
15531 # FIXME: insert proper C++ library support
15538 if test $with_gnu_ld = no; then
15539 case "$host_cpu" in
15541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15542 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15543 hardcode_libdir_separator_CXX=:
15546 hardcode_libdir_flag_spec_CXX='-L$libdir'
15549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15550 hardcode_libdir_separator_CXX=:
15551 export_dynamic_flag_spec_CXX='${wl}-E'
15555 case "$host_cpu" in
15557 hardcode_direct_CXX=no
15558 hardcode_shlibpath_var_CXX=no
15561 hardcode_direct_CXX=no
15562 hardcode_shlibpath_var_CXX=no
15563 hardcode_minus_L_CXX=yes # Not in the search PATH,
15564 # but as the default
15565 # location of the library.
15568 hardcode_direct_CXX=yes
15569 hardcode_minus_L_CXX=yes # Not in the search PATH,
15570 # but as the default
15571 # location of the library.
15575 case $cc_basename in
15577 # FIXME: insert proper C++ library support
15581 case "$host_cpu" in
15583 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15589 # Commands to make compiler produce verbose output that lists
15590 # what "hidden" libraries, object files and flags are used when
15591 # linking a shared library.
15593 # There doesn't appear to be a way to prevent this compiler from
15594 # explicitly linking system object files so we need to strip them
15595 # from the output so that they don't get included in the library
15597 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'
15600 if test "$GXX" = yes; then
15601 if test $with_gnu_ld = no; then
15602 case "$host_cpu" in
15604 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15607 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'
15612 # FIXME: insert proper C++ library support
15619 case $cc_basename in
15622 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'
15624 # Archives containing C++ object files must be created using
15625 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15626 # necessary to make sure instantiated templates are included
15628 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15631 if test "$GXX" = yes; then
15632 if test "$with_gnu_ld" = no; then
15633 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'
15635 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'
15638 link_all_deplibs_CXX=yes
15641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15642 hardcode_libdir_separator_CXX=:
15645 case $cc_basename in
15647 # Kuck and Associates, Inc. (KAI) C++ Compiler
15649 # KCC will only create a shared library if the output file
15650 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15651 # to its proper name (with version) after linking.
15652 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'
15653 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'
15654 # Commands to make compiler produce verbose output that lists
15655 # what "hidden" libraries, object files and flags are used when
15656 # linking a shared library.
15658 # There doesn't appear to be a way to prevent this compiler from
15659 # explicitly linking system object files so we need to strip them
15660 # from the output so that they don't get included in the library
15662 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'
15664 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15667 # Archives containing C++ object files must be created using
15668 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15669 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15674 # version 8.0 and above of icpc choke on multiply defined symbols
15675 # if we add $predep_objects and $postdep_objects, however 7.1 and
15676 # earlier do not add the objects themselves.
15677 case `$CC -V 2>&1` in
15679 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 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'
15682 *) # Version 8.0 or newer
15683 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15684 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15687 archive_cmds_need_lc_CXX=no
15688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15690 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15695 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'
15697 runpath_var=LD_RUN_PATH
15698 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15699 hardcode_libdir_separator_CXX=:
15701 # Commands to make compiler produce verbose output that lists
15702 # what "hidden" libraries, object files and flags are used when
15703 # linking a shared library.
15705 # There doesn't appear to be a way to prevent this compiler from
15706 # explicitly linking system object files so we need to strip them
15707 # from the output so that they don't get included in the library
15709 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'
15714 # FIXME: insert proper C++ library support
15718 # FIXME: insert proper C++ library support
15722 case $cc_basename in
15724 # FIXME: insert proper C++ library support
15728 # FIXME: insert proper C++ library support
15734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15735 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15737 hardcode_libdir_flag_spec_CXX='-R$libdir'
15738 hardcode_direct_CXX=yes
15739 hardcode_shlibpath_var_CXX=no
15741 # Workaround some broken pre-1.5 toolchains
15742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15745 # C++ shared libraries are fairly broken
15749 hardcode_direct_CXX=yes
15750 hardcode_shlibpath_var_CXX=no
15751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15754 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15755 export_dynamic_flag_spec_CXX='${wl}-E'
15756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15758 output_verbose_link_cmd='echo'
15761 case $cc_basename in
15763 # Kuck and Associates, Inc. (KAI) C++ Compiler
15765 # KCC will only create a shared library if the output file
15766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15767 # to its proper name (with version) after linking.
15768 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'
15770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15771 hardcode_libdir_separator_CXX=:
15773 # Archives containing C++ object files must be created using
15774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15779 # Rational C++ 2.4.1
15780 # FIXME: insert proper C++ library support
15784 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15785 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'
15787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15788 hardcode_libdir_separator_CXX=:
15790 # Commands to make compiler produce verbose output that lists
15791 # what "hidden" libraries, object files and flags are used when
15792 # linking a shared library.
15794 # There doesn't appear to be a way to prevent this compiler from
15795 # explicitly linking system object files so we need to strip them
15796 # from the output so that they don't get included in the library
15798 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'
15801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15803 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'
15805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15806 hardcode_libdir_separator_CXX=:
15808 # Commands to make compiler produce verbose output that lists
15809 # what "hidden" libraries, object files and flags are used when
15810 # linking a shared library.
15811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15814 # FIXME: insert proper C++ library support
15821 case $cc_basename in
15823 # Kuck and Associates, Inc. (KAI) C++ Compiler
15825 # KCC will only create a shared library if the output file
15826 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15827 # to its proper name (with version) after linking.
15828 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'
15830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15831 hardcode_libdir_separator_CXX=:
15833 # Archives containing C++ object files must be created using
15834 # the KAI C++ compiler.
15835 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15838 # Rational C++ 2.4.1
15839 # FIXME: insert proper C++ library support
15843 allow_undefined_flag_CXX=' -expect_unresolved \*'
15844 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'
15845 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15846 echo "-hidden">> $lib.exp~
15847 $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~
15850 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15851 hardcode_libdir_separator_CXX=:
15853 # Commands to make compiler produce verbose output that lists
15854 # what "hidden" libraries, object files and flags are used when
15855 # linking a shared library.
15857 # There doesn't appear to be a way to prevent this compiler from
15858 # explicitly linking system object files so we need to strip them
15859 # from the output so that they don't get included in the library
15861 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'
15864 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15865 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15866 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'
15868 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15869 hardcode_libdir_separator_CXX=:
15871 # Commands to make compiler produce verbose output that lists
15872 # what "hidden" libraries, object files and flags are used when
15873 # linking a shared library.
15874 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15877 # FIXME: insert proper C++ library support
15884 # FIXME: insert proper C++ library support
15888 archive_cmds_need_lc_CXX=no
15889 case $cc_basename in
15891 # FIXME: insert proper C++ library support
15895 # FIXME: insert proper C++ library support
15901 case $cc_basename in
15904 # FIXME: insert proper C++ library support
15909 # FIXME: insert proper C++ library support
15913 # FIXME: insert proper C++ library support
15919 case $cc_basename in
15921 # Sun C++ 4.2, 5.x and Centerline C++
15922 no_undefined_flag_CXX=' -zdefs'
15923 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15924 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15925 $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'
15927 hardcode_libdir_flag_spec_CXX='-R$libdir'
15928 hardcode_shlibpath_var_CXX=no
15930 solaris2.0-5 | solaris2.0-5.*) ;;
15932 # The C++ compiler is used as linker so we must use $wl
15933 # flag to pass the commands to the underlying system
15935 # Supported since Solaris 2.6 (maybe 2.5.1?)
15936 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15939 link_all_deplibs_CXX=yes
15941 # Commands to make compiler produce verbose output that lists
15942 # what "hidden" libraries, object files and flags are used when
15943 # linking a shared library.
15945 # There doesn't appear to be a way to prevent this compiler from
15946 # explicitly linking system object files so we need to strip them
15947 # from the output so that they don't get included in the library
15949 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'
15951 # Archives containing C++ object files must be created using
15952 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15953 # necessary to make sure instantiated templates are included
15955 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15958 # Green Hills C++ Compiler
15959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15961 # The C++ compiler must be used to create the archive.
15962 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15965 # GNU C++ compiler with Solaris linker
15966 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15967 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15968 if $CC --version | grep -v '^2\.7' > /dev/null; then
15969 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15970 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15971 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15973 # Commands to make compiler produce verbose output that lists
15974 # what "hidden" libraries, object files and flags are used when
15975 # linking a shared library.
15976 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15978 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15980 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15981 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15982 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15984 # Commands to make compiler produce verbose output that lists
15985 # what "hidden" libraries, object files and flags are used when
15986 # linking a shared library.
15987 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15990 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15996 archive_cmds_need_lc_CXX=no
15999 case $cc_basename in
16001 # NonStop-UX NCC 3.20
16002 # FIXME: insert proper C++ library support
16006 # FIXME: insert proper C++ library support
16012 # FIXME: insert proper C++ library support
16016 # FIXME: insert proper C++ library support
16020 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16021 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16022 test "$ld_shlibs_CXX" = no && can_build_shared=no
16028 cat > conftest.$ac_ext <<EOF
16032 Foo (void) { a = 0; }
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039 (eval $ac_compile) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; then
16043 # Parse the compiler output and extract the necessary
16044 # objects, libraries and library flags.
16046 # Sentinel used to keep track of whether or not we are before
16047 # the conftest object file.
16048 pre_test_object_deps_done=no
16050 # The `*' in the case matches for architectures that use `case' in
16051 # $output_verbose_cmd can trigger glob expansion during the loop
16052 # eval without this substitution.
16053 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16055 for p in `eval $output_verbose_link_cmd`; do
16059 # Some compilers place space between "-{L,R}" and the path.
16060 # Remove the space.
16061 if test $p = "-L" \
16062 || test $p = "-R"; then
16069 if test "$pre_test_object_deps_done" = no; then
16072 # Internal compiler library paths should come after those
16073 # provided the user. The postdeps already come after the
16074 # user supplied libs so there is no need to process them.
16075 if test -z "$compiler_lib_search_path_CXX"; then
16076 compiler_lib_search_path_CXX="${prev}${p}"
16078 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16081 # The "-l" case would never come before the object being
16082 # linked, so don't bother handling this case.
16085 if test -z "$postdeps_CXX"; then
16086 postdeps_CXX="${prev}${p}"
16088 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16094 # This assumes that the test object file only shows up
16095 # once in the compiler output.
16096 if test "$p" = "conftest.$objext"; then
16097 pre_test_object_deps_done=yes
16101 if test "$pre_test_object_deps_done" = no; then
16102 if test -z "$predep_objects_CXX"; then
16103 predep_objects_CXX="$p"
16105 predep_objects_CXX="$predep_objects_CXX $p"
16108 if test -z "$postdep_objects_CXX"; then
16109 postdep_objects_CXX="$p"
16111 postdep_objects_CXX="$postdep_objects_CXX $p"
16116 *) ;; # Ignore the rest.
16124 echo "libtool.m4: error: problem compiling CXX test program"
16127 $rm -f confest.$objext
16129 case " $postdeps_CXX " in
16130 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16133 lt_prog_compiler_wl_CXX=
16134 lt_prog_compiler_pic_CXX=
16135 lt_prog_compiler_static_CXX=
16137 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16140 # C++ specific cases for pic, static, wl, etc.
16141 if test "$GXX" = yes; then
16142 lt_prog_compiler_wl_CXX='-Wl,'
16143 lt_prog_compiler_static_CXX='-static'
16147 # All AIX code is PIC.
16148 if test "$host_cpu" = ia64; then
16149 # AIX 5 now supports IA64 processor
16150 lt_prog_compiler_static_CXX='-Bstatic'
16154 # FIXME: we need at least 68020 code to build shared libraries, but
16155 # adding the `-m68020' flag to GCC prevents building anything better,
16157 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16159 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16160 # PIC is the default for these OSes.
16162 mingw* | os2* | pw32*)
16163 # This hack is so that the source file can tell whether it is being
16164 # built for inclusion in a dll (and should export symbols for example).
16165 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16167 darwin* | rhapsody*)
16168 # PIC is the default on this platform
16169 # Common symbols not allowed in MH_DYLIB files
16170 lt_prog_compiler_pic_CXX='-fno-common'
16173 # DJGPP does not support shared libraries at all
16174 lt_prog_compiler_pic_CXX=
16177 if test -d /usr/nec; then
16178 lt_prog_compiler_pic_CXX=-Kconform_pic
16182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16183 # not for PA HP-UX.
16184 case "$host_cpu" in
16188 lt_prog_compiler_pic_CXX='-fPIC'
16193 lt_prog_compiler_pic_CXX='-fPIC'
16199 # All AIX code is PIC.
16200 if test "$host_cpu" = ia64; then
16201 # AIX 5 now supports IA64 processor
16202 lt_prog_compiler_static_CXX='-Bstatic'
16204 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16208 case $cc_basename in
16210 # Green Hills C++ Compiler
16211 # _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"
16216 # PIC is the default on this platform
16217 # Common symbols not allowed in MH_DYLIB files
16218 case "$cc_basename" in
16220 lt_prog_compiler_pic_CXX='-qnocommon'
16221 lt_prog_compiler_wl_CXX='-Wl,'
16226 case $cc_basename in
16228 lt_prog_compiler_pic_CXX='-KPIC'
16231 # Green Hills C++ Compiler
16232 lt_prog_compiler_pic_CXX='-pic'
16238 freebsd* | kfreebsd*-gnu)
16239 # FreeBSD uses GNU C++
16241 hpux9* | hpux10* | hpux11*)
16242 case $cc_basename in
16244 lt_prog_compiler_wl_CXX='-Wl,'
16245 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16246 if test "$host_cpu" != ia64; then
16247 lt_prog_compiler_pic_CXX='+Z'
16251 lt_prog_compiler_wl_CXX='-Wl,'
16252 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16253 case "$host_cpu" in
16258 lt_prog_compiler_pic_CXX='+Z'
16266 irix5* | irix6* | nonstopux*)
16267 case $cc_basename in
16269 lt_prog_compiler_wl_CXX='-Wl,'
16270 lt_prog_compiler_static_CXX='-non_shared'
16271 # CC pic flag -KPIC is the default.
16278 case $cc_basename in
16281 lt_prog_compiler_wl_CXX='--backend -Wl,'
16282 lt_prog_compiler_pic_CXX='-fPIC'
16286 lt_prog_compiler_wl_CXX='-Wl,'
16287 lt_prog_compiler_pic_CXX='-KPIC'
16288 lt_prog_compiler_static_CXX='-static'
16292 # Make sure the PIC flag is empty. It appears that all Alpha
16293 # Linux and Compaq Tru64 Unix objects are PIC.
16294 lt_prog_compiler_pic_CXX=
16295 lt_prog_compiler_static_CXX='-non_shared'
16306 case $cc_basename in
16308 lt_prog_compiler_pic_CXX='-W c,exportall'
16316 osf3* | osf4* | osf5*)
16317 case $cc_basename in
16319 lt_prog_compiler_wl_CXX='--backend -Wl,'
16322 # Rational C++ 2.4.1
16323 lt_prog_compiler_pic_CXX='-pic'
16326 # Digital/Compaq C++
16327 lt_prog_compiler_wl_CXX='-Wl,'
16328 # Make sure the PIC flag is empty. It appears that all Alpha
16329 # Linux and Compaq Tru64 Unix objects are PIC.
16330 lt_prog_compiler_pic_CXX=
16331 lt_prog_compiler_static_CXX='-non_shared'
16340 case $cc_basename in
16342 lt_prog_compiler_pic_CXX='-fPIC'
16349 case $cc_basename in
16351 # Sun C++ 4.2, 5.x and Centerline C++
16352 lt_prog_compiler_pic_CXX='-KPIC'
16353 lt_prog_compiler_static_CXX='-Bstatic'
16354 lt_prog_compiler_wl_CXX='-Qoption ld '
16357 # Green Hills C++ Compiler
16358 lt_prog_compiler_pic_CXX='-PIC'
16365 case $cc_basename in
16368 lt_prog_compiler_pic_CXX='-pic'
16369 lt_prog_compiler_static_CXX='-Bstatic'
16373 lt_prog_compiler_pic_CXX='-pic'
16380 case $cc_basename in
16382 # NonStop-UX NCC 3.20
16383 lt_prog_compiler_pic_CXX='-KPIC'
16394 lt_prog_compiler_can_build_shared_CXX=no
16399 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16400 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16403 # Check to make sure the PIC flag actually works.
16405 if test -n "$lt_prog_compiler_pic_CXX"; then
16407 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16409 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 lt_prog_compiler_pic_works_CXX=no
16413 ac_outfile=conftest.$ac_objext
16414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16415 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16416 # Insert the option either (1) after the last *FLAGS variable, or
16417 # (2) before a word containing "conftest.", or (3) at the end.
16418 # Note that $ac_compile itself does not contain backslashes and begins
16419 # with a dollar sign (not a hyphen), so the echo should work correctly.
16420 # The option is referenced via a variable to avoid confusing sed.
16421 lt_compile=`echo "$ac_compile" | $SED \
16422 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424 -e 's:$: $lt_compiler_flag:'`
16425 (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
16426 (eval "$lt_compile" 2>conftest.err)
16428 cat conftest.err >&5
16429 echo "$as_me:16429: \$? = $ac_status" >&5
16430 if (exit $ac_status) && test -s "$ac_outfile"; then
16431 # The compiler can only warn and ignore the option if not recognized
16432 # So say no if there are warnings
16433 if test ! -s conftest.err; then
16434 lt_prog_compiler_pic_works_CXX=yes
16440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16441 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16443 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16444 case $lt_prog_compiler_pic_CXX in
16446 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16449 lt_prog_compiler_pic_CXX=
16450 lt_prog_compiler_can_build_shared_CXX=no
16455 # For platforms which do not support PIC, -DPIC is meaningless:
16457 lt_prog_compiler_pic_CXX=
16460 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16464 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16465 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 lt_cv_prog_compiler_c_o_CXX=no
16470 $rm -r conftest 2>/dev/null
16474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16476 lt_compiler_flag="-o out/conftest2.$ac_objext"
16477 # Insert the option either (1) after the last *FLAGS variable, or
16478 # (2) before a word containing "conftest.", or (3) at the end.
16479 # Note that $ac_compile itself does not contain backslashes and begins
16480 # with a dollar sign (not a hyphen), so the echo should work correctly.
16481 lt_compile=`echo "$ac_compile" | $SED \
16482 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16484 -e 's:$: $lt_compiler_flag:'`
16485 (eval echo "\"\$as_me:16485: $lt_compile\"" >&5)
16486 (eval "$lt_compile" 2>out/conftest.err)
16488 cat out/conftest.err >&5
16489 echo "$as_me:16489: \$? = $ac_status" >&5
16490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16492 # The compiler can only warn and ignore the option if not recognized
16493 # So say no if there are warnings
16494 if test ! -s out/conftest.err; then
16495 lt_cv_prog_compiler_c_o_CXX=yes
16500 # SGI C++ compiler will create directory out/ii_files/ for
16501 # template instantiation
16502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16503 $rm out/* && rmdir out
16509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16510 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16513 hard_links="nottested"
16514 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16515 # do not overwrite the value of need_locks provided by the user
16516 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16522 ln conftest.a conftest.b 2>&5 || hard_links=no
16523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16524 echo "$as_me:$LINENO: result: $hard_links" >&5
16525 echo "${ECHO_T}$hard_links" >&6
16526 if test "$hard_links" = no; then
16527 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16536 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16538 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16541 # If we're using GNU nm, then we don't want the "-C" option.
16542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16544 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'
16546 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'
16550 export_symbols_cmds_CXX="$ltdll_cmds"
16553 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16560 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16561 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16562 test "$ld_shlibs_CXX" = no && can_build_shared=no
16564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565 if test "$GCC" = yes; then
16566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570 # Do we need to explicitly link libc?
16572 case "x$archive_cmds_need_lc_CXX" in
16574 # Assume -lc should be added
16575 archive_cmds_need_lc_CXX=yes
16577 if test "$enable_shared" = yes && test "$GCC" = yes; then
16578 case $archive_cmds_CXX in
16580 # FIXME: we may have to deal with multi-command sequences.
16583 # Test whether the compiler implicitly links with -lc since on some
16584 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16585 # to ld, don't add -lc before -lgcc.
16586 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16587 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } 2>conftest.err; then
16598 libobjs=conftest.$ac_objext
16600 wl=$lt_prog_compiler_wl_CXX
16606 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16607 allow_undefined_flag_CXX=
16608 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16609 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }
16614 archive_cmds_need_lc_CXX=no
16616 archive_cmds_need_lc_CXX=yes
16618 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16620 cat conftest.err 1>&5
16623 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16624 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16631 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16633 library_names_spec=
16634 libname_spec='lib$name'
16638 postuninstall_cmds=
16642 shlibpath_overrides_runpath=unknown
16644 dynamic_linker="$host_os ld.so"
16645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16646 if test "$GCC" = yes; then
16647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16649 # if the path contains ";" then we assume it to be the separator
16650 # otherwise default to the standard path separator (i.e. ":") - it is
16651 # assumed that no part of a normal pathname contains ";" but that should
16652 # okay in the real world where ";" in dirpaths is itself problematic.
16653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16660 need_lib_prefix=unknown
16661 hardcode_into_libs=no
16663 # when you set need_version to no, make sure it does not cause -set_version
16664 # flags to be left without arguments
16665 need_version=unknown
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16671 shlibpath_var=LIBPATH
16673 # AIX 3 has no versioning support, so we append a major version to the name.
16674 soname_spec='${libname}${release}${shared_ext}$major'
16681 hardcode_into_libs=yes
16682 if test "$host_cpu" = ia64; then
16683 # AIX 5 supports IA64
16684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16687 # With GCC up to 2.95.x, collect2 would create an import file
16688 # for dependence libraries. The import file would start with
16689 # the line `#! .'. This would cause the generated library to
16690 # depend on `.', always an invalid library. This was fixed in
16691 # development snapshots of GCC prior to 3.0.
16693 aix4 | aix4.[01] | aix4.[01].*)
16694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16699 can_build_shared=no
16703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16704 # soname into executable. Probably we can add versioning support to
16705 # collect2, so additional links can be useful in future.
16706 if test "$aix_use_runtimelinking" = yes; then
16707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16708 # instead of lib<name>.a to let people know that these are not
16709 # typical AIX shared libraries.
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 # We preserve .a as extension for shared libraries through AIX4.2
16713 # and later when we are not doing run time linking.
16714 library_names_spec='${libname}${release}.a $libname.a'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LIBPATH
16722 library_names_spec='$libname.ixlibrary $libname.a'
16723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16724 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'
16728 library_names_spec='${libname}${shared_ext}'
16729 dynamic_linker="$host_os ld.so"
16730 shlibpath_var=LIBRARY_PATH
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16742 # the default ld.so.conf also contains /usr/contrib/lib and
16743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16744 # libtool to hard-code these into programs
16747 cygwin* | mingw* | pw32*)
16748 version_type=windows
16753 case $GCC,$host_os in
16754 yes,cygwin* | yes,mingw* | yes,pw32*)
16755 library_names_spec='$libname.dll.a'
16756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16757 postinstall_cmds='base_file=`basename \${file}`~
16758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16759 dldir=$destdir/`dirname \$dlpath`~
16760 test -d \$dldir || mkdir -p \$dldir~
16761 $install_prog $dir/$dlname \$dldir/$dlname'
16762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16763 dlpath=$dir/\$dldll~
16765 shlibpath_overrides_runpath=yes
16769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16774 # MinGW DLLs use traditional 'lib' prefix
16775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16778 # It is most probably a Windows format PATH printed by
16779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16780 # path with ; separators, and with drive letters. We can handle the
16781 # drive letters (cygwin fileutils understands them), so leave them,
16782 # especially as we might pass files found there to a mingw objdump,
16783 # which wouldn't understand a cygwinified path. Ahh.
16784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16790 # pw32 DLLs use 'pw' prefix rather than 'lib'
16791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16800 dynamic_linker='Win32 ld.exe'
16801 # FIXME: first we should search . and the directory the executable is in
16805 darwin* | rhapsody*)
16806 dynamic_linker="$host_os dyld"
16807 version_type=darwin
16810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16811 soname_spec='${libname}${release}${major}$shared_ext'
16812 shlibpath_overrides_runpath=yes
16813 shlibpath_var=DYLD_LIBRARY_PATH
16814 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16815 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16816 if test "$GCC" = yes; then
16817 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"`
16819 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 shlibpath_var=LD_LIBRARY_PATH
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=no
16845 hardcode_into_libs=yes
16846 dynamic_linker='GNU ld.so'
16850 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16851 version_type=freebsd-$objformat
16852 case $version_type in
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16863 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16868 freebsd3.01* | freebsdelf3.01*)
16869 shlibpath_overrides_runpath=yes
16870 hardcode_into_libs=yes
16873 shlibpath_overrides_runpath=no
16874 hardcode_into_libs=yes
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 shlibpath_var=LD_LIBRARY_PATH
16886 hardcode_into_libs=yes
16889 hpux9* | hpux10* | hpux11*)
16890 # Give a soname corresponding to the major version so that dld.sl refuses to
16891 # link against other versions.
16895 case "$host_cpu" in
16898 hardcode_into_libs=yes
16899 dynamic_linker="$host_os dld.so"
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 if test "X$HPUX_IA64_MODE" = X32; then
16905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16913 hardcode_into_libs=yes
16914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16924 dynamic_linker="$host_os dld.sl"
16925 shlibpath_var=SHLIB_PATH
16926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16932 postinstall_cmds='chmod 555 $lib'
16935 irix5* | irix6* | nonstopux*)
16937 nonstopux*) version_type=nonstopux ;;
16939 if test "$lt_cv_prog_gnu_ld" = yes; then
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16950 irix5* | nonstopux*)
16951 libsuff= shlibsuff=
16954 case $LD in # libtool.m4 will add one of these switches to LD
16955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16956 libsuff= shlibsuff= libmagic=32-bit;;
16957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16958 libsuff=32 shlibsuff=N32 libmagic=N32;;
16959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16961 *) libsuff= shlibsuff= libmagic=never-match;;
16965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16966 shlibpath_overrides_runpath=no
16967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16969 hardcode_into_libs=yes
16972 # No shared lib support for Linux oldld, aout, or coff.
16973 linux*oldld* | linux*aout* | linux*coff*)
16977 # This must be Linux ELF.
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=no
16987 # This implies no fast_install, which is unacceptable.
16988 # Some rework will be needed to allow for fast_install
16989 # before this can be enabled.
16990 hardcode_into_libs=yes
16992 # Append ld.so.conf contents to the search path
16993 if test -f /etc/ld.so.conf; then
16994 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16998 # We used to test for /lib/ld.so.1 and disable shared libraries on
16999 # powerpc, because MkLinux only supported shared libraries with the
17000 # GNU dynamic linker. Since this was broken with cross compilers,
17001 # most powerpc-linux boxes support dynamic linking these days and
17002 # people can always --disable-shared, the test was removed, and we
17003 # assume the GNU/Linux dynamic linker is in use.
17004 dynamic_linker='GNU/Linux ld.so'
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 shlibpath_overrides_runpath=no
17015 hardcode_into_libs=yes
17016 dynamic_linker='GNU ld.so'
17023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17026 dynamic_linker='NetBSD (a.out) ld.so'
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 dynamic_linker='NetBSD ld.elf_so'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes
17034 hardcode_into_libs=yes
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=yes
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17063 openbsd2.[89] | openbsd2.[89].*)
17064 shlibpath_overrides_runpath=no
17067 shlibpath_overrides_runpath=yes
17071 shlibpath_overrides_runpath=yes
17076 libname_spec='$name'
17079 library_names_spec='$libname${shared_ext} $libname.a'
17080 dynamic_linker='OS/2 ld.exe'
17081 shlibpath_var=LIBPATH
17084 osf3* | osf4* | osf5*)
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 shlibpath_var=LD_LIBRARY_PATH
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 # ldd complains unless libraries are executable
17112 postinstall_cmds='chmod +x $lib'
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 if test "$with_gnu_ld" = yes; then
17127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 case $host_vendor in
17134 shlibpath_overrides_runpath=no
17136 export_dynamic_flag_spec='${wl}-Blargedynsym'
17137 runpath_var=LD_RUN_PATH
17145 shlibpath_overrides_runpath=no
17146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17152 if test -d /usr/nec ;then
17154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17155 soname_spec='$libname${shared_ext}.$major'
17156 shlibpath_var=LD_LIBRARY_PATH
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 shlibpath_var=LD_LIBRARY_PATH
17171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17172 echo "${ECHO_T}$dynamic_linker" >&6
17173 test "$dynamic_linker" = no && can_build_shared=no
17175 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17176 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17177 hardcode_action_CXX=
17178 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17179 test -n "$runpath_var_CXX" || \
17180 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17182 # We can hardcode non-existant directories.
17183 if test "$hardcode_direct_CXX" != no &&
17184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17185 # have to relink, otherwise we might link with an installed library
17186 # when we should be linking with a yet-to-be-installed one
17187 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17188 test "$hardcode_minus_L_CXX" != no; then
17189 # Linking always hardcodes the temporary library directory.
17190 hardcode_action_CXX=relink
17192 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17193 hardcode_action_CXX=immediate
17196 # We cannot hardcode anything, or else we can only hardcode existing
17198 hardcode_action_CXX=unsupported
17200 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17201 echo "${ECHO_T}$hardcode_action_CXX" >&6
17203 if test "$hardcode_action_CXX" = relink; then
17204 # Fast installation is not supported
17205 enable_fast_install=no
17206 elif test "$shlibpath_overrides_runpath" = yes ||
17207 test "$enable_shared" = no; then
17208 # Fast installation is not necessary
17209 enable_fast_install=needless
17214 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17215 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17216 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17217 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17218 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17219 echo "$as_me:$LINENO: result: yes" >&5
17220 echo "${ECHO_T}yes" >&6
17222 # FIXME - insert some real tests, host_os isn't really good enough
17225 if test -n "$STRIP" ; then
17226 striplib="$STRIP -x"
17227 echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6
17230 echo "$as_me:$LINENO: result: no" >&5
17231 echo "${ECHO_T}no" >&6
17235 echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17241 if test "x$enable_dlopen" != xyes; then
17242 enable_dlopen=unknown
17243 enable_dlopen_self=unknown
17244 enable_dlopen_self_static=unknown
17251 lt_cv_dlopen="load_add_on"
17253 lt_cv_dlopen_self=yes
17257 lt_cv_dlopen="LoadLibrary"
17262 lt_cv_dlopen="dlopen"
17267 # if libdl is installed we need to link against it
17268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 ac_check_lib_save_LIBS=$LIBS
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any gcc2 internal prototype to avoid an error. */
17286 /* We use char because int might match the return type of a gcc2
17287 builtin and then its argument prototype would still apply. */
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299 (eval $ac_link) 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_cxx_werror_flag"
17307 || test ! -s conftest.err'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_lib_dl_dlopen=yes
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_cv_lib_dl_dlopen=no
17326 rm -f conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17332 if test $ac_cv_lib_dl_dlopen = yes; then
17333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17336 lt_cv_dlopen="dyld"
17338 lt_cv_dlopen_self=yes
17345 echo "$as_me:$LINENO: checking for shl_load" >&5
17346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17347 if test "${ac_cv_func_shl_load+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17358 #define shl_load innocuous_shl_load
17360 /* System header to define __stub macros and hopefully few prototypes,
17361 which can conflict with char shl_load (); below.
17362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17363 <limits.h> exists even on freestanding compilers. */
17366 # include <limits.h>
17368 # include <assert.h>
17373 /* Override any gcc2 internal prototype to avoid an error. */
17378 /* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17381 /* The GNU C library defines this for functions which it implements
17382 to always fail with ENOSYS. Some functions are actually named
17383 something starting with __ and the normal name is an alias. */
17384 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17387 char (*f) () = shl_load;
17396 return f != shl_load;
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403 (eval $ac_link) 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_cxx_werror_flag"
17411 || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_func_shl_load=yes
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ac_cv_func_shl_load=no
17430 rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17433 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17435 if test $ac_cv_func_shl_load = yes; then
17436 lt_cv_dlopen="shl_load"
17438 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 ac_check_lib_save_LIBS=$LIBS
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 /* Override any gcc2 internal prototype to avoid an error. */
17456 /* We use char because int might match the return type of a gcc2
17457 builtin and then its argument prototype would still apply. */
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469 (eval $ac_link) 2>conftest.er1
17471 grep -v '^ *+' conftest.er1 >conftest.err
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_cxx_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_dld_shl_load=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_cv_lib_dld_shl_load=no
17496 rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17502 if test $ac_cv_lib_dld_shl_load = yes; then
17503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17505 echo "$as_me:$LINENO: checking for dlopen" >&5
17506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17507 if test "${ac_cv_func_dlopen+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17518 #define dlopen innocuous_dlopen
17520 /* System header to define __stub macros and hopefully few prototypes,
17521 which can conflict with char dlopen (); below.
17522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523 <limits.h> exists even on freestanding compilers. */
17526 # include <limits.h>
17528 # include <assert.h>
17533 /* Override any gcc2 internal prototype to avoid an error. */
17538 /* We use char because int might match the return type of a gcc2
17539 builtin and then its argument prototype would still apply. */
17541 /* The GNU C library defines this for functions which it implements
17542 to always fail with ENOSYS. Some functions are actually named
17543 something starting with __ and the normal name is an alias. */
17544 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17547 char (*f) () = dlopen;
17556 return f != dlopen;
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563 (eval $ac_link) 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -z "$ac_cxx_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_func_dlopen=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_func_dlopen=no
17590 rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17593 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17594 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17595 if test $ac_cv_func_dlopen = yes; then
17596 lt_cv_dlopen="dlopen"
17598 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17599 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17600 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 ac_check_lib_save_LIBS=$LIBS
17605 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17612 /* Override any gcc2 internal prototype to avoid an error. */
17616 /* We use char because int might match the return type of a gcc2
17617 builtin and then its argument prototype would still apply. */
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>conftest.er1
17631 grep -v '^ *+' conftest.er1 >conftest.err
17633 cat conftest.err >&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } &&
17636 { ac_try='test -z "$ac_cxx_werror_flag"
17637 || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_lib_dl_dlopen=yes
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_cv_lib_dl_dlopen=no
17656 rm -f conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17662 if test $ac_cv_lib_dl_dlopen = yes; then
17663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17665 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17666 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17667 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 ac_check_lib_save_LIBS=$LIBS
17671 LIBS="-lsvld $LIBS"
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17679 /* Override any gcc2 internal prototype to avoid an error. */
17683 /* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696 (eval $ac_link) 2>conftest.er1
17698 grep -v '^ *+' conftest.er1 >conftest.err
17700 cat conftest.err >&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
17703 { ac_try='test -z "$ac_cxx_werror_flag"
17704 || test ! -s conftest.err'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_cv_lib_svld_dlopen=yes
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17721 ac_cv_lib_svld_dlopen=no
17723 rm -f conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
17725 LIBS=$ac_check_lib_save_LIBS
17727 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17728 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17729 if test $ac_cv_lib_svld_dlopen = yes; then
17730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17732 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17733 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 ac_check_lib_save_LIBS=$LIBS
17739 cat >conftest.$ac_ext <<_ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17746 /* Override any gcc2 internal prototype to avoid an error. */
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_cxx_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_lib_dld_dld_link=yes
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_cv_lib_dld_dld_link=no
17790 rm -f conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796 if test $ac_cv_lib_dld_dld_link = yes; then
17797 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17818 if test "x$lt_cv_dlopen" != xno; then
17824 case $lt_cv_dlopen in
17826 save_CPPFLAGS="$CPPFLAGS"
17827 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17829 save_LDFLAGS="$LDFLAGS"
17830 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17833 LIBS="$lt_cv_dlopen_libs $LIBS"
17835 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837 if test "${lt_cv_dlopen_self+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 if test "$cross_compiling" = yes; then :
17841 lt_cv_dlopen_self=cross
17843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844 lt_status=$lt_dlunknown
17845 cat > conftest.$ac_ext <<EOF
17846 #line 17846 "configure"
17847 #include "confdefs.h"
17856 # define LT_DLGLOBAL RTLD_GLOBAL
17859 # define LT_DLGLOBAL DL_GLOBAL
17861 # define LT_DLGLOBAL 0
17865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866 find out it does not work in some platform. */
17867 #ifndef LT_DLLAZY_OR_NOW
17869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17872 # define LT_DLLAZY_OR_NOW DL_LAZY
17875 # define LT_DLLAZY_OR_NOW RTLD_NOW
17878 # define LT_DLLAZY_OR_NOW DL_NOW
17880 # define LT_DLLAZY_OR_NOW 0
17888 extern "C" void exit (int);
17891 void fnord() { int i=42;}
17894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895 int status = $lt_dlunknown;
17899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901 /* dlclose (self); */
17907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908 (eval $ac_link) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912 (./conftest; exit; ) 2>/dev/null
17914 case x$lt_status in
17915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17920 # compilation failed
17921 lt_cv_dlopen_self=no
17928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17931 if test "x$lt_cv_dlopen_self" = xyes; then
17932 LDFLAGS="$LDFLAGS $link_static_flag"
17933 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935 if test "${lt_cv_dlopen_self_static+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 if test "$cross_compiling" = yes; then :
17939 lt_cv_dlopen_self_static=cross
17941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942 lt_status=$lt_dlunknown
17943 cat > conftest.$ac_ext <<EOF
17944 #line 17944 "configure"
17945 #include "confdefs.h"
17954 # define LT_DLGLOBAL RTLD_GLOBAL
17957 # define LT_DLGLOBAL DL_GLOBAL
17959 # define LT_DLGLOBAL 0
17963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964 find out it does not work in some platform. */
17965 #ifndef LT_DLLAZY_OR_NOW
17967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17970 # define LT_DLLAZY_OR_NOW DL_LAZY
17973 # define LT_DLLAZY_OR_NOW RTLD_NOW
17976 # define LT_DLLAZY_OR_NOW DL_NOW
17978 # define LT_DLLAZY_OR_NOW 0
17986 extern "C" void exit (int);
17989 void fnord() { int i=42;}
17992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993 int status = $lt_dlunknown;
17997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17998 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999 /* dlclose (self); */
18005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006 (eval $ac_link) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010 (./conftest; exit; ) 2>/dev/null
18012 case x$lt_status in
18013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18018 # compilation failed
18019 lt_cv_dlopen_self_static=no
18026 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18030 CPPFLAGS="$save_CPPFLAGS"
18031 LDFLAGS="$save_LDFLAGS"
18036 case $lt_cv_dlopen_self in
18037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038 *) enable_dlopen_self=unknown ;;
18041 case $lt_cv_dlopen_self_static in
18042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043 *) enable_dlopen_self_static=unknown ;;
18048 # The else clause should only fire when bootstrapping the
18049 # libtool distribution, otherwise you forgot to ship ltmain.sh
18050 # with your package, and you will get complaints that there are
18051 # no rules to generate ltmain.sh.
18052 if test -f "$ltmain"; then
18053 # See if we are running on zsh, and set the options which allow our commands through
18054 # without removal of \ escapes.
18055 if test -n "${ZSH_VERSION+set}" ; then
18056 setopt NO_GLOB_SUBST
18058 # Now quote all the things that may contain metacharacters while being
18059 # careful not to overquote the AC_SUBSTed values. We take copies of the
18060 # variables and quote the copies for generation of the libtool script.
18061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18065 deplibs_check_method reload_flag reload_cmds need_locks \
18066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18067 lt_cv_sys_global_symbol_to_c_name_address \
18068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18069 old_postinstall_cmds old_postuninstall_cmds \
18073 lt_prog_compiler_wl_CXX \
18074 lt_prog_compiler_pic_CXX \
18075 lt_prog_compiler_static_CXX \
18076 lt_prog_compiler_no_builtin_flag_CXX \
18077 export_dynamic_flag_spec_CXX \
18078 thread_safe_flag_spec_CXX \
18079 whole_archive_flag_spec_CXX \
18080 enable_shared_with_static_runtimes_CXX \
18081 old_archive_cmds_CXX \
18082 old_archive_from_new_cmds_CXX \
18083 predep_objects_CXX \
18084 postdep_objects_CXX \
18087 compiler_lib_search_path_CXX \
18089 archive_expsym_cmds_CXX \
18090 postinstall_cmds_CXX \
18091 postuninstall_cmds_CXX \
18092 old_archive_from_expsyms_cmds_CXX \
18093 allow_undefined_flag_CXX \
18094 no_undefined_flag_CXX \
18095 export_symbols_cmds_CXX \
18096 hardcode_libdir_flag_spec_CXX \
18097 hardcode_libdir_flag_spec_ld_CXX \
18098 hardcode_libdir_separator_CXX \
18099 hardcode_automatic_CXX \
18101 module_expsym_cmds_CXX \
18102 lt_cv_prog_compiler_c_o_CXX \
18103 exclude_expsyms_CXX \
18104 include_expsyms_CXX; do
18107 old_archive_cmds_CXX | \
18108 old_archive_from_new_cmds_CXX | \
18109 archive_cmds_CXX | \
18110 archive_expsym_cmds_CXX | \
18111 module_cmds_CXX | \
18112 module_expsym_cmds_CXX | \
18113 old_archive_from_expsyms_cmds_CXX | \
18114 export_symbols_cmds_CXX | \
18115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18116 postinstall_cmds | postuninstall_cmds | \
18117 old_postinstall_cmds | old_postuninstall_cmds | \
18118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18119 # Double-quote double-evaled strings.
18120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18129 *'\$0 --fallback-echo"')
18130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18136 cat <<__EOF__ >> "$cfgfile"
18137 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18141 # Shell to use when invoking shell scripts.
18144 # Whether or not to build shared libraries.
18145 build_libtool_libs=$enable_shared
18147 # Whether or not to build static libraries.
18148 build_old_libs=$enable_static
18150 # Whether or not to add -lc for building shared libraries.
18151 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18153 # Whether or not to disallow shared libs when runtime libs are static
18154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18156 # Whether or not to optimize for fast installation.
18157 fast_install=$enable_fast_install
18160 host_alias=$host_alias
18163 # An echo program that does not interpret backslashes.
18168 AR_FLAGS=$lt_AR_FLAGS
18173 # A language-specific compiler.
18174 CC=$lt_compiler_CXX
18176 # Is the compiler the GNU C compiler?
18182 # The linker used to build libraries.
18185 # Whether we need hard or soft links.
18188 # A BSD-compatible nm program.
18191 # A symbol stripping program
18194 # Used to examine libraries when file_magic_cmd begins "file"
18195 MAGIC_CMD=$MAGIC_CMD
18197 # Used on cygwin: DLL creation program.
18200 # Used on cygwin: object dumper.
18203 # Used on cygwin: assembler.
18206 # The name of the directory that contains temporary libtool files.
18209 # How to create reloadable object files.
18210 reload_flag=$lt_reload_flag
18211 reload_cmds=$lt_reload_cmds
18213 # How to pass a linker flag through the compiler.
18214 wl=$lt_lt_prog_compiler_wl_CXX
18216 # Object file suffix (normally "o").
18217 objext="$ac_objext"
18219 # Old archive suffix (normally "a").
18222 # Shared library suffix (normally ".so").
18223 shrext_cmds='$shrext_cmds'
18225 # Executable file suffix (normally "").
18228 # Additional compiler flags for building library objects.
18229 pic_flag=$lt_lt_prog_compiler_pic_CXX
18232 # What is the maximum length of a command?
18233 max_cmd_len=$lt_cv_sys_max_cmd_len
18235 # Does compiler simultaneously support -c and -o options?
18236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18238 # Must we lock files when doing compilation ?
18239 need_locks=$lt_need_locks
18241 # Do we need the lib prefix for modules?
18242 need_lib_prefix=$need_lib_prefix
18244 # Do we need a version for libraries?
18245 need_version=$need_version
18247 # Whether dlopen is supported.
18248 dlopen_support=$enable_dlopen
18250 # Whether dlopen of programs is supported.
18251 dlopen_self=$enable_dlopen_self
18253 # Whether dlopen of statically linked programs is supported.
18254 dlopen_self_static=$enable_dlopen_self_static
18256 # Compiler flag to prevent dynamic linking.
18257 link_static_flag=$lt_lt_prog_compiler_static_CXX
18259 # Compiler flag to turn off builtin functions.
18260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18262 # Compiler flag to allow reflexive dlopens.
18263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18265 # Compiler flag to generate shared objects directly from archives.
18266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18268 # Compiler flag to generate thread-safe objects.
18269 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18271 # Library versioning type.
18272 version_type=$version_type
18274 # Format of library name prefix.
18275 libname_spec=$lt_libname_spec
18277 # List of archive names. First name is the real one, the rest are links.
18278 # The last name is the one that the linker finds with -lNAME.
18279 library_names_spec=$lt_library_names_spec
18281 # The coded name of the library, if different from the real name.
18282 soname_spec=$lt_soname_spec
18284 # Commands used to build and install an old-style archive.
18286 old_archive_cmds=$lt_old_archive_cmds_CXX
18287 old_postinstall_cmds=$lt_old_postinstall_cmds
18288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18290 # Create an old-style archive from a shared archive.
18291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18293 # Create a temporary old-style archive to link instead of a shared archive.
18294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18296 # Commands used to build and install a shared archive.
18297 archive_cmds=$lt_archive_cmds_CXX
18298 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18299 postinstall_cmds=$lt_postinstall_cmds
18300 postuninstall_cmds=$lt_postuninstall_cmds
18302 # Commands used to build a loadable module (assumed same as above if empty)
18303 module_cmds=$lt_module_cmds_CXX
18304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18306 # Commands to strip libraries.
18307 old_striplib=$lt_old_striplib
18308 striplib=$lt_striplib
18310 # Dependencies to place before the objects being linked to create a
18312 predep_objects=$lt_predep_objects_CXX
18314 # Dependencies to place after the objects being linked to create a
18316 postdep_objects=$lt_postdep_objects_CXX
18318 # Dependencies to place before the objects being linked to create a
18320 predeps=$lt_predeps_CXX
18322 # Dependencies to place after the objects being linked to create a
18324 postdeps=$lt_postdeps_CXX
18326 # The library search path used internally by the compiler when linking
18327 # a shared library.
18328 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18330 # Method to check whether dependent libraries are shared objects.
18331 deplibs_check_method=$lt_deplibs_check_method
18333 # Command to use when deplibs_check_method == file_magic.
18334 file_magic_cmd=$lt_file_magic_cmd
18336 # Flag that allows shared libraries with undefined symbols to be built.
18337 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18339 # Flag that forces no undefined symbols.
18340 no_undefined_flag=$lt_no_undefined_flag_CXX
18342 # Commands used to finish a libtool library installation in a directory.
18343 finish_cmds=$lt_finish_cmds
18345 # Same as above, but a single script fragment to be evaled but not shown.
18346 finish_eval=$lt_finish_eval
18348 # Take the output of nm and produce a listing of raw symbols and C names.
18349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18351 # Transform the output of nm in a proper C declaration
18352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18354 # Transform the output of nm in a C name address pair
18355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18357 # This is the shared library runtime path variable.
18358 runpath_var=$runpath_var
18360 # This is the shared library path variable.
18361 shlibpath_var=$shlibpath_var
18363 # Is shlibpath searched before the hard-coded library search path?
18364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18366 # How to hardcode a shared library path into an executable.
18367 hardcode_action=$hardcode_action_CXX
18369 # Whether we should hardcode library paths into libraries.
18370 hardcode_into_libs=$hardcode_into_libs
18372 # Flag to hardcode \$libdir into a binary during linking.
18373 # This must work even if \$libdir does not exist.
18374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18376 # If ld is used when linking, flag to hardcode \$libdir into
18377 # a binary during linking. This must work even if \$libdir does
18379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18381 # Whether we need a single -rpath flag with a separated argument.
18382 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18384 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18385 # resulting binary.
18386 hardcode_direct=$hardcode_direct_CXX
18388 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18389 # resulting binary.
18390 hardcode_minus_L=$hardcode_minus_L_CXX
18392 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18393 # the resulting binary.
18394 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18396 # Set to yes if building a shared library automatically hardcodes DIR into the library
18397 # and all subsequent libraries and executables linked against it.
18398 hardcode_automatic=$hardcode_automatic_CXX
18400 # Variables whose values should be saved in libtool wrapper scripts and
18401 # restored at relink time.
18402 variables_saved_for_relink="$variables_saved_for_relink"
18404 # Whether libtool must link a program against all its dependency libraries.
18405 link_all_deplibs=$link_all_deplibs_CXX
18407 # Compile-time system search path for libraries
18408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18410 # Run-time system search path for libraries
18411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18413 # Fix the shell variable \$srcfile for the compiler.
18414 fix_srcfile_path="$fix_srcfile_path_CXX"
18416 # Set to yes if exported symbols are required.
18417 always_export_symbols=$always_export_symbols_CXX
18419 # The commands to list exported symbols.
18420 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18422 # The commands to extract the exported symbol list from a shared archive.
18423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18425 # Symbols that should not be listed in the preloaded symbols.
18426 exclude_expsyms=$lt_exclude_expsyms_CXX
18428 # Symbols that must always be exported.
18429 include_expsyms=$lt_include_expsyms_CXX
18431 # ### END LIBTOOL TAG CONFIG: $tagname
18437 # If there is no Makefile yet, we rely on a make rule to execute
18438 # `config.status --recheck' to rerun these tests and create the
18439 # libtool script then.
18440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18441 if test -f "$ltmain_in"; then
18442 test -f Makefile && make "$ltmain"
18448 ac_cpp='$CPP $CPPFLAGS'
18449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18457 with_gnu_ldcxx=$with_gnu_ld
18458 with_gnu_ld=$lt_save_with_gnu_ld
18459 lt_cv_path_LDCXX=$lt_cv_path_LD
18460 lt_cv_path_LD=$lt_save_path_LD
18461 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18462 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18470 if test -n "$F77" && test "X$F77" != "Xno"; then
18473 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18474 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18478 archive_cmds_need_lc_F77=no
18479 allow_undefined_flag_F77=
18480 always_export_symbols_F77=no
18481 archive_expsym_cmds_F77=
18482 export_dynamic_flag_spec_F77=
18483 hardcode_direct_F77=no
18484 hardcode_libdir_flag_spec_F77=
18485 hardcode_libdir_flag_spec_ld_F77=
18486 hardcode_libdir_separator_F77=
18487 hardcode_minus_L_F77=no
18488 hardcode_automatic_F77=no
18490 module_expsym_cmds_F77=
18491 link_all_deplibs_F77=unknown
18492 old_archive_cmds_F77=$old_archive_cmds
18493 no_undefined_flag_F77=
18494 whole_archive_flag_spec_F77=
18495 enable_shared_with_static_runtimes_F77=no
18497 # Source file extension for f77 test sources.
18500 # Object file extension for compiled f77 test sources.
18504 # Code to be used in simple compile tests
18505 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18507 # Code to be used in simple link tests
18508 lt_simple_link_test_code=" program t\n end\n"
18510 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18512 # If no C compiler was specified, use CC.
18515 # Allow CC to be a program name with arguments.
18519 # Allow CC to be a program name with arguments.
18524 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18526 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18527 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18528 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18529 echo "${ECHO_T}$can_build_shared" >&6
18531 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18533 test "$can_build_shared" = "no" && enable_shared=no
18535 # On AIX, shared libraries and static libraries use the same namespace, and
18536 # are all built from PIC.
18539 test "$enable_shared" = yes && enable_static=no
18540 if test -n "$RANLIB"; then
18541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18542 postinstall_cmds='$RANLIB $lib'
18546 test "$enable_shared" = yes && enable_static=no
18549 echo "$as_me:$LINENO: result: $enable_shared" >&5
18550 echo "${ECHO_T}$enable_shared" >&6
18552 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18554 # Make sure either enable_shared or enable_static is yes.
18555 test "$enable_shared" = yes || enable_static=yes
18556 echo "$as_me:$LINENO: result: $enable_static" >&5
18557 echo "${ECHO_T}$enable_static" >&6
18559 test "$ld_shlibs_F77" = no && can_build_shared=no
18564 lt_prog_compiler_wl_F77=
18565 lt_prog_compiler_pic_F77=
18566 lt_prog_compiler_static_F77=
18568 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18571 if test "$GCC" = yes; then
18572 lt_prog_compiler_wl_F77='-Wl,'
18573 lt_prog_compiler_static_F77='-static'
18577 # All AIX code is PIC.
18578 if test "$host_cpu" = ia64; then
18579 # AIX 5 now supports IA64 processor
18580 lt_prog_compiler_static_F77='-Bstatic'
18585 # FIXME: we need at least 68020 code to build shared libraries, but
18586 # adding the `-m68020' flag to GCC prevents building anything better,
18588 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18592 # PIC is the default for these OSes.
18595 mingw* | pw32* | os2*)
18596 # This hack is so that the source file can tell whether it is being
18597 # built for inclusion in a dll (and should export symbols for example).
18598 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18601 darwin* | rhapsody*)
18602 # PIC is the default on this platform
18603 # Common symbols not allowed in MH_DYLIB files
18604 lt_prog_compiler_pic_F77='-fno-common'
18608 # Just because we use GCC doesn't mean we suddenly get shared libraries
18609 # on systems that don't support them.
18610 lt_prog_compiler_can_build_shared_F77=no
18615 if test -d /usr/nec; then
18616 lt_prog_compiler_pic_F77=-Kconform_pic
18621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18622 # not for PA HP-UX.
18623 case "$host_cpu" in
18628 lt_prog_compiler_pic_F77='-fPIC'
18634 lt_prog_compiler_pic_F77='-fPIC'
18638 # PORTME Check for flag to pass linker flags through the system compiler.
18641 lt_prog_compiler_wl_F77='-Wl,'
18642 if test "$host_cpu" = ia64; then
18643 # AIX 5 now supports IA64 processor
18644 lt_prog_compiler_static_F77='-Bstatic'
18646 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18650 # PIC is the default on this platform
18651 # Common symbols not allowed in MH_DYLIB files
18652 case "$cc_basename" in
18654 lt_prog_compiler_pic_F77='-qnocommon'
18655 lt_prog_compiler_wl_F77='-Wl,'
18660 mingw* | pw32* | os2*)
18661 # This hack is so that the source file can tell whether it is being
18662 # built for inclusion in a dll (and should export symbols for example).
18663 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18666 hpux9* | hpux10* | hpux11*)
18667 lt_prog_compiler_wl_F77='-Wl,'
18668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18669 # not for PA HP-UX.
18670 case "$host_cpu" in
18675 lt_prog_compiler_pic_F77='+Z'
18678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18679 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18682 irix5* | irix6* | nonstopux*)
18683 lt_prog_compiler_wl_F77='-Wl,'
18684 # PIC (with -KPIC) is the default.
18685 lt_prog_compiler_static_F77='-non_shared'
18689 lt_prog_compiler_pic_F77='-KPIC'
18690 lt_prog_compiler_static_F77='-Bstatic'
18696 lt_prog_compiler_wl_F77='-Wl,'
18697 lt_prog_compiler_pic_F77='-KPIC'
18698 lt_prog_compiler_static_F77='-static'
18701 lt_prog_compiler_wl_F77='-Wl,'
18702 # All Alpha code is PIC.
18703 lt_prog_compiler_static_F77='-non_shared'
18708 osf3* | osf4* | osf5*)
18709 lt_prog_compiler_wl_F77='-Wl,'
18710 # All OSF/1 code is PIC.
18711 lt_prog_compiler_static_F77='-non_shared'
18715 lt_prog_compiler_pic_F77='-Kpic'
18716 lt_prog_compiler_static_F77='-dn'
18720 lt_prog_compiler_wl_F77='-Wl,'
18721 lt_prog_compiler_pic_F77='-KPIC'
18722 lt_prog_compiler_static_F77='-Bstatic'
18726 lt_prog_compiler_wl_F77='-Qoption ld '
18727 lt_prog_compiler_pic_F77='-PIC'
18728 lt_prog_compiler_static_F77='-Bstatic'
18731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18732 lt_prog_compiler_wl_F77='-Wl,'
18733 lt_prog_compiler_pic_F77='-KPIC'
18734 lt_prog_compiler_static_F77='-Bstatic'
18738 if test -d /usr/nec ;then
18739 lt_prog_compiler_pic_F77='-Kconform_pic'
18740 lt_prog_compiler_static_F77='-Bstatic'
18745 lt_prog_compiler_pic_F77='-pic'
18746 lt_prog_compiler_static_F77='-Bstatic'
18750 lt_prog_compiler_can_build_shared_F77=no
18755 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18756 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18759 # Check to make sure the PIC flag actually works.
18761 if test -n "$lt_prog_compiler_pic_F77"; then
18763 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18764 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18765 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 lt_prog_compiler_pic_works_F77=no
18769 ac_outfile=conftest.$ac_objext
18770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18771 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18772 # Insert the option either (1) after the last *FLAGS variable, or
18773 # (2) before a word containing "conftest.", or (3) at the end.
18774 # Note that $ac_compile itself does not contain backslashes and begins
18775 # with a dollar sign (not a hyphen), so the echo should work correctly.
18776 # The option is referenced via a variable to avoid confusing sed.
18777 lt_compile=`echo "$ac_compile" | $SED \
18778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780 -e 's:$: $lt_compiler_flag:'`
18781 (eval echo "\"\$as_me:18781: $lt_compile\"" >&5)
18782 (eval "$lt_compile" 2>conftest.err)
18784 cat conftest.err >&5
18785 echo "$as_me:18785: \$? = $ac_status" >&5
18786 if (exit $ac_status) && test -s "$ac_outfile"; then
18787 # The compiler can only warn and ignore the option if not recognized
18788 # So say no if there are warnings
18789 if test ! -s conftest.err; then
18790 lt_prog_compiler_pic_works_F77=yes
18796 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18797 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18799 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18800 case $lt_prog_compiler_pic_F77 in
18802 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18805 lt_prog_compiler_pic_F77=
18806 lt_prog_compiler_can_build_shared_F77=no
18811 # For platforms which do not support PIC, -DPIC is meaningless:
18813 lt_prog_compiler_pic_F77=
18816 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18822 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 lt_cv_prog_compiler_c_o_F77=no
18826 $rm -r conftest 2>/dev/null
18830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18832 lt_compiler_flag="-o out/conftest2.$ac_objext"
18833 # Insert the option either (1) after the last *FLAGS variable, or
18834 # (2) before a word containing "conftest.", or (3) at the end.
18835 # Note that $ac_compile itself does not contain backslashes and begins
18836 # with a dollar sign (not a hyphen), so the echo should work correctly.
18837 lt_compile=`echo "$ac_compile" | $SED \
18838 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18840 -e 's:$: $lt_compiler_flag:'`
18841 (eval echo "\"\$as_me:18841: $lt_compile\"" >&5)
18842 (eval "$lt_compile" 2>out/conftest.err)
18844 cat out/conftest.err >&5
18845 echo "$as_me:18845: \$? = $ac_status" >&5
18846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18848 # The compiler can only warn and ignore the option if not recognized
18849 # So say no if there are warnings
18850 if test ! -s out/conftest.err; then
18851 lt_cv_prog_compiler_c_o_F77=yes
18856 # SGI C++ compiler will create directory out/ii_files/ for
18857 # template instantiation
18858 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18859 $rm out/* && rmdir out
18865 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18866 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18869 hard_links="nottested"
18870 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18871 # do not overwrite the value of need_locks provided by the user
18872 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18873 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18878 ln conftest.a conftest.b 2>&5 || hard_links=no
18879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18880 echo "$as_me:$LINENO: result: $hard_links" >&5
18881 echo "${ECHO_T}$hard_links" >&6
18882 if test "$hard_links" = no; then
18883 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18884 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18891 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18892 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18895 allow_undefined_flag_F77=
18896 enable_shared_with_static_runtimes_F77=no
18898 archive_expsym_cmds_F77=
18899 old_archive_From_new_cmds_F77=
18900 old_archive_from_expsyms_cmds_F77=
18901 export_dynamic_flag_spec_F77=
18902 whole_archive_flag_spec_F77=
18903 thread_safe_flag_spec_F77=
18904 hardcode_libdir_flag_spec_F77=
18905 hardcode_libdir_flag_spec_ld_F77=
18906 hardcode_libdir_separator_F77=
18907 hardcode_direct_F77=no
18908 hardcode_minus_L_F77=no
18909 hardcode_shlibpath_var_F77=unsupported
18910 link_all_deplibs_F77=unknown
18911 hardcode_automatic_F77=no
18913 module_expsym_cmds_F77=
18914 always_export_symbols_F77=no
18915 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18916 # include_expsyms should be a list of space-separated symbols to be *always*
18917 # included in the symbol list
18918 include_expsyms_F77=
18919 # exclude_expsyms can be an extended regexp of symbols to exclude
18920 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18921 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18922 # as well as any symbol that contains `d'.
18923 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18925 # platforms (ab)use it in PIC code, but their linkers get confused if
18926 # the symbol is explicitly referenced. Since portable code cannot
18927 # rely on this symbol name, it's probably fine to never include it in
18928 # preloaded symbol tables.
18929 extract_expsyms_cmds=
18932 cygwin* | mingw* | pw32*)
18933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18934 # When not using gcc, we currently assume that we are using
18935 # Microsoft Visual C++.
18936 if test "$GCC" != yes; then
18946 if test "$with_gnu_ld" = yes; then
18947 # If archive_cmds runs LD, not CC, wlarc should be empty
18950 # See if GNU ld supports shared libraries.
18952 aix3* | aix4* | aix5*)
18953 # On AIX/PPC, the GNU linker is very broken
18954 if test "$host_cpu" != ia64; then
18958 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18959 *** to be unable to reliably create shared libraries on AIX.
18960 *** Therefore, libtool is disabling shared libraries support. If you
18961 *** really care for shared libraries, you may want to modify your PATH
18962 *** so that a non-GNU linker is found, and then restart.
18969 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)'
18970 hardcode_libdir_flag_spec_F77='-L$libdir'
18971 hardcode_minus_L_F77=yes
18973 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18974 # that the semantics of dynamic libraries on AmigaOS, at least up
18975 # to version 4, is to share data among multiple programs linked
18976 # with the same dynamic library. Since this doesn't match the
18977 # behavior of shared libraries on other platforms, we can't use
18983 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18984 allow_undefined_flag_F77=unsupported
18985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18986 # support --undefined. This deserves some investigation. FIXME
18987 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993 cygwin* | mingw* | pw32*)
18994 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18995 # as there is no search path for DLLs.
18996 hardcode_libdir_flag_spec_F77='-L$libdir'
18997 allow_undefined_flag_F77=unsupported
18998 always_export_symbols_F77=no
18999 enable_shared_with_static_runtimes_F77=yes
19000 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19002 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19003 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19004 # If the export-symbols file already is a .def file (1st line
19005 # is EXPORTS), use it as is; otherwise, prepend...
19006 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19007 cp $export_symbols $output_objdir/$soname.def;
19009 echo EXPORTS > $output_objdir/$soname.def;
19010 cat $export_symbols >> $output_objdir/$soname.def;
19012 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19020 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19023 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19024 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19029 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19033 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19034 *** create shared libraries on Solaris systems. Therefore, libtool
19035 *** is disabling shared libraries support. We urge you to upgrade GNU
19036 *** binutils to release 2.9.1 or newer. Another option is to modify
19037 *** your PATH or compiler configuration so that the native linker is
19038 *** used, and then restart.
19041 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19043 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19050 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19052 hardcode_direct_F77=yes
19053 hardcode_shlibpath_var_F77=no
19057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19058 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19059 archive_cmds_F77="$tmp_archive_cmds"
19060 supports_anon_versioning=no
19061 case `$LD -v 2>/dev/null` in
19062 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19065 *\ 2.11.*) ;; # other 2.11 versions
19066 *) supports_anon_versioning=yes ;;
19068 if test $supports_anon_versioning = yes; then
19069 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19071 $echo "local: *; };" >> $output_objdir/$libname.ver~
19072 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19074 archive_expsym_cmds_F77="$tmp_archive_cmds"
19082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19091 if test "$ld_shlibs_F77" = yes; then
19092 runpath_var=LD_RUN_PATH
19093 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19094 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19095 # ancient GNU ld didn't support --whole-archive et. al.
19096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19097 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19099 whole_archive_flag_spec_F77=
19103 # PORTME fill in a description of your system's linker (not GNU ld)
19106 allow_undefined_flag_F77=unsupported
19107 always_export_symbols_F77=yes
19108 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'
19109 # Note: this linker hardcodes the directories in LIBPATH if there
19110 # are no directories specified by -L.
19111 hardcode_minus_L_F77=yes
19112 if test "$GCC" = yes && test -z "$link_static_flag"; then
19113 # Neither direct hardcoding nor static linking is supported with a
19115 hardcode_direct_F77=unsupported
19120 if test "$host_cpu" = ia64; then
19121 # On IA64, the linker does run time linking by default, so we don't
19122 # have to do anything special.
19123 aix_use_runtimelinking=no
19124 exp_sym_flag='-Bexport'
19127 # If we're using GNU nm, then we don't want the "-C" option.
19128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19130 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'
19132 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'
19134 aix_use_runtimelinking=no
19136 # Test if we are trying to use run time linking or normal
19137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19138 # need to do runtime linking.
19139 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19140 for ld_flag in $LDFLAGS; do
19141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19142 aix_use_runtimelinking=yes
19148 exp_sym_flag='-bexport'
19149 no_entry_flag='-bnoentry'
19152 # When large executables or shared objects are built, AIX ld can
19153 # have problems creating the table of contents. If linking a library
19154 # or program results in "error TOC overflow" add -mminimal-toc to
19155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19158 archive_cmds_F77=''
19159 hardcode_direct_F77=yes
19160 hardcode_libdir_separator_F77=':'
19161 link_all_deplibs_F77=yes
19163 if test "$GCC" = yes; then
19164 case $host_os in aix4.012|aix4.012.*)
19165 # We only want to do this on AIX 4.2 and lower, the check
19166 # below for broken collect2 doesn't work under 4.3+
19167 collect2name=`${CC} -print-prog-name=collect2`
19168 if test -f "$collect2name" && \
19169 strings "$collect2name" | grep resolve_lib_name >/dev/null
19171 # We have reworked collect2
19172 hardcode_direct_F77=yes
19174 # We have old collect2
19175 hardcode_direct_F77=unsupported
19176 # It fails to find uninstalled libraries when the uninstalled
19177 # path is not listed in the libpath. Setting hardcode_minus_L
19178 # to unsupported forces relinking
19179 hardcode_minus_L_F77=yes
19180 hardcode_libdir_flag_spec_F77='-L$libdir'
19181 hardcode_libdir_separator_F77=
19184 shared_flag='-shared'
19187 if test "$host_cpu" = ia64; then
19188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19189 # chokes on -Wl,-G. The following line is correct:
19192 if test "$aix_use_runtimelinking" = yes; then
19193 shared_flag='${wl}-G'
19195 shared_flag='${wl}-bM:SRE'
19200 # It seems that -bexpall does not export symbols beginning with
19201 # underscore (_), so it is better to generate a list of symbols to export.
19202 always_export_symbols_F77=yes
19203 if test "$aix_use_runtimelinking" = yes; then
19204 # Warning - without using the other runtime loading flags (-brtl),
19205 # -berok will link without error, but may produce a broken library.
19206 allow_undefined_flag_F77='-berok'
19207 # Determine the default libpath from the value encoded in an empty executable.
19208 cat >conftest.$ac_ext <<_ACEOF
19213 rm -f conftest.$ac_objext conftest$ac_exeext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19215 (eval $ac_link) 2>conftest.er1
19217 grep -v '^ *+' conftest.er1 >conftest.err
19219 cat conftest.err >&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
19222 { ac_try='test -z "$ac_f77_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19238 # Check for a 64-bit object if we didn't find anything.
19239 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; }
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19246 rm -f conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19251 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"
19253 if test "$host_cpu" = ia64; then
19254 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19255 allow_undefined_flag_F77="-z nodefs"
19256 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"
19258 # Determine the default libpath from the value encoded in an empty executable.
19259 cat >conftest.$ac_ext <<_ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19266 (eval $ac_link) 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
19273 { ac_try='test -z "$ac_f77_werror_flag"
19274 || test ! -s conftest.err'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest$ac_exeext'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19289 # Check for a 64-bit object if we didn't find anything.
19290 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; }
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19297 rm -f conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19301 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19302 # Warning - without using the other run time loading flags,
19303 # -berok will link without error, but may produce a broken library.
19304 no_undefined_flag_F77=' ${wl}-bernotok'
19305 allow_undefined_flag_F77=' ${wl}-berok'
19306 # -bexpall does not export symbols beginning with underscore (_)
19307 always_export_symbols_F77=yes
19308 # Exported symbols can be pulled into shared objects from archives
19309 whole_archive_flag_spec_F77=' '
19310 archive_cmds_need_lc_F77=yes
19311 # This is similar to how AIX traditionally builds it's shared libraries.
19312 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'
19318 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)'
19319 hardcode_libdir_flag_spec_F77='-L$libdir'
19320 hardcode_minus_L_F77=yes
19321 # see comment about different semantics on the GNU ld section
19326 export_dynamic_flag_spec_F77=-rdynamic
19329 cygwin* | mingw* | pw32*)
19330 # When not using gcc, we currently assume that we are using
19331 # Microsoft Visual C++.
19332 # hardcode_libdir_flag_spec is actually meaningless, as there is
19333 # no search path for DLLs.
19334 hardcode_libdir_flag_spec_F77=' '
19335 allow_undefined_flag_F77=unsupported
19336 # Tell ltmain to make .lib files, not .a files.
19338 # Tell ltmain to make .dll files, not .so files.
19340 # FIXME: Setting linknames here is a bad hack.
19341 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19342 # The linker will automatically build a .lib file if we build a DLL.
19343 old_archive_From_new_cmds_F77='true'
19344 # FIXME: Should let the user specify the lib program.
19345 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19346 fix_srcfile_path='`cygpath -w "$srcfile"`'
19347 enable_shared_with_static_runtimes_F77=yes
19350 darwin* | rhapsody*)
19352 rhapsody* | darwin1.[012])
19353 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19356 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19357 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19359 case ${MACOSX_DEPLOYMENT_TARGET} in
19361 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19364 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19370 archive_cmds_need_lc_F77=no
19371 hardcode_direct_F77=no
19372 hardcode_automatic_F77=yes
19373 hardcode_shlibpath_var_F77=unsupported
19374 whole_archive_flag_spec_F77=''
19375 link_all_deplibs_F77=yes
19376 if test "$GCC" = yes ; then
19377 output_verbose_link_cmd='echo'
19378 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19379 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19381 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}'
19382 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}'
19384 case "$cc_basename" in
19386 output_verbose_link_cmd='echo'
19387 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19388 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19390 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}'
19391 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}'
19401 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19402 hardcode_libdir_flag_spec_F77='-L$libdir'
19403 hardcode_shlibpath_var_F77=no
19410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19411 # support. Future versions do this automatically, but an explicit c++rt0.o
19412 # does not break anything, and helps significantly (at the cost of a little
19415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19416 hardcode_libdir_flag_spec_F77='-R$libdir'
19417 hardcode_direct_F77=yes
19418 hardcode_shlibpath_var_F77=no
19421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19424 hardcode_direct_F77=yes
19425 hardcode_minus_L_F77=yes
19426 hardcode_shlibpath_var_F77=no
19429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19430 freebsd* | kfreebsd*-gnu)
19431 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19432 hardcode_libdir_flag_spec_F77='-R$libdir'
19433 hardcode_direct_F77=yes
19434 hardcode_shlibpath_var_F77=no
19438 if test "$GCC" = yes; then
19439 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'
19441 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'
19443 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19444 hardcode_libdir_separator_F77=:
19445 hardcode_direct_F77=yes
19447 # hardcode_minus_L: Not really in the search PATH,
19448 # but as the default location of the library.
19449 hardcode_minus_L_F77=yes
19450 export_dynamic_flag_spec_F77='${wl}-E'
19454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19455 case "$host_cpu" in
19457 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19460 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19464 case "$host_cpu" in
19466 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19469 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19473 if test "$with_gnu_ld" = no; then
19474 case "$host_cpu" in
19476 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19477 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19478 hardcode_libdir_separator_F77=:
19479 hardcode_direct_F77=no
19480 hardcode_shlibpath_var_F77=no
19483 hardcode_libdir_flag_spec_F77='-L$libdir'
19484 hardcode_direct_F77=no
19485 hardcode_shlibpath_var_F77=no
19487 # hardcode_minus_L: Not really in the search PATH,
19488 # but as the default location of the library.
19489 hardcode_minus_L_F77=yes
19492 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19493 hardcode_libdir_separator_F77=:
19494 hardcode_direct_F77=yes
19495 export_dynamic_flag_spec_F77='${wl}-E'
19497 # hardcode_minus_L: Not really in the search PATH,
19498 # but as the default location of the library.
19499 hardcode_minus_L_F77=yes
19505 irix5* | irix6* | nonstopux*)
19506 if test "$GCC" = yes; then
19507 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'
19509 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'
19510 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19512 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19513 hardcode_libdir_separator_F77=:
19514 link_all_deplibs_F77=yes
19518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19521 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19523 hardcode_libdir_flag_spec_F77='-R$libdir'
19524 hardcode_direct_F77=yes
19525 hardcode_shlibpath_var_F77=no
19529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19530 hardcode_direct_F77=yes
19531 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19532 hardcode_libdir_separator_F77=:
19533 hardcode_shlibpath_var_F77=no
19537 hardcode_direct_F77=yes
19538 hardcode_shlibpath_var_F77=no
19539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19540 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19541 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19542 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19543 export_dynamic_flag_spec_F77='${wl}-E'
19546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19548 hardcode_libdir_flag_spec_F77='-R$libdir'
19551 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19552 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19559 hardcode_libdir_flag_spec_F77='-L$libdir'
19560 hardcode_minus_L_F77=yes
19561 allow_undefined_flag_F77=unsupported
19562 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'
19563 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19567 if test "$GCC" = yes; then
19568 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19569 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'
19571 allow_undefined_flag_F77=' -expect_unresolved \*'
19572 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'
19574 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19575 hardcode_libdir_separator_F77=:
19578 osf4* | osf5*) # as osf3* with the addition of -msym flag
19579 if test "$GCC" = yes; then
19580 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19581 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'
19582 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19584 allow_undefined_flag_F77=' -expect_unresolved \*'
19585 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'
19586 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~
19587 $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'
19589 # Both c and cxx compiler support -rpath directly
19590 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19592 hardcode_libdir_separator_F77=:
19596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19597 hardcode_shlibpath_var_F77=no
19598 export_dynamic_flag_spec_F77='${wl}-Bexport'
19599 runpath_var=LD_RUN_PATH
19600 hardcode_runpath_var=yes
19604 no_undefined_flag_F77=' -z text'
19605 if test "$GCC" = yes; then
19606 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19607 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19608 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19610 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19611 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19614 hardcode_libdir_flag_spec_F77='-R$libdir'
19615 hardcode_shlibpath_var_F77=no
19617 solaris2.[0-5] | solaris2.[0-5].*) ;;
19618 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19619 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19621 link_all_deplibs_F77=yes
19625 if test "x$host_vendor" = xsequent; then
19626 # Use $CC to link under sequent, because it throws in some extra .o
19627 # files that make .init and .fini sections work.
19628 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19630 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19632 hardcode_libdir_flag_spec_F77='-L$libdir'
19633 hardcode_direct_F77=yes
19634 hardcode_minus_L_F77=yes
19635 hardcode_shlibpath_var_F77=no
19639 case $host_vendor in
19641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19642 hardcode_direct_F77=yes # is this really true???
19645 ## LD is ld it makes a PLAMLIB
19646 ## CC just makes a GrossModule.
19647 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19648 reload_cmds_F77='$CC -r -o $output$reload_objs'
19649 hardcode_direct_F77=no
19652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19653 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19656 runpath_var='LD_RUN_PATH'
19657 hardcode_shlibpath_var_F77=no
19661 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19662 hardcode_shlibpath_var_F77=no
19663 export_dynamic_flag_spec_F77='-Bexport'
19667 if test -d /usr/nec; then
19668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669 hardcode_shlibpath_var_F77=no
19670 runpath_var=LD_RUN_PATH
19671 hardcode_runpath_var=yes
19677 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19678 hardcode_direct_F77=yes
19679 hardcode_minus_L_F77=no
19680 hardcode_shlibpath_var_F77=no
19681 hardcode_runpath_var=yes
19682 runpath_var=LD_RUN_PATH
19685 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19686 no_undefined_flag_F77='${wl}-z ${wl}text'
19687 if test "$GCC" = yes; then
19688 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 runpath_var='LD_RUN_PATH'
19693 hardcode_shlibpath_var_F77=no
19697 no_undefined_flag_F77=' -z text'
19698 # $CC -shared without GNU ld will not create a library from C++
19699 # object files and a static libstdc++, better avoid it by now
19700 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19701 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19703 hardcode_libdir_flag_spec_F77=
19704 hardcode_shlibpath_var_F77=no
19705 runpath_var='LD_RUN_PATH'
19709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19710 hardcode_libdir_flag_spec_F77='-L$libdir'
19711 hardcode_shlibpath_var_F77=no
19720 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19721 echo "${ECHO_T}$ld_shlibs_F77" >&6
19722 test "$ld_shlibs_F77" = no && can_build_shared=no
19724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19725 if test "$GCC" = yes; then
19726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19730 # Do we need to explicitly link libc?
19732 case "x$archive_cmds_need_lc_F77" in
19734 # Assume -lc should be added
19735 archive_cmds_need_lc_F77=yes
19737 if test "$enable_shared" = yes && test "$GCC" = yes; then
19738 case $archive_cmds_F77 in
19740 # FIXME: we may have to deal with multi-command sequences.
19743 # Test whether the compiler implicitly links with -lc since on some
19744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19745 # to ld, don't add -lc before -lgcc.
19746 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752 (eval $ac_compile) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } 2>conftest.err; then
19758 libobjs=conftest.$ac_objext
19760 wl=$lt_prog_compiler_wl_F77
19766 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19767 allow_undefined_flag_F77=
19768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19769 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }
19774 archive_cmds_need_lc_F77=no
19776 archive_cmds_need_lc_F77=yes
19778 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19780 cat conftest.err 1>&5
19783 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19784 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19793 library_names_spec=
19794 libname_spec='lib$name'
19798 postuninstall_cmds=
19802 shlibpath_overrides_runpath=unknown
19804 dynamic_linker="$host_os ld.so"
19805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19806 if test "$GCC" = yes; then
19807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19809 # if the path contains ";" then we assume it to be the separator
19810 # otherwise default to the standard path separator (i.e. ":") - it is
19811 # assumed that no part of a normal pathname contains ";" but that should
19812 # okay in the real world where ";" in dirpaths is itself problematic.
19813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19820 need_lib_prefix=unknown
19821 hardcode_into_libs=no
19823 # when you set need_version to no, make sure it does not cause -set_version
19824 # flags to be left without arguments
19825 need_version=unknown
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19831 shlibpath_var=LIBPATH
19833 # AIX 3 has no versioning support, so we append a major version to the name.
19834 soname_spec='${libname}${release}${shared_ext}$major'
19841 hardcode_into_libs=yes
19842 if test "$host_cpu" = ia64; then
19843 # AIX 5 supports IA64
19844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19845 shlibpath_var=LD_LIBRARY_PATH
19847 # With GCC up to 2.95.x, collect2 would create an import file
19848 # for dependence libraries. The import file would start with
19849 # the line `#! .'. This would cause the generated library to
19850 # depend on `.', always an invalid library. This was fixed in
19851 # development snapshots of GCC prior to 3.0.
19853 aix4 | aix4.[01] | aix4.[01].*)
19854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19859 can_build_shared=no
19863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19864 # soname into executable. Probably we can add versioning support to
19865 # collect2, so additional links can be useful in future.
19866 if test "$aix_use_runtimelinking" = yes; then
19867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19868 # instead of lib<name>.a to let people know that these are not
19869 # typical AIX shared libraries.
19870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872 # We preserve .a as extension for shared libraries through AIX4.2
19873 # and later when we are not doing run time linking.
19874 library_names_spec='${libname}${release}.a $libname.a'
19875 soname_spec='${libname}${release}${shared_ext}$major'
19877 shlibpath_var=LIBPATH
19882 library_names_spec='$libname.ixlibrary $libname.a'
19883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19884 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'
19888 library_names_spec='${libname}${shared_ext}'
19889 dynamic_linker="$host_os ld.so"
19890 shlibpath_var=LIBRARY_PATH
19896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19897 soname_spec='${libname}${release}${shared_ext}$major'
19898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19902 # the default ld.so.conf also contains /usr/contrib/lib and
19903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19904 # libtool to hard-code these into programs
19907 cygwin* | mingw* | pw32*)
19908 version_type=windows
19913 case $GCC,$host_os in
19914 yes,cygwin* | yes,mingw* | yes,pw32*)
19915 library_names_spec='$libname.dll.a'
19916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19917 postinstall_cmds='base_file=`basename \${file}`~
19918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19919 dldir=$destdir/`dirname \$dlpath`~
19920 test -d \$dldir || mkdir -p \$dldir~
19921 $install_prog $dir/$dlname \$dldir/$dlname'
19922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19923 dlpath=$dir/\$dldll~
19925 shlibpath_overrides_runpath=yes
19929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19934 # MinGW DLLs use traditional 'lib' prefix
19935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19938 # It is most probably a Windows format PATH printed by
19939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19940 # path with ; separators, and with drive letters. We can handle the
19941 # drive letters (cygwin fileutils understands them), so leave them,
19942 # especially as we might pass files found there to a mingw objdump,
19943 # which wouldn't understand a cygwinified path. Ahh.
19944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19950 # pw32 DLLs use 'pw' prefix rather than 'lib'
19951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19960 dynamic_linker='Win32 ld.exe'
19961 # FIXME: first we should search . and the directory the executable is in
19965 darwin* | rhapsody*)
19966 dynamic_linker="$host_os dyld"
19967 version_type=darwin
19970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19971 soname_spec='${libname}${release}${major}$shared_ext'
19972 shlibpath_overrides_runpath=yes
19973 shlibpath_var=DYLD_LIBRARY_PATH
19974 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19976 if test "$GCC" = yes; then
19977 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"`
19979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 shlibpath_var=LD_LIBRARY_PATH
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 shlibpath_overrides_runpath=no
20005 hardcode_into_libs=yes
20006 dynamic_linker='GNU ld.so'
20010 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20011 version_type=freebsd-$objformat
20012 case $version_type in
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20023 shlibpath_var=LD_LIBRARY_PATH
20026 shlibpath_overrides_runpath=yes
20028 freebsd3.01* | freebsdelf3.01*)
20029 shlibpath_overrides_runpath=yes
20030 hardcode_into_libs=yes
20033 shlibpath_overrides_runpath=no
20034 hardcode_into_libs=yes
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20044 soname_spec='${libname}${release}${shared_ext}$major'
20045 shlibpath_var=LD_LIBRARY_PATH
20046 hardcode_into_libs=yes
20049 hpux9* | hpux10* | hpux11*)
20050 # Give a soname corresponding to the major version so that dld.sl refuses to
20051 # link against other versions.
20055 case "$host_cpu" in
20058 hardcode_into_libs=yes
20059 dynamic_linker="$host_os dld.so"
20060 shlibpath_var=LD_LIBRARY_PATH
20061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 if test "X$HPUX_IA64_MODE" = X32; then
20065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20073 hardcode_into_libs=yes
20074 dynamic_linker="$host_os dld.sl"
20075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20084 dynamic_linker="$host_os dld.sl"
20085 shlibpath_var=SHLIB_PATH
20086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20088 soname_spec='${libname}${release}${shared_ext}$major'
20091 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20092 postinstall_cmds='chmod 555 $lib'
20095 irix5* | irix6* | nonstopux*)
20097 nonstopux*) version_type=nonstopux ;;
20099 if test "$lt_cv_prog_gnu_ld" = yes; then
20107 soname_spec='${libname}${release}${shared_ext}$major'
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20110 irix5* | nonstopux*)
20111 libsuff= shlibsuff=
20114 case $LD in # libtool.m4 will add one of these switches to LD
20115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20116 libsuff= shlibsuff= libmagic=32-bit;;
20117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20118 libsuff=32 shlibsuff=N32 libmagic=N32;;
20119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20121 *) libsuff= shlibsuff= libmagic=never-match;;
20125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20126 shlibpath_overrides_runpath=no
20127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20129 hardcode_into_libs=yes
20132 # No shared lib support for Linux oldld, aout, or coff.
20133 linux*oldld* | linux*aout* | linux*coff*)
20137 # This must be Linux ELF.
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20145 shlibpath_var=LD_LIBRARY_PATH
20146 shlibpath_overrides_runpath=no
20147 # This implies no fast_install, which is unacceptable.
20148 # Some rework will be needed to allow for fast_install
20149 # before this can be enabled.
20150 hardcode_into_libs=yes
20152 # Append ld.so.conf contents to the search path
20153 if test -f /etc/ld.so.conf; then
20154 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20158 # We used to test for /lib/ld.so.1 and disable shared libraries on
20159 # powerpc, because MkLinux only supported shared libraries with the
20160 # GNU dynamic linker. Since this was broken with cross compilers,
20161 # most powerpc-linux boxes support dynamic linking these days and
20162 # people can always --disable-shared, the test was removed, and we
20163 # assume the GNU/Linux dynamic linker is in use.
20164 dynamic_linker='GNU/Linux ld.so'
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=no
20175 hardcode_into_libs=yes
20176 dynamic_linker='GNU ld.so'
20183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20186 dynamic_linker='NetBSD (a.out) ld.so'
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 dynamic_linker='NetBSD ld.elf_so'
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes
20194 hardcode_into_libs=yes
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 shlibpath_overrides_runpath=yes
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20209 soname_spec='${libname}${release}${shared_ext}$major'
20210 shlibpath_var=LD_LIBRARY_PATH
20211 shlibpath_overrides_runpath=yes
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20220 shlibpath_var=LD_LIBRARY_PATH
20221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20223 openbsd2.[89] | openbsd2.[89].*)
20224 shlibpath_overrides_runpath=no
20227 shlibpath_overrides_runpath=yes
20231 shlibpath_overrides_runpath=yes
20236 libname_spec='$name'
20239 library_names_spec='$libname${shared_ext} $libname.a'
20240 dynamic_linker='OS/2 ld.exe'
20241 shlibpath_var=LIBPATH
20244 osf3* | osf4* | osf5*)
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259 shlibpath_var=LD_LIBRARY_PATH
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 shlibpath_overrides_runpath=yes
20270 hardcode_into_libs=yes
20271 # ldd complains unless libraries are executable
20272 postinstall_cmds='chmod +x $lib'
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20281 if test "$with_gnu_ld" = yes; then
20287 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 case $host_vendor in
20294 shlibpath_overrides_runpath=no
20296 export_dynamic_flag_spec='${wl}-Blargedynsym'
20297 runpath_var=LD_RUN_PATH
20305 shlibpath_overrides_runpath=no
20306 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20312 if test -d /usr/nec ;then
20314 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20315 soname_spec='$libname${shared_ext}.$major'
20316 shlibpath_var=LD_LIBRARY_PATH
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20331 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20332 echo "${ECHO_T}$dynamic_linker" >&6
20333 test "$dynamic_linker" = no && can_build_shared=no
20335 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20336 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20337 hardcode_action_F77=
20338 if test -n "$hardcode_libdir_flag_spec_F77" || \
20339 test -n "$runpath_var_F77" || \
20340 test "X$hardcode_automatic_F77" = "Xyes" ; then
20342 # We can hardcode non-existant directories.
20343 if test "$hardcode_direct_F77" != no &&
20344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20345 # have to relink, otherwise we might link with an installed library
20346 # when we should be linking with a yet-to-be-installed one
20347 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20348 test "$hardcode_minus_L_F77" != no; then
20349 # Linking always hardcodes the temporary library directory.
20350 hardcode_action_F77=relink
20352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20353 hardcode_action_F77=immediate
20356 # We cannot hardcode anything, or else we can only hardcode existing
20358 hardcode_action_F77=unsupported
20360 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20361 echo "${ECHO_T}$hardcode_action_F77" >&6
20363 if test "$hardcode_action_F77" = relink; then
20364 # Fast installation is not supported
20365 enable_fast_install=no
20366 elif test "$shlibpath_overrides_runpath" = yes ||
20367 test "$enable_shared" = no; then
20368 # Fast installation is not necessary
20369 enable_fast_install=needless
20374 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20375 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20376 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20379 echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6
20382 # FIXME - insert some real tests, host_os isn't really good enough
20385 if test -n "$STRIP" ; then
20386 striplib="$STRIP -x"
20387 echo "$as_me:$LINENO: result: yes" >&5
20388 echo "${ECHO_T}yes" >&6
20390 echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6
20395 echo "$as_me:$LINENO: result: no" >&5
20396 echo "${ECHO_T}no" >&6
20403 # The else clause should only fire when bootstrapping the
20404 # libtool distribution, otherwise you forgot to ship ltmain.sh
20405 # with your package, and you will get complaints that there are
20406 # no rules to generate ltmain.sh.
20407 if test -f "$ltmain"; then
20408 # See if we are running on zsh, and set the options which allow our commands through
20409 # without removal of \ escapes.
20410 if test -n "${ZSH_VERSION+set}" ; then
20411 setopt NO_GLOB_SUBST
20413 # Now quote all the things that may contain metacharacters while being
20414 # careful not to overquote the AC_SUBSTed values. We take copies of the
20415 # variables and quote the copies for generation of the libtool script.
20416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20420 deplibs_check_method reload_flag reload_cmds need_locks \
20421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20422 lt_cv_sys_global_symbol_to_c_name_address \
20423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20424 old_postinstall_cmds old_postuninstall_cmds \
20428 lt_prog_compiler_wl_F77 \
20429 lt_prog_compiler_pic_F77 \
20430 lt_prog_compiler_static_F77 \
20431 lt_prog_compiler_no_builtin_flag_F77 \
20432 export_dynamic_flag_spec_F77 \
20433 thread_safe_flag_spec_F77 \
20434 whole_archive_flag_spec_F77 \
20435 enable_shared_with_static_runtimes_F77 \
20436 old_archive_cmds_F77 \
20437 old_archive_from_new_cmds_F77 \
20438 predep_objects_F77 \
20439 postdep_objects_F77 \
20442 compiler_lib_search_path_F77 \
20444 archive_expsym_cmds_F77 \
20445 postinstall_cmds_F77 \
20446 postuninstall_cmds_F77 \
20447 old_archive_from_expsyms_cmds_F77 \
20448 allow_undefined_flag_F77 \
20449 no_undefined_flag_F77 \
20450 export_symbols_cmds_F77 \
20451 hardcode_libdir_flag_spec_F77 \
20452 hardcode_libdir_flag_spec_ld_F77 \
20453 hardcode_libdir_separator_F77 \
20454 hardcode_automatic_F77 \
20456 module_expsym_cmds_F77 \
20457 lt_cv_prog_compiler_c_o_F77 \
20458 exclude_expsyms_F77 \
20459 include_expsyms_F77; do
20462 old_archive_cmds_F77 | \
20463 old_archive_from_new_cmds_F77 | \
20464 archive_cmds_F77 | \
20465 archive_expsym_cmds_F77 | \
20466 module_cmds_F77 | \
20467 module_expsym_cmds_F77 | \
20468 old_archive_from_expsyms_cmds_F77 | \
20469 export_symbols_cmds_F77 | \
20470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20471 postinstall_cmds | postuninstall_cmds | \
20472 old_postinstall_cmds | old_postuninstall_cmds | \
20473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20474 # Double-quote double-evaled strings.
20475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20484 *'\$0 --fallback-echo"')
20485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20491 cat <<__EOF__ >> "$cfgfile"
20492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20496 # Shell to use when invoking shell scripts.
20499 # Whether or not to build shared libraries.
20500 build_libtool_libs=$enable_shared
20502 # Whether or not to build static libraries.
20503 build_old_libs=$enable_static
20505 # Whether or not to add -lc for building shared libraries.
20506 build_libtool_need_lc=$archive_cmds_need_lc_F77
20508 # Whether or not to disallow shared libs when runtime libs are static
20509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20511 # Whether or not to optimize for fast installation.
20512 fast_install=$enable_fast_install
20515 host_alias=$host_alias
20518 # An echo program that does not interpret backslashes.
20523 AR_FLAGS=$lt_AR_FLAGS
20528 # A language-specific compiler.
20529 CC=$lt_compiler_F77
20531 # Is the compiler the GNU C compiler?
20537 # The linker used to build libraries.
20540 # Whether we need hard or soft links.
20543 # A BSD-compatible nm program.
20546 # A symbol stripping program
20549 # Used to examine libraries when file_magic_cmd begins "file"
20550 MAGIC_CMD=$MAGIC_CMD
20552 # Used on cygwin: DLL creation program.
20555 # Used on cygwin: object dumper.
20558 # Used on cygwin: assembler.
20561 # The name of the directory that contains temporary libtool files.
20564 # How to create reloadable object files.
20565 reload_flag=$lt_reload_flag
20566 reload_cmds=$lt_reload_cmds
20568 # How to pass a linker flag through the compiler.
20569 wl=$lt_lt_prog_compiler_wl_F77
20571 # Object file suffix (normally "o").
20572 objext="$ac_objext"
20574 # Old archive suffix (normally "a").
20577 # Shared library suffix (normally ".so").
20578 shrext_cmds='$shrext_cmds'
20580 # Executable file suffix (normally "").
20583 # Additional compiler flags for building library objects.
20584 pic_flag=$lt_lt_prog_compiler_pic_F77
20587 # What is the maximum length of a command?
20588 max_cmd_len=$lt_cv_sys_max_cmd_len
20590 # Does compiler simultaneously support -c and -o options?
20591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20593 # Must we lock files when doing compilation ?
20594 need_locks=$lt_need_locks
20596 # Do we need the lib prefix for modules?
20597 need_lib_prefix=$need_lib_prefix
20599 # Do we need a version for libraries?
20600 need_version=$need_version
20602 # Whether dlopen is supported.
20603 dlopen_support=$enable_dlopen
20605 # Whether dlopen of programs is supported.
20606 dlopen_self=$enable_dlopen_self
20608 # Whether dlopen of statically linked programs is supported.
20609 dlopen_self_static=$enable_dlopen_self_static
20611 # Compiler flag to prevent dynamic linking.
20612 link_static_flag=$lt_lt_prog_compiler_static_F77
20614 # Compiler flag to turn off builtin functions.
20615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20617 # Compiler flag to allow reflexive dlopens.
20618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20620 # Compiler flag to generate shared objects directly from archives.
20621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20623 # Compiler flag to generate thread-safe objects.
20624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20626 # Library versioning type.
20627 version_type=$version_type
20629 # Format of library name prefix.
20630 libname_spec=$lt_libname_spec
20632 # List of archive names. First name is the real one, the rest are links.
20633 # The last name is the one that the linker finds with -lNAME.
20634 library_names_spec=$lt_library_names_spec
20636 # The coded name of the library, if different from the real name.
20637 soname_spec=$lt_soname_spec
20639 # Commands used to build and install an old-style archive.
20641 old_archive_cmds=$lt_old_archive_cmds_F77
20642 old_postinstall_cmds=$lt_old_postinstall_cmds
20643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20645 # Create an old-style archive from a shared archive.
20646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20648 # Create a temporary old-style archive to link instead of a shared archive.
20649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20651 # Commands used to build and install a shared archive.
20652 archive_cmds=$lt_archive_cmds_F77
20653 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20654 postinstall_cmds=$lt_postinstall_cmds
20655 postuninstall_cmds=$lt_postuninstall_cmds
20657 # Commands used to build a loadable module (assumed same as above if empty)
20658 module_cmds=$lt_module_cmds_F77
20659 module_expsym_cmds=$lt_module_expsym_cmds_F77
20661 # Commands to strip libraries.
20662 old_striplib=$lt_old_striplib
20663 striplib=$lt_striplib
20665 # Dependencies to place before the objects being linked to create a
20667 predep_objects=$lt_predep_objects_F77
20669 # Dependencies to place after the objects being linked to create a
20671 postdep_objects=$lt_postdep_objects_F77
20673 # Dependencies to place before the objects being linked to create a
20675 predeps=$lt_predeps_F77
20677 # Dependencies to place after the objects being linked to create a
20679 postdeps=$lt_postdeps_F77
20681 # The library search path used internally by the compiler when linking
20682 # a shared library.
20683 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20685 # Method to check whether dependent libraries are shared objects.
20686 deplibs_check_method=$lt_deplibs_check_method
20688 # Command to use when deplibs_check_method == file_magic.
20689 file_magic_cmd=$lt_file_magic_cmd
20691 # Flag that allows shared libraries with undefined symbols to be built.
20692 allow_undefined_flag=$lt_allow_undefined_flag_F77
20694 # Flag that forces no undefined symbols.
20695 no_undefined_flag=$lt_no_undefined_flag_F77
20697 # Commands used to finish a libtool library installation in a directory.
20698 finish_cmds=$lt_finish_cmds
20700 # Same as above, but a single script fragment to be evaled but not shown.
20701 finish_eval=$lt_finish_eval
20703 # Take the output of nm and produce a listing of raw symbols and C names.
20704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20706 # Transform the output of nm in a proper C declaration
20707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20709 # Transform the output of nm in a C name address pair
20710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20712 # This is the shared library runtime path variable.
20713 runpath_var=$runpath_var
20715 # This is the shared library path variable.
20716 shlibpath_var=$shlibpath_var
20718 # Is shlibpath searched before the hard-coded library search path?
20719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20721 # How to hardcode a shared library path into an executable.
20722 hardcode_action=$hardcode_action_F77
20724 # Whether we should hardcode library paths into libraries.
20725 hardcode_into_libs=$hardcode_into_libs
20727 # Flag to hardcode \$libdir into a binary during linking.
20728 # This must work even if \$libdir does not exist.
20729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20731 # If ld is used when linking, flag to hardcode \$libdir into
20732 # a binary during linking. This must work even if \$libdir does
20734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20736 # Whether we need a single -rpath flag with a separated argument.
20737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20740 # resulting binary.
20741 hardcode_direct=$hardcode_direct_F77
20743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20744 # resulting binary.
20745 hardcode_minus_L=$hardcode_minus_L_F77
20747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20748 # the resulting binary.
20749 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20751 # Set to yes if building a shared library automatically hardcodes DIR into the library
20752 # and all subsequent libraries and executables linked against it.
20753 hardcode_automatic=$hardcode_automatic_F77
20755 # Variables whose values should be saved in libtool wrapper scripts and
20756 # restored at relink time.
20757 variables_saved_for_relink="$variables_saved_for_relink"
20759 # Whether libtool must link a program against all its dependency libraries.
20760 link_all_deplibs=$link_all_deplibs_F77
20762 # Compile-time system search path for libraries
20763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20765 # Run-time system search path for libraries
20766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20768 # Fix the shell variable \$srcfile for the compiler.
20769 fix_srcfile_path="$fix_srcfile_path_F77"
20771 # Set to yes if exported symbols are required.
20772 always_export_symbols=$always_export_symbols_F77
20774 # The commands to list exported symbols.
20775 export_symbols_cmds=$lt_export_symbols_cmds_F77
20777 # The commands to extract the exported symbol list from a shared archive.
20778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20780 # Symbols that should not be listed in the preloaded symbols.
20781 exclude_expsyms=$lt_exclude_expsyms_F77
20783 # Symbols that must always be exported.
20784 include_expsyms=$lt_include_expsyms_F77
20786 # ### END LIBTOOL TAG CONFIG: $tagname
20792 # If there is no Makefile yet, we rely on a make rule to execute
20793 # `config.status --recheck' to rerun these tests and create the
20794 # libtool script then.
20795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20796 if test -f "$ltmain_in"; then
20797 test -f Makefile && make "$ltmain"
20803 ac_cpp='$CPP $CPPFLAGS'
20804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20816 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20818 ac_cpp='$CPP $CPPFLAGS'
20819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824 # Source file extension for Java test sources.
20827 # Object file extension for compiled Java test sources.
20831 # Code to be used in simple compile tests
20832 lt_simple_compile_test_code="class foo {}\n"
20834 # Code to be used in simple link tests
20835 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20839 # If no C compiler was specified, use CC.
20842 # Allow CC to be a program name with arguments.
20846 # Allow CC to be a program name with arguments.
20852 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20853 archive_cmds_need_lc_GCJ=no
20856 lt_prog_compiler_no_builtin_flag_GCJ=
20858 if test "$GCC" = yes; then
20859 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20862 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20863 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20864 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 lt_cv_prog_compiler_rtti_exceptions=no
20868 ac_outfile=conftest.$ac_objext
20869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20870 lt_compiler_flag="-fno-rtti -fno-exceptions"
20871 # Insert the option either (1) after the last *FLAGS variable, or
20872 # (2) before a word containing "conftest.", or (3) at the end.
20873 # Note that $ac_compile itself does not contain backslashes and begins
20874 # with a dollar sign (not a hyphen), so the echo should work correctly.
20875 # The option is referenced via a variable to avoid confusing sed.
20876 lt_compile=`echo "$ac_compile" | $SED \
20877 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20879 -e 's:$: $lt_compiler_flag:'`
20880 (eval echo "\"\$as_me:20880: $lt_compile\"" >&5)
20881 (eval "$lt_compile" 2>conftest.err)
20883 cat conftest.err >&5
20884 echo "$as_me:20884: \$? = $ac_status" >&5
20885 if (exit $ac_status) && test -s "$ac_outfile"; then
20886 # The compiler can only warn and ignore the option if not recognized
20887 # So say no if there are warnings
20888 if test ! -s conftest.err; then
20889 lt_cv_prog_compiler_rtti_exceptions=yes
20895 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20896 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20898 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20899 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20906 lt_prog_compiler_wl_GCJ=
20907 lt_prog_compiler_pic_GCJ=
20908 lt_prog_compiler_static_GCJ=
20910 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20911 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20913 if test "$GCC" = yes; then
20914 lt_prog_compiler_wl_GCJ='-Wl,'
20915 lt_prog_compiler_static_GCJ='-static'
20919 # All AIX code is PIC.
20920 if test "$host_cpu" = ia64; then
20921 # AIX 5 now supports IA64 processor
20922 lt_prog_compiler_static_GCJ='-Bstatic'
20927 # FIXME: we need at least 68020 code to build shared libraries, but
20928 # adding the `-m68020' flag to GCC prevents building anything better,
20930 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20933 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20934 # PIC is the default for these OSes.
20937 mingw* | pw32* | os2*)
20938 # This hack is so that the source file can tell whether it is being
20939 # built for inclusion in a dll (and should export symbols for example).
20940 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20943 darwin* | rhapsody*)
20944 # PIC is the default on this platform
20945 # Common symbols not allowed in MH_DYLIB files
20946 lt_prog_compiler_pic_GCJ='-fno-common'
20950 # Just because we use GCC doesn't mean we suddenly get shared libraries
20951 # on systems that don't support them.
20952 lt_prog_compiler_can_build_shared_GCJ=no
20957 if test -d /usr/nec; then
20958 lt_prog_compiler_pic_GCJ=-Kconform_pic
20963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20964 # not for PA HP-UX.
20965 case "$host_cpu" in
20970 lt_prog_compiler_pic_GCJ='-fPIC'
20976 lt_prog_compiler_pic_GCJ='-fPIC'
20980 # PORTME Check for flag to pass linker flags through the system compiler.
20983 lt_prog_compiler_wl_GCJ='-Wl,'
20984 if test "$host_cpu" = ia64; then
20985 # AIX 5 now supports IA64 processor
20986 lt_prog_compiler_static_GCJ='-Bstatic'
20988 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20992 # PIC is the default on this platform
20993 # Common symbols not allowed in MH_DYLIB files
20994 case "$cc_basename" in
20996 lt_prog_compiler_pic_GCJ='-qnocommon'
20997 lt_prog_compiler_wl_GCJ='-Wl,'
21002 mingw* | pw32* | os2*)
21003 # This hack is so that the source file can tell whether it is being
21004 # built for inclusion in a dll (and should export symbols for example).
21005 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21008 hpux9* | hpux10* | hpux11*)
21009 lt_prog_compiler_wl_GCJ='-Wl,'
21010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21011 # not for PA HP-UX.
21012 case "$host_cpu" in
21017 lt_prog_compiler_pic_GCJ='+Z'
21020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21021 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21024 irix5* | irix6* | nonstopux*)
21025 lt_prog_compiler_wl_GCJ='-Wl,'
21026 # PIC (with -KPIC) is the default.
21027 lt_prog_compiler_static_GCJ='-non_shared'
21031 lt_prog_compiler_pic_GCJ='-KPIC'
21032 lt_prog_compiler_static_GCJ='-Bstatic'
21038 lt_prog_compiler_wl_GCJ='-Wl,'
21039 lt_prog_compiler_pic_GCJ='-KPIC'
21040 lt_prog_compiler_static_GCJ='-static'
21043 lt_prog_compiler_wl_GCJ='-Wl,'
21044 # All Alpha code is PIC.
21045 lt_prog_compiler_static_GCJ='-non_shared'
21050 osf3* | osf4* | osf5*)
21051 lt_prog_compiler_wl_GCJ='-Wl,'
21052 # All OSF/1 code is PIC.
21053 lt_prog_compiler_static_GCJ='-non_shared'
21057 lt_prog_compiler_pic_GCJ='-Kpic'
21058 lt_prog_compiler_static_GCJ='-dn'
21062 lt_prog_compiler_wl_GCJ='-Wl,'
21063 lt_prog_compiler_pic_GCJ='-KPIC'
21064 lt_prog_compiler_static_GCJ='-Bstatic'
21068 lt_prog_compiler_wl_GCJ='-Qoption ld '
21069 lt_prog_compiler_pic_GCJ='-PIC'
21070 lt_prog_compiler_static_GCJ='-Bstatic'
21073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21074 lt_prog_compiler_wl_GCJ='-Wl,'
21075 lt_prog_compiler_pic_GCJ='-KPIC'
21076 lt_prog_compiler_static_GCJ='-Bstatic'
21080 if test -d /usr/nec ;then
21081 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21082 lt_prog_compiler_static_GCJ='-Bstatic'
21087 lt_prog_compiler_pic_GCJ='-pic'
21088 lt_prog_compiler_static_GCJ='-Bstatic'
21092 lt_prog_compiler_can_build_shared_GCJ=no
21097 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21098 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21101 # Check to make sure the PIC flag actually works.
21103 if test -n "$lt_prog_compiler_pic_GCJ"; then
21105 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21107 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 lt_prog_compiler_pic_works_GCJ=no
21111 ac_outfile=conftest.$ac_objext
21112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21113 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21114 # Insert the option either (1) after the last *FLAGS variable, or
21115 # (2) before a word containing "conftest.", or (3) at the end.
21116 # Note that $ac_compile itself does not contain backslashes and begins
21117 # with a dollar sign (not a hyphen), so the echo should work correctly.
21118 # The option is referenced via a variable to avoid confusing sed.
21119 lt_compile=`echo "$ac_compile" | $SED \
21120 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21122 -e 's:$: $lt_compiler_flag:'`
21123 (eval echo "\"\$as_me:21123: $lt_compile\"" >&5)
21124 (eval "$lt_compile" 2>conftest.err)
21126 cat conftest.err >&5
21127 echo "$as_me:21127: \$? = $ac_status" >&5
21128 if (exit $ac_status) && test -s "$ac_outfile"; then
21129 # The compiler can only warn and ignore the option if not recognized
21130 # So say no if there are warnings
21131 if test ! -s conftest.err; then
21132 lt_prog_compiler_pic_works_GCJ=yes
21138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21139 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21141 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21142 case $lt_prog_compiler_pic_GCJ in
21144 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21147 lt_prog_compiler_pic_GCJ=
21148 lt_prog_compiler_can_build_shared_GCJ=no
21153 # For platforms which do not support PIC, -DPIC is meaningless:
21155 lt_prog_compiler_pic_GCJ=
21158 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21164 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 lt_cv_prog_compiler_c_o_GCJ=no
21168 $rm -r conftest 2>/dev/null
21172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21174 lt_compiler_flag="-o out/conftest2.$ac_objext"
21175 # Insert the option either (1) after the last *FLAGS variable, or
21176 # (2) before a word containing "conftest.", or (3) at the end.
21177 # Note that $ac_compile itself does not contain backslashes and begins
21178 # with a dollar sign (not a hyphen), so the echo should work correctly.
21179 lt_compile=`echo "$ac_compile" | $SED \
21180 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21182 -e 's:$: $lt_compiler_flag:'`
21183 (eval echo "\"\$as_me:21183: $lt_compile\"" >&5)
21184 (eval "$lt_compile" 2>out/conftest.err)
21186 cat out/conftest.err >&5
21187 echo "$as_me:21187: \$? = $ac_status" >&5
21188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21190 # The compiler can only warn and ignore the option if not recognized
21191 # So say no if there are warnings
21192 if test ! -s out/conftest.err; then
21193 lt_cv_prog_compiler_c_o_GCJ=yes
21198 # SGI C++ compiler will create directory out/ii_files/ for
21199 # template instantiation
21200 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21201 $rm out/* && rmdir out
21207 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21208 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21211 hard_links="nottested"
21212 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21213 # do not overwrite the value of need_locks provided by the user
21214 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21215 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21220 ln conftest.a conftest.b 2>&5 || hard_links=no
21221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21222 echo "$as_me:$LINENO: result: $hard_links" >&5
21223 echo "${ECHO_T}$hard_links" >&6
21224 if test "$hard_links" = no; then
21225 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21226 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21233 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21234 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21237 allow_undefined_flag_GCJ=
21238 enable_shared_with_static_runtimes_GCJ=no
21240 archive_expsym_cmds_GCJ=
21241 old_archive_From_new_cmds_GCJ=
21242 old_archive_from_expsyms_cmds_GCJ=
21243 export_dynamic_flag_spec_GCJ=
21244 whole_archive_flag_spec_GCJ=
21245 thread_safe_flag_spec_GCJ=
21246 hardcode_libdir_flag_spec_GCJ=
21247 hardcode_libdir_flag_spec_ld_GCJ=
21248 hardcode_libdir_separator_GCJ=
21249 hardcode_direct_GCJ=no
21250 hardcode_minus_L_GCJ=no
21251 hardcode_shlibpath_var_GCJ=unsupported
21252 link_all_deplibs_GCJ=unknown
21253 hardcode_automatic_GCJ=no
21255 module_expsym_cmds_GCJ=
21256 always_export_symbols_GCJ=no
21257 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21258 # include_expsyms should be a list of space-separated symbols to be *always*
21259 # included in the symbol list
21260 include_expsyms_GCJ=
21261 # exclude_expsyms can be an extended regexp of symbols to exclude
21262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21264 # as well as any symbol that contains `d'.
21265 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21267 # platforms (ab)use it in PIC code, but their linkers get confused if
21268 # the symbol is explicitly referenced. Since portable code cannot
21269 # rely on this symbol name, it's probably fine to never include it in
21270 # preloaded symbol tables.
21271 extract_expsyms_cmds=
21274 cygwin* | mingw* | pw32*)
21275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21276 # When not using gcc, we currently assume that we are using
21277 # Microsoft Visual C++.
21278 if test "$GCC" != yes; then
21288 if test "$with_gnu_ld" = yes; then
21289 # If archive_cmds runs LD, not CC, wlarc should be empty
21292 # See if GNU ld supports shared libraries.
21294 aix3* | aix4* | aix5*)
21295 # On AIX/PPC, the GNU linker is very broken
21296 if test "$host_cpu" != ia64; then
21300 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21301 *** to be unable to reliably create shared libraries on AIX.
21302 *** Therefore, libtool is disabling shared libraries support. If you
21303 *** really care for shared libraries, you may want to modify your PATH
21304 *** so that a non-GNU linker is found, and then restart.
21311 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)'
21312 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21313 hardcode_minus_L_GCJ=yes
21315 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21316 # that the semantics of dynamic libraries on AmigaOS, at least up
21317 # to version 4, is to share data among multiple programs linked
21318 # with the same dynamic library. Since this doesn't match the
21319 # behavior of shared libraries on other platforms, we can't use
21325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21326 allow_undefined_flag_GCJ=unsupported
21327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21328 # support --undefined. This deserves some investigation. FIXME
21329 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21335 cygwin* | mingw* | pw32*)
21336 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21337 # as there is no search path for DLLs.
21338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21339 allow_undefined_flag_GCJ=unsupported
21340 always_export_symbols_GCJ=no
21341 enable_shared_with_static_runtimes_GCJ=yes
21342 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21344 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21345 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21346 # If the export-symbols file already is a .def file (1st line
21347 # is EXPORTS), use it as is; otherwise, prepend...
21348 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21349 cp $export_symbols $output_objdir/$soname.def;
21351 echo EXPORTS > $output_objdir/$soname.def;
21352 cat $export_symbols >> $output_objdir/$soname.def;
21354 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21362 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21365 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21366 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21371 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21376 *** create shared libraries on Solaris systems. Therefore, libtool
21377 *** is disabling shared libraries support. We urge you to upgrade GNU
21378 *** binutils to release 2.9.1 or newer. Another option is to modify
21379 *** your PATH or compiler configuration so that the native linker is
21380 *** used, and then restart.
21383 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21384 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21385 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21392 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21394 hardcode_direct_GCJ=yes
21395 hardcode_shlibpath_var_GCJ=no
21399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21400 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21401 archive_cmds_GCJ="$tmp_archive_cmds"
21402 supports_anon_versioning=no
21403 case `$LD -v 2>/dev/null` in
21404 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21405 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21406 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21407 *\ 2.11.*) ;; # other 2.11 versions
21408 *) supports_anon_versioning=yes ;;
21410 if test $supports_anon_versioning = yes; then
21411 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21412 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21413 $echo "local: *; };" >> $output_objdir/$libname.ver~
21414 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21416 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21426 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21433 if test "$ld_shlibs_GCJ" = yes; then
21434 runpath_var=LD_RUN_PATH
21435 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21436 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21437 # ancient GNU ld didn't support --whole-archive et. al.
21438 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21439 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21441 whole_archive_flag_spec_GCJ=
21445 # PORTME fill in a description of your system's linker (not GNU ld)
21448 allow_undefined_flag_GCJ=unsupported
21449 always_export_symbols_GCJ=yes
21450 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'
21451 # Note: this linker hardcodes the directories in LIBPATH if there
21452 # are no directories specified by -L.
21453 hardcode_minus_L_GCJ=yes
21454 if test "$GCC" = yes && test -z "$link_static_flag"; then
21455 # Neither direct hardcoding nor static linking is supported with a
21457 hardcode_direct_GCJ=unsupported
21462 if test "$host_cpu" = ia64; then
21463 # On IA64, the linker does run time linking by default, so we don't
21464 # have to do anything special.
21465 aix_use_runtimelinking=no
21466 exp_sym_flag='-Bexport'
21469 # If we're using GNU nm, then we don't want the "-C" option.
21470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21471 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21472 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'
21474 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'
21476 aix_use_runtimelinking=no
21478 # Test if we are trying to use run time linking or normal
21479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21480 # need to do runtime linking.
21481 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21482 for ld_flag in $LDFLAGS; do
21483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21484 aix_use_runtimelinking=yes
21490 exp_sym_flag='-bexport'
21491 no_entry_flag='-bnoentry'
21494 # When large executables or shared objects are built, AIX ld can
21495 # have problems creating the table of contents. If linking a library
21496 # or program results in "error TOC overflow" add -mminimal-toc to
21497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21500 archive_cmds_GCJ=''
21501 hardcode_direct_GCJ=yes
21502 hardcode_libdir_separator_GCJ=':'
21503 link_all_deplibs_GCJ=yes
21505 if test "$GCC" = yes; then
21506 case $host_os in aix4.012|aix4.012.*)
21507 # We only want to do this on AIX 4.2 and lower, the check
21508 # below for broken collect2 doesn't work under 4.3+
21509 collect2name=`${CC} -print-prog-name=collect2`
21510 if test -f "$collect2name" && \
21511 strings "$collect2name" | grep resolve_lib_name >/dev/null
21513 # We have reworked collect2
21514 hardcode_direct_GCJ=yes
21516 # We have old collect2
21517 hardcode_direct_GCJ=unsupported
21518 # It fails to find uninstalled libraries when the uninstalled
21519 # path is not listed in the libpath. Setting hardcode_minus_L
21520 # to unsupported forces relinking
21521 hardcode_minus_L_GCJ=yes
21522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21523 hardcode_libdir_separator_GCJ=
21526 shared_flag='-shared'
21529 if test "$host_cpu" = ia64; then
21530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21531 # chokes on -Wl,-G. The following line is correct:
21534 if test "$aix_use_runtimelinking" = yes; then
21535 shared_flag='${wl}-G'
21537 shared_flag='${wl}-bM:SRE'
21542 # It seems that -bexpall does not export symbols beginning with
21543 # underscore (_), so it is better to generate a list of symbols to export.
21544 always_export_symbols_GCJ=yes
21545 if test "$aix_use_runtimelinking" = yes; then
21546 # Warning - without using the other runtime loading flags (-brtl),
21547 # -berok will link without error, but may produce a broken library.
21548 allow_undefined_flag_GCJ='-berok'
21549 # Determine the default libpath from the value encoded in an empty executable.
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21565 rm -f conftest.$ac_objext conftest$ac_exeext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21567 (eval $ac_link) 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21590 # Check for a 64-bit object if we didn't find anything.
21591 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; }
21594 echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21598 rm -f conftest.err conftest.$ac_objext \
21599 conftest$ac_exeext conftest.$ac_ext
21600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21602 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21603 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"
21605 if test "$host_cpu" = ia64; then
21606 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21607 allow_undefined_flag_GCJ="-z nodefs"
21608 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"
21610 # Determine the default libpath from the value encoded in an empty executable.
21611 cat >conftest.$ac_ext <<_ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21626 rm -f conftest.$ac_objext conftest$ac_exeext
21627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21628 (eval $ac_link) 2>conftest.er1
21630 grep -v '^ *+' conftest.er1 >conftest.err
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_c_werror_flag"
21636 || test ! -s conftest.err'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest$ac_exeext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21651 # Check for a 64-bit object if we didn't find anything.
21652 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; }
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21659 rm -f conftest.err conftest.$ac_objext \
21660 conftest$ac_exeext conftest.$ac_ext
21661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21663 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21664 # Warning - without using the other run time loading flags,
21665 # -berok will link without error, but may produce a broken library.
21666 no_undefined_flag_GCJ=' ${wl}-bernotok'
21667 allow_undefined_flag_GCJ=' ${wl}-berok'
21668 # -bexpall does not export symbols beginning with underscore (_)
21669 always_export_symbols_GCJ=yes
21670 # Exported symbols can be pulled into shared objects from archives
21671 whole_archive_flag_spec_GCJ=' '
21672 archive_cmds_need_lc_GCJ=yes
21673 # This is similar to how AIX traditionally builds it's shared libraries.
21674 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'
21680 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)'
21681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21682 hardcode_minus_L_GCJ=yes
21683 # see comment about different semantics on the GNU ld section
21688 export_dynamic_flag_spec_GCJ=-rdynamic
21691 cygwin* | mingw* | pw32*)
21692 # When not using gcc, we currently assume that we are using
21693 # Microsoft Visual C++.
21694 # hardcode_libdir_flag_spec is actually meaningless, as there is
21695 # no search path for DLLs.
21696 hardcode_libdir_flag_spec_GCJ=' '
21697 allow_undefined_flag_GCJ=unsupported
21698 # Tell ltmain to make .lib files, not .a files.
21700 # Tell ltmain to make .dll files, not .so files.
21702 # FIXME: Setting linknames here is a bad hack.
21703 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21704 # The linker will automatically build a .lib file if we build a DLL.
21705 old_archive_From_new_cmds_GCJ='true'
21706 # FIXME: Should let the user specify the lib program.
21707 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21708 fix_srcfile_path='`cygpath -w "$srcfile"`'
21709 enable_shared_with_static_runtimes_GCJ=yes
21712 darwin* | rhapsody*)
21714 rhapsody* | darwin1.[012])
21715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21718 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21719 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21721 case ${MACOSX_DEPLOYMENT_TARGET} in
21723 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21726 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21732 archive_cmds_need_lc_GCJ=no
21733 hardcode_direct_GCJ=no
21734 hardcode_automatic_GCJ=yes
21735 hardcode_shlibpath_var_GCJ=unsupported
21736 whole_archive_flag_spec_GCJ=''
21737 link_all_deplibs_GCJ=yes
21738 if test "$GCC" = yes ; then
21739 output_verbose_link_cmd='echo'
21740 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21741 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21743 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}'
21744 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}'
21746 case "$cc_basename" in
21748 output_verbose_link_cmd='echo'
21749 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21750 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21751 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21752 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}'
21753 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}'
21763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21765 hardcode_shlibpath_var_GCJ=no
21772 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21773 # support. Future versions do this automatically, but an explicit c++rt0.o
21774 # does not break anything, and helps significantly (at the cost of a little
21777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21778 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21779 hardcode_direct_GCJ=yes
21780 hardcode_shlibpath_var_GCJ=no
21783 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21786 hardcode_direct_GCJ=yes
21787 hardcode_minus_L_GCJ=yes
21788 hardcode_shlibpath_var_GCJ=no
21791 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21792 freebsd* | kfreebsd*-gnu)
21793 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21795 hardcode_direct_GCJ=yes
21796 hardcode_shlibpath_var_GCJ=no
21800 if test "$GCC" = yes; then
21801 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'
21803 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'
21805 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21806 hardcode_libdir_separator_GCJ=:
21807 hardcode_direct_GCJ=yes
21809 # hardcode_minus_L: Not really in the search PATH,
21810 # but as the default location of the library.
21811 hardcode_minus_L_GCJ=yes
21812 export_dynamic_flag_spec_GCJ='${wl}-E'
21816 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21817 case "$host_cpu" in
21819 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21822 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21826 case "$host_cpu" in
21828 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21831 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21835 if test "$with_gnu_ld" = no; then
21836 case "$host_cpu" in
21838 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21839 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21840 hardcode_libdir_separator_GCJ=:
21841 hardcode_direct_GCJ=no
21842 hardcode_shlibpath_var_GCJ=no
21845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21846 hardcode_direct_GCJ=no
21847 hardcode_shlibpath_var_GCJ=no
21849 # hardcode_minus_L: Not really in the search PATH,
21850 # but as the default location of the library.
21851 hardcode_minus_L_GCJ=yes
21854 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21855 hardcode_libdir_separator_GCJ=:
21856 hardcode_direct_GCJ=yes
21857 export_dynamic_flag_spec_GCJ='${wl}-E'
21859 # hardcode_minus_L: Not really in the search PATH,
21860 # but as the default location of the library.
21861 hardcode_minus_L_GCJ=yes
21867 irix5* | irix6* | nonstopux*)
21868 if test "$GCC" = yes; then
21869 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'
21871 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'
21872 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21874 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21875 hardcode_libdir_separator_GCJ=:
21876 link_all_deplibs_GCJ=yes
21880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21881 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21883 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21885 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886 hardcode_direct_GCJ=yes
21887 hardcode_shlibpath_var_GCJ=no
21891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21892 hardcode_direct_GCJ=yes
21893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21894 hardcode_libdir_separator_GCJ=:
21895 hardcode_shlibpath_var_GCJ=no
21899 hardcode_direct_GCJ=yes
21900 hardcode_shlibpath_var_GCJ=no
21901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21902 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21903 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21905 export_dynamic_flag_spec_GCJ='${wl}-E'
21908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21913 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21914 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21922 hardcode_minus_L_GCJ=yes
21923 allow_undefined_flag_GCJ=unsupported
21924 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'
21925 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21929 if test "$GCC" = yes; then
21930 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21931 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'
21933 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21934 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'
21936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21937 hardcode_libdir_separator_GCJ=:
21940 osf4* | osf5*) # as osf3* with the addition of -msym flag
21941 if test "$GCC" = yes; then
21942 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21943 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'
21944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21946 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21947 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'
21948 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~
21949 $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'
21951 # Both c and cxx compiler support -rpath directly
21952 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21954 hardcode_libdir_separator_GCJ=:
21958 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21959 hardcode_shlibpath_var_GCJ=no
21960 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21961 runpath_var=LD_RUN_PATH
21962 hardcode_runpath_var=yes
21966 no_undefined_flag_GCJ=' -z text'
21967 if test "$GCC" = yes; then
21968 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21969 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21970 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21972 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21973 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21976 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21977 hardcode_shlibpath_var_GCJ=no
21979 solaris2.[0-5] | solaris2.[0-5].*) ;;
21980 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21981 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21983 link_all_deplibs_GCJ=yes
21987 if test "x$host_vendor" = xsequent; then
21988 # Use $CC to link under sequent, because it throws in some extra .o
21989 # files that make .init and .fini sections work.
21990 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21992 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21995 hardcode_direct_GCJ=yes
21996 hardcode_minus_L_GCJ=yes
21997 hardcode_shlibpath_var_GCJ=no
22001 case $host_vendor in
22003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22004 hardcode_direct_GCJ=yes # is this really true???
22007 ## LD is ld it makes a PLAMLIB
22008 ## CC just makes a GrossModule.
22009 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22010 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22011 hardcode_direct_GCJ=no
22014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22015 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22018 runpath_var='LD_RUN_PATH'
22019 hardcode_shlibpath_var_GCJ=no
22023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22024 hardcode_shlibpath_var_GCJ=no
22025 export_dynamic_flag_spec_GCJ='-Bexport'
22029 if test -d /usr/nec; then
22030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031 hardcode_shlibpath_var_GCJ=no
22032 runpath_var=LD_RUN_PATH
22033 hardcode_runpath_var=yes
22039 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22040 hardcode_direct_GCJ=yes
22041 hardcode_minus_L_GCJ=no
22042 hardcode_shlibpath_var_GCJ=no
22043 hardcode_runpath_var=yes
22044 runpath_var=LD_RUN_PATH
22047 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22048 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22049 if test "$GCC" = yes; then
22050 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22052 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22054 runpath_var='LD_RUN_PATH'
22055 hardcode_shlibpath_var_GCJ=no
22059 no_undefined_flag_GCJ=' -z text'
22060 # $CC -shared without GNU ld will not create a library from C++
22061 # object files and a static libstdc++, better avoid it by now
22062 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22063 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22065 hardcode_libdir_flag_spec_GCJ=
22066 hardcode_shlibpath_var_GCJ=no
22067 runpath_var='LD_RUN_PATH'
22071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22073 hardcode_shlibpath_var_GCJ=no
22082 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22083 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22084 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22087 if test "$GCC" = yes; then
22088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22092 # Do we need to explicitly link libc?
22094 case "x$archive_cmds_need_lc_GCJ" in
22096 # Assume -lc should be added
22097 archive_cmds_need_lc_GCJ=yes
22099 if test "$enable_shared" = yes && test "$GCC" = yes; then
22100 case $archive_cmds_GCJ in
22102 # FIXME: we may have to deal with multi-command sequences.
22105 # Test whether the compiler implicitly links with -lc since on some
22106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22107 # to ld, don't add -lc before -lgcc.
22108 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22109 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22114 (eval $ac_compile) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } 2>conftest.err; then
22120 libobjs=conftest.$ac_objext
22122 wl=$lt_prog_compiler_wl_GCJ
22128 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22129 allow_undefined_flag_GCJ=
22130 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22131 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }
22136 archive_cmds_need_lc_GCJ=no
22138 archive_cmds_need_lc_GCJ=yes
22140 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22142 cat conftest.err 1>&5
22145 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22146 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22153 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22154 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22155 library_names_spec=
22156 libname_spec='lib$name'
22160 postuninstall_cmds=
22164 shlibpath_overrides_runpath=unknown
22166 dynamic_linker="$host_os ld.so"
22167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22168 if test "$GCC" = yes; then
22169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22171 # if the path contains ";" then we assume it to be the separator
22172 # otherwise default to the standard path separator (i.e. ":") - it is
22173 # assumed that no part of a normal pathname contains ";" but that should
22174 # okay in the real world where ";" in dirpaths is itself problematic.
22175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22182 need_lib_prefix=unknown
22183 hardcode_into_libs=no
22185 # when you set need_version to no, make sure it does not cause -set_version
22186 # flags to be left without arguments
22187 need_version=unknown
22192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22193 shlibpath_var=LIBPATH
22195 # AIX 3 has no versioning support, so we append a major version to the name.
22196 soname_spec='${libname}${release}${shared_ext}$major'
22203 hardcode_into_libs=yes
22204 if test "$host_cpu" = ia64; then
22205 # AIX 5 supports IA64
22206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22207 shlibpath_var=LD_LIBRARY_PATH
22209 # With GCC up to 2.95.x, collect2 would create an import file
22210 # for dependence libraries. The import file would start with
22211 # the line `#! .'. This would cause the generated library to
22212 # depend on `.', always an invalid library. This was fixed in
22213 # development snapshots of GCC prior to 3.0.
22215 aix4 | aix4.[01] | aix4.[01].*)
22216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22221 can_build_shared=no
22225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22226 # soname into executable. Probably we can add versioning support to
22227 # collect2, so additional links can be useful in future.
22228 if test "$aix_use_runtimelinking" = yes; then
22229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22230 # instead of lib<name>.a to let people know that these are not
22231 # typical AIX shared libraries.
22232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22234 # We preserve .a as extension for shared libraries through AIX4.2
22235 # and later when we are not doing run time linking.
22236 library_names_spec='${libname}${release}.a $libname.a'
22237 soname_spec='${libname}${release}${shared_ext}$major'
22239 shlibpath_var=LIBPATH
22244 library_names_spec='$libname.ixlibrary $libname.a'
22245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22246 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'
22250 library_names_spec='${libname}${shared_ext}'
22251 dynamic_linker="$host_os ld.so"
22252 shlibpath_var=LIBRARY_PATH
22258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22259 soname_spec='${libname}${release}${shared_ext}$major'
22260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22261 shlibpath_var=LD_LIBRARY_PATH
22262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22264 # the default ld.so.conf also contains /usr/contrib/lib and
22265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22266 # libtool to hard-code these into programs
22269 cygwin* | mingw* | pw32*)
22270 version_type=windows
22275 case $GCC,$host_os in
22276 yes,cygwin* | yes,mingw* | yes,pw32*)
22277 library_names_spec='$libname.dll.a'
22278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22279 postinstall_cmds='base_file=`basename \${file}`~
22280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22281 dldir=$destdir/`dirname \$dlpath`~
22282 test -d \$dldir || mkdir -p \$dldir~
22283 $install_prog $dir/$dlname \$dldir/$dlname'
22284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22285 dlpath=$dir/\$dldll~
22287 shlibpath_overrides_runpath=yes
22291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22296 # MinGW DLLs use traditional 'lib' prefix
22297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22300 # It is most probably a Windows format PATH printed by
22301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22302 # path with ; separators, and with drive letters. We can handle the
22303 # drive letters (cygwin fileutils understands them), so leave them,
22304 # especially as we might pass files found there to a mingw objdump,
22305 # which wouldn't understand a cygwinified path. Ahh.
22306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22312 # pw32 DLLs use 'pw' prefix rather than 'lib'
22313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22322 dynamic_linker='Win32 ld.exe'
22323 # FIXME: first we should search . and the directory the executable is in
22327 darwin* | rhapsody*)
22328 dynamic_linker="$host_os dyld"
22329 version_type=darwin
22332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22333 soname_spec='${libname}${release}${major}$shared_ext'
22334 shlibpath_overrides_runpath=yes
22335 shlibpath_var=DYLD_LIBRARY_PATH
22336 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22338 if test "$GCC" = yes; then
22339 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"`
22341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22351 soname_spec='${libname}${release}${shared_ext}$major'
22352 shlibpath_var=LD_LIBRARY_PATH
22363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22364 soname_spec='${libname}${release}${shared_ext}$major'
22365 shlibpath_var=LD_LIBRARY_PATH
22366 shlibpath_overrides_runpath=no
22367 hardcode_into_libs=yes
22368 dynamic_linker='GNU ld.so'
22372 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22373 version_type=freebsd-$objformat
22374 case $version_type in
22376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22385 shlibpath_var=LD_LIBRARY_PATH
22388 shlibpath_overrides_runpath=yes
22390 freebsd3.01* | freebsdelf3.01*)
22391 shlibpath_overrides_runpath=yes
22392 hardcode_into_libs=yes
22395 shlibpath_overrides_runpath=no
22396 hardcode_into_libs=yes
22405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22406 soname_spec='${libname}${release}${shared_ext}$major'
22407 shlibpath_var=LD_LIBRARY_PATH
22408 hardcode_into_libs=yes
22411 hpux9* | hpux10* | hpux11*)
22412 # Give a soname corresponding to the major version so that dld.sl refuses to
22413 # link against other versions.
22417 case "$host_cpu" in
22420 hardcode_into_libs=yes
22421 dynamic_linker="$host_os dld.so"
22422 shlibpath_var=LD_LIBRARY_PATH
22423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 soname_spec='${libname}${release}${shared_ext}$major'
22426 if test "X$HPUX_IA64_MODE" = X32; then
22427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22435 hardcode_into_libs=yes
22436 dynamic_linker="$host_os dld.sl"
22437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440 soname_spec='${libname}${release}${shared_ext}$major'
22441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22446 dynamic_linker="$host_os dld.sl"
22447 shlibpath_var=SHLIB_PATH
22448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22450 soname_spec='${libname}${release}${shared_ext}$major'
22453 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22454 postinstall_cmds='chmod 555 $lib'
22457 irix5* | irix6* | nonstopux*)
22459 nonstopux*) version_type=nonstopux ;;
22461 if test "$lt_cv_prog_gnu_ld" = yes; then
22469 soname_spec='${libname}${release}${shared_ext}$major'
22470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22472 irix5* | nonstopux*)
22473 libsuff= shlibsuff=
22476 case $LD in # libtool.m4 will add one of these switches to LD
22477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22478 libsuff= shlibsuff= libmagic=32-bit;;
22479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22480 libsuff=32 shlibsuff=N32 libmagic=N32;;
22481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22482 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22483 *) libsuff= shlibsuff= libmagic=never-match;;
22487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22488 shlibpath_overrides_runpath=no
22489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22491 hardcode_into_libs=yes
22494 # No shared lib support for Linux oldld, aout, or coff.
22495 linux*oldld* | linux*aout* | linux*coff*)
22499 # This must be Linux ELF.
22504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505 soname_spec='${libname}${release}${shared_ext}$major'
22506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22507 shlibpath_var=LD_LIBRARY_PATH
22508 shlibpath_overrides_runpath=no
22509 # This implies no fast_install, which is unacceptable.
22510 # Some rework will be needed to allow for fast_install
22511 # before this can be enabled.
22512 hardcode_into_libs=yes
22514 # Append ld.so.conf contents to the search path
22515 if test -f /etc/ld.so.conf; then
22516 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22517 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22520 # We used to test for /lib/ld.so.1 and disable shared libraries on
22521 # powerpc, because MkLinux only supported shared libraries with the
22522 # GNU dynamic linker. Since this was broken with cross compilers,
22523 # most powerpc-linux boxes support dynamic linking these days and
22524 # people can always --disable-shared, the test was removed, and we
22525 # assume the GNU/Linux dynamic linker is in use.
22526 dynamic_linker='GNU/Linux ld.so'
22533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22534 soname_spec='${libname}${release}${shared_ext}$major'
22535 shlibpath_var=LD_LIBRARY_PATH
22536 shlibpath_overrides_runpath=no
22537 hardcode_into_libs=yes
22538 dynamic_linker='GNU ld.so'
22545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22548 dynamic_linker='NetBSD (a.out) ld.so'
22550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22551 soname_spec='${libname}${release}${shared_ext}$major'
22552 dynamic_linker='NetBSD ld.elf_so'
22554 shlibpath_var=LD_LIBRARY_PATH
22555 shlibpath_overrides_runpath=yes
22556 hardcode_into_libs=yes
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=yes
22570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22571 soname_spec='${libname}${release}${shared_ext}$major'
22572 shlibpath_var=LD_LIBRARY_PATH
22573 shlibpath_overrides_runpath=yes
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22582 shlibpath_var=LD_LIBRARY_PATH
22583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22585 openbsd2.[89] | openbsd2.[89].*)
22586 shlibpath_overrides_runpath=no
22589 shlibpath_overrides_runpath=yes
22593 shlibpath_overrides_runpath=yes
22598 libname_spec='$name'
22601 library_names_spec='$libname${shared_ext} $libname.a'
22602 dynamic_linker='OS/2 ld.exe'
22603 shlibpath_var=LIBPATH
22606 osf3* | osf4* | osf5*)
22610 soname_spec='${libname}${release}${shared_ext}$major'
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 shlibpath_var=LD_LIBRARY_PATH
22613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22619 soname_spec='${libname}${release}${shared_ext}$major'
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 shlibpath_var=LD_LIBRARY_PATH
22628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22629 soname_spec='${libname}${release}${shared_ext}$major'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=yes
22632 hardcode_into_libs=yes
22633 # ldd complains unless libraries are executable
22634 postinstall_cmds='chmod +x $lib'
22639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22641 shlibpath_var=LD_LIBRARY_PATH
22642 shlibpath_overrides_runpath=yes
22643 if test "$with_gnu_ld" = yes; then
22649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652 soname_spec='${libname}${release}${shared_ext}$major'
22653 shlibpath_var=LD_LIBRARY_PATH
22654 case $host_vendor in
22656 shlibpath_overrides_runpath=no
22658 export_dynamic_flag_spec='${wl}-Blargedynsym'
22659 runpath_var=LD_RUN_PATH
22667 shlibpath_overrides_runpath=no
22668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22674 if test -d /usr/nec ;then
22676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22677 soname_spec='$libname${shared_ext}.$major'
22678 shlibpath_var=LD_LIBRARY_PATH
22684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685 soname_spec='${libname}${release}${shared_ext}$major'
22686 shlibpath_var=LD_LIBRARY_PATH
22693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22694 echo "${ECHO_T}$dynamic_linker" >&6
22695 test "$dynamic_linker" = no && can_build_shared=no
22697 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22698 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22699 hardcode_action_GCJ=
22700 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22701 test -n "$runpath_var_GCJ" || \
22702 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22704 # We can hardcode non-existant directories.
22705 if test "$hardcode_direct_GCJ" != no &&
22706 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22707 # have to relink, otherwise we might link with an installed library
22708 # when we should be linking with a yet-to-be-installed one
22709 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22710 test "$hardcode_minus_L_GCJ" != no; then
22711 # Linking always hardcodes the temporary library directory.
22712 hardcode_action_GCJ=relink
22714 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22715 hardcode_action_GCJ=immediate
22718 # We cannot hardcode anything, or else we can only hardcode existing
22720 hardcode_action_GCJ=unsupported
22722 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22723 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22725 if test "$hardcode_action_GCJ" = relink; then
22726 # Fast installation is not supported
22727 enable_fast_install=no
22728 elif test "$shlibpath_overrides_runpath" = yes ||
22729 test "$enable_shared" = no; then
22730 # Fast installation is not necessary
22731 enable_fast_install=needless
22736 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22737 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22738 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22741 echo "$as_me:$LINENO: result: yes" >&5
22742 echo "${ECHO_T}yes" >&6
22744 # FIXME - insert some real tests, host_os isn't really good enough
22747 if test -n "$STRIP" ; then
22748 striplib="$STRIP -x"
22749 echo "$as_me:$LINENO: result: yes" >&5
22750 echo "${ECHO_T}yes" >&6
22752 echo "$as_me:$LINENO: result: no" >&5
22753 echo "${ECHO_T}no" >&6
22757 echo "$as_me:$LINENO: result: no" >&5
22758 echo "${ECHO_T}no" >&6
22763 if test "x$enable_dlopen" != xyes; then
22764 enable_dlopen=unknown
22765 enable_dlopen_self=unknown
22766 enable_dlopen_self_static=unknown
22773 lt_cv_dlopen="load_add_on"
22775 lt_cv_dlopen_self=yes
22779 lt_cv_dlopen="LoadLibrary"
22784 lt_cv_dlopen="dlopen"
22789 # if libdl is installed we need to link against it
22790 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22791 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22792 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 ac_check_lib_save_LIBS=$LIBS
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22804 /* Override any gcc2 internal prototype to avoid an error. */
22808 /* We use char because int might match the return type of a gcc2
22809 builtin and then its argument prototype would still apply. */
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22821 (eval $ac_link) 2>conftest.er1
22823 grep -v '^ *+' conftest.er1 >conftest.err
22825 cat conftest.err >&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
22828 { ac_try='test -z "$ac_c_werror_flag"
22829 || test ! -s conftest.err'
22830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831 (eval $ac_try) 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); }; } &&
22835 { ac_try='test -s conftest$ac_exeext'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_lib_dl_dlopen=yes
22843 echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_cv_lib_dl_dlopen=no
22848 rm -f conftest.err conftest.$ac_objext \
22849 conftest$ac_exeext conftest.$ac_ext
22850 LIBS=$ac_check_lib_save_LIBS
22852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22854 if test $ac_cv_lib_dl_dlopen = yes; then
22855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22858 lt_cv_dlopen="dyld"
22860 lt_cv_dlopen_self=yes
22867 echo "$as_me:$LINENO: checking for shl_load" >&5
22868 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22869 if test "${ac_cv_func_shl_load+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22872 cat >conftest.$ac_ext <<_ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22880 #define shl_load innocuous_shl_load
22882 /* System header to define __stub macros and hopefully few prototypes,
22883 which can conflict with char shl_load (); below.
22884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22885 <limits.h> exists even on freestanding compilers. */
22888 # include <limits.h>
22890 # include <assert.h>
22895 /* Override any gcc2 internal prototype to avoid an error. */
22900 /* We use char because int might match the return type of a gcc2
22901 builtin and then its argument prototype would still apply. */
22903 /* The GNU C library defines this for functions which it implements
22904 to always fail with ENOSYS. Some functions are actually named
22905 something starting with __ and the normal name is an alias. */
22906 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22909 char (*f) () = shl_load;
22918 return f != shl_load;
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22925 (eval $ac_link) 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } &&
22932 { ac_try='test -z "$ac_c_werror_flag"
22933 || test ! -s conftest.err'
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; } &&
22939 { ac_try='test -s conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_func_shl_load=yes
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ac_cv_func_shl_load=no
22952 rm -f conftest.err conftest.$ac_objext \
22953 conftest$ac_exeext conftest.$ac_ext
22955 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22956 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22957 if test $ac_cv_func_shl_load = yes; then
22958 lt_cv_dlopen="shl_load"
22960 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22961 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 ac_check_lib_save_LIBS=$LIBS
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22974 /* Override any gcc2 internal prototype to avoid an error. */
22978 /* We use char because int might match the return type of a gcc2
22979 builtin and then its argument prototype would still apply. */
22989 rm -f conftest.$ac_objext conftest$ac_exeext
22990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22991 (eval $ac_link) 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } &&
22998 { ac_try='test -z "$ac_c_werror_flag"
22999 || test ! -s conftest.err'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest$ac_exeext'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 ac_cv_lib_dld_shl_load=yes
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23016 ac_cv_lib_dld_shl_load=no
23018 rm -f conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23020 LIBS=$ac_check_lib_save_LIBS
23022 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23023 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23024 if test $ac_cv_lib_dld_shl_load = yes; then
23025 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23027 echo "$as_me:$LINENO: checking for dlopen" >&5
23028 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23029 if test "${ac_cv_func_dlopen+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23038 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23040 #define dlopen innocuous_dlopen
23042 /* System header to define __stub macros and hopefully few prototypes,
23043 which can conflict with char dlopen (); below.
23044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23045 <limits.h> exists even on freestanding compilers. */
23048 # include <limits.h>
23050 # include <assert.h>
23055 /* Override any gcc2 internal prototype to avoid an error. */
23060 /* We use char because int might match the return type of a gcc2
23061 builtin and then its argument prototype would still apply. */
23063 /* The GNU C library defines this for functions which it implements
23064 to always fail with ENOSYS. Some functions are actually named
23065 something starting with __ and the normal name is an alias. */
23066 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23069 char (*f) () = dlopen;
23078 return f != dlopen;
23083 rm -f conftest.$ac_objext conftest$ac_exeext
23084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23085 (eval $ac_link) 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -z "$ac_c_werror_flag"
23093 || test ! -s conftest.err'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; } &&
23099 { ac_try='test -s conftest$ac_exeext'
23100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; }; then
23105 ac_cv_func_dlopen=yes
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_cv_func_dlopen=no
23112 rm -f conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23115 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23116 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23117 if test $ac_cv_func_dlopen = yes; then
23118 lt_cv_dlopen="dlopen"
23120 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23121 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 ac_check_lib_save_LIBS=$LIBS
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23134 /* Override any gcc2 internal prototype to avoid an error. */
23138 /* We use char because int might match the return type of a gcc2
23139 builtin and then its argument prototype would still apply. */
23149 rm -f conftest.$ac_objext conftest$ac_exeext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23151 (eval $ac_link) 2>conftest.er1
23153 grep -v '^ *+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } &&
23158 { ac_try='test -z "$ac_c_werror_flag"
23159 || test ! -s conftest.err'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest$ac_exeext'
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_cv_lib_dl_dlopen=yes
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_cv_lib_dl_dlopen=no
23178 rm -f conftest.err conftest.$ac_objext \
23179 conftest$ac_exeext conftest.$ac_ext
23180 LIBS=$ac_check_lib_save_LIBS
23182 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23183 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23184 if test $ac_cv_lib_dl_dlopen = yes; then
23185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23187 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23188 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23189 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23192 ac_check_lib_save_LIBS=$LIBS
23193 LIBS="-lsvld $LIBS"
23194 cat >conftest.$ac_ext <<_ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h. */
23201 /* Override any gcc2 internal prototype to avoid an error. */
23205 /* We use char because int might match the return type of a gcc2
23206 builtin and then its argument prototype would still apply. */
23216 rm -f conftest.$ac_objext conftest$ac_exeext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23218 (eval $ac_link) 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } &&
23225 { ac_try='test -z "$ac_c_werror_flag"
23226 || test ! -s conftest.err'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; } &&
23232 { ac_try='test -s conftest$ac_exeext'
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; }; then
23238 ac_cv_lib_svld_dlopen=yes
23240 echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23243 ac_cv_lib_svld_dlopen=no
23245 rm -f conftest.err conftest.$ac_objext \
23246 conftest$ac_exeext conftest.$ac_ext
23247 LIBS=$ac_check_lib_save_LIBS
23249 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23250 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23251 if test $ac_cv_lib_svld_dlopen = yes; then
23252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23254 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23255 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23256 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23259 ac_check_lib_save_LIBS=$LIBS
23261 cat >conftest.$ac_ext <<_ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23268 /* Override any gcc2 internal prototype to avoid an error. */
23272 /* We use char because int might match the return type of a gcc2
23273 builtin and then its argument prototype would still apply. */
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23285 (eval $ac_link) 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
23292 { ac_try='test -z "$ac_c_werror_flag"
23293 || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest$ac_exeext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 ac_cv_lib_dld_dld_link=yes
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_cv_lib_dld_dld_link=no
23312 rm -f conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
23314 LIBS=$ac_check_lib_save_LIBS
23316 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23317 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23318 if test $ac_cv_lib_dld_dld_link = yes; then
23319 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23340 if test "x$lt_cv_dlopen" != xno; then
23346 case $lt_cv_dlopen in
23348 save_CPPFLAGS="$CPPFLAGS"
23349 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23351 save_LDFLAGS="$LDFLAGS"
23352 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23355 LIBS="$lt_cv_dlopen_libs $LIBS"
23357 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23358 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23359 if test "${lt_cv_dlopen_self+set}" = set; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 if test "$cross_compiling" = yes; then :
23363 lt_cv_dlopen_self=cross
23365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23366 lt_status=$lt_dlunknown
23367 cat > conftest.$ac_ext <<EOF
23368 #line 23368 "configure"
23369 #include "confdefs.h"
23378 # define LT_DLGLOBAL RTLD_GLOBAL
23381 # define LT_DLGLOBAL DL_GLOBAL
23383 # define LT_DLGLOBAL 0
23387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23388 find out it does not work in some platform. */
23389 #ifndef LT_DLLAZY_OR_NOW
23391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23394 # define LT_DLLAZY_OR_NOW DL_LAZY
23397 # define LT_DLLAZY_OR_NOW RTLD_NOW
23400 # define LT_DLLAZY_OR_NOW DL_NOW
23402 # define LT_DLLAZY_OR_NOW 0
23410 extern "C" void exit (int);
23413 void fnord() { int i=42;}
23416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23417 int status = $lt_dlunknown;
23421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23422 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23423 /* dlclose (self); */
23429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23430 (eval $ac_link) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23434 (./conftest; exit; ) 2>/dev/null
23436 case x$lt_status in
23437 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23438 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23439 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23442 # compilation failed
23443 lt_cv_dlopen_self=no
23450 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23451 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23453 if test "x$lt_cv_dlopen_self" = xyes; then
23454 LDFLAGS="$LDFLAGS $link_static_flag"
23455 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23456 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23457 if test "${lt_cv_dlopen_self_static+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 if test "$cross_compiling" = yes; then :
23461 lt_cv_dlopen_self_static=cross
23463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23464 lt_status=$lt_dlunknown
23465 cat > conftest.$ac_ext <<EOF
23466 #line 23466 "configure"
23467 #include "confdefs.h"
23476 # define LT_DLGLOBAL RTLD_GLOBAL
23479 # define LT_DLGLOBAL DL_GLOBAL
23481 # define LT_DLGLOBAL 0
23485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23486 find out it does not work in some platform. */
23487 #ifndef LT_DLLAZY_OR_NOW
23489 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23492 # define LT_DLLAZY_OR_NOW DL_LAZY
23495 # define LT_DLLAZY_OR_NOW RTLD_NOW
23498 # define LT_DLLAZY_OR_NOW DL_NOW
23500 # define LT_DLLAZY_OR_NOW 0
23508 extern "C" void exit (int);
23511 void fnord() { int i=42;}
23514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23515 int status = $lt_dlunknown;
23519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23521 /* dlclose (self); */
23527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23528 (eval $ac_link) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23532 (./conftest; exit; ) 2>/dev/null
23534 case x$lt_status in
23535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23537 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23540 # compilation failed
23541 lt_cv_dlopen_self_static=no
23548 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23549 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23552 CPPFLAGS="$save_CPPFLAGS"
23553 LDFLAGS="$save_LDFLAGS"
23558 case $lt_cv_dlopen_self in
23559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23560 *) enable_dlopen_self=unknown ;;
23563 case $lt_cv_dlopen_self_static in
23564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23565 *) enable_dlopen_self_static=unknown ;;
23570 # The else clause should only fire when bootstrapping the
23571 # libtool distribution, otherwise you forgot to ship ltmain.sh
23572 # with your package, and you will get complaints that there are
23573 # no rules to generate ltmain.sh.
23574 if test -f "$ltmain"; then
23575 # See if we are running on zsh, and set the options which allow our commands through
23576 # without removal of \ escapes.
23577 if test -n "${ZSH_VERSION+set}" ; then
23578 setopt NO_GLOB_SUBST
23580 # Now quote all the things that may contain metacharacters while being
23581 # careful not to overquote the AC_SUBSTed values. We take copies of the
23582 # variables and quote the copies for generation of the libtool script.
23583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23587 deplibs_check_method reload_flag reload_cmds need_locks \
23588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23589 lt_cv_sys_global_symbol_to_c_name_address \
23590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23591 old_postinstall_cmds old_postuninstall_cmds \
23595 lt_prog_compiler_wl_GCJ \
23596 lt_prog_compiler_pic_GCJ \
23597 lt_prog_compiler_static_GCJ \
23598 lt_prog_compiler_no_builtin_flag_GCJ \
23599 export_dynamic_flag_spec_GCJ \
23600 thread_safe_flag_spec_GCJ \
23601 whole_archive_flag_spec_GCJ \
23602 enable_shared_with_static_runtimes_GCJ \
23603 old_archive_cmds_GCJ \
23604 old_archive_from_new_cmds_GCJ \
23605 predep_objects_GCJ \
23606 postdep_objects_GCJ \
23609 compiler_lib_search_path_GCJ \
23611 archive_expsym_cmds_GCJ \
23612 postinstall_cmds_GCJ \
23613 postuninstall_cmds_GCJ \
23614 old_archive_from_expsyms_cmds_GCJ \
23615 allow_undefined_flag_GCJ \
23616 no_undefined_flag_GCJ \
23617 export_symbols_cmds_GCJ \
23618 hardcode_libdir_flag_spec_GCJ \
23619 hardcode_libdir_flag_spec_ld_GCJ \
23620 hardcode_libdir_separator_GCJ \
23621 hardcode_automatic_GCJ \
23623 module_expsym_cmds_GCJ \
23624 lt_cv_prog_compiler_c_o_GCJ \
23625 exclude_expsyms_GCJ \
23626 include_expsyms_GCJ; do
23629 old_archive_cmds_GCJ | \
23630 old_archive_from_new_cmds_GCJ | \
23631 archive_cmds_GCJ | \
23632 archive_expsym_cmds_GCJ | \
23633 module_cmds_GCJ | \
23634 module_expsym_cmds_GCJ | \
23635 old_archive_from_expsyms_cmds_GCJ | \
23636 export_symbols_cmds_GCJ | \
23637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23638 postinstall_cmds | postuninstall_cmds | \
23639 old_postinstall_cmds | old_postuninstall_cmds | \
23640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23641 # Double-quote double-evaled strings.
23642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23651 *'\$0 --fallback-echo"')
23652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23658 cat <<__EOF__ >> "$cfgfile"
23659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23663 # Shell to use when invoking shell scripts.
23666 # Whether or not to build shared libraries.
23667 build_libtool_libs=$enable_shared
23669 # Whether or not to build static libraries.
23670 build_old_libs=$enable_static
23672 # Whether or not to add -lc for building shared libraries.
23673 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23675 # Whether or not to disallow shared libs when runtime libs are static
23676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23678 # Whether or not to optimize for fast installation.
23679 fast_install=$enable_fast_install
23682 host_alias=$host_alias
23685 # An echo program that does not interpret backslashes.
23690 AR_FLAGS=$lt_AR_FLAGS
23695 # A language-specific compiler.
23696 CC=$lt_compiler_GCJ
23698 # Is the compiler the GNU C compiler?
23704 # The linker used to build libraries.
23707 # Whether we need hard or soft links.
23710 # A BSD-compatible nm program.
23713 # A symbol stripping program
23716 # Used to examine libraries when file_magic_cmd begins "file"
23717 MAGIC_CMD=$MAGIC_CMD
23719 # Used on cygwin: DLL creation program.
23722 # Used on cygwin: object dumper.
23725 # Used on cygwin: assembler.
23728 # The name of the directory that contains temporary libtool files.
23731 # How to create reloadable object files.
23732 reload_flag=$lt_reload_flag
23733 reload_cmds=$lt_reload_cmds
23735 # How to pass a linker flag through the compiler.
23736 wl=$lt_lt_prog_compiler_wl_GCJ
23738 # Object file suffix (normally "o").
23739 objext="$ac_objext"
23741 # Old archive suffix (normally "a").
23744 # Shared library suffix (normally ".so").
23745 shrext_cmds='$shrext_cmds'
23747 # Executable file suffix (normally "").
23750 # Additional compiler flags for building library objects.
23751 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23754 # What is the maximum length of a command?
23755 max_cmd_len=$lt_cv_sys_max_cmd_len
23757 # Does compiler simultaneously support -c and -o options?
23758 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23760 # Must we lock files when doing compilation ?
23761 need_locks=$lt_need_locks
23763 # Do we need the lib prefix for modules?
23764 need_lib_prefix=$need_lib_prefix
23766 # Do we need a version for libraries?
23767 need_version=$need_version
23769 # Whether dlopen is supported.
23770 dlopen_support=$enable_dlopen
23772 # Whether dlopen of programs is supported.
23773 dlopen_self=$enable_dlopen_self
23775 # Whether dlopen of statically linked programs is supported.
23776 dlopen_self_static=$enable_dlopen_self_static
23778 # Compiler flag to prevent dynamic linking.
23779 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23781 # Compiler flag to turn off builtin functions.
23782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23784 # Compiler flag to allow reflexive dlopens.
23785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23787 # Compiler flag to generate shared objects directly from archives.
23788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23790 # Compiler flag to generate thread-safe objects.
23791 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23793 # Library versioning type.
23794 version_type=$version_type
23796 # Format of library name prefix.
23797 libname_spec=$lt_libname_spec
23799 # List of archive names. First name is the real one, the rest are links.
23800 # The last name is the one that the linker finds with -lNAME.
23801 library_names_spec=$lt_library_names_spec
23803 # The coded name of the library, if different from the real name.
23804 soname_spec=$lt_soname_spec
23806 # Commands used to build and install an old-style archive.
23808 old_archive_cmds=$lt_old_archive_cmds_GCJ
23809 old_postinstall_cmds=$lt_old_postinstall_cmds
23810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23812 # Create an old-style archive from a shared archive.
23813 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23815 # Create a temporary old-style archive to link instead of a shared archive.
23816 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23818 # Commands used to build and install a shared archive.
23819 archive_cmds=$lt_archive_cmds_GCJ
23820 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23821 postinstall_cmds=$lt_postinstall_cmds
23822 postuninstall_cmds=$lt_postuninstall_cmds
23824 # Commands used to build a loadable module (assumed same as above if empty)
23825 module_cmds=$lt_module_cmds_GCJ
23826 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23828 # Commands to strip libraries.
23829 old_striplib=$lt_old_striplib
23830 striplib=$lt_striplib
23832 # Dependencies to place before the objects being linked to create a
23834 predep_objects=$lt_predep_objects_GCJ
23836 # Dependencies to place after the objects being linked to create a
23838 postdep_objects=$lt_postdep_objects_GCJ
23840 # Dependencies to place before the objects being linked to create a
23842 predeps=$lt_predeps_GCJ
23844 # Dependencies to place after the objects being linked to create a
23846 postdeps=$lt_postdeps_GCJ
23848 # The library search path used internally by the compiler when linking
23849 # a shared library.
23850 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23852 # Method to check whether dependent libraries are shared objects.
23853 deplibs_check_method=$lt_deplibs_check_method
23855 # Command to use when deplibs_check_method == file_magic.
23856 file_magic_cmd=$lt_file_magic_cmd
23858 # Flag that allows shared libraries with undefined symbols to be built.
23859 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23861 # Flag that forces no undefined symbols.
23862 no_undefined_flag=$lt_no_undefined_flag_GCJ
23864 # Commands used to finish a libtool library installation in a directory.
23865 finish_cmds=$lt_finish_cmds
23867 # Same as above, but a single script fragment to be evaled but not shown.
23868 finish_eval=$lt_finish_eval
23870 # Take the output of nm and produce a listing of raw symbols and C names.
23871 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23873 # Transform the output of nm in a proper C declaration
23874 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23876 # Transform the output of nm in a C name address pair
23877 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23879 # This is the shared library runtime path variable.
23880 runpath_var=$runpath_var
23882 # This is the shared library path variable.
23883 shlibpath_var=$shlibpath_var
23885 # Is shlibpath searched before the hard-coded library search path?
23886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23888 # How to hardcode a shared library path into an executable.
23889 hardcode_action=$hardcode_action_GCJ
23891 # Whether we should hardcode library paths into libraries.
23892 hardcode_into_libs=$hardcode_into_libs
23894 # Flag to hardcode \$libdir into a binary during linking.
23895 # This must work even if \$libdir does not exist.
23896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23898 # If ld is used when linking, flag to hardcode \$libdir into
23899 # a binary during linking. This must work even if \$libdir does
23901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23903 # Whether we need a single -rpath flag with a separated argument.
23904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23906 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23907 # resulting binary.
23908 hardcode_direct=$hardcode_direct_GCJ
23910 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23911 # resulting binary.
23912 hardcode_minus_L=$hardcode_minus_L_GCJ
23914 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23915 # the resulting binary.
23916 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23918 # Set to yes if building a shared library automatically hardcodes DIR into the library
23919 # and all subsequent libraries and executables linked against it.
23920 hardcode_automatic=$hardcode_automatic_GCJ
23922 # Variables whose values should be saved in libtool wrapper scripts and
23923 # restored at relink time.
23924 variables_saved_for_relink="$variables_saved_for_relink"
23926 # Whether libtool must link a program against all its dependency libraries.
23927 link_all_deplibs=$link_all_deplibs_GCJ
23929 # Compile-time system search path for libraries
23930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23932 # Run-time system search path for libraries
23933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23935 # Fix the shell variable \$srcfile for the compiler.
23936 fix_srcfile_path="$fix_srcfile_path_GCJ"
23938 # Set to yes if exported symbols are required.
23939 always_export_symbols=$always_export_symbols_GCJ
23941 # The commands to list exported symbols.
23942 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23944 # The commands to extract the exported symbol list from a shared archive.
23945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23947 # Symbols that should not be listed in the preloaded symbols.
23948 exclude_expsyms=$lt_exclude_expsyms_GCJ
23950 # Symbols that must always be exported.
23951 include_expsyms=$lt_include_expsyms_GCJ
23953 # ### END LIBTOOL TAG CONFIG: $tagname
23959 # If there is no Makefile yet, we rely on a make rule to execute
23960 # `config.status --recheck' to rerun these tests and create the
23961 # libtool script then.
23962 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23963 if test -f "$ltmain_in"; then
23964 test -f Makefile && make "$ltmain"
23970 ac_cpp='$CPP $CPPFLAGS'
23971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23984 ac_cpp='$CPP $CPPFLAGS'
23985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23990 # Source file extension for RC test sources.
23993 # Object file extension for compiled RC test sources.
23997 # Code to be used in simple compile tests
23998 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24000 # Code to be used in simple link tests
24001 lt_simple_link_test_code="$lt_simple_compile_test_code"
24003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24005 # If no C compiler was specified, use CC.
24008 # Allow CC to be a program name with arguments.
24012 # Allow CC to be a program name with arguments.
24017 lt_cv_prog_compiler_c_o_RC=yes
24019 # The else clause should only fire when bootstrapping the
24020 # libtool distribution, otherwise you forgot to ship ltmain.sh
24021 # with your package, and you will get complaints that there are
24022 # no rules to generate ltmain.sh.
24023 if test -f "$ltmain"; then
24024 # See if we are running on zsh, and set the options which allow our commands through
24025 # without removal of \ escapes.
24026 if test -n "${ZSH_VERSION+set}" ; then
24027 setopt NO_GLOB_SUBST
24029 # Now quote all the things that may contain metacharacters while being
24030 # careful not to overquote the AC_SUBSTed values. We take copies of the
24031 # variables and quote the copies for generation of the libtool script.
24032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24036 deplibs_check_method reload_flag reload_cmds need_locks \
24037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24038 lt_cv_sys_global_symbol_to_c_name_address \
24039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24040 old_postinstall_cmds old_postuninstall_cmds \
24044 lt_prog_compiler_wl_RC \
24045 lt_prog_compiler_pic_RC \
24046 lt_prog_compiler_static_RC \
24047 lt_prog_compiler_no_builtin_flag_RC \
24048 export_dynamic_flag_spec_RC \
24049 thread_safe_flag_spec_RC \
24050 whole_archive_flag_spec_RC \
24051 enable_shared_with_static_runtimes_RC \
24052 old_archive_cmds_RC \
24053 old_archive_from_new_cmds_RC \
24054 predep_objects_RC \
24055 postdep_objects_RC \
24058 compiler_lib_search_path_RC \
24060 archive_expsym_cmds_RC \
24061 postinstall_cmds_RC \
24062 postuninstall_cmds_RC \
24063 old_archive_from_expsyms_cmds_RC \
24064 allow_undefined_flag_RC \
24065 no_undefined_flag_RC \
24066 export_symbols_cmds_RC \
24067 hardcode_libdir_flag_spec_RC \
24068 hardcode_libdir_flag_spec_ld_RC \
24069 hardcode_libdir_separator_RC \
24070 hardcode_automatic_RC \
24072 module_expsym_cmds_RC \
24073 lt_cv_prog_compiler_c_o_RC \
24074 exclude_expsyms_RC \
24075 include_expsyms_RC; do
24078 old_archive_cmds_RC | \
24079 old_archive_from_new_cmds_RC | \
24080 archive_cmds_RC | \
24081 archive_expsym_cmds_RC | \
24083 module_expsym_cmds_RC | \
24084 old_archive_from_expsyms_cmds_RC | \
24085 export_symbols_cmds_RC | \
24086 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24087 postinstall_cmds | postuninstall_cmds | \
24088 old_postinstall_cmds | old_postuninstall_cmds | \
24089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24090 # Double-quote double-evaled strings.
24091 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24100 *'\$0 --fallback-echo"')
24101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24107 cat <<__EOF__ >> "$cfgfile"
24108 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24112 # Shell to use when invoking shell scripts.
24115 # Whether or not to build shared libraries.
24116 build_libtool_libs=$enable_shared
24118 # Whether or not to build static libraries.
24119 build_old_libs=$enable_static
24121 # Whether or not to add -lc for building shared libraries.
24122 build_libtool_need_lc=$archive_cmds_need_lc_RC
24124 # Whether or not to disallow shared libs when runtime libs are static
24125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24127 # Whether or not to optimize for fast installation.
24128 fast_install=$enable_fast_install
24131 host_alias=$host_alias
24134 # An echo program that does not interpret backslashes.
24139 AR_FLAGS=$lt_AR_FLAGS
24144 # A language-specific compiler.
24147 # Is the compiler the GNU C compiler?
24153 # The linker used to build libraries.
24156 # Whether we need hard or soft links.
24159 # A BSD-compatible nm program.
24162 # A symbol stripping program
24165 # Used to examine libraries when file_magic_cmd begins "file"
24166 MAGIC_CMD=$MAGIC_CMD
24168 # Used on cygwin: DLL creation program.
24171 # Used on cygwin: object dumper.
24174 # Used on cygwin: assembler.
24177 # The name of the directory that contains temporary libtool files.
24180 # How to create reloadable object files.
24181 reload_flag=$lt_reload_flag
24182 reload_cmds=$lt_reload_cmds
24184 # How to pass a linker flag through the compiler.
24185 wl=$lt_lt_prog_compiler_wl_RC
24187 # Object file suffix (normally "o").
24188 objext="$ac_objext"
24190 # Old archive suffix (normally "a").
24193 # Shared library suffix (normally ".so").
24194 shrext_cmds='$shrext_cmds'
24196 # Executable file suffix (normally "").
24199 # Additional compiler flags for building library objects.
24200 pic_flag=$lt_lt_prog_compiler_pic_RC
24203 # What is the maximum length of a command?
24204 max_cmd_len=$lt_cv_sys_max_cmd_len
24206 # Does compiler simultaneously support -c and -o options?
24207 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24209 # Must we lock files when doing compilation ?
24210 need_locks=$lt_need_locks
24212 # Do we need the lib prefix for modules?
24213 need_lib_prefix=$need_lib_prefix
24215 # Do we need a version for libraries?
24216 need_version=$need_version
24218 # Whether dlopen is supported.
24219 dlopen_support=$enable_dlopen
24221 # Whether dlopen of programs is supported.
24222 dlopen_self=$enable_dlopen_self
24224 # Whether dlopen of statically linked programs is supported.
24225 dlopen_self_static=$enable_dlopen_self_static
24227 # Compiler flag to prevent dynamic linking.
24228 link_static_flag=$lt_lt_prog_compiler_static_RC
24230 # Compiler flag to turn off builtin functions.
24231 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24233 # Compiler flag to allow reflexive dlopens.
24234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24236 # Compiler flag to generate shared objects directly from archives.
24237 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24239 # Compiler flag to generate thread-safe objects.
24240 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24242 # Library versioning type.
24243 version_type=$version_type
24245 # Format of library name prefix.
24246 libname_spec=$lt_libname_spec
24248 # List of archive names. First name is the real one, the rest are links.
24249 # The last name is the one that the linker finds with -lNAME.
24250 library_names_spec=$lt_library_names_spec
24252 # The coded name of the library, if different from the real name.
24253 soname_spec=$lt_soname_spec
24255 # Commands used to build and install an old-style archive.
24257 old_archive_cmds=$lt_old_archive_cmds_RC
24258 old_postinstall_cmds=$lt_old_postinstall_cmds
24259 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24261 # Create an old-style archive from a shared archive.
24262 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24264 # Create a temporary old-style archive to link instead of a shared archive.
24265 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24267 # Commands used to build and install a shared archive.
24268 archive_cmds=$lt_archive_cmds_RC
24269 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24270 postinstall_cmds=$lt_postinstall_cmds
24271 postuninstall_cmds=$lt_postuninstall_cmds
24273 # Commands used to build a loadable module (assumed same as above if empty)
24274 module_cmds=$lt_module_cmds_RC
24275 module_expsym_cmds=$lt_module_expsym_cmds_RC
24277 # Commands to strip libraries.
24278 old_striplib=$lt_old_striplib
24279 striplib=$lt_striplib
24281 # Dependencies to place before the objects being linked to create a
24283 predep_objects=$lt_predep_objects_RC
24285 # Dependencies to place after the objects being linked to create a
24287 postdep_objects=$lt_postdep_objects_RC
24289 # Dependencies to place before the objects being linked to create a
24291 predeps=$lt_predeps_RC
24293 # Dependencies to place after the objects being linked to create a
24295 postdeps=$lt_postdeps_RC
24297 # The library search path used internally by the compiler when linking
24298 # a shared library.
24299 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24301 # Method to check whether dependent libraries are shared objects.
24302 deplibs_check_method=$lt_deplibs_check_method
24304 # Command to use when deplibs_check_method == file_magic.
24305 file_magic_cmd=$lt_file_magic_cmd
24307 # Flag that allows shared libraries with undefined symbols to be built.
24308 allow_undefined_flag=$lt_allow_undefined_flag_RC
24310 # Flag that forces no undefined symbols.
24311 no_undefined_flag=$lt_no_undefined_flag_RC
24313 # Commands used to finish a libtool library installation in a directory.
24314 finish_cmds=$lt_finish_cmds
24316 # Same as above, but a single script fragment to be evaled but not shown.
24317 finish_eval=$lt_finish_eval
24319 # Take the output of nm and produce a listing of raw symbols and C names.
24320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24322 # Transform the output of nm in a proper C declaration
24323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24325 # Transform the output of nm in a C name address pair
24326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24328 # This is the shared library runtime path variable.
24329 runpath_var=$runpath_var
24331 # This is the shared library path variable.
24332 shlibpath_var=$shlibpath_var
24334 # Is shlibpath searched before the hard-coded library search path?
24335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24337 # How to hardcode a shared library path into an executable.
24338 hardcode_action=$hardcode_action_RC
24340 # Whether we should hardcode library paths into libraries.
24341 hardcode_into_libs=$hardcode_into_libs
24343 # Flag to hardcode \$libdir into a binary during linking.
24344 # This must work even if \$libdir does not exist.
24345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24347 # If ld is used when linking, flag to hardcode \$libdir into
24348 # a binary during linking. This must work even if \$libdir does
24350 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24352 # Whether we need a single -rpath flag with a separated argument.
24353 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24355 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24356 # resulting binary.
24357 hardcode_direct=$hardcode_direct_RC
24359 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24360 # resulting binary.
24361 hardcode_minus_L=$hardcode_minus_L_RC
24363 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24364 # the resulting binary.
24365 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24367 # Set to yes if building a shared library automatically hardcodes DIR into the library
24368 # and all subsequent libraries and executables linked against it.
24369 hardcode_automatic=$hardcode_automatic_RC
24371 # Variables whose values should be saved in libtool wrapper scripts and
24372 # restored at relink time.
24373 variables_saved_for_relink="$variables_saved_for_relink"
24375 # Whether libtool must link a program against all its dependency libraries.
24376 link_all_deplibs=$link_all_deplibs_RC
24378 # Compile-time system search path for libraries
24379 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24381 # Run-time system search path for libraries
24382 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24384 # Fix the shell variable \$srcfile for the compiler.
24385 fix_srcfile_path="$fix_srcfile_path_RC"
24387 # Set to yes if exported symbols are required.
24388 always_export_symbols=$always_export_symbols_RC
24390 # The commands to list exported symbols.
24391 export_symbols_cmds=$lt_export_symbols_cmds_RC
24393 # The commands to extract the exported symbol list from a shared archive.
24394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24396 # Symbols that should not be listed in the preloaded symbols.
24397 exclude_expsyms=$lt_exclude_expsyms_RC
24399 # Symbols that must always be exported.
24400 include_expsyms=$lt_include_expsyms_RC
24402 # ### END LIBTOOL TAG CONFIG: $tagname
24408 # If there is no Makefile yet, we rely on a make rule to execute
24409 # `config.status --recheck' to rerun these tests and create the
24410 # libtool script then.
24411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24412 if test -f "$ltmain_in"; then
24413 test -f Makefile && make "$ltmain"
24419 ac_cpp='$CPP $CPPFLAGS'
24420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24429 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24430 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24431 { (exit 1); exit 1; }; }
24435 # Append the new tag name to the list of available tags.
24436 if test -n "$tagname" ; then
24437 available_tags="$available_tags $tagname"
24443 # Now substitute the updated list of available tags.
24444 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24445 mv "${ofile}T" "$ofile"
24449 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24450 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24451 { (exit 1); exit 1; }; }
24457 # This can be used to rebuild libtool when needed
24458 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24460 # Always use our own libtool.
24461 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24463 # Prevent multiple expansion
24485 etags_version=`$ETAGS --version 2>&1`
24486 case "$etags_version" in
24487 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24488 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24489 *) ETAGSFLAGS="" ;;
24491 ETAGSFLAGS=$ETAGSFLAGS
24494 echo "$as_me:$LINENO: checking tool compatibility" >&5
24495 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24508 if test "$GCC" != "yes" && test "$ICC" != "yes"
24510 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24511 echo "$as_me: error: gcc|icc required but not found" >&2;}
24512 { (exit 1); exit 1; }; }
24515 if test "$GXX" != "yes" && test "$IXX" != "yes"
24517 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24518 echo "$as_me: error: g++|icc required but not found" >&2;}
24519 { (exit 1); exit 1; }; }
24522 if test "$GCC" = "yes"
24524 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24525 if test "$gccmajor" -lt "3"
24527 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24528 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24529 { (exit 1); exit 1; }; }
24533 if test -z "$llvm_cv_gnu_make_command"
24535 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24536 echo "$as_me: error: GNU Make required but not found" >&2;}
24537 { (exit 1); exit 1; }; }
24540 echo "$as_me:$LINENO: result: ok" >&5
24541 echo "${ECHO_T}ok" >&6
24545 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24546 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24547 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 ac_check_lib_save_LIBS=$LIBS
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24559 /* Override any gcc2 internal prototype to avoid an error. */
24563 /* We use char because int might match the return type of a gcc2
24564 builtin and then its argument prototype would still apply. */
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576 (eval $ac_link) 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
24583 { ac_try='test -z "$ac_c_werror_flag"
24584 || test ! -s conftest.err'
24585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586 (eval $ac_try) 2>&5
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; } &&
24590 { ac_try='test -s conftest$ac_exeext'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_cv_lib_elf_elf_begin=yes
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_lib_elf_elf_begin=no
24603 rm -f conftest.err conftest.$ac_objext \
24604 conftest$ac_exeext conftest.$ac_ext
24605 LIBS=$ac_check_lib_save_LIBS
24607 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24608 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24609 if test $ac_cv_lib_elf_elf_begin = yes; then
24610 cat >>confdefs.h <<_ACEOF
24611 #define HAVE_LIBELF 1
24619 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24620 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24621 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
24624 ac_func_search_save_LIBS=$LIBS
24625 ac_cv_search_lt_dlopen=no
24626 cat >conftest.$ac_ext <<_ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24633 /* Override any gcc2 internal prototype to avoid an error. */
24637 /* We use char because int might match the return type of a gcc2
24638 builtin and then its argument prototype would still apply. */
24648 rm -f conftest.$ac_objext conftest$ac_exeext
24649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24650 (eval $ac_link) 2>conftest.er1
24652 grep -v '^ *+' conftest.er1 >conftest.err
24654 cat conftest.err >&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } &&
24657 { ac_try='test -z "$ac_c_werror_flag"
24658 || test ! -s conftest.err'
24659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660 (eval $ac_try) 2>&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; } &&
24664 { ac_try='test -s conftest$ac_exeext'
24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 ac_cv_search_lt_dlopen="none required"
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24676 rm -f conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
24678 if test "$ac_cv_search_lt_dlopen" = no; then
24679 for ac_lib in ltdl; do
24680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24681 cat >conftest.$ac_ext <<_ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24688 /* Override any gcc2 internal prototype to avoid an error. */
24692 /* We use char because int might match the return type of a gcc2
24693 builtin and then its argument prototype would still apply. */
24703 rm -f conftest.$ac_objext conftest$ac_exeext
24704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705 (eval $ac_link) 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try='test -z "$ac_c_werror_flag"
24713 || test ! -s conftest.err'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 ac_cv_search_lt_dlopen="-l$ac_lib"
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24732 rm -f conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_func_search_save_LIBS
24738 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24739 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24740 if test "$ac_cv_search_lt_dlopen" != no; then
24741 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24743 cat >>confdefs.h <<\_ACEOF
24744 #define HAVE_LT_DLOPEN 1
24748 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24749 not be available" >&5
24750 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24751 not be available" >&2;}
24755 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24756 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24757 if test "${ac_cv_search_dlopen+set}" = set; then
24758 echo $ECHO_N "(cached) $ECHO_C" >&6
24760 ac_func_search_save_LIBS=$LIBS
24761 ac_cv_search_dlopen=no
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24769 /* Override any gcc2 internal prototype to avoid an error. */
24773 /* We use char because int might match the return type of a gcc2
24774 builtin and then its argument prototype would still apply. */
24784 rm -f conftest.$ac_objext conftest$ac_exeext
24785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24786 (eval $ac_link) 2>conftest.er1
24788 grep -v '^ *+' conftest.er1 >conftest.err
24790 cat conftest.err >&5
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); } &&
24793 { ac_try='test -z "$ac_c_werror_flag"
24794 || test ! -s conftest.err'
24795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796 (eval $ac_try) 2>&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; } &&
24800 { ac_try='test -s conftest$ac_exeext'
24801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802 (eval $ac_try) 2>&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); }; }; then
24806 ac_cv_search_dlopen="none required"
24808 echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24812 rm -f conftest.err conftest.$ac_objext \
24813 conftest$ac_exeext conftest.$ac_ext
24814 if test "$ac_cv_search_dlopen" = no; then
24815 for ac_lib in dl; do
24816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24817 cat >conftest.$ac_ext <<_ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24824 /* Override any gcc2 internal prototype to avoid an error. */
24828 /* We use char because int might match the return type of a gcc2
24829 builtin and then its argument prototype would still apply. */
24839 rm -f conftest.$ac_objext conftest$ac_exeext
24840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24841 (eval $ac_link) 2>conftest.er1
24843 grep -v '^ *+' conftest.er1 >conftest.err
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } &&
24848 { ac_try='test -z "$ac_c_werror_flag"
24849 || test ! -s conftest.err'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; } &&
24855 { ac_try='test -s conftest$ac_exeext'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24861 ac_cv_search_dlopen="-l$ac_lib"
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24868 rm -f conftest.err conftest.$ac_objext \
24869 conftest$ac_exeext conftest.$ac_ext
24872 LIBS=$ac_func_search_save_LIBS
24874 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24875 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24876 if test "$ac_cv_search_dlopen" != no; then
24877 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24879 cat >>confdefs.h <<\_ACEOF
24880 #define HAVE_DLOPEN 1
24884 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24885 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24889 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24890 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24891 if test "${ac_cv_search_mallinfo+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 ac_func_search_save_LIBS=$LIBS
24895 ac_cv_search_mallinfo=no
24896 cat >conftest.$ac_ext <<_ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h. */
24903 /* Override any gcc2 internal prototype to avoid an error. */
24907 /* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920 (eval $ac_link) 2>conftest.er1
24922 grep -v '^ *+' conftest.er1 >conftest.err
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
24927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_search_mallinfo="none required"
24942 echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24946 rm -f conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948 if test "$ac_cv_search_mallinfo" = no; then
24949 for ac_lib in malloc; do
24950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24951 cat >conftest.$ac_ext <<_ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h. */
24958 /* Override any gcc2 internal prototype to avoid an error. */
24962 /* We use char because int might match the return type of a gcc2
24963 builtin and then its argument prototype would still apply. */
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975 (eval $ac_link) 2>conftest.er1
24977 grep -v '^ *+' conftest.er1 >conftest.err
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag"
24983 || test ! -s conftest.err'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest$ac_exeext'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_search_mallinfo="-l$ac_lib"
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25002 rm -f conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
25006 LIBS=$ac_func_search_save_LIBS
25008 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25009 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25010 if test "$ac_cv_search_mallinfo" != no; then
25011 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25013 cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_MALLINFO 1
25020 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25021 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25022 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 ac_func_search_save_LIBS=$LIBS
25026 ac_cv_search_pthread_mutex_lock=no
25027 cat >conftest.$ac_ext <<_ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25034 /* Override any gcc2 internal prototype to avoid an error. */
25038 /* We use char because int might match the return type of a gcc2
25039 builtin and then its argument prototype would still apply. */
25040 char pthread_mutex_lock ();
25044 pthread_mutex_lock ();
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25051 (eval $ac_link) 2>conftest.er1
25053 grep -v '^ *+' conftest.er1 >conftest.err
25055 cat conftest.err >&5
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } &&
25058 { ac_try='test -z "$ac_c_werror_flag"
25059 || test ! -s conftest.err'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; } &&
25065 { ac_try='test -s conftest$ac_exeext'
25066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; }; then
25071 ac_cv_search_pthread_mutex_lock="none required"
25073 echo "$as_me: failed program was:" >&5
25074 sed 's/^/| /' conftest.$ac_ext >&5
25077 rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25079 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25080 for ac_lib in pthread; do
25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25089 /* Override any gcc2 internal prototype to avoid an error. */
25093 /* We use char because int might match the return type of a gcc2
25094 builtin and then its argument prototype would still apply. */
25095 char pthread_mutex_lock ();
25099 pthread_mutex_lock ();
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106 (eval $ac_link) 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
25113 { ac_try='test -z "$ac_c_werror_flag"
25114 || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest$ac_exeext'
25121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25129 echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25133 rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
25137 LIBS=$ac_func_search_save_LIBS
25139 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25140 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25141 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25142 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25144 cat >>confdefs.h <<\_ACEOF
25145 #define HAVE_PTHREAD_MUTEX_LOCK 1
25152 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25154 if test "${ac_cv_header_stdc+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 cat >conftest.$ac_ext <<_ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 #include <stdlib.h>
25164 #include <stdarg.h>
25165 #include <string.h>
25176 rm -f conftest.$ac_objext
25177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25178 (eval $ac_compile) 2>conftest.er1
25180 grep -v '^ *+' conftest.er1 >conftest.err
25182 cat conftest.err >&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } &&
25185 { ac_try='test -z "$ac_c_werror_flag"
25186 || test ! -s conftest.err'
25187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188 (eval $ac_try) 2>&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); }; } &&
25192 { ac_try='test -s conftest.$ac_objext'
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 ac_cv_header_stdc=yes
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25203 ac_cv_header_stdc=no
25205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25207 if test $ac_cv_header_stdc = yes; then
25208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25209 cat >conftest.$ac_ext <<_ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h. */
25215 #include <string.h>
25218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25219 $EGREP "memchr" >/dev/null 2>&1; then
25222 ac_cv_header_stdc=no
25228 if test $ac_cv_header_stdc = yes; then
25229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25230 cat >conftest.$ac_ext <<_ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25236 #include <stdlib.h>
25239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25240 $EGREP "free" >/dev/null 2>&1; then
25243 ac_cv_header_stdc=no
25249 if test $ac_cv_header_stdc = yes; then
25250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25251 if test "$cross_compiling" = yes; then
25254 cat >conftest.$ac_ext <<_ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h. */
25261 #if ((' ' & 0x0FF) == 0x020)
25262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25265 # define ISLOWER(c) \
25266 (('a' <= (c) && (c) <= 'i') \
25267 || ('j' <= (c) && (c) <= 'r') \
25268 || ('s' <= (c) && (c) <= 'z'))
25269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25277 for (i = 0; i < 256; i++)
25278 if (XOR (islower (i), ISLOWER (i))
25279 || toupper (i) != TOUPPER (i))
25284 rm -f conftest$ac_exeext
25285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25286 (eval $ac_link) 2>&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; }; then
25297 echo "$as_me: program exited with status $ac_status" >&5
25298 echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25301 ( exit $ac_status )
25302 ac_cv_header_stdc=no
25304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25308 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25309 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25310 if test $ac_cv_header_stdc = yes; then
25312 cat >>confdefs.h <<\_ACEOF
25313 #define STDC_HEADERS 1
25319 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25320 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25321 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25324 cat >conftest.$ac_ext <<_ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 #include <sys/types.h>
25331 #include <sys/wait.h>
25332 #ifndef WEXITSTATUS
25333 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25336 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25344 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25349 rm -f conftest.$ac_objext
25350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25351 (eval $ac_compile) 2>conftest.er1
25353 grep -v '^ *+' conftest.er1 >conftest.err
25355 cat conftest.err >&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } &&
25358 { ac_try='test -z "$ac_c_werror_flag"
25359 || test ! -s conftest.err'
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361 (eval $ac_try) 2>&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; } &&
25365 { ac_try='test -s conftest.$ac_objext'
25366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367 (eval $ac_try) 2>&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); }; }; then
25371 ac_cv_header_sys_wait_h=yes
25373 echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 ac_cv_header_sys_wait_h=no
25378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25380 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25381 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25382 if test $ac_cv_header_sys_wait_h = yes; then
25384 cat >>confdefs.h <<\_ACEOF
25385 #define HAVE_SYS_WAIT_H 1
25395 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25399 echo "$as_me:$LINENO: checking for $ac_header" >&5
25400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25407 # Is the header compilable?
25408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 $ac_includes_default
25417 #include <$ac_header>
25419 rm -f conftest.$ac_objext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25421 (eval $ac_compile) 2>conftest.er1
25423 grep -v '^ *+' conftest.er1 >conftest.err
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
25428 { ac_try='test -z "$ac_c_werror_flag"
25429 || test ! -s conftest.err'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest.$ac_objext'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441 ac_header_compiler=yes
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 ac_header_compiler=no
25448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25450 echo "${ECHO_T}$ac_header_compiler" >&6
25452 # Is the header present?
25453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25455 cat >conftest.$ac_ext <<_ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 #include <$ac_header>
25463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25466 grep -v '^ *+' conftest.er1 >conftest.err
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } >/dev/null; then
25471 if test -s conftest.err; then
25472 ac_cpp_err=$ac_c_preproc_warn_flag
25473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25480 if test -z "$ac_cpp_err"; then
25481 ac_header_preproc=yes
25483 echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25486 ac_header_preproc=no
25488 rm -f conftest.err conftest.$ac_ext
25489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490 echo "${ECHO_T}$ac_header_preproc" >&6
25492 # So? What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25499 ac_header_preproc=yes
25502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25516 ## ----------------------------------- ##
25517 ## Report this to llvmbugs@cs.uiuc.edu ##
25518 ## ----------------------------------- ##
25521 sed "s/^/$as_me: WARNING: /" >&2
25524 echo "$as_me:$LINENO: checking for $ac_header" >&5
25525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25529 eval "$as_ac_Header=\$ac_header_preproc"
25531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25536 cat >>confdefs.h <<_ACEOF
25537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25549 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25553 echo "$as_me:$LINENO: checking for $ac_header" >&5
25554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25556 echo $ECHO_N "(cached) $ECHO_C" >&6
25558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25561 # Is the header compilable?
25562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25564 cat >conftest.$ac_ext <<_ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25570 $ac_includes_default
25571 #include <$ac_header>
25573 rm -f conftest.$ac_objext
25574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25575 (eval $ac_compile) 2>conftest.er1
25577 grep -v '^ *+' conftest.er1 >conftest.err
25579 cat conftest.err >&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } &&
25582 { ac_try='test -z "$ac_c_werror_flag"
25583 || test ! -s conftest.err'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; } &&
25589 { ac_try='test -s conftest.$ac_objext'
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; }; then
25595 ac_header_compiler=yes
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 ac_header_compiler=no
25602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25604 echo "${ECHO_T}$ac_header_compiler" >&6
25606 # Is the header present?
25607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25609 cat >conftest.$ac_ext <<_ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25615 #include <$ac_header>
25617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25620 grep -v '^ *+' conftest.er1 >conftest.err
25622 cat conftest.err >&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); } >/dev/null; then
25625 if test -s conftest.err; then
25626 ac_cpp_err=$ac_c_preproc_warn_flag
25627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25634 if test -z "$ac_cpp_err"; then
25635 ac_header_preproc=yes
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_header_preproc=no
25642 rm -f conftest.err conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25644 echo "${ECHO_T}$ac_header_preproc" >&6
25646 # So? What about this header?
25647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25653 ac_header_preproc=yes
25656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25670 ## ----------------------------------- ##
25671 ## Report this to llvmbugs@cs.uiuc.edu ##
25672 ## ----------------------------------- ##
25675 sed "s/^/$as_me: WARNING: /" >&2
25678 echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25683 eval "$as_ac_Header=\$ac_header_preproc"
25685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25690 cat >>confdefs.h <<_ACEOF
25691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25701 for ac_header in malloc.h unistd.h windows.h
25703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25705 echo "$as_me:$LINENO: checking for $ac_header" >&5
25706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25713 # Is the header compilable?
25714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25716 cat >conftest.$ac_ext <<_ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h. */
25722 $ac_includes_default
25723 #include <$ac_header>
25725 rm -f conftest.$ac_objext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727 (eval $ac_compile) 2>conftest.er1
25729 grep -v '^ *+' conftest.er1 >conftest.err
25731 cat conftest.err >&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } &&
25734 { ac_try='test -z "$ac_c_werror_flag"
25735 || test ! -s conftest.err'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; } &&
25741 { ac_try='test -s conftest.$ac_objext'
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; }; then
25747 ac_header_compiler=yes
25749 echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25752 ac_header_compiler=no
25754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25756 echo "${ECHO_T}$ac_header_compiler" >&6
25758 # Is the header present?
25759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25761 cat >conftest.$ac_ext <<_ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 #include <$ac_header>
25769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25772 grep -v '^ *+' conftest.er1 >conftest.err
25774 cat conftest.err >&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } >/dev/null; then
25777 if test -s conftest.err; then
25778 ac_cpp_err=$ac_c_preproc_warn_flag
25779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25786 if test -z "$ac_cpp_err"; then
25787 ac_header_preproc=yes
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_header_preproc=no
25794 rm -f conftest.err conftest.$ac_ext
25795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25796 echo "${ECHO_T}$ac_header_preproc" >&6
25798 # So? What about this header?
25799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25805 ac_header_preproc=yes
25808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25822 ## ----------------------------------- ##
25823 ## Report this to llvmbugs@cs.uiuc.edu ##
25824 ## ----------------------------------- ##
25827 sed "s/^/$as_me: WARNING: /" >&2
25830 echo "$as_me:$LINENO: checking for $ac_header" >&5
25831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 eval "$as_ac_Header=\$ac_header_preproc"
25837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25842 cat >>confdefs.h <<_ACEOF
25843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25852 if test "${ac_cv_header_time+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25855 cat >conftest.$ac_ext <<_ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h. */
25861 #include <sys/types.h>
25862 #include <sys/time.h>
25868 if ((struct tm *) 0)
25874 rm -f conftest.$ac_objext
25875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25876 (eval $ac_compile) 2>conftest.er1
25878 grep -v '^ *+' conftest.er1 >conftest.err
25880 cat conftest.err >&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } &&
25883 { ac_try='test -z "$ac_c_werror_flag"
25884 || test ! -s conftest.err'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; } &&
25890 { ac_try='test -s conftest.$ac_objext'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; }; then
25896 ac_cv_header_time=yes
25898 echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25901 ac_cv_header_time=no
25903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25905 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25906 echo "${ECHO_T}$ac_cv_header_time" >&6
25907 if test $ac_cv_header_time = yes; then
25909 cat >>confdefs.h <<\_ACEOF
25910 #define TIME_WITH_SYS_TIME 1
25915 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25916 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25917 if test "${ac_cv_header_mmap_anon+set}" = set; then
25918 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 ac_cpp='$CPP $CPPFLAGS'
25922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25926 cat >conftest.$ac_ext <<_ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h. */
25932 #include <sys/mman.h>
25933 #include <unistd.h>
25938 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25943 rm -f conftest.$ac_objext
25944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25945 (eval $ac_compile) 2>conftest.er1
25947 grep -v '^ *+' conftest.er1 >conftest.err
25949 cat conftest.err >&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); } &&
25952 { ac_try='test -z "$ac_c_werror_flag"
25953 || test ! -s conftest.err'
25954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955 (eval $ac_try) 2>&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); }; } &&
25959 { ac_try='test -s conftest.$ac_objext'
25960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961 (eval $ac_try) 2>&5
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; }; then
25965 ac_cv_header_mmap_anon=yes
25967 echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25970 ac_cv_header_mmap_anon=no
25972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25974 ac_cpp='$CPP $CPPFLAGS'
25975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25981 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25982 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25983 if test "$ac_cv_header_mmap_anon" = yes; then
25985 cat >>confdefs.h <<\_ACEOF
25986 #define HAVE_MMAP_ANONYMOUS
25994 for ac_header in inttypes.h stdint.h
25996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25998 echo "$as_me:$LINENO: checking for $ac_header" >&5
25999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26001 echo $ECHO_N "(cached) $ECHO_C" >&6
26003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26006 # Is the header compilable?
26007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 $ac_includes_default
26016 #include <$ac_header>
26018 rm -f conftest.$ac_objext
26019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26020 (eval $ac_compile) 2>conftest.er1
26022 grep -v '^ *+' conftest.er1 >conftest.err
26024 cat conftest.err >&5
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } &&
26027 { ac_try='test -z "$ac_c_werror_flag"
26028 || test ! -s conftest.err'
26029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; } &&
26034 { ac_try='test -s conftest.$ac_objext'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; }; then
26040 ac_header_compiler=yes
26042 echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26045 ac_header_compiler=no
26047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26049 echo "${ECHO_T}$ac_header_compiler" >&6
26051 # Is the header present?
26052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26054 cat >conftest.$ac_ext <<_ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h. */
26060 #include <$ac_header>
26062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26065 grep -v '^ *+' conftest.er1 >conftest.err
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null; then
26070 if test -s conftest.err; then
26071 ac_cpp_err=$ac_c_preproc_warn_flag
26072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26079 if test -z "$ac_cpp_err"; then
26080 ac_header_preproc=yes
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26085 ac_header_preproc=no
26087 rm -f conftest.err conftest.$ac_ext
26088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26089 echo "${ECHO_T}$ac_header_preproc" >&6
26091 # So? What about this header?
26092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26098 ac_header_preproc=yes
26101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26115 ## ----------------------------------- ##
26116 ## Report this to llvmbugs@cs.uiuc.edu ##
26117 ## ----------------------------------- ##
26120 sed "s/^/$as_me: WARNING: /" >&2
26123 echo "$as_me:$LINENO: checking for $ac_header" >&5
26124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26126 echo $ECHO_N "(cached) $ECHO_C" >&6
26128 eval "$as_ac_Header=\$ac_header_preproc"
26130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26135 cat >>confdefs.h <<_ACEOF
26136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26145 echo "$as_me:$LINENO: checking for pid_t" >&5
26146 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26147 if test "${ac_cv_type_pid_t+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26150 cat >conftest.$ac_ext <<_ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 $ac_includes_default
26162 if (sizeof (pid_t))
26168 rm -f conftest.$ac_objext
26169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26170 (eval $ac_compile) 2>conftest.er1
26172 grep -v '^ *+' conftest.er1 >conftest.err
26174 cat conftest.err >&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } &&
26177 { ac_try='test -z "$ac_c_werror_flag"
26178 || test ! -s conftest.err'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; } &&
26184 { ac_try='test -s conftest.$ac_objext'
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; }; then
26190 ac_cv_type_pid_t=yes
26192 echo "$as_me: failed program was:" >&5
26193 sed 's/^/| /' conftest.$ac_ext >&5
26195 ac_cv_type_pid_t=no
26197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26199 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26200 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26201 if test $ac_cv_type_pid_t = yes; then
26205 cat >>confdefs.h <<_ACEOF
26211 echo "$as_me:$LINENO: checking for size_t" >&5
26212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26213 if test "${ac_cv_type_size_t+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 cat >conftest.$ac_ext <<_ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26222 $ac_includes_default
26228 if (sizeof (size_t))
26234 rm -f conftest.$ac_objext
26235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26236 (eval $ac_compile) 2>conftest.er1
26238 grep -v '^ *+' conftest.er1 >conftest.err
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } &&
26243 { ac_try='test -z "$ac_c_werror_flag"
26244 || test ! -s conftest.err'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; } &&
26250 { ac_try='test -s conftest.$ac_objext'
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; }; then
26256 ac_cv_type_size_t=yes
26258 echo "$as_me: failed program was:" >&5
26259 sed 's/^/| /' conftest.$ac_ext >&5
26261 ac_cv_type_size_t=no
26263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26265 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26266 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26267 if test $ac_cv_type_size_t = yes; then
26271 cat >>confdefs.h <<_ACEOF
26272 #define size_t unsigned
26277 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26278 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26279 if test "${ac_cv_type_signal+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26282 cat >conftest.$ac_ext <<_ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26288 #include <sys/types.h>
26289 #include <signal.h>
26294 extern "C" void (*signal (int, void (*)(int)))(int);
26296 void (*signal ()) ();
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309 (eval $ac_compile) 2>conftest.er1
26311 grep -v '^ *+' conftest.er1 >conftest.err
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest.$ac_objext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ac_cv_type_signal=void
26331 echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26334 ac_cv_type_signal=int
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26338 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26339 echo "${ECHO_T}$ac_cv_type_signal" >&6
26341 cat >>confdefs.h <<_ACEOF
26342 #define RETSIGTYPE $ac_cv_type_signal
26346 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26348 if test "${ac_cv_struct_tm+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26351 cat >conftest.$ac_ext <<_ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h. */
26357 #include <sys/types.h>
26363 struct tm *tp; tp->tm_sec;
26368 rm -f conftest.$ac_objext
26369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26370 (eval $ac_compile) 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } &&
26377 { ac_try='test -z "$ac_c_werror_flag"
26378 || test ! -s conftest.err'
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; } &&
26384 { ac_try='test -s conftest.$ac_objext'
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386 (eval $ac_try) 2>&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 ac_cv_struct_tm=time.h
26392 echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26395 ac_cv_struct_tm=sys/time.h
26397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26399 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26400 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26401 if test $ac_cv_struct_tm = sys/time.h; then
26403 cat >>confdefs.h <<\_ACEOF
26404 #define TM_IN_SYS_TIME 1
26409 echo "$as_me:$LINENO: checking for int64_t" >&5
26410 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26411 if test "${ac_cv_type_int64_t+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26414 cat >conftest.$ac_ext <<_ACEOF
26417 cat confdefs.h >>conftest.$ac_ext
26418 cat >>conftest.$ac_ext <<_ACEOF
26419 /* end confdefs.h. */
26420 $ac_includes_default
26426 if (sizeof (int64_t))
26432 rm -f conftest.$ac_objext
26433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26434 (eval $ac_compile) 2>conftest.er1
26436 grep -v '^ *+' conftest.er1 >conftest.err
26438 cat conftest.err >&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } &&
26441 { ac_try='test -z "$ac_c_werror_flag"
26442 || test ! -s conftest.err'
26443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444 (eval $ac_try) 2>&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); }; } &&
26448 { ac_try='test -s conftest.$ac_objext'
26449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 ac_cv_type_int64_t=yes
26456 echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26459 ac_cv_type_int64_t=no
26461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26463 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26464 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26465 if test $ac_cv_type_int64_t = yes; then
26467 cat >>confdefs.h <<_ACEOF
26468 #define HAVE_INT64_T 1
26473 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26474 echo "$as_me: error: Type int64_t required but not found" >&2;}
26475 { (exit 1); exit 1; }; }
26478 echo "$as_me:$LINENO: checking for uint64_t" >&5
26479 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26480 if test "${ac_cv_type_uint64_t+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26489 $ac_includes_default
26493 if ((uint64_t *) 0)
26495 if (sizeof (uint64_t))
26501 rm -f conftest.$ac_objext
26502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26503 (eval $ac_compile) 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
26510 { ac_try='test -z "$ac_c_werror_flag"
26511 || test ! -s conftest.err'
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; } &&
26517 { ac_try='test -s conftest.$ac_objext'
26518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519 (eval $ac_try) 2>&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); }; }; then
26523 ac_cv_type_uint64_t=yes
26525 echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26528 ac_cv_type_uint64_t=no
26530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26532 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26533 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26534 if test $ac_cv_type_uint64_t = yes; then
26536 cat >>confdefs.h <<_ACEOF
26537 #define HAVE_UINT64_T 1
26542 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26543 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26544 if test "${ac_cv_type_u_int64_t+set}" = set; then
26545 echo $ECHO_N "(cached) $ECHO_C" >&6
26547 cat >conftest.$ac_ext <<_ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h. */
26553 $ac_includes_default
26557 if ((u_int64_t *) 0)
26559 if (sizeof (u_int64_t))
26565 rm -f conftest.$ac_objext
26566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26567 (eval $ac_compile) 2>conftest.er1
26569 grep -v '^ *+' conftest.er1 >conftest.err
26571 cat conftest.err >&5
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } &&
26574 { ac_try='test -z "$ac_c_werror_flag"
26575 || test ! -s conftest.err'
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; } &&
26581 { ac_try='test -s conftest.$ac_objext'
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; }; then
26587 ac_cv_type_u_int64_t=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_cv_type_u_int64_t=no
26594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26596 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26597 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26598 if test $ac_cv_type_u_int64_t = yes; then
26600 cat >>confdefs.h <<_ACEOF
26601 #define HAVE_U_INT64_T 1
26606 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26607 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26608 { (exit 1); exit 1; }; }
26621 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26624 echo "$as_me:$LINENO: checking for $ac_func" >&5
26625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26626 if eval "test \"\${$as_ac_var+set}\" = set"; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26629 cat >conftest.$ac_ext <<_ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h. */
26635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26637 #define $ac_func innocuous_$ac_func
26639 /* System header to define __stub macros and hopefully few prototypes,
26640 which can conflict with char $ac_func (); below.
26641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26642 <limits.h> exists even on freestanding compilers. */
26645 # include <limits.h>
26647 # include <assert.h>
26652 /* Override any gcc2 internal prototype to avoid an error. */
26657 /* We use char because int might match the return type of a gcc2
26658 builtin and then its argument prototype would still apply. */
26660 /* The GNU C library defines this for functions which it implements
26661 to always fail with ENOSYS. Some functions are actually named
26662 something starting with __ and the normal name is an alias. */
26663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26666 char (*f) () = $ac_func;
26675 return f != $ac_func;
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682 (eval $ac_link) 2>conftest.er1
26684 grep -v '^ *+' conftest.er1 >conftest.err
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest$ac_exeext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 eval "$as_ac_var=yes"
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26707 eval "$as_ac_var=no"
26709 rm -f conftest.err conftest.$ac_objext \
26710 conftest$ac_exeext conftest.$ac_ext
26712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26714 if test `eval echo '${'$as_ac_var'}'` = yes; then
26715 cat >>confdefs.h <<_ACEOF
26716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26725 for ac_func in strdup strtoq strtoll
26727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26728 echo "$as_me:$LINENO: checking for $ac_func" >&5
26729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26730 if eval "test \"\${$as_ac_var+set}\" = set"; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 cat >conftest.$ac_ext <<_ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h. */
26739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26741 #define $ac_func innocuous_$ac_func
26743 /* System header to define __stub macros and hopefully few prototypes,
26744 which can conflict with char $ac_func (); below.
26745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26746 <limits.h> exists even on freestanding compilers. */
26749 # include <limits.h>
26751 # include <assert.h>
26756 /* Override any gcc2 internal prototype to avoid an error. */
26761 /* We use char because int might match the return type of a gcc2
26762 builtin and then its argument prototype would still apply. */
26764 /* The GNU C library defines this for functions which it implements
26765 to always fail with ENOSYS. Some functions are actually named
26766 something starting with __ and the normal name is an alias. */
26767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26770 char (*f) () = $ac_func;
26779 return f != $ac_func;
26784 rm -f conftest.$ac_objext conftest$ac_exeext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26786 (eval $ac_link) 2>conftest.er1
26788 grep -v '^ *+' conftest.er1 >conftest.err
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
26793 { ac_try='test -z "$ac_c_werror_flag"
26794 || test ! -s conftest.err'
26795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796 (eval $ac_try) 2>&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); }; } &&
26800 { ac_try='test -s conftest$ac_exeext'
26801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 eval "$as_ac_var=yes"
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26811 eval "$as_ac_var=no"
26813 rm -f conftest.err conftest.$ac_objext \
26814 conftest$ac_exeext conftest.$ac_ext
26816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26818 if test `eval echo '${'$as_ac_var'}'` = yes; then
26819 cat >>confdefs.h <<_ACEOF
26820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26826 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26827 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26828 if test "${llvm_cv_c_printf_a+set}" = set; then
26829 echo $ECHO_N "(cached) $ECHO_C" >&6
26832 ac_cpp='$CPP $CPPFLAGS'
26833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26837 if test "$cross_compiling" = yes; then
26838 llvmac_cv_c_printf_a=no
26840 cat >conftest.$ac_ext <<_ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h. */
26849 #include <stdlib.h>
26855 volatile double A, B;
26859 sprintf(Buffer, "%a", A);
26863 if (A != 0x1.999999999999ap-4)
26870 rm -f conftest$ac_exeext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872 (eval $ac_link) 2>&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; }; then
26881 llvm_cv_c_printf_a=yes
26883 echo "$as_me: program exited with status $ac_status" >&5
26884 echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26887 ( exit $ac_status )
26888 llvmac_cv_c_printf_a=no
26890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26893 ac_cpp='$CPP $CPPFLAGS'
26894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26899 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26900 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26901 if test "$llvm_cv_c_printf_a" = "yes"; then
26903 cat >>confdefs.h <<\_ACEOF
26904 #define HAVE_PRINTF_A 1
26909 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26910 # for constant arguments. Useless!
26911 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26912 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26913 if test "${ac_cv_working_alloca_h+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <alloca.h>
26926 char *p = (char *) alloca (2 * sizeof (int));
26931 rm -f conftest.$ac_objext conftest$ac_exeext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26933 (eval $ac_link) 2>conftest.er1
26935 grep -v '^ *+' conftest.er1 >conftest.err
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag"
26941 || test ! -s conftest.err'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
26947 { ac_try='test -s conftest$ac_exeext'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
26953 ac_cv_working_alloca_h=yes
26955 echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26958 ac_cv_working_alloca_h=no
26960 rm -f conftest.err conftest.$ac_objext \
26961 conftest$ac_exeext conftest.$ac_ext
26963 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26964 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26965 if test $ac_cv_working_alloca_h = yes; then
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_ALLOCA_H 1
26973 echo "$as_me:$LINENO: checking for alloca" >&5
26974 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26975 if test "${ac_cv_func_alloca_works+set}" = set; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26978 cat >conftest.$ac_ext <<_ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h. */
26985 # define alloca __builtin_alloca
26988 # include <malloc.h>
26989 # define alloca _alloca
26992 # include <alloca.h>
26997 # ifndef alloca /* predefined by HP cc +Olibcalls */
27008 char *p = (char *) alloca (1);
27013 rm -f conftest.$ac_objext conftest$ac_exeext
27014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27015 (eval $ac_link) 2>conftest.er1
27017 grep -v '^ *+' conftest.er1 >conftest.err
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag"
27023 || test ! -s conftest.err'
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
27029 { ac_try='test -s conftest$ac_exeext'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 ac_cv_func_alloca_works=yes
27037 echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27040 ac_cv_func_alloca_works=no
27042 rm -f conftest.err conftest.$ac_objext \
27043 conftest$ac_exeext conftest.$ac_ext
27045 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27046 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27048 if test $ac_cv_func_alloca_works = yes; then
27050 cat >>confdefs.h <<\_ACEOF
27051 #define HAVE_ALLOCA 1
27055 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27056 # that cause trouble. Some versions do not even contain alloca or
27057 # contain a buggy version. If you still want to use their alloca,
27058 # use ar to extract alloca.o from them instead of compiling alloca.c.
27060 ALLOCA=alloca.$ac_objext
27062 cat >>confdefs.h <<\_ACEOF
27067 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27068 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27069 if test "${ac_cv_os_cray+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27072 cat >conftest.$ac_ext <<_ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27078 #if defined(CRAY) && ! defined(CRAY2)
27085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27086 $EGREP "webecray" >/dev/null 2>&1; then
27094 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27095 echo "${ECHO_T}$ac_cv_os_cray" >&6
27096 if test $ac_cv_os_cray = yes; then
27097 for ac_func in _getb67 GETB67 getb67; do
27098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27099 echo "$as_me:$LINENO: checking for $ac_func" >&5
27100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27101 if eval "test \"\${$as_ac_var+set}\" = set"; then
27102 echo $ECHO_N "(cached) $ECHO_C" >&6
27104 cat >conftest.$ac_ext <<_ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h. */
27110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27112 #define $ac_func innocuous_$ac_func
27114 /* System header to define __stub macros and hopefully few prototypes,
27115 which can conflict with char $ac_func (); below.
27116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27117 <limits.h> exists even on freestanding compilers. */
27120 # include <limits.h>
27122 # include <assert.h>
27127 /* Override any gcc2 internal prototype to avoid an error. */
27132 /* We use char because int might match the return type of a gcc2
27133 builtin and then its argument prototype would still apply. */
27135 /* The GNU C library defines this for functions which it implements
27136 to always fail with ENOSYS. Some functions are actually named
27137 something starting with __ and the normal name is an alias. */
27138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27141 char (*f) () = $ac_func;
27150 return f != $ac_func;
27155 rm -f conftest.$ac_objext conftest$ac_exeext
27156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27157 (eval $ac_link) 2>conftest.er1
27159 grep -v '^ *+' conftest.er1 >conftest.err
27161 cat conftest.err >&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); } &&
27164 { ac_try='test -z "$ac_c_werror_flag"
27165 || test ! -s conftest.err'
27166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167 (eval $ac_try) 2>&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; } &&
27171 { ac_try='test -s conftest$ac_exeext'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; }; then
27177 eval "$as_ac_var=yes"
27179 echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27182 eval "$as_ac_var=no"
27184 rm -f conftest.err conftest.$ac_objext \
27185 conftest$ac_exeext conftest.$ac_ext
27187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27189 if test `eval echo '${'$as_ac_var'}'` = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192 #define CRAY_STACKSEG_END $ac_func
27201 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27202 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27203 if test "${ac_cv_c_stack_direction+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27206 if test "$cross_compiling" = yes; then
27207 ac_cv_c_stack_direction=0
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27216 find_stack_direction ()
27218 static char *addr = 0;
27223 return find_stack_direction ();
27226 return (&dummy > addr) ? 1 : -1;
27232 exit (find_stack_direction () < 0);
27235 rm -f conftest$ac_exeext
27236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27237 (eval $ac_link) 2>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246 ac_cv_c_stack_direction=1
27248 echo "$as_me: program exited with status $ac_status" >&5
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ( exit $ac_status )
27253 ac_cv_c_stack_direction=-1
27255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27258 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27259 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27261 cat >>confdefs.h <<_ACEOF
27262 #define STACK_DIRECTION $ac_cv_c_stack_direction
27269 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27270 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27271 if test "${ac_cv_func_rand48+set}" = set; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27275 ac_cpp='$CXXCPP $CPPFLAGS'
27276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27280 cat >conftest.$ac_ext <<_ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27286 #include <stdlib.h>
27290 srand48(0);lrand48();drand48();
27295 rm -f conftest.$ac_objext
27296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27297 (eval $ac_compile) 2>conftest.er1
27299 grep -v '^ *+' conftest.er1 >conftest.err
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
27304 { ac_try='test -z "$ac_cxx_werror_flag"
27305 || test ! -s conftest.err'
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; } &&
27311 { ac_try='test -s conftest.$ac_objext'
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_cv_func_rand48=yes
27319 echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27322 ac_cv_func_rand48=no
27324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27326 ac_cpp='$CPP $CPPFLAGS'
27327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27332 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27333 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27335 if test "$ac_cv_func_rand48" = "yes" ; then
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_RAND48 1
27344 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27345 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27346 if test "${ac_cv_cxx_namespaces+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 ac_cpp='$CXXCPP $CPPFLAGS'
27351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27355 cat >conftest.$ac_ext <<_ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h. */
27361 namespace Outer { namespace Inner { int i = 0; }}
27365 using namespace Outer::Inner; return i;
27370 rm -f conftest.$ac_objext
27371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27372 (eval $ac_compile) 2>conftest.er1
27374 grep -v '^ *+' conftest.er1 >conftest.err
27376 cat conftest.err >&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
27379 { ac_try='test -z "$ac_cxx_werror_flag"
27380 || test ! -s conftest.err'
27381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382 (eval $ac_try) 2>&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; } &&
27386 { ac_try='test -s conftest.$ac_objext'
27387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27388 (eval $ac_try) 2>&5
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_cxx_namespaces=yes
27394 echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27397 ac_cv_cxx_namespaces=no
27399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27401 ac_cpp='$CPP $CPPFLAGS'
27402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27408 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27409 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27410 if test "$ac_cv_cxx_namespaces" = yes; then
27412 cat >>confdefs.h <<\_ACEOF
27413 #define HAVE_NAMESPACES
27418 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27419 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27420 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27425 ac_cpp='$CXXCPP $CPPFLAGS'
27426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27430 cat >conftest.$ac_ext <<_ACEOF
27433 cat confdefs.h >>conftest.$ac_ext
27434 cat >>conftest.$ac_ext <<_ACEOF
27435 /* end confdefs.h. */
27436 #include <ext/hash_map>
27437 #ifdef HAVE_NAMESPACES
27438 using namespace std;
27443 hash_map<int, int> t;
27448 rm -f conftest.$ac_objext
27449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27450 (eval $ac_compile) 2>conftest.er1
27452 grep -v '^ *+' conftest.er1 >conftest.err
27454 cat conftest.err >&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
27457 { ac_try='test -z "$ac_cxx_werror_flag"
27458 || test ! -s conftest.err'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; } &&
27464 { ac_try='test -s conftest.$ac_objext'
27465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; }; then
27470 ac_cv_cxx_have_std_ext_hash_map=yes
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27475 ac_cv_cxx_have_std_ext_hash_map=no
27477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27479 ac_cpp='$CPP $CPPFLAGS'
27480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27485 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27486 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27487 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27490 cat >>confdefs.h <<\_ACEOF
27491 #define HAVE_STD_EXT_HASH_MAP 1
27496 cat >>confdefs.h <<\_ACEOF
27497 #define HAVE_STD_EXT_HASH_MAP 0
27502 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27503 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27504 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27505 echo $ECHO_N "(cached) $ECHO_C" >&6
27509 ac_cpp='$CXXCPP $CPPFLAGS'
27510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27514 cat >conftest.$ac_ext <<_ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27520 #include <ext/hash_map>
27521 #ifdef HAVE_NAMESPACES
27522 using namespace __gnu_cxx;
27527 hash_map<int,int> t;
27532 rm -f conftest.$ac_objext
27533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27534 (eval $ac_compile) 2>conftest.er1
27536 grep -v '^ *+' conftest.er1 >conftest.err
27538 cat conftest.err >&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
27541 { ac_try='test -z "$ac_cxx_werror_flag"
27542 || test ! -s conftest.err'
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; } &&
27548 { ac_try='test -s conftest.$ac_objext'
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ac_cv_cxx_have_gnu_ext_hash_map=yes
27556 echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27559 ac_cv_cxx_have_gnu_ext_hash_map=no
27561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27563 ac_cpp='$CPP $CPPFLAGS'
27564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27569 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27570 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27571 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27574 cat >>confdefs.h <<\_ACEOF
27575 #define HAVE_GNU_EXT_HASH_MAP 1
27580 cat >>confdefs.h <<\_ACEOF
27581 #define HAVE_GNU_EXT_HASH_MAP 0
27586 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27587 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27588 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27589 echo $ECHO_N "(cached) $ECHO_C" >&6
27593 ac_cpp='$CXXCPP $CPPFLAGS'
27594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27598 cat >conftest.$ac_ext <<_ACEOF
27601 cat confdefs.h >>conftest.$ac_ext
27602 cat >>conftest.$ac_ext <<_ACEOF
27603 /* end confdefs.h. */
27604 #include <hash_map>
27608 hash_map<int,int> t;
27613 rm -f conftest.$ac_objext
27614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27615 (eval $ac_compile) 2>conftest.er1
27617 grep -v '^ *+' conftest.er1 >conftest.err
27619 cat conftest.err >&5
27620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } &&
27622 { ac_try='test -z "$ac_cxx_werror_flag"
27623 || test ! -s conftest.err'
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; } &&
27629 { ac_try='test -s conftest.$ac_objext'
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; }; then
27635 ac_cv_cxx_have_global_hash_map=yes
27637 echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27640 ac_cv_cxx_have_global_hash_map=no
27642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27644 ac_cpp='$CPP $CPPFLAGS'
27645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27650 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27651 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27652 if test "$ac_cv_cxx_have_global_hash_map" = yes
27655 cat >>confdefs.h <<\_ACEOF
27656 #define HAVE_GLOBAL_HASH_MAP 1
27661 cat >>confdefs.h <<\_ACEOF
27662 #define HAVE_GLOBAL_HASH_MAP 0
27667 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27668 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27669 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27674 ac_cpp='$CXXCPP $CPPFLAGS'
27675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27679 cat >conftest.$ac_ext <<_ACEOF
27682 cat confdefs.h >>conftest.$ac_ext
27683 cat >>conftest.$ac_ext <<_ACEOF
27684 /* end confdefs.h. */
27685 #include <ext/hash_set>
27686 #ifdef HAVE_NAMESPACES
27687 using namespace std;
27697 rm -f conftest.$ac_objext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27699 (eval $ac_compile) 2>conftest.er1
27701 grep -v '^ *+' conftest.er1 >conftest.err
27703 cat conftest.err >&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } &&
27706 { ac_try='test -z "$ac_cxx_werror_flag"
27707 || test ! -s conftest.err'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest.$ac_objext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 ac_cv_cxx_have_std_ext_hash_set=yes
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 ac_cv_cxx_have_std_ext_hash_set=no
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27728 ac_cpp='$CPP $CPPFLAGS'
27729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27734 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27735 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27736 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27739 cat >>confdefs.h <<\_ACEOF
27740 #define HAVE_STD_EXT_HASH_SET 1
27745 cat >>confdefs.h <<\_ACEOF
27746 #define HAVE_STD_EXT_HASH_SET 0
27751 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27752 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27753 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27758 ac_cpp='$CXXCPP $CPPFLAGS'
27759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27763 cat >conftest.$ac_ext <<_ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h. */
27769 #include <ext/hash_set>
27770 #ifdef HAVE_NAMESPACES
27771 using namespace __gnu_cxx;
27781 rm -f conftest.$ac_objext
27782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27783 (eval $ac_compile) 2>conftest.er1
27785 grep -v '^ *+' conftest.er1 >conftest.err
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
27790 { ac_try='test -z "$ac_cxx_werror_flag"
27791 || test ! -s conftest.err'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest.$ac_objext'
27798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799 (eval $ac_try) 2>&5
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; }; then
27803 ac_cv_cxx_have_gnu_ext_hash_set=yes
27805 echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27808 ac_cv_cxx_have_gnu_ext_hash_set=no
27810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27812 ac_cpp='$CPP $CPPFLAGS'
27813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27818 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27819 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27820 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27823 cat >>confdefs.h <<\_ACEOF
27824 #define HAVE_GNU_EXT_HASH_SET 1
27829 cat >>confdefs.h <<\_ACEOF
27830 #define HAVE_GNU_EXT_HASH_SET 0
27835 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27836 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27837 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27842 ac_cpp='$CXXCPP $CPPFLAGS'
27843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27853 #include <hash_set>
27857 hash_set<int> t; return 0;
27862 rm -f conftest.$ac_objext
27863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27864 (eval $ac_compile) 2>conftest.er1
27866 grep -v '^ *+' conftest.er1 >conftest.err
27868 cat conftest.err >&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } &&
27871 { ac_try='test -z "$ac_cxx_werror_flag"
27872 || test ! -s conftest.err'
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest.$ac_objext'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
27884 ac_cv_cxx_have_global_hash_set=yes
27886 echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27889 ac_cv_cxx_have_global_hash_set=no
27891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27893 ac_cpp='$CPP $CPPFLAGS'
27894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27899 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27900 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27901 if test "$ac_cv_cxx_have_global_hash_set" = yes
27904 cat >>confdefs.h <<\_ACEOF
27905 #define HAVE_GLOBAL_HASH_SET 1
27910 cat >>confdefs.h <<\_ACEOF
27911 #define HAVE_GLOBAL_HASH_SET 0
27916 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27917 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27918 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27923 ac_cpp='$CXXCPP $CPPFLAGS'
27924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 #include <iterator>
27935 #ifdef HAVE_NAMESPACES
27936 using namespace std;
27941 iterator<int,int,int> t; return 0;
27946 rm -f conftest.$ac_objext
27947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27948 (eval $ac_compile) 2>conftest.er1
27950 grep -v '^ *+' conftest.er1 >conftest.err
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } &&
27955 { ac_try='test -z "$ac_cxx_werror_flag"
27956 || test ! -s conftest.err'
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; } &&
27962 { ac_try='test -s conftest.$ac_objext'
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 ac_cv_cxx_have_std_iterator=yes
27970 echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27973 ac_cv_cxx_have_std_iterator=no
27975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27977 ac_cpp='$CPP $CPPFLAGS'
27978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27984 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27985 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
27986 if test "$ac_cv_cxx_have_std_iterator" = yes
27989 cat >>confdefs.h <<\_ACEOF
27990 #define HAVE_STD_ITERATOR 1
27995 cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_STD_ITERATOR 0
28001 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28002 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28003 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28008 ac_cpp='$CXXCPP $CPPFLAGS'
28009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28013 cat >conftest.$ac_ext <<_ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h. */
28019 #include <iterator>
28020 #ifdef HAVE_NAMESPACES
28021 using namespace std;
28026 bidirectional_iterator<int,int> t; return 0;
28031 rm -f conftest.$ac_objext
28032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28033 (eval $ac_compile) 2>conftest.er1
28035 grep -v '^ *+' conftest.er1 >conftest.err
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } &&
28040 { ac_try='test -z "$ac_cxx_werror_flag"
28041 || test ! -s conftest.err'
28042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043 (eval $ac_try) 2>&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; } &&
28047 { ac_try='test -s conftest.$ac_objext'
28048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28049 (eval $ac_try) 2>&5
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; }; then
28053 ac_cv_cxx_have_bi_iterator=yes
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28058 ac_cv_cxx_have_bi_iterator=no
28060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28062 ac_cpp='$CPP $CPPFLAGS'
28063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28069 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28070 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28071 if test "$ac_cv_cxx_have_bi_iterator" = yes
28074 cat >>confdefs.h <<\_ACEOF
28075 #define HAVE_BI_ITERATOR 1
28080 cat >>confdefs.h <<\_ACEOF
28081 #define HAVE_BI_ITERATOR 0
28086 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28087 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28088 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28093 ac_cpp='$CXXCPP $CPPFLAGS'
28094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28098 cat >conftest.$ac_ext <<_ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h. */
28104 #include <iterator>
28105 #ifdef HAVE_NAMESPACES
28106 using namespace std;
28111 forward_iterator<int,int> t; return 0;
28116 rm -f conftest.$ac_objext
28117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28118 (eval $ac_compile) 2>conftest.er1
28120 grep -v '^ *+' conftest.er1 >conftest.err
28122 cat conftest.err >&5
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } &&
28125 { ac_try='test -z "$ac_cxx_werror_flag"
28126 || test ! -s conftest.err'
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; } &&
28132 { ac_try='test -s conftest.$ac_objext'
28133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134 (eval $ac_try) 2>&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; }; then
28138 ac_cv_cxx_have_fwd_iterator=yes
28140 echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28143 ac_cv_cxx_have_fwd_iterator=no
28145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28147 ac_cpp='$CPP $CPPFLAGS'
28148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28154 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28155 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28156 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28159 cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_FWD_ITERATOR 1
28165 cat >>confdefs.h <<\_ACEOF
28166 #define HAVE_FWD_ITERATOR 0
28172 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28173 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28174 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28178 ac_cpp='$CXXCPP $CPPFLAGS'
28179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28183 cat >conftest.$ac_ext <<_ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h. */
28198 rm -f conftest.$ac_objext
28199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28200 (eval $ac_compile) 2>conftest.er1
28202 grep -v '^ *+' conftest.er1 >conftest.err
28204 cat conftest.err >&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
28207 { ac_try='test -z "$ac_cxx_werror_flag"
28208 || test ! -s conftest.err'
28209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210 (eval $ac_try) 2>&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; } &&
28214 { ac_try='test -s conftest.$ac_objext'
28215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; }; then
28220 ac_cv_func_isnan_in_math_h=yes
28222 echo "$as_me: failed program was:" >&5
28223 sed 's/^/| /' conftest.$ac_ext >&5
28225 ac_cv_func_isnan_in_math_h=no
28227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28229 ac_cpp='$CPP $CPPFLAGS'
28230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28235 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28236 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28239 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_ISNAN_IN_MATH_H 1
28247 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28248 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28249 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28253 ac_cpp='$CXXCPP $CPPFLAGS'
28254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28258 cat >conftest.$ac_ext <<_ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28273 rm -f conftest.$ac_objext
28274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28275 (eval $ac_compile) 2>conftest.er1
28277 grep -v '^ *+' conftest.er1 >conftest.err
28279 cat conftest.err >&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } &&
28282 { ac_try='test -z "$ac_cxx_werror_flag"
28283 || test ! -s conftest.err'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; } &&
28289 { ac_try='test -s conftest.$ac_objext'
28290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291 (eval $ac_try) 2>&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
28295 ac_cv_func_isnan_in_cmath=yes
28297 echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28300 ac_cv_func_isnan_in_cmath=no
28302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28304 ac_cpp='$CPP $CPPFLAGS'
28305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28310 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28311 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28313 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28315 cat >>confdefs.h <<\_ACEOF
28316 #define HAVE_ISNAN_IN_CMATH 1
28321 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28322 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28323 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28324 echo $ECHO_N "(cached) $ECHO_C" >&6
28327 ac_cpp='$CXXCPP $CPPFLAGS'
28328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28332 cat >conftest.$ac_ext <<_ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h. */
28342 float f; std::isnan(f);
28347 rm -f conftest.$ac_objext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349 (eval $ac_compile) 2>conftest.er1
28351 grep -v '^ *+' conftest.er1 >conftest.err
28353 cat conftest.err >&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
28356 { ac_try='test -z "$ac_cxx_werror_flag"
28357 || test ! -s conftest.err'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_func_std_isnan_in_cmath=yes
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 ac_cv_func_std_isnan_in_cmath=no
28376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28378 ac_cpp='$CPP $CPPFLAGS'
28379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28384 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28385 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28387 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28389 cat >>confdefs.h <<\_ACEOF
28390 #define HAVE_STD_ISNAN_IN_CMATH 1
28396 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28397 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28398 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28399 echo $ECHO_N "(cached) $ECHO_C" >&6
28402 ac_cpp='$CXXCPP $CPPFLAGS'
28403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28407 cat >conftest.$ac_ext <<_ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h. */
28422 rm -f conftest.$ac_objext
28423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28424 (eval $ac_compile) 2>conftest.er1
28426 grep -v '^ *+' conftest.er1 >conftest.err
28428 cat conftest.err >&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
28431 { ac_try='test -z "$ac_cxx_werror_flag"
28432 || test ! -s conftest.err'
28433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434 (eval $ac_try) 2>&5
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); }; } &&
28438 { ac_try='test -s conftest.$ac_objext'
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; }; then
28444 ac_cv_func_isinf_in_math_h=yes
28446 echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28449 ac_cv_func_isinf_in_math_h=no
28451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28453 ac_cpp='$CPP $CPPFLAGS'
28454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28459 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28460 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28462 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28464 cat >>confdefs.h <<\_ACEOF
28465 #define HAVE_ISINF_IN_MATH_H 1
28470 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28471 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28472 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28473 echo $ECHO_N "(cached) $ECHO_C" >&6
28476 ac_cpp='$CXXCPP $CPPFLAGS'
28477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28481 cat >conftest.$ac_ext <<_ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h. */
28496 rm -f conftest.$ac_objext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28498 (eval $ac_compile) 2>conftest.er1
28500 grep -v '^ *+' conftest.er1 >conftest.err
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_cxx_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest.$ac_objext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_cv_func_isinf_in_cmath=yes
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_cv_func_isinf_in_cmath=no
28525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28527 ac_cpp='$CPP $CPPFLAGS'
28528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28533 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28534 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28536 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28538 cat >>confdefs.h <<\_ACEOF
28539 #define HAVE_ISINF_IN_CMATH 1
28544 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28545 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28546 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28550 ac_cpp='$CXXCPP $CPPFLAGS'
28551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28555 cat >conftest.$ac_ext <<_ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28565 float f; std::isinf(f)}
28570 rm -f conftest.$ac_objext
28571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28572 (eval $ac_compile) 2>conftest.er1
28574 grep -v '^ *+' conftest.er1 >conftest.err
28576 cat conftest.err >&5
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } &&
28579 { ac_try='test -z "$ac_cxx_werror_flag"
28580 || test ! -s conftest.err'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; }; then
28592 ac_cv_func_std_isinf_in_cmath=yes
28594 echo "$as_me: failed program was:" >&5
28595 sed 's/^/| /' conftest.$ac_ext >&5
28597 ac_cv_func_std_isinf_in_cmath=no
28599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28601 ac_cpp='$CPP $CPPFLAGS'
28602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28607 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28608 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28610 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28612 cat >>confdefs.h <<\_ACEOF
28613 #define HAVE_STD_ISINF_IN_CMATH 1
28618 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28619 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28620 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28624 ac_cpp='$CXXCPP $CPPFLAGS'
28625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 #include <ieeefp.h>
28639 float f; finite(f);
28644 rm -f conftest.$ac_objext
28645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28646 (eval $ac_compile) 2>conftest.er1
28648 grep -v '^ *+' conftest.er1 >conftest.err
28650 cat conftest.err >&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } &&
28653 { ac_try='test -z "$ac_cxx_werror_flag"
28654 || test ! -s conftest.err'
28655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; } &&
28660 { ac_try='test -s conftest.$ac_objext'
28661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; }; then
28666 ac_cv_func_finite_in_ieeefp_h=yes
28668 echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28671 ac_cv_func_finite_in_ieeefp_h=no
28673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28675 ac_cpp='$CPP $CPPFLAGS'
28676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28681 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28682 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28684 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28686 cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_FINITE_IN_IEEEFP_H 1
28696 for ac_header in stdlib.h unistd.h
28698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28700 echo "$as_me:$LINENO: checking for $ac_header" >&5
28701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28708 # Is the header compilable?
28709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28711 cat >conftest.$ac_ext <<_ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h. */
28717 $ac_includes_default
28718 #include <$ac_header>
28720 rm -f conftest.$ac_objext
28721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28722 (eval $ac_compile) 2>conftest.er1
28724 grep -v '^ *+' conftest.er1 >conftest.err
28726 cat conftest.err >&5
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); } &&
28729 { ac_try='test -z "$ac_c_werror_flag"
28730 || test ! -s conftest.err'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; } &&
28736 { ac_try='test -s conftest.$ac_objext'
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; }; then
28742 ac_header_compiler=yes
28744 echo "$as_me: failed program was:" >&5
28745 sed 's/^/| /' conftest.$ac_ext >&5
28747 ac_header_compiler=no
28749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751 echo "${ECHO_T}$ac_header_compiler" >&6
28753 # Is the header present?
28754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28756 cat >conftest.$ac_ext <<_ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h. */
28762 #include <$ac_header>
28764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28767 grep -v '^ *+' conftest.er1 >conftest.err
28769 cat conftest.err >&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } >/dev/null; then
28772 if test -s conftest.err; then
28773 ac_cpp_err=$ac_c_preproc_warn_flag
28774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28781 if test -z "$ac_cpp_err"; then
28782 ac_header_preproc=yes
28784 echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28787 ac_header_preproc=no
28789 rm -f conftest.err conftest.$ac_ext
28790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28791 echo "${ECHO_T}$ac_header_preproc" >&6
28793 # So? What about this header?
28794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28800 ac_header_preproc=yes
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28817 ## ----------------------------------- ##
28818 ## Report this to llvmbugs@cs.uiuc.edu ##
28819 ## ----------------------------------- ##
28822 sed "s/^/$as_me: WARNING: /" >&2
28825 echo "$as_me:$LINENO: checking for $ac_header" >&5
28826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28830 eval "$as_ac_Header=\$ac_header_preproc"
28832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28837 cat >>confdefs.h <<_ACEOF
28838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28846 for ac_func in getpagesize
28848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28849 echo "$as_me:$LINENO: checking for $ac_func" >&5
28850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28851 if eval "test \"\${$as_ac_var+set}\" = set"; then
28852 echo $ECHO_N "(cached) $ECHO_C" >&6
28854 cat >conftest.$ac_ext <<_ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h. */
28860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28862 #define $ac_func innocuous_$ac_func
28864 /* System header to define __stub macros and hopefully few prototypes,
28865 which can conflict with char $ac_func (); below.
28866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28867 <limits.h> exists even on freestanding compilers. */
28870 # include <limits.h>
28872 # include <assert.h>
28877 /* Override any gcc2 internal prototype to avoid an error. */
28882 /* We use char because int might match the return type of a gcc2
28883 builtin and then its argument prototype would still apply. */
28885 /* The GNU C library defines this for functions which it implements
28886 to always fail with ENOSYS. Some functions are actually named
28887 something starting with __ and the normal name is an alias. */
28888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28891 char (*f) () = $ac_func;
28900 return f != $ac_func;
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907 (eval $ac_link) 2>conftest.er1
28909 grep -v '^ *+' conftest.er1 >conftest.err
28911 cat conftest.err >&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
28914 { ac_try='test -z "$ac_c_werror_flag"
28915 || test ! -s conftest.err'
28916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 (eval $ac_try) 2>&5
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; } &&
28921 { ac_try='test -s conftest$ac_exeext'
28922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 (eval $ac_try) 2>&5
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; }; then
28927 eval "$as_ac_var=yes"
28929 echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28932 eval "$as_ac_var=no"
28934 rm -f conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
28937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28939 if test `eval echo '${'$as_ac_var'}'` = yes; then
28940 cat >>confdefs.h <<_ACEOF
28941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28947 echo "$as_me:$LINENO: checking for working mmap" >&5
28948 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28952 if test "$cross_compiling" = yes; then
28953 ac_cv_func_mmap_fixed_mapped=no
28955 cat >conftest.$ac_ext <<_ACEOF
28958 cat confdefs.h >>conftest.$ac_ext
28959 cat >>conftest.$ac_ext <<_ACEOF
28960 /* end confdefs.h. */
28961 $ac_includes_default
28962 /* malloc might have been renamed as rpl_malloc. */
28965 /* Thanks to Mike Haertel and Jim Avera for this test.
28966 Here is a matrix of mmap possibilities:
28967 mmap private not fixed
28968 mmap private fixed at somewhere currently unmapped
28969 mmap private fixed at somewhere already mapped
28970 mmap shared not fixed
28971 mmap shared fixed at somewhere currently unmapped
28972 mmap shared fixed at somewhere already mapped
28973 For private mappings, we should verify that changes cannot be read()
28974 back from the file, nor mmap's back from the file at a different
28975 address. (There have been systems where private was not correctly
28976 implemented like the infamous i386 svr4.0, and systems where the
28977 VM page cache was not coherent with the file system buffer cache
28978 like early versions of FreeBSD and possibly contemporary NetBSD.)
28979 For shared mappings, we should conversely verify that changes get
28980 propagated back to all the places they're supposed to be.
28982 Grep wants private fixed already mapped.
28983 The main things grep needs to know about mmap are:
28984 * does it exist and is it safe to write into the mmap'd area
28985 * how to use it (BSD variants) */
28988 #include <sys/mman.h>
28990 #if !STDC_HEADERS && !HAVE_STDLIB_H
28994 /* This mess was copied from the GNU getpagesize.h. */
28995 #if !HAVE_GETPAGESIZE
28996 /* Assume that all systems that can run configure have sys/param.h. */
28997 # if !HAVE_SYS_PARAM_H
28998 # define HAVE_SYS_PARAM_H 1
29001 # ifdef _SC_PAGESIZE
29002 # define getpagesize() sysconf(_SC_PAGESIZE)
29003 # else /* no _SC_PAGESIZE */
29004 # if HAVE_SYS_PARAM_H
29005 # include <sys/param.h>
29006 # ifdef EXEC_PAGESIZE
29007 # define getpagesize() EXEC_PAGESIZE
29008 # else /* no EXEC_PAGESIZE */
29010 # define getpagesize() NBPG * CLSIZE
29013 # endif /* no CLSIZE */
29014 # else /* no NBPG */
29016 # define getpagesize() NBPC
29017 # else /* no NBPC */
29019 # define getpagesize() PAGESIZE
29020 # endif /* PAGESIZE */
29021 # endif /* no NBPC */
29022 # endif /* no NBPG */
29023 # endif /* no EXEC_PAGESIZE */
29024 # else /* no HAVE_SYS_PARAM_H */
29025 # define getpagesize() 8192 /* punt totally */
29026 # endif /* no HAVE_SYS_PARAM_H */
29027 # endif /* no _SC_PAGESIZE */
29029 #endif /* no HAVE_GETPAGESIZE */
29034 char *data, *data2, *data3;
29038 pagesize = getpagesize ();
29040 /* First, make a file with some known garbage in it. */
29041 data = (char *) malloc (pagesize);
29044 for (i = 0; i < pagesize; ++i)
29045 *(data + i) = rand ();
29047 fd = creat ("conftest.mmap", 0600);
29050 if (write (fd, data, pagesize) != pagesize)
29054 /* Next, try to mmap the file at a fixed address which already has
29055 something else allocated at it. If we can, also make sure that
29056 we see the same garbage. */
29057 fd = open ("conftest.mmap", O_RDWR);
29060 data2 = (char *) malloc (2 * pagesize);
29063 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29064 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29065 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29067 for (i = 0; i < pagesize; ++i)
29068 if (*(data + i) != *(data2 + i))
29071 /* Finally, make sure that changes to the mapped area do not
29072 percolate back to the file as seen by read(). (This is a bug on
29073 some variants of i386 svr4.0.) */
29074 for (i = 0; i < pagesize; ++i)
29075 *(data2 + i) = *(data2 + i) + 1;
29076 data3 = (char *) malloc (pagesize);
29079 if (read (fd, data3, pagesize) != pagesize)
29081 for (i = 0; i < pagesize; ++i)
29082 if (*(data + i) != *(data3 + i))
29088 rm -f conftest$ac_exeext
29089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29090 (eval $ac_link) 2>&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095 (eval $ac_try) 2>&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; }; then
29099 ac_cv_func_mmap_fixed_mapped=yes
29101 echo "$as_me: program exited with status $ac_status" >&5
29102 echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29105 ( exit $ac_status )
29106 ac_cv_func_mmap_fixed_mapped=no
29108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29111 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29112 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29113 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29115 cat >>confdefs.h <<\_ACEOF
29116 #define HAVE_MMAP 1
29120 rm -f conftest.mmap
29122 echo "$as_me:$LINENO: checking for mmap of files" >&5
29123 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29124 if test "${ac_cv_func_mmap_file+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29128 ac_cpp='$CPP $CPPFLAGS'
29129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29133 if test "$cross_compiling" = yes; then
29134 ac_cv_func_mmap_file=no
29136 cat >conftest.$ac_ext <<_ACEOF
29140 cat confdefs.h >>conftest.$ac_ext
29141 cat >>conftest.$ac_ext <<_ACEOF
29142 /* end confdefs.h. */
29144 #include <sys/types.h>
29145 #include <sys/mman.h>
29153 fd = creat ("foo",0777);
29154 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29156 return (fd != (int) MAP_FAILED);
29161 rm -f conftest$ac_exeext
29162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29163 (eval $ac_link) 2>&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29168 (eval $ac_try) 2>&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); }; }; then
29172 ac_cv_func_mmap_file=yes
29174 echo "$as_me: program exited with status $ac_status" >&5
29175 echo "$as_me: failed program was:" >&5
29176 sed 's/^/| /' conftest.$ac_ext >&5
29178 ( exit $ac_status )
29179 ac_cv_func_mmap_file=no
29181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29184 ac_cpp='$CPP $CPPFLAGS'
29185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29191 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29192 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29193 if test "$ac_cv_func_mmap_file" = yes; then
29195 cat >>confdefs.h <<\_ACEOF
29196 #define HAVE_MMAP_FILE
29203 echo "$as_me:$LINENO: checking for mprotect" >&5
29204 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29205 if test "${ac_cv_func_mprotect+set}" = set; then
29206 echo $ECHO_N "(cached) $ECHO_C" >&6
29208 cat >conftest.$ac_ext <<_ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29214 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29216 #define mprotect innocuous_mprotect
29218 /* System header to define __stub macros and hopefully few prototypes,
29219 which can conflict with char mprotect (); below.
29220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29221 <limits.h> exists even on freestanding compilers. */
29224 # include <limits.h>
29226 # include <assert.h>
29231 /* Override any gcc2 internal prototype to avoid an error. */
29236 /* We use char because int might match the return type of a gcc2
29237 builtin and then its argument prototype would still apply. */
29239 /* The GNU C library defines this for functions which it implements
29240 to always fail with ENOSYS. Some functions are actually named
29241 something starting with __ and the normal name is an alias. */
29242 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29245 char (*f) () = mprotect;
29254 return f != mprotect;
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29261 (eval $ac_link) 2>conftest.er1
29263 grep -v '^ *+' conftest.er1 >conftest.err
29265 cat conftest.err >&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); } &&
29268 { ac_try='test -z "$ac_c_werror_flag"
29269 || test ! -s conftest.err'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; } &&
29275 { ac_try='test -s conftest$ac_exeext'
29276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277 (eval $ac_try) 2>&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); }; }; then
29281 ac_cv_func_mprotect=yes
29283 echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29286 ac_cv_func_mprotect=no
29288 rm -f conftest.err conftest.$ac_objext \
29289 conftest$ac_exeext conftest.$ac_ext
29291 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29292 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29293 if test $ac_cv_func_mprotect = yes; then
29296 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29297 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29298 { (exit 1); exit 1; }; }
29302 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29304 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29305 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29307 if test "$ac_cv_func_mmap_file" = "no"
29309 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29310 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29314 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29315 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29316 if test "${llvm_cv_llvmgcc+set}" = set; then
29317 echo $ECHO_N "(cached) $ECHO_C" >&6
29319 llvm_cv_llvmgcc='llvmgcc_not_found'
29320 if test -d "$LLVMGCCDIR" ; then
29321 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29322 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29326 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29327 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29329 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29330 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29331 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29332 echo $ECHO_N "(cached) $ECHO_C" >&6
29334 llvm_cv_llvmgcc_sanity="no"
29335 if test -x "$llvm_cv_llvmgcc" ; then
29336 cp /dev/null conftest.c
29337 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29338 if test $? -eq 0 ; then
29339 llvm_cv_llvmgcc_sanity="yes"
29344 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29345 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29347 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29348 LLVMGCC="$llvm_cv_llvmgcc"
29350 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29351 LLVMCC1=$llvmcc1path
29353 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29354 LLVMCC1PLUS=$llvmcc1pluspath
29358 SHLIBEXT=$libltdl_cv_shlibext
29361 # Translate the various configuration directories and other basic
29362 # information into substitutions that will end up in Makefile.config.in
29363 # that these configured values can be used by the makefiles
29364 eval LLVM_PREFIX="${prefix}";
29365 eval LLVM_BINDIR="${prefix}/bin";
29366 eval LLVM_LIBDIR="${prefix}/lib";
29367 eval LLVM_DATADIR="${prefix}/share/llvm";
29368 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29369 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29370 eval LLVM_INCLUDEDIR="${prefix}/include";
29371 eval LLVM_INFODIR="${prefix}/info";
29372 eval LLVM_MANDIR="${prefix}/man";
29373 LLVM_CONFIGTIME=`date`
29385 # Place the various directores into the config.h file as #defines so that we
29386 # can know about the installation paths within LLVM.
29388 cat >>confdefs.h <<_ACEOF
29389 #define LLVM_PREFIX "$LLVM_PREFIX"
29393 cat >>confdefs.h <<_ACEOF
29394 #define LLVM_BINDIR "$LLVM_BINDIR"
29398 cat >>confdefs.h <<_ACEOF
29399 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29403 cat >>confdefs.h <<_ACEOF
29404 #define LLVM_DATADIR "$LLVM_DATADIR"
29408 cat >>confdefs.h <<_ACEOF
29409 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29413 cat >>confdefs.h <<_ACEOF
29414 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29418 cat >>confdefs.h <<_ACEOF
29419 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29423 cat >>confdefs.h <<_ACEOF
29424 #define LLVM_INFODIR "$LLVM_INFODIR"
29428 cat >>confdefs.h <<_ACEOF
29429 #define LLVM_MANDIR "$LLVM_MANDIR"
29433 cat >>confdefs.h <<_ACEOF
29434 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29439 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29442 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29444 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29446 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29448 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29450 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29453 ac_config_files="$ac_config_files Makefile.config"
29456 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29459 ac_config_files="$ac_config_files docs/doxygen.cfg"
29462 ac_config_commands="$ac_config_commands Makefile"
29465 ac_config_commands="$ac_config_commands Makefile.common"
29468 ac_config_commands="$ac_config_commands examples/Makefile"
29471 ac_config_commands="$ac_config_commands lib/Makefile"
29474 ac_config_commands="$ac_config_commands runtime/Makefile"
29477 ac_config_commands="$ac_config_commands test/Makefile"
29480 ac_config_commands="$ac_config_commands test/Makefile.tests"
29483 ac_config_commands="$ac_config_commands tools/Makefile"
29486 ac_config_commands="$ac_config_commands utils/Makefile"
29489 ac_config_commands="$ac_config_commands projects/Makefile"
29493 cat >confcache <<\_ACEOF
29494 # This file is a shell script that caches the results of configure
29495 # tests run on this system so they can be shared between configure
29496 # scripts and configure runs, see configure's option --config-cache.
29497 # It is not useful on other systems. If it contains results you don't
29498 # want to keep, you may remove or edit it.
29500 # config.status only pays attention to the cache file if you give it
29501 # the --recheck option to rerun configure.
29503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29505 # following values.
29509 # The following way of writing the cache mishandles newlines in values,
29510 # but we know of no workaround that is simple, portable, and efficient.
29511 # So, don't put newlines in cache variables' values.
29512 # Ultrix sh set writes to stderr and can't be redirected directly,
29513 # and sets the high bit in the cache file unless we assign to the vars.
29516 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29518 # `set' does not quote correctly, so add quotes (double-quote
29519 # substitution turns \\\\ into \\, and sed turns \\ into \).
29522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29525 # `set' quotes correctly as required by POSIX, so do not add quotes.
29527 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29536 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29538 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29539 if test -w $cache_file; then
29540 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29541 cat confcache >$cache_file
29543 echo "not updating unwritable cache $cache_file"
29548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29549 # Let make expand exec_prefix.
29550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29552 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29553 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29554 # trailing colons and then remove the whole line if VPATH becomes empty
29555 # (actually we leave an empty line to preserve line numbers).
29556 if test "x$srcdir" = x.; then
29557 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29558 s/:*\$(srcdir):*/:/;
29559 s/:*\${srcdir}:*/:/;
29561 s/^\([^=]*=[ ]*\):*/\1/;
29567 DEFS=-DHAVE_CONFIG_H
29571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29572 # 1. Remove the extension, and $U if already installed.
29573 ac_i=`echo "$ac_i" |
29574 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29576 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29577 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29579 LIBOBJS=$ac_libobjs
29581 LTLIBOBJS=$ac_ltlibobjs
29584 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29585 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29586 Usually this means the macro was only invoked conditionally." >&5
29587 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29588 Usually this means the macro was only invoked conditionally." >&2;}
29589 { (exit 1); exit 1; }; }
29591 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29592 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29593 Usually this means the macro was only invoked conditionally." >&5
29594 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29595 Usually this means the macro was only invoked conditionally." >&2;}
29596 { (exit 1); exit 1; }; }
29599 : ${CONFIG_STATUS=./config.status}
29600 ac_clean_files_save=$ac_clean_files
29601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29604 cat >$CONFIG_STATUS <<_ACEOF
29606 # Generated by $as_me.
29607 # Run this file to recreate the current configuration.
29608 # Compiler output produced by configure, useful for debugging
29609 # configure, is in config.log if it exists.
29612 ac_cs_recheck=false
29614 SHELL=\${CONFIG_SHELL-$SHELL}
29617 cat >>$CONFIG_STATUS <<\_ACEOF
29618 ## --------------------- ##
29619 ## M4sh Initialization. ##
29620 ## --------------------- ##
29622 # Be Bourne compatible
29623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29627 # is contrary to our usage. Disable this feature.
29628 alias -g '${1+"$@"}'='"$@"'
29629 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29632 DUALCASE=1; export DUALCASE # for MKS sh
29634 # Support unset when possible.
29635 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29642 # Work around bugs in pre-3.0 UWIN ksh.
29643 $as_unset ENV MAIL MAILPATH
29650 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29651 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29652 LC_TELEPHONE LC_TIME
29654 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29655 eval $as_var=C; export $as_var
29661 # Required to use basename.
29662 if expr a : '\(a\)' >/dev/null 2>&1; then
29668 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29669 as_basename=basename
29675 # Name of the executable.
29676 as_me=`$as_basename "$0" ||
29677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29678 X"$0" : 'X\(//\)$' \| \
29679 X"$0" : 'X\(/\)$' \| \
29680 . : '\(.\)' 2>/dev/null ||
29682 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29683 /^X\/\(\/\/\)$/{ s//\1/; q; }
29684 /^X\/\(\/\).*/{ s//\1/; q; }
29688 # PATH needs CR, and LINENO needs CR and PATH.
29689 # Avoid depending upon Character Ranges.
29690 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29691 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29692 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29693 as_cr_digits='0123456789'
29694 as_cr_alnum=$as_cr_Letters$as_cr_digits
29696 # The user is always right.
29697 if test "${PATH_SEPARATOR+set}" != set; then
29698 echo "#! /bin/sh" >conf$$.sh
29699 echo "exit 0" >>conf$$.sh
29701 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29710 as_lineno_1=$LINENO
29711 as_lineno_2=$LINENO
29712 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29713 test "x$as_lineno_1" != "x$as_lineno_2" &&
29714 test "x$as_lineno_3" = "x$as_lineno_2" || {
29715 # Find who we are. Look in the path if we contain no path at all
29718 *[\\/]* ) as_myself=$0 ;;
29719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29720 for as_dir in $PATH
29723 test -z "$as_dir" && as_dir=.
29724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29729 # We did not find ourselves, most probably we were run as `sh COMMAND'
29730 # in which case we are not to be found in the path.
29731 if test "x$as_myself" = x; then
29734 if test ! -f "$as_myself"; then
29735 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29736 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29737 { (exit 1); exit 1; }; }
29739 case $CONFIG_SHELL in
29741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29742 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29745 test -z "$as_dir" && as_dir=.
29746 for as_base in sh bash ksh sh5; do
29749 if ("$as_dir/$as_base" -c '
29750 as_lineno_1=$LINENO
29751 as_lineno_2=$LINENO
29752 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29753 test "x$as_lineno_1" != "x$as_lineno_2" &&
29754 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29755 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29756 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29757 CONFIG_SHELL=$as_dir/$as_base
29758 export CONFIG_SHELL
29759 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29767 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29768 # uniformly replaced by the line number. The first 'sed' inserts a
29769 # line-number line before each line; the second 'sed' does the real
29770 # work. The second script uses 'N' to pair each line-number line
29771 # with the numbered line, and appends trailing '-' during
29772 # substitution so that $LINENO is not a special case at line end.
29773 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29774 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29775 sed '=' <$as_myself |
29780 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29783 s,^['$as_cr_digits']*\n,,
29784 ' >$as_me.lineno &&
29785 chmod +x $as_me.lineno ||
29786 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29787 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29788 { (exit 1); exit 1; }; }
29790 # Don't try to exec as it changes $[0], causing all sort of problems
29791 # (the dirname of $[0] is not the place where we might find the
29792 # original and so on. Autoconf is especially sensible to this).
29794 # Exit status is that of the last command.
29799 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29800 *c*,-n*) ECHO_N= ECHO_C='
29802 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29803 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29806 if expr a : '\(a\)' >/dev/null 2>&1; then
29812 rm -f conf$$ conf$$.exe conf$$.file
29814 if ln -s conf$$.file conf$$ 2>/dev/null; then
29815 # We could just check for DJGPP; but this test a) works b) is more generic
29816 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29817 if test -f conf$$.exe; then
29818 # Don't use ln at all; we don't have any links
29823 elif ln conf$$.file conf$$ 2>/dev/null; then
29828 rm -f conf$$ conf$$.exe conf$$.file
29830 if mkdir -p . 2>/dev/null; then
29833 test -d ./-p && rmdir ./-p
29837 as_executable_p="test -f"
29839 # Sed expression to map a string onto a valid CPP name.
29840 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29842 # Sed expression to map a string onto a valid variable name.
29843 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29847 # We need space, tab and new line, in precisely that order.
29857 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29858 # report actual input values of CONFIG_FILES etc. instead of their
29859 # values after options handling. Logging --version etc. is OK.
29863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29864 ## Running $as_me. ##
29869 This file was extended by llvm $as_me 1.4, which was
29870 generated by GNU Autoconf 2.59. Invocation command line was
29872 CONFIG_FILES = $CONFIG_FILES
29873 CONFIG_HEADERS = $CONFIG_HEADERS
29874 CONFIG_LINKS = $CONFIG_LINKS
29875 CONFIG_COMMANDS = $CONFIG_COMMANDS
29879 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29883 # Files that config.status was made for.
29884 if test -n "$ac_config_files"; then
29885 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29888 if test -n "$ac_config_headers"; then
29889 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29892 if test -n "$ac_config_links"; then
29893 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29896 if test -n "$ac_config_commands"; then
29897 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29900 cat >>$CONFIG_STATUS <<\_ACEOF
29903 \`$as_me' instantiates files from templates according to the
29904 current configuration.
29906 Usage: $0 [OPTIONS] [FILE]...
29908 -h, --help print this help, then exit
29909 -V, --version print version number, then exit
29910 -q, --quiet do not print progress messages
29911 -d, --debug don't remove temporary files
29912 --recheck update $as_me by reconfiguring in the same conditions
29913 --file=FILE[:TEMPLATE]
29914 instantiate the configuration file FILE
29915 --header=FILE[:TEMPLATE]
29916 instantiate the configuration header FILE
29918 Configuration files:
29921 Configuration headers:
29924 Configuration links:
29927 Configuration commands:
29930 Report bugs to <bug-autoconf@gnu.org>."
29933 cat >>$CONFIG_STATUS <<_ACEOF
29935 llvm config.status 1.4
29936 configured by $0, generated by GNU Autoconf 2.59,
29937 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29939 Copyright (C) 2003 Free Software Foundation, Inc.
29940 This config.status script is free software; the Free Software Foundation
29941 gives unlimited permission to copy, distribute and modify it."
29946 cat >>$CONFIG_STATUS <<\_ACEOF
29947 # If no file are specified by the user, then we need to provide default
29948 # value. By we need to know if files were specified by the user.
29954 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29955 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29963 *) # This is not an option, so the user has probably given explicit
29966 ac_need_defaults=false;;
29970 # Handling of the options.
29972 cat >>$CONFIG_STATUS <<\_ACEOF
29973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29975 --version | --vers* | -V )
29976 echo "$ac_cs_version"; exit 0 ;;
29978 # Conflict between --help and --header
29979 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29980 Try \`$0 --help' for more information." >&5
29981 echo "$as_me: error: ambiguous option: $1
29982 Try \`$0 --help' for more information." >&2;}
29983 { (exit 1); exit 1; }; };;
29984 --help | --hel | -h )
29985 echo "$ac_cs_usage"; exit 0 ;;
29986 --debug | --d* | -d )
29988 --file | --fil | --fi | --f )
29990 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29991 ac_need_defaults=false;;
29992 --header | --heade | --head | --hea )
29994 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29995 ac_need_defaults=false;;
29996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30000 # This is an error.
30001 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30002 Try \`$0 --help' for more information." >&5
30003 echo "$as_me: error: unrecognized option: $1
30004 Try \`$0 --help' for more information." >&2;}
30005 { (exit 1); exit 1; }; } ;;
30007 *) ac_config_targets="$ac_config_targets $1" ;;
30013 ac_configure_extra_args=
30015 if $ac_cs_silent; then
30017 ac_configure_extra_args="$ac_configure_extra_args --silent"
30021 cat >>$CONFIG_STATUS <<_ACEOF
30022 if \$ac_cs_recheck; then
30023 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30024 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30029 cat >>$CONFIG_STATUS <<_ACEOF
30031 # INIT-COMMANDS section.
30034 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30035 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30036 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30037 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30038 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30039 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30040 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30041 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30042 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30043 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30049 cat >>$CONFIG_STATUS <<\_ACEOF
30050 for ac_config_target in $ac_config_targets
30052 case "$ac_config_target" in
30053 # Handling of arguments.
30054 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30055 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30056 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30057 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30058 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30059 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30060 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30061 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30062 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30063 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30064 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30065 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30066 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30067 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30068 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30069 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30070 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30071 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30072 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30073 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30074 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30075 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30076 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30079 { (exit 1); exit 1; }; };;
30083 # If the user did not use the arguments to specify the items to instantiate,
30084 # then the envvar interface is used. Set only those that are not.
30085 # We use the long form for the default assignment because of an extremely
30086 # bizarre bug on SunOS 4.1.3.
30087 if $ac_need_defaults; then
30088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30090 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30094 # Have a temporary directory for convenience. Make it in the build tree
30095 # simply because there is no reason to put it here, and in addition,
30096 # creating and moving files from /tmp can sometimes cause problems.
30097 # Create a temporary directory, and hook for its removal unless debugging.
30100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30101 trap '{ (exit 1); exit 1; }' 1 2 13 15
30104 # Create a (secure) tmp directory for tmp files.
30107 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30108 test -n "$tmp" && test -d "$tmp"
30111 tmp=./confstat$$-$RANDOM
30112 (umask 077 && mkdir $tmp)
30115 echo "$me: cannot create a temporary directory in ." >&2
30116 { (exit 1); exit 1; }
30121 cat >>$CONFIG_STATUS <<_ACEOF
30124 # CONFIG_FILES section.
30127 # No need to generate the scripts if there are no CONFIG_FILES.
30128 # This happens for instance when ./config.status config.h
30129 if test -n "\$CONFIG_FILES"; then
30130 # Protect against being on the right side of a sed subst in config.status.
30131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30133 s,@SHELL@,$SHELL,;t t
30134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30140 s,@exec_prefix@,$exec_prefix,;t t
30141 s,@prefix@,$prefix,;t t
30142 s,@program_transform_name@,$program_transform_name,;t t
30143 s,@bindir@,$bindir,;t t
30144 s,@sbindir@,$sbindir,;t t
30145 s,@libexecdir@,$libexecdir,;t t
30146 s,@datadir@,$datadir,;t t
30147 s,@sysconfdir@,$sysconfdir,;t t
30148 s,@sharedstatedir@,$sharedstatedir,;t t
30149 s,@localstatedir@,$localstatedir,;t t
30150 s,@libdir@,$libdir,;t t
30151 s,@includedir@,$includedir,;t t
30152 s,@oldincludedir@,$oldincludedir,;t t
30153 s,@infodir@,$infodir,;t t
30154 s,@mandir@,$mandir,;t t
30155 s,@build_alias@,$build_alias,;t t
30156 s,@host_alias@,$host_alias,;t t
30157 s,@target_alias@,$target_alias,;t t
30158 s,@DEFS@,$DEFS,;t t
30159 s,@ECHO_C@,$ECHO_C,;t t
30160 s,@ECHO_N@,$ECHO_N,;t t
30161 s,@ECHO_T@,$ECHO_T,;t t
30162 s,@LIBS@,$LIBS,;t t
30163 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30164 s,@subdirs@,$subdirs,;t t
30165 s,@build@,$build,;t t
30166 s,@build_cpu@,$build_cpu,;t t
30167 s,@build_vendor@,$build_vendor,;t t
30168 s,@build_os@,$build_os,;t t
30169 s,@host@,$host,;t t
30170 s,@host_cpu@,$host_cpu,;t t
30171 s,@host_vendor@,$host_vendor,;t t
30172 s,@host_os@,$host_os,;t t
30173 s,@target@,$target,;t t
30174 s,@target_cpu@,$target_cpu,;t t
30175 s,@target_vendor@,$target_vendor,;t t
30176 s,@target_os@,$target_os,;t t
30178 s,@ARCH@,$ARCH,;t t
30179 s,@ENDIAN@,$ENDIAN,;t t
30181 s,@CFLAGS@,$CFLAGS,;t t
30182 s,@LDFLAGS@,$LDFLAGS,;t t
30183 s,@CPPFLAGS@,$CPPFLAGS,;t t
30184 s,@ac_ct_CC@,$ac_ct_CC,;t t
30185 s,@EXEEXT@,$EXEEXT,;t t
30186 s,@OBJEXT@,$OBJEXT,;t t
30187 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30189 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30190 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30193 s,@CXXFLAGS@,$CXXFLAGS,;t t
30194 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30196 s,@LEXLIB@,$LEXLIB,;t t
30197 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30198 s,@FLEX@,$FLEX,;t t
30199 s,@YACC@,$YACC,;t t
30200 s,@BISON@,$BISON,;t t
30201 s,@ifGNUmake@,$ifGNUmake,;t t
30202 s,@LN_S@,$LN_S,;t t
30203 s,@DATE@,$DATE,;t t
30204 s,@FIND@,$FIND,;t t
30205 s,@GREP@,$GREP,;t t
30206 s,@MKDIR@,$MKDIR,;t t
30209 s,@RANLIB@,$RANLIB,;t t
30210 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30217 s,@BZIP2@,$BZIP2,;t t
30219 s,@DOXYGEN@,$DOXYGEN,;t t
30220 s,@ETAGS@,$ETAGS,;t t
30221 s,@GROFF@,$GROFF,;t t
30222 s,@GZIP@,$GZIP,;t t
30223 s,@POD2HTML@,$POD2HTML,;t t
30224 s,@POD2MAN@,$POD2MAN,;t t
30225 s,@RUNTEST@,$RUNTEST,;t t
30226 s,@TCLSH@,$TCLSH,;t t
30228 s,@EGREP@,$EGREP,;t t
30229 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30230 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30231 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30232 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30233 s,@LIBADD_DL@,$LIBADD_DL,;t t
30234 s,@ECHO@,$ECHO,;t t
30236 s,@ac_ct_AR@,$ac_ct_AR,;t t
30237 s,@STRIP@,$STRIP,;t t
30238 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30239 s,@CXXCPP@,$CXXCPP,;t t
30241 s,@FFLAGS@,$FFLAGS,;t t
30242 s,@ac_ct_F77@,$ac_ct_F77,;t t
30243 s,@LIBTOOL@,$LIBTOOL,;t t
30244 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30245 s,@ALLOCA@,$ALLOCA,;t t
30246 s,@MMAP_FILE@,$MMAP_FILE,;t t
30247 s,@LLVMGCC@,$LLVMGCC,;t t
30248 s,@LLVMCC1@,$LLVMCC1,;t t
30249 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30250 s,@SHLIBEXT@,$SHLIBEXT,;t t
30251 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30252 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30253 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30254 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30255 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30256 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30257 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30258 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30259 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30260 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30261 s,@LIBOBJS@,$LIBOBJS,;t t
30262 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30267 cat >>$CONFIG_STATUS <<\_ACEOF
30268 # Split the substitutions into bite-sized pieces for seds with
30269 # small command number limits, like on Digital OSF/1 and HP-UX.
30270 ac_max_sed_lines=48
30271 ac_sed_frag=1 # Number of current file.
30272 ac_beg=1 # First line for current file.
30273 ac_end=$ac_max_sed_lines # Line after last line for current file.
30276 while $ac_more_lines; do
30277 if test $ac_beg -gt 1; then
30278 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30280 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30282 if test ! -s $tmp/subs.frag; then
30283 ac_more_lines=false
30285 # The purpose of the label and of the branching condition is to
30286 # speed up the sed processing (if there are no `@' at all, there
30287 # is no need to browse any of the substitutions).
30288 # These are the two extra sed commands mentioned above.
30290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30291 if test -z "$ac_sed_cmds"; then
30292 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30294 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30296 ac_sed_frag=`expr $ac_sed_frag + 1`
30298 ac_end=`expr $ac_end + $ac_max_sed_lines`
30301 if test -z "$ac_sed_cmds"; then
30304 fi # test -n "$CONFIG_FILES"
30307 cat >>$CONFIG_STATUS <<\_ACEOF
30308 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30311 - | *:- | *:-:* ) # input from stdin
30313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30317 * ) ac_file_in=$ac_file.in ;;
30320 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30323 X"$ac_file" : 'X\(//\)[^/]' \| \
30324 X"$ac_file" : 'X\(//\)$' \| \
30325 X"$ac_file" : 'X\(/\)' \| \
30326 . : '\(.\)' 2>/dev/null ||
30328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30330 /^X\(\/\/\)$/{ s//\1/; q; }
30331 /^X\(\/\).*/{ s//\1/; q; }
30333 { if $as_mkdir_p; then
30338 while test ! -d "$as_dir"; do
30339 as_dirs="$as_dir $as_dirs"
30340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30342 X"$as_dir" : 'X\(//\)[^/]' \| \
30343 X"$as_dir" : 'X\(//\)$' \| \
30344 X"$as_dir" : 'X\(/\)' \| \
30345 . : '\(.\)' 2>/dev/null ||
30347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30349 /^X\(\/\/\)$/{ s//\1/; q; }
30350 /^X\(\/\).*/{ s//\1/; q; }
30353 test ! -n "$as_dirs" || mkdir $as_dirs
30354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30356 { (exit 1); exit 1; }; }; }
30360 if test "$ac_dir" != .; then
30361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30362 # A "../" for each directory in $ac_dir_suffix.
30363 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30365 ac_dir_suffix= ac_top_builddir=
30369 .) # No --srcdir option. We are building in place.
30371 if test -z "$ac_top_builddir"; then
30374 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30376 [\\/]* | ?:[\\/]* ) # Absolute path.
30377 ac_srcdir=$srcdir$ac_dir_suffix;
30378 ac_top_srcdir=$srcdir ;;
30379 *) # Relative path.
30380 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30381 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30384 # Do not use `cd foo && pwd` to compute absolute paths, because
30385 # the directories may not exist.
30387 .) ac_abs_builddir="$ac_dir";;
30390 .) ac_abs_builddir=`pwd`;;
30391 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30392 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30395 case $ac_abs_builddir in
30396 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30398 case ${ac_top_builddir}. in
30399 .) ac_abs_top_builddir=$ac_abs_builddir;;
30400 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30401 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30404 case $ac_abs_builddir in
30405 .) ac_abs_srcdir=$ac_srcdir;;
30408 .) ac_abs_srcdir=$ac_abs_builddir;;
30409 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30410 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30413 case $ac_abs_builddir in
30414 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30416 case $ac_top_srcdir in
30417 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30418 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30419 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30429 if test x"$ac_file" != x-; then
30430 { echo "$as_me:$LINENO: creating $ac_file" >&5
30431 echo "$as_me: creating $ac_file" >&6;}
30434 # Let's still pretend it is `configure' which instantiates (i.e., don't
30435 # use $as_me), people would be surprised to read:
30436 # /* config.h. Generated by config.status. */
30437 if test x"$ac_file" = x-; then
30440 configure_input="$ac_file. "
30442 configure_input=$configure_input"Generated from `echo $ac_file_in |
30443 sed 's,.*/,,'` by configure."
30445 # First look for the input files in the build tree, otherwise in the
30447 ac_file_inputs=`IFS=:
30448 for f in $ac_file_in; do
30450 -) echo $tmp/stdin ;;
30452 # Absolute (can't be DOS-style, as IFS=:)
30453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30454 echo "$as_me: error: cannot find input file: $f" >&2;}
30455 { (exit 1); exit 1; }; }
30458 if test -f "$f"; then
30461 elif test -f "$srcdir/$f"; then
30466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30467 echo "$as_me: error: cannot find input file: $f" >&2;}
30468 { (exit 1); exit 1; }; }
30471 done` || { (exit 1); exit 1; }
30473 cat >>$CONFIG_STATUS <<_ACEOF
30477 cat >>$CONFIG_STATUS <<\_ACEOF
30479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30480 s,@configure_input@,$configure_input,;t t
30481 s,@srcdir@,$ac_srcdir,;t t
30482 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30483 s,@top_srcdir@,$ac_top_srcdir,;t t
30484 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30485 s,@builddir@,$ac_builddir,;t t
30486 s,@abs_builddir@,$ac_abs_builddir,;t t
30487 s,@top_builddir@,$ac_top_builddir,;t t
30488 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30489 s,@INSTALL@,$ac_INSTALL,;t t
30490 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30492 if test x"$ac_file" != x-; then
30493 mv $tmp/out $ac_file
30501 cat >>$CONFIG_STATUS <<\_ACEOF
30504 # CONFIG_HEADER section.
30507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30510 # ac_d sets the value in "#define NAME VALUE" lines.
30511 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30512 ac_dB='[ ].*$,\1#\2'
30515 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30516 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30517 ac_uB='$,\1#\2define\3'
30521 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30524 - | *:- | *:-:* ) # input from stdin
30526 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30528 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30530 * ) ac_file_in=$ac_file.in ;;
30533 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30534 echo "$as_me: creating $ac_file" >&6;}
30536 # First look for the input files in the build tree, otherwise in the
30538 ac_file_inputs=`IFS=:
30539 for f in $ac_file_in; do
30541 -) echo $tmp/stdin ;;
30543 # Absolute (can't be DOS-style, as IFS=:)
30544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30545 echo "$as_me: error: cannot find input file: $f" >&2;}
30546 { (exit 1); exit 1; }; }
30547 # Do quote $f, to prevent DOS paths from being IFS'd.
30550 if test -f "$f"; then
30553 elif test -f "$srcdir/$f"; then
30558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30559 echo "$as_me: error: cannot find input file: $f" >&2;}
30560 { (exit 1); exit 1; }; }
30563 done` || { (exit 1); exit 1; }
30564 # Remove the trailing spaces.
30565 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30569 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30570 # `conftest.undefs', that substitutes the proper values into
30571 # config.h.in to produce config.h. The first handles `#define'
30572 # templates, and the second `#undef' templates.
30573 # And first: Protect against being on the right side of a sed subst in
30574 # config.status. Protect against being in an unquoted here document
30575 # in config.status.
30576 rm -f conftest.defines conftest.undefs
30577 # Using a here document instead of a string reduces the quoting nightmare.
30578 # Putting comments in sed scripts is not portable.
30580 # `end' is used to avoid that the second main sed command (meant for
30581 # 0-ary CPP macros) applies to n-ary macro definitions.
30582 # See the Autoconf documentation for `clear'.
30583 cat >confdef2sed.sed <<\_ACEOF
30588 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30590 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30593 # If some macros were called several times there might be several times
30594 # the same #defines, which is useless. Nevertheless, we may not want to
30595 # sort them, since we want the *last* AC-DEFINE to be honored.
30596 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30597 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30598 rm -f confdef2sed.sed
30600 # This sed command replaces #undef with comments. This is necessary, for
30601 # example, in the case of _POSIX_SOURCE, which is predefined and required
30602 # on some systems where configure will not decide to define it.
30603 cat >>conftest.undefs <<\_ACEOF
30604 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30607 # Break up conftest.defines because some shells have a limit on the size
30608 # of here documents, and old seds have small limits too (100 cmds).
30609 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30610 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30611 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30612 echo ' :' >>$CONFIG_STATUS
30613 rm -f conftest.tail
30614 while grep . conftest.defines >/dev/null
30616 # Write a limited-size here document to $tmp/defines.sed.
30617 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30618 # Speed up: don't consider the non `#define' lines.
30619 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30620 # Work around the forget-to-reset-the-flag bug.
30621 echo 't clr' >>$CONFIG_STATUS
30622 echo ': clr' >>$CONFIG_STATUS
30623 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30625 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30627 mv $tmp/out $tmp/in
30629 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30630 rm -f conftest.defines
30631 mv conftest.tail conftest.defines
30633 rm -f conftest.defines
30634 echo ' fi # grep' >>$CONFIG_STATUS
30635 echo >>$CONFIG_STATUS
30637 # Break up conftest.undefs because some shells have a limit on the size
30638 # of here documents, and old seds have small limits too (100 cmds).
30639 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30640 rm -f conftest.tail
30641 while grep . conftest.undefs >/dev/null
30643 # Write a limited-size here document to $tmp/undefs.sed.
30644 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30645 # Speed up: don't consider the non `#undef'
30646 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30647 # Work around the forget-to-reset-the-flag bug.
30648 echo 't clr' >>$CONFIG_STATUS
30649 echo ': clr' >>$CONFIG_STATUS
30650 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30652 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30654 mv $tmp/out $tmp/in
30656 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30657 rm -f conftest.undefs
30658 mv conftest.tail conftest.undefs
30660 rm -f conftest.undefs
30662 cat >>$CONFIG_STATUS <<\_ACEOF
30663 # Let's still pretend it is `configure' which instantiates (i.e., don't
30664 # use $as_me), people would be surprised to read:
30665 # /* config.h. Generated by config.status. */
30666 if test x"$ac_file" = x-; then
30667 echo "/* Generated by configure. */" >$tmp/config.h
30669 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30671 cat $tmp/in >>$tmp/config.h
30673 if test x"$ac_file" != x-; then
30674 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30675 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30676 echo "$as_me: $ac_file is unchanged" >&6;}
30678 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30680 X"$ac_file" : 'X\(//\)[^/]' \| \
30681 X"$ac_file" : 'X\(//\)$' \| \
30682 X"$ac_file" : 'X\(/\)' \| \
30683 . : '\(.\)' 2>/dev/null ||
30685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30687 /^X\(\/\/\)$/{ s//\1/; q; }
30688 /^X\(\/\).*/{ s//\1/; q; }
30690 { if $as_mkdir_p; then
30695 while test ! -d "$as_dir"; do
30696 as_dirs="$as_dir $as_dirs"
30697 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30699 X"$as_dir" : 'X\(//\)[^/]' \| \
30700 X"$as_dir" : 'X\(//\)$' \| \
30701 X"$as_dir" : 'X\(/\)' \| \
30702 . : '\(.\)' 2>/dev/null ||
30704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30706 /^X\(\/\/\)$/{ s//\1/; q; }
30707 /^X\(\/\).*/{ s//\1/; q; }
30710 test ! -n "$as_dirs" || mkdir $as_dirs
30711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30713 { (exit 1); exit 1; }; }; }
30716 mv $tmp/config.h $ac_file
30720 rm -f $tmp/config.h
30724 cat >>$CONFIG_STATUS <<\_ACEOF
30727 # CONFIG_LINKS section.
30730 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30731 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30732 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30734 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30735 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30737 if test ! -r $srcdir/$ac_source; then
30738 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30739 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30740 { (exit 1); exit 1; }; }
30744 # Make relative symlinks.
30745 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30746 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30747 X"$ac_dest" : 'X\(//\)[^/]' \| \
30748 X"$ac_dest" : 'X\(//\)$' \| \
30749 X"$ac_dest" : 'X\(/\)' \| \
30750 . : '\(.\)' 2>/dev/null ||
30752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30754 /^X\(\/\/\)$/{ s//\1/; q; }
30755 /^X\(\/\).*/{ s//\1/; q; }
30757 { if $as_mkdir_p; then
30758 mkdir -p "$ac_dest_dir"
30760 as_dir="$ac_dest_dir"
30762 while test ! -d "$as_dir"; do
30763 as_dirs="$as_dir $as_dirs"
30764 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30766 X"$as_dir" : 'X\(//\)[^/]' \| \
30767 X"$as_dir" : 'X\(//\)$' \| \
30768 X"$as_dir" : 'X\(/\)' \| \
30769 . : '\(.\)' 2>/dev/null ||
30771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30773 /^X\(\/\/\)$/{ s//\1/; q; }
30774 /^X\(\/\).*/{ s//\1/; q; }
30777 test ! -n "$as_dirs" || mkdir $as_dirs
30778 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30779 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30780 { (exit 1); exit 1; }; }; }
30784 if test "$ac_dest_dir" != .; then
30785 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30786 # A "../" for each directory in $ac_dir_suffix.
30787 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30789 ac_dir_suffix= ac_top_builddir=
30793 .) # No --srcdir option. We are building in place.
30795 if test -z "$ac_top_builddir"; then
30798 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30800 [\\/]* | ?:[\\/]* ) # Absolute path.
30801 ac_srcdir=$srcdir$ac_dir_suffix;
30802 ac_top_srcdir=$srcdir ;;
30803 *) # Relative path.
30804 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30805 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30808 # Do not use `cd foo && pwd` to compute absolute paths, because
30809 # the directories may not exist.
30811 .) ac_abs_builddir="$ac_dest_dir";;
30813 case "$ac_dest_dir" in
30814 .) ac_abs_builddir=`pwd`;;
30815 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30816 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30819 case $ac_abs_builddir in
30820 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30822 case ${ac_top_builddir}. in
30823 .) ac_abs_top_builddir=$ac_abs_builddir;;
30824 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30825 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30828 case $ac_abs_builddir in
30829 .) ac_abs_srcdir=$ac_srcdir;;
30832 .) ac_abs_srcdir=$ac_abs_builddir;;
30833 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30834 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30837 case $ac_abs_builddir in
30838 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30840 case $ac_top_srcdir in
30841 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30842 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30843 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30849 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30850 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30853 # Try a symlink, then a hard link, then a copy.
30854 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30855 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30856 cp -p $srcdir/$ac_source $ac_dest ||
30857 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30858 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30859 { (exit 1); exit 1; }; }
30862 cat >>$CONFIG_STATUS <<\_ACEOF
30865 # CONFIG_COMMANDS section.
30867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30868 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30869 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30870 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30872 X"$ac_dest" : 'X\(//\)[^/]' \| \
30873 X"$ac_dest" : 'X\(//\)$' \| \
30874 X"$ac_dest" : 'X\(/\)' \| \
30875 . : '\(.\)' 2>/dev/null ||
30877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30879 /^X\(\/\/\)$/{ s//\1/; q; }
30880 /^X\(\/\).*/{ s//\1/; q; }
30882 { if $as_mkdir_p; then
30887 while test ! -d "$as_dir"; do
30888 as_dirs="$as_dir $as_dirs"
30889 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30891 X"$as_dir" : 'X\(//\)[^/]' \| \
30892 X"$as_dir" : 'X\(//\)$' \| \
30893 X"$as_dir" : 'X\(/\)' \| \
30894 . : '\(.\)' 2>/dev/null ||
30896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30898 /^X\(\/\/\)$/{ s//\1/; q; }
30899 /^X\(\/\).*/{ s//\1/; q; }
30902 test ! -n "$as_dirs" || mkdir $as_dirs
30903 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30905 { (exit 1); exit 1; }; }; }
30909 if test "$ac_dir" != .; then
30910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30911 # A "../" for each directory in $ac_dir_suffix.
30912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30914 ac_dir_suffix= ac_top_builddir=
30918 .) # No --srcdir option. We are building in place.
30920 if test -z "$ac_top_builddir"; then
30923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30925 [\\/]* | ?:[\\/]* ) # Absolute path.
30926 ac_srcdir=$srcdir$ac_dir_suffix;
30927 ac_top_srcdir=$srcdir ;;
30928 *) # Relative path.
30929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30933 # Do not use `cd foo && pwd` to compute absolute paths, because
30934 # the directories may not exist.
30936 .) ac_abs_builddir="$ac_dir";;
30939 .) ac_abs_builddir=`pwd`;;
30940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30944 case $ac_abs_builddir in
30945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30947 case ${ac_top_builddir}. in
30948 .) ac_abs_top_builddir=$ac_abs_builddir;;
30949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30953 case $ac_abs_builddir in
30954 .) ac_abs_srcdir=$ac_srcdir;;
30957 .) ac_abs_srcdir=$ac_abs_builddir;;
30958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30962 case $ac_abs_builddir in
30963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30965 case $ac_top_srcdir in
30966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30973 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30974 echo "$as_me: executing $ac_dest commands" >&6;}
30976 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30977 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
30978 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
30979 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
30980 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
30981 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30982 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
30983 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
30984 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
30985 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
30990 cat >>$CONFIG_STATUS <<\_ACEOF
30992 { (exit 0); exit 0; }
30994 chmod +x $CONFIG_STATUS
30995 ac_clean_files=$ac_clean_files_save
30998 # configure is writing to config.log, and then calls config.status.
30999 # config.status does its own redirection, appending to config.log.
31000 # Unfortunately, on DOS this fails, as config.log is still kept open
31001 # by configure, so config.status won't be able to write to it; its
31002 # output is simply discarded. So we exec the FD to /dev/null,
31003 # effectively closing config.log, so it can be properly (re)opened and
31004 # appended to by config.status. When coming back to configure, we
31005 # need to make the FD available again.
31006 if test "$no_create" != yes; then
31008 ac_config_status_args=
31009 test "$silent" = yes &&
31010 ac_config_status_args="$ac_config_status_args --quiet"
31012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31015 # would make configure fail if this is the last instruction.
31016 $ac_cs_success || { (exit 1); exit 1; }
31020 # CONFIG_SUBDIRS section.
31022 if test "$no_recursion" != yes; then
31024 # Remove --cache-file and --srcdir arguments so they do not pile up.
31025 ac_sub_configure_args=
31027 for ac_arg in $ac_configure_args; do
31028 if test -n "$ac_prev"; then
31033 -cache-file | --cache-file | --cache-fil | --cache-fi \
31034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31035 ac_prev=cache_file ;;
31036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31040 --config-cache | -C)
31042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31050 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31054 # Always prepend --prefix to ensure using the same prefix
31055 # in subdir configurations.
31056 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31059 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31061 # Do not complain, so a configure script can configure whichever
31062 # parts of a large source tree are present.
31063 test -d $srcdir/$ac_dir || continue
31065 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31066 echo "$as_me: configuring in $ac_dir" >&6;}
31067 { if $as_mkdir_p; then
31072 while test ! -d "$as_dir"; do
31073 as_dirs="$as_dir $as_dirs"
31074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31076 X"$as_dir" : 'X\(//\)[^/]' \| \
31077 X"$as_dir" : 'X\(//\)$' \| \
31078 X"$as_dir" : 'X\(/\)' \| \
31079 . : '\(.\)' 2>/dev/null ||
31081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31083 /^X\(\/\/\)$/{ s//\1/; q; }
31084 /^X\(\/\).*/{ s//\1/; q; }
31087 test ! -n "$as_dirs" || mkdir $as_dirs
31088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31090 { (exit 1); exit 1; }; }; }
31094 if test "$ac_dir" != .; then
31095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31096 # A "../" for each directory in $ac_dir_suffix.
31097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31099 ac_dir_suffix= ac_top_builddir=
31103 .) # No --srcdir option. We are building in place.
31105 if test -z "$ac_top_builddir"; then
31108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31110 [\\/]* | ?:[\\/]* ) # Absolute path.
31111 ac_srcdir=$srcdir$ac_dir_suffix;
31112 ac_top_srcdir=$srcdir ;;
31113 *) # Relative path.
31114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31118 # Do not use `cd foo && pwd` to compute absolute paths, because
31119 # the directories may not exist.
31121 .) ac_abs_builddir="$ac_dir";;
31124 .) ac_abs_builddir=`pwd`;;
31125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31129 case $ac_abs_builddir in
31130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31132 case ${ac_top_builddir}. in
31133 .) ac_abs_top_builddir=$ac_abs_builddir;;
31134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31138 case $ac_abs_builddir in
31139 .) ac_abs_srcdir=$ac_srcdir;;
31142 .) ac_abs_srcdir=$ac_abs_builddir;;
31143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31147 case $ac_abs_builddir in
31148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31150 case $ac_top_srcdir in
31151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31160 # Check for guested configure; otherwise get Cygnus style configure.
31161 if test -f $ac_srcdir/configure.gnu; then
31162 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31163 elif test -f $ac_srcdir/configure; then
31164 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31165 elif test -f $ac_srcdir/configure.in; then
31166 ac_sub_configure=$ac_configure
31168 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31173 # The recursion is here.
31174 if test -n "$ac_sub_configure"; then
31175 # Make the cache file name correct relative to the subdirectory.
31176 case $cache_file in
31177 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31178 *) # Relative path.
31179 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31182 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31183 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31184 # The eval makes quoting arguments work.
31185 eval $ac_sub_configure $ac_sub_configure_args \
31186 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31187 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31188 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31189 { (exit 1); exit 1; }; }
31197 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31198 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31199 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31200 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31201 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31202 { echo "$as_me:$LINENO: WARNING: ***** " >&5
31203 echo "$as_me: WARNING: ***** " >&2;}
31204 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31205 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31206 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31207 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31208 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31209 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}