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 PYTHON QMTEST RUNTEST 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-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1057 include additional configurations [automatic]
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1076 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1087 if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 ac_dir_suffix= ac_top_builddir=
1096 .) # No --srcdir option. We are building in place.
1098 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1114 .) ac_abs_builddir="$ac_dir";;
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1161 $ac_configure --help
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1173 generated by GNU Autoconf 2.59
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by llvm $as_me 1.4, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1534 for ac_dir in autoconf $srcdir/autoconf; do
1535 if test -f $ac_dir/install-sh; then
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 elif test -f $ac_dir/install.sh; then
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 elif test -f $ac_dir/shtool; then
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 if test -z "$ac_aux_dir"; then
1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1552 { (exit 1); exit 1; }; }
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 if test ${srcdir} != "." ; then
1560 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1562 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563 { (exit 1); exit 1; }; }
1567 for i in `ls ${srcdir}/projects`
1569 if test -d ${srcdir}/projects/${i} ; then
1574 subdirs="$subdirs projects/sample"
1578 subdirs="$subdirs projects/Stacker"
1582 subdirs="$subdirs projects/llvm-test"
1586 subdirs="$subdirs projects/llvm-reopt"
1590 subdirs="$subdirs projects/llvm-gcc"
1594 subdirs="$subdirs projects/Java"
1598 subdirs="$subdirs projects/llvm-tv"
1602 subdirs="$subdirs projects/llvm-fefw"
1606 subdirs="$subdirs projects/poolalloc"
1609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 echo "$as_me:$LINENO: checking target system type" >&5
1672 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673 if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 ac_cv_target_alias=$target_alias
1677 test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1685 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686 echo "${ECHO_T}$ac_cv_target" >&6
1687 target=$ac_cv_target
1688 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693 # The aliases save the names the user supplied, while $host etc.
1694 # will get canonicalized.
1695 test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1698 program_prefix=${target_alias}-
1700 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1701 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1702 if test "${llvm_cv_platform_type+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1707 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1708 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1709 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1710 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1711 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1712 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1713 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1714 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1715 *) llvm_cv_platform_type="Unknown" ;;
1718 echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1719 echo "${ECHO_T}$llvm_cv_platform_type" >&6
1721 if test "$llvm_cv_platform_type" = "Unknown" ; then
1722 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1723 echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
1724 { (exit 1); exit 1; }; }
1727 OS=$llvm_cv_platform_type
1730 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
1734 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1739 echo "$as_me:$LINENO: checking target architecture" >&5
1740 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1741 if test "${llvm_cv_target_arch+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 i*86-*) llvm_cv_target_arch="x86" ;;
1746 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1747 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1748 *) llvm_cv_target_arch="Unknown" ;;
1751 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1752 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1754 if test "$llvm_cv_target_arch" = "Unknown" ; then
1755 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1756 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1759 ARCH=$llvm_cv_target_arch
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$ac_cv_prog_CC"; then
1806 # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1884 if test -z "$ac_cv_prog_CC"; then
1886 # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC="cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1927 if test -z "$CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947 ac_prog_rejected=yes
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1972 if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$CC" && break
2023 if test -z "$CC"; then
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_ac_ct_CC="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$ac_ct_CC" && break
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO:" \
2079 "checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2097 cat >conftest.$ac_ext <<_ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2117 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121 (eval $ac_link_default) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 # Find the output, starting from the most likely. This scheme is
2126 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2129 # Be careful to initialize this variable, since it used to be cached.
2130 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 # b.out is created by i960 compilers.
2133 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 test -f "$ac_file" || continue
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2140 # This is the source file.
2143 # We found the default executable, but exeext='' is most
2147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 # FIXME: I believe we export ac_cv_exeext for Libtool,
2149 # but it would be cool to find out if it's true. Does anybody
2150 # maintain Libtool? --akim.
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165 { (exit 77); exit 77; }; }
2168 ac_exeext=$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_file" >&5
2170 echo "${ECHO_T}$ac_file" >&6
2172 # Check the compiler produces executables we can run. If not, either
2173 # the compiler is broken, or we cross compile.
2174 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177 # If not cross compiling, check that we can run a simple program.
2178 if test "$cross_compiling" != yes; then
2179 if { ac_try='./$ac_file'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 if test "$cross_compiling" = maybe; then
2190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&2;}
2196 { (exit 1); exit 1; }; }
2200 echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6
2203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204 ac_clean_files=$ac_clean_files_save
2205 # Check the compiler produces executables we can run. If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210 echo "${ECHO_T}$cross_compiling" >&6
2212 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215 (eval $ac_link) 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2221 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 for ac_file in conftest.exe conftest conftest.*; do
2224 test -f "$ac_file" || continue
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>conftest.er1
2325 grep -v '^ *+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
2330 { ac_try='test -z "$ac_c_werror_flag"
2331 || test ! -s conftest.err'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; } &&
2337 { ac_try='test -s conftest.$ac_objext'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2354 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356 GCC=`test $ac_compiler_gnu = yes && echo yes`
2357 ac_test_CFLAGS=${CFLAGS+set}
2358 ac_save_CFLAGS=$CFLAGS
2360 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362 if test "${ac_cv_prog_cc_g+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2380 rm -f conftest.$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try='test -z "$ac_c_werror_flag"
2390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413 if test "$ac_test_CFLAGS" = set; then
2414 CFLAGS=$ac_save_CFLAGS
2415 elif test $ac_cv_prog_cc_g = yes; then
2416 if test "$GCC" = yes; then
2422 if test "$GCC" = yes; then
2428 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_cv_prog_cc_stdc=no
2435 cat >conftest.$ac_ext <<_ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2443 #include <sys/types.h>
2444 #include <sys/stat.h>
2445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2446 struct buf { int x; };
2447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448 static char *e (p, i)
2454 static char *f (char * (*g) (char **, int), char **p, ...)
2459 s = g (p, va_arg (v,int));
2464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2465 function prototypes and stuff, but not '\xHH' hex character constants.
2466 These don't provoke an error unfortunately, instead are silently treated
2467 as 'x'. The following induces an error, until -std1 is added to get
2468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2469 array size at least. It's necessary to write '\x00'==0 to get something
2470 that's true only with -std1. */
2471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2487 # Don't try gcc -ansi; that turns off useful extensions and
2488 # breaks some systems' header files.
2489 # AIX -qlanglvl=ansi
2490 # Ultrix and OSF/1 -std1
2491 # HP-UX 10.20 and later -Ae
2492 # HP-UX older versions -Aa -D_HPUX_SOURCE
2493 # SVR4 -Xc -D__EXTENSIONS__
2494 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496 CC="$ac_save_CC $ac_arg"
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 for ac_declaration in \
2576 'extern "C" void std::exit (int) throw (); using std::exit;' \
2577 'extern "C" void std::exit (int); using std::exit;' \
2578 'extern "C" void exit (int) throw ();' \
2579 'extern "C" void exit (int);' \
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 if test -n "$ac_declaration"; then
2675 echo '#ifdef __cplusplus' >>confdefs.h
2676 echo $ac_declaration >>confdefs.h
2677 echo '#endif' >>confdefs.h
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2694 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2695 if test "${ac_cv_c_bigendian+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 # See if sys/param.h defines the BYTE_ORDER macro.
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2705 #include <sys/types.h>
2706 #include <sys/param.h>
2711 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 # It does; now see whether it defined to BIG_ENDIAN or not.
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 #include <sys/types.h>
2749 #include <sys/param.h>
2754 #if BYTE_ORDER != BIG_ENDIAN
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_c_bigendian=yes
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 ac_cv_c_bigendian=no
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 # It does not; compile a test program.
2797 if test "$cross_compiling" = yes; then
2798 # try to guess the endianness by grepping values into an object file
2799 ac_cv_c_bigendian=unknown
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2807 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2808 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2809 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2810 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2811 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2815 _ascii (); _ebcdic ();
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2843 ac_cv_c_bigendian=yes
2845 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2846 if test "$ac_cv_c_bigendian" = unknown; then
2847 ac_cv_c_bigendian=no
2849 # finding both strings is unlikely to happen, but who knows?
2850 ac_cv_c_bigendian=unknown
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 cat >conftest.$ac_ext <<_ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2869 /* Are we little or big endian? From Harbison&Steele. */
2873 char c[sizeof (long)];
2876 exit (u.c[sizeof (long) - 1] == 1);
2879 rm -f conftest$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_c_bigendian=no
2892 echo "$as_me: program exited with status $ac_status" >&5
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2897 ac_cv_c_bigendian=yes
2899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2905 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2906 case $ac_cv_c_bigendian in
2914 { { echo "$as_me:$LINENO: error: unknown endianness
2915 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2916 echo "$as_me: error: unknown endianness
2917 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2918 { (exit 1); exit 1; }; } ;;
2923 # Check whether --enable-optimized or --disable-optimized was given.
2924 if test "${enable_optimized+set}" = set; then
2925 enableval="$enable_optimized"
2930 if test ${enableval} = "no" ; then
2934 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2938 # Check whether --enable-jit or --disable-jit was given.
2939 if test "${enable_jit+set}" = set; then
2940 enableval="$enable_jit"
2945 if test ${enableval} = "no"
2950 case "$llvm_cv_target_arch" in
2951 x86) JIT=TARGET_HAS_JIT=1
2953 Sparc) JIT=TARGET_HAS_JIT=1
2955 PowerPC) JIT=TARGET_HAS_JIT=1
2962 # Check whether --enable-doxygen or --disable-doxygen was given.
2963 if test "${enable_doxygen+set}" = set; then
2964 enableval="$enable_doxygen"
2969 case "$enableval" in
2970 yes) ENABLE_DOXYGEN=1
2972 no) ENABLE_DOXYGEN=0
2974 default) ENABLE_DOXYGEN=0
2976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2977 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2978 { (exit 1); exit 1; }; } ;;
2982 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2983 if test "${with_llvmgccdir+set}" = set; then
2984 withval="$with_llvmgccdir"
2989 if test "x$LLVMGCCDIR" = x ; then
2990 case "$llvm_cv_platform_type" in
2992 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2993 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2998 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2999 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3014 # On Suns, sometimes $CPP names a directory.
3015 if test -n "$CPP" && test -d "$CPP"; then
3018 if test -z "$CPP"; then
3019 if test "${ac_cv_prog_CPP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 # Double quotes because CPP needs to be expanded
3023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 for ac_c_preproc_warn_flag in '' yes
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031 # <limits.h> exists even on freestanding compilers.
3032 # On the NeXT, cc -E runs the code through the compiler's parser,
3033 # not just through cpp. "Syntax error" is here to catch this case.
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3041 # include <limits.h>
3043 # include <assert.h>
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_c_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3064 if test -z "$ac_cpp_err"; then
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 # Broken: fails on valid input.
3073 rm -f conftest.err conftest.$ac_ext
3075 # OK, works on sane cases. Now check whether non-existent headers
3076 # can be detected and how.
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083 #include <ac_nonexistent.h>
3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3102 if test -z "$ac_cpp_err"; then
3103 # Broken: success on invalid input.
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 # Passes both tests.
3113 rm -f conftest.err conftest.$ac_ext
3116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117 rm -f conftest.err conftest.$ac_ext
3118 if $ac_preproc_ok; then
3130 echo "$as_me:$LINENO: result: $CPP" >&5
3131 echo "${ECHO_T}$CPP" >&6
3133 for ac_c_preproc_warn_flag in '' yes
3135 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works.
3137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3138 # <limits.h> exists even on freestanding compilers.
3139 # On the NeXT, cc -E runs the code through the compiler's parser,
3140 # not just through cpp. "Syntax error" is here to catch this case.
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3148 # include <limits.h>
3150 # include <assert.h>
3154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3171 if test -z "$ac_cpp_err"; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 # Broken: fails on valid input.
3180 rm -f conftest.err conftest.$ac_ext
3182 # OK, works on sane cases. Now check whether non-existent headers
3183 # can be detected and how.
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #include <ac_nonexistent.h>
3192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null; then
3200 if test -s conftest.err; then
3201 ac_cpp_err=$ac_c_preproc_warn_flag
3202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209 if test -z "$ac_cpp_err"; then
3210 # Broken: success on invalid input.
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 # Passes both tests.
3220 rm -f conftest.err conftest.$ac_ext
3223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3224 rm -f conftest.err conftest.$ac_ext
3225 if $ac_preproc_ok; then
3228 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 if test -n "$CC"; then
3277 echo "$as_me:$LINENO: result: $CC" >&5
3278 echo "${ECHO_T}$CC" >&6
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3284 test -n "$CC" && break
3287 if test -z "$CC"; then
3291 # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 echo "$as_me:$LINENO: checking for $ac_word" >&5
3294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 if test -n "$ac_ct_CC"; then
3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_ac_ct_CC="$ac_prog"
3309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320 echo "${ECHO_T}$ac_ct_CC" >&6
3322 echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3326 test -n "$ac_ct_CC" && break
3333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3339 # Provide some information about the compiler.
3340 echo "$as_me:$LINENO:" \
3341 "checking for C compiler version" >&5
3342 ac_compiler=`set X $ac_compile; echo $2`
3343 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3344 (eval $ac_compiler --version </dev/null >&5) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3349 (eval $ac_compiler -v </dev/null >&5) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3354 (eval $ac_compiler -V </dev/null >&5) 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }
3359 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_c_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3417 GCC=`test $ac_compiler_gnu = yes && echo yes`
3418 ac_test_CFLAGS=${CFLAGS+set}
3419 ac_save_CFLAGS=$CFLAGS
3421 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3423 if test "${ac_cv_prog_cc_g+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3474 if test "$ac_test_CFLAGS" = set; then
3475 CFLAGS=$ac_save_CFLAGS
3476 elif test $ac_cv_prog_cc_g = yes; then
3477 if test "$GCC" = yes; then
3483 if test "$GCC" = yes; then
3489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 ac_cv_prog_cc_stdc=no
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3504 #include <sys/types.h>
3505 #include <sys/stat.h>
3506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3507 struct buf { int x; };
3508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509 static char *e (p, i)
3515 static char *f (char * (*g) (char **, int), char **p, ...)
3520 s = g (p, va_arg (v,int));
3525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3526 function prototypes and stuff, but not '\xHH' hex character constants.
3527 These don't provoke an error unfortunately, instead are silently treated
3528 as 'x'. The following induces an error, until -std1 is added to get
3529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3530 array size at least. It's necessary to write '\x00'==0 to get something
3531 that's true only with -std1. */
3532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534 int test (int i, double x);
3535 struct s1 {int (*f) (int a);};
3536 struct s2 {int (*f) (double a);};
3537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3548 # Don't try gcc -ansi; that turns off useful extensions and
3549 # breaks some systems' header files.
3550 # AIX -qlanglvl=ansi
3551 # Ultrix and OSF/1 -std1
3552 # HP-UX 10.20 and later -Ae
3553 # HP-UX older versions -Aa -D_HPUX_SOURCE
3554 # SVR4 -Xc -D__EXTENSIONS__
3555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557 CC="$ac_save_CC $ac_arg"
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_prog_cc_stdc=$ac_arg
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f conftest.err conftest.$ac_objext
3589 rm -f conftest.$ac_ext conftest.$ac_objext
3594 case "x$ac_cv_prog_cc_stdc" in
3596 echo "$as_me:$LINENO: result: none needed" >&5
3597 echo "${ECHO_T}none needed" >&6 ;;
3599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3600 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3601 CC="$CC $ac_cv_prog_cc_stdc" ;;
3604 # Some people use a C++ compiler to compile C. Since we use `exit',
3605 # in C++ we need to declare it. In case someone uses the same compiler
3606 # for both compiling C and C++ we need to have the C++ compiler decide
3607 # the declaration of exit, since it's the most demanding environment.
3608 cat >conftest.$ac_ext <<_ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 for ac_declaration in \
3637 'extern "C" void std::exit (int) throw (); using std::exit;' \
3638 'extern "C" void std::exit (int); using std::exit;' \
3639 'extern "C" void exit (int) throw ();' \
3640 'extern "C" void exit (int);' \
3643 cat >conftest.$ac_ext <<_ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735 if test -n "$ac_declaration"; then
3736 echo '#ifdef __cplusplus' >>confdefs.h
3737 echo $ac_declaration >>confdefs.h
3738 echo '#endif' >>confdefs.h
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 ac_cpp='$CXXCPP $CPPFLAGS'
3755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759 for ac_prog in $CCC g++
3761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_CXX+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 if test -n "$CXX"; then
3769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 if test -n "$CXX"; then
3789 echo "$as_me:$LINENO: result: $CXX" >&5
3790 echo "${ECHO_T}$CXX" >&6
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3796 test -n "$CXX" && break
3799 if test -z "$CXX"; then
3801 for ac_prog in $CCC g++
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy $ac_prog; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if test -n "$ac_ct_CXX"; then
3811 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_ac_ct_CXX="$ac_prog"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3830 if test -n "$ac_ct_CXX"; then
3831 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3832 echo "${ECHO_T}$ac_ct_CXX" >&6
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3838 test -n "$ac_ct_CXX" && break
3840 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3846 # Provide some information about the compiler.
3847 echo "$as_me:$LINENO:" \
3848 "checking for C++ compiler version" >&5
3849 ac_compiler=`set X $ac_compile; echo $2`
3850 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3851 (eval $ac_compiler --version </dev/null >&5) 2>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }
3855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3856 (eval $ac_compiler -v </dev/null >&5) 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }
3860 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3861 (eval $ac_compiler -V </dev/null >&5) 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }
3866 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3867 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3868 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -z "$ac_cxx_werror_flag"
3899 || test ! -s conftest.err'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; } &&
3905 { ac_try='test -s conftest.$ac_objext'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3922 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3923 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3924 GXX=`test $ac_compiler_gnu = yes && echo yes`
3925 ac_test_CXXFLAGS=${CXXFLAGS+set}
3926 ac_save_CXXFLAGS=$CXXFLAGS
3928 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3929 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3930 if test "${ac_cv_prog_cxx_g+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3948 rm -f conftest.$ac_objext
3949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3952 grep -v '^ *+' conftest.er1 >conftest.err
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_cxx_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_prog_cxx_g=yes
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3980 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3981 if test "$ac_test_CXXFLAGS" = set; then
3982 CXXFLAGS=$ac_save_CXXFLAGS
3983 elif test $ac_cv_prog_cxx_g = yes; then
3984 if test "$GXX" = yes; then
3990 if test "$GXX" = yes; then
3996 for ac_declaration in \
3998 'extern "C" void std::exit (int) throw (); using std::exit;' \
3999 'extern "C" void std::exit (int); using std::exit;' \
4000 'extern "C" void exit (int) throw ();' \
4001 'extern "C" void exit (int);' \
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_cxx_werror_flag"
4030 || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_cxx_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 if test -n "$ac_declaration"; then
4097 echo '#ifdef __cplusplus' >>confdefs.h
4098 echo $ac_declaration >>confdefs.h
4099 echo '#endif' >>confdefs.h
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 echo "$as_me:$LINENO: checking " >&5
4109 echo $ECHO_N "checking ... $ECHO_C" >&6
4110 if test "${ac_cv_has_flex+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 for ac_prog in flex lex
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_LEX+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -n "$LEX"; then
4123 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_LEX="$ac_prog"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 if test -n "$LEX"; then
4143 echo "$as_me:$LINENO: result: $LEX" >&5
4144 echo "${ECHO_T}$LEX" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 test -n "$LEX" && break
4152 test -n "$LEX" || LEX=":"
4154 if test -z "$LEXLIB"
4156 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4157 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4158 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_check_lib_save_LIBS=$LIBS
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4185 rm -f conftest.$ac_objext conftest$ac_exeext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187 (eval $ac_link) 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try='test -z "$ac_c_werror_flag"
4195 || test ! -s conftest.err'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; } &&
4201 { ac_try='test -s conftest$ac_exeext'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4207 ac_cv_lib_fl_yywrap=yes
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cv_lib_fl_yywrap=no
4214 rm -f conftest.err conftest.$ac_objext \
4215 conftest$ac_exeext conftest.$ac_ext
4216 LIBS=$ac_check_lib_save_LIBS
4218 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4219 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4220 if test $ac_cv_lib_fl_yywrap = yes; then
4223 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4224 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4225 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 ac_check_lib_save_LIBS=$LIBS
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4252 rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag"
4262 || test ! -s conftest.err'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 ac_cv_lib_l_yywrap=yes
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 ac_cv_lib_l_yywrap=no
4281 rm -f conftest.err conftest.$ac_objext \
4282 conftest$ac_exeext conftest.$ac_ext
4283 LIBS=$ac_check_lib_save_LIBS
4285 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4286 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4287 if test $ac_cv_lib_l_yywrap = yes; then
4295 if test "x$LEX" != "x:"; then
4296 echo "$as_me:$LINENO: checking lex output file root" >&5
4297 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4298 if test "${ac_cv_prog_lex_root+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 # The minimal lex program is just a single line: %%. But some broken lexes
4302 # (Solaris, I think it was) want two %% lines, so accommodate them.
4303 cat >conftest.l <<_ACEOF
4307 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4308 (eval $LEX conftest.l) 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }
4312 if test -f lex.yy.c; then
4313 ac_cv_prog_lex_root=lex.yy
4314 elif test -f lexyy.c; then
4315 ac_cv_prog_lex_root=lexyy
4317 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4318 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4319 { (exit 1); exit 1; }; }
4322 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4323 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4328 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4329 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 # POSIX says lex can declare yytext either as a pointer or an array; the
4333 # default is implementation-dependent. Figure out which it is, since
4334 # not all implementations provide the %pointer and %array declarations.
4335 ac_cv_prog_lex_yytext_pointer=no
4336 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338 LIBS="$LIBS $LEXLIB"
4339 cat >conftest.$ac_ext <<_ACEOF
4340 `cat $LEX_OUTPUT_ROOT.c`
4342 rm -f conftest.$ac_objext conftest$ac_exeext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344 (eval $ac_link) 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest$ac_exeext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 ac_cv_prog_lex_yytext_pointer=yes
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4370 rm -f conftest.err conftest.$ac_objext \
4371 conftest$ac_exeext conftest.$ac_ext
4373 rm -f "${LEX_OUTPUT_ROOT}.c"
4376 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4377 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4378 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380 cat >>confdefs.h <<\_ACEOF
4381 #define YYTEXT_POINTER 1
4389 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4390 echo "${ECHO_T}$ac_cv_has_flex" >&6
4391 if test "$LEX" != "flex"; then
4392 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4393 echo "$as_me: error: flex not found but required" >&2;}
4394 { (exit 1); exit 1; }; }
4400 echo "$as_me:$LINENO: checking " >&5
4401 echo $ECHO_N "checking ... $ECHO_C" >&6
4402 if test "${llvm_cv_has_bison+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 for ac_prog in 'bison -y' byacc
4407 # Extract the first word of "$ac_prog", so it can be a program name with args.
4408 set dummy $ac_prog; ac_word=$2
4409 echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4411 if test "${ac_cv_prog_YACC+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$YACC"; then
4415 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_prog_YACC="$ac_prog"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 YACC=$ac_cv_prog_YACC
4434 if test -n "$YACC"; then
4435 echo "$as_me:$LINENO: result: $YACC" >&5
4436 echo "${ECHO_T}$YACC" >&6
4438 echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4442 test -n "$YACC" && break
4444 test -n "$YACC" || YACC="yacc"
4448 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4449 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4450 if test "$YACC" != "bison -y"; then
4451 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4452 echo "$as_me: error: bison not found but required" >&2;}
4453 { (exit 1); exit 1; }; }
4460 echo "$as_me:$LINENO: checking for GNU make" >&5
4461 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462 if test "${llvm_cv_gnu_make_command+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 llvm_cv_gnu_make_command=''
4466 for a in "$MAKE" make gmake gnumake ; do
4467 if test -z "$a" ; then continue ; fi ;
4468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470 llvm_cv_gnu_make_command=$a ;
4475 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4481 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482 echo "${ECHO_T}\"Not found\"" >&6;
4486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489 if test "$LN_S" = "ln -s"; then
4490 echo "$as_me:$LINENO: result: yes" >&5
4491 echo "${ECHO_T}yes" >&6
4493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494 echo "${ECHO_T}no, using $LN_S" >&6
4497 # Extract the first word of "date", so it can be a program name with args.
4498 set dummy date; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_DATE+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4527 DATE=$ac_cv_path_DATE
4529 if test -n "$DATE"; then
4530 echo "$as_me:$LINENO: result: $DATE" >&5
4531 echo "${ECHO_T}$DATE" >&6
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4537 # Extract the first word of "find", so it can be a program name with args.
4538 set dummy find; ac_word=$2
4539 echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541 if test "${ac_cv_path_FIND+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4567 FIND=$ac_cv_path_FIND
4569 if test -n "$FIND"; then
4570 echo "$as_me:$LINENO: result: $FIND" >&5
4571 echo "${ECHO_T}$FIND" >&6
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 # Extract the first word of "grep", so it can be a program name with args.
4578 set dummy grep; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_GREP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4607 GREP=$ac_cv_path_GREP
4609 if test -n "$GREP"; then
4610 echo "$as_me:$LINENO: result: $GREP" >&5
4611 echo "${ECHO_T}$GREP" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 # Extract the first word of "mkdir", so it can be a program name with args.
4618 set dummy mkdir; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_MKDIR+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4647 MKDIR=$ac_cv_path_MKDIR
4649 if test -n "$MKDIR"; then
4650 echo "$as_me:$LINENO: result: $MKDIR" >&5
4651 echo "${ECHO_T}$MKDIR" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4657 # Extract the first word of "mv", so it can be a program name with args.
4658 set dummy mv; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_MV+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4689 if test -n "$MV"; then
4690 echo "$as_me:$LINENO: result: $MV" >&5
4691 echo "${ECHO_T}$MV" >&6
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4697 # Extract the first word of "pax", so it can be a program name with args.
4698 set dummy pax; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_PAX+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4729 if test -n "$PAX"; then
4730 echo "$as_me:$LINENO: result: $PAX" >&5
4731 echo "${ECHO_T}$PAX" >&6
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740 echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742 if test "${ac_cv_prog_RANLIB+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 if test -n "$RANLIB"; then
4746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 RANLIB=$ac_cv_prog_RANLIB
4765 if test -n "$RANLIB"; then
4766 echo "$as_me:$LINENO: result: $RANLIB" >&5
4767 echo "${ECHO_T}$RANLIB" >&6
4769 echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4774 if test -z "$ac_cv_prog_RANLIB"; then
4775 ac_ct_RANLIB=$RANLIB
4776 # Extract the first word of "ranlib", so it can be a program name with args.
4777 set dummy ranlib; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$ac_ct_RANLIB"; then
4784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_RANLIB="ranlib"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804 if test -n "$ac_ct_RANLIB"; then
4805 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 RANLIB=$ac_ct_RANLIB
4814 RANLIB="$ac_cv_prog_RANLIB"
4817 # Extract the first word of "rm", so it can be a program name with args.
4818 set dummy rm; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_RM+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4849 if test -n "$RM"; then
4850 echo "$as_me:$LINENO: result: $RM" >&5
4851 echo "${ECHO_T}$RM" >&6
4853 echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4857 # Extract the first word of "sed", so it can be a program name with args.
4858 set dummy sed; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_path_SED+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4889 if test -n "$SED"; then
4890 echo "$as_me:$LINENO: result: $SED" >&5
4891 echo "${ECHO_T}$SED" >&6
4893 echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6
4897 # Extract the first word of "tar", so it can be a program name with args.
4898 set dummy tar; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_path_TAR+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4929 if test -n "$TAR"; then
4930 echo "$as_me:$LINENO: result: $TAR" >&5
4931 echo "${ECHO_T}$TAR" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4938 # Find a good install program. We prefer a C program (faster),
4939 # so one script is as good as another. But avoid the broken or
4940 # incompatible versions:
4941 # SysV /etc/install, /usr/sbin/install
4942 # SunOS /usr/etc/install
4943 # IRIX /sbin/install
4945 # AmigaOS /C/install, which installs bootblocks on floppy discs
4946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4949 # OS/2's system install, which has a completely different semantic
4950 # ./install, which can be erroneously created by make from ./install.sh.
4951 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4952 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4953 if test -z "$INSTALL"; then
4954 if test "${ac_cv_path_install+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 # Account for people who put trailing slashes in PATH elements.
4964 ./ | .// | /cC/* | \
4965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4966 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4969 # OSF1 and SCO ODT 3.0 have their own names for install.
4970 # Don't use installbsd from OSF since it installs stuff as root
4972 for ac_prog in ginstall scoinst install; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4975 if test $ac_prog = install &&
4976 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977 # AIX install. It has an incompatible calling convention.
4979 elif test $ac_prog = install &&
4980 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4981 # program-specific install script used by HP pwplus--don't use.
4984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4996 if test "${ac_cv_path_install+set}" = set; then
4997 INSTALL=$ac_cv_path_install
4999 # As a last resort, use the slow shell script. We don't cache a
5000 # path for INSTALL within a source directory, because that will
5001 # break other packages using the cache if that directory is
5002 # removed, or if the path is relative.
5003 INSTALL=$ac_install_sh
5006 echo "$as_me:$LINENO: result: $INSTALL" >&5
5007 echo "${ECHO_T}$INSTALL" >&6
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5018 # Extract the first word of "bzip2", so it can be a program name with args.
5019 set dummy bzip2; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_path_BZIP2+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5048 BZIP2=$ac_cv_path_BZIP2
5050 if test -n "$BZIP2"; then
5051 echo "$as_me:$LINENO: result: $BZIP2" >&5
5052 echo "${ECHO_T}$BZIP2" >&6
5054 echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5058 # Extract the first word of "dot", so it can be a program name with args.
5059 set dummy dot; ac_word=$2
5060 echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_path_DOT+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5090 if test -n "$DOT"; then
5091 echo "$as_me:$LINENO: result: $DOT" >&5
5092 echo "${ECHO_T}$DOT" >&6
5094 echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5098 # Extract the first word of "doxygen", so it can be a program name with args.
5099 set dummy doxygen; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5128 DOXYGEN=$ac_cv_path_DOXYGEN
5130 if test -n "$DOXYGEN"; then
5131 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5132 echo "${ECHO_T}$DOXYGEN" >&6
5134 echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6
5138 # Extract the first word of "etags", so it can be a program name with args.
5139 set dummy etags; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_ETAGS+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5168 ETAGS=$ac_cv_path_ETAGS
5170 if test -n "$ETAGS"; then
5171 echo "$as_me:$LINENO: result: $ETAGS" >&5
5172 echo "${ECHO_T}$ETAGS" >&6
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 # Extract the first word of "groff", so it can be a program name with args.
5179 set dummy groff; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_GROFF+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5208 GROFF=$ac_cv_path_GROFF
5210 if test -n "$GROFF"; then
5211 echo "$as_me:$LINENO: result: $GROFF" >&5
5212 echo "${ECHO_T}$GROFF" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5218 # Extract the first word of "gzip", so it can be a program name with args.
5219 set dummy gzip; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_GZIP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5248 GZIP=$ac_cv_path_GZIP
5250 if test -n "$GZIP"; then
5251 echo "$as_me:$LINENO: result: $GZIP" >&5
5252 echo "${ECHO_T}$GZIP" >&6
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5258 # Extract the first word of "pod2html", so it can be a program name with args.
5259 set dummy pod2html; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_POD2HTML+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5288 POD2HTML=$ac_cv_path_POD2HTML
5290 if test -n "$POD2HTML"; then
5291 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5292 echo "${ECHO_T}$POD2HTML" >&6
5294 echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298 # Extract the first word of "pod2man", so it can be a program name with args.
5299 set dummy pod2man; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_POD2MAN+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5328 POD2MAN=$ac_cv_path_POD2MAN
5330 if test -n "$POD2MAN"; then
5331 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5332 echo "${ECHO_T}$POD2MAN" >&6
5334 echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5338 # Extract the first word of "python", so it can be a program name with args.
5339 set dummy python; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_PYTHON+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5368 PYTHON=$ac_cv_path_PYTHON
5370 if test -n "$PYTHON"; then
5371 echo "$as_me:$LINENO: result: $PYTHON" >&5
5372 echo "${ECHO_T}$PYTHON" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 # Extract the first word of "qmtest", so it can be a program name with args.
5379 set dummy qmtest; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_QMTEST+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5408 QMTEST=$ac_cv_path_QMTEST
5410 if test -n "$QMTEST"; then
5411 echo "$as_me:$LINENO: result: $QMTEST" >&5
5412 echo "${ECHO_T}$QMTEST" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5418 # Extract the first word of "runtest", so it can be a program name with args.
5419 set dummy runtest; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_path_RUNTEST+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5448 RUNTEST=$ac_cv_path_RUNTEST
5450 if test -n "$RUNTEST"; then
5451 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5452 echo "${ECHO_T}$RUNTEST" >&6
5454 echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5458 # Extract the first word of "zip", so it can be a program name with args.
5459 set dummy zip; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_path_ZIP+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5490 if test -n "$ZIP"; then
5491 echo "$as_me:$LINENO: result: $ZIP" >&5
5492 echo "${ECHO_T}$ZIP" >&6
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5499 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5500 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5501 if test "${llvm_cv_link_use_r+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 ac_cpp='$CPP $CPPFLAGS'
5506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 CFLAGS="$CFLAGS -Wl,-R."
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5522 int main() { return 0; }
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 llvm_cv_link_use_r=yes
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 llvm_cv_link_use_r=no
5556 rm -f conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5568 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5569 if test "$llvm_cv_link_use_r" = yes ; then
5571 cat >>confdefs.h <<\_ACEOF
5572 #define HAVE_LINK_R 1
5580 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5581 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5582 if test "${ac_cv_c_const+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5595 /* FIXME: Include the comments suggested by Paul. */
5597 /* Ultrix mips cc rejects this. */
5598 typedef int charset[2];
5600 /* SunOS 4.1.1 cc rejects this. */
5601 char const *const *ccp;
5603 /* NEC SVR4.0.2 mips cc rejects this. */
5604 struct point {int x, y;};
5605 static struct point const zero = {0,0};
5606 /* AIX XL C 1.02.0.0 rejects this.
5607 It does not let you subtract one const X* pointer from another in
5608 an arm of an if-expression whose if-part is not a constant
5610 const char *g = "string";
5611 ccp = &g + (g ? g-g : 0);
5612 /* HPUX 7.0 cc rejects these. */
5615 ccp = (char const *const *) p;
5616 { /* SCO 3.2v4 cc rejects this. */
5618 char const *s = 0 ? (char *) 0 : (char const *) 0;
5622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5624 const int *foo = &x[0];
5627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5628 typedef const int *iptr;
5632 { /* AIX XL C 1.02.0.0 rejects this saying
5633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5634 struct s { int j; const int *ap[3]; };
5635 struct s *b; b->j = 5;
5637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>conftest.er1
5650 grep -v '^ *+' conftest.er1 >conftest.err
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5678 echo "${ECHO_T}$ac_cv_c_const" >&6
5679 if test $ac_cv_c_const = no; then
5681 cat >>confdefs.h <<\_ACEOF
5688 echo "$as_me:$LINENO: checking for egrep" >&5
5689 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5690 if test "${ac_cv_prog_egrep+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5694 then ac_cv_prog_egrep='grep -E'
5695 else ac_cv_prog_egrep='egrep'
5698 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5699 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5700 EGREP=$ac_cv_prog_egrep
5703 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5705 if test "${ac_cv_header_stdc+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 cat >conftest.$ac_ext <<_ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_cv_header_stdc=yes
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 ac_cv_header_stdc=no
5756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758 if test $ac_cv_header_stdc = yes; then
5759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5770 $EGREP "memchr" >/dev/null 2>&1; then
5773 ac_cv_header_stdc=no
5779 if test $ac_cv_header_stdc = yes; then
5780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5781 cat >conftest.$ac_ext <<_ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5791 $EGREP "free" >/dev/null 2>&1; then
5794 ac_cv_header_stdc=no
5800 if test $ac_cv_header_stdc = yes; then
5801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5802 if test "$cross_compiling" = yes; then
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5812 #if ((' ' & 0x0FF) == 0x020)
5813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5816 # define ISLOWER(c) \
5817 (('a' <= (c) && (c) <= 'i') \
5818 || ('j' <= (c) && (c) <= 'r') \
5819 || ('s' <= (c) && (c) <= 'z'))
5820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5828 for (i = 0; i < 256; i++)
5829 if (XOR (islower (i), ISLOWER (i))
5830 || toupper (i) != TOUPPER (i))
5835 rm -f conftest$ac_exeext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5848 echo "$as_me: program exited with status $ac_status" >&5
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_cv_header_stdc=no
5855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5859 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5860 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5861 if test $ac_cv_header_stdc = yes; then
5863 cat >>confdefs.h <<\_ACEOF
5864 #define STDC_HEADERS 1
5875 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5876 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5877 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5878 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <sys/types.h>
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 eval "$as_ac_Header=yes"
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 eval "$as_ac_Header=no"
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934 cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5938 ac_header_dirent=$ac_hdr; break
5942 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5943 if test $ac_header_dirent = dirent.h; then
5944 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5945 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5946 if test "${ac_cv_search_opendir+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 ac_func_search_save_LIBS=$LIBS
5950 ac_cv_search_opendir=no
5951 cat >conftest.$ac_ext <<_ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5958 /* Override any gcc2 internal prototype to avoid an error. */
5962 /* We use char because int might match the return type of a gcc2
5963 builtin and then its argument prototype would still apply. */
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5975 (eval $ac_link) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest$ac_exeext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_search_opendir="none required"
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6001 rm -f conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6003 if test "$ac_cv_search_opendir" = no; then
6004 for ac_lib in dir; do
6005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6013 /* Override any gcc2 internal prototype to avoid an error. */
6017 /* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6032 grep -v '^ *+' conftest.er1 >conftest.err
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="-l$ac_lib"
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6057 rm -f conftest.err conftest.$ac_objext \
6058 conftest$ac_exeext conftest.$ac_ext
6061 LIBS=$ac_func_search_save_LIBS
6063 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6064 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6065 if test "$ac_cv_search_opendir" != no; then
6066 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6071 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6072 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6073 if test "${ac_cv_search_opendir+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 ac_func_search_save_LIBS=$LIBS
6077 ac_cv_search_opendir=no
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6085 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102 (eval $ac_link) 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_c_werror_flag"
6110 || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_search_opendir="none required"
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 if test "$ac_cv_search_opendir" = no; then
6132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_search_opendir="-l$ac_lib"
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6184 rm -f conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6188 LIBS=$ac_func_search_save_LIBS
6190 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6191 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6192 if test "$ac_cv_search_opendir" != no; then
6193 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6209 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6210 inttypes.h stdint.h unistd.h
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 echo "$as_me:$LINENO: checking for $ac_header" >&5
6214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6226 #include <$ac_header>
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230 (eval $ac_compile) 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_c_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 eval "$as_ac_Header=yes"
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 eval "$as_ac_Header=no"
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262 cat >>confdefs.h <<_ACEOF
6263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272 for ac_header in dlfcn.h
6274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276 echo "$as_me:$LINENO: checking for $ac_header" >&5
6277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6284 # Is the header compilable?
6285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 $ac_includes_default
6294 #include <$ac_header>
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_header_compiler=yes
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 ac_header_compiler=no
6325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327 echo "${ECHO_T}$ac_header_compiler" >&6
6329 # Is the header present?
6330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #include <$ac_header>
6340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } >/dev/null; then
6348 if test -s conftest.err; then
6349 ac_cpp_err=$ac_c_preproc_warn_flag
6350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6357 if test -z "$ac_cpp_err"; then
6358 ac_header_preproc=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6363 ac_header_preproc=no
6365 rm -f conftest.err conftest.$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6367 echo "${ECHO_T}$ac_header_preproc" >&6
6369 # So? What about this header?
6370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6376 ac_header_preproc=yes
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6393 ## ----------------------------------- ##
6394 ## Report this to llvmbugs@cs.uiuc.edu ##
6395 ## ----------------------------------- ##
6398 sed "s/^/$as_me: WARNING: /" >&2
6401 echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 eval "$as_ac_Header=\$ac_header_preproc"
6408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6421 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6422 if test "${enable_ltdl_install+set}" = set; then
6423 enableval="$enable_ltdl_install"
6429 if test x"${enable_ltdl_install-no}" != xno; then
6431 INSTALL_LTDL_FALSE='#'
6433 INSTALL_LTDL_TRUE='#'
6439 if test x"${enable_ltdl_convenience-no}" != xno; then
6440 CONVENIENCE_LTDL_TRUE=
6441 CONVENIENCE_LTDL_FALSE='#'
6443 CONVENIENCE_LTDL_TRUE='#'
6444 CONVENIENCE_LTDL_FALSE=
6448 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6449 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6451 libname_spec='lib$name'
6459 shlibpath_overrides_runpath=unknown
6461 dynamic_linker="$host_os ld.so"
6462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6463 if test "$GCC" = yes; then
6464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6465 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6466 # if the path contains ";" then we assume it to be the separator
6467 # otherwise default to the standard path separator (i.e. ":") - it is
6468 # assumed that no part of a normal pathname contains ";" but that should
6469 # okay in the real world where ";" in dirpaths is itself problematic.
6470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6477 need_lib_prefix=unknown
6478 hardcode_into_libs=no
6480 # when you set need_version to no, make sure it does not cause -set_version
6481 # flags to be left without arguments
6482 need_version=unknown
6487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6488 shlibpath_var=LIBPATH
6490 # AIX 3 has no versioning support, so we append a major version to the name.
6491 soname_spec='${libname}${release}${shared_ext}$major'
6498 hardcode_into_libs=yes
6499 if test "$host_cpu" = ia64; then
6500 # AIX 5 supports IA64
6501 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6502 shlibpath_var=LD_LIBRARY_PATH
6504 # With GCC up to 2.95.x, collect2 would create an import file
6505 # for dependence libraries. The import file would start with
6506 # the line `#! .'. This would cause the generated library to
6507 # depend on `.', always an invalid library. This was fixed in
6508 # development snapshots of GCC prior to 3.0.
6510 aix4 | aix4.[01] | aix4.[01].*)
6511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6513 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6520 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6521 # soname into executable. Probably we can add versioning support to
6522 # collect2, so additional links can be useful in future.
6523 if test "$aix_use_runtimelinking" = yes; then
6524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6525 # instead of lib<name>.a to let people know that these are not
6526 # typical AIX shared libraries.
6527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6529 # We preserve .a as extension for shared libraries through AIX4.2
6530 # and later when we are not doing run time linking.
6531 library_names_spec='${libname}${release}.a $libname.a'
6532 soname_spec='${libname}${release}${shared_ext}$major'
6534 shlibpath_var=LIBPATH
6539 library_names_spec='$libname.ixlibrary $libname.a'
6540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6541 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'
6545 library_names_spec='${libname}${shared_ext}'
6546 dynamic_linker="$host_os ld.so"
6547 shlibpath_var=LIBRARY_PATH
6553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6554 soname_spec='${libname}${release}${shared_ext}$major'
6555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6556 shlibpath_var=LD_LIBRARY_PATH
6557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6559 # the default ld.so.conf also contains /usr/contrib/lib and
6560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6561 # libtool to hard-code these into programs
6564 cygwin* | mingw* | pw32*)
6565 version_type=windows
6570 case $GCC,$host_os in
6571 yes,cygwin* | yes,mingw* | yes,pw32*)
6572 library_names_spec='$libname.dll.a'
6573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6574 postinstall_cmds='base_file=`basename \${file}`~
6575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6576 dldir=$destdir/`dirname \$dlpath`~
6577 test -d \$dldir || mkdir -p \$dldir~
6578 $install_prog $dir/$dlname \$dldir/$dlname'
6579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6580 dlpath=$dir/\$dldll~
6582 shlibpath_overrides_runpath=yes
6586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6591 # MinGW DLLs use traditional 'lib' prefix
6592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6595 # It is most probably a Windows format PATH printed by
6596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6597 # path with ; separators, and with drive letters. We can handle the
6598 # drive letters (cygwin fileutils understands them), so leave them,
6599 # especially as we might pass files found there to a mingw objdump,
6600 # which wouldn't understand a cygwinified path. Ahh.
6601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6607 # pw32 DLLs use 'pw' prefix rather than 'lib'
6608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6617 dynamic_linker='Win32 ld.exe'
6618 # FIXME: first we should search . and the directory the executable is in
6622 darwin* | rhapsody*)
6623 dynamic_linker="$host_os dyld"
6627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6628 soname_spec='${libname}${release}${major}$shared_ext'
6629 shlibpath_overrides_runpath=yes
6630 shlibpath_var=DYLD_LIBRARY_PATH
6631 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6633 if test "$GCC" = yes; then
6634 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"`
6636 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6646 soname_spec='${libname}${release}${shared_ext}$major'
6647 shlibpath_var=LD_LIBRARY_PATH
6658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6659 soname_spec='${libname}${release}${shared_ext}$major'
6660 shlibpath_var=LD_LIBRARY_PATH
6661 shlibpath_overrides_runpath=no
6662 hardcode_into_libs=yes
6663 dynamic_linker='GNU ld.so'
6667 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6668 version_type=freebsd-$objformat
6669 case $version_type in
6671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6680 shlibpath_var=LD_LIBRARY_PATH
6683 shlibpath_overrides_runpath=yes
6685 freebsd3.01* | freebsdelf3.01*)
6686 shlibpath_overrides_runpath=yes
6687 hardcode_into_libs=yes
6690 shlibpath_overrides_runpath=no
6691 hardcode_into_libs=yes
6700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6701 soname_spec='${libname}${release}${shared_ext}$major'
6702 shlibpath_var=LD_LIBRARY_PATH
6703 hardcode_into_libs=yes
6706 hpux9* | hpux10* | hpux11*)
6707 # Give a soname corresponding to the major version so that dld.sl refuses to
6708 # link against other versions.
6715 hardcode_into_libs=yes
6716 dynamic_linker="$host_os dld.so"
6717 shlibpath_var=LD_LIBRARY_PATH
6718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6720 soname_spec='${libname}${release}${shared_ext}$major'
6721 if test "X$HPUX_IA64_MODE" = X32; then
6722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6730 hardcode_into_libs=yes
6731 dynamic_linker="$host_os dld.sl"
6732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6735 soname_spec='${libname}${release}${shared_ext}$major'
6736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6741 dynamic_linker="$host_os dld.sl"
6742 shlibpath_var=SHLIB_PATH
6743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
6748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6749 postinstall_cmds='chmod 555 $lib'
6752 irix5* | irix6* | nonstopux*)
6754 nonstopux*) version_type=nonstopux ;;
6756 if test "$lt_cv_prog_gnu_ld" = yes; then
6764 soname_spec='${libname}${release}${shared_ext}$major'
6765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6767 irix5* | nonstopux*)
6771 case $LD in # libtool.m4 will add one of these switches to LD
6772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6773 libsuff= shlibsuff= libmagic=32-bit;;
6774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6775 libsuff=32 shlibsuff=N32 libmagic=N32;;
6776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6778 *) libsuff= shlibsuff= libmagic=never-match;;
6782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6783 shlibpath_overrides_runpath=no
6784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6786 hardcode_into_libs=yes
6789 # No shared lib support for Linux oldld, aout, or coff.
6790 linux*oldld* | linux*aout* | linux*coff*)
6794 # This must be Linux ELF.
6799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6800 soname_spec='${libname}${release}${shared_ext}$major'
6801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6802 shlibpath_var=LD_LIBRARY_PATH
6803 shlibpath_overrides_runpath=no
6804 # This implies no fast_install, which is unacceptable.
6805 # Some rework will be needed to allow for fast_install
6806 # before this can be enabled.
6807 hardcode_into_libs=yes
6809 # Append ld.so.conf contents to the search path
6810 if test -f /etc/ld.so.conf; then
6811 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6815 # We used to test for /lib/ld.so.1 and disable shared libraries on
6816 # powerpc, because MkLinux only supported shared libraries with the
6817 # GNU dynamic linker. Since this was broken with cross compilers,
6818 # most powerpc-linux boxes support dynamic linking these days and
6819 # people can always --disable-shared, the test was removed, and we
6820 # assume the GNU/Linux dynamic linker is in use.
6821 dynamic_linker='GNU/Linux ld.so'
6828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6829 soname_spec='${libname}${release}${shared_ext}$major'
6830 shlibpath_var=LD_LIBRARY_PATH
6831 shlibpath_overrides_runpath=no
6832 hardcode_into_libs=yes
6833 dynamic_linker='GNU ld.so'
6840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6843 dynamic_linker='NetBSD (a.out) ld.so'
6845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6846 soname_spec='${libname}${release}${shared_ext}$major'
6847 dynamic_linker='NetBSD ld.elf_so'
6849 shlibpath_var=LD_LIBRARY_PATH
6850 shlibpath_overrides_runpath=yes
6851 hardcode_into_libs=yes
6856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6857 shlibpath_var=LD_LIBRARY_PATH
6858 shlibpath_overrides_runpath=yes
6865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6866 soname_spec='${libname}${release}${shared_ext}$major'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6877 shlibpath_var=LD_LIBRARY_PATH
6878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6880 openbsd2.[89] | openbsd2.[89].*)
6881 shlibpath_overrides_runpath=no
6884 shlibpath_overrides_runpath=yes
6888 shlibpath_overrides_runpath=yes
6893 libname_spec='$name'
6896 library_names_spec='$libname${shared_ext} $libname.a'
6897 dynamic_linker='OS/2 ld.exe'
6898 shlibpath_var=LIBPATH
6901 osf3* | osf4* | osf5*)
6905 soname_spec='${libname}${release}${shared_ext}$major'
6906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6907 shlibpath_var=LD_LIBRARY_PATH
6908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6914 soname_spec='${libname}${release}${shared_ext}$major'
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916 shlibpath_var=LD_LIBRARY_PATH
6923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6924 soname_spec='${libname}${release}${shared_ext}$major'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 shlibpath_overrides_runpath=yes
6927 hardcode_into_libs=yes
6928 # ldd complains unless libraries are executable
6929 postinstall_cmds='chmod +x $lib'
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6936 shlibpath_var=LD_LIBRARY_PATH
6937 shlibpath_overrides_runpath=yes
6938 if test "$with_gnu_ld" = yes; then
6944 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6947 soname_spec='${libname}${release}${shared_ext}$major'
6948 shlibpath_var=LD_LIBRARY_PATH
6949 case $host_vendor in
6951 shlibpath_overrides_runpath=no
6953 export_dynamic_flag_spec='${wl}-Blargedynsym'
6954 runpath_var=LD_RUN_PATH
6962 shlibpath_overrides_runpath=no
6963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6969 if test -d /usr/nec ;then
6971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6972 soname_spec='$libname${shared_ext}.$major'
6973 shlibpath_var=LD_LIBRARY_PATH
6979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6980 soname_spec='${libname}${release}${shared_ext}$major'
6981 shlibpath_var=LD_LIBRARY_PATH
6988 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6989 echo "${ECHO_T}$dynamic_linker" >&6
6990 test "$dynamic_linker" = no && can_build_shared=no
6993 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
6994 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
6995 if test "${libltdl_cv_shlibext+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 eval libltdl_cv_shlibext=$shrext_cmds
7003 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7004 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7005 if test -n "$libltdl_cv_shlibext"; then
7007 cat >>confdefs.h <<_ACEOF
7008 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7014 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7015 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7016 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 libltdl_cv_shlibpath_var="$shlibpath_var"
7021 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7022 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7023 if test -n "$libltdl_cv_shlibpath_var"; then
7025 cat >>confdefs.h <<_ACEOF
7026 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7032 echo "$as_me:$LINENO: checking for the default library search path" >&5
7033 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7034 if test "${libltdl_cv_sys_search_path+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7039 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7040 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7041 if test -n "$libltdl_cv_sys_search_path"; then
7043 for dir in $libltdl_cv_sys_search_path; do
7044 if test -z "$sys_search_path"; then
7045 sys_search_path="$dir"
7047 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7051 cat >>confdefs.h <<_ACEOF
7052 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7057 echo "$as_me:$LINENO: checking for objdir" >&5
7058 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7059 if test "${libltdl_cv_objdir+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 libltdl_cv_objdir="$objdir"
7063 if test -n "$objdir"; then
7066 rm -f .libs 2>/dev/null
7067 mkdir .libs 2>/dev/null
7068 if test -d .libs; then
7069 libltdl_cv_objdir=.libs
7071 # MS-DOS does not allow filenames that begin with a dot.
7072 libltdl_cv_objdir=_libs
7074 rmdir .libs 2>/dev/null
7078 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7079 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7081 cat >>confdefs.h <<_ACEOF
7082 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7086 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7087 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7088 if test "${lt_cv_path_NM+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 if test -n "$NM"; then
7092 # Let the user override the test.
7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7098 test -z "$ac_dir" && ac_dir=.
7099 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7100 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7101 # Check to see if the nm accepts a BSD-compat flag.
7102 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7103 # nm: unknown option "B" ignored
7104 # Tru64's nm complains that /dev/null is an invalid object file
7105 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7106 */dev/null* | *'Invalid file or object type'*)
7107 lt_cv_path_NM="$tmp_nm -B"
7111 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7113 lt_cv_path_NM="$tmp_nm -p"
7117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7118 continue # so that we can try to find one that supports BSD flags
7125 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7128 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7129 echo "${ECHO_T}$lt_cv_path_NM" >&6
7136 # Check for command to grab the raw symbol name followed by C symbol from nm.
7137 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7138 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7139 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 # These are sane defaults that work on at least a few old systems.
7144 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7146 # Character class describing NM global symbol codes.
7147 symcode='[BCDEGRST]'
7149 # Regexp to match symbols that can be accessed directly from C.
7150 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7152 # Transform the above into a raw symbol and a C symbol.
7153 symxfrm='\1 \2\3 \3'
7155 # Transform an extracted symbol line into a proper C declaration
7156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7158 # Transform an extracted symbol line into symbol name and symbol address
7159 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'"
7161 # Define system-specific variables.
7166 cygwin* | mingw* | pw32*)
7167 symcode='[ABCDGISTW]'
7169 hpux*) # Its linker distinguishes data from code symbols
7170 if test "$host_cpu" = ia64; then
7171 symcode='[ABCDEGRST]'
7173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7174 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'"
7177 if test "$host_cpu" = ia64; then
7178 symcode='[ABCDGIRSTW]'
7179 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7180 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'"
7184 symcode='[BCDEGRST]'
7187 symcode='[BCDEGQRST]'
7197 # Handle CRLF in mingw tool chain
7201 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7205 # If we're using GNU nm, then use its standard symbol codes.
7206 case `$NM -V 2>&1` in
7207 *GNU* | *'with BFD'*)
7208 symcode='[ABCDGIRSTW]' ;;
7211 # Try without a prefix undercore, then with it.
7212 for ac_symprfx in "" "_"; do
7214 # Write the raw and C identifiers.
7215 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7217 # Check to see that the pipe works correctly.
7221 cat > conftest.$ac_ext <<EOF
7226 void nm_test_func(){}
7230 int main(){nm_test_var='a';nm_test_func();return(0);}
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; then
7238 # Now try to grab the symbols.
7240 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && test -s "$nlist"; then
7245 # Try sorting and uniquifying the output.
7246 if sort "$nlist" | uniq > "$nlist"T; then
7247 mv -f "$nlist"T "$nlist"
7252 # Make sure that we snagged all the symbols we need.
7253 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7254 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7255 cat <<EOF > conftest.$ac_ext
7261 # Now generate the symbol file.
7262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7264 cat <<EOF >> conftest.$ac_ext
7265 #if defined (__STDC__) && __STDC__
7266 # define lt_ptr_t void *
7268 # define lt_ptr_t char *
7272 /* The mapping between symbol names and symbols. */
7277 lt_preloaded_symbols[] =
7280 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7281 cat <<\EOF >> conftest.$ac_ext
7289 # Now try linking the two files.
7290 mv conftest.$ac_objext conftstm.$ac_objext
7291 lt_save_LIBS="$LIBS"
7292 lt_save_CFLAGS="$CFLAGS"
7293 LIBS="conftstm.$ac_objext"
7294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7302 LIBS="$lt_save_LIBS"
7303 CFLAGS="$lt_save_CFLAGS"
7305 echo "cannot find nm_test_func in $nlist" >&5
7308 echo "cannot find nm_test_var in $nlist" >&5
7311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7314 echo "$progname: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 rm -f conftest* conftst*
7319 # Do not use the global_symbol_pipe unless it works.
7320 if test "$pipe_works" = yes; then
7323 lt_cv_sys_global_symbol_pipe=
7329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7330 lt_cv_sys_global_symbol_to_cdecl=
7332 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7333 echo "$as_me:$LINENO: result: failed" >&5
7334 echo "${ECHO_T}failed" >&6
7336 echo "$as_me:$LINENO: result: ok" >&5
7337 echo "${ECHO_T}ok" >&6
7341 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7342 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7343 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7347 libltdl_cv_preloaded_symbols=yes
7349 libltdl_cv_preloaded_symbols=no
7353 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7354 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7355 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_PRELOADED_SYMBOLS 1
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372 echo "$as_me:$LINENO: checking for shl_load" >&5
7373 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7374 if test "${ac_cv_func_shl_load+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7385 #define shl_load innocuous_shl_load
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char shl_load (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */
7393 # include <limits.h>
7395 # include <assert.h>
7400 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7408 /* The GNU C library defines this for functions which it implements
7409 to always fail with ENOSYS. Some functions are actually named
7410 something starting with __ and the normal name is an alias. */
7411 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7414 char (*f) () = shl_load;
7423 return f != shl_load;
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>conftest.er1
7432 grep -v '^ *+' conftest.er1 >conftest.err
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try='test -z "$ac_c_werror_flag"
7438 || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try='test -s conftest$ac_exeext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_func_shl_load=yes
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7455 ac_cv_func_shl_load=no
7457 rm -f conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7460 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7461 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7462 if test $ac_cv_func_shl_load = yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define HAVE_SHL_LOAD 1
7469 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7470 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7471 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 ac_check_lib_save_LIBS=$LIBS
7476 cat >conftest.$ac_ext <<_ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7483 /* Override any gcc2 internal prototype to avoid an error. */
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7498 rm -f conftest.$ac_objext conftest$ac_exeext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7500 (eval $ac_link) 2>conftest.er1
7502 grep -v '^ *+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try='test -s conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_lib_dld_shl_load=yes
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 ac_cv_lib_dld_shl_load=no
7527 rm -f conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
7529 LIBS=$ac_check_lib_save_LIBS
7531 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7532 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7533 if test $ac_cv_lib_dld_shl_load = yes; then
7535 cat >>confdefs.h <<\_ACEOF
7536 #define HAVE_SHL_LOAD 1
7539 LIBADD_DL="$LIBADD_DL -ldld"
7541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_check_lib_save_LIBS=$LIBS
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7555 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_lib_dl_dlopen=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_lib_dl_dlopen=no
7599 rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 LIBS=$ac_check_lib_save_LIBS
7603 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7605 if test $ac_cv_lib_dl_dlopen = yes; then
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_LIBDL 1
7611 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>conftest.er1
7635 grep -v '^ *+' conftest.er1 >conftest.err
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try='test -z "$ac_c_werror_flag"
7641 || test ! -s conftest.err'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; } &&
7647 { ac_try='test -s conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7654 cat >>confdefs.h <<\_ACEOF
7655 #define HAVE_LIBDL 1
7657 libltdl_cv_func_dlopen="yes"
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7663 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7664 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 ac_check_lib_save_LIBS=$LIBS
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7676 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>conftest.er1
7695 grep -v '^ *+' conftest.er1 >conftest.err
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_cv_lib_svld_dlopen=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 ac_cv_lib_svld_dlopen=no
7720 rm -f conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722 LIBS=$ac_check_lib_save_LIBS
7724 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7725 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7726 if test $ac_cv_lib_svld_dlopen = yes; then
7728 cat >>confdefs.h <<\_ACEOF
7729 #define HAVE_LIBDL 1
7732 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7734 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7735 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7736 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 ac_check_lib_save_LIBS=$LIBS
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7748 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_lib_dld_dld_link=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_lib_dld_dld_link=no
7792 rm -f conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794 LIBS=$ac_check_lib_save_LIBS
7796 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7797 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7798 if test $ac_cv_lib_dld_dld_link = yes; then
7800 cat >>confdefs.h <<\_ACEOF
7804 LIBADD_DL="$LIBADD_DL -ldld"
7806 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7807 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7808 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7819 #define _dyld_func_lookup innocuous__dyld_func_lookup
7821 /* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char _dyld_func_lookup (); below.
7823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7824 <limits.h> exists even on freestanding compilers. */
7827 # include <limits.h>
7829 # include <assert.h>
7832 #undef _dyld_func_lookup
7834 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char _dyld_func_lookup ();
7842 /* The GNU C library defines this for functions which it implements
7843 to always fail with ENOSYS. Some functions are actually named
7844 something starting with __ and the normal name is an alias. */
7845 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7848 char (*f) () = _dyld_func_lookup;
7857 return f != _dyld_func_lookup;
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>conftest.er1
7866 grep -v '^ *+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_func__dyld_func_lookup=yes
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7889 ac_cv_func__dyld_func_lookup=no
7891 rm -f conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7895 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7896 if test $ac_cv_func__dyld_func_lookup = yes; then
7898 cat >>confdefs.h <<\_ACEOF
7912 rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7924 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7926 lt_save_LIBS="$LIBS"
7927 LIBS="$LIBS $LIBADD_DL"
7929 for ac_func in dlerror
7931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7932 echo "$as_me:$LINENO: checking for $ac_func" >&5
7933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7934 if eval "test \"\${$as_ac_var+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7945 #define $ac_func innocuous_$ac_func
7947 /* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char $ac_func (); below.
7949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950 <limits.h> exists even on freestanding compilers. */
7953 # include <limits.h>
7955 # include <assert.h>
7960 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7968 /* The GNU C library defines this for functions which it implements
7969 to always fail with ENOSYS. Some functions are actually named
7970 something starting with __ and the normal name is an alias. */
7971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7974 char (*f) () = $ac_func;
7983 return f != $ac_func;
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 eval "$as_ac_var=yes"
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 eval "$as_ac_var=no"
8017 rm -f conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8022 if test `eval echo '${'$as_ac_var'}'` = yes; then
8023 cat >>confdefs.h <<_ACEOF
8024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8030 LIBS="$lt_save_LIBS"
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8041 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8042 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_cv_sys_symbol_underscore=no
8046 cat > conftest.$ac_ext <<EOF
8047 void nm_test_func(){}
8048 int main(){nm_test_func;return 0;}
8050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051 (eval $ac_compile) 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; then
8055 # Now try to grab the symbols.
8056 ac_nlist=conftest.nm
8057 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8058 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && test -s "$ac_nlist"; then
8062 # See whether the symbols have a leading underscore.
8063 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8064 ac_cv_sys_symbol_underscore=yes
8066 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8069 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8073 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8076 echo "configure: failed program was:" >&5
8082 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8083 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8086 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8087 if test x"$libltdl_cv_func_dlopen" = xyes ||
8088 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8089 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8090 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8091 if test "${libltdl_cv_need_uscore+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 libltdl_cv_need_uscore=unknown
8096 LIBS="$LIBS $LIBADD_DL"
8097 if test "$cross_compiling" = yes; then :
8098 libltdl_cv_need_uscore=cross
8100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8101 lt_status=$lt_dlunknown
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8103 "configure"
8104 #include "confdefs.h"
8113 # define LT_DLGLOBAL RTLD_GLOBAL
8116 # define LT_DLGLOBAL DL_GLOBAL
8118 # define LT_DLGLOBAL 0
8122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8123 find out it does not work in some platform. */
8124 #ifndef LT_DLLAZY_OR_NOW
8126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8129 # define LT_DLLAZY_OR_NOW DL_LAZY
8132 # define LT_DLLAZY_OR_NOW RTLD_NOW
8135 # define LT_DLLAZY_OR_NOW DL_NOW
8137 # define LT_DLLAZY_OR_NOW 0
8145 extern "C" void exit (int);
8148 void fnord() { int i=42;}
8151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8152 int status = $lt_dlunknown;
8156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8157 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8158 /* dlclose (self); */
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165 (eval $ac_link) 2>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8169 (./conftest; exit; ) 2>/dev/null
8172 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8173 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8177 # compilation failed
8186 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8187 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8191 if test x"$libltdl_cv_need_uscore" = xyes; then
8193 cat >>confdefs.h <<\_ACEOF
8194 #define NEED_USCORE 1
8200 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8201 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8202 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 # PORTME does your system automatically load deplibs for dlopen?
8206 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8207 # For now, we just catch OSes we know something about -- in the
8208 # future, we'll try test this programmatically.
8209 libltdl_cv_sys_dlopen_deplibs=unknown
8211 aix3*|aix4.1.*|aix4.2.*)
8212 # Unknown whether this is true for these versions of AIX, but
8213 # we want this `case' here to explicitly catch those versions.
8214 libltdl_cv_sys_dlopen_deplibs=unknown
8217 libltdl_cv_sys_dlopen_deplibs=yes
8220 # Assuming the user has installed a libdl from somewhere, this is true
8221 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8222 libltdl_cv_sys_dlopen_deplibs=yes
8224 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8225 # GNU and its variants, using gnu ld.so (Glibc)
8226 libltdl_cv_sys_dlopen_deplibs=yes
8229 libltdl_cv_sys_dlopen_deplibs=yes
8231 irix[12345]*|irix6.[01]*)
8232 # Catch all versions of IRIX before 6.2, and indicate that we don't
8233 # know how it worked for any of those versions.
8234 libltdl_cv_sys_dlopen_deplibs=unknown
8237 # The case above catches anything before 6.2, and it's known that
8238 # at 6.2 and later dlopen does load deplibs.
8239 libltdl_cv_sys_dlopen_deplibs=yes
8242 libltdl_cv_sys_dlopen_deplibs=yes
8245 libltdl_cv_sys_dlopen_deplibs=yes
8248 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8249 # it did *not* use an RPATH in a shared library to find objects the
8250 # library depends on, so we explictly say `no'.
8251 libltdl_cv_sys_dlopen_deplibs=no
8253 osf5.0|osf5.0a|osf5.1)
8254 # dlopen *does* load deplibs and with the right loader patch applied
8255 # it even uses RPATH in a shared library to search for shared objects
8256 # that the library depends on, but there's no easy way to know if that
8257 # patch is installed. Since this is the case, all we can really
8258 # say is unknown -- it depends on the patch being installed. If
8259 # it is, this changes to `yes'. Without it, it would be `no'.
8260 libltdl_cv_sys_dlopen_deplibs=unknown
8263 # the two cases above should catch all versions of osf <= 5.1. Read
8264 # the comments above for what we know about them.
8265 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8266 # is used to find them so we can finally say `yes'.
8267 libltdl_cv_sys_dlopen_deplibs=yes
8270 libltdl_cv_sys_dlopen_deplibs=yes
8275 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8276 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8277 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define LTDL_DLOPEN_DEPLIBS 1
8286 for ac_header in argz.h
8288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8290 echo "$as_me:$LINENO: checking for $ac_header" >&5
8291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8298 # Is the header compilable?
8299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 $ac_includes_default
8308 #include <$ac_header>
8310 rm -f conftest.$ac_objext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>conftest.er1
8314 grep -v '^ *+' conftest.er1 >conftest.err
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_header_compiler=yes
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 ac_header_compiler=no
8339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8341 echo "${ECHO_T}$ac_header_compiler" >&6
8343 # Is the header present?
8344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 #include <$ac_header>
8354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } >/dev/null; then
8362 if test -s conftest.err; then
8363 ac_cpp_err=$ac_c_preproc_warn_flag
8364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8371 if test -z "$ac_cpp_err"; then
8372 ac_header_preproc=yes
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 ac_header_preproc=no
8379 rm -f conftest.err conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8381 echo "${ECHO_T}$ac_header_preproc" >&6
8383 # So? What about this header?
8384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8390 ac_header_preproc=yes
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8407 ## ----------------------------------- ##
8408 ## Report this to llvmbugs@cs.uiuc.edu ##
8409 ## ----------------------------------- ##
8412 sed "s/^/$as_me: WARNING: /" >&2
8415 echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 eval "$as_ac_Header=\$ac_header_preproc"
8422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8436 echo "$as_me:$LINENO: checking for error_t" >&5
8437 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8438 if test "${ac_cv_type_error_t+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8456 if (sizeof (error_t))
8462 rm -f conftest.$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest.$ac_objext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_type_error_t=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_type_error_t=no
8491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8494 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8495 if test $ac_cv_type_error_t = yes; then
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_ERROR_T 1
8504 cat >>confdefs.h <<\_ACEOF
8516 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8519 echo "$as_me:$LINENO: checking for $ac_func" >&5
8520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_var+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8532 #define $ac_func innocuous_$ac_func
8534 /* System header to define __stub macros and hopefully few prototypes,
8535 which can conflict with char $ac_func (); below.
8536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537 <limits.h> exists even on freestanding compilers. */
8540 # include <limits.h>
8542 # include <assert.h>
8547 /* Override any gcc2 internal prototype to avoid an error. */
8552 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8555 /* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8561 char (*f) () = $ac_func;
8570 return f != $ac_func;
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 eval "$as_ac_var=yes"
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 eval "$as_ac_var=no"
8604 rm -f conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8609 if test `eval echo '${'$as_ac_var'}'` = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8644 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649 echo "$as_me:$LINENO: checking for $ac_header" >&5
8650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8657 # Is the header compilable?
8658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 #include <$ac_header>
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>conftest.er1
8673 grep -v '^ *+' conftest.er1 >conftest.err
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag"
8679 || test ! -s conftest.err'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest.$ac_objext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 ac_header_compiler=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_header_compiler=no
8698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8700 echo "${ECHO_T}$ac_header_compiler" >&6
8702 # Is the header present?
8703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 #include <$ac_header>
8713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1 >conftest.err
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } >/dev/null; then
8721 if test -s conftest.err; then
8722 ac_cpp_err=$ac_c_preproc_warn_flag
8723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8730 if test -z "$ac_cpp_err"; then
8731 ac_header_preproc=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_header_preproc=no
8738 rm -f conftest.err conftest.$ac_ext
8739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8740 echo "${ECHO_T}$ac_header_preproc" >&6
8742 # So? What about this header?
8743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8749 ac_header_preproc=yes
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8766 ## ----------------------------------- ##
8767 ## Report this to llvmbugs@cs.uiuc.edu ##
8768 ## ----------------------------------- ##
8771 sed "s/^/$as_me: WARNING: /" >&2
8774 echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 eval "$as_ac_Header=\$ac_header_preproc"
8781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8802 echo "$as_me:$LINENO: checking for $ac_header" >&5
8803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8810 # Is the header compilable?
8811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 $ac_includes_default
8820 #include <$ac_header>
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest.$ac_objext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_header_compiler=yes
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_header_compiler=no
8851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8853 echo "${ECHO_T}$ac_header_compiler" >&6
8855 # Is the header present?
8856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 #include <$ac_header>
8866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8869 grep -v '^ *+' conftest.er1 >conftest.err
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } >/dev/null; then
8874 if test -s conftest.err; then
8875 ac_cpp_err=$ac_c_preproc_warn_flag
8876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8883 if test -z "$ac_cpp_err"; then
8884 ac_header_preproc=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_header_preproc=no
8891 rm -f conftest.err conftest.$ac_ext
8892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8893 echo "${ECHO_T}$ac_header_preproc" >&6
8895 # So? What about this header?
8896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8902 ac_header_preproc=yes
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8919 ## ----------------------------------- ##
8920 ## Report this to llvmbugs@cs.uiuc.edu ##
8921 ## ----------------------------------- ##
8924 sed "s/^/$as_me: WARNING: /" >&2
8927 echo "$as_me:$LINENO: checking for $ac_header" >&5
8928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 eval "$as_ac_Header=\$ac_header_preproc"
8934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8949 for ac_header in string.h strings.h
8951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953 echo "$as_me:$LINENO: checking for $ac_header" >&5
8954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8961 # Is the header compilable?
8962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 $ac_includes_default
8971 #include <$ac_header>
8973 rm -f conftest.$ac_objext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_header_compiler=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_header_compiler=no
9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9004 echo "${ECHO_T}$ac_header_compiler" >&6
9006 # Is the header present?
9007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 #include <$ac_header>
9017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9020 grep -v '^ *+' conftest.er1 >conftest.err
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } >/dev/null; then
9025 if test -s conftest.err; then
9026 ac_cpp_err=$ac_c_preproc_warn_flag
9027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9034 if test -z "$ac_cpp_err"; then
9035 ac_header_preproc=yes
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_header_preproc=no
9042 rm -f conftest.err conftest.$ac_ext
9043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044 echo "${ECHO_T}$ac_header_preproc" >&6
9046 # So? What about this header?
9047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9053 ac_header_preproc=yes
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9070 ## ----------------------------------- ##
9071 ## Report this to llvmbugs@cs.uiuc.edu ##
9072 ## ----------------------------------- ##
9075 sed "s/^/$as_me: WARNING: /" >&2
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 eval "$as_ac_Header=\$ac_header_preproc"
9085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9090 cat >>confdefs.h <<_ACEOF
9091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9101 for ac_func in strchr index
9103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9104 echo "$as_me:$LINENO: checking for $ac_func" >&5
9105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_var+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9117 #define $ac_func innocuous_$ac_func
9119 /* System header to define __stub macros and hopefully few prototypes,
9120 which can conflict with char $ac_func (); below.
9121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 <limits.h> exists even on freestanding compilers. */
9125 # include <limits.h>
9127 # include <assert.h>
9132 /* Override any gcc2 internal prototype to avoid an error. */
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9140 /* The GNU C library defines this for functions which it implements
9141 to always fail with ENOSYS. Some functions are actually named
9142 something starting with __ and the normal name is an alias. */
9143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9146 char (*f) () = $ac_func;
9155 return f != $ac_func;
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -z "$ac_c_werror_flag"
9170 || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 eval "$as_ac_var=yes"
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 eval "$as_ac_var=no"
9189 rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9194 if test `eval echo '${'$as_ac_var'}'` = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9204 for ac_func in strrchr rindex
9206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9207 echo "$as_me:$LINENO: checking for $ac_func" >&5
9208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_var+set}\" = set"; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9220 #define $ac_func innocuous_$ac_func
9222 /* System header to define __stub macros and hopefully few prototypes,
9223 which can conflict with char $ac_func (); below.
9224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 <limits.h> exists even on freestanding compilers. */
9228 # include <limits.h>
9230 # include <assert.h>
9235 /* Override any gcc2 internal prototype to avoid an error. */
9240 /* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9243 /* The GNU C library defines this for functions which it implements
9244 to always fail with ENOSYS. Some functions are actually named
9245 something starting with __ and the normal name is an alias. */
9246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9249 char (*f) () = $ac_func;
9258 return f != $ac_func;
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 eval "$as_ac_var=yes"
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 eval "$as_ac_var=no"
9292 rm -f conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9297 if test `eval echo '${'$as_ac_var'}'` = yes; then
9298 cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9307 for ac_func in memcpy bcopy
9309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9310 echo "$as_me:$LINENO: checking for $ac_func" >&5
9311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9312 if eval "test \"\${$as_ac_var+set}\" = set"; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9323 #define $ac_func innocuous_$ac_func
9325 /* System header to define __stub macros and hopefully few prototypes,
9326 which can conflict with char $ac_func (); below.
9327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328 <limits.h> exists even on freestanding compilers. */
9331 # include <limits.h>
9333 # include <assert.h>
9338 /* Override any gcc2 internal prototype to avoid an error. */
9343 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9346 /* The GNU C library defines this for functions which it implements
9347 to always fail with ENOSYS. Some functions are actually named
9348 something starting with __ and the normal name is an alias. */
9349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9352 char (*f) () = $ac_func;
9361 return f != $ac_func;
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9370 grep -v '^ *+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 eval "$as_ac_var=yes"
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 eval "$as_ac_var=no"
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9400 if test `eval echo '${'$as_ac_var'}'` = yes; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9410 for ac_func in memmove strcmp
9412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9413 echo "$as_me:$LINENO: checking for $ac_func" >&5
9414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9415 if eval "test \"\${$as_ac_var+set}\" = set"; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9426 #define $ac_func innocuous_$ac_func
9428 /* System header to define __stub macros and hopefully few prototypes,
9429 which can conflict with char $ac_func (); below.
9430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431 <limits.h> exists even on freestanding compilers. */
9434 # include <limits.h>
9436 # include <assert.h>
9441 /* Override any gcc2 internal prototype to avoid an error. */
9446 /* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9455 char (*f) () = $ac_func;
9464 return f != $ac_func;
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>conftest.er1
9473 grep -v '^ *+' conftest.er1 >conftest.err
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -z "$ac_c_werror_flag"
9479 || test ! -s conftest.err'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; } &&
9485 { ac_try='test -s conftest$ac_exeext'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 eval "$as_ac_var=yes"
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 eval "$as_ac_var=no"
9498 rm -f conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9503 if test `eval echo '${'$as_ac_var'}'` = yes; then
9504 cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9514 for ac_func in closedir opendir readdir
9516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9517 echo "$as_me:$LINENO: checking for $ac_func" >&5
9518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9519 if eval "test \"\${$as_ac_var+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9530 #define $ac_func innocuous_$ac_func
9532 /* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func (); below.
9534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9535 <limits.h> exists even on freestanding compilers. */
9538 # include <limits.h>
9540 # include <assert.h>
9545 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9553 /* The GNU C library defines this for functions which it implements
9554 to always fail with ENOSYS. Some functions are actually named
9555 something starting with __ and the normal name is an alias. */
9556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9559 char (*f) () = $ac_func;
9568 return f != $ac_func;
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_c_werror_flag"
9583 || test ! -s conftest.err'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest$ac_exeext'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 eval "$as_ac_var=yes"
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 eval "$as_ac_var=no"
9602 rm -f conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9607 if test `eval echo '${'$as_ac_var'}'` = yes; then
9608 cat >>confdefs.h <<_ACEOF
9609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9616 # Check whether --enable-shared or --disable-shared was given.
9617 if test "${enable_shared+set}" = set; then
9618 enableval="$enable_shared"
9619 p=${PACKAGE-default}
9621 yes) enable_shared=yes ;;
9622 no) enable_shared=no ;;
9625 # Look at the argument we got. We use all the common list separators.
9626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9627 for pkg in $enableval; do
9629 if test "X$pkg" = "X$p"; then
9640 # Check whether --enable-static or --disable-static was given.
9641 if test "${enable_static+set}" = set; then
9642 enableval="$enable_static"
9643 p=${PACKAGE-default}
9645 yes) enable_static=yes ;;
9646 no) enable_static=no ;;
9649 # Look at the argument we got. We use all the common list separators.
9650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9651 for pkg in $enableval; do
9653 if test "X$pkg" = "X$p"; then
9664 # Check whether --enable-fast-install or --disable-fast-install was given.
9665 if test "${enable_fast_install+set}" = set; then
9666 enableval="$enable_fast_install"
9667 p=${PACKAGE-default}
9669 yes) enable_fast_install=yes ;;
9670 no) enable_fast_install=no ;;
9672 enable_fast_install=no
9673 # Look at the argument we got. We use all the common list separators.
9674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9675 for pkg in $enableval; do
9677 if test "X$pkg" = "X$p"; then
9678 enable_fast_install=yes
9685 enable_fast_install=yes
9688 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9689 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9690 if test "${lt_cv_path_SED+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 # Loop through the user's path and test for sed and gsed.
9694 # Then use that list of sed's as ones to test for truncation.
9695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 test -z "$as_dir" && as_dir=.
9700 for lt_ac_prog in sed gsed; do
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9703 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9710 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9711 # along with /bin/sed that truncates output.
9712 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9713 test ! -f $lt_ac_sed && break
9714 cat /dev/null > conftest.in
9716 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9717 # Check for GNU sed and select it if it is found.
9718 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9719 lt_cv_path_SED=$lt_ac_sed
9723 cat conftest.in conftest.in >conftest.tmp
9724 mv conftest.tmp conftest.in
9725 cp conftest.in conftest.nl
9727 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9728 cmp -s conftest.out conftest.nl || break
9729 # 10000 chars as input seems more than enough
9730 test $lt_ac_count -gt 10 && break
9731 lt_ac_count=`expr $lt_ac_count + 1`
9732 if test $lt_ac_count -gt $lt_ac_max; then
9733 lt_ac_max=$lt_ac_count
9734 lt_cv_path_SED=$lt_ac_sed
9742 echo "$as_me:$LINENO: result: $SED" >&5
9743 echo "${ECHO_T}$SED" >&6
9746 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9747 if test "${with_gnu_ld+set}" = set; then
9748 withval="$with_gnu_ld"
9749 test "$withval" = no || with_gnu_ld=yes
9754 if test "$GCC" = yes; then
9755 # Check if gcc -print-prog-name=ld gives a path.
9756 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9757 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9760 # gcc leaves a trailing carriage return which upsets mingw
9761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9766 # Accept absolute paths.
9768 re_direlt='/[^/][^/]*/\.\./'
9769 # Canonicalize the pathname of ld
9770 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9771 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9772 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9774 test -z "$LD" && LD="$ac_prog"
9777 # If it fails, then pretend we aren't using GCC.
9781 # If it is relative, then search for the first ld in PATH.
9785 elif test "$with_gnu_ld" = yes; then
9786 echo "$as_me:$LINENO: checking for GNU ld" >&5
9787 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9789 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9790 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9792 if test "${lt_cv_path_LD+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 if test -z "$LD"; then
9796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9797 for ac_dir in $PATH; do
9799 test -z "$ac_dir" && ac_dir=.
9800 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9801 lt_cv_path_LD="$ac_dir/$ac_prog"
9802 # Check to see if the program is GNU ld. I'd rather use --version,
9803 # but apparently some GNU ld's only accept -v.
9804 # Break only if it was the GNU/non-GNU ld that we prefer.
9805 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9806 *GNU* | *'with BFD'*)
9807 test "$with_gnu_ld" != no && break
9810 test "$with_gnu_ld" != yes && break
9817 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9822 if test -n "$LD"; then
9823 echo "$as_me:$LINENO: result: $LD" >&5
9824 echo "${ECHO_T}$LD" >&6
9826 echo "$as_me:$LINENO: result: no" >&5
9827 echo "${ECHO_T}no" >&6
9829 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9830 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9831 { (exit 1); exit 1; }; }
9832 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9833 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9834 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9838 case `$LD -v 2>&1 </dev/null` in
9839 *GNU* | *'with BFD'*)
9840 lt_cv_prog_gnu_ld=yes
9843 lt_cv_prog_gnu_ld=no
9847 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9848 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9849 with_gnu_ld=$lt_cv_prog_gnu_ld
9852 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9853 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9854 if test "${lt_cv_ld_reload_flag+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 lt_cv_ld_reload_flag='-r'
9859 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9860 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9861 reload_flag=$lt_cv_ld_reload_flag
9862 case $reload_flag in
9864 *) reload_flag=" $reload_flag" ;;
9866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9869 if test "$GCC" = yes; then
9870 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9877 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9878 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9879 if test "${lt_cv_deplibs_check_method+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 lt_cv_file_magic_cmd='$MAGIC_CMD'
9883 lt_cv_file_magic_test_file=
9884 lt_cv_deplibs_check_method='unknown'
9885 # Need to set the preceding variable on all platforms that support
9886 # interlibrary dependencies.
9887 # 'none' -- dependencies not supported.
9888 # `unknown' -- same as none, but documents that we really don't know.
9889 # 'pass_all' -- all dependencies passed with no checks.
9890 # 'test_compile' -- check by making test program.
9891 # 'file_magic [[regex]]' -- check by looking for files in library path
9892 # which responds to the $file_magic_cmd with a given extended regex.
9893 # If you have `file' or equivalent on your system and you're not sure
9894 # whether `pass_all' will *always* work, you probably want this one.
9898 lt_cv_deplibs_check_method=pass_all
9902 lt_cv_deplibs_check_method=pass_all
9906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9907 lt_cv_file_magic_cmd='/usr/bin/file -L'
9908 lt_cv_file_magic_test_file=/shlib/libc.so
9912 # func_win32_libid is a shell function defined in ltmain.sh
9913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9914 lt_cv_file_magic_cmd='func_win32_libid'
9918 # Base MSYS/MinGW do not provide the 'file' command needed by
9919 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9920 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9921 lt_cv_file_magic_cmd='$OBJDUMP -f'
9924 darwin* | rhapsody*)
9925 lt_cv_deplibs_check_method=pass_all
9928 freebsd* | kfreebsd*-gnu)
9929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9932 # Not sure whether the presence of OpenBSD here was a mistake.
9933 # Let's accept both of them until this is cleared up.
9934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9935 lt_cv_file_magic_cmd=/usr/bin/file
9936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9940 lt_cv_deplibs_check_method=pass_all
9945 lt_cv_deplibs_check_method=pass_all
9948 hpux10.20* | hpux11*)
9949 lt_cv_file_magic_cmd=/usr/bin/file
9952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9956 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]'
9957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9966 irix5* | irix6* | nonstopux*)
9968 *-32|*"-32 ") libmagic=32-bit;;
9969 *-n32|*"-n32 ") libmagic=N32;;
9970 *-64|*"-64 ") libmagic=64-bit;;
9971 *) libmagic=never-match;;
9973 lt_cv_deplibs_check_method=pass_all
9976 # This must be Linux ELF.
9978 lt_cv_deplibs_check_method=pass_all
9982 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9991 lt_cv_file_magic_cmd=/usr/bin/file
9992 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9996 lt_cv_deplibs_check_method=unknown
10000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10007 osf3* | osf4* | osf5*)
10008 lt_cv_deplibs_check_method=pass_all
10012 lt_cv_deplibs_check_method=pass_all
10016 lt_cv_deplibs_check_method=pass_all
10019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10020 case $host_vendor in
10022 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]'
10023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10026 lt_cv_deplibs_check_method=pass_all
10029 lt_cv_file_magic_cmd='/bin/file'
10030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10033 lt_cv_file_magic_cmd='/bin/file'
10034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10035 lt_cv_file_magic_test_file=/lib/libc.so
10038 lt_cv_deplibs_check_method=pass_all
10043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10044 lt_cv_deplibs_check_method=pass_all
10049 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10050 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10051 file_magic_cmd=$lt_cv_file_magic_cmd
10052 deplibs_check_method=$lt_cv_deplibs_check_method
10053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10057 # If no C compiler was specified, use CC.
10060 # Allow CC to be a program name with arguments.
10063 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10064 if test "${enable_libtool_lock+set}" = set; then
10065 enableval="$enable_libtool_lock"
10068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10070 # Some flags need to be propagated to the compiler or linker for good
10074 # Find out which ABI we are using.
10075 echo 'int i;' > conftest.$ac_ext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; then
10081 case `/usr/bin/file conftest.$ac_objext` in
10083 HPUX_IA64_MODE="32"
10086 HPUX_IA64_MODE="64"
10093 # Find out which ABI we are using.
10094 echo '#line 10094 "configure"' > conftest.$ac_ext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; then
10100 if test "$lt_cv_prog_gnu_ld" = yes; then
10101 case `/usr/bin/file conftest.$ac_objext` in
10103 LD="${LD-ld} -melf32bsmip"
10106 LD="${LD-ld} -melf32bmipn32"
10109 LD="${LD-ld} -melf64bmip"
10113 case `/usr/bin/file conftest.$ac_objext` in
10129 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10130 # Find out which ABI we are using.
10131 echo 'int i;' > conftest.$ac_ext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133 (eval $ac_compile) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; then
10137 case "`/usr/bin/file conftest.o`" in
10141 LD="${LD-ld} -m elf_i386"
10143 ppc64-*linux*|powerpc64-*linux*)
10144 LD="${LD-ld} -m elf32ppclinux"
10147 LD="${LD-ld} -m elf_s390"
10150 LD="${LD-ld} -m elf32_sparc"
10157 LD="${LD-ld} -m elf_x86_64"
10159 ppc*-*linux*|powerpc*-*linux*)
10160 LD="${LD-ld} -m elf64ppc"
10163 LD="${LD-ld} -m elf64_s390"
10166 LD="${LD-ld} -m elf64_sparc"
10176 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10177 SAVE_CFLAGS="$CFLAGS"
10178 CFLAGS="$CFLAGS -belf"
10179 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10180 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10181 if test "${lt_cv_cc_needs_belf+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 ac_cpp='$CPP $CPPFLAGS'
10186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10190 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>conftest.er1
10202 grep -v '^ *+' conftest.er1 >conftest.err
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 lt_cv_cc_needs_belf=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 lt_cv_cc_needs_belf=no
10227 rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10230 ac_cpp='$CPP $CPPFLAGS'
10231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10236 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10237 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10238 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10239 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10240 CFLAGS="$SAVE_CFLAGS"
10246 need_locks="$enable_libtool_lock"
10251 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10252 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10253 (test "X$CXX" != "Xg++"))) ; then
10255 ac_cpp='$CXXCPP $CPPFLAGS'
10256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10259 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10260 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10261 if test -z "$CXXCPP"; then
10262 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 # Double quotes because CXXCPP needs to be expanded
10266 for CXXCPP in "$CXX -E" "/lib/cpp"
10268 ac_preproc_ok=false
10269 for ac_cxx_preproc_warn_flag in '' yes
10271 # Use a header file that comes with gcc, so configuring glibc
10272 # with a fresh cross-compiler works.
10273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274 # <limits.h> exists even on freestanding compilers.
10275 # On the NeXT, cc -E runs the code through the compiler's parser,
10276 # not just through cpp. "Syntax error" is here to catch this case.
10277 cat >conftest.$ac_ext <<_ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10284 # include <limits.h>
10286 # include <assert.h>
10290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } >/dev/null; then
10298 if test -s conftest.err; then
10299 ac_cpp_err=$ac_cxx_preproc_warn_flag
10300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10307 if test -z "$ac_cpp_err"; then
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 # Broken: fails on valid input.
10316 rm -f conftest.err conftest.$ac_ext
10318 # OK, works on sane cases. Now check whether non-existent headers
10319 # can be detected and how.
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <ac_nonexistent.h>
10328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10331 grep -v '^ *+' conftest.er1 >conftest.err
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } >/dev/null; then
10336 if test -s conftest.err; then
10337 ac_cpp_err=$ac_cxx_preproc_warn_flag
10338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10345 if test -z "$ac_cpp_err"; then
10346 # Broken: success on invalid input.
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 # Passes both tests.
10356 rm -f conftest.err conftest.$ac_ext
10359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10360 rm -f conftest.err conftest.$ac_ext
10361 if $ac_preproc_ok; then
10366 ac_cv_prog_CXXCPP=$CXXCPP
10369 CXXCPP=$ac_cv_prog_CXXCPP
10371 ac_cv_prog_CXXCPP=$CXXCPP
10373 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10374 echo "${ECHO_T}$CXXCPP" >&6
10375 ac_preproc_ok=false
10376 for ac_cxx_preproc_warn_flag in '' yes
10378 # Use a header file that comes with gcc, so configuring glibc
10379 # with a fresh cross-compiler works.
10380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381 # <limits.h> exists even on freestanding compilers.
10382 # On the NeXT, cc -E runs the code through the compiler's parser,
10383 # not just through cpp. "Syntax error" is here to catch this case.
10384 cat >conftest.$ac_ext <<_ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10391 # include <limits.h>
10393 # include <assert.h>
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null; then
10405 if test -s conftest.err; then
10406 ac_cpp_err=$ac_cxx_preproc_warn_flag
10407 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10414 if test -z "$ac_cpp_err"; then
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 # Broken: fails on valid input.
10423 rm -f conftest.err conftest.$ac_ext
10425 # OK, works on sane cases. Now check whether non-existent headers
10426 # can be detected and how.
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 #include <ac_nonexistent.h>
10435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } >/dev/null; then
10443 if test -s conftest.err; then
10444 ac_cpp_err=$ac_cxx_preproc_warn_flag
10445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10452 if test -z "$ac_cpp_err"; then
10453 # Broken: success on invalid input.
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 # Passes both tests.
10463 rm -f conftest.err conftest.$ac_ext
10466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10467 rm -f conftest.err conftest.$ac_ext
10468 if $ac_preproc_ok; then
10471 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10472 See \`config.log' for more details." >&5
10473 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10474 See \`config.log' for more details." >&2;}
10475 { (exit 1); exit 1; }; }
10479 ac_cpp='$CXXCPP $CPPFLAGS'
10480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10491 if test -n "$ac_tool_prefix"; then
10492 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10496 echo "$as_me:$LINENO: checking for $ac_word" >&5
10497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498 if test "${ac_cv_prog_F77+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 if test -n "$F77"; then
10502 ac_cv_prog_F77="$F77" # Let the user override the test.
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 F77=$ac_cv_prog_F77
10521 if test -n "$F77"; then
10522 echo "$as_me:$LINENO: result: $F77" >&5
10523 echo "${ECHO_T}$F77" >&6
10525 echo "$as_me:$LINENO: result: no" >&5
10526 echo "${ECHO_T}no" >&6
10529 test -n "$F77" && break
10532 if test -z "$F77"; then
10534 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10536 # Extract the first word of "$ac_prog", so it can be a program name with args.
10537 set dummy $ac_prog; ac_word=$2
10538 echo "$as_me:$LINENO: checking for $ac_word" >&5
10539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10540 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 if test -n "$ac_ct_F77"; then
10544 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553 ac_cv_prog_ac_ct_F77="$ac_prog"
10554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10563 if test -n "$ac_ct_F77"; then
10564 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10565 echo "${ECHO_T}$ac_ct_F77" >&6
10567 echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6
10571 test -n "$ac_ct_F77" && break
10578 # Provide some information about the compiler.
10579 echo "$as_me:10579:" \
10580 "checking for Fortran 77 compiler version" >&5
10581 ac_compiler=`set X $ac_compile; echo $2`
10582 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10583 (eval $ac_compiler --version </dev/null >&5) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }
10587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10588 (eval $ac_compiler -v </dev/null >&5) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }
10592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10593 (eval $ac_compiler -V </dev/null >&5) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }
10599 # If we don't use `.F' as extension, the preprocessor is not run on the
10600 # input file. (Note that this only needs to work for GNU compilers.)
10601 ac_save_ext=$ac_ext
10603 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10604 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10605 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 cat >conftest.$ac_ext <<_ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>conftest.er1
10620 grep -v '^ *+' conftest.er1 >conftest.err
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -z "$ac_f77_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_compiler_gnu=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10649 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10650 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10651 ac_ext=$ac_save_ext
10652 ac_test_FFLAGS=${FFLAGS+set}
10653 ac_save_FFLAGS=$FFLAGS
10655 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10656 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10657 if test "${ac_cv_prog_f77_g+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
10675 { ac_try='test -z "$ac_f77_werror_flag"
10676 || test ! -s conftest.err'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_cv_prog_f77_g=yes
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_cv_prog_f77_g=no
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10699 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10700 if test "$ac_test_FFLAGS" = set; then
10701 FFLAGS=$ac_save_FFLAGS
10702 elif test $ac_cv_prog_f77_g = yes; then
10703 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10716 G77=`test $ac_compiler_gnu = yes && echo yes`
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10725 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10727 # find the maximum length of command line arguments
10728 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10729 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10730 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 # On DJGPP, this test can blow up pretty badly due to problems in libc
10739 # (any single argument exceeding 2000 bytes causes a buffer overrun
10740 # during glob expansion). Even if it were fixed, the result of this
10741 # check would be larger than it should be.
10742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10746 # Under GNU Hurd, this test is not required because there is
10747 # no limit to the length of command line arguments.
10748 # Libtool will interpret -1 as no limit whatsoever
10749 lt_cv_sys_max_cmd_len=-1;
10753 # On Win9x/ME, this test blows up -- it succeeds, but takes
10754 # about 5 minutes as the teststring grows exponentially.
10755 # Worse, since 9x/ME are not pre-emptively multitasking,
10756 # you end up with a "frozen" computer, even though with patience
10757 # the test eventually succeeds (with a max line length of 256k).
10758 # Instead, let's just punt: use the minimum linelength reported by
10759 # all of the supported platforms: 8192 (on NT/2K/XP).
10760 lt_cv_sys_max_cmd_len=8192;
10764 # On AmigaOS with pdksh, this test takes hours, literally.
10765 # So we just punt and use a minimum line length of 8192.
10766 lt_cv_sys_max_cmd_len=8192;
10769 netbsd* | freebsd* | openbsd* | darwin* )
10770 # This has been around since 386BSD, at least. Likely further.
10771 if test -x /sbin/sysctl; then
10772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10773 elif test -x /usr/sbin/sysctl; then
10774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10776 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10778 # And add a safety zone
10779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10783 # If test is not a shell built-in, we'll probably end up computing a
10784 # maximum length that is only half of the actual maximum length, but
10786 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10787 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10788 = "XX$teststring") >/dev/null 2>&1 &&
10789 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10790 lt_cv_sys_max_cmd_len=$new_result &&
10791 test $i != 17 # 1/2 MB should be enough
10794 teststring=$teststring$teststring
10797 # Add a significant safety factor because C++ compilers can tack on massive
10798 # amounts of additional arguments before passing them to the linker.
10799 # It appears as though 1/2 is a usable value.
10800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10806 if test -n $lt_cv_sys_max_cmd_len ; then
10807 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10808 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10810 echo "$as_me:$LINENO: result: none" >&5
10811 echo "${ECHO_T}none" >&6
10817 # Check for command to grab the raw symbol name followed by C symbol from nm.
10818 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10819 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10820 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 # These are sane defaults that work on at least a few old systems.
10825 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10827 # Character class describing NM global symbol codes.
10828 symcode='[BCDEGRST]'
10830 # Regexp to match symbols that can be accessed directly from C.
10831 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10833 # Transform the above into a raw symbol and a C symbol.
10834 symxfrm='\1 \2\3 \3'
10836 # Transform an extracted symbol line into a proper C declaration
10837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10839 # Transform an extracted symbol line into symbol name and symbol address
10840 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'"
10842 # Define system-specific variables.
10847 cygwin* | mingw* | pw32*)
10848 symcode='[ABCDGISTW]'
10850 hpux*) # Its linker distinguishes data from code symbols
10851 if test "$host_cpu" = ia64; then
10852 symcode='[ABCDEGRST]'
10854 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10855 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'"
10858 if test "$host_cpu" = ia64; then
10859 symcode='[ABCDGIRSTW]'
10860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10861 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'"
10864 irix* | nonstopux*)
10865 symcode='[BCDEGRST]'
10868 symcode='[BCDEGQRST]'
10878 # Handle CRLF in mingw tool chain
10882 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10886 # If we're using GNU nm, then use its standard symbol codes.
10887 case `$NM -V 2>&1` in
10888 *GNU* | *'with BFD'*)
10889 symcode='[ABCDGIRSTW]' ;;
10892 # Try without a prefix undercore, then with it.
10893 for ac_symprfx in "" "_"; do
10895 # Write the raw and C identifiers.
10896 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10898 # Check to see that the pipe works correctly.
10902 cat > conftest.$ac_ext <<EOF
10907 void nm_test_func(){}
10911 int main(){nm_test_var='a';nm_test_func();return(0);}
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; then
10919 # Now try to grab the symbols.
10921 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10922 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && test -s "$nlist"; then
10926 # Try sorting and uniquifying the output.
10927 if sort "$nlist" | uniq > "$nlist"T; then
10928 mv -f "$nlist"T "$nlist"
10933 # Make sure that we snagged all the symbols we need.
10934 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10935 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10936 cat <<EOF > conftest.$ac_ext
10942 # Now generate the symbol file.
10943 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10945 cat <<EOF >> conftest.$ac_ext
10946 #if defined (__STDC__) && __STDC__
10947 # define lt_ptr_t void *
10949 # define lt_ptr_t char *
10953 /* The mapping between symbol names and symbols. */
10958 lt_preloaded_symbols[] =
10961 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10962 cat <<\EOF >> conftest.$ac_ext
10970 # Now try linking the two files.
10971 mv conftest.$ac_objext conftstm.$ac_objext
10972 lt_save_LIBS="$LIBS"
10973 lt_save_CFLAGS="$CFLAGS"
10974 LIBS="conftstm.$ac_objext"
10975 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977 (eval $ac_link) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10983 LIBS="$lt_save_LIBS"
10984 CFLAGS="$lt_save_CFLAGS"
10986 echo "cannot find nm_test_func in $nlist" >&5
10989 echo "cannot find nm_test_var in $nlist" >&5
10992 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10995 echo "$progname: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10998 rm -f conftest* conftst*
11000 # Do not use the global_symbol_pipe unless it works.
11001 if test "$pipe_works" = yes; then
11004 lt_cv_sys_global_symbol_pipe=
11010 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11011 lt_cv_sys_global_symbol_to_cdecl=
11013 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11014 echo "$as_me:$LINENO: result: failed" >&5
11015 echo "${ECHO_T}failed" >&6
11017 echo "$as_me:$LINENO: result: ok" >&5
11018 echo "${ECHO_T}ok" >&6
11021 echo "$as_me:$LINENO: checking for objdir" >&5
11022 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11023 if test "${lt_cv_objdir+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 rm -f .libs 2>/dev/null
11027 mkdir .libs 2>/dev/null
11028 if test -d .libs; then
11031 # MS-DOS does not allow filenames that begin with a dot.
11034 rmdir .libs 2>/dev/null
11036 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11037 echo "${ECHO_T}$lt_cv_objdir" >&6
11038 objdir=$lt_cv_objdir
11046 # AIX sometimes has problems with the GCC collect2 program. For some
11047 # reason, if we set the COLLECT_NAMES environment variable, the problems
11048 # vanish in a puff of smoke.
11049 if test "X${COLLECT_NAMES+set}" != Xset; then
11051 export COLLECT_NAMES
11056 # Sed substitution that helps us do robust quoting. It backslashifies
11057 # metacharacters that are still active within double-quoted strings.
11058 Xsed='sed -e s/^X//'
11059 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11061 # Same as above, but do not quote variable references.
11062 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11064 # Sed substitution to delay expansion of an escaped shell variable in a
11065 # double_quote_subst'ed string.
11066 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11068 # Sed substitution to avoid accidental globbing in evaled expressions
11069 no_glob_subst='s/\*/\\\*/g'
11074 # Global variables:
11075 default_ofile=mklib
11076 can_build_shared=yes
11078 # All known linkers require a `.a' archive for static linking (except M$VC,
11079 # which needs '.lib').
11081 ltmain="$ac_aux_dir/ltmain.sh"
11082 ofile="$default_ofile"
11083 with_gnu_ld="$lt_cv_prog_gnu_ld"
11085 if test -n "$ac_tool_prefix"; then
11086 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11087 set dummy ${ac_tool_prefix}ar; ac_word=$2
11088 echo "$as_me:$LINENO: checking for $ac_word" >&5
11089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090 if test "${ac_cv_prog_AR+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 if test -n "$AR"; then
11094 ac_cv_prog_AR="$AR" # Let the user override the test.
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_prog_AR="${ac_tool_prefix}ar"
11104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 if test -n "$AR"; then
11114 echo "$as_me:$LINENO: result: $AR" >&5
11115 echo "${ECHO_T}$AR" >&6
11117 echo "$as_me:$LINENO: result: no" >&5
11118 echo "${ECHO_T}no" >&6
11122 if test -z "$ac_cv_prog_AR"; then
11124 # Extract the first word of "ar", so it can be a program name with args.
11125 set dummy ar; ac_word=$2
11126 echo "$as_me:$LINENO: checking for $ac_word" >&5
11127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 if test -n "$ac_ct_AR"; then
11132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11141 ac_cv_prog_ac_ct_AR="ar"
11142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11152 if test -n "$ac_ct_AR"; then
11153 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11154 echo "${ECHO_T}$ac_ct_AR" >&6
11156 echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6
11162 AR="$ac_cv_prog_AR"
11165 if test -n "$ac_tool_prefix"; then
11166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11168 echo "$as_me:$LINENO: checking for $ac_word" >&5
11169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11170 if test "${ac_cv_prog_RANLIB+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 if test -n "$RANLIB"; then
11174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 RANLIB=$ac_cv_prog_RANLIB
11193 if test -n "$RANLIB"; then
11194 echo "$as_me:$LINENO: result: $RANLIB" >&5
11195 echo "${ECHO_T}$RANLIB" >&6
11197 echo "$as_me:$LINENO: result: no" >&5
11198 echo "${ECHO_T}no" >&6
11202 if test -z "$ac_cv_prog_RANLIB"; then
11203 ac_ct_RANLIB=$RANLIB
11204 # Extract the first word of "ranlib", so it can be a program name with args.
11205 set dummy ranlib; ac_word=$2
11206 echo "$as_me:$LINENO: checking for $ac_word" >&5
11207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 if test -n "$ac_ct_RANLIB"; then
11212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_ac_ct_RANLIB="ranlib"
11222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11232 if test -n "$ac_ct_RANLIB"; then
11233 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11236 echo "$as_me:$LINENO: result: no" >&5
11237 echo "${ECHO_T}no" >&6
11240 RANLIB=$ac_ct_RANLIB
11242 RANLIB="$ac_cv_prog_RANLIB"
11245 if test -n "$ac_tool_prefix"; then
11246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11247 set dummy ${ac_tool_prefix}strip; ac_word=$2
11248 echo "$as_me:$LINENO: checking for $ac_word" >&5
11249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11250 if test "${ac_cv_prog_STRIP+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11253 if test -n "$STRIP"; then
11254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 STRIP=$ac_cv_prog_STRIP
11273 if test -n "$STRIP"; then
11274 echo "$as_me:$LINENO: result: $STRIP" >&5
11275 echo "${ECHO_T}$STRIP" >&6
11277 echo "$as_me:$LINENO: result: no" >&5
11278 echo "${ECHO_T}no" >&6
11282 if test -z "$ac_cv_prog_STRIP"; then
11284 # Extract the first word of "strip", so it can be a program name with args.
11285 set dummy strip; ac_word=$2
11286 echo "$as_me:$LINENO: checking for $ac_word" >&5
11287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11288 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 if test -n "$ac_ct_STRIP"; then
11292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_ac_ct_STRIP="strip"
11302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11312 if test -n "$ac_ct_STRIP"; then
11313 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11314 echo "${ECHO_T}$ac_ct_STRIP" >&6
11316 echo "$as_me:$LINENO: result: no" >&5
11317 echo "${ECHO_T}no" >&6
11322 STRIP="$ac_cv_prog_STRIP"
11327 old_CFLAGS="$CFLAGS"
11329 # Set sane defaults for various variables
11330 test -z "$AR" && AR=ar
11331 test -z "$AR_FLAGS" && AR_FLAGS=cru
11332 test -z "$AS" && AS=as
11333 test -z "$CC" && CC=cc
11334 test -z "$LTCC" && LTCC=$CC
11335 test -z "$DLLTOOL" && DLLTOOL=dlltool
11336 test -z "$LD" && LD=ld
11337 test -z "$LN_S" && LN_S="ln -s"
11338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11339 test -z "$NM" && NM=nm
11340 test -z "$SED" && SED=sed
11341 test -z "$OBJDUMP" && OBJDUMP=objdump
11342 test -z "$RANLIB" && RANLIB=:
11343 test -z "$STRIP" && STRIP=:
11344 test -z "$ac_objext" && ac_objext=o
11346 # Determine commands to create old-style static archives.
11347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11348 old_postinstall_cmds='chmod 644 $oldlib'
11349 old_postuninstall_cmds=
11351 if test -n "$RANLIB"; then
11354 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11357 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11363 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11365 # Only perform the check for file, if the check method requires it
11366 case $deplibs_check_method in
11368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11369 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11370 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11379 lt_save_MAGIC_CMD="$MAGIC_CMD"
11380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11382 for ac_dir in $ac_dummy; do
11384 test -z "$ac_dir" && ac_dir=.
11385 if test -f $ac_dir/${ac_tool_prefix}file; then
11386 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11387 if test -n "$file_magic_test_file"; then
11388 case $deplibs_check_method in
11390 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11393 $EGREP "$file_magic_regex" > /dev/null; then
11398 *** Warning: the command libtool uses to detect shared libraries,
11399 *** $file_magic_cmd, produces output that libtool cannot recognize.
11400 *** The result is that libtool may fail to recognize shared libraries
11401 *** as such. This will affect the creation of libtool libraries that
11402 *** depend on shared libraries, but programs linked with such libtool
11403 *** libraries will work regardless of this problem. Nevertheless, you
11404 *** may want to report the problem to your system manager and/or to
11405 *** bug-libtool@gnu.org
11415 MAGIC_CMD="$lt_save_MAGIC_CMD"
11420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11421 if test -n "$MAGIC_CMD"; then
11422 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11423 echo "${ECHO_T}$MAGIC_CMD" >&6
11425 echo "$as_me:$LINENO: result: no" >&5
11426 echo "${ECHO_T}no" >&6
11429 if test -z "$lt_cv_path_MAGIC_CMD"; then
11430 if test -n "$ac_tool_prefix"; then
11431 echo "$as_me:$LINENO: checking for file" >&5
11432 echo $ECHO_N "checking for file... $ECHO_C" >&6
11433 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11441 lt_save_MAGIC_CMD="$MAGIC_CMD"
11442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11444 for ac_dir in $ac_dummy; do
11446 test -z "$ac_dir" && ac_dir=.
11447 if test -f $ac_dir/file; then
11448 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11449 if test -n "$file_magic_test_file"; then
11450 case $deplibs_check_method in
11452 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11455 $EGREP "$file_magic_regex" > /dev/null; then
11460 *** Warning: the command libtool uses to detect shared libraries,
11461 *** $file_magic_cmd, produces output that libtool cannot recognize.
11462 *** The result is that libtool may fail to recognize shared libraries
11463 *** as such. This will affect the creation of libtool libraries that
11464 *** depend on shared libraries, but programs linked with such libtool
11465 *** libraries will work regardless of this problem. Nevertheless, you
11466 *** may want to report the problem to your system manager and/or to
11467 *** bug-libtool@gnu.org
11477 MAGIC_CMD="$lt_save_MAGIC_CMD"
11482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11483 if test -n "$MAGIC_CMD"; then
11484 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11485 echo "${ECHO_T}$MAGIC_CMD" >&6
11487 echo "$as_me:$LINENO: result: no" >&5
11488 echo "${ECHO_T}no" >&6
11501 enable_win32_dll=no
11503 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11504 if test "${enable_libtool_lock+set}" = set; then
11505 enableval="$enable_libtool_lock"
11508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11511 # Check whether --with-pic or --without-pic was given.
11512 if test "${with_pic+set}" = set; then
11513 withval="$with_pic"
11514 pic_mode="$withval"
11518 test -z "$pic_mode" && pic_mode=default
11520 # Use C for the default configuration in the libtool script
11524 ac_cpp='$CPP $CPPFLAGS'
11525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11530 # Source file extension for C test sources.
11533 # Object file extension for compiled C test sources.
11537 # Code to be used in simple compile tests
11538 lt_simple_compile_test_code="int some_variable = 0;\n"
11540 # Code to be used in simple link tests
11541 lt_simple_link_test_code='int main(){return(0);}\n'
11544 # If no C compiler was specified, use CC.
11547 # Allow CC to be a program name with arguments.
11552 # Check for any special shared library compilation flags.
11555 if test "$GCC" = no; then
11558 lt_prog_cc_shlib='-belf'
11562 if test -n "$lt_prog_cc_shlib"; then
11563 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11564 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11565 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11567 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11568 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11569 lt_cv_prog_cc_can_build_shared=no
11575 # Check to make sure the static flag actually works.
11577 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11578 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11579 if test "${lt_prog_compiler_static_works+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 lt_prog_compiler_static_works=no
11583 save_LDFLAGS="$LDFLAGS"
11584 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587 # The compiler can only warn and ignore the option if not recognized
11588 # So say no if there are warnings
11589 if test -s conftest.err; then
11590 # Append any errors to the config.log.
11591 cat conftest.err 1>&5
11593 lt_prog_compiler_static_works=yes
11597 LDFLAGS="$save_LDFLAGS"
11600 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11601 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11603 if test x"$lt_prog_compiler_static_works" = xyes; then
11606 lt_prog_compiler_static=
11612 lt_prog_compiler_no_builtin_flag=
11614 if test "$GCC" = yes; then
11615 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11618 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11619 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11620 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 lt_cv_prog_compiler_rtti_exceptions=no
11624 ac_outfile=conftest.$ac_objext
11625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11626 lt_compiler_flag="-fno-rtti -fno-exceptions"
11627 # Insert the option either (1) after the last *FLAGS variable, or
11628 # (2) before a word containing "conftest.", or (3) at the end.
11629 # Note that $ac_compile itself does not contain backslashes and begins
11630 # with a dollar sign (not a hyphen), so the echo should work correctly.
11631 # The option is referenced via a variable to avoid confusing sed.
11632 lt_compile=`echo "$ac_compile" | $SED \
11633 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11635 -e 's:$: $lt_compiler_flag:'`
11636 (eval echo "\"\$as_me:11636: $lt_compile\"" >&5)
11637 (eval "$lt_compile" 2>conftest.err)
11639 cat conftest.err >&5
11640 echo "$as_me:11640: \$? = $ac_status" >&5
11641 if (exit $ac_status) && test -s "$ac_outfile"; then
11642 # The compiler can only warn and ignore the option if not recognized
11643 # So say no if there are warnings
11644 if test ! -s conftest.err; then
11645 lt_cv_prog_compiler_rtti_exceptions=yes
11651 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11652 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11654 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11655 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11662 lt_prog_compiler_wl=
11663 lt_prog_compiler_pic=
11664 lt_prog_compiler_static=
11666 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11667 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11669 if test "$GCC" = yes; then
11670 lt_prog_compiler_wl='-Wl,'
11671 lt_prog_compiler_static='-static'
11675 # All AIX code is PIC.
11676 if test "$host_cpu" = ia64; then
11677 # AIX 5 now supports IA64 processor
11678 lt_prog_compiler_static='-Bstatic'
11683 # FIXME: we need at least 68020 code to build shared libraries, but
11684 # adding the `-m68020' flag to GCC prevents building anything better,
11686 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11689 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11690 # PIC is the default for these OSes.
11693 mingw* | pw32* | os2*)
11694 # This hack is so that the source file can tell whether it is being
11695 # built for inclusion in a dll (and should export symbols for example).
11696 lt_prog_compiler_pic='-DDLL_EXPORT'
11699 darwin* | rhapsody*)
11700 # PIC is the default on this platform
11701 # Common symbols not allowed in MH_DYLIB files
11702 lt_prog_compiler_pic='-fno-common'
11706 # Just because we use GCC doesn't mean we suddenly get shared libraries
11707 # on systems that don't support them.
11708 lt_prog_compiler_can_build_shared=no
11713 if test -d /usr/nec; then
11714 lt_prog_compiler_pic=-Kconform_pic
11719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11720 # not for PA HP-UX.
11721 case "$host_cpu" in
11726 lt_prog_compiler_pic='-fPIC'
11732 lt_prog_compiler_pic='-fPIC'
11736 # PORTME Check for flag to pass linker flags through the system compiler.
11739 lt_prog_compiler_wl='-Wl,'
11740 if test "$host_cpu" = ia64; then
11741 # AIX 5 now supports IA64 processor
11742 lt_prog_compiler_static='-Bstatic'
11744 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11748 # PIC is the default on this platform
11749 # Common symbols not allowed in MH_DYLIB files
11750 case "$cc_basename" in
11752 lt_prog_compiler_pic='-qnocommon'
11753 lt_prog_compiler_wl='-Wl,'
11758 mingw* | pw32* | os2*)
11759 # This hack is so that the source file can tell whether it is being
11760 # built for inclusion in a dll (and should export symbols for example).
11761 lt_prog_compiler_pic='-DDLL_EXPORT'
11764 hpux9* | hpux10* | hpux11*)
11765 lt_prog_compiler_wl='-Wl,'
11766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11767 # not for PA HP-UX.
11768 case "$host_cpu" in
11773 lt_prog_compiler_pic='+Z'
11776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11777 lt_prog_compiler_static='${wl}-a ${wl}archive'
11780 irix5* | irix6* | nonstopux*)
11781 lt_prog_compiler_wl='-Wl,'
11782 # PIC (with -KPIC) is the default.
11783 lt_prog_compiler_static='-non_shared'
11787 lt_prog_compiler_pic='-KPIC'
11788 lt_prog_compiler_static='-Bstatic'
11794 lt_prog_compiler_wl='-Wl,'
11795 lt_prog_compiler_pic='-KPIC'
11796 lt_prog_compiler_static='-static'
11799 lt_prog_compiler_wl='-Wl,'
11800 # All Alpha code is PIC.
11801 lt_prog_compiler_static='-non_shared'
11806 osf3* | osf4* | osf5*)
11807 lt_prog_compiler_wl='-Wl,'
11808 # All OSF/1 code is PIC.
11809 lt_prog_compiler_static='-non_shared'
11813 lt_prog_compiler_pic='-Kpic'
11814 lt_prog_compiler_static='-dn'
11818 lt_prog_compiler_wl='-Wl,'
11819 lt_prog_compiler_pic='-KPIC'
11820 lt_prog_compiler_static='-Bstatic'
11824 lt_prog_compiler_wl='-Qoption ld '
11825 lt_prog_compiler_pic='-PIC'
11826 lt_prog_compiler_static='-Bstatic'
11829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11830 lt_prog_compiler_wl='-Wl,'
11831 lt_prog_compiler_pic='-KPIC'
11832 lt_prog_compiler_static='-Bstatic'
11836 if test -d /usr/nec ;then
11837 lt_prog_compiler_pic='-Kconform_pic'
11838 lt_prog_compiler_static='-Bstatic'
11843 lt_prog_compiler_pic='-pic'
11844 lt_prog_compiler_static='-Bstatic'
11848 lt_prog_compiler_can_build_shared=no
11853 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11854 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11857 # Check to make sure the PIC flag actually works.
11859 if test -n "$lt_prog_compiler_pic"; then
11861 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11862 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11863 if test "${lt_prog_compiler_pic_works+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 lt_prog_compiler_pic_works=no
11867 ac_outfile=conftest.$ac_objext
11868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11870 # Insert the option either (1) after the last *FLAGS variable, or
11871 # (2) before a word containing "conftest.", or (3) at the end.
11872 # Note that $ac_compile itself does not contain backslashes and begins
11873 # with a dollar sign (not a hyphen), so the echo should work correctly.
11874 # The option is referenced via a variable to avoid confusing sed.
11875 lt_compile=`echo "$ac_compile" | $SED \
11876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11878 -e 's:$: $lt_compiler_flag:'`
11879 (eval echo "\"\$as_me:11879: $lt_compile\"" >&5)
11880 (eval "$lt_compile" 2>conftest.err)
11882 cat conftest.err >&5
11883 echo "$as_me:11883: \$? = $ac_status" >&5
11884 if (exit $ac_status) && test -s "$ac_outfile"; then
11885 # The compiler can only warn and ignore the option if not recognized
11886 # So say no if there are warnings
11887 if test ! -s conftest.err; then
11888 lt_prog_compiler_pic_works=yes
11894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11895 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11897 if test x"$lt_prog_compiler_pic_works" = xyes; then
11898 case $lt_prog_compiler_pic in
11900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11903 lt_prog_compiler_pic=
11904 lt_prog_compiler_can_build_shared=no
11909 # For platforms which do not support PIC, -DPIC is meaningless:
11911 lt_prog_compiler_pic=
11914 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11918 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 lt_cv_prog_compiler_c_o=no
11924 $rm -r conftest 2>/dev/null
11928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11930 lt_compiler_flag="-o out/conftest2.$ac_objext"
11931 # Insert the option either (1) after the last *FLAGS variable, or
11932 # (2) before a word containing "conftest.", or (3) at the end.
11933 # Note that $ac_compile itself does not contain backslashes and begins
11934 # with a dollar sign (not a hyphen), so the echo should work correctly.
11935 lt_compile=`echo "$ac_compile" | $SED \
11936 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11938 -e 's:$: $lt_compiler_flag:'`
11939 (eval echo "\"\$as_me:11939: $lt_compile\"" >&5)
11940 (eval "$lt_compile" 2>out/conftest.err)
11942 cat out/conftest.err >&5
11943 echo "$as_me:11943: \$? = $ac_status" >&5
11944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11946 # The compiler can only warn and ignore the option if not recognized
11947 # So say no if there are warnings
11948 if test ! -s out/conftest.err; then
11949 lt_cv_prog_compiler_c_o=yes
11954 # SGI C++ compiler will create directory out/ii_files/ for
11955 # template instantiation
11956 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11957 $rm out/* && rmdir out
11963 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11964 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11967 hard_links="nottested"
11968 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11969 # do not overwrite the value of need_locks provided by the user
11970 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11976 ln conftest.a conftest.b 2>&5 || hard_links=no
11977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11978 echo "$as_me:$LINENO: result: $hard_links" >&5
11979 echo "${ECHO_T}$hard_links" >&6
11980 if test "$hard_links" = no; then
11981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11989 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11990 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11993 allow_undefined_flag=
11994 enable_shared_with_static_runtimes=no
11996 archive_expsym_cmds=
11997 old_archive_From_new_cmds=
11998 old_archive_from_expsyms_cmds=
11999 export_dynamic_flag_spec=
12000 whole_archive_flag_spec=
12001 thread_safe_flag_spec=
12002 hardcode_libdir_flag_spec=
12003 hardcode_libdir_flag_spec_ld=
12004 hardcode_libdir_separator=
12006 hardcode_minus_L=no
12007 hardcode_shlibpath_var=unsupported
12008 link_all_deplibs=unknown
12009 hardcode_automatic=no
12011 module_expsym_cmds=
12012 always_export_symbols=no
12013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12014 # include_expsyms should be a list of space-separated symbols to be *always*
12015 # included in the symbol list
12017 # exclude_expsyms can be an extended regexp of symbols to exclude
12018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12020 # as well as any symbol that contains `d'.
12021 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12023 # platforms (ab)use it in PIC code, but their linkers get confused if
12024 # the symbol is explicitly referenced. Since portable code cannot
12025 # rely on this symbol name, it's probably fine to never include it in
12026 # preloaded symbol tables.
12027 extract_expsyms_cmds=
12030 cygwin* | mingw* | pw32*)
12031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12032 # When not using gcc, we currently assume that we are using
12033 # Microsoft Visual C++.
12034 if test "$GCC" != yes; then
12044 if test "$with_gnu_ld" = yes; then
12045 # If archive_cmds runs LD, not CC, wlarc should be empty
12048 # See if GNU ld supports shared libraries.
12050 aix3* | aix4* | aix5*)
12051 # On AIX/PPC, the GNU linker is very broken
12052 if test "$host_cpu" != ia64; then
12056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12057 *** to be unable to reliably create shared libraries on AIX.
12058 *** Therefore, libtool is disabling shared libraries support. If you
12059 *** really care for shared libraries, you may want to modify your PATH
12060 *** so that a non-GNU linker is found, and then restart.
12067 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)'
12068 hardcode_libdir_flag_spec='-L$libdir'
12069 hardcode_minus_L=yes
12071 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12072 # that the semantics of dynamic libraries on AmigaOS, at least up
12073 # to version 4, is to share data among multiple programs linked
12074 # with the same dynamic library. Since this doesn't match the
12075 # behavior of shared libraries on other platforms, we can't use
12081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12082 allow_undefined_flag=unsupported
12083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12084 # support --undefined. This deserves some investigation. FIXME
12085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12091 cygwin* | mingw* | pw32*)
12092 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12093 # as there is no search path for DLLs.
12094 hardcode_libdir_flag_spec='-L$libdir'
12095 allow_undefined_flag=unsupported
12096 always_export_symbols=no
12097 enable_shared_with_static_runtimes=yes
12098 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12100 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12102 # If the export-symbols file already is a .def file (1st line
12103 # is EXPORTS), use it as is; otherwise, prepend...
12104 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12105 cp $export_symbols $output_objdir/$soname.def;
12107 echo EXPORTS > $output_objdir/$soname.def;
12108 cat $export_symbols >> $output_objdir/$soname.def;
12110 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12118 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12127 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12131 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12132 *** create shared libraries on Solaris systems. Therefore, libtool
12133 *** is disabling shared libraries support. We urge you to upgrade GNU
12134 *** binutils to release 2.9.1 or newer. Another option is to modify
12135 *** your PATH or compiler configuration so that the native linker is
12136 *** used, and then restart.
12139 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12150 hardcode_direct=yes
12151 hardcode_shlibpath_var=no
12155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12156 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157 archive_cmds="$tmp_archive_cmds"
12158 supports_anon_versioning=no
12159 case `$LD -v 2>/dev/null` in
12160 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12163 *\ 2.11.*) ;; # other 2.11 versions
12164 *) supports_anon_versioning=yes ;;
12166 if test $supports_anon_versioning = yes; then
12167 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12168 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12169 $echo "local: *; };" >> $output_objdir/$libname.ver~
12170 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12172 archive_expsym_cmds="$tmp_archive_cmds"
12180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12189 if test "$ld_shlibs" = yes; then
12190 runpath_var=LD_RUN_PATH
12191 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12192 export_dynamic_flag_spec='${wl}--export-dynamic'
12193 # ancient GNU ld didn't support --whole-archive et. al.
12194 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12197 whole_archive_flag_spec=
12201 # PORTME fill in a description of your system's linker (not GNU ld)
12204 allow_undefined_flag=unsupported
12205 always_export_symbols=yes
12206 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'
12207 # Note: this linker hardcodes the directories in LIBPATH if there
12208 # are no directories specified by -L.
12209 hardcode_minus_L=yes
12210 if test "$GCC" = yes && test -z "$link_static_flag"; then
12211 # Neither direct hardcoding nor static linking is supported with a
12213 hardcode_direct=unsupported
12218 if test "$host_cpu" = ia64; then
12219 # On IA64, the linker does run time linking by default, so we don't
12220 # have to do anything special.
12221 aix_use_runtimelinking=no
12222 exp_sym_flag='-Bexport'
12225 # If we're using GNU nm, then we don't want the "-C" option.
12226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12228 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'
12230 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'
12232 aix_use_runtimelinking=no
12234 # Test if we are trying to use run time linking or normal
12235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12236 # need to do runtime linking.
12237 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12238 for ld_flag in $LDFLAGS; do
12239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12240 aix_use_runtimelinking=yes
12246 exp_sym_flag='-bexport'
12247 no_entry_flag='-bnoentry'
12250 # When large executables or shared objects are built, AIX ld can
12251 # have problems creating the table of contents. If linking a library
12252 # or program results in "error TOC overflow" add -mminimal-toc to
12253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12257 hardcode_direct=yes
12258 hardcode_libdir_separator=':'
12259 link_all_deplibs=yes
12261 if test "$GCC" = yes; then
12262 case $host_os in aix4.012|aix4.012.*)
12263 # We only want to do this on AIX 4.2 and lower, the check
12264 # below for broken collect2 doesn't work under 4.3+
12265 collect2name=`${CC} -print-prog-name=collect2`
12266 if test -f "$collect2name" && \
12267 strings "$collect2name" | grep resolve_lib_name >/dev/null
12269 # We have reworked collect2
12270 hardcode_direct=yes
12272 # We have old collect2
12273 hardcode_direct=unsupported
12274 # It fails to find uninstalled libraries when the uninstalled
12275 # path is not listed in the libpath. Setting hardcode_minus_L
12276 # to unsupported forces relinking
12277 hardcode_minus_L=yes
12278 hardcode_libdir_flag_spec='-L$libdir'
12279 hardcode_libdir_separator=
12282 shared_flag='-shared'
12285 if test "$host_cpu" = ia64; then
12286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12287 # chokes on -Wl,-G. The following line is correct:
12290 if test "$aix_use_runtimelinking" = yes; then
12291 shared_flag='${wl}-G'
12293 shared_flag='${wl}-bM:SRE'
12298 # It seems that -bexpall does not export symbols beginning with
12299 # underscore (_), so it is better to generate a list of symbols to export.
12300 always_export_symbols=yes
12301 if test "$aix_use_runtimelinking" = yes; then
12302 # Warning - without using the other runtime loading flags (-brtl),
12303 # -berok will link without error, but may produce a broken library.
12304 allow_undefined_flag='-berok'
12305 # Determine the default libpath from the value encoded in an empty executable.
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323 (eval $ac_link) 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag"
12331 || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12346 # Check for a 64-bit object if we didn't find anything.
12347 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; }
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12354 rm -f conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12358 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12359 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"
12361 if test "$host_cpu" = ia64; then
12362 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12363 allow_undefined_flag="-z nodefs"
12364 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"
12366 # Determine the default libpath from the value encoded in an empty executable.
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
12391 { ac_try='test -z "$ac_c_werror_flag"
12392 || test ! -s conftest.err'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12407 # Check for a 64-bit object if we didn't find anything.
12408 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; }
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12415 rm -f conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12420 # Warning - without using the other run time loading flags,
12421 # -berok will link without error, but may produce a broken library.
12422 no_undefined_flag=' ${wl}-bernotok'
12423 allow_undefined_flag=' ${wl}-berok'
12424 # -bexpall does not export symbols beginning with underscore (_)
12425 always_export_symbols=yes
12426 # Exported symbols can be pulled into shared objects from archives
12427 whole_archive_flag_spec=' '
12428 archive_cmds_need_lc=yes
12429 # This is similar to how AIX traditionally builds it's shared libraries.
12430 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'
12436 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)'
12437 hardcode_libdir_flag_spec='-L$libdir'
12438 hardcode_minus_L=yes
12439 # see comment about different semantics on the GNU ld section
12444 export_dynamic_flag_spec=-rdynamic
12447 cygwin* | mingw* | pw32*)
12448 # When not using gcc, we currently assume that we are using
12449 # Microsoft Visual C++.
12450 # hardcode_libdir_flag_spec is actually meaningless, as there is
12451 # no search path for DLLs.
12452 hardcode_libdir_flag_spec=' '
12453 allow_undefined_flag=unsupported
12454 # Tell ltmain to make .lib files, not .a files.
12456 # Tell ltmain to make .dll files, not .so files.
12458 # FIXME: Setting linknames here is a bad hack.
12459 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12460 # The linker will automatically build a .lib file if we build a DLL.
12461 old_archive_From_new_cmds='true'
12462 # FIXME: Should let the user specify the lib program.
12463 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12464 fix_srcfile_path='`cygpath -w "$srcfile"`'
12465 enable_shared_with_static_runtimes=yes
12468 darwin* | rhapsody*)
12470 rhapsody* | darwin1.[012])
12471 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12474 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12475 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12477 case ${MACOSX_DEPLOYMENT_TARGET} in
12479 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12482 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12488 archive_cmds_need_lc=no
12490 hardcode_automatic=yes
12491 hardcode_shlibpath_var=unsupported
12492 whole_archive_flag_spec=''
12493 link_all_deplibs=yes
12494 if test "$GCC" = yes ; then
12495 output_verbose_link_cmd='echo'
12496 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12497 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12499 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}'
12500 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}'
12502 case "$cc_basename" in
12504 output_verbose_link_cmd='echo'
12505 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12506 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12508 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}'
12509 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}'
12519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12520 hardcode_libdir_flag_spec='-L$libdir'
12521 hardcode_shlibpath_var=no
12528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12529 # support. Future versions do this automatically, but an explicit c++rt0.o
12530 # does not break anything, and helps significantly (at the cost of a little
12533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12534 hardcode_libdir_flag_spec='-R$libdir'
12535 hardcode_direct=yes
12536 hardcode_shlibpath_var=no
12539 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12542 hardcode_direct=yes
12543 hardcode_minus_L=yes
12544 hardcode_shlibpath_var=no
12547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12548 freebsd* | kfreebsd*-gnu)
12549 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12550 hardcode_libdir_flag_spec='-R$libdir'
12551 hardcode_direct=yes
12552 hardcode_shlibpath_var=no
12556 if test "$GCC" = yes; then
12557 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'
12559 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'
12561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12562 hardcode_libdir_separator=:
12563 hardcode_direct=yes
12565 # hardcode_minus_L: Not really in the search PATH,
12566 # but as the default location of the library.
12567 hardcode_minus_L=yes
12568 export_dynamic_flag_spec='${wl}-E'
12572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12573 case "$host_cpu" in
12575 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12582 case "$host_cpu" in
12584 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12591 if test "$with_gnu_ld" = no; then
12592 case "$host_cpu" in
12594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12595 hardcode_libdir_flag_spec_ld='+b $libdir'
12596 hardcode_libdir_separator=:
12598 hardcode_shlibpath_var=no
12601 hardcode_libdir_flag_spec='-L$libdir'
12603 hardcode_shlibpath_var=no
12605 # hardcode_minus_L: Not really in the search PATH,
12606 # but as the default location of the library.
12607 hardcode_minus_L=yes
12610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12611 hardcode_libdir_separator=:
12612 hardcode_direct=yes
12613 export_dynamic_flag_spec='${wl}-E'
12615 # hardcode_minus_L: Not really in the search PATH,
12616 # but as the default location of the library.
12617 hardcode_minus_L=yes
12623 irix5* | irix6* | nonstopux*)
12624 if test "$GCC" = yes; then
12625 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'
12627 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'
12628 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12631 hardcode_libdir_separator=:
12632 link_all_deplibs=yes
12636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12639 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12641 hardcode_libdir_flag_spec='-R$libdir'
12642 hardcode_direct=yes
12643 hardcode_shlibpath_var=no
12647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12648 hardcode_direct=yes
12649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12650 hardcode_libdir_separator=:
12651 hardcode_shlibpath_var=no
12655 hardcode_direct=yes
12656 hardcode_shlibpath_var=no
12657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12659 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12661 export_dynamic_flag_spec='${wl}-E'
12664 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12666 hardcode_libdir_flag_spec='-R$libdir'
12669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12677 hardcode_libdir_flag_spec='-L$libdir'
12678 hardcode_minus_L=yes
12679 allow_undefined_flag=unsupported
12680 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'
12681 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12685 if test "$GCC" = yes; then
12686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12687 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'
12689 allow_undefined_flag=' -expect_unresolved \*'
12690 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'
12692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12693 hardcode_libdir_separator=:
12696 osf4* | osf5*) # as osf3* with the addition of -msym flag
12697 if test "$GCC" = yes; then
12698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12699 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'
12700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12702 allow_undefined_flag=' -expect_unresolved \*'
12703 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'
12704 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12705 $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'
12707 # Both c and cxx compiler support -rpath directly
12708 hardcode_libdir_flag_spec='-rpath $libdir'
12710 hardcode_libdir_separator=:
12714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12715 hardcode_shlibpath_var=no
12716 export_dynamic_flag_spec='${wl}-Bexport'
12717 runpath_var=LD_RUN_PATH
12718 hardcode_runpath_var=yes
12722 no_undefined_flag=' -z text'
12723 if test "$GCC" = yes; then
12724 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12725 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12726 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12729 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12732 hardcode_libdir_flag_spec='-R$libdir'
12733 hardcode_shlibpath_var=no
12735 solaris2.[0-5] | solaris2.[0-5].*) ;;
12736 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12739 link_all_deplibs=yes
12743 if test "x$host_vendor" = xsequent; then
12744 # Use $CC to link under sequent, because it throws in some extra .o
12745 # files that make .init and .fini sections work.
12746 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12750 hardcode_libdir_flag_spec='-L$libdir'
12751 hardcode_direct=yes
12752 hardcode_minus_L=yes
12753 hardcode_shlibpath_var=no
12757 case $host_vendor in
12759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_direct=yes # is this really true???
12763 ## LD is ld it makes a PLAMLIB
12764 ## CC just makes a GrossModule.
12765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12766 reload_cmds='$CC -r -o $output$reload_objs'
12770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12774 runpath_var='LD_RUN_PATH'
12775 hardcode_shlibpath_var=no
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_shlibpath_var=no
12781 export_dynamic_flag_spec='-Bexport'
12785 if test -d /usr/nec; then
12786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12787 hardcode_shlibpath_var=no
12788 runpath_var=LD_RUN_PATH
12789 hardcode_runpath_var=yes
12795 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12796 hardcode_direct=yes
12797 hardcode_minus_L=no
12798 hardcode_shlibpath_var=no
12799 hardcode_runpath_var=yes
12800 runpath_var=LD_RUN_PATH
12803 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12804 no_undefined_flag='${wl}-z ${wl}text'
12805 if test "$GCC" = yes; then
12806 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12808 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12810 runpath_var='LD_RUN_PATH'
12811 hardcode_shlibpath_var=no
12815 no_undefined_flag=' -z text'
12816 # $CC -shared without GNU ld will not create a library from C++
12817 # object files and a static libstdc++, better avoid it by now
12818 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12821 hardcode_libdir_flag_spec=
12822 hardcode_shlibpath_var=no
12823 runpath_var='LD_RUN_PATH'
12827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12828 hardcode_libdir_flag_spec='-L$libdir'
12829 hardcode_shlibpath_var=no
12838 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12839 echo "${ECHO_T}$ld_shlibs" >&6
12840 test "$ld_shlibs" = no && can_build_shared=no
12842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12843 if test "$GCC" = yes; then
12844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12848 # Do we need to explicitly link libc?
12850 case "x$archive_cmds_need_lc" in
12852 # Assume -lc should be added
12853 archive_cmds_need_lc=yes
12855 if test "$enable_shared" = yes && test "$GCC" = yes; then
12856 case $archive_cmds in
12858 # FIXME: we may have to deal with multi-command sequences.
12861 # Test whether the compiler implicitly links with -lc since on some
12862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12863 # to ld, don't add -lc before -lgcc.
12864 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } 2>conftest.err; then
12876 libobjs=conftest.$ac_objext
12878 wl=$lt_prog_compiler_wl
12884 lt_save_allow_undefined_flag=$allow_undefined_flag
12885 allow_undefined_flag=
12886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12887 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }
12892 archive_cmds_need_lc=no
12894 archive_cmds_need_lc=yes
12896 allow_undefined_flag=$lt_save_allow_undefined_flag
12898 cat conftest.err 1>&5
12901 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12902 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12911 library_names_spec=
12912 libname_spec='lib$name'
12916 postuninstall_cmds=
12920 shlibpath_overrides_runpath=unknown
12922 dynamic_linker="$host_os ld.so"
12923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12924 if test "$GCC" = yes; then
12925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12927 # if the path contains ";" then we assume it to be the separator
12928 # otherwise default to the standard path separator (i.e. ":") - it is
12929 # assumed that no part of a normal pathname contains ";" but that should
12930 # okay in the real world where ";" in dirpaths is itself problematic.
12931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12938 need_lib_prefix=unknown
12939 hardcode_into_libs=no
12941 # when you set need_version to no, make sure it does not cause -set_version
12942 # flags to be left without arguments
12943 need_version=unknown
12948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12949 shlibpath_var=LIBPATH
12951 # AIX 3 has no versioning support, so we append a major version to the name.
12952 soname_spec='${libname}${release}${shared_ext}$major'
12959 hardcode_into_libs=yes
12960 if test "$host_cpu" = ia64; then
12961 # AIX 5 supports IA64
12962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12963 shlibpath_var=LD_LIBRARY_PATH
12965 # With GCC up to 2.95.x, collect2 would create an import file
12966 # for dependence libraries. The import file would start with
12967 # the line `#! .'. This would cause the generated library to
12968 # depend on `.', always an invalid library. This was fixed in
12969 # development snapshots of GCC prior to 3.0.
12971 aix4 | aix4.[01] | aix4.[01].*)
12972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12977 can_build_shared=no
12981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12982 # soname into executable. Probably we can add versioning support to
12983 # collect2, so additional links can be useful in future.
12984 if test "$aix_use_runtimelinking" = yes; then
12985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12986 # instead of lib<name>.a to let people know that these are not
12987 # typical AIX shared libraries.
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990 # We preserve .a as extension for shared libraries through AIX4.2
12991 # and later when we are not doing run time linking.
12992 library_names_spec='${libname}${release}.a $libname.a'
12993 soname_spec='${libname}${release}${shared_ext}$major'
12995 shlibpath_var=LIBPATH
13000 library_names_spec='$libname.ixlibrary $libname.a'
13001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13002 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'
13006 library_names_spec='${libname}${shared_ext}'
13007 dynamic_linker="$host_os ld.so"
13008 shlibpath_var=LIBRARY_PATH
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13020 # the default ld.so.conf also contains /usr/contrib/lib and
13021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13022 # libtool to hard-code these into programs
13025 cygwin* | mingw* | pw32*)
13026 version_type=windows
13031 case $GCC,$host_os in
13032 yes,cygwin* | yes,mingw* | yes,pw32*)
13033 library_names_spec='$libname.dll.a'
13034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13035 postinstall_cmds='base_file=`basename \${file}`~
13036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13037 dldir=$destdir/`dirname \$dlpath`~
13038 test -d \$dldir || mkdir -p \$dldir~
13039 $install_prog $dir/$dlname \$dldir/$dlname'
13040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13041 dlpath=$dir/\$dldll~
13043 shlibpath_overrides_runpath=yes
13047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13049 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13052 # MinGW DLLs use traditional 'lib' prefix
13053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13056 # It is most probably a Windows format PATH printed by
13057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13058 # path with ; separators, and with drive letters. We can handle the
13059 # drive letters (cygwin fileutils understands them), so leave them,
13060 # especially as we might pass files found there to a mingw objdump,
13061 # which wouldn't understand a cygwinified path. Ahh.
13062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13068 # pw32 DLLs use 'pw' prefix rather than 'lib'
13069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13078 dynamic_linker='Win32 ld.exe'
13079 # FIXME: first we should search . and the directory the executable is in
13083 darwin* | rhapsody*)
13084 dynamic_linker="$host_os dyld"
13085 version_type=darwin
13088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13089 soname_spec='${libname}${release}${major}$shared_ext'
13090 shlibpath_overrides_runpath=yes
13091 shlibpath_var=DYLD_LIBRARY_PATH
13092 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13093 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13094 if test "$GCC" = yes; then
13095 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"`
13097 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13107 soname_spec='${libname}${release}${shared_ext}$major'
13108 shlibpath_var=LD_LIBRARY_PATH
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=no
13123 hardcode_into_libs=yes
13124 dynamic_linker='GNU ld.so'
13128 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13129 version_type=freebsd-$objformat
13130 case $version_type in
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13141 shlibpath_var=LD_LIBRARY_PATH
13144 shlibpath_overrides_runpath=yes
13146 freebsd3.01* | freebsdelf3.01*)
13147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13151 shlibpath_overrides_runpath=no
13152 hardcode_into_libs=yes
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 hardcode_into_libs=yes
13167 hpux9* | hpux10* | hpux11*)
13168 # Give a soname corresponding to the major version so that dld.sl refuses to
13169 # link against other versions.
13173 case "$host_cpu" in
13176 hardcode_into_libs=yes
13177 dynamic_linker="$host_os dld.so"
13178 shlibpath_var=LD_LIBRARY_PATH
13179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 if test "X$HPUX_IA64_MODE" = X32; then
13183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13191 hardcode_into_libs=yes
13192 dynamic_linker="$host_os dld.sl"
13193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13202 dynamic_linker="$host_os dld.sl"
13203 shlibpath_var=SHLIB_PATH
13204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13209 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13210 postinstall_cmds='chmod 555 $lib'
13213 irix5* | irix6* | nonstopux*)
13215 nonstopux*) version_type=nonstopux ;;
13217 if test "$lt_cv_prog_gnu_ld" = yes; then
13225 soname_spec='${libname}${release}${shared_ext}$major'
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13228 irix5* | nonstopux*)
13229 libsuff= shlibsuff=
13232 case $LD in # libtool.m4 will add one of these switches to LD
13233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13234 libsuff= shlibsuff= libmagic=32-bit;;
13235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13236 libsuff=32 shlibsuff=N32 libmagic=N32;;
13237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13239 *) libsuff= shlibsuff= libmagic=never-match;;
13243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13244 shlibpath_overrides_runpath=no
13245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13247 hardcode_into_libs=yes
13250 # No shared lib support for Linux oldld, aout, or coff.
13251 linux*oldld* | linux*aout* | linux*coff*)
13255 # This must be Linux ELF.
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=no
13265 # This implies no fast_install, which is unacceptable.
13266 # Some rework will be needed to allow for fast_install
13267 # before this can be enabled.
13268 hardcode_into_libs=yes
13270 # Append ld.so.conf contents to the search path
13271 if test -f /etc/ld.so.conf; then
13272 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13276 # We used to test for /lib/ld.so.1 and disable shared libraries on
13277 # powerpc, because MkLinux only supported shared libraries with the
13278 # GNU dynamic linker. Since this was broken with cross compilers,
13279 # most powerpc-linux boxes support dynamic linking these days and
13280 # people can always --disable-shared, the test was removed, and we
13281 # assume the GNU/Linux dynamic linker is in use.
13282 dynamic_linker='GNU/Linux ld.so'
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13294 dynamic_linker='GNU ld.so'
13301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304 dynamic_linker='NetBSD (a.out) ld.so'
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 dynamic_linker='NetBSD ld.elf_so'
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes
13312 hardcode_into_libs=yes
13317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 shlibpath_overrides_runpath=yes
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 soname_spec='${libname}${release}${shared_ext}$major'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13341 openbsd2.[89] | openbsd2.[89].*)
13342 shlibpath_overrides_runpath=no
13345 shlibpath_overrides_runpath=yes
13349 shlibpath_overrides_runpath=yes
13354 libname_spec='$name'
13357 library_names_spec='$libname${shared_ext} $libname.a'
13358 dynamic_linker='OS/2 ld.exe'
13359 shlibpath_var=LIBPATH
13362 osf3* | osf4* | osf5*)
13366 soname_spec='${libname}${release}${shared_ext}$major'
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 shlibpath_var=LD_LIBRARY_PATH
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=yes
13388 hardcode_into_libs=yes
13389 # ldd complains unless libraries are executable
13390 postinstall_cmds='chmod +x $lib'
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 if test "$with_gnu_ld" = yes; then
13405 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 shlibpath_var=LD_LIBRARY_PATH
13410 case $host_vendor in
13412 shlibpath_overrides_runpath=no
13414 export_dynamic_flag_spec='${wl}-Blargedynsym'
13415 runpath_var=LD_RUN_PATH
13423 shlibpath_overrides_runpath=no
13424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13430 if test -d /usr/nec ;then
13432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13433 soname_spec='$libname${shared_ext}.$major'
13434 shlibpath_var=LD_LIBRARY_PATH
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441 soname_spec='${libname}${release}${shared_ext}$major'
13442 shlibpath_var=LD_LIBRARY_PATH
13449 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13450 echo "${ECHO_T}$dynamic_linker" >&6
13451 test "$dynamic_linker" = no && can_build_shared=no
13453 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13456 if test -n "$hardcode_libdir_flag_spec" || \
13457 test -n "$runpath_var" || \
13458 test "X$hardcode_automatic" = "Xyes" ; then
13460 # We can hardcode non-existant directories.
13461 if test "$hardcode_direct" != no &&
13462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13463 # have to relink, otherwise we might link with an installed library
13464 # when we should be linking with a yet-to-be-installed one
13465 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13466 test "$hardcode_minus_L" != no; then
13467 # Linking always hardcodes the temporary library directory.
13468 hardcode_action=relink
13470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13471 hardcode_action=immediate
13474 # We cannot hardcode anything, or else we can only hardcode existing
13476 hardcode_action=unsupported
13478 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13479 echo "${ECHO_T}$hardcode_action" >&6
13481 if test "$hardcode_action" = relink; then
13482 # Fast installation is not supported
13483 enable_fast_install=no
13484 elif test "$shlibpath_overrides_runpath" = yes ||
13485 test "$enable_shared" = no; then
13486 # Fast installation is not necessary
13487 enable_fast_install=needless
13492 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13493 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13494 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13495 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13496 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13497 echo "$as_me:$LINENO: result: yes" >&5
13498 echo "${ECHO_T}yes" >&6
13500 # FIXME - insert some real tests, host_os isn't really good enough
13503 if test -n "$STRIP" ; then
13504 striplib="$STRIP -x"
13505 echo "$as_me:$LINENO: result: yes" >&5
13506 echo "${ECHO_T}yes" >&6
13508 echo "$as_me:$LINENO: result: no" >&5
13509 echo "${ECHO_T}no" >&6
13513 echo "$as_me:$LINENO: result: no" >&5
13514 echo "${ECHO_T}no" >&6
13519 if test "x$enable_dlopen" != xyes; then
13520 enable_dlopen=unknown
13521 enable_dlopen_self=unknown
13522 enable_dlopen_self_static=unknown
13529 lt_cv_dlopen="load_add_on"
13531 lt_cv_dlopen_self=yes
13535 lt_cv_dlopen="LoadLibrary"
13540 lt_cv_dlopen="dlopen"
13545 # if libdl is installed we need to link against it
13546 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13547 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13548 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 ac_check_lib_save_LIBS=$LIBS
13553 cat >conftest.$ac_ext <<_ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 /* Override any gcc2 internal prototype to avoid an error. */
13564 /* We use char because int might match the return type of a gcc2
13565 builtin and then its argument prototype would still apply. */
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>conftest.er1
13579 grep -v '^ *+' conftest.er1 >conftest.err
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest$ac_exeext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_lib_dl_dlopen=yes
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_lib_dl_dlopen=no
13604 rm -f conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13610 if test $ac_cv_lib_dl_dlopen = yes; then
13611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13614 lt_cv_dlopen="dyld"
13616 lt_cv_dlopen_self=yes
13623 echo "$as_me:$LINENO: checking for shl_load" >&5
13624 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13625 if test "${ac_cv_func_shl_load+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 cat >conftest.$ac_ext <<_ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13636 #define shl_load innocuous_shl_load
13638 /* System header to define __stub macros and hopefully few prototypes,
13639 which can conflict with char shl_load (); below.
13640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13641 <limits.h> exists even on freestanding compilers. */
13644 # include <limits.h>
13646 # include <assert.h>
13651 /* Override any gcc2 internal prototype to avoid an error. */
13656 /* We use char because int might match the return type of a gcc2
13657 builtin and then its argument prototype would still apply. */
13659 /* The GNU C library defines this for functions which it implements
13660 to always fail with ENOSYS. Some functions are actually named
13661 something starting with __ and the normal name is an alias. */
13662 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13665 char (*f) () = shl_load;
13674 return f != shl_load;
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest$ac_exeext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_func_shl_load=yes
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13706 ac_cv_func_shl_load=no
13708 rm -f conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13711 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13712 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13713 if test $ac_cv_func_shl_load = yes; then
13714 lt_cv_dlopen="shl_load"
13716 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13717 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13718 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 ac_check_lib_save_LIBS=$LIBS
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13730 /* Override any gcc2 internal prototype to avoid an error. */
13734 /* We use char because int might match the return type of a gcc2
13735 builtin and then its argument prototype would still apply. */
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_lib_dld_shl_load=yes
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_cv_lib_dld_shl_load=no
13774 rm -f conftest.err conftest.$ac_objext \
13775 conftest$ac_exeext conftest.$ac_ext
13776 LIBS=$ac_check_lib_save_LIBS
13778 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13779 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13780 if test $ac_cv_lib_dld_shl_load = yes; then
13781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13783 echo "$as_me:$LINENO: checking for dlopen" >&5
13784 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13785 if test "${ac_cv_func_dlopen+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 cat >conftest.$ac_ext <<_ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13796 #define dlopen innocuous_dlopen
13798 /* System header to define __stub macros and hopefully few prototypes,
13799 which can conflict with char dlopen (); below.
13800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13801 <limits.h> exists even on freestanding compilers. */
13804 # include <limits.h>
13806 # include <assert.h>
13811 /* Override any gcc2 internal prototype to avoid an error. */
13816 /* We use char because int might match the return type of a gcc2
13817 builtin and then its argument prototype would still apply. */
13819 /* The GNU C library defines this for functions which it implements
13820 to always fail with ENOSYS. Some functions are actually named
13821 something starting with __ and the normal name is an alias. */
13822 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13825 char (*f) () = dlopen;
13834 return f != dlopen;
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_func_dlopen=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_cv_func_dlopen=no
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13871 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13872 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13873 if test $ac_cv_func_dlopen = yes; then
13874 lt_cv_dlopen="dlopen"
13876 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13877 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 ac_check_lib_save_LIBS=$LIBS
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any gcc2 internal prototype to avoid an error. */
13894 /* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_dl_dlopen=yes
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_cv_lib_dl_dlopen=no
13934 rm -f conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13938 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13940 if test $ac_cv_lib_dl_dlopen = yes; then
13941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13943 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13944 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13945 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 ac_check_lib_save_LIBS=$LIBS
13949 LIBS="-lsvld $LIBS"
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13957 /* Override any gcc2 internal prototype to avoid an error. */
13961 /* We use char because int might match the return type of a gcc2
13962 builtin and then its argument prototype would still apply. */
13972 rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13974 (eval $ac_link) 2>conftest.er1
13976 grep -v '^ *+' conftest.er1 >conftest.err
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
13981 { ac_try='test -z "$ac_c_werror_flag"
13982 || test ! -s conftest.err'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_lib_svld_dlopen=yes
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_cv_lib_svld_dlopen=no
14001 rm -f conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14003 LIBS=$ac_check_lib_save_LIBS
14005 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14006 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14007 if test $ac_cv_lib_svld_dlopen = yes; then
14008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14010 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14011 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 ac_check_lib_save_LIBS=$LIBS
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14024 /* Override any gcc2 internal prototype to avoid an error. */
14028 /* We use char because int might match the return type of a gcc2
14029 builtin and then its argument prototype would still apply. */
14039 rm -f conftest.$ac_objext conftest$ac_exeext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14041 (eval $ac_link) 2>conftest.er1
14043 grep -v '^ *+' conftest.er1 >conftest.err
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest$ac_exeext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_lib_dld_dld_link=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_lib_dld_dld_link=no
14068 rm -f conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14073 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14074 if test $ac_cv_lib_dld_dld_link = yes; then
14075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14096 if test "x$lt_cv_dlopen" != xno; then
14102 case $lt_cv_dlopen in
14104 save_CPPFLAGS="$CPPFLAGS"
14105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14107 save_LDFLAGS="$LDFLAGS"
14108 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14111 LIBS="$lt_cv_dlopen_libs $LIBS"
14113 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14114 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14115 if test "${lt_cv_dlopen_self+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 if test "$cross_compiling" = yes; then :
14119 lt_cv_dlopen_self=cross
14121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14122 lt_status=$lt_dlunknown
14123 cat > conftest.$ac_ext <<EOF
14124 #line 14124 "configure"
14125 #include "confdefs.h"
14134 # define LT_DLGLOBAL RTLD_GLOBAL
14137 # define LT_DLGLOBAL DL_GLOBAL
14139 # define LT_DLGLOBAL 0
14143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14144 find out it does not work in some platform. */
14145 #ifndef LT_DLLAZY_OR_NOW
14147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14150 # define LT_DLLAZY_OR_NOW DL_LAZY
14153 # define LT_DLLAZY_OR_NOW RTLD_NOW
14156 # define LT_DLLAZY_OR_NOW DL_NOW
14158 # define LT_DLLAZY_OR_NOW 0
14166 extern "C" void exit (int);
14169 void fnord() { int i=42;}
14172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14173 int status = $lt_dlunknown;
14177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14179 /* dlclose (self); */
14185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186 (eval $ac_link) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14190 (./conftest; exit; ) 2>/dev/null
14192 case x$lt_status in
14193 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14194 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14195 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14198 # compilation failed
14199 lt_cv_dlopen_self=no
14206 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14207 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14209 if test "x$lt_cv_dlopen_self" = xyes; then
14210 LDFLAGS="$LDFLAGS $link_static_flag"
14211 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14212 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14213 if test "${lt_cv_dlopen_self_static+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 if test "$cross_compiling" = yes; then :
14217 lt_cv_dlopen_self_static=cross
14219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14220 lt_status=$lt_dlunknown
14221 cat > conftest.$ac_ext <<EOF
14222 #line 14222 "configure"
14223 #include "confdefs.h"
14232 # define LT_DLGLOBAL RTLD_GLOBAL
14235 # define LT_DLGLOBAL DL_GLOBAL
14237 # define LT_DLGLOBAL 0
14241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14242 find out it does not work in some platform. */
14243 #ifndef LT_DLLAZY_OR_NOW
14245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14248 # define LT_DLLAZY_OR_NOW DL_LAZY
14251 # define LT_DLLAZY_OR_NOW RTLD_NOW
14254 # define LT_DLLAZY_OR_NOW DL_NOW
14256 # define LT_DLLAZY_OR_NOW 0
14264 extern "C" void exit (int);
14267 void fnord() { int i=42;}
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14277 /* dlclose (self); */
14283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14288 (./conftest; exit; ) 2>/dev/null
14290 case x$lt_status in
14291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14293 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14296 # compilation failed
14297 lt_cv_dlopen_self_static=no
14304 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14305 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14308 CPPFLAGS="$save_CPPFLAGS"
14309 LDFLAGS="$save_LDFLAGS"
14314 case $lt_cv_dlopen_self in
14315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14316 *) enable_dlopen_self=unknown ;;
14319 case $lt_cv_dlopen_self_static in
14320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14321 *) enable_dlopen_self_static=unknown ;;
14326 # Report which librarie types wil actually be built
14327 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14328 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14329 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14330 echo "${ECHO_T}$can_build_shared" >&6
14332 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14333 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14334 test "$can_build_shared" = "no" && enable_shared=no
14336 # On AIX, shared libraries and static libraries use the same namespace, and
14337 # are all built from PIC.
14340 test "$enable_shared" = yes && enable_static=no
14341 if test -n "$RANLIB"; then
14342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14343 postinstall_cmds='$RANLIB $lib'
14348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14349 test "$enable_shared" = yes && enable_static=no
14353 echo "$as_me:$LINENO: result: $enable_shared" >&5
14354 echo "${ECHO_T}$enable_shared" >&6
14356 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14358 # Make sure either enable_shared or enable_static is yes.
14359 test "$enable_shared" = yes || enable_static=yes
14360 echo "$as_me:$LINENO: result: $enable_static" >&5
14361 echo "${ECHO_T}$enable_static" >&6
14363 # The else clause should only fire when bootstrapping the
14364 # libtool distribution, otherwise you forgot to ship ltmain.sh
14365 # with your package, and you will get complaints that there are
14366 # no rules to generate ltmain.sh.
14367 if test -f "$ltmain"; then
14368 # See if we are running on zsh, and set the options which allow our commands through
14369 # without removal of \ escapes.
14370 if test -n "${ZSH_VERSION+set}" ; then
14371 setopt NO_GLOB_SUBST
14373 # Now quote all the things that may contain metacharacters while being
14374 # careful not to overquote the AC_SUBSTed values. We take copies of the
14375 # variables and quote the copies for generation of the libtool script.
14376 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14380 deplibs_check_method reload_flag reload_cmds need_locks \
14381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14382 lt_cv_sys_global_symbol_to_c_name_address \
14383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14384 old_postinstall_cmds old_postuninstall_cmds \
14388 lt_prog_compiler_wl \
14389 lt_prog_compiler_pic \
14390 lt_prog_compiler_static \
14391 lt_prog_compiler_no_builtin_flag \
14392 export_dynamic_flag_spec \
14393 thread_safe_flag_spec \
14394 whole_archive_flag_spec \
14395 enable_shared_with_static_runtimes \
14397 old_archive_from_new_cmds \
14402 compiler_lib_search_path \
14404 archive_expsym_cmds \
14406 postuninstall_cmds \
14407 old_archive_from_expsyms_cmds \
14408 allow_undefined_flag \
14409 no_undefined_flag \
14410 export_symbols_cmds \
14411 hardcode_libdir_flag_spec \
14412 hardcode_libdir_flag_spec_ld \
14413 hardcode_libdir_separator \
14414 hardcode_automatic \
14416 module_expsym_cmds \
14417 lt_cv_prog_compiler_c_o \
14419 include_expsyms; do
14422 old_archive_cmds | \
14423 old_archive_from_new_cmds | \
14425 archive_expsym_cmds | \
14427 module_expsym_cmds | \
14428 old_archive_from_expsyms_cmds | \
14429 export_symbols_cmds | \
14430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14431 postinstall_cmds | postuninstall_cmds | \
14432 old_postinstall_cmds | old_postuninstall_cmds | \
14433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14434 # Double-quote double-evaled strings.
14435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14444 *'\$0 --fallback-echo"')
14445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14449 cfgfile="${ofile}T"
14450 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14452 { echo "$as_me:$LINENO: creating $ofile" >&5
14453 echo "$as_me: creating $ofile" >&6;}
14455 cat <<__EOF__ >> "$cfgfile"
14458 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14459 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14460 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14462 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14463 # Free Software Foundation, Inc.
14465 # This file is part of GNU Libtool:
14466 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14468 # This program is free software; you can redistribute it and/or modify
14469 # it under the terms of the GNU General Public License as published by
14470 # the Free Software Foundation; either version 2 of the License, or
14471 # (at your option) any later version.
14473 # This program is distributed in the hope that it will be useful, but
14474 # WITHOUT ANY WARRANTY; without even the implied warranty of
14475 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14476 # General Public License for more details.
14478 # You should have received a copy of the GNU General Public License
14479 # along with this program; if not, write to the Free Software
14480 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14482 # As a special exception to the GNU General Public License, if you
14483 # distribute this file as part of a program that contains a
14484 # configuration script generated by Autoconf, you may include it under
14485 # the same distribution terms that you use for the rest of that program.
14487 # A sed program that does not truncate output.
14490 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14491 Xsed="$SED -e s/^X//"
14493 # The HP-UX ksh and POSIX shell print the target directory to stdout
14494 # if CDPATH is set.
14495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14497 # The names of the tagged configurations supported by this script.
14500 # ### BEGIN LIBTOOL CONFIG
14502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14504 # Shell to use when invoking shell scripts.
14507 # Whether or not to build shared libraries.
14508 build_libtool_libs=$enable_shared
14510 # Whether or not to build static libraries.
14511 build_old_libs=$enable_static
14513 # Whether or not to add -lc for building shared libraries.
14514 build_libtool_need_lc=$archive_cmds_need_lc
14516 # Whether or not to disallow shared libs when runtime libs are static
14517 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14519 # Whether or not to optimize for fast installation.
14520 fast_install=$enable_fast_install
14523 host_alias=$host_alias
14526 # An echo program that does not interpret backslashes.
14531 AR_FLAGS=$lt_AR_FLAGS
14536 # A language-specific compiler.
14539 # Is the compiler the GNU C compiler?
14545 # The linker used to build libraries.
14548 # Whether we need hard or soft links.
14551 # A BSD-compatible nm program.
14554 # A symbol stripping program
14557 # Used to examine libraries when file_magic_cmd begins "file"
14558 MAGIC_CMD=$MAGIC_CMD
14560 # Used on cygwin: DLL creation program.
14563 # Used on cygwin: object dumper.
14566 # Used on cygwin: assembler.
14569 # The name of the directory that contains temporary libtool files.
14572 # How to create reloadable object files.
14573 reload_flag=$lt_reload_flag
14574 reload_cmds=$lt_reload_cmds
14576 # How to pass a linker flag through the compiler.
14577 wl=$lt_lt_prog_compiler_wl
14579 # Object file suffix (normally "o").
14580 objext="$ac_objext"
14582 # Old archive suffix (normally "a").
14585 # Shared library suffix (normally ".so").
14586 shrext_cmds='$shrext_cmds'
14588 # Executable file suffix (normally "").
14591 # Additional compiler flags for building library objects.
14592 pic_flag=$lt_lt_prog_compiler_pic
14595 # What is the maximum length of a command?
14596 max_cmd_len=$lt_cv_sys_max_cmd_len
14598 # Does compiler simultaneously support -c and -o options?
14599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14601 # Must we lock files when doing compilation ?
14602 need_locks=$lt_need_locks
14604 # Do we need the lib prefix for modules?
14605 need_lib_prefix=$need_lib_prefix
14607 # Do we need a version for libraries?
14608 need_version=$need_version
14610 # Whether dlopen is supported.
14611 dlopen_support=$enable_dlopen
14613 # Whether dlopen of programs is supported.
14614 dlopen_self=$enable_dlopen_self
14616 # Whether dlopen of statically linked programs is supported.
14617 dlopen_self_static=$enable_dlopen_self_static
14619 # Compiler flag to prevent dynamic linking.
14620 link_static_flag=$lt_lt_prog_compiler_static
14622 # Compiler flag to turn off builtin functions.
14623 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14625 # Compiler flag to allow reflexive dlopens.
14626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14628 # Compiler flag to generate shared objects directly from archives.
14629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14631 # Compiler flag to generate thread-safe objects.
14632 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14634 # Library versioning type.
14635 version_type=$version_type
14637 # Format of library name prefix.
14638 libname_spec=$lt_libname_spec
14640 # List of archive names. First name is the real one, the rest are links.
14641 # The last name is the one that the linker finds with -lNAME.
14642 library_names_spec=$lt_library_names_spec
14644 # The coded name of the library, if different from the real name.
14645 soname_spec=$lt_soname_spec
14647 # Commands used to build and install an old-style archive.
14649 old_archive_cmds=$lt_old_archive_cmds
14650 old_postinstall_cmds=$lt_old_postinstall_cmds
14651 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14653 # Create an old-style archive from a shared archive.
14654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14656 # Create a temporary old-style archive to link instead of a shared archive.
14657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14659 # Commands used to build and install a shared archive.
14660 archive_cmds=$lt_archive_cmds
14661 archive_expsym_cmds=$lt_archive_expsym_cmds
14662 postinstall_cmds=$lt_postinstall_cmds
14663 postuninstall_cmds=$lt_postuninstall_cmds
14665 # Commands used to build a loadable module (assumed same as above if empty)
14666 module_cmds=$lt_module_cmds
14667 module_expsym_cmds=$lt_module_expsym_cmds
14669 # Commands to strip libraries.
14670 old_striplib=$lt_old_striplib
14671 striplib=$lt_striplib
14673 # Dependencies to place before the objects being linked to create a
14675 predep_objects=$lt_predep_objects
14677 # Dependencies to place after the objects being linked to create a
14679 postdep_objects=$lt_postdep_objects
14681 # Dependencies to place before the objects being linked to create a
14683 predeps=$lt_predeps
14685 # Dependencies to place after the objects being linked to create a
14687 postdeps=$lt_postdeps
14689 # The library search path used internally by the compiler when linking
14690 # a shared library.
14691 compiler_lib_search_path=$lt_compiler_lib_search_path
14693 # Method to check whether dependent libraries are shared objects.
14694 deplibs_check_method=$lt_deplibs_check_method
14696 # Command to use when deplibs_check_method == file_magic.
14697 file_magic_cmd=$lt_file_magic_cmd
14699 # Flag that allows shared libraries with undefined symbols to be built.
14700 allow_undefined_flag=$lt_allow_undefined_flag
14702 # Flag that forces no undefined symbols.
14703 no_undefined_flag=$lt_no_undefined_flag
14705 # Commands used to finish a libtool library installation in a directory.
14706 finish_cmds=$lt_finish_cmds
14708 # Same as above, but a single script fragment to be evaled but not shown.
14709 finish_eval=$lt_finish_eval
14711 # Take the output of nm and produce a listing of raw symbols and C names.
14712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14714 # Transform the output of nm in a proper C declaration
14715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14717 # Transform the output of nm in a C name address pair
14718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14720 # This is the shared library runtime path variable.
14721 runpath_var=$runpath_var
14723 # This is the shared library path variable.
14724 shlibpath_var=$shlibpath_var
14726 # Is shlibpath searched before the hard-coded library search path?
14727 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14729 # How to hardcode a shared library path into an executable.
14730 hardcode_action=$hardcode_action
14732 # Whether we should hardcode library paths into libraries.
14733 hardcode_into_libs=$hardcode_into_libs
14735 # Flag to hardcode \$libdir into a binary during linking.
14736 # This must work even if \$libdir does not exist.
14737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14739 # If ld is used when linking, flag to hardcode \$libdir into
14740 # a binary during linking. This must work even if \$libdir does
14742 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14744 # Whether we need a single -rpath flag with a separated argument.
14745 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14747 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14748 # resulting binary.
14749 hardcode_direct=$hardcode_direct
14751 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14752 # resulting binary.
14753 hardcode_minus_L=$hardcode_minus_L
14755 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14756 # the resulting binary.
14757 hardcode_shlibpath_var=$hardcode_shlibpath_var
14759 # Set to yes if building a shared library automatically hardcodes DIR into the library
14760 # and all subsequent libraries and executables linked against it.
14761 hardcode_automatic=$hardcode_automatic
14763 # Variables whose values should be saved in libtool wrapper scripts and
14764 # restored at relink time.
14765 variables_saved_for_relink="$variables_saved_for_relink"
14767 # Whether libtool must link a program against all its dependency libraries.
14768 link_all_deplibs=$link_all_deplibs
14770 # Compile-time system search path for libraries
14771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14773 # Run-time system search path for libraries
14774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14776 # Fix the shell variable \$srcfile for the compiler.
14777 fix_srcfile_path="$fix_srcfile_path"
14779 # Set to yes if exported symbols are required.
14780 always_export_symbols=$always_export_symbols
14782 # The commands to list exported symbols.
14783 export_symbols_cmds=$lt_export_symbols_cmds
14785 # The commands to extract the exported symbol list from a shared archive.
14786 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14788 # Symbols that should not be listed in the preloaded symbols.
14789 exclude_expsyms=$lt_exclude_expsyms
14791 # Symbols that must always be exported.
14792 include_expsyms=$lt_include_expsyms
14794 # ### END LIBTOOL CONFIG
14801 cat <<\EOF >> "$cfgfile"
14803 # AIX sometimes has problems with the GCC collect2 program. For some
14804 # reason, if we set the COLLECT_NAMES environment variable, the problems
14805 # vanish in a puff of smoke.
14806 if test "X${COLLECT_NAMES+set}" != Xset; then
14808 export COLLECT_NAMES
14814 # We use sed instead of cat because bash on DJGPP gets confused if
14815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14816 # text mode, it properly converts lines to CR/LF. This bash problem
14817 # is reportedly fixed, but why not run on old versions too?
14818 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14820 mv -f "$cfgfile" "$ofile" || \
14821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14825 # If there is no Makefile yet, we rely on a make rule to execute
14826 # `config.status --recheck' to rerun these tests and create the
14827 # libtool script then.
14828 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14829 if test -f "$ltmain_in"; then
14830 test -f Makefile && make "$ltmain"
14836 ac_cpp='$CPP $CPPFLAGS'
14837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14844 # Check whether --with-tags or --without-tags was given.
14845 if test "${with_tags+set}" = set; then
14846 withval="$with_tags"
14847 tagnames="$withval"
14850 if test -f "$ltmain" && test -n "$tagnames"; then
14851 if test ! -f "${ofile}"; then
14852 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14853 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14856 if test -z "$LTCC"; then
14857 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14858 if test -z "$LTCC"; then
14859 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14860 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14863 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14867 # Extract list of available tagged configurations in $ofile.
14868 # Note that this assumes the entire list is on one line.
14869 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14872 for tagname in $tagnames; do
14874 # Check whether tagname contains only valid characters
14875 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14877 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14878 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14879 { (exit 1); exit 1; }; }
14883 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14885 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14886 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14887 { (exit 1); exit 1; }; }
14890 # Update the list of available tags.
14891 if test -n "$tagname"; then
14892 echo appending configuration tag "$tagname" to $ofile
14896 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14897 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14898 (test "X$CXX" != "Xg++"))) ; then
14900 ac_cpp='$CXXCPP $CPPFLAGS'
14901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14908 archive_cmds_need_lc_CXX=no
14909 allow_undefined_flag_CXX=
14910 always_export_symbols_CXX=no
14911 archive_expsym_cmds_CXX=
14912 export_dynamic_flag_spec_CXX=
14913 hardcode_direct_CXX=no
14914 hardcode_libdir_flag_spec_CXX=
14915 hardcode_libdir_flag_spec_ld_CXX=
14916 hardcode_libdir_separator_CXX=
14917 hardcode_minus_L_CXX=no
14918 hardcode_automatic_CXX=no
14920 module_expsym_cmds_CXX=
14921 link_all_deplibs_CXX=unknown
14922 old_archive_cmds_CXX=$old_archive_cmds
14923 no_undefined_flag_CXX=
14924 whole_archive_flag_spec_CXX=
14925 enable_shared_with_static_runtimes_CXX=no
14927 # Dependencies to place before and after the object being linked:
14928 predep_objects_CXX=
14929 postdep_objects_CXX=
14932 compiler_lib_search_path_CXX=
14934 # Source file extension for C++ test sources.
14937 # Object file extension for compiled C++ test sources.
14941 # Code to be used in simple compile tests
14942 lt_simple_compile_test_code="int some_variable = 0;\n"
14944 # Code to be used in simple link tests
14945 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14949 # If no C compiler was specified, use CC.
14952 # Allow CC to be a program name with arguments.
14956 # Allow CC to be a program name with arguments.
14961 lt_save_with_gnu_ld=$with_gnu_ld
14962 lt_save_path_LD=$lt_cv_path_LD
14963 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14964 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14966 unset lt_cv_prog_gnu_ld
14968 if test -n "${lt_cv_path_LDCXX+set}"; then
14969 lt_cv_path_LD=$lt_cv_path_LDCXX
14971 unset lt_cv_path_LD
14973 test -z "${LDCXX+set}" || LD=$LDCXX
14977 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14979 # We don't want -fno-exception wen compiling C++ code, so set the
14980 # no_builtin_flag separately
14981 if test "$GXX" = yes; then
14982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14984 lt_prog_compiler_no_builtin_flag_CXX=
14987 if test "$GXX" = yes; then
14988 # Set up default GNU C++ configuration
14991 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14992 if test "${with_gnu_ld+set}" = set; then
14993 withval="$with_gnu_ld"
14994 test "$withval" = no || with_gnu_ld=yes
14999 if test "$GCC" = yes; then
15000 # Check if gcc -print-prog-name=ld gives a path.
15001 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15002 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15005 # gcc leaves a trailing carriage return which upsets mingw
15006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15011 # Accept absolute paths.
15013 re_direlt='/[^/][^/]*/\.\./'
15014 # Canonicalize the pathname of ld
15015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15019 test -z "$LD" && LD="$ac_prog"
15022 # If it fails, then pretend we aren't using GCC.
15026 # If it is relative, then search for the first ld in PATH.
15027 with_gnu_ld=unknown
15030 elif test "$with_gnu_ld" = yes; then
15031 echo "$as_me:$LINENO: checking for GNU ld" >&5
15032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15034 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15037 if test "${lt_cv_path_LD+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 if test -z "$LD"; then
15041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15042 for ac_dir in $PATH; do
15044 test -z "$ac_dir" && ac_dir=.
15045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15046 lt_cv_path_LD="$ac_dir/$ac_prog"
15047 # Check to see if the program is GNU ld. I'd rather use --version,
15048 # but apparently some GNU ld's only accept -v.
15049 # Break only if it was the GNU/non-GNU ld that we prefer.
15050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15051 *GNU* | *'with BFD'*)
15052 test "$with_gnu_ld" != no && break
15055 test "$with_gnu_ld" != yes && break
15062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15066 LD="$lt_cv_path_LD"
15067 if test -n "$LD"; then
15068 echo "$as_me:$LINENO: result: $LD" >&5
15069 echo "${ECHO_T}$LD" >&6
15071 echo "$as_me:$LINENO: result: no" >&5
15072 echo "${ECHO_T}no" >&6
15074 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15075 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15076 { (exit 1); exit 1; }; }
15077 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15078 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15079 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15083 case `$LD -v 2>&1 </dev/null` in
15084 *GNU* | *'with BFD'*)
15085 lt_cv_prog_gnu_ld=yes
15088 lt_cv_prog_gnu_ld=no
15092 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15094 with_gnu_ld=$lt_cv_prog_gnu_ld
15098 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15099 # archiving commands below assume that GNU ld is being used.
15100 if test "$with_gnu_ld" = yes; then
15101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102 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'
15104 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15107 # If archive_cmds runs LD, not CC, wlarc should be empty
15108 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15109 # investigate it a little bit more. (MM)
15112 # ancient GNU ld didn't support --whole-archive et. al.
15113 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15114 grep 'no-whole-archive' > /dev/null; then
15115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15117 whole_archive_flag_spec_CXX=
15123 # A generic and very simple default shared library creation
15124 # command for GNU C++ for the case where it uses the native
15125 # linker, instead of GNU ld. If possible, this setting should
15126 # overridden to take advantage of the native linker features on
15127 # the platform it is being used on.
15128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15131 # Commands to make compiler produce verbose output that lists
15132 # what "hidden" libraries, object files and flags are used when
15133 # linking a shared library.
15134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15142 # PORTME: fill in a description of your system's C++ link characteristics
15143 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15148 # FIXME: insert proper C++ library support
15152 if test "$host_cpu" = ia64; then
15153 # On IA64, the linker does run time linking by default, so we don't
15154 # have to do anything special.
15155 aix_use_runtimelinking=no
15156 exp_sym_flag='-Bexport'
15159 aix_use_runtimelinking=no
15161 # Test if we are trying to use run time linking or normal
15162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15163 # need to do runtime linking.
15164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15165 for ld_flag in $LDFLAGS; do
15168 aix_use_runtimelinking=yes
15175 exp_sym_flag='-bexport'
15176 no_entry_flag='-bnoentry'
15179 # When large executables or shared objects are built, AIX ld can
15180 # have problems creating the table of contents. If linking a library
15181 # or program results in "error TOC overflow" add -mminimal-toc to
15182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15185 archive_cmds_CXX=''
15186 hardcode_direct_CXX=yes
15187 hardcode_libdir_separator_CXX=':'
15188 link_all_deplibs_CXX=yes
15190 if test "$GXX" = yes; then
15191 case $host_os in aix4.012|aix4.012.*)
15192 # We only want to do this on AIX 4.2 and lower, the check
15193 # below for broken collect2 doesn't work under 4.3+
15194 collect2name=`${CC} -print-prog-name=collect2`
15195 if test -f "$collect2name" && \
15196 strings "$collect2name" | grep resolve_lib_name >/dev/null
15198 # We have reworked collect2
15199 hardcode_direct_CXX=yes
15201 # We have old collect2
15202 hardcode_direct_CXX=unsupported
15203 # It fails to find uninstalled libraries when the uninstalled
15204 # path is not listed in the libpath. Setting hardcode_minus_L
15205 # to unsupported forces relinking
15206 hardcode_minus_L_CXX=yes
15207 hardcode_libdir_flag_spec_CXX='-L$libdir'
15208 hardcode_libdir_separator_CXX=
15211 shared_flag='-shared'
15214 if test "$host_cpu" = ia64; then
15215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15216 # chokes on -Wl,-G. The following line is correct:
15219 if test "$aix_use_runtimelinking" = yes; then
15220 shared_flag='${wl}-G'
15222 shared_flag='${wl}-bM:SRE'
15227 # It seems that -bexpall does not export symbols beginning with
15228 # underscore (_), so it is better to generate a list of symbols to export.
15229 always_export_symbols_CXX=yes
15230 if test "$aix_use_runtimelinking" = yes; then
15231 # Warning - without using the other runtime loading flags (-brtl),
15232 # -berok will link without error, but may produce a broken library.
15233 allow_undefined_flag_CXX='-berok'
15234 # Determine the default libpath from the value encoded in an empty executable.
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -z "$ac_cxx_werror_flag"
15260 || test ! -s conftest.err'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest$ac_exeext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15275 # Check for a 64-bit object if we didn't find anything.
15276 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; }
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15283 rm -f conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext conftest.$ac_ext
15285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15289 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"
15291 if test "$host_cpu" = ia64; then
15292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15293 allow_undefined_flag_CXX="-z nodefs"
15294 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"
15296 # Determine the default libpath from the value encoded in an empty executable.
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_cxx_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15337 # Check for a 64-bit object if we didn't find anything.
15338 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; }
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15345 rm -f conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15350 # Warning - without using the other run time loading flags,
15351 # -berok will link without error, but may produce a broken library.
15352 no_undefined_flag_CXX=' ${wl}-bernotok'
15353 allow_undefined_flag_CXX=' ${wl}-berok'
15354 # -bexpall does not export symbols beginning with underscore (_)
15355 always_export_symbols_CXX=yes
15356 # Exported symbols can be pulled into shared objects from archives
15357 whole_archive_flag_spec_CXX=' '
15358 archive_cmds_need_lc_CXX=yes
15359 # This is similar to how AIX traditionally builds it's shared libraries.
15360 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'
15365 case $cc_basename in
15367 # FIXME: insert proper C++ library support
15374 cygwin* | mingw* | pw32*)
15375 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15376 # as there is no search path for DLLs.
15377 hardcode_libdir_flag_spec_CXX='-L$libdir'
15378 allow_undefined_flag_CXX=unsupported
15379 always_export_symbols_CXX=no
15380 enable_shared_with_static_runtimes_CXX=yes
15382 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15383 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'
15384 # If the export-symbols file already is a .def file (1st line
15385 # is EXPORTS), use it as is; otherwise, prepend...
15386 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15387 cp $export_symbols $output_objdir/$soname.def;
15389 echo EXPORTS > $output_objdir/$soname.def;
15390 cat $export_symbols >> $output_objdir/$soname.def;
15392 $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'
15397 darwin* | rhapsody*)
15399 rhapsody* | darwin1.[012])
15400 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15404 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15406 case ${MACOSX_DEPLOYMENT_TARGET} in
15408 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15411 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15417 archive_cmds_need_lc_CXX=no
15418 hardcode_direct_CXX=no
15419 hardcode_automatic_CXX=yes
15420 hardcode_shlibpath_var_CXX=unsupported
15421 whole_archive_flag_spec_CXX=''
15422 link_all_deplibs_CXX=yes
15424 if test "$GXX" = yes ; then
15425 lt_int_apple_cc_single_mod=no
15426 output_verbose_link_cmd='echo'
15427 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15428 lt_int_apple_cc_single_mod=yes
15430 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15431 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15433 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'
15435 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15437 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15438 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}'
15440 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}'
15442 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}'
15444 case "$cc_basename" in
15446 output_verbose_link_cmd='echo'
15447 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'
15448 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15449 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15450 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}'
15451 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}'
15461 case $cc_basename in
15463 # FIXME: insert proper C++ library support
15467 # Green Hills C++ Compiler
15468 # FIXME: insert proper C++ library support
15472 # FIXME: insert proper C++ library support
15478 # C++ shared libraries reported to be fairly broken before switch to ELF
15482 archive_cmds_need_lc_CXX=no
15484 freebsd* | kfreebsd*-gnu)
15485 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15492 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15493 hardcode_libdir_separator_CXX=:
15494 export_dynamic_flag_spec_CXX='${wl}-E'
15495 hardcode_direct_CXX=yes
15496 hardcode_minus_L_CXX=yes # Not in the search PATH,
15497 # but as the default
15498 # location of the library.
15500 case $cc_basename in
15502 # FIXME: insert proper C++ library support
15506 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'
15507 # Commands to make compiler produce verbose output that lists
15508 # what "hidden" libraries, object files and flags are used when
15509 # linking a shared library.
15511 # There doesn't appear to be a way to prevent this compiler from
15512 # explicitly linking system object files so we need to strip them
15513 # from the output so that they don't get included in the library
15515 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'
15518 if test "$GXX" = yes; then
15519 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'
15521 # FIXME: insert proper C++ library support
15528 if test $with_gnu_ld = no; then
15529 case "$host_cpu" in
15531 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15532 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15533 hardcode_libdir_separator_CXX=:
15536 hardcode_libdir_flag_spec_CXX='-L$libdir'
15539 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15540 hardcode_libdir_separator_CXX=:
15541 export_dynamic_flag_spec_CXX='${wl}-E'
15545 case "$host_cpu" in
15547 hardcode_direct_CXX=no
15548 hardcode_shlibpath_var_CXX=no
15551 hardcode_direct_CXX=no
15552 hardcode_shlibpath_var_CXX=no
15553 hardcode_minus_L_CXX=yes # Not in the search PATH,
15554 # but as the default
15555 # location of the library.
15558 hardcode_direct_CXX=yes
15559 hardcode_minus_L_CXX=yes # Not in the search PATH,
15560 # but as the default
15561 # location of the library.
15565 case $cc_basename in
15567 # FIXME: insert proper C++ library support
15571 case "$host_cpu" in
15573 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15579 # Commands to make compiler produce verbose output that lists
15580 # what "hidden" libraries, object files and flags are used when
15581 # linking a shared library.
15583 # There doesn't appear to be a way to prevent this compiler from
15584 # explicitly linking system object files so we need to strip them
15585 # from the output so that they don't get included in the library
15587 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'
15590 if test "$GXX" = yes; then
15591 if test $with_gnu_ld = no; then
15592 case "$host_cpu" in
15594 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15597 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'
15602 # FIXME: insert proper C++ library support
15609 case $cc_basename in
15612 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'
15614 # Archives containing C++ object files must be created using
15615 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15616 # necessary to make sure instantiated templates are included
15618 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15621 if test "$GXX" = yes; then
15622 if test "$with_gnu_ld" = no; then
15623 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'
15625 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'
15628 link_all_deplibs_CXX=yes
15631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator_CXX=:
15635 case $cc_basename in
15637 # Kuck and Associates, Inc. (KAI) C++ Compiler
15639 # KCC will only create a shared library if the output file
15640 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15641 # to its proper name (with version) after linking.
15642 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'
15643 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'
15644 # Commands to make compiler produce verbose output that lists
15645 # what "hidden" libraries, object files and flags are used when
15646 # linking a shared library.
15648 # There doesn't appear to be a way to prevent this compiler from
15649 # explicitly linking system object files so we need to strip them
15650 # from the output so that they don't get included in the library
15652 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'
15654 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15657 # Archives containing C++ object files must be created using
15658 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15659 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15664 # version 8.0 and above of icpc choke on multiply defined symbols
15665 # if we add $predep_objects and $postdep_objects, however 7.1 and
15666 # earlier do not add the objects themselves.
15667 case `$CC -V 2>&1` in
15669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15670 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'
15672 *) # Version 8.0 or newer
15673 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15677 archive_cmds_need_lc_CXX=no
15678 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15680 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 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'
15687 runpath_var=LD_RUN_PATH
15688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15689 hardcode_libdir_separator_CXX=:
15691 # Commands to make compiler produce verbose output that lists
15692 # what "hidden" libraries, object files and flags are used when
15693 # linking a shared library.
15695 # There doesn't appear to be a way to prevent this compiler from
15696 # explicitly linking system object files so we need to strip them
15697 # from the output so that they don't get included in the library
15699 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'
15704 # FIXME: insert proper C++ library support
15708 # FIXME: insert proper C++ library support
15712 case $cc_basename in
15714 # FIXME: insert proper C++ library support
15718 # FIXME: insert proper C++ library support
15724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15725 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15727 hardcode_libdir_flag_spec_CXX='-R$libdir'
15728 hardcode_direct_CXX=yes
15729 hardcode_shlibpath_var_CXX=no
15731 # Workaround some broken pre-1.5 toolchains
15732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15735 # C++ shared libraries are fairly broken
15739 hardcode_direct_CXX=yes
15740 hardcode_shlibpath_var_CXX=no
15741 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15745 export_dynamic_flag_spec_CXX='${wl}-E'
15746 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15748 output_verbose_link_cmd='echo'
15751 case $cc_basename in
15753 # Kuck and Associates, Inc. (KAI) C++ Compiler
15755 # KCC will only create a shared library if the output file
15756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15757 # to its proper name (with version) after linking.
15758 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'
15760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15761 hardcode_libdir_separator_CXX=:
15763 # Archives containing C++ object files must be created using
15764 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15769 # Rational C++ 2.4.1
15770 # FIXME: insert proper C++ library support
15774 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15775 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'
15777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15778 hardcode_libdir_separator_CXX=:
15780 # Commands to make compiler produce verbose output that lists
15781 # what "hidden" libraries, object files and flags are used when
15782 # linking a shared library.
15784 # There doesn't appear to be a way to prevent this compiler from
15785 # explicitly linking system object files so we need to strip them
15786 # from the output so that they don't get included in the library
15788 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'
15791 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15793 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'
15795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15796 hardcode_libdir_separator_CXX=:
15798 # Commands to make compiler produce verbose output that lists
15799 # what "hidden" libraries, object files and flags are used when
15800 # linking a shared library.
15801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15804 # FIXME: insert proper C++ library support
15811 case $cc_basename in
15813 # Kuck and Associates, Inc. (KAI) C++ Compiler
15815 # KCC will only create a shared library if the output file
15816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817 # to its proper name (with version) after linking.
15818 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15821 hardcode_libdir_separator_CXX=:
15823 # Archives containing C++ object files must be created using
15824 # the KAI C++ compiler.
15825 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15828 # Rational C++ 2.4.1
15829 # FIXME: insert proper C++ library support
15833 allow_undefined_flag_CXX=' -expect_unresolved \*'
15834 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'
15835 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15836 echo "-hidden">> $lib.exp~
15837 $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~
15840 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15841 hardcode_libdir_separator_CXX=:
15843 # Commands to make compiler produce verbose output that lists
15844 # what "hidden" libraries, object files and flags are used when
15845 # linking a shared library.
15847 # There doesn't appear to be a way to prevent this compiler from
15848 # explicitly linking system object files so we need to strip them
15849 # from the output so that they don't get included in the library
15851 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'
15854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15856 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'
15858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15859 hardcode_libdir_separator_CXX=:
15861 # Commands to make compiler produce verbose output that lists
15862 # what "hidden" libraries, object files and flags are used when
15863 # linking a shared library.
15864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15867 # FIXME: insert proper C++ library support
15874 # FIXME: insert proper C++ library support
15878 archive_cmds_need_lc_CXX=no
15879 case $cc_basename in
15881 # FIXME: insert proper C++ library support
15885 # FIXME: insert proper C++ library support
15891 case $cc_basename in
15894 # FIXME: insert proper C++ library support
15899 # FIXME: insert proper C++ library support
15903 # FIXME: insert proper C++ library support
15909 case $cc_basename in
15911 # Sun C++ 4.2, 5.x and Centerline C++
15912 no_undefined_flag_CXX=' -zdefs'
15913 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15915 $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'
15917 hardcode_libdir_flag_spec_CXX='-R$libdir'
15918 hardcode_shlibpath_var_CXX=no
15920 solaris2.0-5 | solaris2.0-5.*) ;;
15922 # The C++ compiler is used as linker so we must use $wl
15923 # flag to pass the commands to the underlying system
15925 # Supported since Solaris 2.6 (maybe 2.5.1?)
15926 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15929 link_all_deplibs_CXX=yes
15931 # Commands to make compiler produce verbose output that lists
15932 # what "hidden" libraries, object files and flags are used when
15933 # linking a shared library.
15935 # There doesn't appear to be a way to prevent this compiler from
15936 # explicitly linking system object files so we need to strip them
15937 # from the output so that they don't get included in the library
15939 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'
15941 # Archives containing C++ object files must be created using
15942 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15943 # necessary to make sure instantiated templates are included
15945 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15948 # Green Hills C++ Compiler
15949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15951 # The C++ compiler must be used to create the archive.
15952 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15955 # GNU C++ compiler with Solaris linker
15956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15957 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15958 if $CC --version | grep -v '^2\.7' > /dev/null; then
15959 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15960 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15961 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15963 # Commands to make compiler produce verbose output that lists
15964 # what "hidden" libraries, object files and flags are used when
15965 # linking a shared library.
15966 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15968 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15970 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15971 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15972 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15974 # Commands to make compiler produce verbose output that lists
15975 # what "hidden" libraries, object files and flags are used when
15976 # linking a shared library.
15977 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15980 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15985 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15986 archive_cmds_need_lc_CXX=no
15989 case $cc_basename in
15991 # NonStop-UX NCC 3.20
15992 # FIXME: insert proper C++ library support
15996 # FIXME: insert proper C++ library support
16002 # FIXME: insert proper C++ library support
16006 # FIXME: insert proper C++ library support
16010 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16011 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16012 test "$ld_shlibs_CXX" = no && can_build_shared=no
16018 cat > conftest.$ac_ext <<EOF
16022 Foo (void) { a = 0; }
16028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; then
16033 # Parse the compiler output and extract the necessary
16034 # objects, libraries and library flags.
16036 # Sentinel used to keep track of whether or not we are before
16037 # the conftest object file.
16038 pre_test_object_deps_done=no
16040 # The `*' in the case matches for architectures that use `case' in
16041 # $output_verbose_cmd can trigger glob expansion during the loop
16042 # eval without this substitution.
16043 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16045 for p in `eval $output_verbose_link_cmd`; do
16049 # Some compilers place space between "-{L,R}" and the path.
16050 # Remove the space.
16051 if test $p = "-L" \
16052 || test $p = "-R"; then
16059 if test "$pre_test_object_deps_done" = no; then
16062 # Internal compiler library paths should come after those
16063 # provided the user. The postdeps already come after the
16064 # user supplied libs so there is no need to process them.
16065 if test -z "$compiler_lib_search_path_CXX"; then
16066 compiler_lib_search_path_CXX="${prev}${p}"
16068 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16071 # The "-l" case would never come before the object being
16072 # linked, so don't bother handling this case.
16075 if test -z "$postdeps_CXX"; then
16076 postdeps_CXX="${prev}${p}"
16078 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16084 # This assumes that the test object file only shows up
16085 # once in the compiler output.
16086 if test "$p" = "conftest.$objext"; then
16087 pre_test_object_deps_done=yes
16091 if test "$pre_test_object_deps_done" = no; then
16092 if test -z "$predep_objects_CXX"; then
16093 predep_objects_CXX="$p"
16095 predep_objects_CXX="$predep_objects_CXX $p"
16098 if test -z "$postdep_objects_CXX"; then
16099 postdep_objects_CXX="$p"
16101 postdep_objects_CXX="$postdep_objects_CXX $p"
16106 *) ;; # Ignore the rest.
16114 echo "libtool.m4: error: problem compiling CXX test program"
16117 $rm -f confest.$objext
16119 case " $postdeps_CXX " in
16120 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16123 lt_prog_compiler_wl_CXX=
16124 lt_prog_compiler_pic_CXX=
16125 lt_prog_compiler_static_CXX=
16127 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16128 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16130 # C++ specific cases for pic, static, wl, etc.
16131 if test "$GXX" = yes; then
16132 lt_prog_compiler_wl_CXX='-Wl,'
16133 lt_prog_compiler_static_CXX='-static'
16137 # All AIX code is PIC.
16138 if test "$host_cpu" = ia64; then
16139 # AIX 5 now supports IA64 processor
16140 lt_prog_compiler_static_CXX='-Bstatic'
16144 # FIXME: we need at least 68020 code to build shared libraries, but
16145 # adding the `-m68020' flag to GCC prevents building anything better,
16147 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16150 # PIC is the default for these OSes.
16152 mingw* | os2* | pw32*)
16153 # This hack is so that the source file can tell whether it is being
16154 # built for inclusion in a dll (and should export symbols for example).
16155 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16157 darwin* | rhapsody*)
16158 # PIC is the default on this platform
16159 # Common symbols not allowed in MH_DYLIB files
16160 lt_prog_compiler_pic_CXX='-fno-common'
16163 # DJGPP does not support shared libraries at all
16164 lt_prog_compiler_pic_CXX=
16167 if test -d /usr/nec; then
16168 lt_prog_compiler_pic_CXX=-Kconform_pic
16172 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16173 # not for PA HP-UX.
16174 case "$host_cpu" in
16178 lt_prog_compiler_pic_CXX='-fPIC'
16183 lt_prog_compiler_pic_CXX='-fPIC'
16189 # All AIX code is PIC.
16190 if test "$host_cpu" = ia64; then
16191 # AIX 5 now supports IA64 processor
16192 lt_prog_compiler_static_CXX='-Bstatic'
16194 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16198 case $cc_basename in
16200 # Green Hills C++ Compiler
16201 # _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"
16206 # PIC is the default on this platform
16207 # Common symbols not allowed in MH_DYLIB files
16208 case "$cc_basename" in
16210 lt_prog_compiler_pic_CXX='-qnocommon'
16211 lt_prog_compiler_wl_CXX='-Wl,'
16216 case $cc_basename in
16218 lt_prog_compiler_pic_CXX='-KPIC'
16221 # Green Hills C++ Compiler
16222 lt_prog_compiler_pic_CXX='-pic'
16228 freebsd* | kfreebsd*-gnu)
16229 # FreeBSD uses GNU C++
16231 hpux9* | hpux10* | hpux11*)
16232 case $cc_basename in
16234 lt_prog_compiler_wl_CXX='-Wl,'
16235 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16236 if test "$host_cpu" != ia64; then
16237 lt_prog_compiler_pic_CXX='+Z'
16241 lt_prog_compiler_wl_CXX='-Wl,'
16242 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16243 case "$host_cpu" in
16248 lt_prog_compiler_pic_CXX='+Z'
16256 irix5* | irix6* | nonstopux*)
16257 case $cc_basename in
16259 lt_prog_compiler_wl_CXX='-Wl,'
16260 lt_prog_compiler_static_CXX='-non_shared'
16261 # CC pic flag -KPIC is the default.
16268 case $cc_basename in
16271 lt_prog_compiler_wl_CXX='--backend -Wl,'
16272 lt_prog_compiler_pic_CXX='-fPIC'
16276 lt_prog_compiler_wl_CXX='-Wl,'
16277 lt_prog_compiler_pic_CXX='-KPIC'
16278 lt_prog_compiler_static_CXX='-static'
16282 # Make sure the PIC flag is empty. It appears that all Alpha
16283 # Linux and Compaq Tru64 Unix objects are PIC.
16284 lt_prog_compiler_pic_CXX=
16285 lt_prog_compiler_static_CXX='-non_shared'
16296 case $cc_basename in
16298 lt_prog_compiler_pic_CXX='-W c,exportall'
16306 osf3* | osf4* | osf5*)
16307 case $cc_basename in
16309 lt_prog_compiler_wl_CXX='--backend -Wl,'
16312 # Rational C++ 2.4.1
16313 lt_prog_compiler_pic_CXX='-pic'
16316 # Digital/Compaq C++
16317 lt_prog_compiler_wl_CXX='-Wl,'
16318 # Make sure the PIC flag is empty. It appears that all Alpha
16319 # Linux and Compaq Tru64 Unix objects are PIC.
16320 lt_prog_compiler_pic_CXX=
16321 lt_prog_compiler_static_CXX='-non_shared'
16330 case $cc_basename in
16332 lt_prog_compiler_pic_CXX='-fPIC'
16339 case $cc_basename in
16341 # Sun C++ 4.2, 5.x and Centerline C++
16342 lt_prog_compiler_pic_CXX='-KPIC'
16343 lt_prog_compiler_static_CXX='-Bstatic'
16344 lt_prog_compiler_wl_CXX='-Qoption ld '
16347 # Green Hills C++ Compiler
16348 lt_prog_compiler_pic_CXX='-PIC'
16355 case $cc_basename in
16358 lt_prog_compiler_pic_CXX='-pic'
16359 lt_prog_compiler_static_CXX='-Bstatic'
16363 lt_prog_compiler_pic_CXX='-pic'
16370 case $cc_basename in
16372 # NonStop-UX NCC 3.20
16373 lt_prog_compiler_pic_CXX='-KPIC'
16384 lt_prog_compiler_can_build_shared_CXX=no
16389 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16390 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16393 # Check to make sure the PIC flag actually works.
16395 if test -n "$lt_prog_compiler_pic_CXX"; then
16397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16398 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16399 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 lt_prog_compiler_pic_works_CXX=no
16403 ac_outfile=conftest.$ac_objext
16404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16405 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16406 # Insert the option either (1) after the last *FLAGS variable, or
16407 # (2) before a word containing "conftest.", or (3) at the end.
16408 # Note that $ac_compile itself does not contain backslashes and begins
16409 # with a dollar sign (not a hyphen), so the echo should work correctly.
16410 # The option is referenced via a variable to avoid confusing sed.
16411 lt_compile=`echo "$ac_compile" | $SED \
16412 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414 -e 's:$: $lt_compiler_flag:'`
16415 (eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
16416 (eval "$lt_compile" 2>conftest.err)
16418 cat conftest.err >&5
16419 echo "$as_me:16419: \$? = $ac_status" >&5
16420 if (exit $ac_status) && test -s "$ac_outfile"; then
16421 # The compiler can only warn and ignore the option if not recognized
16422 # So say no if there are warnings
16423 if test ! -s conftest.err; then
16424 lt_prog_compiler_pic_works_CXX=yes
16430 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16431 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16433 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16434 case $lt_prog_compiler_pic_CXX in
16436 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16439 lt_prog_compiler_pic_CXX=
16440 lt_prog_compiler_can_build_shared_CXX=no
16445 # For platforms which do not support PIC, -DPIC is meaningless:
16447 lt_prog_compiler_pic_CXX=
16450 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16454 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16455 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16456 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 lt_cv_prog_compiler_c_o_CXX=no
16460 $rm -r conftest 2>/dev/null
16464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16466 lt_compiler_flag="-o out/conftest2.$ac_objext"
16467 # Insert the option either (1) after the last *FLAGS variable, or
16468 # (2) before a word containing "conftest.", or (3) at the end.
16469 # Note that $ac_compile itself does not contain backslashes and begins
16470 # with a dollar sign (not a hyphen), so the echo should work correctly.
16471 lt_compile=`echo "$ac_compile" | $SED \
16472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16474 -e 's:$: $lt_compiler_flag:'`
16475 (eval echo "\"\$as_me:16475: $lt_compile\"" >&5)
16476 (eval "$lt_compile" 2>out/conftest.err)
16478 cat out/conftest.err >&5
16479 echo "$as_me:16479: \$? = $ac_status" >&5
16480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16482 # The compiler can only warn and ignore the option if not recognized
16483 # So say no if there are warnings
16484 if test ! -s out/conftest.err; then
16485 lt_cv_prog_compiler_c_o_CXX=yes
16490 # SGI C++ compiler will create directory out/ii_files/ for
16491 # template instantiation
16492 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16493 $rm out/* && rmdir out
16499 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16503 hard_links="nottested"
16504 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16505 # do not overwrite the value of need_locks provided by the user
16506 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16507 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16512 ln conftest.a conftest.b 2>&5 || hard_links=no
16513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16514 echo "$as_me:$LINENO: result: $hard_links" >&5
16515 echo "${ECHO_T}$hard_links" >&6
16516 if test "$hard_links" = no; then
16517 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16518 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16525 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16528 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16531 # If we're using GNU nm, then we don't want the "-C" option.
16532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16533 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16534 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'
16536 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'
16540 export_symbols_cmds_CXX="$ltdll_cmds"
16543 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16546 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16550 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16551 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16552 test "$ld_shlibs_CXX" = no && can_build_shared=no
16554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555 if test "$GCC" = yes; then
16556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16560 # Do we need to explicitly link libc?
16562 case "x$archive_cmds_need_lc_CXX" in
16564 # Assume -lc should be added
16565 archive_cmds_need_lc_CXX=yes
16567 if test "$enable_shared" = yes && test "$GCC" = yes; then
16568 case $archive_cmds_CXX in
16570 # FIXME: we may have to deal with multi-command sequences.
16573 # Test whether the compiler implicitly links with -lc since on some
16574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16575 # to ld, don't add -lc before -lgcc.
16576 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582 (eval $ac_compile) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } 2>conftest.err; then
16588 libobjs=conftest.$ac_objext
16590 wl=$lt_prog_compiler_wl_CXX
16596 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16597 allow_undefined_flag_CXX=
16598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16599 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }
16604 archive_cmds_need_lc_CXX=no
16606 archive_cmds_need_lc_CXX=yes
16608 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16610 cat conftest.err 1>&5
16613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16614 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16621 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16622 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16623 library_names_spec=
16624 libname_spec='lib$name'
16628 postuninstall_cmds=
16632 shlibpath_overrides_runpath=unknown
16634 dynamic_linker="$host_os ld.so"
16635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16636 if test "$GCC" = yes; then
16637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16638 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16639 # if the path contains ";" then we assume it to be the separator
16640 # otherwise default to the standard path separator (i.e. ":") - it is
16641 # assumed that no part of a normal pathname contains ";" but that should
16642 # okay in the real world where ";" in dirpaths is itself problematic.
16643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16648 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16650 need_lib_prefix=unknown
16651 hardcode_into_libs=no
16653 # when you set need_version to no, make sure it does not cause -set_version
16654 # flags to be left without arguments
16655 need_version=unknown
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16661 shlibpath_var=LIBPATH
16663 # AIX 3 has no versioning support, so we append a major version to the name.
16664 soname_spec='${libname}${release}${shared_ext}$major'
16671 hardcode_into_libs=yes
16672 if test "$host_cpu" = ia64; then
16673 # AIX 5 supports IA64
16674 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16675 shlibpath_var=LD_LIBRARY_PATH
16677 # With GCC up to 2.95.x, collect2 would create an import file
16678 # for dependence libraries. The import file would start with
16679 # the line `#! .'. This would cause the generated library to
16680 # depend on `.', always an invalid library. This was fixed in
16681 # development snapshots of GCC prior to 3.0.
16683 aix4 | aix4.[01] | aix4.[01].*)
16684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16686 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16689 can_build_shared=no
16693 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16694 # soname into executable. Probably we can add versioning support to
16695 # collect2, so additional links can be useful in future.
16696 if test "$aix_use_runtimelinking" = yes; then
16697 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16698 # instead of lib<name>.a to let people know that these are not
16699 # typical AIX shared libraries.
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16702 # We preserve .a as extension for shared libraries through AIX4.2
16703 # and later when we are not doing run time linking.
16704 library_names_spec='${libname}${release}.a $libname.a'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16707 shlibpath_var=LIBPATH
16712 library_names_spec='$libname.ixlibrary $libname.a'
16713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16714 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'
16718 library_names_spec='${libname}${shared_ext}'
16719 dynamic_linker="$host_os ld.so"
16720 shlibpath_var=LIBRARY_PATH
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16732 # the default ld.so.conf also contains /usr/contrib/lib and
16733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16734 # libtool to hard-code these into programs
16737 cygwin* | mingw* | pw32*)
16738 version_type=windows
16743 case $GCC,$host_os in
16744 yes,cygwin* | yes,mingw* | yes,pw32*)
16745 library_names_spec='$libname.dll.a'
16746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16747 postinstall_cmds='base_file=`basename \${file}`~
16748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16749 dldir=$destdir/`dirname \$dlpath`~
16750 test -d \$dldir || mkdir -p \$dldir~
16751 $install_prog $dir/$dlname \$dldir/$dlname'
16752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16753 dlpath=$dir/\$dldll~
16755 shlibpath_overrides_runpath=yes
16759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16764 # MinGW DLLs use traditional 'lib' prefix
16765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16768 # It is most probably a Windows format PATH printed by
16769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16770 # path with ; separators, and with drive letters. We can handle the
16771 # drive letters (cygwin fileutils understands them), so leave them,
16772 # especially as we might pass files found there to a mingw objdump,
16773 # which wouldn't understand a cygwinified path. Ahh.
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16780 # pw32 DLLs use 'pw' prefix rather than 'lib'
16781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16790 dynamic_linker='Win32 ld.exe'
16791 # FIXME: first we should search . and the directory the executable is in
16795 darwin* | rhapsody*)
16796 dynamic_linker="$host_os dyld"
16797 version_type=darwin
16800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16801 soname_spec='${libname}${release}${major}$shared_ext'
16802 shlibpath_overrides_runpath=yes
16803 shlibpath_var=DYLD_LIBRARY_PATH
16804 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16805 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16806 if test "$GCC" = yes; then
16807 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"`
16809 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 shlibpath_var=LD_LIBRARY_PATH
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=no
16835 hardcode_into_libs=yes
16836 dynamic_linker='GNU ld.so'
16840 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16841 version_type=freebsd-$objformat
16842 case $version_type in
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16853 shlibpath_var=LD_LIBRARY_PATH
16856 shlibpath_overrides_runpath=yes
16858 freebsd3.01* | freebsdelf3.01*)
16859 shlibpath_overrides_runpath=yes
16860 hardcode_into_libs=yes
16863 shlibpath_overrides_runpath=no
16864 hardcode_into_libs=yes
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 hardcode_into_libs=yes
16879 hpux9* | hpux10* | hpux11*)
16880 # Give a soname corresponding to the major version so that dld.sl refuses to
16881 # link against other versions.
16885 case "$host_cpu" in
16888 hardcode_into_libs=yes
16889 dynamic_linker="$host_os dld.so"
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 if test "X$HPUX_IA64_MODE" = X32; then
16895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16903 hardcode_into_libs=yes
16904 dynamic_linker="$host_os dld.sl"
16905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=SHLIB_PATH
16916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
16921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16922 postinstall_cmds='chmod 555 $lib'
16925 irix5* | irix6* | nonstopux*)
16927 nonstopux*) version_type=nonstopux ;;
16929 if test "$lt_cv_prog_gnu_ld" = yes; then
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16940 irix5* | nonstopux*)
16941 libsuff= shlibsuff=
16944 case $LD in # libtool.m4 will add one of these switches to LD
16945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16946 libsuff= shlibsuff= libmagic=32-bit;;
16947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16948 libsuff=32 shlibsuff=N32 libmagic=N32;;
16949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16951 *) libsuff= shlibsuff= libmagic=never-match;;
16955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16956 shlibpath_overrides_runpath=no
16957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16959 hardcode_into_libs=yes
16962 # No shared lib support for Linux oldld, aout, or coff.
16963 linux*oldld* | linux*aout* | linux*coff*)
16967 # This must be Linux ELF.
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 # This implies no fast_install, which is unacceptable.
16978 # Some rework will be needed to allow for fast_install
16979 # before this can be enabled.
16980 hardcode_into_libs=yes
16982 # Append ld.so.conf contents to the search path
16983 if test -f /etc/ld.so.conf; then
16984 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16988 # We used to test for /lib/ld.so.1 and disable shared libraries on
16989 # powerpc, because MkLinux only supported shared libraries with the
16990 # GNU dynamic linker. Since this was broken with cross compilers,
16991 # most powerpc-linux boxes support dynamic linking these days and
16992 # people can always --disable-shared, the test was removed, and we
16993 # assume the GNU/Linux dynamic linker is in use.
16994 dynamic_linker='GNU/Linux ld.so'
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 dynamic_linker='GNU ld.so'
17013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016 dynamic_linker='NetBSD (a.out) ld.so'
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 dynamic_linker='NetBSD ld.elf_so'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 hardcode_into_libs=yes
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17053 openbsd2.[89] | openbsd2.[89].*)
17054 shlibpath_overrides_runpath=no
17057 shlibpath_overrides_runpath=yes
17061 shlibpath_overrides_runpath=yes
17066 libname_spec='$name'
17069 library_names_spec='$libname${shared_ext} $libname.a'
17070 dynamic_linker='OS/2 ld.exe'
17071 shlibpath_var=LIBPATH
17074 osf3* | osf4* | osf5*)
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 shlibpath_var=LD_LIBRARY_PATH
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17101 # ldd complains unless libraries are executable
17102 postinstall_cmds='chmod +x $lib'
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17111 if test "$with_gnu_ld" = yes; then
17117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 case $host_vendor in
17124 shlibpath_overrides_runpath=no
17126 export_dynamic_flag_spec='${wl}-Blargedynsym'
17127 runpath_var=LD_RUN_PATH
17135 shlibpath_overrides_runpath=no
17136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17142 if test -d /usr/nec ;then
17144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145 soname_spec='$libname${shared_ext}.$major'
17146 shlibpath_var=LD_LIBRARY_PATH
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17161 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162 echo "${ECHO_T}$dynamic_linker" >&6
17163 test "$dynamic_linker" = no && can_build_shared=no
17165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167 hardcode_action_CXX=
17168 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17169 test -n "$runpath_var_CXX" || \
17170 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17172 # We can hardcode non-existant directories.
17173 if test "$hardcode_direct_CXX" != no &&
17174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17175 # have to relink, otherwise we might link with an installed library
17176 # when we should be linking with a yet-to-be-installed one
17177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17178 test "$hardcode_minus_L_CXX" != no; then
17179 # Linking always hardcodes the temporary library directory.
17180 hardcode_action_CXX=relink
17182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17183 hardcode_action_CXX=immediate
17186 # We cannot hardcode anything, or else we can only hardcode existing
17188 hardcode_action_CXX=unsupported
17190 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17191 echo "${ECHO_T}$hardcode_action_CXX" >&6
17193 if test "$hardcode_action_CXX" = relink; then
17194 # Fast installation is not supported
17195 enable_fast_install=no
17196 elif test "$shlibpath_overrides_runpath" = yes ||
17197 test "$enable_shared" = no; then
17198 # Fast installation is not necessary
17199 enable_fast_install=needless
17204 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209 echo "$as_me:$LINENO: result: yes" >&5
17210 echo "${ECHO_T}yes" >&6
17212 # FIXME - insert some real tests, host_os isn't really good enough
17215 if test -n "$STRIP" ; then
17216 striplib="$STRIP -x"
17217 echo "$as_me:$LINENO: result: yes" >&5
17218 echo "${ECHO_T}yes" >&6
17220 echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6
17225 echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6
17231 if test "x$enable_dlopen" != xyes; then
17232 enable_dlopen=unknown
17233 enable_dlopen_self=unknown
17234 enable_dlopen_self_static=unknown
17241 lt_cv_dlopen="load_add_on"
17243 lt_cv_dlopen_self=yes
17247 lt_cv_dlopen="LoadLibrary"
17252 lt_cv_dlopen="dlopen"
17257 # if libdl is installed we need to link against it
17258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 ac_check_lib_save_LIBS=$LIBS
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17272 /* Override any gcc2 internal prototype to avoid an error. */
17276 /* We use char because int might match the return type of a gcc2
17277 builtin and then its argument prototype would still apply. */
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>conftest.er1
17291 grep -v '^ *+' conftest.er1 >conftest.err
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_cxx_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_lib_dl_dlopen=yes
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17314 ac_cv_lib_dl_dlopen=no
17316 rm -f conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322 if test $ac_cv_lib_dl_dlopen = yes; then
17323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17326 lt_cv_dlopen="dyld"
17328 lt_cv_dlopen_self=yes
17335 echo "$as_me:$LINENO: checking for shl_load" >&5
17336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337 if test "${ac_cv_func_shl_load+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define shl_load innocuous_shl_load
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char shl_load (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17356 # include <limits.h>
17358 # include <assert.h>
17363 /* Override any gcc2 internal prototype to avoid an error. */
17368 /* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17377 char (*f) () = shl_load;
17386 return f != shl_load;
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_cxx_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_func_shl_load=yes
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_cv_func_shl_load=no
17420 rm -f conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17423 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425 if test $ac_cv_func_shl_load = yes; then
17426 lt_cv_dlopen="shl_load"
17428 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 ac_check_lib_save_LIBS=$LIBS
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17442 /* Override any gcc2 internal prototype to avoid an error. */
17446 /* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459 (eval $ac_link) 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_cxx_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest$ac_exeext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_dld_shl_load=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_lib_dld_shl_load=no
17486 rm -f conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17490 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492 if test $ac_cv_lib_dld_shl_load = yes; then
17493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17495 echo "$as_me:$LINENO: checking for dlopen" >&5
17496 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497 if test "${ac_cv_func_dlopen+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508 #define dlopen innocuous_dlopen
17510 /* System header to define __stub macros and hopefully few prototypes,
17511 which can conflict with char dlopen (); below.
17512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 <limits.h> exists even on freestanding compilers. */
17516 # include <limits.h>
17518 # include <assert.h>
17523 /* Override any gcc2 internal prototype to avoid an error. */
17528 /* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17531 /* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17537 char (*f) () = dlopen;
17546 return f != dlopen;
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553 (eval $ac_link) 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_cxx_werror_flag"
17561 || test ! -s conftest.err'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
17568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17573 ac_cv_func_dlopen=yes
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 ac_cv_func_dlopen=no
17580 rm -f conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
17583 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585 if test $ac_cv_func_dlopen = yes; then
17586 lt_cv_dlopen="dlopen"
17588 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 ac_check_lib_save_LIBS=$LIBS
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17602 /* Override any gcc2 internal prototype to avoid an error. */
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_cxx_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_dl_dlopen=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_lib_dl_dlopen=no
17646 rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652 if test $ac_cv_lib_dl_dlopen = yes; then
17653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17655 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_check_lib_save_LIBS=$LIBS
17661 LIBS="-lsvld $LIBS"
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17669 /* Override any gcc2 internal prototype to avoid an error. */
17673 /* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686 (eval $ac_link) 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_cxx_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest$ac_exeext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_lib_svld_dlopen=yes
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 ac_cv_lib_svld_dlopen=no
17713 rm -f conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17717 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719 if test $ac_cv_lib_svld_dlopen = yes; then
17720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17722 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 ac_check_lib_save_LIBS=$LIBS
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17736 /* Override any gcc2 internal prototype to avoid an error. */
17740 /* We use char because int might match the return type of a gcc2
17741 builtin and then its argument prototype would still apply. */
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
17755 grep -v '^ *+' conftest.er1 >conftest.err
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_cxx_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_lib_dld_dld_link=yes
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_cv_lib_dld_dld_link=no
17780 rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786 if test $ac_cv_lib_dld_dld_link = yes; then
17787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17808 if test "x$lt_cv_dlopen" != xno; then
17814 case $lt_cv_dlopen in
17816 save_CPPFLAGS="$CPPFLAGS"
17817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17819 save_LDFLAGS="$LDFLAGS"
17820 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17823 LIBS="$lt_cv_dlopen_libs $LIBS"
17825 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827 if test "${lt_cv_dlopen_self+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 if test "$cross_compiling" = yes; then :
17831 lt_cv_dlopen_self=cross
17833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834 lt_status=$lt_dlunknown
17835 cat > conftest.$ac_ext <<EOF
17836 #line 17836 "configure"
17837 #include "confdefs.h"
17846 # define LT_DLGLOBAL RTLD_GLOBAL
17849 # define LT_DLGLOBAL DL_GLOBAL
17851 # define LT_DLGLOBAL 0
17855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856 find out it does not work in some platform. */
17857 #ifndef LT_DLLAZY_OR_NOW
17859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17862 # define LT_DLLAZY_OR_NOW DL_LAZY
17865 # define LT_DLLAZY_OR_NOW RTLD_NOW
17868 # define LT_DLLAZY_OR_NOW DL_NOW
17870 # define LT_DLLAZY_OR_NOW 0
17878 extern "C" void exit (int);
17881 void fnord() { int i=42;}
17884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885 int status = $lt_dlunknown;
17889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891 /* dlclose (self); */
17897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898 (eval $ac_link) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902 (./conftest; exit; ) 2>/dev/null
17904 case x$lt_status in
17905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17910 # compilation failed
17911 lt_cv_dlopen_self=no
17918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17921 if test "x$lt_cv_dlopen_self" = xyes; then
17922 LDFLAGS="$LDFLAGS $link_static_flag"
17923 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925 if test "${lt_cv_dlopen_self_static+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self_static=cross
17931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932 lt_status=$lt_dlunknown
17933 cat > conftest.$ac_ext <<EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17944 # define LT_DLGLOBAL RTLD_GLOBAL
17947 # define LT_DLGLOBAL DL_GLOBAL
17949 # define LT_DLGLOBAL 0
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17960 # define LT_DLLAZY_OR_NOW DL_LAZY
17963 # define LT_DLLAZY_OR_NOW RTLD_NOW
17966 # define LT_DLLAZY_OR_NOW DL_NOW
17968 # define LT_DLLAZY_OR_NOW 0
17976 extern "C" void exit (int);
17979 void fnord() { int i=42;}
17982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983 int status = $lt_dlunknown;
17987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 /* dlclose (self); */
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) 2>/dev/null
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18008 # compilation failed
18009 lt_cv_dlopen_self_static=no
18016 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18020 CPPFLAGS="$save_CPPFLAGS"
18021 LDFLAGS="$save_LDFLAGS"
18026 case $lt_cv_dlopen_self in
18027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028 *) enable_dlopen_self=unknown ;;
18031 case $lt_cv_dlopen_self_static in
18032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033 *) enable_dlopen_self_static=unknown ;;
18038 # The else clause should only fire when bootstrapping the
18039 # libtool distribution, otherwise you forgot to ship ltmain.sh
18040 # with your package, and you will get complaints that there are
18041 # no rules to generate ltmain.sh.
18042 if test -f "$ltmain"; then
18043 # See if we are running on zsh, and set the options which allow our commands through
18044 # without removal of \ escapes.
18045 if test -n "${ZSH_VERSION+set}" ; then
18046 setopt NO_GLOB_SUBST
18048 # Now quote all the things that may contain metacharacters while being
18049 # careful not to overquote the AC_SUBSTed values. We take copies of the
18050 # variables and quote the copies for generation of the libtool script.
18051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055 deplibs_check_method reload_flag reload_cmds need_locks \
18056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057 lt_cv_sys_global_symbol_to_c_name_address \
18058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059 old_postinstall_cmds old_postuninstall_cmds \
18063 lt_prog_compiler_wl_CXX \
18064 lt_prog_compiler_pic_CXX \
18065 lt_prog_compiler_static_CXX \
18066 lt_prog_compiler_no_builtin_flag_CXX \
18067 export_dynamic_flag_spec_CXX \
18068 thread_safe_flag_spec_CXX \
18069 whole_archive_flag_spec_CXX \
18070 enable_shared_with_static_runtimes_CXX \
18071 old_archive_cmds_CXX \
18072 old_archive_from_new_cmds_CXX \
18073 predep_objects_CXX \
18074 postdep_objects_CXX \
18077 compiler_lib_search_path_CXX \
18079 archive_expsym_cmds_CXX \
18080 postinstall_cmds_CXX \
18081 postuninstall_cmds_CXX \
18082 old_archive_from_expsyms_cmds_CXX \
18083 allow_undefined_flag_CXX \
18084 no_undefined_flag_CXX \
18085 export_symbols_cmds_CXX \
18086 hardcode_libdir_flag_spec_CXX \
18087 hardcode_libdir_flag_spec_ld_CXX \
18088 hardcode_libdir_separator_CXX \
18089 hardcode_automatic_CXX \
18091 module_expsym_cmds_CXX \
18092 lt_cv_prog_compiler_c_o_CXX \
18093 exclude_expsyms_CXX \
18094 include_expsyms_CXX; do
18097 old_archive_cmds_CXX | \
18098 old_archive_from_new_cmds_CXX | \
18099 archive_cmds_CXX | \
18100 archive_expsym_cmds_CXX | \
18101 module_cmds_CXX | \
18102 module_expsym_cmds_CXX | \
18103 old_archive_from_expsyms_cmds_CXX | \
18104 export_symbols_cmds_CXX | \
18105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106 postinstall_cmds | postuninstall_cmds | \
18107 old_postinstall_cmds | old_postuninstall_cmds | \
18108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109 # Double-quote double-evaled strings.
18110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18119 *'\$0 --fallback-echo"')
18120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18126 cat <<__EOF__ >> "$cfgfile"
18127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18131 # Shell to use when invoking shell scripts.
18134 # Whether or not to build shared libraries.
18135 build_libtool_libs=$enable_shared
18137 # Whether or not to build static libraries.
18138 build_old_libs=$enable_static
18140 # Whether or not to add -lc for building shared libraries.
18141 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18143 # Whether or not to disallow shared libs when runtime libs are static
18144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18146 # Whether or not to optimize for fast installation.
18147 fast_install=$enable_fast_install
18150 host_alias=$host_alias
18153 # An echo program that does not interpret backslashes.
18158 AR_FLAGS=$lt_AR_FLAGS
18163 # A language-specific compiler.
18164 CC=$lt_compiler_CXX
18166 # Is the compiler the GNU C compiler?
18172 # The linker used to build libraries.
18175 # Whether we need hard or soft links.
18178 # A BSD-compatible nm program.
18181 # A symbol stripping program
18184 # Used to examine libraries when file_magic_cmd begins "file"
18185 MAGIC_CMD=$MAGIC_CMD
18187 # Used on cygwin: DLL creation program.
18190 # Used on cygwin: object dumper.
18193 # Used on cygwin: assembler.
18196 # The name of the directory that contains temporary libtool files.
18199 # How to create reloadable object files.
18200 reload_flag=$lt_reload_flag
18201 reload_cmds=$lt_reload_cmds
18203 # How to pass a linker flag through the compiler.
18204 wl=$lt_lt_prog_compiler_wl_CXX
18206 # Object file suffix (normally "o").
18207 objext="$ac_objext"
18209 # Old archive suffix (normally "a").
18212 # Shared library suffix (normally ".so").
18213 shrext_cmds='$shrext_cmds'
18215 # Executable file suffix (normally "").
18218 # Additional compiler flags for building library objects.
18219 pic_flag=$lt_lt_prog_compiler_pic_CXX
18222 # What is the maximum length of a command?
18223 max_cmd_len=$lt_cv_sys_max_cmd_len
18225 # Does compiler simultaneously support -c and -o options?
18226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18228 # Must we lock files when doing compilation ?
18229 need_locks=$lt_need_locks
18231 # Do we need the lib prefix for modules?
18232 need_lib_prefix=$need_lib_prefix
18234 # Do we need a version for libraries?
18235 need_version=$need_version
18237 # Whether dlopen is supported.
18238 dlopen_support=$enable_dlopen
18240 # Whether dlopen of programs is supported.
18241 dlopen_self=$enable_dlopen_self
18243 # Whether dlopen of statically linked programs is supported.
18244 dlopen_self_static=$enable_dlopen_self_static
18246 # Compiler flag to prevent dynamic linking.
18247 link_static_flag=$lt_lt_prog_compiler_static_CXX
18249 # Compiler flag to turn off builtin functions.
18250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18252 # Compiler flag to allow reflexive dlopens.
18253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18255 # Compiler flag to generate shared objects directly from archives.
18256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18258 # Compiler flag to generate thread-safe objects.
18259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18261 # Library versioning type.
18262 version_type=$version_type
18264 # Format of library name prefix.
18265 libname_spec=$lt_libname_spec
18267 # List of archive names. First name is the real one, the rest are links.
18268 # The last name is the one that the linker finds with -lNAME.
18269 library_names_spec=$lt_library_names_spec
18271 # The coded name of the library, if different from the real name.
18272 soname_spec=$lt_soname_spec
18274 # Commands used to build and install an old-style archive.
18276 old_archive_cmds=$lt_old_archive_cmds_CXX
18277 old_postinstall_cmds=$lt_old_postinstall_cmds
18278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18280 # Create an old-style archive from a shared archive.
18281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18283 # Create a temporary old-style archive to link instead of a shared archive.
18284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18286 # Commands used to build and install a shared archive.
18287 archive_cmds=$lt_archive_cmds_CXX
18288 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18289 postinstall_cmds=$lt_postinstall_cmds
18290 postuninstall_cmds=$lt_postuninstall_cmds
18292 # Commands used to build a loadable module (assumed same as above if empty)
18293 module_cmds=$lt_module_cmds_CXX
18294 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18296 # Commands to strip libraries.
18297 old_striplib=$lt_old_striplib
18298 striplib=$lt_striplib
18300 # Dependencies to place before the objects being linked to create a
18302 predep_objects=$lt_predep_objects_CXX
18304 # Dependencies to place after the objects being linked to create a
18306 postdep_objects=$lt_postdep_objects_CXX
18308 # Dependencies to place before the objects being linked to create a
18310 predeps=$lt_predeps_CXX
18312 # Dependencies to place after the objects being linked to create a
18314 postdeps=$lt_postdeps_CXX
18316 # The library search path used internally by the compiler when linking
18317 # a shared library.
18318 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18320 # Method to check whether dependent libraries are shared objects.
18321 deplibs_check_method=$lt_deplibs_check_method
18323 # Command to use when deplibs_check_method == file_magic.
18324 file_magic_cmd=$lt_file_magic_cmd
18326 # Flag that allows shared libraries with undefined symbols to be built.
18327 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18329 # Flag that forces no undefined symbols.
18330 no_undefined_flag=$lt_no_undefined_flag_CXX
18332 # Commands used to finish a libtool library installation in a directory.
18333 finish_cmds=$lt_finish_cmds
18335 # Same as above, but a single script fragment to be evaled but not shown.
18336 finish_eval=$lt_finish_eval
18338 # Take the output of nm and produce a listing of raw symbols and C names.
18339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18341 # Transform the output of nm in a proper C declaration
18342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18344 # Transform the output of nm in a C name address pair
18345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18347 # This is the shared library runtime path variable.
18348 runpath_var=$runpath_var
18350 # This is the shared library path variable.
18351 shlibpath_var=$shlibpath_var
18353 # Is shlibpath searched before the hard-coded library search path?
18354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18356 # How to hardcode a shared library path into an executable.
18357 hardcode_action=$hardcode_action_CXX
18359 # Whether we should hardcode library paths into libraries.
18360 hardcode_into_libs=$hardcode_into_libs
18362 # Flag to hardcode \$libdir into a binary during linking.
18363 # This must work even if \$libdir does not exist.
18364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18366 # If ld is used when linking, flag to hardcode \$libdir into
18367 # a binary during linking. This must work even if \$libdir does
18369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18371 # Whether we need a single -rpath flag with a separated argument.
18372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18375 # resulting binary.
18376 hardcode_direct=$hardcode_direct_CXX
18378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18379 # resulting binary.
18380 hardcode_minus_L=$hardcode_minus_L_CXX
18382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18383 # the resulting binary.
18384 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18386 # Set to yes if building a shared library automatically hardcodes DIR into the library
18387 # and all subsequent libraries and executables linked against it.
18388 hardcode_automatic=$hardcode_automatic_CXX
18390 # Variables whose values should be saved in libtool wrapper scripts and
18391 # restored at relink time.
18392 variables_saved_for_relink="$variables_saved_for_relink"
18394 # Whether libtool must link a program against all its dependency libraries.
18395 link_all_deplibs=$link_all_deplibs_CXX
18397 # Compile-time system search path for libraries
18398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18400 # Run-time system search path for libraries
18401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18403 # Fix the shell variable \$srcfile for the compiler.
18404 fix_srcfile_path="$fix_srcfile_path_CXX"
18406 # Set to yes if exported symbols are required.
18407 always_export_symbols=$always_export_symbols_CXX
18409 # The commands to list exported symbols.
18410 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18412 # The commands to extract the exported symbol list from a shared archive.
18413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18415 # Symbols that should not be listed in the preloaded symbols.
18416 exclude_expsyms=$lt_exclude_expsyms_CXX
18418 # Symbols that must always be exported.
18419 include_expsyms=$lt_include_expsyms_CXX
18421 # ### END LIBTOOL TAG CONFIG: $tagname
18427 # If there is no Makefile yet, we rely on a make rule to execute
18428 # `config.status --recheck' to rerun these tests and create the
18429 # libtool script then.
18430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18431 if test -f "$ltmain_in"; then
18432 test -f Makefile && make "$ltmain"
18438 ac_cpp='$CPP $CPPFLAGS'
18439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18447 with_gnu_ldcxx=$with_gnu_ld
18448 with_gnu_ld=$lt_save_with_gnu_ld
18449 lt_cv_path_LDCXX=$lt_cv_path_LD
18450 lt_cv_path_LD=$lt_save_path_LD
18451 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18452 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18460 if test -n "$F77" && test "X$F77" != "Xno"; then
18463 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18464 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18468 archive_cmds_need_lc_F77=no
18469 allow_undefined_flag_F77=
18470 always_export_symbols_F77=no
18471 archive_expsym_cmds_F77=
18472 export_dynamic_flag_spec_F77=
18473 hardcode_direct_F77=no
18474 hardcode_libdir_flag_spec_F77=
18475 hardcode_libdir_flag_spec_ld_F77=
18476 hardcode_libdir_separator_F77=
18477 hardcode_minus_L_F77=no
18478 hardcode_automatic_F77=no
18480 module_expsym_cmds_F77=
18481 link_all_deplibs_F77=unknown
18482 old_archive_cmds_F77=$old_archive_cmds
18483 no_undefined_flag_F77=
18484 whole_archive_flag_spec_F77=
18485 enable_shared_with_static_runtimes_F77=no
18487 # Source file extension for f77 test sources.
18490 # Object file extension for compiled f77 test sources.
18494 # Code to be used in simple compile tests
18495 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18497 # Code to be used in simple link tests
18498 lt_simple_link_test_code=" program t\n end\n"
18500 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18502 # If no C compiler was specified, use CC.
18505 # Allow CC to be a program name with arguments.
18509 # Allow CC to be a program name with arguments.
18514 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18516 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18517 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18518 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18519 echo "${ECHO_T}$can_build_shared" >&6
18521 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18522 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18523 test "$can_build_shared" = "no" && enable_shared=no
18525 # On AIX, shared libraries and static libraries use the same namespace, and
18526 # are all built from PIC.
18529 test "$enable_shared" = yes && enable_static=no
18530 if test -n "$RANLIB"; then
18531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18532 postinstall_cmds='$RANLIB $lib'
18536 test "$enable_shared" = yes && enable_static=no
18539 echo "$as_me:$LINENO: result: $enable_shared" >&5
18540 echo "${ECHO_T}$enable_shared" >&6
18542 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18543 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18544 # Make sure either enable_shared or enable_static is yes.
18545 test "$enable_shared" = yes || enable_static=yes
18546 echo "$as_me:$LINENO: result: $enable_static" >&5
18547 echo "${ECHO_T}$enable_static" >&6
18549 test "$ld_shlibs_F77" = no && can_build_shared=no
18554 lt_prog_compiler_wl_F77=
18555 lt_prog_compiler_pic_F77=
18556 lt_prog_compiler_static_F77=
18558 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18559 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18561 if test "$GCC" = yes; then
18562 lt_prog_compiler_wl_F77='-Wl,'
18563 lt_prog_compiler_static_F77='-static'
18567 # All AIX code is PIC.
18568 if test "$host_cpu" = ia64; then
18569 # AIX 5 now supports IA64 processor
18570 lt_prog_compiler_static_F77='-Bstatic'
18575 # FIXME: we need at least 68020 code to build shared libraries, but
18576 # adding the `-m68020' flag to GCC prevents building anything better,
18578 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18581 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18582 # PIC is the default for these OSes.
18585 mingw* | pw32* | os2*)
18586 # This hack is so that the source file can tell whether it is being
18587 # built for inclusion in a dll (and should export symbols for example).
18588 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18591 darwin* | rhapsody*)
18592 # PIC is the default on this platform
18593 # Common symbols not allowed in MH_DYLIB files
18594 lt_prog_compiler_pic_F77='-fno-common'
18598 # Just because we use GCC doesn't mean we suddenly get shared libraries
18599 # on systems that don't support them.
18600 lt_prog_compiler_can_build_shared_F77=no
18605 if test -d /usr/nec; then
18606 lt_prog_compiler_pic_F77=-Kconform_pic
18611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18612 # not for PA HP-UX.
18613 case "$host_cpu" in
18618 lt_prog_compiler_pic_F77='-fPIC'
18624 lt_prog_compiler_pic_F77='-fPIC'
18628 # PORTME Check for flag to pass linker flags through the system compiler.
18631 lt_prog_compiler_wl_F77='-Wl,'
18632 if test "$host_cpu" = ia64; then
18633 # AIX 5 now supports IA64 processor
18634 lt_prog_compiler_static_F77='-Bstatic'
18636 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18640 # PIC is the default on this platform
18641 # Common symbols not allowed in MH_DYLIB files
18642 case "$cc_basename" in
18644 lt_prog_compiler_pic_F77='-qnocommon'
18645 lt_prog_compiler_wl_F77='-Wl,'
18650 mingw* | pw32* | os2*)
18651 # This hack is so that the source file can tell whether it is being
18652 # built for inclusion in a dll (and should export symbols for example).
18653 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18656 hpux9* | hpux10* | hpux11*)
18657 lt_prog_compiler_wl_F77='-Wl,'
18658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18659 # not for PA HP-UX.
18660 case "$host_cpu" in
18665 lt_prog_compiler_pic_F77='+Z'
18668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18669 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18672 irix5* | irix6* | nonstopux*)
18673 lt_prog_compiler_wl_F77='-Wl,'
18674 # PIC (with -KPIC) is the default.
18675 lt_prog_compiler_static_F77='-non_shared'
18679 lt_prog_compiler_pic_F77='-KPIC'
18680 lt_prog_compiler_static_F77='-Bstatic'
18686 lt_prog_compiler_wl_F77='-Wl,'
18687 lt_prog_compiler_pic_F77='-KPIC'
18688 lt_prog_compiler_static_F77='-static'
18691 lt_prog_compiler_wl_F77='-Wl,'
18692 # All Alpha code is PIC.
18693 lt_prog_compiler_static_F77='-non_shared'
18698 osf3* | osf4* | osf5*)
18699 lt_prog_compiler_wl_F77='-Wl,'
18700 # All OSF/1 code is PIC.
18701 lt_prog_compiler_static_F77='-non_shared'
18705 lt_prog_compiler_pic_F77='-Kpic'
18706 lt_prog_compiler_static_F77='-dn'
18710 lt_prog_compiler_wl_F77='-Wl,'
18711 lt_prog_compiler_pic_F77='-KPIC'
18712 lt_prog_compiler_static_F77='-Bstatic'
18716 lt_prog_compiler_wl_F77='-Qoption ld '
18717 lt_prog_compiler_pic_F77='-PIC'
18718 lt_prog_compiler_static_F77='-Bstatic'
18721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18722 lt_prog_compiler_wl_F77='-Wl,'
18723 lt_prog_compiler_pic_F77='-KPIC'
18724 lt_prog_compiler_static_F77='-Bstatic'
18728 if test -d /usr/nec ;then
18729 lt_prog_compiler_pic_F77='-Kconform_pic'
18730 lt_prog_compiler_static_F77='-Bstatic'
18735 lt_prog_compiler_pic_F77='-pic'
18736 lt_prog_compiler_static_F77='-Bstatic'
18740 lt_prog_compiler_can_build_shared_F77=no
18745 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18746 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18749 # Check to make sure the PIC flag actually works.
18751 if test -n "$lt_prog_compiler_pic_F77"; then
18753 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18754 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18755 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 lt_prog_compiler_pic_works_F77=no
18759 ac_outfile=conftest.$ac_objext
18760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18761 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18762 # Insert the option either (1) after the last *FLAGS variable, or
18763 # (2) before a word containing "conftest.", or (3) at the end.
18764 # Note that $ac_compile itself does not contain backslashes and begins
18765 # with a dollar sign (not a hyphen), so the echo should work correctly.
18766 # The option is referenced via a variable to avoid confusing sed.
18767 lt_compile=`echo "$ac_compile" | $SED \
18768 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18770 -e 's:$: $lt_compiler_flag:'`
18771 (eval echo "\"\$as_me:18771: $lt_compile\"" >&5)
18772 (eval "$lt_compile" 2>conftest.err)
18774 cat conftest.err >&5
18775 echo "$as_me:18775: \$? = $ac_status" >&5
18776 if (exit $ac_status) && test -s "$ac_outfile"; then
18777 # The compiler can only warn and ignore the option if not recognized
18778 # So say no if there are warnings
18779 if test ! -s conftest.err; then
18780 lt_prog_compiler_pic_works_F77=yes
18786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18787 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18789 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18790 case $lt_prog_compiler_pic_F77 in
18792 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18795 lt_prog_compiler_pic_F77=
18796 lt_prog_compiler_can_build_shared_F77=no
18801 # For platforms which do not support PIC, -DPIC is meaningless:
18803 lt_prog_compiler_pic_F77=
18806 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18810 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18812 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 lt_cv_prog_compiler_c_o_F77=no
18816 $rm -r conftest 2>/dev/null
18820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18822 lt_compiler_flag="-o out/conftest2.$ac_objext"
18823 # Insert the option either (1) after the last *FLAGS variable, or
18824 # (2) before a word containing "conftest.", or (3) at the end.
18825 # Note that $ac_compile itself does not contain backslashes and begins
18826 # with a dollar sign (not a hyphen), so the echo should work correctly.
18827 lt_compile=`echo "$ac_compile" | $SED \
18828 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18830 -e 's:$: $lt_compiler_flag:'`
18831 (eval echo "\"\$as_me:18831: $lt_compile\"" >&5)
18832 (eval "$lt_compile" 2>out/conftest.err)
18834 cat out/conftest.err >&5
18835 echo "$as_me:18835: \$? = $ac_status" >&5
18836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18838 # The compiler can only warn and ignore the option if not recognized
18839 # So say no if there are warnings
18840 if test ! -s out/conftest.err; then
18841 lt_cv_prog_compiler_c_o_F77=yes
18846 # SGI C++ compiler will create directory out/ii_files/ for
18847 # template instantiation
18848 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18849 $rm out/* && rmdir out
18855 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18859 hard_links="nottested"
18860 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18861 # do not overwrite the value of need_locks provided by the user
18862 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18863 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18868 ln conftest.a conftest.b 2>&5 || hard_links=no
18869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18870 echo "$as_me:$LINENO: result: $hard_links" >&5
18871 echo "${ECHO_T}$hard_links" >&6
18872 if test "$hard_links" = no; then
18873 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18874 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18881 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18882 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18885 allow_undefined_flag_F77=
18886 enable_shared_with_static_runtimes_F77=no
18888 archive_expsym_cmds_F77=
18889 old_archive_From_new_cmds_F77=
18890 old_archive_from_expsyms_cmds_F77=
18891 export_dynamic_flag_spec_F77=
18892 whole_archive_flag_spec_F77=
18893 thread_safe_flag_spec_F77=
18894 hardcode_libdir_flag_spec_F77=
18895 hardcode_libdir_flag_spec_ld_F77=
18896 hardcode_libdir_separator_F77=
18897 hardcode_direct_F77=no
18898 hardcode_minus_L_F77=no
18899 hardcode_shlibpath_var_F77=unsupported
18900 link_all_deplibs_F77=unknown
18901 hardcode_automatic_F77=no
18903 module_expsym_cmds_F77=
18904 always_export_symbols_F77=no
18905 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18906 # include_expsyms should be a list of space-separated symbols to be *always*
18907 # included in the symbol list
18908 include_expsyms_F77=
18909 # exclude_expsyms can be an extended regexp of symbols to exclude
18910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18912 # as well as any symbol that contains `d'.
18913 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18915 # platforms (ab)use it in PIC code, but their linkers get confused if
18916 # the symbol is explicitly referenced. Since portable code cannot
18917 # rely on this symbol name, it's probably fine to never include it in
18918 # preloaded symbol tables.
18919 extract_expsyms_cmds=
18922 cygwin* | mingw* | pw32*)
18923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18924 # When not using gcc, we currently assume that we are using
18925 # Microsoft Visual C++.
18926 if test "$GCC" != yes; then
18936 if test "$with_gnu_ld" = yes; then
18937 # If archive_cmds runs LD, not CC, wlarc should be empty
18940 # See if GNU ld supports shared libraries.
18942 aix3* | aix4* | aix5*)
18943 # On AIX/PPC, the GNU linker is very broken
18944 if test "$host_cpu" != ia64; then
18948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18949 *** to be unable to reliably create shared libraries on AIX.
18950 *** Therefore, libtool is disabling shared libraries support. If you
18951 *** really care for shared libraries, you may want to modify your PATH
18952 *** so that a non-GNU linker is found, and then restart.
18959 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)'
18960 hardcode_libdir_flag_spec_F77='-L$libdir'
18961 hardcode_minus_L_F77=yes
18963 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18964 # that the semantics of dynamic libraries on AmigaOS, at least up
18965 # to version 4, is to share data among multiple programs linked
18966 # with the same dynamic library. Since this doesn't match the
18967 # behavior of shared libraries on other platforms, we can't use
18973 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18974 allow_undefined_flag_F77=unsupported
18975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18976 # support --undefined. This deserves some investigation. FIXME
18977 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18983 cygwin* | mingw* | pw32*)
18984 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18985 # as there is no search path for DLLs.
18986 hardcode_libdir_flag_spec_F77='-L$libdir'
18987 allow_undefined_flag_F77=unsupported
18988 always_export_symbols_F77=no
18989 enable_shared_with_static_runtimes_F77=yes
18990 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18993 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18994 # If the export-symbols file already is a .def file (1st line
18995 # is EXPORTS), use it as is; otherwise, prepend...
18996 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18997 cp $export_symbols $output_objdir/$soname.def;
18999 echo EXPORTS > $output_objdir/$soname.def;
19000 cat $export_symbols >> $output_objdir/$soname.def;
19002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19010 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19014 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19019 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19023 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19024 *** create shared libraries on Solaris systems. Therefore, libtool
19025 *** is disabling shared libraries support. We urge you to upgrade GNU
19026 *** binutils to release 2.9.1 or newer. Another option is to modify
19027 *** your PATH or compiler configuration so that the native linker is
19028 *** used, and then restart.
19031 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19032 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19033 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19040 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19042 hardcode_direct_F77=yes
19043 hardcode_shlibpath_var_F77=no
19047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19048 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19049 archive_cmds_F77="$tmp_archive_cmds"
19050 supports_anon_versioning=no
19051 case `$LD -v 2>/dev/null` in
19052 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19055 *\ 2.11.*) ;; # other 2.11 versions
19056 *) supports_anon_versioning=yes ;;
19058 if test $supports_anon_versioning = yes; then
19059 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19061 $echo "local: *; };" >> $output_objdir/$libname.ver~
19062 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19064 archive_expsym_cmds_F77="$tmp_archive_cmds"
19072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19073 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19074 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19081 if test "$ld_shlibs_F77" = yes; then
19082 runpath_var=LD_RUN_PATH
19083 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19084 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19085 # ancient GNU ld didn't support --whole-archive et. al.
19086 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19087 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19089 whole_archive_flag_spec_F77=
19093 # PORTME fill in a description of your system's linker (not GNU ld)
19096 allow_undefined_flag_F77=unsupported
19097 always_export_symbols_F77=yes
19098 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'
19099 # Note: this linker hardcodes the directories in LIBPATH if there
19100 # are no directories specified by -L.
19101 hardcode_minus_L_F77=yes
19102 if test "$GCC" = yes && test -z "$link_static_flag"; then
19103 # Neither direct hardcoding nor static linking is supported with a
19105 hardcode_direct_F77=unsupported
19110 if test "$host_cpu" = ia64; then
19111 # On IA64, the linker does run time linking by default, so we don't
19112 # have to do anything special.
19113 aix_use_runtimelinking=no
19114 exp_sym_flag='-Bexport'
19117 # If we're using GNU nm, then we don't want the "-C" option.
19118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19120 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'
19122 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'
19124 aix_use_runtimelinking=no
19126 # Test if we are trying to use run time linking or normal
19127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19128 # need to do runtime linking.
19129 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19130 for ld_flag in $LDFLAGS; do
19131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19132 aix_use_runtimelinking=yes
19138 exp_sym_flag='-bexport'
19139 no_entry_flag='-bnoentry'
19142 # When large executables or shared objects are built, AIX ld can
19143 # have problems creating the table of contents. If linking a library
19144 # or program results in "error TOC overflow" add -mminimal-toc to
19145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19148 archive_cmds_F77=''
19149 hardcode_direct_F77=yes
19150 hardcode_libdir_separator_F77=':'
19151 link_all_deplibs_F77=yes
19153 if test "$GCC" = yes; then
19154 case $host_os in aix4.012|aix4.012.*)
19155 # We only want to do this on AIX 4.2 and lower, the check
19156 # below for broken collect2 doesn't work under 4.3+
19157 collect2name=`${CC} -print-prog-name=collect2`
19158 if test -f "$collect2name" && \
19159 strings "$collect2name" | grep resolve_lib_name >/dev/null
19161 # We have reworked collect2
19162 hardcode_direct_F77=yes
19164 # We have old collect2
19165 hardcode_direct_F77=unsupported
19166 # It fails to find uninstalled libraries when the uninstalled
19167 # path is not listed in the libpath. Setting hardcode_minus_L
19168 # to unsupported forces relinking
19169 hardcode_minus_L_F77=yes
19170 hardcode_libdir_flag_spec_F77='-L$libdir'
19171 hardcode_libdir_separator_F77=
19174 shared_flag='-shared'
19177 if test "$host_cpu" = ia64; then
19178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19179 # chokes on -Wl,-G. The following line is correct:
19182 if test "$aix_use_runtimelinking" = yes; then
19183 shared_flag='${wl}-G'
19185 shared_flag='${wl}-bM:SRE'
19190 # It seems that -bexpall does not export symbols beginning with
19191 # underscore (_), so it is better to generate a list of symbols to export.
19192 always_export_symbols_F77=yes
19193 if test "$aix_use_runtimelinking" = yes; then
19194 # Warning - without using the other runtime loading flags (-brtl),
19195 # -berok will link without error, but may produce a broken library.
19196 allow_undefined_flag_F77='-berok'
19197 # Determine the default libpath from the value encoded in an empty executable.
19198 cat >conftest.$ac_ext <<_ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205 (eval $ac_link) 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -z "$ac_f77_werror_flag"
19213 || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest$ac_exeext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19228 # Check for a 64-bit object if we didn't find anything.
19229 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; }
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19236 rm -f conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19240 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19241 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"
19243 if test "$host_cpu" = ia64; then
19244 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19245 allow_undefined_flag_F77="-z nodefs"
19246 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"
19248 # Determine the default libpath from the value encoded in an empty executable.
19249 cat >conftest.$ac_ext <<_ACEOF
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256 (eval $ac_link) 2>conftest.er1
19258 grep -v '^ *+' conftest.er1 >conftest.err
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_f77_werror_flag"
19264 || test ! -s conftest.err'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest$ac_exeext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19279 # Check for a 64-bit object if we didn't find anything.
19280 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; }
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19287 rm -f conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19291 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19292 # Warning - without using the other run time loading flags,
19293 # -berok will link without error, but may produce a broken library.
19294 no_undefined_flag_F77=' ${wl}-bernotok'
19295 allow_undefined_flag_F77=' ${wl}-berok'
19296 # -bexpall does not export symbols beginning with underscore (_)
19297 always_export_symbols_F77=yes
19298 # Exported symbols can be pulled into shared objects from archives
19299 whole_archive_flag_spec_F77=' '
19300 archive_cmds_need_lc_F77=yes
19301 # This is similar to how AIX traditionally builds it's shared libraries.
19302 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'
19308 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)'
19309 hardcode_libdir_flag_spec_F77='-L$libdir'
19310 hardcode_minus_L_F77=yes
19311 # see comment about different semantics on the GNU ld section
19316 export_dynamic_flag_spec_F77=-rdynamic
19319 cygwin* | mingw* | pw32*)
19320 # When not using gcc, we currently assume that we are using
19321 # Microsoft Visual C++.
19322 # hardcode_libdir_flag_spec is actually meaningless, as there is
19323 # no search path for DLLs.
19324 hardcode_libdir_flag_spec_F77=' '
19325 allow_undefined_flag_F77=unsupported
19326 # Tell ltmain to make .lib files, not .a files.
19328 # Tell ltmain to make .dll files, not .so files.
19330 # FIXME: Setting linknames here is a bad hack.
19331 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19332 # The linker will automatically build a .lib file if we build a DLL.
19333 old_archive_From_new_cmds_F77='true'
19334 # FIXME: Should let the user specify the lib program.
19335 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19336 fix_srcfile_path='`cygpath -w "$srcfile"`'
19337 enable_shared_with_static_runtimes_F77=yes
19340 darwin* | rhapsody*)
19342 rhapsody* | darwin1.[012])
19343 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19346 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19347 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19349 case ${MACOSX_DEPLOYMENT_TARGET} in
19351 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19354 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19360 archive_cmds_need_lc_F77=no
19361 hardcode_direct_F77=no
19362 hardcode_automatic_F77=yes
19363 hardcode_shlibpath_var_F77=unsupported
19364 whole_archive_flag_spec_F77=''
19365 link_all_deplibs_F77=yes
19366 if test "$GCC" = yes ; then
19367 output_verbose_link_cmd='echo'
19368 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19369 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19370 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19371 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}'
19372 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}'
19374 case "$cc_basename" in
19376 output_verbose_link_cmd='echo'
19377 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19378 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19379 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19380 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}'
19381 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}'
19391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19392 hardcode_libdir_flag_spec_F77='-L$libdir'
19393 hardcode_shlibpath_var_F77=no
19400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19401 # support. Future versions do this automatically, but an explicit c++rt0.o
19402 # does not break anything, and helps significantly (at the cost of a little
19405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19406 hardcode_libdir_flag_spec_F77='-R$libdir'
19407 hardcode_direct_F77=yes
19408 hardcode_shlibpath_var_F77=no
19411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19414 hardcode_direct_F77=yes
19415 hardcode_minus_L_F77=yes
19416 hardcode_shlibpath_var_F77=no
19419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19420 freebsd* | kfreebsd*-gnu)
19421 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19422 hardcode_libdir_flag_spec_F77='-R$libdir'
19423 hardcode_direct_F77=yes
19424 hardcode_shlibpath_var_F77=no
19428 if test "$GCC" = yes; then
19429 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'
19431 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'
19433 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19434 hardcode_libdir_separator_F77=:
19435 hardcode_direct_F77=yes
19437 # hardcode_minus_L: Not really in the search PATH,
19438 # but as the default location of the library.
19439 hardcode_minus_L_F77=yes
19440 export_dynamic_flag_spec_F77='${wl}-E'
19444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19445 case "$host_cpu" in
19447 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19450 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19454 case "$host_cpu" in
19456 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19459 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19463 if test "$with_gnu_ld" = no; then
19464 case "$host_cpu" in
19466 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19467 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19468 hardcode_libdir_separator_F77=:
19469 hardcode_direct_F77=no
19470 hardcode_shlibpath_var_F77=no
19473 hardcode_libdir_flag_spec_F77='-L$libdir'
19474 hardcode_direct_F77=no
19475 hardcode_shlibpath_var_F77=no
19477 # hardcode_minus_L: Not really in the search PATH,
19478 # but as the default location of the library.
19479 hardcode_minus_L_F77=yes
19482 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19483 hardcode_libdir_separator_F77=:
19484 hardcode_direct_F77=yes
19485 export_dynamic_flag_spec_F77='${wl}-E'
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
19495 irix5* | irix6* | nonstopux*)
19496 if test "$GCC" = yes; then
19497 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'
19499 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'
19500 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19502 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19503 hardcode_libdir_separator_F77=:
19504 link_all_deplibs_F77=yes
19508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19509 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19511 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19513 hardcode_libdir_flag_spec_F77='-R$libdir'
19514 hardcode_direct_F77=yes
19515 hardcode_shlibpath_var_F77=no
19519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19520 hardcode_direct_F77=yes
19521 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19522 hardcode_libdir_separator_F77=:
19523 hardcode_shlibpath_var_F77=no
19527 hardcode_direct_F77=yes
19528 hardcode_shlibpath_var_F77=no
19529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19530 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19531 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19532 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19533 export_dynamic_flag_spec_F77='${wl}-E'
19536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19538 hardcode_libdir_flag_spec_F77='-R$libdir'
19541 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19542 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19549 hardcode_libdir_flag_spec_F77='-L$libdir'
19550 hardcode_minus_L_F77=yes
19551 allow_undefined_flag_F77=unsupported
19552 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'
19553 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19557 if test "$GCC" = yes; then
19558 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19559 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'
19561 allow_undefined_flag_F77=' -expect_unresolved \*'
19562 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'
19564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19565 hardcode_libdir_separator_F77=:
19568 osf4* | osf5*) # as osf3* with the addition of -msym flag
19569 if test "$GCC" = yes; then
19570 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19571 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'
19572 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19574 allow_undefined_flag_F77=' -expect_unresolved \*'
19575 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'
19576 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~
19577 $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'
19579 # Both c and cxx compiler support -rpath directly
19580 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19582 hardcode_libdir_separator_F77=:
19586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19587 hardcode_shlibpath_var_F77=no
19588 export_dynamic_flag_spec_F77='${wl}-Bexport'
19589 runpath_var=LD_RUN_PATH
19590 hardcode_runpath_var=yes
19594 no_undefined_flag_F77=' -z text'
19595 if test "$GCC" = yes; then
19596 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19597 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19600 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19601 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19604 hardcode_libdir_flag_spec_F77='-R$libdir'
19605 hardcode_shlibpath_var_F77=no
19607 solaris2.[0-5] | solaris2.[0-5].*) ;;
19608 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19609 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19611 link_all_deplibs_F77=yes
19615 if test "x$host_vendor" = xsequent; then
19616 # Use $CC to link under sequent, because it throws in some extra .o
19617 # files that make .init and .fini sections work.
19618 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19620 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19622 hardcode_libdir_flag_spec_F77='-L$libdir'
19623 hardcode_direct_F77=yes
19624 hardcode_minus_L_F77=yes
19625 hardcode_shlibpath_var_F77=no
19629 case $host_vendor in
19631 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19632 hardcode_direct_F77=yes # is this really true???
19635 ## LD is ld it makes a PLAMLIB
19636 ## CC just makes a GrossModule.
19637 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19638 reload_cmds_F77='$CC -r -o $output$reload_objs'
19639 hardcode_direct_F77=no
19642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19643 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19646 runpath_var='LD_RUN_PATH'
19647 hardcode_shlibpath_var_F77=no
19651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 hardcode_shlibpath_var_F77=no
19653 export_dynamic_flag_spec_F77='-Bexport'
19657 if test -d /usr/nec; then
19658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19659 hardcode_shlibpath_var_F77=no
19660 runpath_var=LD_RUN_PATH
19661 hardcode_runpath_var=yes
19667 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19668 hardcode_direct_F77=yes
19669 hardcode_minus_L_F77=no
19670 hardcode_shlibpath_var_F77=no
19671 hardcode_runpath_var=yes
19672 runpath_var=LD_RUN_PATH
19675 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19676 no_undefined_flag_F77='${wl}-z ${wl}text'
19677 if test "$GCC" = yes; then
19678 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19680 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19682 runpath_var='LD_RUN_PATH'
19683 hardcode_shlibpath_var_F77=no
19687 no_undefined_flag_F77=' -z text'
19688 # $CC -shared without GNU ld will not create a library from C++
19689 # object files and a static libstdc++, better avoid it by now
19690 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19691 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19692 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19693 hardcode_libdir_flag_spec_F77=
19694 hardcode_shlibpath_var_F77=no
19695 runpath_var='LD_RUN_PATH'
19699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19700 hardcode_libdir_flag_spec_F77='-L$libdir'
19701 hardcode_shlibpath_var_F77=no
19710 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19711 echo "${ECHO_T}$ld_shlibs_F77" >&6
19712 test "$ld_shlibs_F77" = no && can_build_shared=no
19714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19715 if test "$GCC" = yes; then
19716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19720 # Do we need to explicitly link libc?
19722 case "x$archive_cmds_need_lc_F77" in
19724 # Assume -lc should be added
19725 archive_cmds_need_lc_F77=yes
19727 if test "$enable_shared" = yes && test "$GCC" = yes; then
19728 case $archive_cmds_F77 in
19730 # FIXME: we may have to deal with multi-command sequences.
19733 # Test whether the compiler implicitly links with -lc since on some
19734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19735 # to ld, don't add -lc before -lgcc.
19736 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742 (eval $ac_compile) 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } 2>conftest.err; then
19748 libobjs=conftest.$ac_objext
19750 wl=$lt_prog_compiler_wl_F77
19756 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19757 allow_undefined_flag_F77=
19758 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19759 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }
19764 archive_cmds_need_lc_F77=no
19766 archive_cmds_need_lc_F77=yes
19768 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19770 cat conftest.err 1>&5
19773 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19774 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19781 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19783 library_names_spec=
19784 libname_spec='lib$name'
19788 postuninstall_cmds=
19792 shlibpath_overrides_runpath=unknown
19794 dynamic_linker="$host_os ld.so"
19795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19796 if test "$GCC" = yes; then
19797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19799 # if the path contains ";" then we assume it to be the separator
19800 # otherwise default to the standard path separator (i.e. ":") - it is
19801 # assumed that no part of a normal pathname contains ";" but that should
19802 # okay in the real world where ";" in dirpaths is itself problematic.
19803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19810 need_lib_prefix=unknown
19811 hardcode_into_libs=no
19813 # when you set need_version to no, make sure it does not cause -set_version
19814 # flags to be left without arguments
19815 need_version=unknown
19820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19821 shlibpath_var=LIBPATH
19823 # AIX 3 has no versioning support, so we append a major version to the name.
19824 soname_spec='${libname}${release}${shared_ext}$major'
19831 hardcode_into_libs=yes
19832 if test "$host_cpu" = ia64; then
19833 # AIX 5 supports IA64
19834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19835 shlibpath_var=LD_LIBRARY_PATH
19837 # With GCC up to 2.95.x, collect2 would create an import file
19838 # for dependence libraries. The import file would start with
19839 # the line `#! .'. This would cause the generated library to
19840 # depend on `.', always an invalid library. This was fixed in
19841 # development snapshots of GCC prior to 3.0.
19843 aix4 | aix4.[01] | aix4.[01].*)
19844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19849 can_build_shared=no
19853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19854 # soname into executable. Probably we can add versioning support to
19855 # collect2, so additional links can be useful in future.
19856 if test "$aix_use_runtimelinking" = yes; then
19857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19858 # instead of lib<name>.a to let people know that these are not
19859 # typical AIX shared libraries.
19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19862 # We preserve .a as extension for shared libraries through AIX4.2
19863 # and later when we are not doing run time linking.
19864 library_names_spec='${libname}${release}.a $libname.a'
19865 soname_spec='${libname}${release}${shared_ext}$major'
19867 shlibpath_var=LIBPATH
19872 library_names_spec='$libname.ixlibrary $libname.a'
19873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19874 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'
19878 library_names_spec='${libname}${shared_ext}'
19879 dynamic_linker="$host_os ld.so"
19880 shlibpath_var=LIBRARY_PATH
19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19887 soname_spec='${libname}${release}${shared_ext}$major'
19888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19889 shlibpath_var=LD_LIBRARY_PATH
19890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19892 # the default ld.so.conf also contains /usr/contrib/lib and
19893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19894 # libtool to hard-code these into programs
19897 cygwin* | mingw* | pw32*)
19898 version_type=windows
19903 case $GCC,$host_os in
19904 yes,cygwin* | yes,mingw* | yes,pw32*)
19905 library_names_spec='$libname.dll.a'
19906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19907 postinstall_cmds='base_file=`basename \${file}`~
19908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19909 dldir=$destdir/`dirname \$dlpath`~
19910 test -d \$dldir || mkdir -p \$dldir~
19911 $install_prog $dir/$dlname \$dldir/$dlname'
19912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19913 dlpath=$dir/\$dldll~
19915 shlibpath_overrides_runpath=yes
19919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19924 # MinGW DLLs use traditional 'lib' prefix
19925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19928 # It is most probably a Windows format PATH printed by
19929 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19930 # path with ; separators, and with drive letters. We can handle the
19931 # drive letters (cygwin fileutils understands them), so leave them,
19932 # especially as we might pass files found there to a mingw objdump,
19933 # which wouldn't understand a cygwinified path. Ahh.
19934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19940 # pw32 DLLs use 'pw' prefix rather than 'lib'
19941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19950 dynamic_linker='Win32 ld.exe'
19951 # FIXME: first we should search . and the directory the executable is in
19955 darwin* | rhapsody*)
19956 dynamic_linker="$host_os dyld"
19957 version_type=darwin
19960 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19961 soname_spec='${libname}${release}${major}$shared_ext'
19962 shlibpath_overrides_runpath=yes
19963 shlibpath_var=DYLD_LIBRARY_PATH
19964 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19965 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19966 if test "$GCC" = yes; then
19967 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"`
19969 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19979 soname_spec='${libname}${release}${shared_ext}$major'
19980 shlibpath_var=LD_LIBRARY_PATH
19991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19992 soname_spec='${libname}${release}${shared_ext}$major'
19993 shlibpath_var=LD_LIBRARY_PATH
19994 shlibpath_overrides_runpath=no
19995 hardcode_into_libs=yes
19996 dynamic_linker='GNU ld.so'
20000 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20001 version_type=freebsd-$objformat
20002 case $version_type in
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20013 shlibpath_var=LD_LIBRARY_PATH
20016 shlibpath_overrides_runpath=yes
20018 freebsd3.01* | freebsdelf3.01*)
20019 shlibpath_overrides_runpath=yes
20020 hardcode_into_libs=yes
20023 shlibpath_overrides_runpath=no
20024 hardcode_into_libs=yes
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 shlibpath_var=LD_LIBRARY_PATH
20036 hardcode_into_libs=yes
20039 hpux9* | hpux10* | hpux11*)
20040 # Give a soname corresponding to the major version so that dld.sl refuses to
20041 # link against other versions.
20045 case "$host_cpu" in
20048 hardcode_into_libs=yes
20049 dynamic_linker="$host_os dld.so"
20050 shlibpath_var=LD_LIBRARY_PATH
20051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 if test "X$HPUX_IA64_MODE" = X32; then
20055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20063 hardcode_into_libs=yes
20064 dynamic_linker="$host_os dld.sl"
20065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20074 dynamic_linker="$host_os dld.sl"
20075 shlibpath_var=SHLIB_PATH
20076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
20081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20082 postinstall_cmds='chmod 555 $lib'
20085 irix5* | irix6* | nonstopux*)
20087 nonstopux*) version_type=nonstopux ;;
20089 if test "$lt_cv_prog_gnu_ld" = yes; then
20097 soname_spec='${libname}${release}${shared_ext}$major'
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20100 irix5* | nonstopux*)
20101 libsuff= shlibsuff=
20104 case $LD in # libtool.m4 will add one of these switches to LD
20105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20106 libsuff= shlibsuff= libmagic=32-bit;;
20107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20108 libsuff=32 shlibsuff=N32 libmagic=N32;;
20109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20111 *) libsuff= shlibsuff= libmagic=never-match;;
20115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20116 shlibpath_overrides_runpath=no
20117 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20118 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20119 hardcode_into_libs=yes
20122 # No shared lib support for Linux oldld, aout, or coff.
20123 linux*oldld* | linux*aout* | linux*coff*)
20127 # This must be Linux ELF.
20132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133 soname_spec='${libname}${release}${shared_ext}$major'
20134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20135 shlibpath_var=LD_LIBRARY_PATH
20136 shlibpath_overrides_runpath=no
20137 # This implies no fast_install, which is unacceptable.
20138 # Some rework will be needed to allow for fast_install
20139 # before this can be enabled.
20140 hardcode_into_libs=yes
20142 # Append ld.so.conf contents to the search path
20143 if test -f /etc/ld.so.conf; then
20144 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20145 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20148 # We used to test for /lib/ld.so.1 and disable shared libraries on
20149 # powerpc, because MkLinux only supported shared libraries with the
20150 # GNU dynamic linker. Since this was broken with cross compilers,
20151 # most powerpc-linux boxes support dynamic linking these days and
20152 # people can always --disable-shared, the test was removed, and we
20153 # assume the GNU/Linux dynamic linker is in use.
20154 dynamic_linker='GNU/Linux ld.so'
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=no
20165 hardcode_into_libs=yes
20166 dynamic_linker='GNU ld.so'
20173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20176 dynamic_linker='NetBSD (a.out) ld.so'
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 dynamic_linker='NetBSD ld.elf_so'
20182 shlibpath_var=LD_LIBRARY_PATH
20183 shlibpath_overrides_runpath=yes
20184 hardcode_into_libs=yes
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 shlibpath_var=LD_LIBRARY_PATH
20191 shlibpath_overrides_runpath=yes
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 shlibpath_overrides_runpath=yes
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20210 shlibpath_var=LD_LIBRARY_PATH
20211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20213 openbsd2.[89] | openbsd2.[89].*)
20214 shlibpath_overrides_runpath=no
20217 shlibpath_overrides_runpath=yes
20221 shlibpath_overrides_runpath=yes
20226 libname_spec='$name'
20229 library_names_spec='$libname${shared_ext} $libname.a'
20230 dynamic_linker='OS/2 ld.exe'
20231 shlibpath_var=LIBPATH
20234 osf3* | osf4* | osf5*)
20238 soname_spec='${libname}${release}${shared_ext}$major'
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 shlibpath_var=LD_LIBRARY_PATH
20241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 shlibpath_var=LD_LIBRARY_PATH
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath=yes
20260 hardcode_into_libs=yes
20261 # ldd complains unless libraries are executable
20262 postinstall_cmds='chmod +x $lib'
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=yes
20271 if test "$with_gnu_ld" = yes; then
20277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 shlibpath_var=LD_LIBRARY_PATH
20282 case $host_vendor in
20284 shlibpath_overrides_runpath=no
20286 export_dynamic_flag_spec='${wl}-Blargedynsym'
20287 runpath_var=LD_RUN_PATH
20295 shlibpath_overrides_runpath=no
20296 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20302 if test -d /usr/nec ;then
20304 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20305 soname_spec='$libname${shared_ext}.$major'
20306 shlibpath_var=LD_LIBRARY_PATH
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20322 echo "${ECHO_T}$dynamic_linker" >&6
20323 test "$dynamic_linker" = no && can_build_shared=no
20325 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20327 hardcode_action_F77=
20328 if test -n "$hardcode_libdir_flag_spec_F77" || \
20329 test -n "$runpath_var_F77" || \
20330 test "X$hardcode_automatic_F77" = "Xyes" ; then
20332 # We can hardcode non-existant directories.
20333 if test "$hardcode_direct_F77" != no &&
20334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20335 # have to relink, otherwise we might link with an installed library
20336 # when we should be linking with a yet-to-be-installed one
20337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20338 test "$hardcode_minus_L_F77" != no; then
20339 # Linking always hardcodes the temporary library directory.
20340 hardcode_action_F77=relink
20342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20343 hardcode_action_F77=immediate
20346 # We cannot hardcode anything, or else we can only hardcode existing
20348 hardcode_action_F77=unsupported
20350 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20351 echo "${ECHO_T}$hardcode_action_F77" >&6
20353 if test "$hardcode_action_F77" = relink; then
20354 # Fast installation is not supported
20355 enable_fast_install=no
20356 elif test "$shlibpath_overrides_runpath" = yes ||
20357 test "$enable_shared" = no; then
20358 # Fast installation is not necessary
20359 enable_fast_install=needless
20364 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20369 echo "$as_me:$LINENO: result: yes" >&5
20370 echo "${ECHO_T}yes" >&6
20372 # FIXME - insert some real tests, host_os isn't really good enough
20375 if test -n "$STRIP" ; then
20376 striplib="$STRIP -x"
20377 echo "$as_me:$LINENO: result: yes" >&5
20378 echo "${ECHO_T}yes" >&6
20380 echo "$as_me:$LINENO: result: no" >&5
20381 echo "${ECHO_T}no" >&6
20385 echo "$as_me:$LINENO: result: no" >&5
20386 echo "${ECHO_T}no" >&6
20393 # The else clause should only fire when bootstrapping the
20394 # libtool distribution, otherwise you forgot to ship ltmain.sh
20395 # with your package, and you will get complaints that there are
20396 # no rules to generate ltmain.sh.
20397 if test -f "$ltmain"; then
20398 # See if we are running on zsh, and set the options which allow our commands through
20399 # without removal of \ escapes.
20400 if test -n "${ZSH_VERSION+set}" ; then
20401 setopt NO_GLOB_SUBST
20403 # Now quote all the things that may contain metacharacters while being
20404 # careful not to overquote the AC_SUBSTed values. We take copies of the
20405 # variables and quote the copies for generation of the libtool script.
20406 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20408 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20409 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20410 deplibs_check_method reload_flag reload_cmds need_locks \
20411 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20412 lt_cv_sys_global_symbol_to_c_name_address \
20413 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20414 old_postinstall_cmds old_postuninstall_cmds \
20418 lt_prog_compiler_wl_F77 \
20419 lt_prog_compiler_pic_F77 \
20420 lt_prog_compiler_static_F77 \
20421 lt_prog_compiler_no_builtin_flag_F77 \
20422 export_dynamic_flag_spec_F77 \
20423 thread_safe_flag_spec_F77 \
20424 whole_archive_flag_spec_F77 \
20425 enable_shared_with_static_runtimes_F77 \
20426 old_archive_cmds_F77 \
20427 old_archive_from_new_cmds_F77 \
20428 predep_objects_F77 \
20429 postdep_objects_F77 \
20432 compiler_lib_search_path_F77 \
20434 archive_expsym_cmds_F77 \
20435 postinstall_cmds_F77 \
20436 postuninstall_cmds_F77 \
20437 old_archive_from_expsyms_cmds_F77 \
20438 allow_undefined_flag_F77 \
20439 no_undefined_flag_F77 \
20440 export_symbols_cmds_F77 \
20441 hardcode_libdir_flag_spec_F77 \
20442 hardcode_libdir_flag_spec_ld_F77 \
20443 hardcode_libdir_separator_F77 \
20444 hardcode_automatic_F77 \
20446 module_expsym_cmds_F77 \
20447 lt_cv_prog_compiler_c_o_F77 \
20448 exclude_expsyms_F77 \
20449 include_expsyms_F77; do
20452 old_archive_cmds_F77 | \
20453 old_archive_from_new_cmds_F77 | \
20454 archive_cmds_F77 | \
20455 archive_expsym_cmds_F77 | \
20456 module_cmds_F77 | \
20457 module_expsym_cmds_F77 | \
20458 old_archive_from_expsyms_cmds_F77 | \
20459 export_symbols_cmds_F77 | \
20460 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20461 postinstall_cmds | postuninstall_cmds | \
20462 old_postinstall_cmds | old_postuninstall_cmds | \
20463 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20464 # Double-quote double-evaled strings.
20465 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20474 *'\$0 --fallback-echo"')
20475 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20481 cat <<__EOF__ >> "$cfgfile"
20482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20486 # Shell to use when invoking shell scripts.
20489 # Whether or not to build shared libraries.
20490 build_libtool_libs=$enable_shared
20492 # Whether or not to build static libraries.
20493 build_old_libs=$enable_static
20495 # Whether or not to add -lc for building shared libraries.
20496 build_libtool_need_lc=$archive_cmds_need_lc_F77
20498 # Whether or not to disallow shared libs when runtime libs are static
20499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20501 # Whether or not to optimize for fast installation.
20502 fast_install=$enable_fast_install
20505 host_alias=$host_alias
20508 # An echo program that does not interpret backslashes.
20513 AR_FLAGS=$lt_AR_FLAGS
20518 # A language-specific compiler.
20519 CC=$lt_compiler_F77
20521 # Is the compiler the GNU C compiler?
20527 # The linker used to build libraries.
20530 # Whether we need hard or soft links.
20533 # A BSD-compatible nm program.
20536 # A symbol stripping program
20539 # Used to examine libraries when file_magic_cmd begins "file"
20540 MAGIC_CMD=$MAGIC_CMD
20542 # Used on cygwin: DLL creation program.
20545 # Used on cygwin: object dumper.
20548 # Used on cygwin: assembler.
20551 # The name of the directory that contains temporary libtool files.
20554 # How to create reloadable object files.
20555 reload_flag=$lt_reload_flag
20556 reload_cmds=$lt_reload_cmds
20558 # How to pass a linker flag through the compiler.
20559 wl=$lt_lt_prog_compiler_wl_F77
20561 # Object file suffix (normally "o").
20562 objext="$ac_objext"
20564 # Old archive suffix (normally "a").
20567 # Shared library suffix (normally ".so").
20568 shrext_cmds='$shrext_cmds'
20570 # Executable file suffix (normally "").
20573 # Additional compiler flags for building library objects.
20574 pic_flag=$lt_lt_prog_compiler_pic_F77
20577 # What is the maximum length of a command?
20578 max_cmd_len=$lt_cv_sys_max_cmd_len
20580 # Does compiler simultaneously support -c and -o options?
20581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20583 # Must we lock files when doing compilation ?
20584 need_locks=$lt_need_locks
20586 # Do we need the lib prefix for modules?
20587 need_lib_prefix=$need_lib_prefix
20589 # Do we need a version for libraries?
20590 need_version=$need_version
20592 # Whether dlopen is supported.
20593 dlopen_support=$enable_dlopen
20595 # Whether dlopen of programs is supported.
20596 dlopen_self=$enable_dlopen_self
20598 # Whether dlopen of statically linked programs is supported.
20599 dlopen_self_static=$enable_dlopen_self_static
20601 # Compiler flag to prevent dynamic linking.
20602 link_static_flag=$lt_lt_prog_compiler_static_F77
20604 # Compiler flag to turn off builtin functions.
20605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20607 # Compiler flag to allow reflexive dlopens.
20608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20610 # Compiler flag to generate shared objects directly from archives.
20611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20613 # Compiler flag to generate thread-safe objects.
20614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20616 # Library versioning type.
20617 version_type=$version_type
20619 # Format of library name prefix.
20620 libname_spec=$lt_libname_spec
20622 # List of archive names. First name is the real one, the rest are links.
20623 # The last name is the one that the linker finds with -lNAME.
20624 library_names_spec=$lt_library_names_spec
20626 # The coded name of the library, if different from the real name.
20627 soname_spec=$lt_soname_spec
20629 # Commands used to build and install an old-style archive.
20631 old_archive_cmds=$lt_old_archive_cmds_F77
20632 old_postinstall_cmds=$lt_old_postinstall_cmds
20633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20635 # Create an old-style archive from a shared archive.
20636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20638 # Create a temporary old-style archive to link instead of a shared archive.
20639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20641 # Commands used to build and install a shared archive.
20642 archive_cmds=$lt_archive_cmds_F77
20643 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20644 postinstall_cmds=$lt_postinstall_cmds
20645 postuninstall_cmds=$lt_postuninstall_cmds
20647 # Commands used to build a loadable module (assumed same as above if empty)
20648 module_cmds=$lt_module_cmds_F77
20649 module_expsym_cmds=$lt_module_expsym_cmds_F77
20651 # Commands to strip libraries.
20652 old_striplib=$lt_old_striplib
20653 striplib=$lt_striplib
20655 # Dependencies to place before the objects being linked to create a
20657 predep_objects=$lt_predep_objects_F77
20659 # Dependencies to place after the objects being linked to create a
20661 postdep_objects=$lt_postdep_objects_F77
20663 # Dependencies to place before the objects being linked to create a
20665 predeps=$lt_predeps_F77
20667 # Dependencies to place after the objects being linked to create a
20669 postdeps=$lt_postdeps_F77
20671 # The library search path used internally by the compiler when linking
20672 # a shared library.
20673 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20675 # Method to check whether dependent libraries are shared objects.
20676 deplibs_check_method=$lt_deplibs_check_method
20678 # Command to use when deplibs_check_method == file_magic.
20679 file_magic_cmd=$lt_file_magic_cmd
20681 # Flag that allows shared libraries with undefined symbols to be built.
20682 allow_undefined_flag=$lt_allow_undefined_flag_F77
20684 # Flag that forces no undefined symbols.
20685 no_undefined_flag=$lt_no_undefined_flag_F77
20687 # Commands used to finish a libtool library installation in a directory.
20688 finish_cmds=$lt_finish_cmds
20690 # Same as above, but a single script fragment to be evaled but not shown.
20691 finish_eval=$lt_finish_eval
20693 # Take the output of nm and produce a listing of raw symbols and C names.
20694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20696 # Transform the output of nm in a proper C declaration
20697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20699 # Transform the output of nm in a C name address pair
20700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20702 # This is the shared library runtime path variable.
20703 runpath_var=$runpath_var
20705 # This is the shared library path variable.
20706 shlibpath_var=$shlibpath_var
20708 # Is shlibpath searched before the hard-coded library search path?
20709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20711 # How to hardcode a shared library path into an executable.
20712 hardcode_action=$hardcode_action_F77
20714 # Whether we should hardcode library paths into libraries.
20715 hardcode_into_libs=$hardcode_into_libs
20717 # Flag to hardcode \$libdir into a binary during linking.
20718 # This must work even if \$libdir does not exist.
20719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20721 # If ld is used when linking, flag to hardcode \$libdir into
20722 # a binary during linking. This must work even if \$libdir does
20724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20726 # Whether we need a single -rpath flag with a separated argument.
20727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20730 # resulting binary.
20731 hardcode_direct=$hardcode_direct_F77
20733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20734 # resulting binary.
20735 hardcode_minus_L=$hardcode_minus_L_F77
20737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20738 # the resulting binary.
20739 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20741 # Set to yes if building a shared library automatically hardcodes DIR into the library
20742 # and all subsequent libraries and executables linked against it.
20743 hardcode_automatic=$hardcode_automatic_F77
20745 # Variables whose values should be saved in libtool wrapper scripts and
20746 # restored at relink time.
20747 variables_saved_for_relink="$variables_saved_for_relink"
20749 # Whether libtool must link a program against all its dependency libraries.
20750 link_all_deplibs=$link_all_deplibs_F77
20752 # Compile-time system search path for libraries
20753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20755 # Run-time system search path for libraries
20756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20758 # Fix the shell variable \$srcfile for the compiler.
20759 fix_srcfile_path="$fix_srcfile_path_F77"
20761 # Set to yes if exported symbols are required.
20762 always_export_symbols=$always_export_symbols_F77
20764 # The commands to list exported symbols.
20765 export_symbols_cmds=$lt_export_symbols_cmds_F77
20767 # The commands to extract the exported symbol list from a shared archive.
20768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20770 # Symbols that should not be listed in the preloaded symbols.
20771 exclude_expsyms=$lt_exclude_expsyms_F77
20773 # Symbols that must always be exported.
20774 include_expsyms=$lt_include_expsyms_F77
20776 # ### END LIBTOOL TAG CONFIG: $tagname
20782 # If there is no Makefile yet, we rely on a make rule to execute
20783 # `config.status --recheck' to rerun these tests and create the
20784 # libtool script then.
20785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20786 if test -f "$ltmain_in"; then
20787 test -f Makefile && make "$ltmain"
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20808 ac_cpp='$CPP $CPPFLAGS'
20809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20814 # Source file extension for Java test sources.
20817 # Object file extension for compiled Java test sources.
20821 # Code to be used in simple compile tests
20822 lt_simple_compile_test_code="class foo {}\n"
20824 # Code to be used in simple link tests
20825 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20829 # If no C compiler was specified, use CC.
20832 # Allow CC to be a program name with arguments.
20836 # Allow CC to be a program name with arguments.
20842 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20843 archive_cmds_need_lc_GCJ=no
20846 lt_prog_compiler_no_builtin_flag_GCJ=
20848 if test "$GCC" = yes; then
20849 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20852 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20853 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20854 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 lt_cv_prog_compiler_rtti_exceptions=no
20858 ac_outfile=conftest.$ac_objext
20859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20860 lt_compiler_flag="-fno-rtti -fno-exceptions"
20861 # Insert the option either (1) after the last *FLAGS variable, or
20862 # (2) before a word containing "conftest.", or (3) at the end.
20863 # Note that $ac_compile itself does not contain backslashes and begins
20864 # with a dollar sign (not a hyphen), so the echo should work correctly.
20865 # The option is referenced via a variable to avoid confusing sed.
20866 lt_compile=`echo "$ac_compile" | $SED \
20867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20869 -e 's:$: $lt_compiler_flag:'`
20870 (eval echo "\"\$as_me:20870: $lt_compile\"" >&5)
20871 (eval "$lt_compile" 2>conftest.err)
20873 cat conftest.err >&5
20874 echo "$as_me:20874: \$? = $ac_status" >&5
20875 if (exit $ac_status) && test -s "$ac_outfile"; then
20876 # The compiler can only warn and ignore the option if not recognized
20877 # So say no if there are warnings
20878 if test ! -s conftest.err; then
20879 lt_cv_prog_compiler_rtti_exceptions=yes
20885 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20886 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20888 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20889 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20896 lt_prog_compiler_wl_GCJ=
20897 lt_prog_compiler_pic_GCJ=
20898 lt_prog_compiler_static_GCJ=
20900 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20901 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20903 if test "$GCC" = yes; then
20904 lt_prog_compiler_wl_GCJ='-Wl,'
20905 lt_prog_compiler_static_GCJ='-static'
20909 # All AIX code is PIC.
20910 if test "$host_cpu" = ia64; then
20911 # AIX 5 now supports IA64 processor
20912 lt_prog_compiler_static_GCJ='-Bstatic'
20917 # FIXME: we need at least 68020 code to build shared libraries, but
20918 # adding the `-m68020' flag to GCC prevents building anything better,
20920 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20923 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20924 # PIC is the default for these OSes.
20927 mingw* | pw32* | os2*)
20928 # This hack is so that the source file can tell whether it is being
20929 # built for inclusion in a dll (and should export symbols for example).
20930 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20933 darwin* | rhapsody*)
20934 # PIC is the default on this platform
20935 # Common symbols not allowed in MH_DYLIB files
20936 lt_prog_compiler_pic_GCJ='-fno-common'
20940 # Just because we use GCC doesn't mean we suddenly get shared libraries
20941 # on systems that don't support them.
20942 lt_prog_compiler_can_build_shared_GCJ=no
20947 if test -d /usr/nec; then
20948 lt_prog_compiler_pic_GCJ=-Kconform_pic
20953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20954 # not for PA HP-UX.
20955 case "$host_cpu" in
20960 lt_prog_compiler_pic_GCJ='-fPIC'
20966 lt_prog_compiler_pic_GCJ='-fPIC'
20970 # PORTME Check for flag to pass linker flags through the system compiler.
20973 lt_prog_compiler_wl_GCJ='-Wl,'
20974 if test "$host_cpu" = ia64; then
20975 # AIX 5 now supports IA64 processor
20976 lt_prog_compiler_static_GCJ='-Bstatic'
20978 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20982 # PIC is the default on this platform
20983 # Common symbols not allowed in MH_DYLIB files
20984 case "$cc_basename" in
20986 lt_prog_compiler_pic_GCJ='-qnocommon'
20987 lt_prog_compiler_wl_GCJ='-Wl,'
20992 mingw* | pw32* | os2*)
20993 # This hack is so that the source file can tell whether it is being
20994 # built for inclusion in a dll (and should export symbols for example).
20995 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20998 hpux9* | hpux10* | hpux11*)
20999 lt_prog_compiler_wl_GCJ='-Wl,'
21000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21001 # not for PA HP-UX.
21002 case "$host_cpu" in
21007 lt_prog_compiler_pic_GCJ='+Z'
21010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21011 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21014 irix5* | irix6* | nonstopux*)
21015 lt_prog_compiler_wl_GCJ='-Wl,'
21016 # PIC (with -KPIC) is the default.
21017 lt_prog_compiler_static_GCJ='-non_shared'
21021 lt_prog_compiler_pic_GCJ='-KPIC'
21022 lt_prog_compiler_static_GCJ='-Bstatic'
21028 lt_prog_compiler_wl_GCJ='-Wl,'
21029 lt_prog_compiler_pic_GCJ='-KPIC'
21030 lt_prog_compiler_static_GCJ='-static'
21033 lt_prog_compiler_wl_GCJ='-Wl,'
21034 # All Alpha code is PIC.
21035 lt_prog_compiler_static_GCJ='-non_shared'
21040 osf3* | osf4* | osf5*)
21041 lt_prog_compiler_wl_GCJ='-Wl,'
21042 # All OSF/1 code is PIC.
21043 lt_prog_compiler_static_GCJ='-non_shared'
21047 lt_prog_compiler_pic_GCJ='-Kpic'
21048 lt_prog_compiler_static_GCJ='-dn'
21052 lt_prog_compiler_wl_GCJ='-Wl,'
21053 lt_prog_compiler_pic_GCJ='-KPIC'
21054 lt_prog_compiler_static_GCJ='-Bstatic'
21058 lt_prog_compiler_wl_GCJ='-Qoption ld '
21059 lt_prog_compiler_pic_GCJ='-PIC'
21060 lt_prog_compiler_static_GCJ='-Bstatic'
21063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21064 lt_prog_compiler_wl_GCJ='-Wl,'
21065 lt_prog_compiler_pic_GCJ='-KPIC'
21066 lt_prog_compiler_static_GCJ='-Bstatic'
21070 if test -d /usr/nec ;then
21071 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21072 lt_prog_compiler_static_GCJ='-Bstatic'
21077 lt_prog_compiler_pic_GCJ='-pic'
21078 lt_prog_compiler_static_GCJ='-Bstatic'
21082 lt_prog_compiler_can_build_shared_GCJ=no
21087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21088 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21091 # Check to make sure the PIC flag actually works.
21093 if test -n "$lt_prog_compiler_pic_GCJ"; then
21095 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21096 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21097 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 lt_prog_compiler_pic_works_GCJ=no
21101 ac_outfile=conftest.$ac_objext
21102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21103 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21104 # Insert the option either (1) after the last *FLAGS variable, or
21105 # (2) before a word containing "conftest.", or (3) at the end.
21106 # Note that $ac_compile itself does not contain backslashes and begins
21107 # with a dollar sign (not a hyphen), so the echo should work correctly.
21108 # The option is referenced via a variable to avoid confusing sed.
21109 lt_compile=`echo "$ac_compile" | $SED \
21110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21112 -e 's:$: $lt_compiler_flag:'`
21113 (eval echo "\"\$as_me:21113: $lt_compile\"" >&5)
21114 (eval "$lt_compile" 2>conftest.err)
21116 cat conftest.err >&5
21117 echo "$as_me:21117: \$? = $ac_status" >&5
21118 if (exit $ac_status) && test -s "$ac_outfile"; then
21119 # The compiler can only warn and ignore the option if not recognized
21120 # So say no if there are warnings
21121 if test ! -s conftest.err; then
21122 lt_prog_compiler_pic_works_GCJ=yes
21128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21129 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21131 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21132 case $lt_prog_compiler_pic_GCJ in
21134 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21137 lt_prog_compiler_pic_GCJ=
21138 lt_prog_compiler_can_build_shared_GCJ=no
21143 # For platforms which do not support PIC, -DPIC is meaningless:
21145 lt_prog_compiler_pic_GCJ=
21148 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21152 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 lt_cv_prog_compiler_c_o_GCJ=no
21158 $rm -r conftest 2>/dev/null
21162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21164 lt_compiler_flag="-o out/conftest2.$ac_objext"
21165 # Insert the option either (1) after the last *FLAGS variable, or
21166 # (2) before a word containing "conftest.", or (3) at the end.
21167 # Note that $ac_compile itself does not contain backslashes and begins
21168 # with a dollar sign (not a hyphen), so the echo should work correctly.
21169 lt_compile=`echo "$ac_compile" | $SED \
21170 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21172 -e 's:$: $lt_compiler_flag:'`
21173 (eval echo "\"\$as_me:21173: $lt_compile\"" >&5)
21174 (eval "$lt_compile" 2>out/conftest.err)
21176 cat out/conftest.err >&5
21177 echo "$as_me:21177: \$? = $ac_status" >&5
21178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21180 # The compiler can only warn and ignore the option if not recognized
21181 # So say no if there are warnings
21182 if test ! -s out/conftest.err; then
21183 lt_cv_prog_compiler_c_o_GCJ=yes
21188 # SGI C++ compiler will create directory out/ii_files/ for
21189 # template instantiation
21190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21191 $rm out/* && rmdir out
21197 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21201 hard_links="nottested"
21202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21203 # do not overwrite the value of need_locks provided by the user
21204 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21210 ln conftest.a conftest.b 2>&5 || hard_links=no
21211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21212 echo "$as_me:$LINENO: result: $hard_links" >&5
21213 echo "${ECHO_T}$hard_links" >&6
21214 if test "$hard_links" = no; then
21215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21223 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21227 allow_undefined_flag_GCJ=
21228 enable_shared_with_static_runtimes_GCJ=no
21230 archive_expsym_cmds_GCJ=
21231 old_archive_From_new_cmds_GCJ=
21232 old_archive_from_expsyms_cmds_GCJ=
21233 export_dynamic_flag_spec_GCJ=
21234 whole_archive_flag_spec_GCJ=
21235 thread_safe_flag_spec_GCJ=
21236 hardcode_libdir_flag_spec_GCJ=
21237 hardcode_libdir_flag_spec_ld_GCJ=
21238 hardcode_libdir_separator_GCJ=
21239 hardcode_direct_GCJ=no
21240 hardcode_minus_L_GCJ=no
21241 hardcode_shlibpath_var_GCJ=unsupported
21242 link_all_deplibs_GCJ=unknown
21243 hardcode_automatic_GCJ=no
21245 module_expsym_cmds_GCJ=
21246 always_export_symbols_GCJ=no
21247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21248 # include_expsyms should be a list of space-separated symbols to be *always*
21249 # included in the symbol list
21250 include_expsyms_GCJ=
21251 # exclude_expsyms can be an extended regexp of symbols to exclude
21252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21254 # as well as any symbol that contains `d'.
21255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21257 # platforms (ab)use it in PIC code, but their linkers get confused if
21258 # the symbol is explicitly referenced. Since portable code cannot
21259 # rely on this symbol name, it's probably fine to never include it in
21260 # preloaded symbol tables.
21261 extract_expsyms_cmds=
21264 cygwin* | mingw* | pw32*)
21265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21266 # When not using gcc, we currently assume that we are using
21267 # Microsoft Visual C++.
21268 if test "$GCC" != yes; then
21278 if test "$with_gnu_ld" = yes; then
21279 # If archive_cmds runs LD, not CC, wlarc should be empty
21282 # See if GNU ld supports shared libraries.
21284 aix3* | aix4* | aix5*)
21285 # On AIX/PPC, the GNU linker is very broken
21286 if test "$host_cpu" != ia64; then
21290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21291 *** to be unable to reliably create shared libraries on AIX.
21292 *** Therefore, libtool is disabling shared libraries support. If you
21293 *** really care for shared libraries, you may want to modify your PATH
21294 *** so that a non-GNU linker is found, and then restart.
21301 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)'
21302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21303 hardcode_minus_L_GCJ=yes
21305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21306 # that the semantics of dynamic libraries on AmigaOS, at least up
21307 # to version 4, is to share data among multiple programs linked
21308 # with the same dynamic library. Since this doesn't match the
21309 # behavior of shared libraries on other platforms, we can't use
21315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21316 allow_undefined_flag_GCJ=unsupported
21317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21318 # support --undefined. This deserves some investigation. FIXME
21319 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21325 cygwin* | mingw* | pw32*)
21326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21327 # as there is no search path for DLLs.
21328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21329 allow_undefined_flag_GCJ=unsupported
21330 always_export_symbols_GCJ=no
21331 enable_shared_with_static_runtimes_GCJ=yes
21332 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21336 # If the export-symbols file already is a .def file (1st line
21337 # is EXPORTS), use it as is; otherwise, prepend...
21338 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21339 cp $export_symbols $output_objdir/$soname.def;
21341 echo EXPORTS > $output_objdir/$soname.def;
21342 cat $export_symbols >> $output_objdir/$soname.def;
21344 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21352 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21355 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21356 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21361 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21366 *** create shared libraries on Solaris systems. Therefore, libtool
21367 *** is disabling shared libraries support. We urge you to upgrade GNU
21368 *** binutils to release 2.9.1 or newer. Another option is to modify
21369 *** your PATH or compiler configuration so that the native linker is
21370 *** used, and then restart.
21373 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21374 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21375 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21382 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21384 hardcode_direct_GCJ=yes
21385 hardcode_shlibpath_var_GCJ=no
21389 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21390 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21391 archive_cmds_GCJ="$tmp_archive_cmds"
21392 supports_anon_versioning=no
21393 case `$LD -v 2>/dev/null` in
21394 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21395 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21396 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21397 *\ 2.11.*) ;; # other 2.11 versions
21398 *) supports_anon_versioning=yes ;;
21400 if test $supports_anon_versioning = yes; then
21401 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21403 $echo "local: *; };" >> $output_objdir/$libname.ver~
21404 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21406 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21415 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21416 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21423 if test "$ld_shlibs_GCJ" = yes; then
21424 runpath_var=LD_RUN_PATH
21425 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21426 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21427 # ancient GNU ld didn't support --whole-archive et. al.
21428 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21429 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21431 whole_archive_flag_spec_GCJ=
21435 # PORTME fill in a description of your system's linker (not GNU ld)
21438 allow_undefined_flag_GCJ=unsupported
21439 always_export_symbols_GCJ=yes
21440 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'
21441 # Note: this linker hardcodes the directories in LIBPATH if there
21442 # are no directories specified by -L.
21443 hardcode_minus_L_GCJ=yes
21444 if test "$GCC" = yes && test -z "$link_static_flag"; then
21445 # Neither direct hardcoding nor static linking is supported with a
21447 hardcode_direct_GCJ=unsupported
21452 if test "$host_cpu" = ia64; then
21453 # On IA64, the linker does run time linking by default, so we don't
21454 # have to do anything special.
21455 aix_use_runtimelinking=no
21456 exp_sym_flag='-Bexport'
21459 # If we're using GNU nm, then we don't want the "-C" option.
21460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21461 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21462 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'
21464 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'
21466 aix_use_runtimelinking=no
21468 # Test if we are trying to use run time linking or normal
21469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21470 # need to do runtime linking.
21471 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21472 for ld_flag in $LDFLAGS; do
21473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21474 aix_use_runtimelinking=yes
21480 exp_sym_flag='-bexport'
21481 no_entry_flag='-bnoentry'
21484 # When large executables or shared objects are built, AIX ld can
21485 # have problems creating the table of contents. If linking a library
21486 # or program results in "error TOC overflow" add -mminimal-toc to
21487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21490 archive_cmds_GCJ=''
21491 hardcode_direct_GCJ=yes
21492 hardcode_libdir_separator_GCJ=':'
21493 link_all_deplibs_GCJ=yes
21495 if test "$GCC" = yes; then
21496 case $host_os in aix4.012|aix4.012.*)
21497 # We only want to do this on AIX 4.2 and lower, the check
21498 # below for broken collect2 doesn't work under 4.3+
21499 collect2name=`${CC} -print-prog-name=collect2`
21500 if test -f "$collect2name" && \
21501 strings "$collect2name" | grep resolve_lib_name >/dev/null
21503 # We have reworked collect2
21504 hardcode_direct_GCJ=yes
21506 # We have old collect2
21507 hardcode_direct_GCJ=unsupported
21508 # It fails to find uninstalled libraries when the uninstalled
21509 # path is not listed in the libpath. Setting hardcode_minus_L
21510 # to unsupported forces relinking
21511 hardcode_minus_L_GCJ=yes
21512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21513 hardcode_libdir_separator_GCJ=
21516 shared_flag='-shared'
21519 if test "$host_cpu" = ia64; then
21520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21521 # chokes on -Wl,-G. The following line is correct:
21524 if test "$aix_use_runtimelinking" = yes; then
21525 shared_flag='${wl}-G'
21527 shared_flag='${wl}-bM:SRE'
21532 # It seems that -bexpall does not export symbols beginning with
21533 # underscore (_), so it is better to generate a list of symbols to export.
21534 always_export_symbols_GCJ=yes
21535 if test "$aix_use_runtimelinking" = yes; then
21536 # Warning - without using the other runtime loading flags (-brtl),
21537 # -berok will link without error, but may produce a broken library.
21538 allow_undefined_flag_GCJ='-berok'
21539 # Determine the default libpath from the value encoded in an empty executable.
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21557 (eval $ac_link) 2>conftest.er1
21559 grep -v '^ *+' conftest.er1 >conftest.err
21561 cat conftest.err >&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } &&
21564 { ac_try='test -z "$ac_c_werror_flag"
21565 || test ! -s conftest.err'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest$ac_exeext'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21580 # Check for a 64-bit object if we didn't find anything.
21581 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; }
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21588 rm -f conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21592 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21593 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"
21595 if test "$host_cpu" = ia64; then
21596 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21597 allow_undefined_flag_GCJ="-z nodefs"
21598 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"
21600 # Determine the default libpath from the value encoded in an empty executable.
21601 cat >conftest.$ac_ext <<_ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618 (eval $ac_link) 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
21625 { ac_try='test -z "$ac_c_werror_flag"
21626 || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try='test -s conftest$ac_exeext'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21639 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21641 # Check for a 64-bit object if we didn't find anything.
21642 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; }
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21649 rm -f conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
21651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21653 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21654 # Warning - without using the other run time loading flags,
21655 # -berok will link without error, but may produce a broken library.
21656 no_undefined_flag_GCJ=' ${wl}-bernotok'
21657 allow_undefined_flag_GCJ=' ${wl}-berok'
21658 # -bexpall does not export symbols beginning with underscore (_)
21659 always_export_symbols_GCJ=yes
21660 # Exported symbols can be pulled into shared objects from archives
21661 whole_archive_flag_spec_GCJ=' '
21662 archive_cmds_need_lc_GCJ=yes
21663 # This is similar to how AIX traditionally builds it's shared libraries.
21664 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'
21670 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)'
21671 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21672 hardcode_minus_L_GCJ=yes
21673 # see comment about different semantics on the GNU ld section
21678 export_dynamic_flag_spec_GCJ=-rdynamic
21681 cygwin* | mingw* | pw32*)
21682 # When not using gcc, we currently assume that we are using
21683 # Microsoft Visual C++.
21684 # hardcode_libdir_flag_spec is actually meaningless, as there is
21685 # no search path for DLLs.
21686 hardcode_libdir_flag_spec_GCJ=' '
21687 allow_undefined_flag_GCJ=unsupported
21688 # Tell ltmain to make .lib files, not .a files.
21690 # Tell ltmain to make .dll files, not .so files.
21692 # FIXME: Setting linknames here is a bad hack.
21693 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21694 # The linker will automatically build a .lib file if we build a DLL.
21695 old_archive_From_new_cmds_GCJ='true'
21696 # FIXME: Should let the user specify the lib program.
21697 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21698 fix_srcfile_path='`cygpath -w "$srcfile"`'
21699 enable_shared_with_static_runtimes_GCJ=yes
21702 darwin* | rhapsody*)
21704 rhapsody* | darwin1.[012])
21705 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21709 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21711 case ${MACOSX_DEPLOYMENT_TARGET} in
21713 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21716 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21722 archive_cmds_need_lc_GCJ=no
21723 hardcode_direct_GCJ=no
21724 hardcode_automatic_GCJ=yes
21725 hardcode_shlibpath_var_GCJ=unsupported
21726 whole_archive_flag_spec_GCJ=''
21727 link_all_deplibs_GCJ=yes
21728 if test "$GCC" = yes ; then
21729 output_verbose_link_cmd='echo'
21730 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21731 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21732 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21733 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}'
21734 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}'
21736 case "$cc_basename" in
21738 output_verbose_link_cmd='echo'
21739 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21740 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21742 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}'
21743 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}'
21753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21755 hardcode_shlibpath_var_GCJ=no
21762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21763 # support. Future versions do this automatically, but an explicit c++rt0.o
21764 # does not break anything, and helps significantly (at the cost of a little
21767 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21768 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21769 hardcode_direct_GCJ=yes
21770 hardcode_shlibpath_var_GCJ=no
21773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21775 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21776 hardcode_direct_GCJ=yes
21777 hardcode_minus_L_GCJ=yes
21778 hardcode_shlibpath_var_GCJ=no
21781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21782 freebsd* | kfreebsd*-gnu)
21783 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21785 hardcode_direct_GCJ=yes
21786 hardcode_shlibpath_var_GCJ=no
21790 if test "$GCC" = yes; then
21791 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'
21793 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'
21795 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21796 hardcode_libdir_separator_GCJ=:
21797 hardcode_direct_GCJ=yes
21799 # hardcode_minus_L: Not really in the search PATH,
21800 # but as the default location of the library.
21801 hardcode_minus_L_GCJ=yes
21802 export_dynamic_flag_spec_GCJ='${wl}-E'
21806 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21807 case "$host_cpu" in
21809 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21812 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21816 case "$host_cpu" in
21818 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21821 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21825 if test "$with_gnu_ld" = no; then
21826 case "$host_cpu" in
21828 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21829 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21830 hardcode_libdir_separator_GCJ=:
21831 hardcode_direct_GCJ=no
21832 hardcode_shlibpath_var_GCJ=no
21835 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21836 hardcode_direct_GCJ=no
21837 hardcode_shlibpath_var_GCJ=no
21839 # hardcode_minus_L: Not really in the search PATH,
21840 # but as the default location of the library.
21841 hardcode_minus_L_GCJ=yes
21844 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21845 hardcode_libdir_separator_GCJ=:
21846 hardcode_direct_GCJ=yes
21847 export_dynamic_flag_spec_GCJ='${wl}-E'
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
21857 irix5* | irix6* | nonstopux*)
21858 if test "$GCC" = yes; then
21859 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'
21861 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'
21862 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21865 hardcode_libdir_separator_GCJ=:
21866 link_all_deplibs_GCJ=yes
21870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21873 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21876 hardcode_direct_GCJ=yes
21877 hardcode_shlibpath_var_GCJ=no
21881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21882 hardcode_direct_GCJ=yes
21883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21884 hardcode_libdir_separator_GCJ=:
21885 hardcode_shlibpath_var_GCJ=no
21889 hardcode_direct_GCJ=yes
21890 hardcode_shlibpath_var_GCJ=no
21891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21892 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21893 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21895 export_dynamic_flag_spec_GCJ='${wl}-E'
21898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21912 hardcode_minus_L_GCJ=yes
21913 allow_undefined_flag_GCJ=unsupported
21914 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'
21915 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21919 if test "$GCC" = yes; then
21920 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21921 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'
21923 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21924 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'
21926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21927 hardcode_libdir_separator_GCJ=:
21930 osf4* | osf5*) # as osf3* with the addition of -msym flag
21931 if test "$GCC" = yes; then
21932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21933 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'
21934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21936 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21937 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'
21938 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~
21939 $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'
21941 # Both c and cxx compiler support -rpath directly
21942 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21944 hardcode_libdir_separator_GCJ=:
21948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21949 hardcode_shlibpath_var_GCJ=no
21950 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21951 runpath_var=LD_RUN_PATH
21952 hardcode_runpath_var=yes
21956 no_undefined_flag_GCJ=' -z text'
21957 if test "$GCC" = yes; then
21958 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21959 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21960 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21962 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21963 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21966 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21967 hardcode_shlibpath_var_GCJ=no
21969 solaris2.[0-5] | solaris2.[0-5].*) ;;
21970 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21971 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21973 link_all_deplibs_GCJ=yes
21977 if test "x$host_vendor" = xsequent; then
21978 # Use $CC to link under sequent, because it throws in some extra .o
21979 # files that make .init and .fini sections work.
21980 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21982 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21985 hardcode_direct_GCJ=yes
21986 hardcode_minus_L_GCJ=yes
21987 hardcode_shlibpath_var_GCJ=no
21991 case $host_vendor in
21993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21994 hardcode_direct_GCJ=yes # is this really true???
21997 ## LD is ld it makes a PLAMLIB
21998 ## CC just makes a GrossModule.
21999 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22000 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22001 hardcode_direct_GCJ=no
22004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22005 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22008 runpath_var='LD_RUN_PATH'
22009 hardcode_shlibpath_var_GCJ=no
22013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 hardcode_shlibpath_var_GCJ=no
22015 export_dynamic_flag_spec_GCJ='-Bexport'
22019 if test -d /usr/nec; then
22020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22021 hardcode_shlibpath_var_GCJ=no
22022 runpath_var=LD_RUN_PATH
22023 hardcode_runpath_var=yes
22029 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22030 hardcode_direct_GCJ=yes
22031 hardcode_minus_L_GCJ=no
22032 hardcode_shlibpath_var_GCJ=no
22033 hardcode_runpath_var=yes
22034 runpath_var=LD_RUN_PATH
22037 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22038 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22039 if test "$GCC" = yes; then
22040 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22042 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22044 runpath_var='LD_RUN_PATH'
22045 hardcode_shlibpath_var_GCJ=no
22049 no_undefined_flag_GCJ=' -z text'
22050 # $CC -shared without GNU ld will not create a library from C++
22051 # object files and a static libstdc++, better avoid it by now
22052 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22053 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22054 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22055 hardcode_libdir_flag_spec_GCJ=
22056 hardcode_shlibpath_var_GCJ=no
22057 runpath_var='LD_RUN_PATH'
22061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22062 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22063 hardcode_shlibpath_var_GCJ=no
22072 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22073 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22074 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22077 if test "$GCC" = yes; then
22078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22082 # Do we need to explicitly link libc?
22084 case "x$archive_cmds_need_lc_GCJ" in
22086 # Assume -lc should be added
22087 archive_cmds_need_lc_GCJ=yes
22089 if test "$enable_shared" = yes && test "$GCC" = yes; then
22090 case $archive_cmds_GCJ in
22092 # FIXME: we may have to deal with multi-command sequences.
22095 # Test whether the compiler implicitly links with -lc since on some
22096 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22097 # to ld, don't add -lc before -lgcc.
22098 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22099 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104 (eval $ac_compile) 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } 2>conftest.err; then
22110 libobjs=conftest.$ac_objext
22112 wl=$lt_prog_compiler_wl_GCJ
22118 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22119 allow_undefined_flag_GCJ=
22120 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22121 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }
22126 archive_cmds_need_lc_GCJ=no
22128 archive_cmds_need_lc_GCJ=yes
22130 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22132 cat conftest.err 1>&5
22135 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22136 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22143 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22144 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22145 library_names_spec=
22146 libname_spec='lib$name'
22150 postuninstall_cmds=
22154 shlibpath_overrides_runpath=unknown
22156 dynamic_linker="$host_os ld.so"
22157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22158 if test "$GCC" = yes; then
22159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22160 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22161 # if the path contains ";" then we assume it to be the separator
22162 # otherwise default to the standard path separator (i.e. ":") - it is
22163 # assumed that no part of a normal pathname contains ";" but that should
22164 # okay in the real world where ";" in dirpaths is itself problematic.
22165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22170 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22172 need_lib_prefix=unknown
22173 hardcode_into_libs=no
22175 # when you set need_version to no, make sure it does not cause -set_version
22176 # flags to be left without arguments
22177 need_version=unknown
22182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22183 shlibpath_var=LIBPATH
22185 # AIX 3 has no versioning support, so we append a major version to the name.
22186 soname_spec='${libname}${release}${shared_ext}$major'
22193 hardcode_into_libs=yes
22194 if test "$host_cpu" = ia64; then
22195 # AIX 5 supports IA64
22196 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22197 shlibpath_var=LD_LIBRARY_PATH
22199 # With GCC up to 2.95.x, collect2 would create an import file
22200 # for dependence libraries. The import file would start with
22201 # the line `#! .'. This would cause the generated library to
22202 # depend on `.', always an invalid library. This was fixed in
22203 # development snapshots of GCC prior to 3.0.
22205 aix4 | aix4.[01] | aix4.[01].*)
22206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22208 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22211 can_build_shared=no
22215 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22216 # soname into executable. Probably we can add versioning support to
22217 # collect2, so additional links can be useful in future.
22218 if test "$aix_use_runtimelinking" = yes; then
22219 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22220 # instead of lib<name>.a to let people know that these are not
22221 # typical AIX shared libraries.
22222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22224 # We preserve .a as extension for shared libraries through AIX4.2
22225 # and later when we are not doing run time linking.
22226 library_names_spec='${libname}${release}.a $libname.a'
22227 soname_spec='${libname}${release}${shared_ext}$major'
22229 shlibpath_var=LIBPATH
22234 library_names_spec='$libname.ixlibrary $libname.a'
22235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22236 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'
22240 library_names_spec='${libname}${shared_ext}'
22241 dynamic_linker="$host_os ld.so"
22242 shlibpath_var=LIBRARY_PATH
22248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22249 soname_spec='${libname}${release}${shared_ext}$major'
22250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22251 shlibpath_var=LD_LIBRARY_PATH
22252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22254 # the default ld.so.conf also contains /usr/contrib/lib and
22255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22256 # libtool to hard-code these into programs
22259 cygwin* | mingw* | pw32*)
22260 version_type=windows
22265 case $GCC,$host_os in
22266 yes,cygwin* | yes,mingw* | yes,pw32*)
22267 library_names_spec='$libname.dll.a'
22268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22269 postinstall_cmds='base_file=`basename \${file}`~
22270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22271 dldir=$destdir/`dirname \$dlpath`~
22272 test -d \$dldir || mkdir -p \$dldir~
22273 $install_prog $dir/$dlname \$dldir/$dlname'
22274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22275 dlpath=$dir/\$dldll~
22277 shlibpath_overrides_runpath=yes
22281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22283 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22286 # MinGW DLLs use traditional 'lib' prefix
22287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22290 # It is most probably a Windows format PATH printed by
22291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22292 # path with ; separators, and with drive letters. We can handle the
22293 # drive letters (cygwin fileutils understands them), so leave them,
22294 # especially as we might pass files found there to a mingw objdump,
22295 # which wouldn't understand a cygwinified path. Ahh.
22296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22302 # pw32 DLLs use 'pw' prefix rather than 'lib'
22303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22312 dynamic_linker='Win32 ld.exe'
22313 # FIXME: first we should search . and the directory the executable is in
22317 darwin* | rhapsody*)
22318 dynamic_linker="$host_os dyld"
22319 version_type=darwin
22322 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22323 soname_spec='${libname}${release}${major}$shared_ext'
22324 shlibpath_overrides_runpath=yes
22325 shlibpath_var=DYLD_LIBRARY_PATH
22326 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22327 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22328 if test "$GCC" = yes; then
22329 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"`
22331 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22341 soname_spec='${libname}${release}${shared_ext}$major'
22342 shlibpath_var=LD_LIBRARY_PATH
22353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22354 soname_spec='${libname}${release}${shared_ext}$major'
22355 shlibpath_var=LD_LIBRARY_PATH
22356 shlibpath_overrides_runpath=no
22357 hardcode_into_libs=yes
22358 dynamic_linker='GNU ld.so'
22362 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22363 version_type=freebsd-$objformat
22364 case $version_type in
22366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22375 shlibpath_var=LD_LIBRARY_PATH
22378 shlibpath_overrides_runpath=yes
22380 freebsd3.01* | freebsdelf3.01*)
22381 shlibpath_overrides_runpath=yes
22382 hardcode_into_libs=yes
22385 shlibpath_overrides_runpath=no
22386 hardcode_into_libs=yes
22395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22396 soname_spec='${libname}${release}${shared_ext}$major'
22397 shlibpath_var=LD_LIBRARY_PATH
22398 hardcode_into_libs=yes
22401 hpux9* | hpux10* | hpux11*)
22402 # Give a soname corresponding to the major version so that dld.sl refuses to
22403 # link against other versions.
22407 case "$host_cpu" in
22410 hardcode_into_libs=yes
22411 dynamic_linker="$host_os dld.so"
22412 shlibpath_var=LD_LIBRARY_PATH
22413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22415 soname_spec='${libname}${release}${shared_ext}$major'
22416 if test "X$HPUX_IA64_MODE" = X32; then
22417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22425 hardcode_into_libs=yes
22426 dynamic_linker="$host_os dld.sl"
22427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22436 dynamic_linker="$host_os dld.sl"
22437 shlibpath_var=SHLIB_PATH
22438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
22443 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22444 postinstall_cmds='chmod 555 $lib'
22447 irix5* | irix6* | nonstopux*)
22449 nonstopux*) version_type=nonstopux ;;
22451 if test "$lt_cv_prog_gnu_ld" = yes; then
22459 soname_spec='${libname}${release}${shared_ext}$major'
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22462 irix5* | nonstopux*)
22463 libsuff= shlibsuff=
22466 case $LD in # libtool.m4 will add one of these switches to LD
22467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22468 libsuff= shlibsuff= libmagic=32-bit;;
22469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22470 libsuff=32 shlibsuff=N32 libmagic=N32;;
22471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22473 *) libsuff= shlibsuff= libmagic=never-match;;
22477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22478 shlibpath_overrides_runpath=no
22479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22481 hardcode_into_libs=yes
22484 # No shared lib support for Linux oldld, aout, or coff.
22485 linux*oldld* | linux*aout* | linux*coff*)
22489 # This must be Linux ELF.
22494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22495 soname_spec='${libname}${release}${shared_ext}$major'
22496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22497 shlibpath_var=LD_LIBRARY_PATH
22498 shlibpath_overrides_runpath=no
22499 # This implies no fast_install, which is unacceptable.
22500 # Some rework will be needed to allow for fast_install
22501 # before this can be enabled.
22502 hardcode_into_libs=yes
22504 # Append ld.so.conf contents to the search path
22505 if test -f /etc/ld.so.conf; then
22506 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22510 # We used to test for /lib/ld.so.1 and disable shared libraries on
22511 # powerpc, because MkLinux only supported shared libraries with the
22512 # GNU dynamic linker. Since this was broken with cross compilers,
22513 # most powerpc-linux boxes support dynamic linking these days and
22514 # people can always --disable-shared, the test was removed, and we
22515 # assume the GNU/Linux dynamic linker is in use.
22516 dynamic_linker='GNU/Linux ld.so'
22523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22524 soname_spec='${libname}${release}${shared_ext}$major'
22525 shlibpath_var=LD_LIBRARY_PATH
22526 shlibpath_overrides_runpath=no
22527 hardcode_into_libs=yes
22528 dynamic_linker='GNU ld.so'
22535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22538 dynamic_linker='NetBSD (a.out) ld.so'
22540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22541 soname_spec='${libname}${release}${shared_ext}$major'
22542 dynamic_linker='NetBSD ld.elf_so'
22544 shlibpath_var=LD_LIBRARY_PATH
22545 shlibpath_overrides_runpath=yes
22546 hardcode_into_libs=yes
22551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22552 shlibpath_var=LD_LIBRARY_PATH
22553 shlibpath_overrides_runpath=yes
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22561 soname_spec='${libname}${release}${shared_ext}$major'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=yes
22570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22572 shlibpath_var=LD_LIBRARY_PATH
22573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22575 openbsd2.[89] | openbsd2.[89].*)
22576 shlibpath_overrides_runpath=no
22579 shlibpath_overrides_runpath=yes
22583 shlibpath_overrides_runpath=yes
22588 libname_spec='$name'
22591 library_names_spec='$libname${shared_ext} $libname.a'
22592 dynamic_linker='OS/2 ld.exe'
22593 shlibpath_var=LIBPATH
22596 osf3* | osf4* | osf5*)
22600 soname_spec='${libname}${release}${shared_ext}$major'
22601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22602 shlibpath_var=LD_LIBRARY_PATH
22603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22609 soname_spec='${libname}${release}${shared_ext}$major'
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 shlibpath_var=LD_LIBRARY_PATH
22618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22619 soname_spec='${libname}${release}${shared_ext}$major'
22620 shlibpath_var=LD_LIBRARY_PATH
22621 shlibpath_overrides_runpath=yes
22622 hardcode_into_libs=yes
22623 # ldd complains unless libraries are executable
22624 postinstall_cmds='chmod +x $lib'
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=yes
22633 if test "$with_gnu_ld" = yes; then
22639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 shlibpath_var=LD_LIBRARY_PATH
22644 case $host_vendor in
22646 shlibpath_overrides_runpath=no
22648 export_dynamic_flag_spec='${wl}-Blargedynsym'
22649 runpath_var=LD_RUN_PATH
22657 shlibpath_overrides_runpath=no
22658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22664 if test -d /usr/nec ;then
22666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22667 soname_spec='$libname${shared_ext}.$major'
22668 shlibpath_var=LD_LIBRARY_PATH
22674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675 soname_spec='${libname}${release}${shared_ext}$major'
22676 shlibpath_var=LD_LIBRARY_PATH
22683 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22684 echo "${ECHO_T}$dynamic_linker" >&6
22685 test "$dynamic_linker" = no && can_build_shared=no
22687 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22688 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22689 hardcode_action_GCJ=
22690 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22691 test -n "$runpath_var_GCJ" || \
22692 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22694 # We can hardcode non-existant directories.
22695 if test "$hardcode_direct_GCJ" != no &&
22696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22697 # have to relink, otherwise we might link with an installed library
22698 # when we should be linking with a yet-to-be-installed one
22699 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22700 test "$hardcode_minus_L_GCJ" != no; then
22701 # Linking always hardcodes the temporary library directory.
22702 hardcode_action_GCJ=relink
22704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22705 hardcode_action_GCJ=immediate
22708 # We cannot hardcode anything, or else we can only hardcode existing
22710 hardcode_action_GCJ=unsupported
22712 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22713 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22715 if test "$hardcode_action_GCJ" = relink; then
22716 # Fast installation is not supported
22717 enable_fast_install=no
22718 elif test "$shlibpath_overrides_runpath" = yes ||
22719 test "$enable_shared" = no; then
22720 # Fast installation is not necessary
22721 enable_fast_install=needless
22726 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22727 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22728 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22729 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22730 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22731 echo "$as_me:$LINENO: result: yes" >&5
22732 echo "${ECHO_T}yes" >&6
22734 # FIXME - insert some real tests, host_os isn't really good enough
22737 if test -n "$STRIP" ; then
22738 striplib="$STRIP -x"
22739 echo "$as_me:$LINENO: result: yes" >&5
22740 echo "${ECHO_T}yes" >&6
22742 echo "$as_me:$LINENO: result: no" >&5
22743 echo "${ECHO_T}no" >&6
22747 echo "$as_me:$LINENO: result: no" >&5
22748 echo "${ECHO_T}no" >&6
22753 if test "x$enable_dlopen" != xyes; then
22754 enable_dlopen=unknown
22755 enable_dlopen_self=unknown
22756 enable_dlopen_self_static=unknown
22763 lt_cv_dlopen="load_add_on"
22765 lt_cv_dlopen_self=yes
22769 lt_cv_dlopen="LoadLibrary"
22774 lt_cv_dlopen="dlopen"
22779 # if libdl is installed we need to link against it
22780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 ac_check_lib_save_LIBS=$LIBS
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22794 /* Override any gcc2 internal prototype to avoid an error. */
22798 /* We use char because int might match the return type of a gcc2
22799 builtin and then its argument prototype would still apply. */
22809 rm -f conftest.$ac_objext conftest$ac_exeext
22810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22811 (eval $ac_link) 2>conftest.er1
22813 grep -v '^ *+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } &&
22818 { ac_try='test -z "$ac_c_werror_flag"
22819 || test ! -s conftest.err'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; } &&
22825 { ac_try='test -s conftest$ac_exeext'
22826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827 (eval $ac_try) 2>&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); }; }; then
22831 ac_cv_lib_dl_dlopen=yes
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 ac_cv_lib_dl_dlopen=no
22838 rm -f conftest.err conftest.$ac_objext \
22839 conftest$ac_exeext conftest.$ac_ext
22840 LIBS=$ac_check_lib_save_LIBS
22842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22844 if test $ac_cv_lib_dl_dlopen = yes; then
22845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22848 lt_cv_dlopen="dyld"
22850 lt_cv_dlopen_self=yes
22857 echo "$as_me:$LINENO: checking for shl_load" >&5
22858 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22859 if test "${ac_cv_func_shl_load+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22870 #define shl_load innocuous_shl_load
22872 /* System header to define __stub macros and hopefully few prototypes,
22873 which can conflict with char shl_load (); below.
22874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22875 <limits.h> exists even on freestanding compilers. */
22878 # include <limits.h>
22880 # include <assert.h>
22885 /* Override any gcc2 internal prototype to avoid an error. */
22890 /* We use char because int might match the return type of a gcc2
22891 builtin and then its argument prototype would still apply. */
22893 /* The GNU C library defines this for functions which it implements
22894 to always fail with ENOSYS. Some functions are actually named
22895 something starting with __ and the normal name is an alias. */
22896 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22899 char (*f) () = shl_load;
22908 return f != shl_load;
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22915 (eval $ac_link) 2>conftest.er1
22917 grep -v '^ *+' conftest.er1 >conftest.err
22919 cat conftest.err >&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
22922 { ac_try='test -z "$ac_c_werror_flag"
22923 || test ! -s conftest.err'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest$ac_exeext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 ac_cv_func_shl_load=yes
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 ac_cv_func_shl_load=no
22942 rm -f conftest.err conftest.$ac_objext \
22943 conftest$ac_exeext conftest.$ac_ext
22945 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22946 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22947 if test $ac_cv_func_shl_load = yes; then
22948 lt_cv_dlopen="shl_load"
22950 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22953 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 ac_check_lib_save_LIBS=$LIBS
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22964 /* Override any gcc2 internal prototype to avoid an error. */
22968 /* We use char because int might match the return type of a gcc2
22969 builtin and then its argument prototype would still apply. */
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22981 (eval $ac_link) 2>conftest.er1
22983 grep -v '^ *+' conftest.er1 >conftest.err
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } &&
22988 { ac_try='test -z "$ac_c_werror_flag"
22989 || test ! -s conftest.err'
22990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; } &&
22995 { ac_try='test -s conftest$ac_exeext'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_cv_lib_dld_shl_load=yes
23003 echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 ac_cv_lib_dld_shl_load=no
23008 rm -f conftest.err conftest.$ac_objext \
23009 conftest$ac_exeext conftest.$ac_ext
23010 LIBS=$ac_check_lib_save_LIBS
23012 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23013 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23014 if test $ac_cv_lib_dld_shl_load = yes; then
23015 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23017 echo "$as_me:$LINENO: checking for dlopen" >&5
23018 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23019 if test "${ac_cv_func_dlopen+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23030 #define dlopen innocuous_dlopen
23032 /* System header to define __stub macros and hopefully few prototypes,
23033 which can conflict with char dlopen (); below.
23034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23035 <limits.h> exists even on freestanding compilers. */
23038 # include <limits.h>
23040 # include <assert.h>
23045 /* Override any gcc2 internal prototype to avoid an error. */
23050 /* We use char because int might match the return type of a gcc2
23051 builtin and then its argument prototype would still apply. */
23053 /* The GNU C library defines this for functions which it implements
23054 to always fail with ENOSYS. Some functions are actually named
23055 something starting with __ and the normal name is an alias. */
23056 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23059 char (*f) () = dlopen;
23068 return f != dlopen;
23073 rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23075 (eval $ac_link) 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } &&
23082 { ac_try='test -z "$ac_c_werror_flag"
23083 || test ! -s conftest.err'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest$ac_exeext'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_func_dlopen=yes
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_cv_func_dlopen=no
23102 rm -f conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23105 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23106 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23107 if test $ac_cv_func_dlopen = yes; then
23108 lt_cv_dlopen="dlopen"
23110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 ac_check_lib_save_LIBS=$LIBS
23117 cat >conftest.$ac_ext <<_ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23124 /* Override any gcc2 internal prototype to avoid an error. */
23128 /* We use char because int might match the return type of a gcc2
23129 builtin and then its argument prototype would still apply. */
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23141 (eval $ac_link) 2>conftest.er1
23143 grep -v '^ *+' conftest.er1 >conftest.err
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
23148 { ac_try='test -z "$ac_c_werror_flag"
23149 || test ! -s conftest.err'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; } &&
23155 { ac_try='test -s conftest$ac_exeext'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; }; then
23161 ac_cv_lib_dl_dlopen=yes
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 ac_cv_lib_dl_dlopen=no
23168 rm -f conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23170 LIBS=$ac_check_lib_save_LIBS
23172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23174 if test $ac_cv_lib_dl_dlopen = yes; then
23175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23177 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23178 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23179 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 ac_check_lib_save_LIBS=$LIBS
23183 LIBS="-lsvld $LIBS"
23184 cat >conftest.$ac_ext <<_ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23191 /* Override any gcc2 internal prototype to avoid an error. */
23195 /* We use char because int might match the return type of a gcc2
23196 builtin and then its argument prototype would still apply. */
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23208 (eval $ac_link) 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
23215 { ac_try='test -z "$ac_c_werror_flag"
23216 || test ! -s conftest.err'
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try='test -s conftest$ac_exeext'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 ac_cv_lib_svld_dlopen=yes
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_cv_lib_svld_dlopen=no
23235 rm -f conftest.err conftest.$ac_objext \
23236 conftest$ac_exeext conftest.$ac_ext
23237 LIBS=$ac_check_lib_save_LIBS
23239 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23240 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23241 if test $ac_cv_lib_svld_dlopen = yes; then
23242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23244 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23245 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 ac_check_lib_save_LIBS=$LIBS
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23258 /* Override any gcc2 internal prototype to avoid an error. */
23262 /* We use char because int might match the return type of a gcc2
23263 builtin and then its argument prototype would still apply. */
23273 rm -f conftest.$ac_objext conftest$ac_exeext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23275 (eval $ac_link) 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
23282 { ac_try='test -z "$ac_c_werror_flag"
23283 || test ! -s conftest.err'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; } &&
23289 { ac_try='test -s conftest$ac_exeext'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ac_cv_lib_dld_dld_link=yes
23297 echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_cv_lib_dld_dld_link=no
23302 rm -f conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext conftest.$ac_ext
23304 LIBS=$ac_check_lib_save_LIBS
23306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23308 if test $ac_cv_lib_dld_dld_link = yes; then
23309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23330 if test "x$lt_cv_dlopen" != xno; then
23336 case $lt_cv_dlopen in
23338 save_CPPFLAGS="$CPPFLAGS"
23339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23341 save_LDFLAGS="$LDFLAGS"
23342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23345 LIBS="$lt_cv_dlopen_libs $LIBS"
23347 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23349 if test "${lt_cv_dlopen_self+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 if test "$cross_compiling" = yes; then :
23353 lt_cv_dlopen_self=cross
23355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23356 lt_status=$lt_dlunknown
23357 cat > conftest.$ac_ext <<EOF
23358 #line 23358 "configure"
23359 #include "confdefs.h"
23368 # define LT_DLGLOBAL RTLD_GLOBAL
23371 # define LT_DLGLOBAL DL_GLOBAL
23373 # define LT_DLGLOBAL 0
23377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23378 find out it does not work in some platform. */
23379 #ifndef LT_DLLAZY_OR_NOW
23381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23384 # define LT_DLLAZY_OR_NOW DL_LAZY
23387 # define LT_DLLAZY_OR_NOW RTLD_NOW
23390 # define LT_DLLAZY_OR_NOW DL_NOW
23392 # define LT_DLLAZY_OR_NOW 0
23400 extern "C" void exit (int);
23403 void fnord() { int i=42;}
23406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23407 int status = $lt_dlunknown;
23411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23413 /* dlclose (self); */
23419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420 (eval $ac_link) 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23424 (./conftest; exit; ) 2>/dev/null
23426 case x$lt_status in
23427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23432 # compilation failed
23433 lt_cv_dlopen_self=no
23440 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23441 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23443 if test "x$lt_cv_dlopen_self" = xyes; then
23444 LDFLAGS="$LDFLAGS $link_static_flag"
23445 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23446 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23447 if test "${lt_cv_dlopen_self_static+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23450 if test "$cross_compiling" = yes; then :
23451 lt_cv_dlopen_self_static=cross
23453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23454 lt_status=$lt_dlunknown
23455 cat > conftest.$ac_ext <<EOF
23456 #line 23456 "configure"
23457 #include "confdefs.h"
23466 # define LT_DLGLOBAL RTLD_GLOBAL
23469 # define LT_DLGLOBAL DL_GLOBAL
23471 # define LT_DLGLOBAL 0
23475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23476 find out it does not work in some platform. */
23477 #ifndef LT_DLLAZY_OR_NOW
23479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23482 # define LT_DLLAZY_OR_NOW DL_LAZY
23485 # define LT_DLLAZY_OR_NOW RTLD_NOW
23488 # define LT_DLLAZY_OR_NOW DL_NOW
23490 # define LT_DLLAZY_OR_NOW 0
23498 extern "C" void exit (int);
23501 void fnord() { int i=42;}
23504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23505 int status = $lt_dlunknown;
23509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23511 /* dlclose (self); */
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>&5
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23522 (./conftest; exit; ) 2>/dev/null
23524 case x$lt_status in
23525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23530 # compilation failed
23531 lt_cv_dlopen_self_static=no
23538 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23539 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23542 CPPFLAGS="$save_CPPFLAGS"
23543 LDFLAGS="$save_LDFLAGS"
23548 case $lt_cv_dlopen_self in
23549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23550 *) enable_dlopen_self=unknown ;;
23553 case $lt_cv_dlopen_self_static in
23554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23555 *) enable_dlopen_self_static=unknown ;;
23560 # The else clause should only fire when bootstrapping the
23561 # libtool distribution, otherwise you forgot to ship ltmain.sh
23562 # with your package, and you will get complaints that there are
23563 # no rules to generate ltmain.sh.
23564 if test -f "$ltmain"; then
23565 # See if we are running on zsh, and set the options which allow our commands through
23566 # without removal of \ escapes.
23567 if test -n "${ZSH_VERSION+set}" ; then
23568 setopt NO_GLOB_SUBST
23570 # Now quote all the things that may contain metacharacters while being
23571 # careful not to overquote the AC_SUBSTed values. We take copies of the
23572 # variables and quote the copies for generation of the libtool script.
23573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23577 deplibs_check_method reload_flag reload_cmds need_locks \
23578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23579 lt_cv_sys_global_symbol_to_c_name_address \
23580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23581 old_postinstall_cmds old_postuninstall_cmds \
23585 lt_prog_compiler_wl_GCJ \
23586 lt_prog_compiler_pic_GCJ \
23587 lt_prog_compiler_static_GCJ \
23588 lt_prog_compiler_no_builtin_flag_GCJ \
23589 export_dynamic_flag_spec_GCJ \
23590 thread_safe_flag_spec_GCJ \
23591 whole_archive_flag_spec_GCJ \
23592 enable_shared_with_static_runtimes_GCJ \
23593 old_archive_cmds_GCJ \
23594 old_archive_from_new_cmds_GCJ \
23595 predep_objects_GCJ \
23596 postdep_objects_GCJ \
23599 compiler_lib_search_path_GCJ \
23601 archive_expsym_cmds_GCJ \
23602 postinstall_cmds_GCJ \
23603 postuninstall_cmds_GCJ \
23604 old_archive_from_expsyms_cmds_GCJ \
23605 allow_undefined_flag_GCJ \
23606 no_undefined_flag_GCJ \
23607 export_symbols_cmds_GCJ \
23608 hardcode_libdir_flag_spec_GCJ \
23609 hardcode_libdir_flag_spec_ld_GCJ \
23610 hardcode_libdir_separator_GCJ \
23611 hardcode_automatic_GCJ \
23613 module_expsym_cmds_GCJ \
23614 lt_cv_prog_compiler_c_o_GCJ \
23615 exclude_expsyms_GCJ \
23616 include_expsyms_GCJ; do
23619 old_archive_cmds_GCJ | \
23620 old_archive_from_new_cmds_GCJ | \
23621 archive_cmds_GCJ | \
23622 archive_expsym_cmds_GCJ | \
23623 module_cmds_GCJ | \
23624 module_expsym_cmds_GCJ | \
23625 old_archive_from_expsyms_cmds_GCJ | \
23626 export_symbols_cmds_GCJ | \
23627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23628 postinstall_cmds | postuninstall_cmds | \
23629 old_postinstall_cmds | old_postuninstall_cmds | \
23630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23631 # Double-quote double-evaled strings.
23632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23641 *'\$0 --fallback-echo"')
23642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23648 cat <<__EOF__ >> "$cfgfile"
23649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23653 # Shell to use when invoking shell scripts.
23656 # Whether or not to build shared libraries.
23657 build_libtool_libs=$enable_shared
23659 # Whether or not to build static libraries.
23660 build_old_libs=$enable_static
23662 # Whether or not to add -lc for building shared libraries.
23663 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23665 # Whether or not to disallow shared libs when runtime libs are static
23666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23668 # Whether or not to optimize for fast installation.
23669 fast_install=$enable_fast_install
23672 host_alias=$host_alias
23675 # An echo program that does not interpret backslashes.
23680 AR_FLAGS=$lt_AR_FLAGS
23685 # A language-specific compiler.
23686 CC=$lt_compiler_GCJ
23688 # Is the compiler the GNU C compiler?
23694 # The linker used to build libraries.
23697 # Whether we need hard or soft links.
23700 # A BSD-compatible nm program.
23703 # A symbol stripping program
23706 # Used to examine libraries when file_magic_cmd begins "file"
23707 MAGIC_CMD=$MAGIC_CMD
23709 # Used on cygwin: DLL creation program.
23712 # Used on cygwin: object dumper.
23715 # Used on cygwin: assembler.
23718 # The name of the directory that contains temporary libtool files.
23721 # How to create reloadable object files.
23722 reload_flag=$lt_reload_flag
23723 reload_cmds=$lt_reload_cmds
23725 # How to pass a linker flag through the compiler.
23726 wl=$lt_lt_prog_compiler_wl_GCJ
23728 # Object file suffix (normally "o").
23729 objext="$ac_objext"
23731 # Old archive suffix (normally "a").
23734 # Shared library suffix (normally ".so").
23735 shrext_cmds='$shrext_cmds'
23737 # Executable file suffix (normally "").
23740 # Additional compiler flags for building library objects.
23741 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23744 # What is the maximum length of a command?
23745 max_cmd_len=$lt_cv_sys_max_cmd_len
23747 # Does compiler simultaneously support -c and -o options?
23748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23750 # Must we lock files when doing compilation ?
23751 need_locks=$lt_need_locks
23753 # Do we need the lib prefix for modules?
23754 need_lib_prefix=$need_lib_prefix
23756 # Do we need a version for libraries?
23757 need_version=$need_version
23759 # Whether dlopen is supported.
23760 dlopen_support=$enable_dlopen
23762 # Whether dlopen of programs is supported.
23763 dlopen_self=$enable_dlopen_self
23765 # Whether dlopen of statically linked programs is supported.
23766 dlopen_self_static=$enable_dlopen_self_static
23768 # Compiler flag to prevent dynamic linking.
23769 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23771 # Compiler flag to turn off builtin functions.
23772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23774 # Compiler flag to allow reflexive dlopens.
23775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23777 # Compiler flag to generate shared objects directly from archives.
23778 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23780 # Compiler flag to generate thread-safe objects.
23781 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23783 # Library versioning type.
23784 version_type=$version_type
23786 # Format of library name prefix.
23787 libname_spec=$lt_libname_spec
23789 # List of archive names. First name is the real one, the rest are links.
23790 # The last name is the one that the linker finds with -lNAME.
23791 library_names_spec=$lt_library_names_spec
23793 # The coded name of the library, if different from the real name.
23794 soname_spec=$lt_soname_spec
23796 # Commands used to build and install an old-style archive.
23798 old_archive_cmds=$lt_old_archive_cmds_GCJ
23799 old_postinstall_cmds=$lt_old_postinstall_cmds
23800 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23802 # Create an old-style archive from a shared archive.
23803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23805 # Create a temporary old-style archive to link instead of a shared archive.
23806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23808 # Commands used to build and install a shared archive.
23809 archive_cmds=$lt_archive_cmds_GCJ
23810 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23811 postinstall_cmds=$lt_postinstall_cmds
23812 postuninstall_cmds=$lt_postuninstall_cmds
23814 # Commands used to build a loadable module (assumed same as above if empty)
23815 module_cmds=$lt_module_cmds_GCJ
23816 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23818 # Commands to strip libraries.
23819 old_striplib=$lt_old_striplib
23820 striplib=$lt_striplib
23822 # Dependencies to place before the objects being linked to create a
23824 predep_objects=$lt_predep_objects_GCJ
23826 # Dependencies to place after the objects being linked to create a
23828 postdep_objects=$lt_postdep_objects_GCJ
23830 # Dependencies to place before the objects being linked to create a
23832 predeps=$lt_predeps_GCJ
23834 # Dependencies to place after the objects being linked to create a
23836 postdeps=$lt_postdeps_GCJ
23838 # The library search path used internally by the compiler when linking
23839 # a shared library.
23840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23842 # Method to check whether dependent libraries are shared objects.
23843 deplibs_check_method=$lt_deplibs_check_method
23845 # Command to use when deplibs_check_method == file_magic.
23846 file_magic_cmd=$lt_file_magic_cmd
23848 # Flag that allows shared libraries with undefined symbols to be built.
23849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23851 # Flag that forces no undefined symbols.
23852 no_undefined_flag=$lt_no_undefined_flag_GCJ
23854 # Commands used to finish a libtool library installation in a directory.
23855 finish_cmds=$lt_finish_cmds
23857 # Same as above, but a single script fragment to be evaled but not shown.
23858 finish_eval=$lt_finish_eval
23860 # Take the output of nm and produce a listing of raw symbols and C names.
23861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23863 # Transform the output of nm in a proper C declaration
23864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23866 # Transform the output of nm in a C name address pair
23867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23869 # This is the shared library runtime path variable.
23870 runpath_var=$runpath_var
23872 # This is the shared library path variable.
23873 shlibpath_var=$shlibpath_var
23875 # Is shlibpath searched before the hard-coded library search path?
23876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23878 # How to hardcode a shared library path into an executable.
23879 hardcode_action=$hardcode_action_GCJ
23881 # Whether we should hardcode library paths into libraries.
23882 hardcode_into_libs=$hardcode_into_libs
23884 # Flag to hardcode \$libdir into a binary during linking.
23885 # This must work even if \$libdir does not exist.
23886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23888 # If ld is used when linking, flag to hardcode \$libdir into
23889 # a binary during linking. This must work even if \$libdir does
23891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23893 # Whether we need a single -rpath flag with a separated argument.
23894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23897 # resulting binary.
23898 hardcode_direct=$hardcode_direct_GCJ
23900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23901 # resulting binary.
23902 hardcode_minus_L=$hardcode_minus_L_GCJ
23904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23905 # the resulting binary.
23906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23908 # Set to yes if building a shared library automatically hardcodes DIR into the library
23909 # and all subsequent libraries and executables linked against it.
23910 hardcode_automatic=$hardcode_automatic_GCJ
23912 # Variables whose values should be saved in libtool wrapper scripts and
23913 # restored at relink time.
23914 variables_saved_for_relink="$variables_saved_for_relink"
23916 # Whether libtool must link a program against all its dependency libraries.
23917 link_all_deplibs=$link_all_deplibs_GCJ
23919 # Compile-time system search path for libraries
23920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23922 # Run-time system search path for libraries
23923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23925 # Fix the shell variable \$srcfile for the compiler.
23926 fix_srcfile_path="$fix_srcfile_path_GCJ"
23928 # Set to yes if exported symbols are required.
23929 always_export_symbols=$always_export_symbols_GCJ
23931 # The commands to list exported symbols.
23932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23934 # The commands to extract the exported symbol list from a shared archive.
23935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23937 # Symbols that should not be listed in the preloaded symbols.
23938 exclude_expsyms=$lt_exclude_expsyms_GCJ
23940 # Symbols that must always be exported.
23941 include_expsyms=$lt_include_expsyms_GCJ
23943 # ### END LIBTOOL TAG CONFIG: $tagname
23949 # If there is no Makefile yet, we rely on a make rule to execute
23950 # `config.status --recheck' to rerun these tests and create the
23951 # libtool script then.
23952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23953 if test -f "$ltmain_in"; then
23954 test -f Makefile && make "$ltmain"
23960 ac_cpp='$CPP $CPPFLAGS'
23961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23974 ac_cpp='$CPP $CPPFLAGS'
23975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23980 # Source file extension for RC test sources.
23983 # Object file extension for compiled RC test sources.
23987 # Code to be used in simple compile tests
23988 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23990 # Code to be used in simple link tests
23991 lt_simple_link_test_code="$lt_simple_compile_test_code"
23993 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23995 # If no C compiler was specified, use CC.
23998 # Allow CC to be a program name with arguments.
24002 # Allow CC to be a program name with arguments.
24007 lt_cv_prog_compiler_c_o_RC=yes
24009 # The else clause should only fire when bootstrapping the
24010 # libtool distribution, otherwise you forgot to ship ltmain.sh
24011 # with your package, and you will get complaints that there are
24012 # no rules to generate ltmain.sh.
24013 if test -f "$ltmain"; then
24014 # See if we are running on zsh, and set the options which allow our commands through
24015 # without removal of \ escapes.
24016 if test -n "${ZSH_VERSION+set}" ; then
24017 setopt NO_GLOB_SUBST
24019 # Now quote all the things that may contain metacharacters while being
24020 # careful not to overquote the AC_SUBSTed values. We take copies of the
24021 # variables and quote the copies for generation of the libtool script.
24022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24024 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24025 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24026 deplibs_check_method reload_flag reload_cmds need_locks \
24027 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24028 lt_cv_sys_global_symbol_to_c_name_address \
24029 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24030 old_postinstall_cmds old_postuninstall_cmds \
24034 lt_prog_compiler_wl_RC \
24035 lt_prog_compiler_pic_RC \
24036 lt_prog_compiler_static_RC \
24037 lt_prog_compiler_no_builtin_flag_RC \
24038 export_dynamic_flag_spec_RC \
24039 thread_safe_flag_spec_RC \
24040 whole_archive_flag_spec_RC \
24041 enable_shared_with_static_runtimes_RC \
24042 old_archive_cmds_RC \
24043 old_archive_from_new_cmds_RC \
24044 predep_objects_RC \
24045 postdep_objects_RC \
24048 compiler_lib_search_path_RC \
24050 archive_expsym_cmds_RC \
24051 postinstall_cmds_RC \
24052 postuninstall_cmds_RC \
24053 old_archive_from_expsyms_cmds_RC \
24054 allow_undefined_flag_RC \
24055 no_undefined_flag_RC \
24056 export_symbols_cmds_RC \
24057 hardcode_libdir_flag_spec_RC \
24058 hardcode_libdir_flag_spec_ld_RC \
24059 hardcode_libdir_separator_RC \
24060 hardcode_automatic_RC \
24062 module_expsym_cmds_RC \
24063 lt_cv_prog_compiler_c_o_RC \
24064 exclude_expsyms_RC \
24065 include_expsyms_RC; do
24068 old_archive_cmds_RC | \
24069 old_archive_from_new_cmds_RC | \
24070 archive_cmds_RC | \
24071 archive_expsym_cmds_RC | \
24073 module_expsym_cmds_RC | \
24074 old_archive_from_expsyms_cmds_RC | \
24075 export_symbols_cmds_RC | \
24076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24077 postinstall_cmds | postuninstall_cmds | \
24078 old_postinstall_cmds | old_postuninstall_cmds | \
24079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24080 # Double-quote double-evaled strings.
24081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24090 *'\$0 --fallback-echo"')
24091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24097 cat <<__EOF__ >> "$cfgfile"
24098 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24102 # Shell to use when invoking shell scripts.
24105 # Whether or not to build shared libraries.
24106 build_libtool_libs=$enable_shared
24108 # Whether or not to build static libraries.
24109 build_old_libs=$enable_static
24111 # Whether or not to add -lc for building shared libraries.
24112 build_libtool_need_lc=$archive_cmds_need_lc_RC
24114 # Whether or not to disallow shared libs when runtime libs are static
24115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24117 # Whether or not to optimize for fast installation.
24118 fast_install=$enable_fast_install
24121 host_alias=$host_alias
24124 # An echo program that does not interpret backslashes.
24129 AR_FLAGS=$lt_AR_FLAGS
24134 # A language-specific compiler.
24137 # Is the compiler the GNU C compiler?
24143 # The linker used to build libraries.
24146 # Whether we need hard or soft links.
24149 # A BSD-compatible nm program.
24152 # A symbol stripping program
24155 # Used to examine libraries when file_magic_cmd begins "file"
24156 MAGIC_CMD=$MAGIC_CMD
24158 # Used on cygwin: DLL creation program.
24161 # Used on cygwin: object dumper.
24164 # Used on cygwin: assembler.
24167 # The name of the directory that contains temporary libtool files.
24170 # How to create reloadable object files.
24171 reload_flag=$lt_reload_flag
24172 reload_cmds=$lt_reload_cmds
24174 # How to pass a linker flag through the compiler.
24175 wl=$lt_lt_prog_compiler_wl_RC
24177 # Object file suffix (normally "o").
24178 objext="$ac_objext"
24180 # Old archive suffix (normally "a").
24183 # Shared library suffix (normally ".so").
24184 shrext_cmds='$shrext_cmds'
24186 # Executable file suffix (normally "").
24189 # Additional compiler flags for building library objects.
24190 pic_flag=$lt_lt_prog_compiler_pic_RC
24193 # What is the maximum length of a command?
24194 max_cmd_len=$lt_cv_sys_max_cmd_len
24196 # Does compiler simultaneously support -c and -o options?
24197 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24199 # Must we lock files when doing compilation ?
24200 need_locks=$lt_need_locks
24202 # Do we need the lib prefix for modules?
24203 need_lib_prefix=$need_lib_prefix
24205 # Do we need a version for libraries?
24206 need_version=$need_version
24208 # Whether dlopen is supported.
24209 dlopen_support=$enable_dlopen
24211 # Whether dlopen of programs is supported.
24212 dlopen_self=$enable_dlopen_self
24214 # Whether dlopen of statically linked programs is supported.
24215 dlopen_self_static=$enable_dlopen_self_static
24217 # Compiler flag to prevent dynamic linking.
24218 link_static_flag=$lt_lt_prog_compiler_static_RC
24220 # Compiler flag to turn off builtin functions.
24221 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24223 # Compiler flag to allow reflexive dlopens.
24224 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24226 # Compiler flag to generate shared objects directly from archives.
24227 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24229 # Compiler flag to generate thread-safe objects.
24230 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24232 # Library versioning type.
24233 version_type=$version_type
24235 # Format of library name prefix.
24236 libname_spec=$lt_libname_spec
24238 # List of archive names. First name is the real one, the rest are links.
24239 # The last name is the one that the linker finds with -lNAME.
24240 library_names_spec=$lt_library_names_spec
24242 # The coded name of the library, if different from the real name.
24243 soname_spec=$lt_soname_spec
24245 # Commands used to build and install an old-style archive.
24247 old_archive_cmds=$lt_old_archive_cmds_RC
24248 old_postinstall_cmds=$lt_old_postinstall_cmds
24249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24251 # Create an old-style archive from a shared archive.
24252 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24254 # Create a temporary old-style archive to link instead of a shared archive.
24255 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24257 # Commands used to build and install a shared archive.
24258 archive_cmds=$lt_archive_cmds_RC
24259 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24260 postinstall_cmds=$lt_postinstall_cmds
24261 postuninstall_cmds=$lt_postuninstall_cmds
24263 # Commands used to build a loadable module (assumed same as above if empty)
24264 module_cmds=$lt_module_cmds_RC
24265 module_expsym_cmds=$lt_module_expsym_cmds_RC
24267 # Commands to strip libraries.
24268 old_striplib=$lt_old_striplib
24269 striplib=$lt_striplib
24271 # Dependencies to place before the objects being linked to create a
24273 predep_objects=$lt_predep_objects_RC
24275 # Dependencies to place after the objects being linked to create a
24277 postdep_objects=$lt_postdep_objects_RC
24279 # Dependencies to place before the objects being linked to create a
24281 predeps=$lt_predeps_RC
24283 # Dependencies to place after the objects being linked to create a
24285 postdeps=$lt_postdeps_RC
24287 # The library search path used internally by the compiler when linking
24288 # a shared library.
24289 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24291 # Method to check whether dependent libraries are shared objects.
24292 deplibs_check_method=$lt_deplibs_check_method
24294 # Command to use when deplibs_check_method == file_magic.
24295 file_magic_cmd=$lt_file_magic_cmd
24297 # Flag that allows shared libraries with undefined symbols to be built.
24298 allow_undefined_flag=$lt_allow_undefined_flag_RC
24300 # Flag that forces no undefined symbols.
24301 no_undefined_flag=$lt_no_undefined_flag_RC
24303 # Commands used to finish a libtool library installation in a directory.
24304 finish_cmds=$lt_finish_cmds
24306 # Same as above, but a single script fragment to be evaled but not shown.
24307 finish_eval=$lt_finish_eval
24309 # Take the output of nm and produce a listing of raw symbols and C names.
24310 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24312 # Transform the output of nm in a proper C declaration
24313 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24315 # Transform the output of nm in a C name address pair
24316 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24318 # This is the shared library runtime path variable.
24319 runpath_var=$runpath_var
24321 # This is the shared library path variable.
24322 shlibpath_var=$shlibpath_var
24324 # Is shlibpath searched before the hard-coded library search path?
24325 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24327 # How to hardcode a shared library path into an executable.
24328 hardcode_action=$hardcode_action_RC
24330 # Whether we should hardcode library paths into libraries.
24331 hardcode_into_libs=$hardcode_into_libs
24333 # Flag to hardcode \$libdir into a binary during linking.
24334 # This must work even if \$libdir does not exist.
24335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24337 # If ld is used when linking, flag to hardcode \$libdir into
24338 # a binary during linking. This must work even if \$libdir does
24340 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24342 # Whether we need a single -rpath flag with a separated argument.
24343 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24345 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24346 # resulting binary.
24347 hardcode_direct=$hardcode_direct_RC
24349 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24350 # resulting binary.
24351 hardcode_minus_L=$hardcode_minus_L_RC
24353 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24354 # the resulting binary.
24355 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24357 # Set to yes if building a shared library automatically hardcodes DIR into the library
24358 # and all subsequent libraries and executables linked against it.
24359 hardcode_automatic=$hardcode_automatic_RC
24361 # Variables whose values should be saved in libtool wrapper scripts and
24362 # restored at relink time.
24363 variables_saved_for_relink="$variables_saved_for_relink"
24365 # Whether libtool must link a program against all its dependency libraries.
24366 link_all_deplibs=$link_all_deplibs_RC
24368 # Compile-time system search path for libraries
24369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24371 # Run-time system search path for libraries
24372 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24374 # Fix the shell variable \$srcfile for the compiler.
24375 fix_srcfile_path="$fix_srcfile_path_RC"
24377 # Set to yes if exported symbols are required.
24378 always_export_symbols=$always_export_symbols_RC
24380 # The commands to list exported symbols.
24381 export_symbols_cmds=$lt_export_symbols_cmds_RC
24383 # The commands to extract the exported symbol list from a shared archive.
24384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24386 # Symbols that should not be listed in the preloaded symbols.
24387 exclude_expsyms=$lt_exclude_expsyms_RC
24389 # Symbols that must always be exported.
24390 include_expsyms=$lt_include_expsyms_RC
24392 # ### END LIBTOOL TAG CONFIG: $tagname
24398 # If there is no Makefile yet, we rely on a make rule to execute
24399 # `config.status --recheck' to rerun these tests and create the
24400 # libtool script then.
24401 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24402 if test -f "$ltmain_in"; then
24403 test -f Makefile && make "$ltmain"
24409 ac_cpp='$CPP $CPPFLAGS'
24410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24419 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24420 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24421 { (exit 1); exit 1; }; }
24425 # Append the new tag name to the list of available tags.
24426 if test -n "$tagname" ; then
24427 available_tags="$available_tags $tagname"
24433 # Now substitute the updated list of available tags.
24434 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24435 mv "${ofile}T" "$ofile"
24439 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24440 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24441 { (exit 1); exit 1; }; }
24447 # This can be used to rebuild libtool when needed
24448 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24450 # Always use our own libtool.
24451 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24453 # Prevent multiple expansion
24475 etags_version=`$ETAGS --version 2>&1`
24476 case "$etags_version" in
24477 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24478 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24479 *) ETAGSFLAGS="" ;;
24481 ETAGSFLAGS=$ETAGSFLAGS
24484 echo "$as_me:$LINENO: checking tool compatibility" >&5
24485 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24487 if test "$GCC" != "yes"
24489 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24490 echo "$as_me: error: gcc required but not found" >&2;}
24491 { (exit 1); exit 1; }; }
24493 if test "$GXX" != "yes"
24495 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24496 echo "$as_me: error: g++ required but not found" >&2;}
24497 { (exit 1); exit 1; }; }
24500 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24501 if test "$gccmajor" -lt "3"
24503 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24504 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24505 { (exit 1); exit 1; }; }
24508 if test -z "$llvm_cv_gnu_make_command"
24510 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24511 echo "$as_me: error: GNU Make required but not found" >&2;}
24512 { (exit 1); exit 1; }; }
24515 echo "$as_me:$LINENO: result: ok" >&5
24516 echo "${ECHO_T}ok" >&6
24518 if test "$PYTHON" = "false" ; then
24519 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24520 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24522 if test "$QMTEST" = "false" ; then
24523 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24524 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24526 if test "$RUNTEST" = "false" ; then
24527 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24528 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24530 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
24531 pymajor=`echo $pyversion | cut -d. -f1`
24532 pyminor=`echo $pyversion | cut -d. -f2`
24533 if test "$pymajor" -ge "2" ; then
24534 if test "$pymajor" -eq "2" ; then
24535 if test "$pyminor" -lt "2" ; then
24536 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24537 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24541 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
24542 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
24545 echo "$as_me:$LINENO: result: " >&5
24546 echo "${ECHO_T}" >&6
24550 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24551 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24552 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24553 echo $ECHO_N "(cached) $ECHO_C" >&6
24555 ac_check_lib_save_LIBS=$LIBS
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24564 /* Override any gcc2 internal prototype to avoid an error. */
24568 /* We use char because int might match the return type of a gcc2
24569 builtin and then its argument prototype would still apply. */
24579 rm -f conftest.$ac_objext conftest$ac_exeext
24580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24581 (eval $ac_link) 2>conftest.er1
24583 grep -v '^ *+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } &&
24588 { ac_try='test -z "$ac_c_werror_flag"
24589 || test ! -s conftest.err'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; } &&
24595 { ac_try='test -s conftest$ac_exeext'
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 ac_cv_lib_elf_elf_begin=yes
24603 echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24606 ac_cv_lib_elf_elf_begin=no
24608 rm -f conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24610 LIBS=$ac_check_lib_save_LIBS
24612 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24613 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24614 if test $ac_cv_lib_elf_elf_begin = yes; then
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_LIBELF 1
24624 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24625 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24626 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 ac_func_search_save_LIBS=$LIBS
24630 ac_cv_search_lt_dlopen=no
24631 cat >conftest.$ac_ext <<_ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24638 /* Override any gcc2 internal prototype to avoid an error. */
24642 /* We use char because int might match the return type of a gcc2
24643 builtin and then its argument prototype would still apply. */
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24657 grep -v '^ *+' conftest.er1 >conftest.err
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 ac_cv_search_lt_dlopen="none required"
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24681 rm -f conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
24683 if test "$ac_cv_search_lt_dlopen" = no; then
24684 for ac_lib in ltdl; do
24685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24686 cat >conftest.$ac_ext <<_ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h. */
24693 /* Override any gcc2 internal prototype to avoid an error. */
24697 /* We use char because int might match the return type of a gcc2
24698 builtin and then its argument prototype would still apply. */
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24710 (eval $ac_link) 2>conftest.er1
24712 grep -v '^ *+' conftest.er1 >conftest.err
24714 cat conftest.err >&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } &&
24717 { ac_try='test -z "$ac_c_werror_flag"
24718 || test ! -s conftest.err'
24719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720 (eval $ac_try) 2>&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; } &&
24724 { ac_try='test -s conftest$ac_exeext'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; }; then
24730 ac_cv_search_lt_dlopen="-l$ac_lib"
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24737 rm -f conftest.err conftest.$ac_objext \
24738 conftest$ac_exeext conftest.$ac_ext
24741 LIBS=$ac_func_search_save_LIBS
24743 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24744 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24745 if test "$ac_cv_search_lt_dlopen" != no; then
24746 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24748 cat >>confdefs.h <<\_ACEOF
24749 #define HAVE_LT_DLOPEN 1
24753 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24754 not be available" >&5
24755 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24756 not be available" >&2;}
24760 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24761 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24762 if test "${ac_cv_search_dlopen+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24765 ac_func_search_save_LIBS=$LIBS
24766 ac_cv_search_dlopen=no
24767 cat >conftest.$ac_ext <<_ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h. */
24774 /* Override any gcc2 internal prototype to avoid an error. */
24778 /* We use char because int might match the return type of a gcc2
24779 builtin and then its argument prototype would still apply. */
24789 rm -f conftest.$ac_objext conftest$ac_exeext
24790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24791 (eval $ac_link) 2>conftest.er1
24793 grep -v '^ *+' conftest.er1 >conftest.err
24795 cat conftest.err >&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } &&
24798 { ac_try='test -z "$ac_c_werror_flag"
24799 || test ! -s conftest.err'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; } &&
24805 { ac_try='test -s conftest$ac_exeext'
24806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807 (eval $ac_try) 2>&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); }; }; then
24811 ac_cv_search_dlopen="none required"
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24817 rm -f conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
24819 if test "$ac_cv_search_dlopen" = no; then
24820 for ac_lib in dl; do
24821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24829 /* Override any gcc2 internal prototype to avoid an error. */
24833 /* We use char because int might match the return type of a gcc2
24834 builtin and then its argument prototype would still apply. */
24844 rm -f conftest.$ac_objext conftest$ac_exeext
24845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24846 (eval $ac_link) 2>conftest.er1
24848 grep -v '^ *+' conftest.er1 >conftest.err
24850 cat conftest.err >&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } &&
24853 { ac_try='test -z "$ac_c_werror_flag"
24854 || test ! -s conftest.err'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest$ac_exeext'
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
24866 ac_cv_search_dlopen="-l$ac_lib"
24869 echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24873 rm -f conftest.err conftest.$ac_objext \
24874 conftest$ac_exeext conftest.$ac_ext
24877 LIBS=$ac_func_search_save_LIBS
24879 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24880 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24881 if test "$ac_cv_search_dlopen" != no; then
24882 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
24884 cat >>confdefs.h <<\_ACEOF
24885 #define HAVE_DLOPEN 1
24889 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24890 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
24894 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24895 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24896 if test "${ac_cv_search_mallinfo+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24899 ac_func_search_save_LIBS=$LIBS
24900 ac_cv_search_mallinfo=no
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24908 /* Override any gcc2 internal prototype to avoid an error. */
24912 /* We use char because int might match the return type of a gcc2
24913 builtin and then its argument prototype would still apply. */
24923 rm -f conftest.$ac_objext conftest$ac_exeext
24924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24925 (eval $ac_link) 2>conftest.er1
24927 grep -v '^ *+' conftest.er1 >conftest.err
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } &&
24932 { ac_try='test -z "$ac_c_werror_flag"
24933 || test ! -s conftest.err'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest$ac_exeext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ac_cv_search_mallinfo="none required"
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24951 rm -f conftest.err conftest.$ac_objext \
24952 conftest$ac_exeext conftest.$ac_ext
24953 if test "$ac_cv_search_mallinfo" = no; then
24954 for ac_lib in malloc; do
24955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24956 cat >conftest.$ac_ext <<_ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24963 /* Override any gcc2 internal prototype to avoid an error. */
24967 /* We use char because int might match the return type of a gcc2
24968 builtin and then its argument prototype would still apply. */
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24980 (eval $ac_link) 2>conftest.er1
24982 grep -v '^ *+' conftest.er1 >conftest.err
24984 cat conftest.err >&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } &&
24987 { ac_try='test -z "$ac_c_werror_flag"
24988 || test ! -s conftest.err'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; } &&
24994 { ac_try='test -s conftest$ac_exeext'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; }; then
25000 ac_cv_search_mallinfo="-l$ac_lib"
25003 echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25007 rm -f conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
25011 LIBS=$ac_func_search_save_LIBS
25013 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25014 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25015 if test "$ac_cv_search_mallinfo" != no; then
25016 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_MALLINFO 1
25025 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25026 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25027 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25030 ac_func_search_save_LIBS=$LIBS
25031 ac_cv_search_pthread_mutex_lock=no
25032 cat >conftest.$ac_ext <<_ACEOF
25035 cat confdefs.h >>conftest.$ac_ext
25036 cat >>conftest.$ac_ext <<_ACEOF
25037 /* end confdefs.h. */
25039 /* Override any gcc2 internal prototype to avoid an error. */
25043 /* We use char because int might match the return type of a gcc2
25044 builtin and then its argument prototype would still apply. */
25045 char pthread_mutex_lock ();
25049 pthread_mutex_lock ();
25054 rm -f conftest.$ac_objext conftest$ac_exeext
25055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25056 (eval $ac_link) 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } &&
25063 { ac_try='test -z "$ac_c_werror_flag"
25064 || test ! -s conftest.err'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; } &&
25070 { ac_try='test -s conftest$ac_exeext'
25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 ac_cv_search_pthread_mutex_lock="none required"
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25082 rm -f conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
25084 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25085 for ac_lib in pthread; do
25086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25094 /* Override any gcc2 internal prototype to avoid an error. */
25098 /* We use char because int might match the return type of a gcc2
25099 builtin and then its argument prototype would still apply. */
25100 char pthread_mutex_lock ();
25104 pthread_mutex_lock ();
25109 rm -f conftest.$ac_objext conftest$ac_exeext
25110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25111 (eval $ac_link) 2>conftest.er1
25113 grep -v '^ *+' conftest.er1 >conftest.err
25115 cat conftest.err >&5
25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } &&
25118 { ac_try='test -z "$ac_c_werror_flag"
25119 || test ! -s conftest.err'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; } &&
25125 { ac_try='test -s conftest$ac_exeext'
25126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127 (eval $ac_try) 2>&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25134 echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25138 rm -f conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext conftest.$ac_ext
25142 LIBS=$ac_func_search_save_LIBS
25144 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25145 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25146 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25147 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_PTHREAD_MUTEX_LOCK 1
25157 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25158 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25159 if test "${ac_cv_header_stdc+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 #include <stdlib.h>
25169 #include <stdarg.h>
25170 #include <string.h>
25181 rm -f conftest.$ac_objext
25182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25183 (eval $ac_compile) 2>conftest.er1
25185 grep -v '^ *+' conftest.er1 >conftest.err
25187 cat conftest.err >&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
25190 { ac_try='test -z "$ac_c_werror_flag"
25191 || test ! -s conftest.err'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest.$ac_objext'
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_header_stdc=yes
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25208 ac_cv_header_stdc=no
25210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25212 if test $ac_cv_header_stdc = yes; then
25213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25214 cat >conftest.$ac_ext <<_ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25220 #include <string.h>
25223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25224 $EGREP "memchr" >/dev/null 2>&1; then
25227 ac_cv_header_stdc=no
25233 if test $ac_cv_header_stdc = yes; then
25234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25235 cat >conftest.$ac_ext <<_ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h. */
25241 #include <stdlib.h>
25244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25245 $EGREP "free" >/dev/null 2>&1; then
25248 ac_cv_header_stdc=no
25254 if test $ac_cv_header_stdc = yes; then
25255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25256 if test "$cross_compiling" = yes; then
25259 cat >conftest.$ac_ext <<_ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h. */
25266 #if ((' ' & 0x0FF) == 0x020)
25267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25270 # define ISLOWER(c) \
25271 (('a' <= (c) && (c) <= 'i') \
25272 || ('j' <= (c) && (c) <= 'r') \
25273 || ('s' <= (c) && (c) <= 'z'))
25274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25282 for (i = 0; i < 256; i++)
25283 if (XOR (islower (i), ISLOWER (i))
25284 || toupper (i) != TOUPPER (i))
25289 rm -f conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25302 echo "$as_me: program exited with status $ac_status" >&5
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306 ( exit $ac_status )
25307 ac_cv_header_stdc=no
25309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25313 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25314 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25315 if test $ac_cv_header_stdc = yes; then
25317 cat >>confdefs.h <<\_ACEOF
25318 #define STDC_HEADERS 1
25324 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25325 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25326 if test "${ac_cv_header_sys_wait_h+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 cat >conftest.$ac_ext <<_ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 #include <sys/types.h>
25336 #include <sys/wait.h>
25337 #ifndef WEXITSTATUS
25338 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25341 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25349 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25354 rm -f conftest.$ac_objext
25355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25356 (eval $ac_compile) 2>conftest.er1
25358 grep -v '^ *+' conftest.er1 >conftest.err
25360 cat conftest.err >&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); } &&
25363 { ac_try='test -z "$ac_c_werror_flag"
25364 || test ! -s conftest.err'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; } &&
25370 { ac_try='test -s conftest.$ac_objext'
25371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372 (eval $ac_try) 2>&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); }; }; then
25376 ac_cv_header_sys_wait_h=yes
25378 echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25381 ac_cv_header_sys_wait_h=no
25383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25385 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25386 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25387 if test $ac_cv_header_sys_wait_h = yes; then
25389 cat >>confdefs.h <<\_ACEOF
25390 #define HAVE_SYS_WAIT_H 1
25400 for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
25402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25404 echo "$as_me:$LINENO: checking for $ac_header" >&5
25405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25412 # Is the header compilable?
25413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25415 cat >conftest.$ac_ext <<_ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h. */
25421 $ac_includes_default
25422 #include <$ac_header>
25424 rm -f conftest.$ac_objext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25426 (eval $ac_compile) 2>conftest.er1
25428 grep -v '^ *+' conftest.er1 >conftest.err
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -z "$ac_c_werror_flag"
25434 || test ! -s conftest.err'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; } &&
25440 { ac_try='test -s conftest.$ac_objext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 ac_header_compiler=yes
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_header_compiler=no
25453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25455 echo "${ECHO_T}$ac_header_compiler" >&6
25457 # Is the header present?
25458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25460 cat >conftest.$ac_ext <<_ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h. */
25466 #include <$ac_header>
25468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25471 grep -v '^ *+' conftest.er1 >conftest.err
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } >/dev/null; then
25476 if test -s conftest.err; then
25477 ac_cpp_err=$ac_c_preproc_warn_flag
25478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25485 if test -z "$ac_cpp_err"; then
25486 ac_header_preproc=yes
25488 echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25491 ac_header_preproc=no
25493 rm -f conftest.err conftest.$ac_ext
25494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25495 echo "${ECHO_T}$ac_header_preproc" >&6
25497 # So? What about this header?
25498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25504 ac_header_preproc=yes
25507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25521 ## ----------------------------------- ##
25522 ## Report this to llvmbugs@cs.uiuc.edu ##
25523 ## ----------------------------------- ##
25526 sed "s/^/$as_me: WARNING: /" >&2
25529 echo "$as_me:$LINENO: checking for $ac_header" >&5
25530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 eval "$as_ac_Header=\$ac_header_preproc"
25536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25541 cat >>confdefs.h <<_ACEOF
25542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25554 for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
25556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25558 echo "$as_me:$LINENO: checking for $ac_header" >&5
25559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25566 # Is the header compilable?
25567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25569 cat >conftest.$ac_ext <<_ACEOF
25572 cat confdefs.h >>conftest.$ac_ext
25573 cat >>conftest.$ac_ext <<_ACEOF
25574 /* end confdefs.h. */
25575 $ac_includes_default
25576 #include <$ac_header>
25578 rm -f conftest.$ac_objext
25579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580 (eval $ac_compile) 2>conftest.er1
25582 grep -v '^ *+' conftest.er1 >conftest.err
25584 cat conftest.err >&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
25587 { ac_try='test -z "$ac_c_werror_flag"
25588 || test ! -s conftest.err'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest.$ac_objext'
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_header_compiler=yes
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ac_header_compiler=no
25607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25609 echo "${ECHO_T}$ac_header_compiler" >&6
25611 # Is the header present?
25612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25614 cat >conftest.$ac_ext <<_ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 #include <$ac_header>
25622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25625 grep -v '^ *+' conftest.er1 >conftest.err
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } >/dev/null; then
25630 if test -s conftest.err; then
25631 ac_cpp_err=$ac_c_preproc_warn_flag
25632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25639 if test -z "$ac_cpp_err"; then
25640 ac_header_preproc=yes
25642 echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25645 ac_header_preproc=no
25647 rm -f conftest.err conftest.$ac_ext
25648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25649 echo "${ECHO_T}$ac_header_preproc" >&6
25651 # So? What about this header?
25652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25658 ac_header_preproc=yes
25661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25675 ## ----------------------------------- ##
25676 ## Report this to llvmbugs@cs.uiuc.edu ##
25677 ## ----------------------------------- ##
25680 sed "s/^/$as_me: WARNING: /" >&2
25683 echo "$as_me:$LINENO: checking for $ac_header" >&5
25684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25688 eval "$as_ac_Header=\$ac_header_preproc"
25690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25695 cat >>confdefs.h <<_ACEOF
25696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25706 for ac_header in malloc.h unistd.h windows.h
25708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25710 echo "$as_me:$LINENO: checking for $ac_header" >&5
25711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25718 # Is the header compilable?
25719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25721 cat >conftest.$ac_ext <<_ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h. */
25727 $ac_includes_default
25728 #include <$ac_header>
25730 rm -f conftest.$ac_objext
25731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25732 (eval $ac_compile) 2>conftest.er1
25734 grep -v '^ *+' conftest.er1 >conftest.err
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
25739 { ac_try='test -z "$ac_c_werror_flag"
25740 || test ! -s conftest.err'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; } &&
25746 { ac_try='test -s conftest.$ac_objext'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_header_compiler=yes
25754 echo "$as_me: failed program was:" >&5
25755 sed 's/^/| /' conftest.$ac_ext >&5
25757 ac_header_compiler=no
25759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25761 echo "${ECHO_T}$ac_header_compiler" >&6
25763 # Is the header present?
25764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25772 #include <$ac_header>
25774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25777 grep -v '^ *+' conftest.er1 >conftest.err
25779 cat conftest.err >&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } >/dev/null; then
25782 if test -s conftest.err; then
25783 ac_cpp_err=$ac_c_preproc_warn_flag
25784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25791 if test -z "$ac_cpp_err"; then
25792 ac_header_preproc=yes
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 ac_header_preproc=no
25799 rm -f conftest.err conftest.$ac_ext
25800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25801 echo "${ECHO_T}$ac_header_preproc" >&6
25803 # So? What about this header?
25804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25810 ac_header_preproc=yes
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25827 ## ----------------------------------- ##
25828 ## Report this to llvmbugs@cs.uiuc.edu ##
25829 ## ----------------------------------- ##
25832 sed "s/^/$as_me: WARNING: /" >&2
25835 echo "$as_me:$LINENO: checking for $ac_header" >&5
25836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25838 echo $ECHO_N "(cached) $ECHO_C" >&6
25840 eval "$as_ac_Header=\$ac_header_preproc"
25842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25847 cat >>confdefs.h <<_ACEOF
25848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25855 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25856 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25857 if test "${ac_cv_header_time+set}" = set; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25860 cat >conftest.$ac_ext <<_ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h. */
25866 #include <sys/types.h>
25867 #include <sys/time.h>
25873 if ((struct tm *) 0)
25879 rm -f conftest.$ac_objext
25880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25881 (eval $ac_compile) 2>conftest.er1
25883 grep -v '^ *+' conftest.er1 >conftest.err
25885 cat conftest.err >&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); } &&
25888 { ac_try='test -z "$ac_c_werror_flag"
25889 || test ! -s conftest.err'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
25895 { ac_try='test -s conftest.$ac_objext'
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_cv_header_time=yes
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_cv_header_time=no
25908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25910 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25911 echo "${ECHO_T}$ac_cv_header_time" >&6
25912 if test $ac_cv_header_time = yes; then
25914 cat >>confdefs.h <<\_ACEOF
25915 #define TIME_WITH_SYS_TIME 1
25920 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25921 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25922 if test "${ac_cv_header_mmap_anon+set}" = set; then
25923 echo $ECHO_N "(cached) $ECHO_C" >&6
25926 ac_cpp='$CPP $CPPFLAGS'
25927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25931 cat >conftest.$ac_ext <<_ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h. */
25937 #include <sys/mman.h>
25938 #include <unistd.h>
25943 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25948 rm -f conftest.$ac_objext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25950 (eval $ac_compile) 2>conftest.er1
25952 grep -v '^ *+' conftest.er1 >conftest.err
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_c_werror_flag"
25958 || test ! -s conftest.err'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; } &&
25964 { ac_try='test -s conftest.$ac_objext'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; }; then
25970 ac_cv_header_mmap_anon=yes
25972 echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25975 ac_cv_header_mmap_anon=no
25977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25979 ac_cpp='$CPP $CPPFLAGS'
25980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25986 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25987 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25988 if test "$ac_cv_header_mmap_anon" = yes; then
25990 cat >>confdefs.h <<\_ACEOF
25991 #define HAVE_MMAP_ANONYMOUS
25999 for ac_header in inttypes.h stdint.h
26001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26003 echo "$as_me:$LINENO: checking for $ac_header" >&5
26004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26011 # Is the header compilable?
26012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h. */
26020 $ac_includes_default
26021 #include <$ac_header>
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025 (eval $ac_compile) 2>conftest.er1
26027 grep -v '^ *+' conftest.er1 >conftest.err
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try='test -s conftest.$ac_objext'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 ac_header_compiler=yes
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_header_compiler=no
26052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26054 echo "${ECHO_T}$ac_header_compiler" >&6
26056 # Is the header present?
26057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26059 cat >conftest.$ac_ext <<_ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h. */
26065 #include <$ac_header>
26067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26070 grep -v '^ *+' conftest.er1 >conftest.err
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } >/dev/null; then
26075 if test -s conftest.err; then
26076 ac_cpp_err=$ac_c_preproc_warn_flag
26077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26084 if test -z "$ac_cpp_err"; then
26085 ac_header_preproc=yes
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_header_preproc=no
26092 rm -f conftest.err conftest.$ac_ext
26093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26094 echo "${ECHO_T}$ac_header_preproc" >&6
26096 # So? What about this header?
26097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26103 ac_header_preproc=yes
26106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26120 ## ----------------------------------- ##
26121 ## Report this to llvmbugs@cs.uiuc.edu ##
26122 ## ----------------------------------- ##
26125 sed "s/^/$as_me: WARNING: /" >&2
26128 echo "$as_me:$LINENO: checking for $ac_header" >&5
26129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26131 echo $ECHO_N "(cached) $ECHO_C" >&6
26133 eval "$as_ac_Header=\$ac_header_preproc"
26135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26140 cat >>confdefs.h <<_ACEOF
26141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26150 echo "$as_me:$LINENO: checking for pid_t" >&5
26151 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26152 if test "${ac_cv_type_pid_t+set}" = set; then
26153 echo $ECHO_N "(cached) $ECHO_C" >&6
26155 cat >conftest.$ac_ext <<_ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h. */
26161 $ac_includes_default
26167 if (sizeof (pid_t))
26173 rm -f conftest.$ac_objext
26174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26175 (eval $ac_compile) 2>conftest.er1
26177 grep -v '^ *+' conftest.er1 >conftest.err
26179 cat conftest.err >&5
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); } &&
26182 { ac_try='test -z "$ac_c_werror_flag"
26183 || test ! -s conftest.err'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; } &&
26189 { ac_try='test -s conftest.$ac_objext'
26190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; }; then
26195 ac_cv_type_pid_t=yes
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26200 ac_cv_type_pid_t=no
26202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26204 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26205 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26206 if test $ac_cv_type_pid_t = yes; then
26210 cat >>confdefs.h <<_ACEOF
26216 echo "$as_me:$LINENO: checking for size_t" >&5
26217 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26218 if test "${ac_cv_type_size_t+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 cat >conftest.$ac_ext <<_ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h. */
26227 $ac_includes_default
26233 if (sizeof (size_t))
26239 rm -f conftest.$ac_objext
26240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26241 (eval $ac_compile) 2>conftest.er1
26243 grep -v '^ *+' conftest.er1 >conftest.err
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } &&
26248 { ac_try='test -z "$ac_c_werror_flag"
26249 || test ! -s conftest.err'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; } &&
26255 { ac_try='test -s conftest.$ac_objext'
26256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; }; then
26261 ac_cv_type_size_t=yes
26263 echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26266 ac_cv_type_size_t=no
26268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26270 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26271 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26272 if test $ac_cv_type_size_t = yes; then
26276 cat >>confdefs.h <<_ACEOF
26277 #define size_t unsigned
26282 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26283 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26284 if test "${ac_cv_type_signal+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26287 cat >conftest.$ac_ext <<_ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h. */
26293 #include <sys/types.h>
26294 #include <signal.h>
26299 extern "C" void (*signal (int, void (*)(int)))(int);
26301 void (*signal ()) ();
26312 rm -f conftest.$ac_objext
26313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26314 (eval $ac_compile) 2>conftest.er1
26316 grep -v '^ *+' conftest.er1 >conftest.err
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -z "$ac_c_werror_flag"
26322 || test ! -s conftest.err'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; } &&
26328 { ac_try='test -s conftest.$ac_objext'
26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330 (eval $ac_try) 2>&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); }; }; then
26334 ac_cv_type_signal=void
26336 echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26339 ac_cv_type_signal=int
26341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26344 echo "${ECHO_T}$ac_cv_type_signal" >&6
26346 cat >>confdefs.h <<_ACEOF
26347 #define RETSIGTYPE $ac_cv_type_signal
26351 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26352 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26353 if test "${ac_cv_struct_tm+set}" = set; then
26354 echo $ECHO_N "(cached) $ECHO_C" >&6
26356 cat >conftest.$ac_ext <<_ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h. */
26362 #include <sys/types.h>
26368 struct tm *tp; tp->tm_sec;
26373 rm -f conftest.$ac_objext
26374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26375 (eval $ac_compile) 2>conftest.er1
26377 grep -v '^ *+' conftest.er1 >conftest.err
26379 cat conftest.err >&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
26382 { ac_try='test -z "$ac_c_werror_flag"
26383 || test ! -s conftest.err'
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; } &&
26389 { ac_try='test -s conftest.$ac_objext'
26390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391 (eval $ac_try) 2>&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); }; }; then
26395 ac_cv_struct_tm=time.h
26397 echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26400 ac_cv_struct_tm=sys/time.h
26402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26404 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26405 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26406 if test $ac_cv_struct_tm = sys/time.h; then
26408 cat >>confdefs.h <<\_ACEOF
26409 #define TM_IN_SYS_TIME 1
26414 echo "$as_me:$LINENO: checking for int64_t" >&5
26415 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26416 if test "${ac_cv_type_int64_t+set}" = set; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 $ac_includes_default
26431 if (sizeof (int64_t))
26437 rm -f conftest.$ac_objext
26438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26439 (eval $ac_compile) 2>conftest.er1
26441 grep -v '^ *+' conftest.er1 >conftest.err
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } &&
26446 { ac_try='test -z "$ac_c_werror_flag"
26447 || test ! -s conftest.err'
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; } &&
26453 { ac_try='test -s conftest.$ac_objext'
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; }; then
26459 ac_cv_type_int64_t=yes
26461 echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_cv_type_int64_t=no
26466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26468 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26469 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26470 if test $ac_cv_type_int64_t = yes; then
26472 cat >>confdefs.h <<_ACEOF
26473 #define HAVE_INT64_T 1
26478 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26479 echo "$as_me: error: Type int64_t required but not found" >&2;}
26480 { (exit 1); exit 1; }; }
26483 echo "$as_me:$LINENO: checking for uint64_t" >&5
26484 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26485 if test "${ac_cv_type_uint64_t+set}" = set; then
26486 echo $ECHO_N "(cached) $ECHO_C" >&6
26488 cat >conftest.$ac_ext <<_ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h. */
26494 $ac_includes_default
26498 if ((uint64_t *) 0)
26500 if (sizeof (uint64_t))
26506 rm -f conftest.$ac_objext
26507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26508 (eval $ac_compile) 2>conftest.er1
26510 grep -v '^ *+' conftest.er1 >conftest.err
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } &&
26515 { ac_try='test -z "$ac_c_werror_flag"
26516 || test ! -s conftest.err'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } &&
26522 { ac_try='test -s conftest.$ac_objext'
26523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524 (eval $ac_try) 2>&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); }; }; then
26528 ac_cv_type_uint64_t=yes
26530 echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26533 ac_cv_type_uint64_t=no
26535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26537 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26538 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26539 if test $ac_cv_type_uint64_t = yes; then
26541 cat >>confdefs.h <<_ACEOF
26542 #define HAVE_UINT64_T 1
26547 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26548 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26549 if test "${ac_cv_type_u_int64_t+set}" = set; then
26550 echo $ECHO_N "(cached) $ECHO_C" >&6
26552 cat >conftest.$ac_ext <<_ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h. */
26558 $ac_includes_default
26562 if ((u_int64_t *) 0)
26564 if (sizeof (u_int64_t))
26570 rm -f conftest.$ac_objext
26571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26572 (eval $ac_compile) 2>conftest.er1
26574 grep -v '^ *+' conftest.er1 >conftest.err
26576 cat conftest.err >&5
26577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } &&
26579 { ac_try='test -z "$ac_c_werror_flag"
26580 || test ! -s conftest.err'
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; } &&
26586 { ac_try='test -s conftest.$ac_objext'
26587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 (eval $ac_try) 2>&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; }; then
26592 ac_cv_type_u_int64_t=yes
26594 echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26597 ac_cv_type_u_int64_t=no
26599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26601 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26602 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26603 if test $ac_cv_type_u_int64_t = yes; then
26605 cat >>confdefs.h <<_ACEOF
26606 #define HAVE_U_INT64_T 1
26611 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26612 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26613 { (exit 1); exit 1; }; }
26626 for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26629 echo "$as_me:$LINENO: checking for $ac_func" >&5
26630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26631 if eval "test \"\${$as_ac_var+set}\" = set"; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26642 #define $ac_func innocuous_$ac_func
26644 /* System header to define __stub macros and hopefully few prototypes,
26645 which can conflict with char $ac_func (); below.
26646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26647 <limits.h> exists even on freestanding compilers. */
26650 # include <limits.h>
26652 # include <assert.h>
26657 /* Override any gcc2 internal prototype to avoid an error. */
26662 /* We use char because int might match the return type of a gcc2
26663 builtin and then its argument prototype would still apply. */
26665 /* The GNU C library defines this for functions which it implements
26666 to always fail with ENOSYS. Some functions are actually named
26667 something starting with __ and the normal name is an alias. */
26668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26671 char (*f) () = $ac_func;
26680 return f != $ac_func;
26685 rm -f conftest.$ac_objext conftest$ac_exeext
26686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26687 (eval $ac_link) 2>conftest.er1
26689 grep -v '^ *+' conftest.er1 >conftest.err
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } &&
26694 { ac_try='test -z "$ac_c_werror_flag"
26695 || test ! -s conftest.err'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; } &&
26701 { ac_try='test -s conftest$ac_exeext'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; }; then
26707 eval "$as_ac_var=yes"
26709 echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26712 eval "$as_ac_var=no"
26714 rm -f conftest.err conftest.$ac_objext \
26715 conftest$ac_exeext conftest.$ac_ext
26717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26719 if test `eval echo '${'$as_ac_var'}'` = yes; then
26720 cat >>confdefs.h <<_ACEOF
26721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26730 for ac_func in strdup strtoq strtoll
26732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26733 echo "$as_me:$LINENO: checking for $ac_func" >&5
26734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26735 if eval "test \"\${$as_ac_var+set}\" = set"; then
26736 echo $ECHO_N "(cached) $ECHO_C" >&6
26738 cat >conftest.$ac_ext <<_ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26746 #define $ac_func innocuous_$ac_func
26748 /* System header to define __stub macros and hopefully few prototypes,
26749 which can conflict with char $ac_func (); below.
26750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26751 <limits.h> exists even on freestanding compilers. */
26754 # include <limits.h>
26756 # include <assert.h>
26761 /* Override any gcc2 internal prototype to avoid an error. */
26766 /* We use char because int might match the return type of a gcc2
26767 builtin and then its argument prototype would still apply. */
26769 /* The GNU C library defines this for functions which it implements
26770 to always fail with ENOSYS. Some functions are actually named
26771 something starting with __ and the normal name is an alias. */
26772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26775 char (*f) () = $ac_func;
26784 return f != $ac_func;
26789 rm -f conftest.$ac_objext conftest$ac_exeext
26790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26791 (eval $ac_link) 2>conftest.er1
26793 grep -v '^ *+' conftest.er1 >conftest.err
26795 cat conftest.err >&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } &&
26798 { ac_try='test -z "$ac_c_werror_flag"
26799 || test ! -s conftest.err'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; } &&
26805 { ac_try='test -s conftest$ac_exeext'
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; }; then
26811 eval "$as_ac_var=yes"
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26816 eval "$as_ac_var=no"
26818 rm -f conftest.err conftest.$ac_objext \
26819 conftest$ac_exeext conftest.$ac_ext
26821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26823 if test `eval echo '${'$as_ac_var'}'` = yes; then
26824 cat >>confdefs.h <<_ACEOF
26825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26831 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26832 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
26833 if test "${llvm_cv_c_printf_a+set}" = set; then
26834 echo $ECHO_N "(cached) $ECHO_C" >&6
26837 ac_cpp='$CPP $CPPFLAGS'
26838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26842 if test "$cross_compiling" = yes; then
26843 llvmac_cv_c_printf_a=no
26845 cat >conftest.$ac_ext <<_ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h. */
26854 #include <stdlib.h>
26860 volatile double A, B;
26864 sprintf(Buffer, "%a", A);
26868 if (A != 0x1.999999999999ap-4)
26875 rm -f conftest$ac_exeext
26876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26877 (eval $ac_link) 2>&5
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26886 llvm_cv_c_printf_a=yes
26888 echo "$as_me: program exited with status $ac_status" >&5
26889 echo "$as_me: failed program was:" >&5
26890 sed 's/^/| /' conftest.$ac_ext >&5
26892 ( exit $ac_status )
26893 llvmac_cv_c_printf_a=no
26895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26898 ac_cpp='$CPP $CPPFLAGS'
26899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26904 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26905 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26906 if test "$llvm_cv_c_printf_a" = "yes"; then
26908 cat >>confdefs.h <<\_ACEOF
26909 #define HAVE_PRINTF_A 1
26914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26915 # for constant arguments. Useless!
26916 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26917 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26918 if test "${ac_cv_working_alloca_h+set}" = set; then
26919 echo $ECHO_N "(cached) $ECHO_C" >&6
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26927 #include <alloca.h>
26931 char *p = (char *) alloca (2 * sizeof (int));
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26938 (eval $ac_link) 2>conftest.er1
26940 grep -v '^ *+' conftest.er1 >conftest.err
26942 cat conftest.err >&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
26945 { ac_try='test -z "$ac_c_werror_flag"
26946 || test ! -s conftest.err'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; } &&
26952 { ac_try='test -s conftest$ac_exeext'
26953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954 (eval $ac_try) 2>&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); }; }; then
26958 ac_cv_working_alloca_h=yes
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ac_cv_working_alloca_h=no
26965 rm -f conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26969 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26970 if test $ac_cv_working_alloca_h = yes; then
26972 cat >>confdefs.h <<\_ACEOF
26973 #define HAVE_ALLOCA_H 1
26978 echo "$as_me:$LINENO: checking for alloca" >&5
26979 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26980 if test "${ac_cv_func_alloca_works+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 cat >conftest.$ac_ext <<_ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26990 # define alloca __builtin_alloca
26993 # include <malloc.h>
26994 # define alloca _alloca
26997 # include <alloca.h>
27002 # ifndef alloca /* predefined by HP cc +Olibcalls */
27013 char *p = (char *) alloca (1);
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27020 (eval $ac_link) 2>conftest.er1
27022 grep -v '^ *+' conftest.er1 >conftest.err
27024 cat conftest.err >&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
27027 { ac_try='test -z "$ac_c_werror_flag"
27028 || test ! -s conftest.err'
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest$ac_exeext'
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27040 ac_cv_func_alloca_works=yes
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27045 ac_cv_func_alloca_works=no
27047 rm -f conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27050 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27051 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27053 if test $ac_cv_func_alloca_works = yes; then
27055 cat >>confdefs.h <<\_ACEOF
27056 #define HAVE_ALLOCA 1
27060 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27061 # that cause trouble. Some versions do not even contain alloca or
27062 # contain a buggy version. If you still want to use their alloca,
27063 # use ar to extract alloca.o from them instead of compiling alloca.c.
27065 ALLOCA=alloca.$ac_objext
27067 cat >>confdefs.h <<\_ACEOF
27072 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27073 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27074 if test "${ac_cv_os_cray+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27077 cat >conftest.$ac_ext <<_ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h. */
27083 #if defined(CRAY) && ! defined(CRAY2)
27090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091 $EGREP "webecray" >/dev/null 2>&1; then
27099 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27100 echo "${ECHO_T}$ac_cv_os_cray" >&6
27101 if test $ac_cv_os_cray = yes; then
27102 for ac_func in _getb67 GETB67 getb67; do
27103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27104 echo "$as_me:$LINENO: checking for $ac_func" >&5
27105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27106 if eval "test \"\${$as_ac_var+set}\" = set"; then
27107 echo $ECHO_N "(cached) $ECHO_C" >&6
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27117 #define $ac_func innocuous_$ac_func
27119 /* System header to define __stub macros and hopefully few prototypes,
27120 which can conflict with char $ac_func (); below.
27121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27122 <limits.h> exists even on freestanding compilers. */
27125 # include <limits.h>
27127 # include <assert.h>
27132 /* Override any gcc2 internal prototype to avoid an error. */
27137 /* We use char because int might match the return type of a gcc2
27138 builtin and then its argument prototype would still apply. */
27140 /* The GNU C library defines this for functions which it implements
27141 to always fail with ENOSYS. Some functions are actually named
27142 something starting with __ and the normal name is an alias. */
27143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27146 char (*f) () = $ac_func;
27155 return f != $ac_func;
27160 rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27162 (eval $ac_link) 2>conftest.er1
27164 grep -v '^ *+' conftest.er1 >conftest.err
27166 cat conftest.err >&5
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); } &&
27169 { ac_try='test -z "$ac_c_werror_flag"
27170 || test ! -s conftest.err'
27171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27172 (eval $ac_try) 2>&5
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; } &&
27176 { ac_try='test -s conftest$ac_exeext'
27177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178 (eval $ac_try) 2>&5
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); }; }; then
27182 eval "$as_ac_var=yes"
27184 echo "$as_me: failed program was:" >&5
27185 sed 's/^/| /' conftest.$ac_ext >&5
27187 eval "$as_ac_var=no"
27189 rm -f conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
27192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27194 if test `eval echo '${'$as_ac_var'}'` = yes; then
27196 cat >>confdefs.h <<_ACEOF
27197 #define CRAY_STACKSEG_END $ac_func
27206 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27207 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27208 if test "${ac_cv_c_stack_direction+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 if test "$cross_compiling" = yes; then
27212 ac_cv_c_stack_direction=0
27214 cat >conftest.$ac_ext <<_ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h. */
27221 find_stack_direction ()
27223 static char *addr = 0;
27228 return find_stack_direction ();
27231 return (&dummy > addr) ? 1 : -1;
27237 exit (find_stack_direction () < 0);
27240 rm -f conftest$ac_exeext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27242 (eval $ac_link) 2>&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
27251 ac_cv_c_stack_direction=1
27253 echo "$as_me: program exited with status $ac_status" >&5
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27257 ( exit $ac_status )
27258 ac_cv_c_stack_direction=-1
27260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27263 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27264 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27266 cat >>confdefs.h <<_ACEOF
27267 #define STACK_DIRECTION $ac_cv_c_stack_direction
27274 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27275 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27276 if test "${ac_cv_func_rand48+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27280 ac_cpp='$CXXCPP $CPPFLAGS'
27281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27285 cat >conftest.$ac_ext <<_ACEOF
27288 cat confdefs.h >>conftest.$ac_ext
27289 cat >>conftest.$ac_ext <<_ACEOF
27290 /* end confdefs.h. */
27291 #include <stdlib.h>
27295 srand48(0);lrand48();drand48();
27300 rm -f conftest.$ac_objext
27301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27302 (eval $ac_compile) 2>conftest.er1
27304 grep -v '^ *+' conftest.er1 >conftest.err
27306 cat conftest.err >&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } &&
27309 { ac_try='test -z "$ac_cxx_werror_flag"
27310 || test ! -s conftest.err'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; } &&
27316 { ac_try='test -s conftest.$ac_objext'
27317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318 (eval $ac_try) 2>&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; }; then
27322 ac_cv_func_rand48=yes
27324 echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27327 ac_cv_func_rand48=no
27329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27331 ac_cpp='$CPP $CPPFLAGS'
27332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27337 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27338 echo "${ECHO_T}$ac_cv_func_rand48" >&6
27340 if test "$ac_cv_func_rand48" = "yes" ; then
27342 cat >>confdefs.h <<\_ACEOF
27343 #define HAVE_RAND48 1
27349 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27350 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27351 if test "${ac_cv_cxx_namespaces+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27355 ac_cpp='$CXXCPP $CPPFLAGS'
27356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27360 cat >conftest.$ac_ext <<_ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h. */
27366 namespace Outer { namespace Inner { int i = 0; }}
27370 using namespace Outer::Inner; return i;
27375 rm -f conftest.$ac_objext
27376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27377 (eval $ac_compile) 2>conftest.er1
27379 grep -v '^ *+' conftest.er1 >conftest.err
27381 cat conftest.err >&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); } &&
27384 { ac_try='test -z "$ac_cxx_werror_flag"
27385 || test ! -s conftest.err'
27386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; } &&
27391 { ac_try='test -s conftest.$ac_objext'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; }; then
27397 ac_cv_cxx_namespaces=yes
27399 echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27402 ac_cv_cxx_namespaces=no
27404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27406 ac_cpp='$CPP $CPPFLAGS'
27407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27413 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27414 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27415 if test "$ac_cv_cxx_namespaces" = yes; then
27417 cat >>confdefs.h <<\_ACEOF
27418 #define HAVE_NAMESPACES
27423 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27424 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27425 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27430 ac_cpp='$CXXCPP $CPPFLAGS'
27431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 #include <ext/hash_map>
27442 #ifdef HAVE_NAMESPACES
27443 using namespace std;
27448 hash_map<int, int> t;
27453 rm -f conftest.$ac_objext
27454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27455 (eval $ac_compile) 2>conftest.er1
27457 grep -v '^ *+' conftest.er1 >conftest.err
27459 cat conftest.err >&5
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); } &&
27462 { ac_try='test -z "$ac_cxx_werror_flag"
27463 || test ! -s conftest.err'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest.$ac_objext'
27470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 ac_cv_cxx_have_std_ext_hash_map=yes
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27480 ac_cv_cxx_have_std_ext_hash_map=no
27482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27484 ac_cpp='$CPP $CPPFLAGS'
27485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27490 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27491 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
27492 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27495 cat >>confdefs.h <<\_ACEOF
27496 #define HAVE_STD_EXT_HASH_MAP 1
27501 cat >>confdefs.h <<\_ACEOF
27502 #define HAVE_STD_EXT_HASH_MAP 0
27507 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27508 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27509 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27514 ac_cpp='$CXXCPP $CPPFLAGS'
27515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 #include <ext/hash_map>
27526 #ifdef HAVE_NAMESPACES
27527 using namespace __gnu_cxx;
27532 hash_map<int,int> t;
27537 rm -f conftest.$ac_objext
27538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27539 (eval $ac_compile) 2>conftest.er1
27541 grep -v '^ *+' conftest.er1 >conftest.err
27543 cat conftest.err >&5
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } &&
27546 { ac_try='test -z "$ac_cxx_werror_flag"
27547 || test ! -s conftest.err'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; } &&
27553 { ac_try='test -s conftest.$ac_objext'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 ac_cv_cxx_have_gnu_ext_hash_map=yes
27561 echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27564 ac_cv_cxx_have_gnu_ext_hash_map=no
27566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27568 ac_cpp='$CPP $CPPFLAGS'
27569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27574 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27575 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
27576 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27579 cat >>confdefs.h <<\_ACEOF
27580 #define HAVE_GNU_EXT_HASH_MAP 1
27585 cat >>confdefs.h <<\_ACEOF
27586 #define HAVE_GNU_EXT_HASH_MAP 0
27591 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27592 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27593 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27594 echo $ECHO_N "(cached) $ECHO_C" >&6
27598 ac_cpp='$CXXCPP $CPPFLAGS'
27599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27603 cat >conftest.$ac_ext <<_ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h. */
27609 #include <hash_map>
27613 hash_map<int,int> t;
27618 rm -f conftest.$ac_objext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27620 (eval $ac_compile) 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_cxx_werror_flag"
27628 || test ! -s conftest.err'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; } &&
27634 { ac_try='test -s conftest.$ac_objext'
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; }; then
27640 ac_cv_cxx_have_global_hash_map=yes
27642 echo "$as_me: failed program was:" >&5
27643 sed 's/^/| /' conftest.$ac_ext >&5
27645 ac_cv_cxx_have_global_hash_map=no
27647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27649 ac_cpp='$CPP $CPPFLAGS'
27650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27655 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27656 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
27657 if test "$ac_cv_cxx_have_global_hash_map" = yes
27660 cat >>confdefs.h <<\_ACEOF
27661 #define HAVE_GLOBAL_HASH_MAP 1
27666 cat >>confdefs.h <<\_ACEOF
27667 #define HAVE_GLOBAL_HASH_MAP 0
27672 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27673 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27674 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
27675 echo $ECHO_N "(cached) $ECHO_C" >&6
27679 ac_cpp='$CXXCPP $CPPFLAGS'
27680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27684 cat >conftest.$ac_ext <<_ACEOF
27687 cat confdefs.h >>conftest.$ac_ext
27688 cat >>conftest.$ac_ext <<_ACEOF
27689 /* end confdefs.h. */
27690 #include <ext/hash_set>
27691 #ifdef HAVE_NAMESPACES
27692 using namespace std;
27702 rm -f conftest.$ac_objext
27703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27704 (eval $ac_compile) 2>conftest.er1
27706 grep -v '^ *+' conftest.er1 >conftest.err
27708 cat conftest.err >&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
27711 { ac_try='test -z "$ac_cxx_werror_flag"
27712 || test ! -s conftest.err'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; } &&
27718 { ac_try='test -s conftest.$ac_objext'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724 ac_cv_cxx_have_std_ext_hash_set=yes
27726 echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 ac_cv_cxx_have_std_ext_hash_set=no
27731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27733 ac_cpp='$CPP $CPPFLAGS'
27734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27739 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27740 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
27741 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_STD_EXT_HASH_SET 1
27750 cat >>confdefs.h <<\_ACEOF
27751 #define HAVE_STD_EXT_HASH_SET 0
27756 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27757 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27758 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27759 echo $ECHO_N "(cached) $ECHO_C" >&6
27763 ac_cpp='$CXXCPP $CPPFLAGS'
27764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27768 cat >conftest.$ac_ext <<_ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 #include <ext/hash_set>
27775 #ifdef HAVE_NAMESPACES
27776 using namespace __gnu_cxx;
27786 rm -f conftest.$ac_objext
27787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27788 (eval $ac_compile) 2>conftest.er1
27790 grep -v '^ *+' conftest.er1 >conftest.err
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } &&
27795 { ac_try='test -z "$ac_cxx_werror_flag"
27796 || test ! -s conftest.err'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; } &&
27802 { ac_try='test -s conftest.$ac_objext'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 ac_cv_cxx_have_gnu_ext_hash_set=yes
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ac_cv_cxx_have_gnu_ext_hash_set=no
27815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27817 ac_cpp='$CPP $CPPFLAGS'
27818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27823 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27824 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
27825 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27828 cat >>confdefs.h <<\_ACEOF
27829 #define HAVE_GNU_EXT_HASH_SET 1
27834 cat >>confdefs.h <<\_ACEOF
27835 #define HAVE_GNU_EXT_HASH_SET 0
27840 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27841 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27842 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27843 echo $ECHO_N "(cached) $ECHO_C" >&6
27847 ac_cpp='$CXXCPP $CPPFLAGS'
27848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27852 cat >conftest.$ac_ext <<_ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27858 #include <hash_set>
27862 hash_set<int> t; return 0;
27867 rm -f conftest.$ac_objext
27868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27869 (eval $ac_compile) 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } &&
27876 { ac_try='test -z "$ac_cxx_werror_flag"
27877 || test ! -s conftest.err'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest.$ac_objext'
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; }; then
27889 ac_cv_cxx_have_global_hash_set=yes
27891 echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27894 ac_cv_cxx_have_global_hash_set=no
27896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27898 ac_cpp='$CPP $CPPFLAGS'
27899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27904 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27905 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
27906 if test "$ac_cv_cxx_have_global_hash_set" = yes
27909 cat >>confdefs.h <<\_ACEOF
27910 #define HAVE_GLOBAL_HASH_SET 1
27915 cat >>confdefs.h <<\_ACEOF
27916 #define HAVE_GLOBAL_HASH_SET 0
27921 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27922 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27923 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 ac_cpp='$CXXCPP $CPPFLAGS'
27929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27933 cat >conftest.$ac_ext <<_ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939 #include <iterator>
27940 #ifdef HAVE_NAMESPACES
27941 using namespace std;
27946 iterator<int,int,int> t; return 0;
27951 rm -f conftest.$ac_objext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27953 (eval $ac_compile) 2>conftest.er1
27955 grep -v '^ *+' conftest.er1 >conftest.err
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_cxx_werror_flag"
27961 || test ! -s conftest.err'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; } &&
27967 { ac_try='test -s conftest.$ac_objext'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 ac_cv_cxx_have_std_iterator=yes
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 ac_cv_cxx_have_std_iterator=no
27980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27982 ac_cpp='$CPP $CPPFLAGS'
27983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27989 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27990 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
27991 if test "$ac_cv_cxx_have_std_iterator" = yes
27994 cat >>confdefs.h <<\_ACEOF
27995 #define HAVE_STD_ITERATOR 1
28000 cat >>confdefs.h <<\_ACEOF
28001 #define HAVE_STD_ITERATOR 0
28006 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28007 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28008 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28013 ac_cpp='$CXXCPP $CPPFLAGS'
28014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28018 cat >conftest.$ac_ext <<_ACEOF
28021 cat confdefs.h >>conftest.$ac_ext
28022 cat >>conftest.$ac_ext <<_ACEOF
28023 /* end confdefs.h. */
28024 #include <iterator>
28025 #ifdef HAVE_NAMESPACES
28026 using namespace std;
28031 bidirectional_iterator<int,int> t; return 0;
28036 rm -f conftest.$ac_objext
28037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28038 (eval $ac_compile) 2>conftest.er1
28040 grep -v '^ *+' conftest.er1 >conftest.err
28042 cat conftest.err >&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } &&
28045 { ac_try='test -z "$ac_cxx_werror_flag"
28046 || test ! -s conftest.err'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest.$ac_objext'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_cv_cxx_have_bi_iterator=yes
28060 echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28063 ac_cv_cxx_have_bi_iterator=no
28065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28067 ac_cpp='$CPP $CPPFLAGS'
28068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28074 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28075 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28076 if test "$ac_cv_cxx_have_bi_iterator" = yes
28079 cat >>confdefs.h <<\_ACEOF
28080 #define HAVE_BI_ITERATOR 1
28085 cat >>confdefs.h <<\_ACEOF
28086 #define HAVE_BI_ITERATOR 0
28091 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28092 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28093 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 ac_cpp='$CXXCPP $CPPFLAGS'
28099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28103 cat >conftest.$ac_ext <<_ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h. */
28109 #include <iterator>
28110 #ifdef HAVE_NAMESPACES
28111 using namespace std;
28116 forward_iterator<int,int> t; return 0;
28121 rm -f conftest.$ac_objext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28123 (eval $ac_compile) 2>conftest.er1
28125 grep -v '^ *+' conftest.er1 >conftest.err
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
28130 { ac_try='test -z "$ac_cxx_werror_flag"
28131 || test ! -s conftest.err'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; } &&
28137 { ac_try='test -s conftest.$ac_objext'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28143 ac_cv_cxx_have_fwd_iterator=yes
28145 echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28148 ac_cv_cxx_have_fwd_iterator=no
28150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28152 ac_cpp='$CPP $CPPFLAGS'
28153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28160 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28161 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28164 cat >>confdefs.h <<\_ACEOF
28165 #define HAVE_FWD_ITERATOR 1
28170 cat >>confdefs.h <<\_ACEOF
28171 #define HAVE_FWD_ITERATOR 0
28177 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28178 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28179 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28180 echo $ECHO_N "(cached) $ECHO_C" >&6
28183 ac_cpp='$CXXCPP $CPPFLAGS'
28184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28188 cat >conftest.$ac_ext <<_ACEOF
28191 cat confdefs.h >>conftest.$ac_ext
28192 cat >>conftest.$ac_ext <<_ACEOF
28193 /* end confdefs.h. */
28203 rm -f conftest.$ac_objext
28204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28205 (eval $ac_compile) 2>conftest.er1
28207 grep -v '^ *+' conftest.er1 >conftest.err
28209 cat conftest.err >&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } &&
28212 { ac_try='test -z "$ac_cxx_werror_flag"
28213 || test ! -s conftest.err'
28214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try='test -s conftest.$ac_objext'
28220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221 (eval $ac_try) 2>&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; }; then
28225 ac_cv_func_isnan_in_math_h=yes
28227 echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28230 ac_cv_func_isnan_in_math_h=no
28232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28234 ac_cpp='$CPP $CPPFLAGS'
28235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28240 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28241 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
28244 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
28246 cat >>confdefs.h <<\_ACEOF
28247 #define HAVE_ISNAN_IN_MATH_H 1
28252 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28253 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28254 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28258 ac_cpp='$CXXCPP $CPPFLAGS'
28259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28263 cat >conftest.$ac_ext <<_ACEOF
28266 cat confdefs.h >>conftest.$ac_ext
28267 cat >>conftest.$ac_ext <<_ACEOF
28268 /* end confdefs.h. */
28278 rm -f conftest.$ac_objext
28279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28280 (eval $ac_compile) 2>conftest.er1
28282 grep -v '^ *+' conftest.er1 >conftest.err
28284 cat conftest.err >&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
28287 { ac_try='test -z "$ac_cxx_werror_flag"
28288 || test ! -s conftest.err'
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest.$ac_objext'
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 ac_cv_func_isnan_in_cmath=yes
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28305 ac_cv_func_isnan_in_cmath=no
28307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28309 ac_cpp='$CPP $CPPFLAGS'
28310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28315 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28316 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
28318 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_ISNAN_IN_CMATH 1
28326 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28327 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28328 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28332 ac_cpp='$CXXCPP $CPPFLAGS'
28333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28337 cat >conftest.$ac_ext <<_ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h. */
28347 float f; std::isnan(f);
28352 rm -f conftest.$ac_objext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28354 (eval $ac_compile) 2>conftest.er1
28356 grep -v '^ *+' conftest.er1 >conftest.err
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
28361 { ac_try='test -z "$ac_cxx_werror_flag"
28362 || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 ac_cv_func_std_isnan_in_cmath=yes
28376 echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28379 ac_cv_func_std_isnan_in_cmath=no
28381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28383 ac_cpp='$CPP $CPPFLAGS'
28384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28389 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28390 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
28392 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_STD_ISNAN_IN_CMATH 1
28401 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28402 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28403 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28407 ac_cpp='$CXXCPP $CPPFLAGS'
28408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28412 cat >conftest.$ac_ext <<_ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h. */
28427 rm -f conftest.$ac_objext
28428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28429 (eval $ac_compile) 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } &&
28436 { ac_try='test -z "$ac_cxx_werror_flag"
28437 || test ! -s conftest.err'
28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439 (eval $ac_try) 2>&5
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; } &&
28443 { ac_try='test -s conftest.$ac_objext'
28444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; }; then
28449 ac_cv_func_isinf_in_math_h=yes
28451 echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28454 ac_cv_func_isinf_in_math_h=no
28456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28458 ac_cpp='$CPP $CPPFLAGS'
28459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28464 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28465 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
28467 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
28469 cat >>confdefs.h <<\_ACEOF
28470 #define HAVE_ISINF_IN_MATH_H 1
28475 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28476 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28477 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28481 ac_cpp='$CXXCPP $CPPFLAGS'
28482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28486 cat >conftest.$ac_ext <<_ACEOF
28489 cat confdefs.h >>conftest.$ac_ext
28490 cat >>conftest.$ac_ext <<_ACEOF
28491 /* end confdefs.h. */
28501 rm -f conftest.$ac_objext
28502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28503 (eval $ac_compile) 2>conftest.er1
28505 grep -v '^ *+' conftest.er1 >conftest.err
28507 cat conftest.err >&5
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } &&
28510 { ac_try='test -z "$ac_cxx_werror_flag"
28511 || test ! -s conftest.err'
28512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513 (eval $ac_try) 2>&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; } &&
28517 { ac_try='test -s conftest.$ac_objext'
28518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519 (eval $ac_try) 2>&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); }; }; then
28523 ac_cv_func_isinf_in_cmath=yes
28525 echo "$as_me: failed program was:" >&5
28526 sed 's/^/| /' conftest.$ac_ext >&5
28528 ac_cv_func_isinf_in_cmath=no
28530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28532 ac_cpp='$CPP $CPPFLAGS'
28533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28538 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28539 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
28541 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
28543 cat >>confdefs.h <<\_ACEOF
28544 #define HAVE_ISINF_IN_CMATH 1
28549 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28550 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28551 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28552 echo $ECHO_N "(cached) $ECHO_C" >&6
28555 ac_cpp='$CXXCPP $CPPFLAGS'
28556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28560 cat >conftest.$ac_ext <<_ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28570 float f; std::isinf(f)}
28575 rm -f conftest.$ac_objext
28576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28577 (eval $ac_compile) 2>conftest.er1
28579 grep -v '^ *+' conftest.er1 >conftest.err
28581 cat conftest.err >&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } &&
28584 { ac_try='test -z "$ac_cxx_werror_flag"
28585 || test ! -s conftest.err'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; } &&
28591 { ac_try='test -s conftest.$ac_objext'
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28597 ac_cv_func_std_isinf_in_cmath=yes
28599 echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28602 ac_cv_func_std_isinf_in_cmath=no
28604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28606 ac_cpp='$CPP $CPPFLAGS'
28607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28612 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28613 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
28615 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
28617 cat >>confdefs.h <<\_ACEOF
28618 #define HAVE_STD_ISINF_IN_CMATH 1
28623 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28624 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28625 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28626 echo $ECHO_N "(cached) $ECHO_C" >&6
28629 ac_cpp='$CXXCPP $CPPFLAGS'
28630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28634 cat >conftest.$ac_ext <<_ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h. */
28640 #include <ieeefp.h>
28644 float f; finite(f);
28649 rm -f conftest.$ac_objext
28650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28651 (eval $ac_compile) 2>conftest.er1
28653 grep -v '^ *+' conftest.er1 >conftest.err
28655 cat conftest.err >&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); } &&
28658 { ac_try='test -z "$ac_cxx_werror_flag"
28659 || test ! -s conftest.err'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; } &&
28665 { ac_try='test -s conftest.$ac_objext'
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_func_finite_in_ieeefp_h=yes
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28676 ac_cv_func_finite_in_ieeefp_h=no
28678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28680 ac_cpp='$CPP $CPPFLAGS'
28681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28686 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28687 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
28689 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
28691 cat >>confdefs.h <<\_ACEOF
28692 #define HAVE_FINITE_IN_IEEEFP_H 1
28701 for ac_header in stdlib.h unistd.h
28703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28705 echo "$as_me:$LINENO: checking for $ac_header" >&5
28706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28713 # Is the header compilable?
28714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28716 cat >conftest.$ac_ext <<_ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h. */
28722 $ac_includes_default
28723 #include <$ac_header>
28725 rm -f conftest.$ac_objext
28726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28727 (eval $ac_compile) 2>conftest.er1
28729 grep -v '^ *+' conftest.er1 >conftest.err
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
28734 { ac_try='test -z "$ac_c_werror_flag"
28735 || test ! -s conftest.err'
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; } &&
28741 { ac_try='test -s conftest.$ac_objext'
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; }; then
28747 ac_header_compiler=yes
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28752 ac_header_compiler=no
28754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28756 echo "${ECHO_T}$ac_header_compiler" >&6
28758 # Is the header present?
28759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28761 cat >conftest.$ac_ext <<_ACEOF
28764 cat confdefs.h >>conftest.$ac_ext
28765 cat >>conftest.$ac_ext <<_ACEOF
28766 /* end confdefs.h. */
28767 #include <$ac_header>
28769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } >/dev/null; then
28777 if test -s conftest.err; then
28778 ac_cpp_err=$ac_c_preproc_warn_flag
28779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28786 if test -z "$ac_cpp_err"; then
28787 ac_header_preproc=yes
28789 echo "$as_me: failed program was:" >&5
28790 sed 's/^/| /' conftest.$ac_ext >&5
28792 ac_header_preproc=no
28794 rm -f conftest.err conftest.$ac_ext
28795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28796 echo "${ECHO_T}$ac_header_preproc" >&6
28798 # So? What about this header?
28799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28805 ac_header_preproc=yes
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28822 ## ----------------------------------- ##
28823 ## Report this to llvmbugs@cs.uiuc.edu ##
28824 ## ----------------------------------- ##
28827 sed "s/^/$as_me: WARNING: /" >&2
28830 echo "$as_me:$LINENO: checking for $ac_header" >&5
28831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28835 eval "$as_ac_Header=\$ac_header_preproc"
28837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842 cat >>confdefs.h <<_ACEOF
28843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28851 for ac_func in getpagesize
28853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28854 echo "$as_me:$LINENO: checking for $ac_func" >&5
28855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28856 if eval "test \"\${$as_ac_var+set}\" = set"; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28867 #define $ac_func innocuous_$ac_func
28869 /* System header to define __stub macros and hopefully few prototypes,
28870 which can conflict with char $ac_func (); below.
28871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28872 <limits.h> exists even on freestanding compilers. */
28875 # include <limits.h>
28877 # include <assert.h>
28882 /* Override any gcc2 internal prototype to avoid an error. */
28887 /* We use char because int might match the return type of a gcc2
28888 builtin and then its argument prototype would still apply. */
28890 /* The GNU C library defines this for functions which it implements
28891 to always fail with ENOSYS. Some functions are actually named
28892 something starting with __ and the normal name is an alias. */
28893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28896 char (*f) () = $ac_func;
28905 return f != $ac_func;
28910 rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28912 (eval $ac_link) 2>conftest.er1
28914 grep -v '^ *+' conftest.er1 >conftest.err
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } &&
28919 { ac_try='test -z "$ac_c_werror_flag"
28920 || test ! -s conftest.err'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; } &&
28926 { ac_try='test -s conftest$ac_exeext'
28927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928 (eval $ac_try) 2>&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 eval "$as_ac_var=yes"
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 eval "$as_ac_var=no"
28939 rm -f conftest.err conftest.$ac_objext \
28940 conftest$ac_exeext conftest.$ac_ext
28942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28944 if test `eval echo '${'$as_ac_var'}'` = yes; then
28945 cat >>confdefs.h <<_ACEOF
28946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28952 echo "$as_me:$LINENO: checking for working mmap" >&5
28953 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28954 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28957 if test "$cross_compiling" = yes; then
28958 ac_cv_func_mmap_fixed_mapped=no
28960 cat >conftest.$ac_ext <<_ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28966 $ac_includes_default
28967 /* malloc might have been renamed as rpl_malloc. */
28970 /* Thanks to Mike Haertel and Jim Avera for this test.
28971 Here is a matrix of mmap possibilities:
28972 mmap private not fixed
28973 mmap private fixed at somewhere currently unmapped
28974 mmap private fixed at somewhere already mapped
28975 mmap shared not fixed
28976 mmap shared fixed at somewhere currently unmapped
28977 mmap shared fixed at somewhere already mapped
28978 For private mappings, we should verify that changes cannot be read()
28979 back from the file, nor mmap's back from the file at a different
28980 address. (There have been systems where private was not correctly
28981 implemented like the infamous i386 svr4.0, and systems where the
28982 VM page cache was not coherent with the file system buffer cache
28983 like early versions of FreeBSD and possibly contemporary NetBSD.)
28984 For shared mappings, we should conversely verify that changes get
28985 propagated back to all the places they're supposed to be.
28987 Grep wants private fixed already mapped.
28988 The main things grep needs to know about mmap are:
28989 * does it exist and is it safe to write into the mmap'd area
28990 * how to use it (BSD variants) */
28993 #include <sys/mman.h>
28995 #if !STDC_HEADERS && !HAVE_STDLIB_H
28999 /* This mess was copied from the GNU getpagesize.h. */
29000 #if !HAVE_GETPAGESIZE
29001 /* Assume that all systems that can run configure have sys/param.h. */
29002 # if !HAVE_SYS_PARAM_H
29003 # define HAVE_SYS_PARAM_H 1
29006 # ifdef _SC_PAGESIZE
29007 # define getpagesize() sysconf(_SC_PAGESIZE)
29008 # else /* no _SC_PAGESIZE */
29009 # if HAVE_SYS_PARAM_H
29010 # include <sys/param.h>
29011 # ifdef EXEC_PAGESIZE
29012 # define getpagesize() EXEC_PAGESIZE
29013 # else /* no EXEC_PAGESIZE */
29015 # define getpagesize() NBPG * CLSIZE
29018 # endif /* no CLSIZE */
29019 # else /* no NBPG */
29021 # define getpagesize() NBPC
29022 # else /* no NBPC */
29024 # define getpagesize() PAGESIZE
29025 # endif /* PAGESIZE */
29026 # endif /* no NBPC */
29027 # endif /* no NBPG */
29028 # endif /* no EXEC_PAGESIZE */
29029 # else /* no HAVE_SYS_PARAM_H */
29030 # define getpagesize() 8192 /* punt totally */
29031 # endif /* no HAVE_SYS_PARAM_H */
29032 # endif /* no _SC_PAGESIZE */
29034 #endif /* no HAVE_GETPAGESIZE */
29039 char *data, *data2, *data3;
29043 pagesize = getpagesize ();
29045 /* First, make a file with some known garbage in it. */
29046 data = (char *) malloc (pagesize);
29049 for (i = 0; i < pagesize; ++i)
29050 *(data + i) = rand ();
29052 fd = creat ("conftest.mmap", 0600);
29055 if (write (fd, data, pagesize) != pagesize)
29059 /* Next, try to mmap the file at a fixed address which already has
29060 something else allocated at it. If we can, also make sure that
29061 we see the same garbage. */
29062 fd = open ("conftest.mmap", O_RDWR);
29065 data2 = (char *) malloc (2 * pagesize);
29068 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29069 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29070 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29072 for (i = 0; i < pagesize; ++i)
29073 if (*(data + i) != *(data2 + i))
29076 /* Finally, make sure that changes to the mapped area do not
29077 percolate back to the file as seen by read(). (This is a bug on
29078 some variants of i386 svr4.0.) */
29079 for (i = 0; i < pagesize; ++i)
29080 *(data2 + i) = *(data2 + i) + 1;
29081 data3 = (char *) malloc (pagesize);
29084 if (read (fd, data3, pagesize) != pagesize)
29086 for (i = 0; i < pagesize; ++i)
29087 if (*(data + i) != *(data3 + i))
29093 rm -f conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095 (eval $ac_link) 2>&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100 (eval $ac_try) 2>&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; }; then
29104 ac_cv_func_mmap_fixed_mapped=yes
29106 echo "$as_me: program exited with status $ac_status" >&5
29107 echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29110 ( exit $ac_status )
29111 ac_cv_func_mmap_fixed_mapped=no
29113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29116 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29117 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29120 cat >>confdefs.h <<\_ACEOF
29121 #define HAVE_MMAP 1
29125 rm -f conftest.mmap
29127 echo "$as_me:$LINENO: checking for mmap of files" >&5
29128 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29129 if test "${ac_cv_func_mmap_file+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29133 ac_cpp='$CPP $CPPFLAGS'
29134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29138 if test "$cross_compiling" = yes; then
29139 ac_cv_func_mmap_file=no
29141 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29149 #include <sys/types.h>
29150 #include <sys/mman.h>
29158 fd = creat ("foo",0777);
29159 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29161 return (fd != (int) MAP_FAILED);
29166 rm -f conftest$ac_exeext
29167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29168 (eval $ac_link) 2>&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; }; then
29177 ac_cv_func_mmap_file=yes
29179 echo "$as_me: program exited with status $ac_status" >&5
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ( exit $ac_status )
29184 ac_cv_func_mmap_file=no
29186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29189 ac_cpp='$CPP $CPPFLAGS'
29190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29196 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29197 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29198 if test "$ac_cv_func_mmap_file" = yes; then
29200 cat >>confdefs.h <<\_ACEOF
29201 #define HAVE_MMAP_FILE
29208 echo "$as_me:$LINENO: checking for mprotect" >&5
29209 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29210 if test "${ac_cv_func_mprotect+set}" = set; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29213 cat >conftest.$ac_ext <<_ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h. */
29219 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29221 #define mprotect innocuous_mprotect
29223 /* System header to define __stub macros and hopefully few prototypes,
29224 which can conflict with char mprotect (); below.
29225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29226 <limits.h> exists even on freestanding compilers. */
29229 # include <limits.h>
29231 # include <assert.h>
29236 /* Override any gcc2 internal prototype to avoid an error. */
29241 /* We use char because int might match the return type of a gcc2
29242 builtin and then its argument prototype would still apply. */
29244 /* The GNU C library defines this for functions which it implements
29245 to always fail with ENOSYS. Some functions are actually named
29246 something starting with __ and the normal name is an alias. */
29247 #if defined (__stub_mprotect) || defined (__stub___mprotect)
29250 char (*f) () = mprotect;
29259 return f != mprotect;
29264 rm -f conftest.$ac_objext conftest$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266 (eval $ac_link) 2>conftest.er1
29268 grep -v '^ *+' conftest.er1 >conftest.err
29270 cat conftest.err >&5
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
29273 { ac_try='test -z "$ac_c_werror_flag"
29274 || test ! -s conftest.err'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest$ac_exeext'
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_func_mprotect=yes
29288 echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29291 ac_cv_func_mprotect=no
29293 rm -f conftest.err conftest.$ac_objext \
29294 conftest$ac_exeext conftest.$ac_ext
29296 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29297 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29298 if test $ac_cv_func_mprotect = yes; then
29301 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29302 echo "$as_me: error: Function mprotect() required but not found" >&2;}
29303 { (exit 1); exit 1; }; }
29307 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
29309 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29310 echo "$as_me: WARNING: mmap() required but not found" >&2;}
29312 if test "$ac_cv_func_mmap_file" = "no"
29314 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29315 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
29319 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29320 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
29321 if test "${llvm_cv_llvmgcc+set}" = set; then
29322 echo $ECHO_N "(cached) $ECHO_C" >&6
29324 llvm_cv_llvmgcc='llvmgcc_not_found'
29325 if test -d "$LLVMGCCDIR" ; then
29326 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29327 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29331 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29332 echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29334 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29335 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
29336 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29337 echo $ECHO_N "(cached) $ECHO_C" >&6
29339 llvm_cv_llvmgcc_sanity="no"
29340 if test -x "$llvm_cv_llvmgcc" ; then
29341 cp /dev/null conftest.c
29342 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29343 if test $? -eq 0 ; then
29344 llvm_cv_llvmgcc_sanity="yes"
29349 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29350 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29352 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29353 LLVMGCC="$llvm_cv_llvmgcc"
29355 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29356 LLVMCC1=$llvmcc1path
29358 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29359 LLVMCC1PLUS=$llvmcc1pluspath
29363 SHLIBEXT=$libltdl_cv_shlibext
29366 # Translate the various configuration directories and other basic
29367 # information into substitutions that will end up in Makefile.config.in
29368 # that these configured values can be used by the makefiles
29369 eval LLVM_PREFIX="${prefix}";
29370 eval LLVM_BINDIR="${prefix}/bin";
29371 eval LLVM_LIBDIR="${prefix}/lib";
29372 eval LLVM_DATADIR="${prefix}/share/llvm";
29373 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29374 eval LLVM_ETCDIR="${prefix}/etc/llvm";
29375 eval LLVM_INCLUDEDIR="${prefix}/include";
29376 eval LLVM_INFODIR="${prefix}/info";
29377 eval LLVM_MANDIR="${prefix}/man";
29378 LLVM_CONFIGTIME=`date`
29390 # Place the various directores into the config.h file as #defines so that we
29391 # can know about the installation paths within LLVM.
29393 cat >>confdefs.h <<_ACEOF
29394 #define LLVM_PREFIX "$LLVM_PREFIX"
29398 cat >>confdefs.h <<_ACEOF
29399 #define LLVM_BINDIR "$LLVM_BINDIR"
29403 cat >>confdefs.h <<_ACEOF
29404 #define LLVM_LIBDIR "$LLVM_LIBDIR"
29408 cat >>confdefs.h <<_ACEOF
29409 #define LLVM_DATADIR "$LLVM_DATADIR"
29413 cat >>confdefs.h <<_ACEOF
29414 #define LLVM_DATADIR "$LLVM_DOCSDIR"
29418 cat >>confdefs.h <<_ACEOF
29419 #define LLVM_ETCDIR "$LLVM_ETCDIR"
29423 cat >>confdefs.h <<_ACEOF
29424 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29428 cat >>confdefs.h <<_ACEOF
29429 #define LLVM_INFODIR "$LLVM_INFODIR"
29433 cat >>confdefs.h <<_ACEOF
29434 #define LLVM_MANDIR "$LLVM_MANDIR"
29438 cat >>confdefs.h <<_ACEOF
29439 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29444 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29447 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29449 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29451 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29453 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29455 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29458 ac_config_files="$ac_config_files Makefile.config"
29461 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29464 ac_config_files="$ac_config_files docs/doxygen.cfg"
29467 ac_config_commands="$ac_config_commands Makefile"
29470 ac_config_commands="$ac_config_commands Makefile.common"
29473 ac_config_commands="$ac_config_commands examples/Makefile"
29476 ac_config_commands="$ac_config_commands lib/Makefile"
29479 ac_config_commands="$ac_config_commands runtime/Makefile"
29482 ac_config_commands="$ac_config_commands test/Makefile"
29485 ac_config_commands="$ac_config_commands test/Makefile.tests"
29488 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29491 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29494 ac_config_commands="$ac_config_commands tools/Makefile"
29497 ac_config_commands="$ac_config_commands utils/Makefile"
29500 ac_config_commands="$ac_config_commands projects/Makefile"
29504 cat >confcache <<\_ACEOF
29505 # This file is a shell script that caches the results of configure
29506 # tests run on this system so they can be shared between configure
29507 # scripts and configure runs, see configure's option --config-cache.
29508 # It is not useful on other systems. If it contains results you don't
29509 # want to keep, you may remove or edit it.
29511 # config.status only pays attention to the cache file if you give it
29512 # the --recheck option to rerun configure.
29514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29516 # following values.
29520 # The following way of writing the cache mishandles newlines in values,
29521 # but we know of no workaround that is simple, portable, and efficient.
29522 # So, don't put newlines in cache variables' values.
29523 # Ultrix sh set writes to stderr and can't be redirected directly,
29524 # and sets the high bit in the cache file unless we assign to the vars.
29527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29529 # `set' does not quote correctly, so add quotes (double-quote
29530 # substitution turns \\\\ into \\, and sed turns \\ into \).
29533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29536 # `set' quotes correctly as required by POSIX, so do not add quotes.
29538 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29547 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29549 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29550 if test -w $cache_file; then
29551 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29552 cat confcache >$cache_file
29554 echo "not updating unwritable cache $cache_file"
29559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29560 # Let make expand exec_prefix.
29561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29563 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29564 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29565 # trailing colons and then remove the whole line if VPATH becomes empty
29566 # (actually we leave an empty line to preserve line numbers).
29567 if test "x$srcdir" = x.; then
29568 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29569 s/:*\$(srcdir):*/:/;
29570 s/:*\${srcdir}:*/:/;
29572 s/^\([^=]*=[ ]*\):*/\1/;
29578 DEFS=-DHAVE_CONFIG_H
29582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29583 # 1. Remove the extension, and $U if already installed.
29584 ac_i=`echo "$ac_i" |
29585 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29587 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29588 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29590 LIBOBJS=$ac_libobjs
29592 LTLIBOBJS=$ac_ltlibobjs
29595 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29596 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29597 Usually this means the macro was only invoked conditionally." >&5
29598 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29599 Usually this means the macro was only invoked conditionally." >&2;}
29600 { (exit 1); exit 1; }; }
29602 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29603 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29604 Usually this means the macro was only invoked conditionally." >&5
29605 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29606 Usually this means the macro was only invoked conditionally." >&2;}
29607 { (exit 1); exit 1; }; }
29610 : ${CONFIG_STATUS=./config.status}
29611 ac_clean_files_save=$ac_clean_files
29612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29615 cat >$CONFIG_STATUS <<_ACEOF
29617 # Generated by $as_me.
29618 # Run this file to recreate the current configuration.
29619 # Compiler output produced by configure, useful for debugging
29620 # configure, is in config.log if it exists.
29623 ac_cs_recheck=false
29625 SHELL=\${CONFIG_SHELL-$SHELL}
29628 cat >>$CONFIG_STATUS <<\_ACEOF
29629 ## --------------------- ##
29630 ## M4sh Initialization. ##
29631 ## --------------------- ##
29633 # Be Bourne compatible
29634 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29637 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29638 # is contrary to our usage. Disable this feature.
29639 alias -g '${1+"$@"}'='"$@"'
29640 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29643 DUALCASE=1; export DUALCASE # for MKS sh
29645 # Support unset when possible.
29646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29653 # Work around bugs in pre-3.0 UWIN ksh.
29654 $as_unset ENV MAIL MAILPATH
29661 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29662 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29663 LC_TELEPHONE LC_TIME
29665 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29666 eval $as_var=C; export $as_var
29672 # Required to use basename.
29673 if expr a : '\(a\)' >/dev/null 2>&1; then
29679 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29680 as_basename=basename
29686 # Name of the executable.
29687 as_me=`$as_basename "$0" ||
29688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29689 X"$0" : 'X\(//\)$' \| \
29690 X"$0" : 'X\(/\)$' \| \
29691 . : '\(.\)' 2>/dev/null ||
29693 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29694 /^X\/\(\/\/\)$/{ s//\1/; q; }
29695 /^X\/\(\/\).*/{ s//\1/; q; }
29699 # PATH needs CR, and LINENO needs CR and PATH.
29700 # Avoid depending upon Character Ranges.
29701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29704 as_cr_digits='0123456789'
29705 as_cr_alnum=$as_cr_Letters$as_cr_digits
29707 # The user is always right.
29708 if test "${PATH_SEPARATOR+set}" != set; then
29709 echo "#! /bin/sh" >conf$$.sh
29710 echo "exit 0" >>conf$$.sh
29712 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29721 as_lineno_1=$LINENO
29722 as_lineno_2=$LINENO
29723 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29724 test "x$as_lineno_1" != "x$as_lineno_2" &&
29725 test "x$as_lineno_3" = "x$as_lineno_2" || {
29726 # Find who we are. Look in the path if we contain no path at all
29729 *[\\/]* ) as_myself=$0 ;;
29730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29731 for as_dir in $PATH
29734 test -z "$as_dir" && as_dir=.
29735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29740 # We did not find ourselves, most probably we were run as `sh COMMAND'
29741 # in which case we are not to be found in the path.
29742 if test "x$as_myself" = x; then
29745 if test ! -f "$as_myself"; then
29746 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29747 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29748 { (exit 1); exit 1; }; }
29750 case $CONFIG_SHELL in
29752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29753 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29756 test -z "$as_dir" && as_dir=.
29757 for as_base in sh bash ksh sh5; do
29760 if ("$as_dir/$as_base" -c '
29761 as_lineno_1=$LINENO
29762 as_lineno_2=$LINENO
29763 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29764 test "x$as_lineno_1" != "x$as_lineno_2" &&
29765 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29766 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29767 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29768 CONFIG_SHELL=$as_dir/$as_base
29769 export CONFIG_SHELL
29770 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29778 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29779 # uniformly replaced by the line number. The first 'sed' inserts a
29780 # line-number line before each line; the second 'sed' does the real
29781 # work. The second script uses 'N' to pair each line-number line
29782 # with the numbered line, and appends trailing '-' during
29783 # substitution so that $LINENO is not a special case at line end.
29784 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29785 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29786 sed '=' <$as_myself |
29791 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29794 s,^['$as_cr_digits']*\n,,
29795 ' >$as_me.lineno &&
29796 chmod +x $as_me.lineno ||
29797 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29798 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29799 { (exit 1); exit 1; }; }
29801 # Don't try to exec as it changes $[0], causing all sort of problems
29802 # (the dirname of $[0] is not the place where we might find the
29803 # original and so on. Autoconf is especially sensible to this).
29805 # Exit status is that of the last command.
29810 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29811 *c*,-n*) ECHO_N= ECHO_C='
29813 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29814 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29817 if expr a : '\(a\)' >/dev/null 2>&1; then
29823 rm -f conf$$ conf$$.exe conf$$.file
29825 if ln -s conf$$.file conf$$ 2>/dev/null; then
29826 # We could just check for DJGPP; but this test a) works b) is more generic
29827 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29828 if test -f conf$$.exe; then
29829 # Don't use ln at all; we don't have any links
29834 elif ln conf$$.file conf$$ 2>/dev/null; then
29839 rm -f conf$$ conf$$.exe conf$$.file
29841 if mkdir -p . 2>/dev/null; then
29844 test -d ./-p && rmdir ./-p
29848 as_executable_p="test -f"
29850 # Sed expression to map a string onto a valid CPP name.
29851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29853 # Sed expression to map a string onto a valid variable name.
29854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29858 # We need space, tab and new line, in precisely that order.
29868 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29869 # report actual input values of CONFIG_FILES etc. instead of their
29870 # values after options handling. Logging --version etc. is OK.
29874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29875 ## Running $as_me. ##
29880 This file was extended by llvm $as_me 1.4, which was
29881 generated by GNU Autoconf 2.59. Invocation command line was
29883 CONFIG_FILES = $CONFIG_FILES
29884 CONFIG_HEADERS = $CONFIG_HEADERS
29885 CONFIG_LINKS = $CONFIG_LINKS
29886 CONFIG_COMMANDS = $CONFIG_COMMANDS
29890 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29894 # Files that config.status was made for.
29895 if test -n "$ac_config_files"; then
29896 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29899 if test -n "$ac_config_headers"; then
29900 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29903 if test -n "$ac_config_links"; then
29904 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29907 if test -n "$ac_config_commands"; then
29908 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29911 cat >>$CONFIG_STATUS <<\_ACEOF
29914 \`$as_me' instantiates files from templates according to the
29915 current configuration.
29917 Usage: $0 [OPTIONS] [FILE]...
29919 -h, --help print this help, then exit
29920 -V, --version print version number, then exit
29921 -q, --quiet do not print progress messages
29922 -d, --debug don't remove temporary files
29923 --recheck update $as_me by reconfiguring in the same conditions
29924 --file=FILE[:TEMPLATE]
29925 instantiate the configuration file FILE
29926 --header=FILE[:TEMPLATE]
29927 instantiate the configuration header FILE
29929 Configuration files:
29932 Configuration headers:
29935 Configuration links:
29938 Configuration commands:
29941 Report bugs to <bug-autoconf@gnu.org>."
29944 cat >>$CONFIG_STATUS <<_ACEOF
29946 llvm config.status 1.4
29947 configured by $0, generated by GNU Autoconf 2.59,
29948 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29950 Copyright (C) 2003 Free Software Foundation, Inc.
29951 This config.status script is free software; the Free Software Foundation
29952 gives unlimited permission to copy, distribute and modify it."
29957 cat >>$CONFIG_STATUS <<\_ACEOF
29958 # If no file are specified by the user, then we need to provide default
29959 # value. By we need to know if files were specified by the user.
29965 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29966 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29974 *) # This is not an option, so the user has probably given explicit
29977 ac_need_defaults=false;;
29981 # Handling of the options.
29983 cat >>$CONFIG_STATUS <<\_ACEOF
29984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29986 --version | --vers* | -V )
29987 echo "$ac_cs_version"; exit 0 ;;
29989 # Conflict between --help and --header
29990 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29991 Try \`$0 --help' for more information." >&5
29992 echo "$as_me: error: ambiguous option: $1
29993 Try \`$0 --help' for more information." >&2;}
29994 { (exit 1); exit 1; }; };;
29995 --help | --hel | -h )
29996 echo "$ac_cs_usage"; exit 0 ;;
29997 --debug | --d* | -d )
29999 --file | --fil | --fi | --f )
30001 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30002 ac_need_defaults=false;;
30003 --header | --heade | --head | --hea )
30005 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30006 ac_need_defaults=false;;
30007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30008 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30011 # This is an error.
30012 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30013 Try \`$0 --help' for more information." >&5
30014 echo "$as_me: error: unrecognized option: $1
30015 Try \`$0 --help' for more information." >&2;}
30016 { (exit 1); exit 1; }; } ;;
30018 *) ac_config_targets="$ac_config_targets $1" ;;
30024 ac_configure_extra_args=
30026 if $ac_cs_silent; then
30028 ac_configure_extra_args="$ac_configure_extra_args --silent"
30032 cat >>$CONFIG_STATUS <<_ACEOF
30033 if \$ac_cs_recheck; then
30034 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30035 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30040 cat >>$CONFIG_STATUS <<_ACEOF
30042 # INIT-COMMANDS section.
30045 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30046 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30047 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30048 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30049 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30050 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30051 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30052 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30053 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
30054 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30055 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30056 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30062 cat >>$CONFIG_STATUS <<\_ACEOF
30063 for ac_config_target in $ac_config_targets
30065 case "$ac_config_target" in
30066 # Handling of arguments.
30067 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30068 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30069 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30070 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30071 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30072 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30073 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
30074 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30075 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30076 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30077 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30078 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30079 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30080 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30081 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30082 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
30083 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30084 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30085 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30086 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30087 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30088 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30089 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30090 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30091 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30092 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30093 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30094 { (exit 1); exit 1; }; };;
30098 # If the user did not use the arguments to specify the items to instantiate,
30099 # then the envvar interface is used. Set only those that are not.
30100 # We use the long form for the default assignment because of an extremely
30101 # bizarre bug on SunOS 4.1.3.
30102 if $ac_need_defaults; then
30103 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30104 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30105 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30109 # Have a temporary directory for convenience. Make it in the build tree
30110 # simply because there is no reason to put it here, and in addition,
30111 # creating and moving files from /tmp can sometimes cause problems.
30112 # Create a temporary directory, and hook for its removal unless debugging.
30115 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30116 trap '{ (exit 1); exit 1; }' 1 2 13 15
30119 # Create a (secure) tmp directory for tmp files.
30122 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30123 test -n "$tmp" && test -d "$tmp"
30126 tmp=./confstat$$-$RANDOM
30127 (umask 077 && mkdir $tmp)
30130 echo "$me: cannot create a temporary directory in ." >&2
30131 { (exit 1); exit 1; }
30136 cat >>$CONFIG_STATUS <<_ACEOF
30139 # CONFIG_FILES section.
30142 # No need to generate the scripts if there are no CONFIG_FILES.
30143 # This happens for instance when ./config.status config.h
30144 if test -n "\$CONFIG_FILES"; then
30145 # Protect against being on the right side of a sed subst in config.status.
30146 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30147 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30148 s,@SHELL@,$SHELL,;t t
30149 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30150 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30151 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30152 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30153 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30154 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30155 s,@exec_prefix@,$exec_prefix,;t t
30156 s,@prefix@,$prefix,;t t
30157 s,@program_transform_name@,$program_transform_name,;t t
30158 s,@bindir@,$bindir,;t t
30159 s,@sbindir@,$sbindir,;t t
30160 s,@libexecdir@,$libexecdir,;t t
30161 s,@datadir@,$datadir,;t t
30162 s,@sysconfdir@,$sysconfdir,;t t
30163 s,@sharedstatedir@,$sharedstatedir,;t t
30164 s,@localstatedir@,$localstatedir,;t t
30165 s,@libdir@,$libdir,;t t
30166 s,@includedir@,$includedir,;t t
30167 s,@oldincludedir@,$oldincludedir,;t t
30168 s,@infodir@,$infodir,;t t
30169 s,@mandir@,$mandir,;t t
30170 s,@build_alias@,$build_alias,;t t
30171 s,@host_alias@,$host_alias,;t t
30172 s,@target_alias@,$target_alias,;t t
30173 s,@DEFS@,$DEFS,;t t
30174 s,@ECHO_C@,$ECHO_C,;t t
30175 s,@ECHO_N@,$ECHO_N,;t t
30176 s,@ECHO_T@,$ECHO_T,;t t
30177 s,@LIBS@,$LIBS,;t t
30178 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30179 s,@subdirs@,$subdirs,;t t
30180 s,@build@,$build,;t t
30181 s,@build_cpu@,$build_cpu,;t t
30182 s,@build_vendor@,$build_vendor,;t t
30183 s,@build_os@,$build_os,;t t
30184 s,@host@,$host,;t t
30185 s,@host_cpu@,$host_cpu,;t t
30186 s,@host_vendor@,$host_vendor,;t t
30187 s,@host_os@,$host_os,;t t
30188 s,@target@,$target,;t t
30189 s,@target_cpu@,$target_cpu,;t t
30190 s,@target_vendor@,$target_vendor,;t t
30191 s,@target_os@,$target_os,;t t
30193 s,@ARCH@,$ARCH,;t t
30194 s,@ENDIAN@,$ENDIAN,;t t
30196 s,@CFLAGS@,$CFLAGS,;t t
30197 s,@LDFLAGS@,$LDFLAGS,;t t
30198 s,@CPPFLAGS@,$CPPFLAGS,;t t
30199 s,@ac_ct_CC@,$ac_ct_CC,;t t
30200 s,@EXEEXT@,$EXEEXT,;t t
30201 s,@OBJEXT@,$OBJEXT,;t t
30202 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30204 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
30205 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
30208 s,@CXXFLAGS@,$CXXFLAGS,;t t
30209 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30211 s,@LEXLIB@,$LEXLIB,;t t
30212 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
30213 s,@FLEX@,$FLEX,;t t
30214 s,@YACC@,$YACC,;t t
30215 s,@BISON@,$BISON,;t t
30216 s,@ifGNUmake@,$ifGNUmake,;t t
30217 s,@LN_S@,$LN_S,;t t
30218 s,@DATE@,$DATE,;t t
30219 s,@FIND@,$FIND,;t t
30220 s,@GREP@,$GREP,;t t
30221 s,@MKDIR@,$MKDIR,;t t
30224 s,@RANLIB@,$RANLIB,;t t
30225 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30229 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30230 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30231 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30232 s,@BZIP2@,$BZIP2,;t t
30234 s,@DOXYGEN@,$DOXYGEN,;t t
30235 s,@ETAGS@,$ETAGS,;t t
30236 s,@GROFF@,$GROFF,;t t
30237 s,@GZIP@,$GZIP,;t t
30238 s,@POD2HTML@,$POD2HTML,;t t
30239 s,@POD2MAN@,$POD2MAN,;t t
30240 s,@PYTHON@,$PYTHON,;t t
30241 s,@QMTEST@,$QMTEST,;t t
30242 s,@RUNTEST@,$RUNTEST,;t t
30244 s,@EGREP@,$EGREP,;t t
30245 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30246 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30247 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30248 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30249 s,@LIBADD_DL@,$LIBADD_DL,;t t
30250 s,@ECHO@,$ECHO,;t t
30252 s,@ac_ct_AR@,$ac_ct_AR,;t t
30253 s,@STRIP@,$STRIP,;t t
30254 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30255 s,@CXXCPP@,$CXXCPP,;t t
30257 s,@FFLAGS@,$FFLAGS,;t t
30258 s,@ac_ct_F77@,$ac_ct_F77,;t t
30259 s,@LIBTOOL@,$LIBTOOL,;t t
30260 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
30261 s,@ALLOCA@,$ALLOCA,;t t
30262 s,@MMAP_FILE@,$MMAP_FILE,;t t
30263 s,@LLVMGCC@,$LLVMGCC,;t t
30264 s,@LLVMCC1@,$LLVMCC1,;t t
30265 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
30266 s,@SHLIBEXT@,$SHLIBEXT,;t t
30267 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30268 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30269 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30270 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30271 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30272 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30273 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30274 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30275 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30276 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
30277 s,@LIBOBJS@,$LIBOBJS,;t t
30278 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30283 cat >>$CONFIG_STATUS <<\_ACEOF
30284 # Split the substitutions into bite-sized pieces for seds with
30285 # small command number limits, like on Digital OSF/1 and HP-UX.
30286 ac_max_sed_lines=48
30287 ac_sed_frag=1 # Number of current file.
30288 ac_beg=1 # First line for current file.
30289 ac_end=$ac_max_sed_lines # Line after last line for current file.
30292 while $ac_more_lines; do
30293 if test $ac_beg -gt 1; then
30294 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30296 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30298 if test ! -s $tmp/subs.frag; then
30299 ac_more_lines=false
30301 # The purpose of the label and of the branching condition is to
30302 # speed up the sed processing (if there are no `@' at all, there
30303 # is no need to browse any of the substitutions).
30304 # These are the two extra sed commands mentioned above.
30306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30307 if test -z "$ac_sed_cmds"; then
30308 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30310 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30312 ac_sed_frag=`expr $ac_sed_frag + 1`
30314 ac_end=`expr $ac_end + $ac_max_sed_lines`
30317 if test -z "$ac_sed_cmds"; then
30320 fi # test -n "$CONFIG_FILES"
30323 cat >>$CONFIG_STATUS <<\_ACEOF
30324 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30325 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30327 - | *:- | *:-:* ) # input from stdin
30329 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30331 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30333 * ) ac_file_in=$ac_file.in ;;
30336 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30337 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30339 X"$ac_file" : 'X\(//\)[^/]' \| \
30340 X"$ac_file" : 'X\(//\)$' \| \
30341 X"$ac_file" : 'X\(/\)' \| \
30342 . : '\(.\)' 2>/dev/null ||
30344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30346 /^X\(\/\/\)$/{ s//\1/; q; }
30347 /^X\(\/\).*/{ s//\1/; q; }
30349 { if $as_mkdir_p; then
30354 while test ! -d "$as_dir"; do
30355 as_dirs="$as_dir $as_dirs"
30356 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30358 X"$as_dir" : 'X\(//\)[^/]' \| \
30359 X"$as_dir" : 'X\(//\)$' \| \
30360 X"$as_dir" : 'X\(/\)' \| \
30361 . : '\(.\)' 2>/dev/null ||
30363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30365 /^X\(\/\/\)$/{ s//\1/; q; }
30366 /^X\(\/\).*/{ s//\1/; q; }
30369 test ! -n "$as_dirs" || mkdir $as_dirs
30370 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30371 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30372 { (exit 1); exit 1; }; }; }
30376 if test "$ac_dir" != .; then
30377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30378 # A "../" for each directory in $ac_dir_suffix.
30379 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30381 ac_dir_suffix= ac_top_builddir=
30385 .) # No --srcdir option. We are building in place.
30387 if test -z "$ac_top_builddir"; then
30390 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30392 [\\/]* | ?:[\\/]* ) # Absolute path.
30393 ac_srcdir=$srcdir$ac_dir_suffix;
30394 ac_top_srcdir=$srcdir ;;
30395 *) # Relative path.
30396 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30397 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30400 # Do not use `cd foo && pwd` to compute absolute paths, because
30401 # the directories may not exist.
30403 .) ac_abs_builddir="$ac_dir";;
30406 .) ac_abs_builddir=`pwd`;;
30407 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30408 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30411 case $ac_abs_builddir in
30412 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30414 case ${ac_top_builddir}. in
30415 .) ac_abs_top_builddir=$ac_abs_builddir;;
30416 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30417 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30420 case $ac_abs_builddir in
30421 .) ac_abs_srcdir=$ac_srcdir;;
30424 .) ac_abs_srcdir=$ac_abs_builddir;;
30425 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30426 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30429 case $ac_abs_builddir in
30430 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30432 case $ac_top_srcdir in
30433 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30434 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30435 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30442 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30445 if test x"$ac_file" != x-; then
30446 { echo "$as_me:$LINENO: creating $ac_file" >&5
30447 echo "$as_me: creating $ac_file" >&6;}
30450 # Let's still pretend it is `configure' which instantiates (i.e., don't
30451 # use $as_me), people would be surprised to read:
30452 # /* config.h. Generated by config.status. */
30453 if test x"$ac_file" = x-; then
30456 configure_input="$ac_file. "
30458 configure_input=$configure_input"Generated from `echo $ac_file_in |
30459 sed 's,.*/,,'` by configure."
30461 # First look for the input files in the build tree, otherwise in the
30463 ac_file_inputs=`IFS=:
30464 for f in $ac_file_in; do
30466 -) echo $tmp/stdin ;;
30468 # Absolute (can't be DOS-style, as IFS=:)
30469 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30470 echo "$as_me: error: cannot find input file: $f" >&2;}
30471 { (exit 1); exit 1; }; }
30474 if test -f "$f"; then
30477 elif test -f "$srcdir/$f"; then
30482 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30483 echo "$as_me: error: cannot find input file: $f" >&2;}
30484 { (exit 1); exit 1; }; }
30487 done` || { (exit 1); exit 1; }
30489 cat >>$CONFIG_STATUS <<_ACEOF
30493 cat >>$CONFIG_STATUS <<\_ACEOF
30495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30496 s,@configure_input@,$configure_input,;t t
30497 s,@srcdir@,$ac_srcdir,;t t
30498 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30499 s,@top_srcdir@,$ac_top_srcdir,;t t
30500 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30501 s,@builddir@,$ac_builddir,;t t
30502 s,@abs_builddir@,$ac_abs_builddir,;t t
30503 s,@top_builddir@,$ac_top_builddir,;t t
30504 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30505 s,@INSTALL@,$ac_INSTALL,;t t
30506 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30508 if test x"$ac_file" != x-; then
30509 mv $tmp/out $ac_file
30517 cat >>$CONFIG_STATUS <<\_ACEOF
30520 # CONFIG_HEADER section.
30523 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30524 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30526 # ac_d sets the value in "#define NAME VALUE" lines.
30527 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30528 ac_dB='[ ].*$,\1#\2'
30531 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30532 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30533 ac_uB='$,\1#\2define\3'
30537 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30540 - | *:- | *:-:* ) # input from stdin
30542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30546 * ) ac_file_in=$ac_file.in ;;
30549 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30550 echo "$as_me: creating $ac_file" >&6;}
30552 # First look for the input files in the build tree, otherwise in the
30554 ac_file_inputs=`IFS=:
30555 for f in $ac_file_in; do
30557 -) echo $tmp/stdin ;;
30559 # Absolute (can't be DOS-style, as IFS=:)
30560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30561 echo "$as_me: error: cannot find input file: $f" >&2;}
30562 { (exit 1); exit 1; }; }
30563 # Do quote $f, to prevent DOS paths from being IFS'd.
30566 if test -f "$f"; then
30569 elif test -f "$srcdir/$f"; then
30574 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30575 echo "$as_me: error: cannot find input file: $f" >&2;}
30576 { (exit 1); exit 1; }; }
30579 done` || { (exit 1); exit 1; }
30580 # Remove the trailing spaces.
30581 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30585 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30586 # `conftest.undefs', that substitutes the proper values into
30587 # config.h.in to produce config.h. The first handles `#define'
30588 # templates, and the second `#undef' templates.
30589 # And first: Protect against being on the right side of a sed subst in
30590 # config.status. Protect against being in an unquoted here document
30591 # in config.status.
30592 rm -f conftest.defines conftest.undefs
30593 # Using a here document instead of a string reduces the quoting nightmare.
30594 # Putting comments in sed scripts is not portable.
30596 # `end' is used to avoid that the second main sed command (meant for
30597 # 0-ary CPP macros) applies to n-ary macro definitions.
30598 # See the Autoconf documentation for `clear'.
30599 cat >confdef2sed.sed <<\_ACEOF
30604 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30606 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30609 # If some macros were called several times there might be several times
30610 # the same #defines, which is useless. Nevertheless, we may not want to
30611 # sort them, since we want the *last* AC-DEFINE to be honored.
30612 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30613 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30614 rm -f confdef2sed.sed
30616 # This sed command replaces #undef with comments. This is necessary, for
30617 # example, in the case of _POSIX_SOURCE, which is predefined and required
30618 # on some systems where configure will not decide to define it.
30619 cat >>conftest.undefs <<\_ACEOF
30620 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30623 # Break up conftest.defines because some shells have a limit on the size
30624 # of here documents, and old seds have small limits too (100 cmds).
30625 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30626 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30627 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30628 echo ' :' >>$CONFIG_STATUS
30629 rm -f conftest.tail
30630 while grep . conftest.defines >/dev/null
30632 # Write a limited-size here document to $tmp/defines.sed.
30633 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30634 # Speed up: don't consider the non `#define' lines.
30635 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30636 # Work around the forget-to-reset-the-flag bug.
30637 echo 't clr' >>$CONFIG_STATUS
30638 echo ': clr' >>$CONFIG_STATUS
30639 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30641 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30643 mv $tmp/out $tmp/in
30645 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30646 rm -f conftest.defines
30647 mv conftest.tail conftest.defines
30649 rm -f conftest.defines
30650 echo ' fi # grep' >>$CONFIG_STATUS
30651 echo >>$CONFIG_STATUS
30653 # Break up conftest.undefs because some shells have a limit on the size
30654 # of here documents, and old seds have small limits too (100 cmds).
30655 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30656 rm -f conftest.tail
30657 while grep . conftest.undefs >/dev/null
30659 # Write a limited-size here document to $tmp/undefs.sed.
30660 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30661 # Speed up: don't consider the non `#undef'
30662 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30663 # Work around the forget-to-reset-the-flag bug.
30664 echo 't clr' >>$CONFIG_STATUS
30665 echo ': clr' >>$CONFIG_STATUS
30666 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30668 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30670 mv $tmp/out $tmp/in
30672 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30673 rm -f conftest.undefs
30674 mv conftest.tail conftest.undefs
30676 rm -f conftest.undefs
30678 cat >>$CONFIG_STATUS <<\_ACEOF
30679 # Let's still pretend it is `configure' which instantiates (i.e., don't
30680 # use $as_me), people would be surprised to read:
30681 # /* config.h. Generated by config.status. */
30682 if test x"$ac_file" = x-; then
30683 echo "/* Generated by configure. */" >$tmp/config.h
30685 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30687 cat $tmp/in >>$tmp/config.h
30689 if test x"$ac_file" != x-; then
30690 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30691 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30692 echo "$as_me: $ac_file is unchanged" >&6;}
30694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30696 X"$ac_file" : 'X\(//\)[^/]' \| \
30697 X"$ac_file" : 'X\(//\)$' \| \
30698 X"$ac_file" : 'X\(/\)' \| \
30699 . : '\(.\)' 2>/dev/null ||
30701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30703 /^X\(\/\/\)$/{ s//\1/; q; }
30704 /^X\(\/\).*/{ s//\1/; q; }
30706 { if $as_mkdir_p; then
30711 while test ! -d "$as_dir"; do
30712 as_dirs="$as_dir $as_dirs"
30713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30715 X"$as_dir" : 'X\(//\)[^/]' \| \
30716 X"$as_dir" : 'X\(//\)$' \| \
30717 X"$as_dir" : 'X\(/\)' \| \
30718 . : '\(.\)' 2>/dev/null ||
30720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30722 /^X\(\/\/\)$/{ s//\1/; q; }
30723 /^X\(\/\).*/{ s//\1/; q; }
30726 test ! -n "$as_dirs" || mkdir $as_dirs
30727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30729 { (exit 1); exit 1; }; }; }
30732 mv $tmp/config.h $ac_file
30736 rm -f $tmp/config.h
30740 cat >>$CONFIG_STATUS <<\_ACEOF
30743 # CONFIG_LINKS section.
30746 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30747 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30748 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30750 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30751 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30753 if test ! -r $srcdir/$ac_source; then
30754 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30755 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30756 { (exit 1); exit 1; }; }
30760 # Make relative symlinks.
30761 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30763 X"$ac_dest" : 'X\(//\)[^/]' \| \
30764 X"$ac_dest" : 'X\(//\)$' \| \
30765 X"$ac_dest" : 'X\(/\)' \| \
30766 . : '\(.\)' 2>/dev/null ||
30768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30770 /^X\(\/\/\)$/{ s//\1/; q; }
30771 /^X\(\/\).*/{ s//\1/; q; }
30773 { if $as_mkdir_p; then
30774 mkdir -p "$ac_dest_dir"
30776 as_dir="$ac_dest_dir"
30778 while test ! -d "$as_dir"; do
30779 as_dirs="$as_dir $as_dirs"
30780 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30782 X"$as_dir" : 'X\(//\)[^/]' \| \
30783 X"$as_dir" : 'X\(//\)$' \| \
30784 X"$as_dir" : 'X\(/\)' \| \
30785 . : '\(.\)' 2>/dev/null ||
30787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30789 /^X\(\/\/\)$/{ s//\1/; q; }
30790 /^X\(\/\).*/{ s//\1/; q; }
30793 test ! -n "$as_dirs" || mkdir $as_dirs
30794 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30795 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30796 { (exit 1); exit 1; }; }; }
30800 if test "$ac_dest_dir" != .; then
30801 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30802 # A "../" for each directory in $ac_dir_suffix.
30803 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30805 ac_dir_suffix= ac_top_builddir=
30809 .) # No --srcdir option. We are building in place.
30811 if test -z "$ac_top_builddir"; then
30814 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30816 [\\/]* | ?:[\\/]* ) # Absolute path.
30817 ac_srcdir=$srcdir$ac_dir_suffix;
30818 ac_top_srcdir=$srcdir ;;
30819 *) # Relative path.
30820 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30821 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30824 # Do not use `cd foo && pwd` to compute absolute paths, because
30825 # the directories may not exist.
30827 .) ac_abs_builddir="$ac_dest_dir";;
30829 case "$ac_dest_dir" in
30830 .) ac_abs_builddir=`pwd`;;
30831 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30832 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30835 case $ac_abs_builddir in
30836 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30838 case ${ac_top_builddir}. in
30839 .) ac_abs_top_builddir=$ac_abs_builddir;;
30840 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30841 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30844 case $ac_abs_builddir in
30845 .) ac_abs_srcdir=$ac_srcdir;;
30848 .) ac_abs_srcdir=$ac_abs_builddir;;
30849 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30850 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30853 case $ac_abs_builddir in
30854 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30856 case $ac_top_srcdir in
30857 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30858 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30859 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30865 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30866 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30869 # Try a symlink, then a hard link, then a copy.
30870 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30871 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30872 cp -p $srcdir/$ac_source $ac_dest ||
30873 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30874 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30875 { (exit 1); exit 1; }; }
30878 cat >>$CONFIG_STATUS <<\_ACEOF
30881 # CONFIG_COMMANDS section.
30883 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30884 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30885 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30886 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30887 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30888 X"$ac_dest" : 'X\(//\)[^/]' \| \
30889 X"$ac_dest" : 'X\(//\)$' \| \
30890 X"$ac_dest" : 'X\(/\)' \| \
30891 . : '\(.\)' 2>/dev/null ||
30893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30895 /^X\(\/\/\)$/{ s//\1/; q; }
30896 /^X\(\/\).*/{ s//\1/; q; }
30898 { if $as_mkdir_p; then
30903 while test ! -d "$as_dir"; do
30904 as_dirs="$as_dir $as_dirs"
30905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30907 X"$as_dir" : 'X\(//\)[^/]' \| \
30908 X"$as_dir" : 'X\(//\)$' \| \
30909 X"$as_dir" : 'X\(/\)' \| \
30910 . : '\(.\)' 2>/dev/null ||
30912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30914 /^X\(\/\/\)$/{ s//\1/; q; }
30915 /^X\(\/\).*/{ s//\1/; q; }
30918 test ! -n "$as_dirs" || mkdir $as_dirs
30919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30921 { (exit 1); exit 1; }; }; }
30925 if test "$ac_dir" != .; then
30926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30927 # A "../" for each directory in $ac_dir_suffix.
30928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30930 ac_dir_suffix= ac_top_builddir=
30934 .) # No --srcdir option. We are building in place.
30936 if test -z "$ac_top_builddir"; then
30939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30941 [\\/]* | ?:[\\/]* ) # Absolute path.
30942 ac_srcdir=$srcdir$ac_dir_suffix;
30943 ac_top_srcdir=$srcdir ;;
30944 *) # Relative path.
30945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30949 # Do not use `cd foo && pwd` to compute absolute paths, because
30950 # the directories may not exist.
30952 .) ac_abs_builddir="$ac_dir";;
30955 .) ac_abs_builddir=`pwd`;;
30956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30960 case $ac_abs_builddir in
30961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30963 case ${ac_top_builddir}. in
30964 .) ac_abs_top_builddir=$ac_abs_builddir;;
30965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30969 case $ac_abs_builddir in
30970 .) ac_abs_srcdir=$ac_srcdir;;
30973 .) ac_abs_srcdir=$ac_abs_builddir;;
30974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30978 case $ac_abs_builddir in
30979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30981 case $ac_top_srcdir in
30982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30989 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30990 echo "$as_me: executing $ac_dest commands" >&6;}
30992 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30993 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
30994 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
30995 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
30996 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
30997 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30998 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
30999 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31000 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
31001 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31002 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31003 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31008 cat >>$CONFIG_STATUS <<\_ACEOF
31010 { (exit 0); exit 0; }
31012 chmod +x $CONFIG_STATUS
31013 ac_clean_files=$ac_clean_files_save
31016 # configure is writing to config.log, and then calls config.status.
31017 # config.status does its own redirection, appending to config.log.
31018 # Unfortunately, on DOS this fails, as config.log is still kept open
31019 # by configure, so config.status won't be able to write to it; its
31020 # output is simply discarded. So we exec the FD to /dev/null,
31021 # effectively closing config.log, so it can be properly (re)opened and
31022 # appended to by config.status. When coming back to configure, we
31023 # need to make the FD available again.
31024 if test "$no_create" != yes; then
31026 ac_config_status_args=
31027 test "$silent" = yes &&
31028 ac_config_status_args="$ac_config_status_args --quiet"
31030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31033 # would make configure fail if this is the last instruction.
31034 $ac_cs_success || { (exit 1); exit 1; }
31038 # CONFIG_SUBDIRS section.
31040 if test "$no_recursion" != yes; then
31042 # Remove --cache-file and --srcdir arguments so they do not pile up.
31043 ac_sub_configure_args=
31045 for ac_arg in $ac_configure_args; do
31046 if test -n "$ac_prev"; then
31051 -cache-file | --cache-file | --cache-fil | --cache-fi \
31052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31053 ac_prev=cache_file ;;
31054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31058 --config-cache | -C)
31060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31068 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31072 # Always prepend --prefix to ensure using the same prefix
31073 # in subdir configurations.
31074 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31077 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31079 # Do not complain, so a configure script can configure whichever
31080 # parts of a large source tree are present.
31081 test -d $srcdir/$ac_dir || continue
31083 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31084 echo "$as_me: configuring in $ac_dir" >&6;}
31085 { if $as_mkdir_p; then
31090 while test ! -d "$as_dir"; do
31091 as_dirs="$as_dir $as_dirs"
31092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31094 X"$as_dir" : 'X\(//\)[^/]' \| \
31095 X"$as_dir" : 'X\(//\)$' \| \
31096 X"$as_dir" : 'X\(/\)' \| \
31097 . : '\(.\)' 2>/dev/null ||
31099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31101 /^X\(\/\/\)$/{ s//\1/; q; }
31102 /^X\(\/\).*/{ s//\1/; q; }
31105 test ! -n "$as_dirs" || mkdir $as_dirs
31106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31108 { (exit 1); exit 1; }; }; }
31112 if test "$ac_dir" != .; then
31113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31114 # A "../" for each directory in $ac_dir_suffix.
31115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31117 ac_dir_suffix= ac_top_builddir=
31121 .) # No --srcdir option. We are building in place.
31123 if test -z "$ac_top_builddir"; then
31126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31128 [\\/]* | ?:[\\/]* ) # Absolute path.
31129 ac_srcdir=$srcdir$ac_dir_suffix;
31130 ac_top_srcdir=$srcdir ;;
31131 *) # Relative path.
31132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31136 # Do not use `cd foo && pwd` to compute absolute paths, because
31137 # the directories may not exist.
31139 .) ac_abs_builddir="$ac_dir";;
31142 .) ac_abs_builddir=`pwd`;;
31143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31147 case $ac_abs_builddir in
31148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31150 case ${ac_top_builddir}. in
31151 .) ac_abs_top_builddir=$ac_abs_builddir;;
31152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31156 case $ac_abs_builddir in
31157 .) ac_abs_srcdir=$ac_srcdir;;
31160 .) ac_abs_srcdir=$ac_abs_builddir;;
31161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31165 case $ac_abs_builddir in
31166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31168 case $ac_top_srcdir in
31169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31178 # Check for guested configure; otherwise get Cygnus style configure.
31179 if test -f $ac_srcdir/configure.gnu; then
31180 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31181 elif test -f $ac_srcdir/configure; then
31182 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31183 elif test -f $ac_srcdir/configure.in; then
31184 ac_sub_configure=$ac_configure
31186 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31191 # The recursion is here.
31192 if test -n "$ac_sub_configure"; then
31193 # Make the cache file name correct relative to the subdirectory.
31194 case $cache_file in
31195 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31196 *) # Relative path.
31197 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31200 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31201 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31202 # The eval makes quoting arguments work.
31203 eval $ac_sub_configure $ac_sub_configure_args \
31204 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31205 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31206 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31207 { (exit 1); exit 1; }; }
31215 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31216 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
31217 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
31218 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
31219 echo "$as_me: WARNING: ***** appear to be working." >&2;}
31220 { echo "$as_me:$LINENO: WARNING: ***** " >&5
31221 echo "$as_me: WARNING: ***** " >&2;}
31222 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
31223 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
31224 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
31225 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
31226 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
31227 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}