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.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='llvm 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
440 # Factoring default headers for most tests.
441 ac_includes_default="\
444 # include <sys/types.h>
447 # include <sys/stat.h>
458 # if !STDC_HEADERS && HAVE_MEMORY_H
464 # include <strings.h>
467 # include <inttypes.h>
477 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST RUNTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT 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'
480 # Initialize some variables set by options.
482 ac_init_version=false
483 # The variables have the same names as the options, with
484 # dashes changed to underlines.
492 program_transform_name=s,x,x,
500 # Installation directory options.
501 # These are left unexpanded so users can "make install exec_prefix=/foo"
502 # and all the variables that are supposed to be based on exec_prefix
503 # by default will actually change.
504 # Use braces instead of parens because sh, perl, etc. also accept them.
505 bindir='${exec_prefix}/bin'
506 sbindir='${exec_prefix}/sbin'
507 libexecdir='${exec_prefix}/libexec'
508 datadir='${prefix}/share'
509 sysconfdir='${prefix}/etc'
510 sharedstatedir='${prefix}/com'
511 localstatedir='${prefix}/var'
512 libdir='${exec_prefix}/lib'
513 includedir='${prefix}/include'
514 oldincludedir='/usr/include'
515 infodir='${prefix}/info'
516 mandir='${prefix}/man'
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530 # Accept the important Cygnus configure options, so we can diagnose typos.
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
552 cache_file=config.cache ;;
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 datadir=$ac_optarg ;;
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 eval "enable_$ac_feature=no" ;;
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 eval "enable_$ac_feature='$ac_optarg'" ;;
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
595 -help | --help | --hel | --he | -h)
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
619 -libdir | --libdir | --libdi | --libd)
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 # Obsolete; use --without-fp.
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 sbindir=$ac_optarg ;;
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 sharedstatedir=$ac_optarg ;;
723 -site | --site | --sit)
725 -site=* | --site=* | --sit=*)
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 -version | --version | --versio | --versi | --vers | -V)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 eval "with_$ac_package='$ac_optarg'" ;;
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
774 # Obsolete; use --with-x.
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792 Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817 if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
823 # Be sure to have absolute paths.
824 for ac_var in exec_prefix prefix
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # Be sure to have absolute paths.
835 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836 localstatedir libdir includedir oldincludedir infodir mandir
838 eval ac_val=$`echo $ac_var`
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
846 # There might be people who depend on the old broken behavior: `$host'
847 # used to hold the argument of --host etc.
848 # FIXME: To remove some day.
853 # FIXME: To remove some day.
854 if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
865 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867 test "$silent" = yes && exec 6>/dev/null
870 # Find the source files, if location was not specified.
871 if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
887 if test ! -r $srcdir/$ac_unique_file; then
891 ac_srcdir_defaulted=no
893 if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
902 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
905 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906 ac_env_build_alias_set=${build_alias+set}
907 ac_env_build_alias_value=$build_alias
908 ac_cv_env_build_alias_set=${build_alias+set}
909 ac_cv_env_build_alias_value=$build_alias
910 ac_env_host_alias_set=${host_alias+set}
911 ac_env_host_alias_value=$host_alias
912 ac_cv_env_host_alias_set=${host_alias+set}
913 ac_cv_env_host_alias_value=$host_alias
914 ac_env_target_alias_set=${target_alias+set}
915 ac_env_target_alias_value=$target_alias
916 ac_cv_env_target_alias_set=${target_alias+set}
917 ac_cv_env_target_alias_value=$target_alias
918 ac_env_CXX_set=${CXX+set}
919 ac_env_CXX_value=$CXX
920 ac_cv_env_CXX_set=${CXX+set}
921 ac_cv_env_CXX_value=$CXX
922 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_env_CXXFLAGS_value=$CXXFLAGS
924 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926 ac_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_env_LDFLAGS_value=$LDFLAGS
928 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_cv_env_LDFLAGS_value=$LDFLAGS
930 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_env_CPPFLAGS_value=$CPPFLAGS
932 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934 ac_env_CC_set=${CC+set}
936 ac_cv_env_CC_set=${CC+set}
937 ac_cv_env_CC_value=$CC
938 ac_env_CFLAGS_set=${CFLAGS+set}
939 ac_env_CFLAGS_value=$CFLAGS
940 ac_cv_env_CFLAGS_set=${CFLAGS+set}
941 ac_cv_env_CFLAGS_value=$CFLAGS
942 ac_env_CPP_set=${CPP+set}
943 ac_env_CPP_value=$CPP
944 ac_cv_env_CPP_set=${CPP+set}
945 ac_cv_env_CPP_value=$CPP
946 ac_env_CXXCPP_set=${CXXCPP+set}
947 ac_env_CXXCPP_value=$CXXCPP
948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
949 ac_cv_env_CXXCPP_value=$CXXCPP
950 ac_env_F77_set=${F77+set}
951 ac_env_F77_value=$F77
952 ac_cv_env_F77_set=${F77+set}
953 ac_cv_env_F77_value=$F77
954 ac_env_FFLAGS_set=${FFLAGS+set}
955 ac_env_FFLAGS_value=$FFLAGS
956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
957 ac_cv_env_FFLAGS_value=$FFLAGS
960 # Report the --help message.
962 if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
966 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
968 Usage: $0 [OPTION]... [VAR=VALUE]...
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
971 VAR=VALUE. See below for descriptions of some of the useful variables.
973 Defaults for the options are specified in brackets.
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
989 Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
995 By default, \`make install' will install all the files in
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998 for instance \`--prefix=\$HOME'.
1000 For better control, use the options below.
1002 Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1027 case $ac_init_help in
1028 short | recursive ) echo "Configuration of llvm 1.4:";;
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-optimized Compile with optimizations enabled (default is NO)
1043 --enable-jit Enable Just In Time Compiling (default is YES)
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1052 include additional configurations [automatic]
1053 --with-llvmgccdir Location of LLVM GCC front-end
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by llvm $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546 if test ${srcdir} != "." ; then
1547 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1548 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1549 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1550 { (exit 1); exit 1; }; }
1554 for i in `ls ${srcdir}/projects`
1556 if test -d ${srcdir}/projects/${i} ; then
1561 subdirs="$subdirs projects/sample"
1565 subdirs="$subdirs projects/Stacker"
1569 subdirs="$subdirs projects/llvm-test"
1573 subdirs="$subdirs projects/llvm-reopt"
1577 subdirs="$subdirs projects/llvm-gcc"
1581 subdirs="$subdirs projects/Java"
1585 subdirs="$subdirs projects/llvm-tv"
1589 subdirs="$subdirs projects/llvm-fefw"
1593 subdirs="$subdirs projects/poolalloc"
1596 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1597 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1603 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1606 ac_config_files="$ac_config_files Makefile.config"
1608 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1610 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1612 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1614 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1616 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1619 ac_config_commands="$ac_config_commands Makefile"
1622 ac_config_commands="$ac_config_commands Makefile.common"
1625 ac_config_commands="$ac_config_commands examples/Makefile"
1628 ac_config_commands="$ac_config_commands lib/Makefile"
1631 ac_config_commands="$ac_config_commands runtime/Makefile"
1634 ac_config_commands="$ac_config_commands test/Makefile"
1637 ac_config_commands="$ac_config_commands test/Makefile.tests"
1640 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1643 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1646 ac_config_commands="$ac_config_commands tools/Makefile"
1649 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1652 ac_config_commands="$ac_config_commands utils/Makefile"
1655 ac_config_commands="$ac_config_commands projects/Makefile"
1659 # Find a good install program. We prefer a C program (faster),
1660 # so one script is as good as another. But avoid the broken or
1661 # incompatible versions:
1662 # SysV /etc/install, /usr/sbin/install
1663 # SunOS /usr/etc/install
1664 # IRIX /sbin/install
1666 # AmigaOS /C/install, which installs bootblocks on floppy discs
1667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1670 # OS/2's system install, which has a completely different semantic
1671 # ./install, which can be erroneously created by make from ./install.sh.
1672 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1674 if test -z "$INSTALL"; then
1675 if test "${ac_cv_path_install+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 # Account for people who put trailing slashes in PATH elements.
1685 ./ | .// | /cC/* | \
1686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1690 # OSF1 and SCO ODT 3.0 have their own names for install.
1691 # Don't use installbsd from OSF since it installs stuff as root
1693 for ac_prog in ginstall scoinst install; do
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1696 if test $ac_prog = install &&
1697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1698 # AIX install. It has an incompatible calling convention.
1700 elif test $ac_prog = install &&
1701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1702 # program-specific install script used by HP pwplus--don't use.
1705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1717 if test "${ac_cv_path_install+set}" = set; then
1718 INSTALL=$ac_cv_path_install
1720 # As a last resort, use the slow shell script. We don't cache a
1721 # path for INSTALL within a source directory, because that will
1722 # break other packages using the cache if that directory is
1723 # removed, or if the path is relative.
1724 INSTALL=$ac_install_sh
1727 echo "$as_me:$LINENO: result: $INSTALL" >&5
1728 echo "${ECHO_T}$INSTALL" >&6
1730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1731 # It thinks the first close brace ends the variable substitution.
1732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1739 # Make sure we can run config.sub.
1740 $ac_config_sub sun4 >/dev/null 2>&1 ||
1741 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: checking build system type" >&5
1746 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747 if test "${ac_cv_build+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 ac_cv_build_alias=$build_alias
1751 test -z "$ac_cv_build_alias" &&
1752 ac_cv_build_alias=`$ac_config_guess`
1753 test -z "$ac_cv_build_alias" &&
1754 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756 { (exit 1); exit 1; }; }
1757 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1763 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764 echo "${ECHO_T}$ac_cv_build" >&6
1766 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771 echo "$as_me:$LINENO: checking host system type" >&5
1772 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1773 if test "${ac_cv_host+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 ac_cv_host_alias=$host_alias
1777 test -z "$ac_cv_host_alias" &&
1778 ac_cv_host_alias=$ac_cv_build_alias
1779 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1781 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1785 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1786 echo "${ECHO_T}$ac_cv_host" >&6
1788 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793 echo "$as_me:$LINENO: checking target system type" >&5
1794 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1795 if test "${ac_cv_target+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 ac_cv_target_alias=$target_alias
1799 test "x$ac_cv_target_alias" = "x" &&
1800 ac_cv_target_alias=$ac_cv_host_alias
1801 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1803 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1807 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1808 echo "${ECHO_T}$ac_cv_target" >&6
1809 target=$ac_cv_target
1810 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1815 # The aliases save the names the user supplied, while $host etc.
1816 # will get canonicalized.
1817 test -n "$target_alias" &&
1818 test "$program_prefix$program_suffix$program_transform_name" = \
1820 program_prefix=${target_alias}-
1823 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1824 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1834 platform_type="Cygwin"
1839 platform_type="Darwin"
1844 platform_type="FreeBSD"
1849 platform_type="Interix"
1854 platform_type="Linux"
1855 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1857 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1864 platform_type="SunOS"
1865 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1867 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1874 platform_type="Win32"
1879 platform_type="Win32"
1884 platform_type="Unknown"
1888 if test "$platform_type" = "Unknown" ; then
1889 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1890 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1891 { (exit 1); exit 1; }; }
1894 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1898 echo "$as_me:$LINENO: checking target architecture" >&5
1899 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1901 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1929 echo "$as_me:$LINENO: result: $ARCH" >&5
1930 echo "${ECHO_T}$ARCH" >&6
1933 ac_cpp='$CXXCPP $CPPFLAGS'
1934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_CXX+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$CXX"; then
1948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 if test -n "$CXX"; then
1968 echo "$as_me:$LINENO: result: $CXX" >&5
1969 echo "${ECHO_T}$CXX" >&6
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 test -n "$CXX" && break
1978 if test -z "$CXX"; then
1980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1982 # Extract the first word of "$ac_prog", so it can be a program name with args.
1983 set dummy $ac_prog; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$ac_ct_CXX"; then
1990 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CXX="$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2009 if test -n "$ac_ct_CXX"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2011 echo "${ECHO_T}$ac_ct_CXX" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2017 test -n "$ac_ct_CXX" && break
2019 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027 "checking for C++ compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030 (eval $ac_compiler --version </dev/null >&5) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035 (eval $ac_compiler -v </dev/null >&5) 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040 (eval $ac_compiler -V </dev/null >&5) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2045 cat >conftest.$ac_ext <<_ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2060 ac_clean_files_save=$ac_clean_files
2061 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2062 # Try to create an executable without -o first, disregard a.out.
2063 # It will help us diagnose broken compilers, and finding out an intuition
2065 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2066 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2067 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069 (eval $ac_link_default) 2>&5
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # Find the output, starting from the most likely. This scheme is
2074 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077 # Be careful to initialize this variable, since it used to be cached.
2078 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2080 # b.out is created by i960 compilers.
2081 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2083 test -f "$ac_file" || continue
2085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2088 # This is the source file.
2091 # We found the default executable, but exeext='' is most
2095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # FIXME: I believe we export ac_cv_exeext for Libtool,
2097 # but it would be cool to find out if it's true. Does anybody
2098 # maintain Libtool? --akim.
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: C++ compiler cannot create executables
2112 See \`config.log' for more details." >&2;}
2113 { (exit 77); exit 77; }; }
2116 ac_exeext=$ac_cv_exeext
2117 echo "$as_me:$LINENO: result: $ac_file" >&5
2118 echo "${ECHO_T}$ac_file" >&6
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2123 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2124 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125 # If not cross compiling, check that we can run a simple program.
2126 if test "$cross_compiling" != yes; then
2127 if { ac_try='./$ac_file'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2135 if test "$cross_compiling" = maybe; then
2138 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2139 If you meant to cross compile, use \`--host'.
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot run C++ compiled programs.
2142 If you meant to cross compile, use \`--host'.
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2148 echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6
2151 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2152 ac_clean_files=$ac_clean_files_save
2153 # Check the compiler produces executables we can run. If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158 echo "${ECHO_T}$cross_compiling" >&6
2160 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163 (eval $ac_link) 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2169 # work properly (i.e., refer to `conftest.exe'), while it won't with
2171 for ac_file in conftest.exe conftest conftest.*; do
2172 test -f "$ac_file" || continue
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&2;}
2186 { (exit 1); exit 1; }; }
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 cat >conftest.$ac_ext <<_ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2216 rm -f conftest.o conftest.obj
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT=$ac_cv_objext
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2248 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_cxx_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2302 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2303 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2304 GXX=`test $ac_compiler_gnu = yes && echo yes`
2305 ac_test_CXXFLAGS=${CXXFLAGS+set}
2306 ac_save_CXXFLAGS=$CXXFLAGS
2308 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2309 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2310 if test "${ac_cv_prog_cxx_g+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.$ac_ext <<_ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2332 grep -v '^ *+' conftest.er1 >conftest.err
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -z "$ac_cxx_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cxx_g=yes
2352 echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2360 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2361 if test "$ac_test_CXXFLAGS" = set; then
2362 CXXFLAGS=$ac_save_CXXFLAGS
2363 elif test $ac_cv_prog_cxx_g = yes; then
2364 if test "$GXX" = yes; then
2370 if test "$GXX" = yes; then
2376 for ac_declaration in \
2378 'extern "C" void std::exit (int) throw (); using std::exit;' \
2379 'extern "C" void std::exit (int); using std::exit;' \
2380 'extern "C" void exit (int) throw ();' \
2381 'extern "C" void exit (int);' \
2384 cat >conftest.$ac_ext <<_ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_cxx_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447 (eval $ac_compile) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_cxx_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 if test -n "$ac_declaration"; then
2477 echo '#ifdef __cplusplus' >>confdefs.h
2478 echo $ac_declaration >>confdefs.h
2479 echo '#endif' >>confdefs.h
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 ac_cpp='$CPP $CPPFLAGS'
2490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498 echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test -n "$CC"; then
2524 echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6
2527 echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2531 test -n "$CC" && break
2534 if test -z "$CC"; then
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_CC="$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565 if test -n "$ac_ct_CC"; then
2566 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567 echo "${ECHO_T}$ac_ct_CC" >&6
2569 echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2573 test -n "$ac_ct_CC" && break
2580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details." >&2;}
2584 { (exit 1); exit 1; }; }
2586 # Provide some information about the compiler.
2587 echo "$as_me:$LINENO:" \
2588 "checking for C compiler version" >&5
2589 ac_compiler=`set X $ac_compile; echo $2`
2590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2591 (eval $ac_compiler --version </dev/null >&5) 2>&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596 (eval $ac_compiler -v </dev/null >&5) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601 (eval $ac_compiler -V </dev/null >&5) 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_g+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2692 grep -v '^ *+' conftest.er1 >conftest.err
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721 if test "$ac_test_CFLAGS" = set; then
2722 CFLAGS=$ac_save_CFLAGS
2723 elif test $ac_cv_prog_cc_g = yes; then
2724 if test "$GCC" = yes; then
2730 if test "$GCC" = yes; then
2736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 ac_cv_prog_cc_stdc=no
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 #include <sys/types.h>
2752 #include <sys/stat.h>
2753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2754 struct buf { int x; };
2755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756 static char *e (p, i)
2762 static char *f (char * (*g) (char **, int), char **p, ...)
2767 s = g (p, va_arg (v,int));
2772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2773 function prototypes and stuff, but not '\xHH' hex character constants.
2774 These don't provoke an error unfortunately, instead are silently treated
2775 as 'x'. The following induces an error, until -std1 is added to get
2776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2777 array size at least. It's necessary to write '\x00'==0 to get something
2778 that's true only with -std1. */
2779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2795 # Don't try gcc -ansi; that turns off useful extensions and
2796 # breaks some systems' header files.
2797 # AIX -qlanglvl=ansi
2798 # Ultrix and OSF/1 -std1
2799 # HP-UX 10.20 and later -Ae
2800 # HP-UX older versions -Aa -D_HPUX_SOURCE
2801 # SVR4 -Xc -D__EXTENSIONS__
2802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2804 CC="$ac_save_CC $ac_arg"
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_stdc=$ac_arg
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f conftest.err conftest.$ac_objext
2836 rm -f conftest.$ac_ext conftest.$ac_objext
2841 case "x$ac_cv_prog_cc_stdc" in
2843 echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6 ;;
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848 CC="$CC $ac_cv_prog_cc_stdc" ;;
2851 # Some people use a C++ compiler to compile C. Since we use `exit',
2852 # in C++ we need to declare it. In case someone uses the same compiler
2853 # for both compiling C and C++ we need to have the C++ compiler decide
2854 # the declaration of exit, since it's the most demanding environment.
2855 cat >conftest.$ac_ext <<_ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 for ac_declaration in \
2884 'extern "C" void std::exit (int) throw (); using std::exit;' \
2885 'extern "C" void std::exit (int); using std::exit;' \
2886 'extern "C" void exit (int) throw ();' \
2887 'extern "C" void exit (int);' \
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test "$GCC" != "yes"
3002 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3003 echo "$as_me: error: gcc required but not found" >&2;}
3004 { (exit 1); exit 1; }; }
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3013 # On Suns, sometimes $CPP names a directory.
3014 if test -n "$CPP" && test -d "$CPP"; then
3017 if test -z "$CPP"; then
3018 if test "${ac_cv_prog_CPP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 # Double quotes because CPP needs to be expanded
3022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 for ac_c_preproc_warn_flag in '' yes
3027 # Use a header file that comes with gcc, so configuring glibc
3028 # with a fresh cross-compiler works.
3029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030 # <limits.h> exists even on freestanding compilers.
3031 # On the NeXT, cc -E runs the code through the compiler's parser,
3032 # not just through cpp. "Syntax error" is here to catch this case.
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3040 # include <limits.h>
3042 # include <assert.h>
3046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } >/dev/null; then
3054 if test -s conftest.err; then
3055 ac_cpp_err=$ac_c_preproc_warn_flag
3056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063 if test -z "$ac_cpp_err"; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 # Broken: fails on valid input.
3072 rm -f conftest.err conftest.$ac_ext
3074 # OK, works on sane cases. Now check whether non-existent headers
3075 # can be detected and how.
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #include <ac_nonexistent.h>
3084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } >/dev/null; then
3092 if test -s conftest.err; then
3093 ac_cpp_err=$ac_c_preproc_warn_flag
3094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101 if test -z "$ac_cpp_err"; then
3102 # Broken: success on invalid input.
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 # Passes both tests.
3112 rm -f conftest.err conftest.$ac_ext
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3129 echo "$as_me:$LINENO: result: $CPP" >&5
3130 echo "${ECHO_T}$CPP" >&6
3132 for ac_c_preproc_warn_flag in '' yes
3134 # Use a header file that comes with gcc, so configuring glibc
3135 # with a fresh cross-compiler works.
3136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137 # <limits.h> exists even on freestanding compilers.
3138 # On the NeXT, cc -E runs the code through the compiler's parser,
3139 # not just through cpp. "Syntax error" is here to catch this case.
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3147 # include <limits.h>
3149 # include <assert.h>
3153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } >/dev/null; then
3161 if test -s conftest.err; then
3162 ac_cpp_err=$ac_c_preproc_warn_flag
3163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170 if test -z "$ac_cpp_err"; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 # Broken: fails on valid input.
3179 rm -f conftest.err conftest.$ac_ext
3181 # OK, works on sane cases. Now check whether non-existent headers
3182 # can be detected and how.
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <ac_nonexistent.h>
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 if test -z "$ac_cpp_err"; then
3209 # Broken: success on invalid input.
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 # Passes both tests.
3219 rm -f conftest.err conftest.$ac_ext
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.$ac_ext
3224 if $ac_preproc_ok; then
3227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&2;}
3231 { (exit 1); exit 1; }; }
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test "$GXX" != "yes"
3242 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3243 echo "$as_me: error: g++ required but not found" >&2;}
3244 { (exit 1); exit 1; }; }
3247 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3248 if test "$gccmajor" -lt "3"
3250 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3251 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3252 { (exit 1); exit 1; }; }
3255 echo "$as_me:$LINENO: checking for GNU make" >&5
3256 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3257 if test "${_cv_gnu_make_command+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 _cv_gnu_make_command='' ;
3261 for a in "$MAKE" make gmake gnumake ; do
3262 if test -z "$a" ; then continue ; fi ;
3263 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3264 _cv_gnu_make_command=$a ;
3270 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3271 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3272 if test "x$_cv_gnu_make_command" != "x" ; then
3276 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3277 echo "${ECHO_T}\"Not found\"" >&6;
3281 if test -z "$_cv_gnu_make_command"
3283 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3284 echo "$as_me: error: GNU Make required but not found" >&2;}
3285 { (exit 1); exit 1; }; }
3289 echo "$as_me:$LINENO: checking " >&5
3290 echo $ECHO_N "checking ... $ECHO_C" >&6
3291 if test "${ac_cv_has_flex+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 for ac_prog in flex lex
3296 # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_prog_LEX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 if test -n "$LEX"; then
3304 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_LEX="$ac_prog"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$LEX"; then
3324 echo "$as_me:$LINENO: result: $LEX" >&5
3325 echo "${ECHO_T}$LEX" >&6
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3331 test -n "$LEX" && break
3333 test -n "$LEX" || LEX=":"
3335 if test -z "$LEXLIB"
3337 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3338 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3339 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 ac_check_lib_save_LIBS=$LIBS
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest$ac_exeext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_cv_lib_fl_yywrap=yes
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 ac_cv_lib_fl_yywrap=no
3395 rm -f conftest.err conftest.$ac_objext \
3396 conftest$ac_exeext conftest.$ac_ext
3397 LIBS=$ac_check_lib_save_LIBS
3399 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3400 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3401 if test $ac_cv_lib_fl_yywrap = yes; then
3404 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3405 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3406 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 ac_check_lib_save_LIBS=$LIBS
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3433 rm -f conftest.$ac_objext conftest$ac_exeext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435 (eval $ac_link) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest$ac_exeext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_lib_l_yywrap=yes
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_lib_l_yywrap=no
3462 rm -f conftest.err conftest.$ac_objext \
3463 conftest$ac_exeext conftest.$ac_ext
3464 LIBS=$ac_check_lib_save_LIBS
3466 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3467 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3468 if test $ac_cv_lib_l_yywrap = yes; then
3476 if test "x$LEX" != "x:"; then
3477 echo "$as_me:$LINENO: checking lex output file root" >&5
3478 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3479 if test "${ac_cv_prog_lex_root+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 # The minimal lex program is just a single line: %%. But some broken lexes
3483 # (Solaris, I think it was) want two %% lines, so accommodate them.
3484 cat >conftest.l <<_ACEOF
3488 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3489 (eval $LEX conftest.l) 2>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493 if test -f lex.yy.c; then
3494 ac_cv_prog_lex_root=lex.yy
3495 elif test -f lexyy.c; then
3496 ac_cv_prog_lex_root=lexyy
3498 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3499 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3500 { (exit 1); exit 1; }; }
3503 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3504 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3506 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3508 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3509 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3510 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 # POSIX says lex can declare yytext either as a pointer or an array; the
3514 # default is implementation-dependent. Figure out which it is, since
3515 # not all implementations provide the %pointer and %array declarations.
3516 ac_cv_prog_lex_yytext_pointer=no
3517 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3519 LIBS="$LIBS $LEXLIB"
3520 cat >conftest.$ac_ext <<_ACEOF
3521 `cat $LEX_OUTPUT_ROOT.c`
3523 rm -f conftest.$ac_objext conftest$ac_exeext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525 (eval $ac_link) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_lex_yytext_pointer=yes
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f conftest.err conftest.$ac_objext \
3552 conftest$ac_exeext conftest.$ac_ext
3554 rm -f "${LEX_OUTPUT_ROOT}.c"
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3558 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3559 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3561 cat >>confdefs.h <<\_ACEOF
3562 #define YYTEXT_POINTER 1
3570 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3571 echo "${ECHO_T}$ac_cv_has_flex" >&6
3572 if test "$LEX" != "flex"; then
3573 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3574 echo "$as_me: error: flex not found but required" >&2;}
3575 { (exit 1); exit 1; }; }
3581 echo "$as_me:$LINENO: checking " >&5
3582 echo $ECHO_N "checking ... $ECHO_C" >&6
3583 if test "${ac_cv_has_bison+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 for ac_prog in 'bison -y' byacc
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_prog_YACC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$YACC"; then
3596 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_YACC="$ac_prog"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 YACC=$ac_cv_prog_YACC
3615 if test -n "$YACC"; then
3616 echo "$as_me:$LINENO: result: $YACC" >&5
3617 echo "${ECHO_T}$YACC" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3623 test -n "$YACC" && break
3625 test -n "$YACC" || YACC="yacc"
3629 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3630 echo "${ECHO_T}$ac_cv_has_bison" >&6
3631 if test "$YACC" != "bison -y"; then
3632 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3633 echo "$as_me: error: bison not found but required" >&2;}
3634 { (exit 1); exit 1; }; }
3642 # Check whether --enable-shared or --disable-shared was given.
3643 if test "${enable_shared+set}" = set; then
3644 enableval="$enable_shared"
3645 p=${PACKAGE-default}
3647 yes) enable_shared=yes ;;
3648 no) enable_shared=no ;;
3651 # Look at the argument we got. We use all the common list separators.
3652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3653 for pkg in $enableval; do
3655 if test "X$pkg" = "X$p"; then
3666 # Check whether --enable-static or --disable-static was given.
3667 if test "${enable_static+set}" = set; then
3668 enableval="$enable_static"
3669 p=${PACKAGE-default}
3671 yes) enable_static=yes ;;
3672 no) enable_static=no ;;
3675 # Look at the argument we got. We use all the common list separators.
3676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3677 for pkg in $enableval; do
3679 if test "X$pkg" = "X$p"; then
3690 # Check whether --enable-fast-install or --disable-fast-install was given.
3691 if test "${enable_fast_install+set}" = set; then
3692 enableval="$enable_fast_install"
3693 p=${PACKAGE-default}
3695 yes) enable_fast_install=yes ;;
3696 no) enable_fast_install=no ;;
3698 enable_fast_install=no
3699 # Look at the argument we got. We use all the common list separators.
3700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3701 for pkg in $enableval; do
3703 if test "X$pkg" = "X$p"; then
3704 enable_fast_install=yes
3711 enable_fast_install=yes
3714 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3715 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3716 if test "${lt_cv_path_SED+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 # Loop through the user's path and test for sed and gsed.
3720 # Then use that list of sed's as ones to test for truncation.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for lt_ac_prog in sed gsed; do
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3729 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3736 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737 # along with /bin/sed that truncates output.
3738 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739 test ! -f $lt_ac_sed && break
3740 cat /dev/null > conftest.in
3742 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743 # Check for GNU sed and select it if it is found.
3744 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745 lt_cv_path_SED=$lt_ac_sed
3749 cat conftest.in conftest.in >conftest.tmp
3750 mv conftest.tmp conftest.in
3751 cp conftest.in conftest.nl
3753 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754 cmp -s conftest.out conftest.nl || break
3755 # 10000 chars as input seems more than enough
3756 test $lt_ac_count -gt 10 && break
3757 lt_ac_count=`expr $lt_ac_count + 1`
3758 if test $lt_ac_count -gt $lt_ac_max; then
3759 lt_ac_max=$lt_ac_count
3760 lt_cv_path_SED=$lt_ac_sed
3768 echo "$as_me:$LINENO: result: $SED" >&5
3769 echo "${ECHO_T}$SED" >&6
3771 echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3773 if test "${ac_cv_prog_egrep+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3777 then ac_cv_prog_egrep='grep -E'
3778 else ac_cv_prog_egrep='egrep'
3781 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3782 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3783 EGREP=$ac_cv_prog_egrep
3787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3788 if test "${with_gnu_ld+set}" = set; then
3789 withval="$with_gnu_ld"
3790 test "$withval" = no || with_gnu_ld=yes
3795 if test "$GCC" = yes; then
3796 # Check if gcc -print-prog-name=ld gives a path.
3797 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3801 # gcc leaves a trailing carriage return which upsets mingw
3802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3807 # Accept absolute paths.
3809 re_direlt='/[^/][^/]*/\.\./'
3810 # Canonicalize the pathname of ld
3811 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3815 test -z "$LD" && LD="$ac_prog"
3818 # If it fails, then pretend we aren't using GCC.
3822 # If it is relative, then search for the first ld in PATH.
3826 elif test "$with_gnu_ld" = yes; then
3827 echo "$as_me:$LINENO: checking for GNU ld" >&5
3828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3830 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3833 if test "${lt_cv_path_LD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -z "$LD"; then
3837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838 for ac_dir in $PATH; do
3840 test -z "$ac_dir" && ac_dir=.
3841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842 lt_cv_path_LD="$ac_dir/$ac_prog"
3843 # Check to see if the program is GNU ld. I'd rather use --version,
3844 # but apparently some GNU ld's only accept -v.
3845 # Break only if it was the GNU/non-GNU ld that we prefer.
3846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847 *GNU* | *'with BFD'*)
3848 test "$with_gnu_ld" != no && break
3851 test "$with_gnu_ld" != yes && break
3858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3863 if test -n "$LD"; then
3864 echo "$as_me:$LINENO: result: $LD" >&5
3865 echo "${ECHO_T}$LD" >&6
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872 { (exit 1); exit 1; }; }
3873 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3879 case `$LD -v 2>&1 </dev/null` in
3880 *GNU* | *'with BFD'*)
3881 lt_cv_prog_gnu_ld=yes
3884 lt_cv_prog_gnu_ld=no
3888 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3890 with_gnu_ld=$lt_cv_prog_gnu_ld
3893 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3895 if test "${lt_cv_ld_reload_flag+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 lt_cv_ld_reload_flag='-r'
3900 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3902 reload_flag=$lt_cv_ld_reload_flag
3903 case $reload_flag in
3905 *) reload_flag=" $reload_flag" ;;
3907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3910 if test "$GCC" = yes; then
3911 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3918 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3920 if test "${lt_cv_path_NM+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$NM"; then
3924 # Let the user override the test.
3927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3928 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3930 test -z "$ac_dir" && ac_dir=.
3931 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3933 # Check to see if the nm accepts a BSD-compat flag.
3934 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3935 # nm: unknown option "B" ignored
3936 # Tru64's nm complains that /dev/null is an invalid object file
3937 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3938 */dev/null* | *'Invalid file or object type'*)
3939 lt_cv_path_NM="$tmp_nm -B"
3943 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3945 lt_cv_path_NM="$tmp_nm -p"
3949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950 continue # so that we can try to find one that supports BSD flags
3957 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3960 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3961 echo "${ECHO_T}$lt_cv_path_NM" >&6
3964 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3965 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3967 if test "$LN_S" = "ln -s"; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969 echo "${ECHO_T}yes" >&6
3971 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3972 echo "${ECHO_T}no, using $LN_S" >&6
3975 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3977 if test "${lt_cv_deplibs_check_method+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 lt_cv_file_magic_cmd='$MAGIC_CMD'
3981 lt_cv_file_magic_test_file=
3982 lt_cv_deplibs_check_method='unknown'
3983 # Need to set the preceding variable on all platforms that support
3984 # interlibrary dependencies.
3985 # 'none' -- dependencies not supported.
3986 # `unknown' -- same as none, but documents that we really don't know.
3987 # 'pass_all' -- all dependencies passed with no checks.
3988 # 'test_compile' -- check by making test program.
3989 # 'file_magic [[regex]]' -- check by looking for files in library path
3990 # which responds to the $file_magic_cmd with a given extended regex.
3991 # If you have `file' or equivalent on your system and you're not sure
3992 # whether `pass_all' will *always* work, you probably want this one.
3996 lt_cv_deplibs_check_method=pass_all
4000 lt_cv_deplibs_check_method=pass_all
4004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4005 lt_cv_file_magic_cmd='/usr/bin/file -L'
4006 lt_cv_file_magic_test_file=/shlib/libc.so
4010 # func_win32_libid is a shell function defined in ltmain.sh
4011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4012 lt_cv_file_magic_cmd='func_win32_libid'
4016 # Base MSYS/MinGW do not provide the 'file' command needed by
4017 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4019 lt_cv_file_magic_cmd='$OBJDUMP -f'
4022 darwin* | rhapsody*)
4023 lt_cv_deplibs_check_method=pass_all
4026 freebsd* | kfreebsd*-gnu)
4027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4030 # Not sure whether the presence of OpenBSD here was a mistake.
4031 # Let's accept both of them until this is cleared up.
4032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4033 lt_cv_file_magic_cmd=/usr/bin/file
4034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4038 lt_cv_deplibs_check_method=pass_all
4043 lt_cv_deplibs_check_method=pass_all
4046 hpux10.20* | hpux11*)
4047 lt_cv_file_magic_cmd=/usr/bin/file
4050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4054 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]'
4055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4064 irix5* | irix6* | nonstopux*)
4066 *-32|*"-32 ") libmagic=32-bit;;
4067 *-n32|*"-n32 ") libmagic=N32;;
4068 *-64|*"-64 ") libmagic=64-bit;;
4069 *) libmagic=never-match;;
4071 lt_cv_deplibs_check_method=pass_all
4074 # This must be Linux ELF.
4076 lt_cv_deplibs_check_method=pass_all
4080 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4094 lt_cv_deplibs_check_method=unknown
4098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4105 osf3* | osf4* | osf5*)
4106 lt_cv_deplibs_check_method=pass_all
4110 lt_cv_deplibs_check_method=pass_all
4114 lt_cv_deplibs_check_method=pass_all
4117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4118 case $host_vendor in
4120 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]'
4121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4124 lt_cv_deplibs_check_method=pass_all
4127 lt_cv_file_magic_cmd='/bin/file'
4128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4131 lt_cv_file_magic_cmd='/bin/file'
4132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4133 lt_cv_file_magic_test_file=/lib/libc.so
4136 lt_cv_deplibs_check_method=pass_all
4141 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4142 lt_cv_deplibs_check_method=pass_all
4147 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4149 file_magic_cmd=$lt_cv_file_magic_cmd
4150 deplibs_check_method=$lt_cv_deplibs_check_method
4151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4156 # If no C compiler was specified, use CC.
4159 # Allow CC to be a program name with arguments.
4162 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4163 if test "${enable_libtool_lock+set}" = set; then
4164 enableval="$enable_libtool_lock"
4167 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4169 # Some flags need to be propagated to the compiler or linker for good
4173 # Find out which ABI we are using.
4174 echo 'int i;' > conftest.$ac_ext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; then
4180 case `/usr/bin/file conftest.$ac_objext` in
4192 # Find out which ABI we are using.
4193 echo '#line 4193 "configure"' > conftest.$ac_ext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; then
4199 if test "$lt_cv_prog_gnu_ld" = yes; then
4200 case `/usr/bin/file conftest.$ac_objext` in
4202 LD="${LD-ld} -melf32bsmip"
4205 LD="${LD-ld} -melf32bmipn32"
4208 LD="${LD-ld} -melf64bmip"
4212 case `/usr/bin/file conftest.$ac_objext` in
4228 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4229 # Find out which ABI we are using.
4230 echo 'int i;' > conftest.$ac_ext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; then
4236 case "`/usr/bin/file conftest.o`" in
4240 LD="${LD-ld} -m elf_i386"
4242 ppc64-*linux*|powerpc64-*linux*)
4243 LD="${LD-ld} -m elf32ppclinux"
4246 LD="${LD-ld} -m elf_s390"
4249 LD="${LD-ld} -m elf32_sparc"
4256 LD="${LD-ld} -m elf_x86_64"
4258 ppc*-*linux*|powerpc*-*linux*)
4259 LD="${LD-ld} -m elf64ppc"
4262 LD="${LD-ld} -m elf64_s390"
4265 LD="${LD-ld} -m elf64_sparc"
4275 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4276 SAVE_CFLAGS="$CFLAGS"
4277 CFLAGS="$CFLAGS -belf"
4278 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4279 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4280 if test "${lt_cv_cc_needs_belf+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4297 rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag"
4307 || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 lt_cv_cc_needs_belf=yes
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 lt_cv_cc_needs_belf=no
4326 rm -f conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4336 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4337 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4338 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4339 CFLAGS="$SAVE_CFLAGS"
4345 need_locks="$enable_libtool_lock"
4349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4351 if test "${ac_cv_header_stdc+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_cv_header_stdc=yes
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_cv_header_stdc=no
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 if test $ac_cv_header_stdc = yes; then
4405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 $EGREP "memchr" >/dev/null 2>&1; then
4419 ac_cv_header_stdc=no
4425 if test $ac_cv_header_stdc = yes; then
4426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437 $EGREP "free" >/dev/null 2>&1; then
4440 ac_cv_header_stdc=no
4446 if test $ac_cv_header_stdc = yes; then
4447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4448 if test "$cross_compiling" = yes; then
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4481 rm -f conftest$ac_exeext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483 (eval $ac_link) 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4494 echo "$as_me: program exited with status $ac_status" >&5
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_cv_header_stdc=no
4501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4507 if test $ac_cv_header_stdc = yes; then
4509 cat >>confdefs.h <<\_ACEOF
4510 #define STDC_HEADERS 1
4515 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4526 inttypes.h stdint.h unistd.h
4528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4529 echo "$as_me:$LINENO: checking for $ac_header" >&5
4530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4542 #include <$ac_header>
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag"
4554 || test ! -s conftest.err'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; } &&
4560 { ac_try='test -s conftest.$ac_objext'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 eval "$as_ac_Header=yes"
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 eval "$as_ac_Header=no"
4573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4578 cat >>confdefs.h <<_ACEOF
4579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 for ac_header in dlfcn.h
4590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592 echo "$as_me:$LINENO: checking for $ac_header" >&5
4593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600 # Is the header compilable?
4601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4610 #include <$ac_header>
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_header_compiler=yes
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 ac_header_compiler=no
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6
4645 # Is the header present?
4646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <$ac_header>
4656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } >/dev/null; then
4664 if test -s conftest.err; then
4665 ac_cpp_err=$ac_c_preproc_warn_flag
4666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4673 if test -z "$ac_cpp_err"; then
4674 ac_header_preproc=yes
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_header_preproc=no
4681 rm -f conftest.err conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4683 echo "${ECHO_T}$ac_header_preproc" >&6
4685 # So? What about this header?
4686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4692 ac_header_preproc=yes
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4709 ## ----------------------------------- ##
4710 ## Report this to llvmbugs@cs.uiuc.edu ##
4711 ## ----------------------------------- ##
4714 sed "s/^/$as_me: WARNING: /" >&2
4717 echo "$as_me:$LINENO: checking for $ac_header" >&5
4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 eval "$as_ac_Header=\$ac_header_preproc"
4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4729 cat >>confdefs.h <<_ACEOF
4730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4739 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4740 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4741 (test "X$CXX" != "Xg++"))) ; then
4743 ac_cpp='$CXXCPP $CPPFLAGS'
4744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4747 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4748 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4749 if test -z "$CXXCPP"; then
4750 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 # Double quotes because CXXCPP needs to be expanded
4754 for CXXCPP in "$CXX -E" "/lib/cpp"
4757 for ac_cxx_preproc_warn_flag in '' yes
4759 # Use a header file that comes with gcc, so configuring glibc
4760 # with a fresh cross-compiler works.
4761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4762 # <limits.h> exists even on freestanding compilers.
4763 # On the NeXT, cc -E runs the code through the compiler's parser,
4764 # not just through cpp. "Syntax error" is here to catch this case.
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4772 # include <limits.h>
4774 # include <assert.h>
4778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } >/dev/null; then
4786 if test -s conftest.err; then
4787 ac_cpp_err=$ac_cxx_preproc_warn_flag
4788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4795 if test -z "$ac_cpp_err"; then
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 # Broken: fails on valid input.
4804 rm -f conftest.err conftest.$ac_ext
4806 # OK, works on sane cases. Now check whether non-existent headers
4807 # can be detected and how.
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <ac_nonexistent.h>
4816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } >/dev/null; then
4824 if test -s conftest.err; then
4825 ac_cpp_err=$ac_cxx_preproc_warn_flag
4826 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4833 if test -z "$ac_cpp_err"; then
4834 # Broken: success on invalid input.
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 # Passes both tests.
4844 rm -f conftest.err conftest.$ac_ext
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then
4854 ac_cv_prog_CXXCPP=$CXXCPP
4857 CXXCPP=$ac_cv_prog_CXXCPP
4859 ac_cv_prog_CXXCPP=$CXXCPP
4861 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4862 echo "${ECHO_T}$CXXCPP" >&6
4864 for ac_cxx_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat >conftest.$ac_ext <<_ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4879 # include <limits.h>
4881 # include <assert.h>
4885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev/null; then
4893 if test -s conftest.err; then
4894 ac_cpp_err=$ac_cxx_preproc_warn_flag
4895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4902 if test -z "$ac_cpp_err"; then
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 # Broken: fails on valid input.
4911 rm -f conftest.err conftest.$ac_ext
4913 # OK, works on sane cases. Now check whether non-existent headers
4914 # can be detected and how.
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <ac_nonexistent.h>
4923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null; then
4931 if test -s conftest.err; then
4932 ac_cpp_err=$ac_cxx_preproc_warn_flag
4933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4940 if test -z "$ac_cpp_err"; then
4941 # Broken: success on invalid input.
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 # Passes both tests.
4951 rm -f conftest.err conftest.$ac_ext
4954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955 rm -f conftest.err conftest.$ac_ext
4956 if $ac_preproc_ok; then
4959 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4960 See \`config.log' for more details." >&5
4961 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4962 See \`config.log' for more details." >&2;}
4963 { (exit 1); exit 1; }; }
4967 ac_cpp='$CXXCPP $CPPFLAGS'
4968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4977 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4979 if test -n "$ac_tool_prefix"; then
4980 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4984 echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986 if test "${ac_cv_prog_F77+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$F77"; then
4990 ac_cv_prog_F77="$F77" # Let the user override the test.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 if test -n "$F77"; then
5010 echo "$as_me:$LINENO: result: $F77" >&5
5011 echo "${ECHO_T}$F77" >&6
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5017 test -n "$F77" && break
5020 if test -z "$F77"; then
5022 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025 set dummy $ac_prog; ac_word=$2
5026 echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 if test -n "$ac_ct_F77"; then
5032 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_ac_ct_F77="$ac_prog"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5051 if test -n "$ac_ct_F77"; then
5052 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5053 echo "${ECHO_T}$ac_ct_F77" >&6
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5059 test -n "$ac_ct_F77" && break
5066 # Provide some information about the compiler.
5067 echo "$as_me:5067:" \
5068 "checking for Fortran 77 compiler version" >&5
5069 ac_compiler=`set X $ac_compile; echo $2`
5070 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5071 (eval $ac_compiler --version </dev/null >&5) 2>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }
5075 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5076 (eval $ac_compiler -v </dev/null >&5) 2>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }
5080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5081 (eval $ac_compiler -V </dev/null >&5) 2>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }
5087 # If we don't use `.F' as extension, the preprocessor is not run on the
5088 # input file. (Note that this only needs to work for GNU compilers.)
5091 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5092 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5093 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 cat >conftest.$ac_ext <<_ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try='test -z "$ac_f77_werror_flag"
5114 || test ! -s conftest.err'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest.$ac_objext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5137 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5138 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5140 ac_test_FFLAGS=${FFLAGS+set}
5141 ac_save_FFLAGS=$FFLAGS
5143 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5144 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5145 if test "${ac_cv_prog_f77_g+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cat >conftest.$ac_ext <<_ACEOF
5154 rm -f conftest.$ac_objext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>conftest.er1
5158 grep -v '^ *+' conftest.er1 >conftest.err
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_f77_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try='test -s conftest.$ac_objext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_prog_f77_g=yes
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5187 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5188 if test "$ac_test_FFLAGS" = set; then
5189 FFLAGS=$ac_save_FFLAGS
5190 elif test $ac_cv_prog_f77_g = yes; then
5191 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5197 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5204 G77=`test $ac_compiler_gnu = yes && echo yes`
5206 ac_cpp='$CPP $CPPFLAGS'
5207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5215 # find the maximum length of command line arguments
5216 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5217 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5218 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 # On DJGPP, this test can blow up pretty badly due to problems in libc
5227 # (any single argument exceeding 2000 bytes causes a buffer overrun
5228 # during glob expansion). Even if it were fixed, the result of this
5229 # check would be larger than it should be.
5230 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5234 # Under GNU Hurd, this test is not required because there is
5235 # no limit to the length of command line arguments.
5236 # Libtool will interpret -1 as no limit whatsoever
5237 lt_cv_sys_max_cmd_len=-1;
5241 # On Win9x/ME, this test blows up -- it succeeds, but takes
5242 # about 5 minutes as the teststring grows exponentially.
5243 # Worse, since 9x/ME are not pre-emptively multitasking,
5244 # you end up with a "frozen" computer, even though with patience
5245 # the test eventually succeeds (with a max line length of 256k).
5246 # Instead, let's just punt: use the minimum linelength reported by
5247 # all of the supported platforms: 8192 (on NT/2K/XP).
5248 lt_cv_sys_max_cmd_len=8192;
5252 # On AmigaOS with pdksh, this test takes hours, literally.
5253 # So we just punt and use a minimum line length of 8192.
5254 lt_cv_sys_max_cmd_len=8192;
5257 netbsd* | freebsd* | openbsd* | darwin* )
5258 # This has been around since 386BSD, at least. Likely further.
5259 if test -x /sbin/sysctl; then
5260 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5261 elif test -x /usr/sbin/sysctl; then
5262 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5264 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5266 # And add a safety zone
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271 # If test is not a shell built-in, we'll probably end up computing a
5272 # maximum length that is only half of the actual maximum length, but
5274 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5275 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5276 = "XX$teststring") >/dev/null 2>&1 &&
5277 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5278 lt_cv_sys_max_cmd_len=$new_result &&
5279 test $i != 17 # 1/2 MB should be enough
5282 teststring=$teststring$teststring
5285 # Add a significant safety factor because C++ compilers can tack on massive
5286 # amounts of additional arguments before passing them to the linker.
5287 # It appears as though 1/2 is a usable value.
5288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5294 if test -n $lt_cv_sys_max_cmd_len ; then
5295 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5296 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5298 echo "$as_me:$LINENO: result: none" >&5
5299 echo "${ECHO_T}none" >&6
5305 # Check for command to grab the raw symbol name followed by C symbol from nm.
5306 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5307 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5308 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 # These are sane defaults that work on at least a few old systems.
5313 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5315 # Character class describing NM global symbol codes.
5316 symcode='[BCDEGRST]'
5318 # Regexp to match symbols that can be accessed directly from C.
5319 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5321 # Transform the above into a raw symbol and a C symbol.
5322 symxfrm='\1 \2\3 \3'
5324 # Transform an extracted symbol line into a proper C declaration
5325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5327 # Transform an extracted symbol line into symbol name and symbol address
5328 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'"
5330 # Define system-specific variables.
5335 cygwin* | mingw* | pw32*)
5336 symcode='[ABCDGISTW]'
5338 hpux*) # Its linker distinguishes data from code symbols
5339 if test "$host_cpu" = ia64; then
5340 symcode='[ABCDEGRST]'
5342 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5343 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'"
5346 if test "$host_cpu" = ia64; then
5347 symcode='[ABCDGIRSTW]'
5348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5349 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'"
5353 symcode='[BCDEGRST]'
5356 symcode='[BCDEGQRST]'
5366 # Handle CRLF in mingw tool chain
5370 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5374 # If we're using GNU nm, then use its standard symbol codes.
5375 case `$NM -V 2>&1` in
5376 *GNU* | *'with BFD'*)
5377 symcode='[ABCDGIRSTW]' ;;
5380 # Try without a prefix undercore, then with it.
5381 for ac_symprfx in "" "_"; do
5383 # Write the raw and C identifiers.
5384 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5386 # Check to see that the pipe works correctly.
5390 cat > conftest.$ac_ext <<EOF
5395 void nm_test_func(){}
5399 int main(){nm_test_var='a';nm_test_func();return(0);}
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; then
5407 # Now try to grab the symbols.
5409 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5410 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && test -s "$nlist"; then
5414 # Try sorting and uniquifying the output.
5415 if sort "$nlist" | uniq > "$nlist"T; then
5416 mv -f "$nlist"T "$nlist"
5421 # Make sure that we snagged all the symbols we need.
5422 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5423 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5424 cat <<EOF > conftest.$ac_ext
5430 # Now generate the symbol file.
5431 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5433 cat <<EOF >> conftest.$ac_ext
5434 #if defined (__STDC__) && __STDC__
5435 # define lt_ptr_t void *
5437 # define lt_ptr_t char *
5441 /* The mapping between symbol names and symbols. */
5446 lt_preloaded_symbols[] =
5449 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5450 cat <<\EOF >> conftest.$ac_ext
5458 # Now try linking the two files.
5459 mv conftest.$ac_objext conftstm.$ac_objext
5460 lt_save_LIBS="$LIBS"
5461 lt_save_CFLAGS="$CFLAGS"
5462 LIBS="conftstm.$ac_objext"
5463 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465 (eval $ac_link) 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5471 LIBS="$lt_save_LIBS"
5472 CFLAGS="$lt_save_CFLAGS"
5474 echo "cannot find nm_test_func in $nlist" >&5
5477 echo "cannot find nm_test_var in $nlist" >&5
5480 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5483 echo "$progname: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5486 rm -f conftest* conftst*
5488 # Do not use the global_symbol_pipe unless it works.
5489 if test "$pipe_works" = yes; then
5492 lt_cv_sys_global_symbol_pipe=
5498 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5499 lt_cv_sys_global_symbol_to_cdecl=
5501 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5502 echo "$as_me:$LINENO: result: failed" >&5
5503 echo "${ECHO_T}failed" >&6
5505 echo "$as_me:$LINENO: result: ok" >&5
5506 echo "${ECHO_T}ok" >&6
5509 echo "$as_me:$LINENO: checking for objdir" >&5
5510 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5511 if test "${lt_cv_objdir+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 rm -f .libs 2>/dev/null
5515 mkdir .libs 2>/dev/null
5516 if test -d .libs; then
5519 # MS-DOS does not allow filenames that begin with a dot.
5522 rmdir .libs 2>/dev/null
5524 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5525 echo "${ECHO_T}$lt_cv_objdir" >&6
5526 objdir=$lt_cv_objdir
5534 # AIX sometimes has problems with the GCC collect2 program. For some
5535 # reason, if we set the COLLECT_NAMES environment variable, the problems
5536 # vanish in a puff of smoke.
5537 if test "X${COLLECT_NAMES+set}" != Xset; then
5539 export COLLECT_NAMES
5544 # Sed substitution that helps us do robust quoting. It backslashifies
5545 # metacharacters that are still active within double-quoted strings.
5546 Xsed='sed -e s/^X//'
5547 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5549 # Same as above, but do not quote variable references.
5550 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5552 # Sed substitution to delay expansion of an escaped shell variable in a
5553 # double_quote_subst'ed string.
5554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5556 # Sed substitution to avoid accidental globbing in evaled expressions
5557 no_glob_subst='s/\*/\\\*/g'
5564 can_build_shared=yes
5566 # All known linkers require a `.a' archive for static linking (except M$VC,
5567 # which needs '.lib').
5569 ltmain="$ac_aux_dir/ltmain.sh"
5570 ofile="$default_ofile"
5571 with_gnu_ld="$lt_cv_prog_gnu_ld"
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}ar; ac_word=$2
5576 echo "$as_me:$LINENO: checking for $ac_word" >&5
5577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578 if test "${ac_cv_prog_AR+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 if test -n "$AR"; then
5582 ac_cv_prog_AR="$AR" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_AR="${ac_tool_prefix}ar"
5592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 if test -n "$AR"; then
5602 echo "$as_me:$LINENO: result: $AR" >&5
5603 echo "${ECHO_T}$AR" >&6
5605 echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5610 if test -z "$ac_cv_prog_AR"; then
5612 # Extract the first word of "ar", so it can be a program name with args.
5613 set dummy ar; ac_word=$2
5614 echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5616 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 if test -n "$ac_ct_AR"; then
5620 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_ac_ct_AR="ar"
5630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5639 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5640 if test -n "$ac_ct_AR"; then
5641 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5642 echo "${ECHO_T}$ac_ct_AR" >&6
5644 echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_prog_RANLIB+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 if test -n "$RANLIB"; then
5662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 RANLIB=$ac_cv_prog_RANLIB
5681 if test -n "$RANLIB"; then
5682 echo "$as_me:$LINENO: result: $RANLIB" >&5
5683 echo "${ECHO_T}$RANLIB" >&6
5685 echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6
5690 if test -z "$ac_cv_prog_RANLIB"; then
5691 ac_ct_RANLIB=$RANLIB
5692 # Extract the first word of "ranlib", so it can be a program name with args.
5693 set dummy ranlib; ac_word=$2
5694 echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5696 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 if test -n "$ac_ct_RANLIB"; then
5700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_ac_ct_RANLIB="ranlib"
5710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5720 if test -n "$ac_ct_RANLIB"; then
5721 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5722 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5724 echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5728 RANLIB=$ac_ct_RANLIB
5730 RANLIB="$ac_cv_prog_RANLIB"
5733 if test -n "$ac_tool_prefix"; then
5734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5735 set dummy ${ac_tool_prefix}strip; ac_word=$2
5736 echo "$as_me:$LINENO: checking for $ac_word" >&5
5737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738 if test "${ac_cv_prog_STRIP+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 if test -n "$STRIP"; then
5742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 STRIP=$ac_cv_prog_STRIP
5761 if test -n "$STRIP"; then
5762 echo "$as_me:$LINENO: result: $STRIP" >&5
5763 echo "${ECHO_T}$STRIP" >&6
5765 echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6
5770 if test -z "$ac_cv_prog_STRIP"; then
5772 # Extract the first word of "strip", so it can be a program name with args.
5773 set dummy strip; ac_word=$2
5774 echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 if test -n "$ac_ct_STRIP"; then
5780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_ac_ct_STRIP="strip"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5800 if test -n "$ac_ct_STRIP"; then
5801 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5802 echo "${ECHO_T}$ac_ct_STRIP" >&6
5804 echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6
5810 STRIP="$ac_cv_prog_STRIP"
5815 old_CFLAGS="$CFLAGS"
5817 # Set sane defaults for various variables
5818 test -z "$AR" && AR=ar
5819 test -z "$AR_FLAGS" && AR_FLAGS=cru
5820 test -z "$AS" && AS=as
5821 test -z "$CC" && CC=cc
5822 test -z "$LTCC" && LTCC=$CC
5823 test -z "$DLLTOOL" && DLLTOOL=dlltool
5824 test -z "$LD" && LD=ld
5825 test -z "$LN_S" && LN_S="ln -s"
5826 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5827 test -z "$NM" && NM=nm
5828 test -z "$SED" && SED=sed
5829 test -z "$OBJDUMP" && OBJDUMP=objdump
5830 test -z "$RANLIB" && RANLIB=:
5831 test -z "$STRIP" && STRIP=:
5832 test -z "$ac_objext" && ac_objext=o
5834 # Determine commands to create old-style static archives.
5835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5836 old_postinstall_cmds='chmod 644 $oldlib'
5837 old_postuninstall_cmds=
5839 if test -n "$RANLIB"; then
5842 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5845 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5851 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5853 # Only perform the check for file, if the check method requires it
5854 case $deplibs_check_method in
5856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5857 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5858 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5867 lt_save_MAGIC_CMD="$MAGIC_CMD"
5868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5870 for ac_dir in $ac_dummy; do
5872 test -z "$ac_dir" && ac_dir=.
5873 if test -f $ac_dir/${ac_tool_prefix}file; then
5874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5875 if test -n "$file_magic_test_file"; then
5876 case $deplibs_check_method in
5878 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5881 $EGREP "$file_magic_regex" > /dev/null; then
5886 *** Warning: the command libtool uses to detect shared libraries,
5887 *** $file_magic_cmd, produces output that libtool cannot recognize.
5888 *** The result is that libtool may fail to recognize shared libraries
5889 *** as such. This will affect the creation of libtool libraries that
5890 *** depend on shared libraries, but programs linked with such libtool
5891 *** libraries will work regardless of this problem. Nevertheless, you
5892 *** may want to report the problem to your system manager and/or to
5893 *** bug-libtool@gnu.org
5903 MAGIC_CMD="$lt_save_MAGIC_CMD"
5908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909 if test -n "$MAGIC_CMD"; then
5910 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5911 echo "${ECHO_T}$MAGIC_CMD" >&6
5913 echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5917 if test -z "$lt_cv_path_MAGIC_CMD"; then
5918 if test -n "$ac_tool_prefix"; then
5919 echo "$as_me:$LINENO: checking for file" >&5
5920 echo $ECHO_N "checking for file... $ECHO_C" >&6
5921 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5929 lt_save_MAGIC_CMD="$MAGIC_CMD"
5930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5932 for ac_dir in $ac_dummy; do
5934 test -z "$ac_dir" && ac_dir=.
5935 if test -f $ac_dir/file; then
5936 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5937 if test -n "$file_magic_test_file"; then
5938 case $deplibs_check_method in
5940 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5943 $EGREP "$file_magic_regex" > /dev/null; then
5948 *** Warning: the command libtool uses to detect shared libraries,
5949 *** $file_magic_cmd, produces output that libtool cannot recognize.
5950 *** The result is that libtool may fail to recognize shared libraries
5951 *** as such. This will affect the creation of libtool libraries that
5952 *** depend on shared libraries, but programs linked with such libtool
5953 *** libraries will work regardless of this problem. Nevertheless, you
5954 *** may want to report the problem to your system manager and/or to
5955 *** bug-libtool@gnu.org
5965 MAGIC_CMD="$lt_save_MAGIC_CMD"
5970 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971 if test -n "$MAGIC_CMD"; then
5972 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5973 echo "${ECHO_T}$MAGIC_CMD" >&6
5975 echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5991 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5992 if test "${enable_libtool_lock+set}" = set; then
5993 enableval="$enable_libtool_lock"
5996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5999 # Check whether --with-pic or --without-pic was given.
6000 if test "${with_pic+set}" = set; then
6006 test -z "$pic_mode" && pic_mode=default
6008 # Use C for the default configuration in the libtool script
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018 # Source file extension for C test sources.
6021 # Object file extension for compiled C test sources.
6025 # Code to be used in simple compile tests
6026 lt_simple_compile_test_code="int some_variable = 0;\n"
6028 # Code to be used in simple link tests
6029 lt_simple_link_test_code='int main(){return(0);}\n'
6032 # If no C compiler was specified, use CC.
6035 # Allow CC to be a program name with arguments.
6040 # Check for any special shared library compilation flags.
6043 if test "$GCC" = no; then
6046 lt_prog_cc_shlib='-belf'
6050 if test -n "$lt_prog_cc_shlib"; then
6051 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6052 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6053 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6055 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6056 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6057 lt_cv_prog_cc_can_build_shared=no
6063 # Check to make sure the static flag actually works.
6065 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6066 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6067 if test "${lt_prog_compiler_static_works+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 lt_prog_compiler_static_works=no
6071 save_LDFLAGS="$LDFLAGS"
6072 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6073 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6075 # The compiler can only warn and ignore the option if not recognized
6076 # So say no if there are warnings
6077 if test -s conftest.err; then
6078 # Append any errors to the config.log.
6079 cat conftest.err 1>&5
6081 lt_prog_compiler_static_works=yes
6085 LDFLAGS="$save_LDFLAGS"
6088 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6089 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6091 if test x"$lt_prog_compiler_static_works" = xyes; then
6094 lt_prog_compiler_static=
6100 lt_prog_compiler_no_builtin_flag=
6102 if test "$GCC" = yes; then
6103 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6106 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6107 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6108 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 lt_cv_prog_compiler_rtti_exceptions=no
6112 ac_outfile=conftest.$ac_objext
6113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6114 lt_compiler_flag="-fno-rtti -fno-exceptions"
6115 # Insert the option either (1) after the last *FLAGS variable, or
6116 # (2) before a word containing "conftest.", or (3) at the end.
6117 # Note that $ac_compile itself does not contain backslashes and begins
6118 # with a dollar sign (not a hyphen), so the echo should work correctly.
6119 # The option is referenced via a variable to avoid confusing sed.
6120 lt_compile=`echo "$ac_compile" | $SED \
6121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6123 -e 's:$: $lt_compiler_flag:'`
6124 (eval echo "\"\$as_me:6124: $lt_compile\"" >&5)
6125 (eval "$lt_compile" 2>conftest.err)
6127 cat conftest.err >&5
6128 echo "$as_me:6128: \$? = $ac_status" >&5
6129 if (exit $ac_status) && test -s "$ac_outfile"; then
6130 # The compiler can only warn and ignore the option if not recognized
6131 # So say no if there are warnings
6132 if test ! -s conftest.err; then
6133 lt_cv_prog_compiler_rtti_exceptions=yes
6139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6140 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6142 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6143 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6150 lt_prog_compiler_wl=
6151 lt_prog_compiler_pic=
6152 lt_prog_compiler_static=
6154 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6155 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6157 if test "$GCC" = yes; then
6158 lt_prog_compiler_wl='-Wl,'
6159 lt_prog_compiler_static='-static'
6163 # All AIX code is PIC.
6164 if test "$host_cpu" = ia64; then
6165 # AIX 5 now supports IA64 processor
6166 lt_prog_compiler_static='-Bstatic'
6171 # FIXME: we need at least 68020 code to build shared libraries, but
6172 # adding the `-m68020' flag to GCC prevents building anything better,
6174 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6178 # PIC is the default for these OSes.
6181 mingw* | pw32* | os2*)
6182 # This hack is so that the source file can tell whether it is being
6183 # built for inclusion in a dll (and should export symbols for example).
6184 lt_prog_compiler_pic='-DDLL_EXPORT'
6187 darwin* | rhapsody*)
6188 # PIC is the default on this platform
6189 # Common symbols not allowed in MH_DYLIB files
6190 lt_prog_compiler_pic='-fno-common'
6194 # Just because we use GCC doesn't mean we suddenly get shared libraries
6195 # on systems that don't support them.
6196 lt_prog_compiler_can_build_shared=no
6201 if test -d /usr/nec; then
6202 lt_prog_compiler_pic=-Kconform_pic
6207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6214 lt_prog_compiler_pic='-fPIC'
6220 lt_prog_compiler_pic='-fPIC'
6224 # PORTME Check for flag to pass linker flags through the system compiler.
6227 lt_prog_compiler_wl='-Wl,'
6228 if test "$host_cpu" = ia64; then
6229 # AIX 5 now supports IA64 processor
6230 lt_prog_compiler_static='-Bstatic'
6232 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6236 # PIC is the default on this platform
6237 # Common symbols not allowed in MH_DYLIB files
6238 case "$cc_basename" in
6240 lt_prog_compiler_pic='-qnocommon'
6241 lt_prog_compiler_wl='-Wl,'
6246 mingw* | pw32* | os2*)
6247 # This hack is so that the source file can tell whether it is being
6248 # built for inclusion in a dll (and should export symbols for example).
6249 lt_prog_compiler_pic='-DDLL_EXPORT'
6252 hpux9* | hpux10* | hpux11*)
6253 lt_prog_compiler_wl='-Wl,'
6254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6261 lt_prog_compiler_pic='+Z'
6264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6265 lt_prog_compiler_static='${wl}-a ${wl}archive'
6268 irix5* | irix6* | nonstopux*)
6269 lt_prog_compiler_wl='-Wl,'
6270 # PIC (with -KPIC) is the default.
6271 lt_prog_compiler_static='-non_shared'
6275 lt_prog_compiler_pic='-KPIC'
6276 lt_prog_compiler_static='-Bstatic'
6282 lt_prog_compiler_wl='-Wl,'
6283 lt_prog_compiler_pic='-KPIC'
6284 lt_prog_compiler_static='-static'
6287 lt_prog_compiler_wl='-Wl,'
6288 # All Alpha code is PIC.
6289 lt_prog_compiler_static='-non_shared'
6294 osf3* | osf4* | osf5*)
6295 lt_prog_compiler_wl='-Wl,'
6296 # All OSF/1 code is PIC.
6297 lt_prog_compiler_static='-non_shared'
6301 lt_prog_compiler_pic='-Kpic'
6302 lt_prog_compiler_static='-dn'
6306 lt_prog_compiler_wl='-Wl,'
6307 lt_prog_compiler_pic='-KPIC'
6308 lt_prog_compiler_static='-Bstatic'
6312 lt_prog_compiler_wl='-Qoption ld '
6313 lt_prog_compiler_pic='-PIC'
6314 lt_prog_compiler_static='-Bstatic'
6317 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6318 lt_prog_compiler_wl='-Wl,'
6319 lt_prog_compiler_pic='-KPIC'
6320 lt_prog_compiler_static='-Bstatic'
6324 if test -d /usr/nec ;then
6325 lt_prog_compiler_pic='-Kconform_pic'
6326 lt_prog_compiler_static='-Bstatic'
6331 lt_prog_compiler_pic='-pic'
6332 lt_prog_compiler_static='-Bstatic'
6336 lt_prog_compiler_can_build_shared=no
6341 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6342 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6345 # Check to make sure the PIC flag actually works.
6347 if test -n "$lt_prog_compiler_pic"; then
6349 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6351 if test "${lt_prog_compiler_pic_works+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 lt_prog_compiler_pic_works=no
6355 ac_outfile=conftest.$ac_objext
6356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6357 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6358 # Insert the option either (1) after the last *FLAGS variable, or
6359 # (2) before a word containing "conftest.", or (3) at the end.
6360 # Note that $ac_compile itself does not contain backslashes and begins
6361 # with a dollar sign (not a hyphen), so the echo should work correctly.
6362 # The option is referenced via a variable to avoid confusing sed.
6363 lt_compile=`echo "$ac_compile" | $SED \
6364 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6366 -e 's:$: $lt_compiler_flag:'`
6367 (eval echo "\"\$as_me:6367: $lt_compile\"" >&5)
6368 (eval "$lt_compile" 2>conftest.err)
6370 cat conftest.err >&5
6371 echo "$as_me:6371: \$? = $ac_status" >&5
6372 if (exit $ac_status) && test -s "$ac_outfile"; then
6373 # The compiler can only warn and ignore the option if not recognized
6374 # So say no if there are warnings
6375 if test ! -s conftest.err; then
6376 lt_prog_compiler_pic_works=yes
6382 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6383 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6385 if test x"$lt_prog_compiler_pic_works" = xyes; then
6386 case $lt_prog_compiler_pic in
6388 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6391 lt_prog_compiler_pic=
6392 lt_prog_compiler_can_build_shared=no
6397 # For platforms which do not support PIC, -DPIC is meaningless:
6399 lt_prog_compiler_pic=
6402 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6406 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6407 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6408 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 lt_cv_prog_compiler_c_o=no
6412 $rm -r conftest 2>/dev/null
6416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6418 lt_compiler_flag="-o out/conftest2.$ac_objext"
6419 # Insert the option either (1) after the last *FLAGS variable, or
6420 # (2) before a word containing "conftest.", or (3) at the end.
6421 # Note that $ac_compile itself does not contain backslashes and begins
6422 # with a dollar sign (not a hyphen), so the echo should work correctly.
6423 lt_compile=`echo "$ac_compile" | $SED \
6424 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6426 -e 's:$: $lt_compiler_flag:'`
6427 (eval echo "\"\$as_me:6427: $lt_compile\"" >&5)
6428 (eval "$lt_compile" 2>out/conftest.err)
6430 cat out/conftest.err >&5
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6434 # The compiler can only warn and ignore the option if not recognized
6435 # So say no if there are warnings
6436 if test ! -s out/conftest.err; then
6437 lt_cv_prog_compiler_c_o=yes
6442 # SGI C++ compiler will create directory out/ii_files/ for
6443 # template instantiation
6444 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6445 $rm out/* && rmdir out
6451 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6452 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6455 hard_links="nottested"
6456 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6457 # do not overwrite the value of need_locks provided by the user
6458 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6459 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6464 ln conftest.a conftest.b 2>&5 || hard_links=no
6465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6466 echo "$as_me:$LINENO: result: $hard_links" >&5
6467 echo "${ECHO_T}$hard_links" >&6
6468 if test "$hard_links" = no; then
6469 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6470 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6477 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6478 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6481 allow_undefined_flag=
6482 enable_shared_with_static_runtimes=no
6484 archive_expsym_cmds=
6485 old_archive_From_new_cmds=
6486 old_archive_from_expsyms_cmds=
6487 export_dynamic_flag_spec=
6488 whole_archive_flag_spec=
6489 thread_safe_flag_spec=
6490 hardcode_libdir_flag_spec=
6491 hardcode_libdir_flag_spec_ld=
6492 hardcode_libdir_separator=
6495 hardcode_shlibpath_var=unsupported
6496 link_all_deplibs=unknown
6497 hardcode_automatic=no
6500 always_export_symbols=no
6501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6502 # include_expsyms should be a list of space-separated symbols to be *always*
6503 # included in the symbol list
6505 # exclude_expsyms can be an extended regexp of symbols to exclude
6506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6508 # as well as any symbol that contains `d'.
6509 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6511 # platforms (ab)use it in PIC code, but their linkers get confused if
6512 # the symbol is explicitly referenced. Since portable code cannot
6513 # rely on this symbol name, it's probably fine to never include it in
6514 # preloaded symbol tables.
6515 extract_expsyms_cmds=
6518 cygwin* | mingw* | pw32*)
6519 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6520 # When not using gcc, we currently assume that we are using
6521 # Microsoft Visual C++.
6522 if test "$GCC" != yes; then
6532 if test "$with_gnu_ld" = yes; then
6533 # If archive_cmds runs LD, not CC, wlarc should be empty
6536 # See if GNU ld supports shared libraries.
6538 aix3* | aix4* | aix5*)
6539 # On AIX/PPC, the GNU linker is very broken
6540 if test "$host_cpu" != ia64; then
6544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6545 *** to be unable to reliably create shared libraries on AIX.
6546 *** Therefore, libtool is disabling shared libraries support. If you
6547 *** really care for shared libraries, you may want to modify your PATH
6548 *** so that a non-GNU linker is found, and then restart.
6555 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)'
6556 hardcode_libdir_flag_spec='-L$libdir'
6557 hardcode_minus_L=yes
6559 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6560 # that the semantics of dynamic libraries on AmigaOS, at least up
6561 # to version 4, is to share data among multiple programs linked
6562 # with the same dynamic library. Since this doesn't match the
6563 # behavior of shared libraries on other platforms, we can't use
6569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6570 allow_undefined_flag=unsupported
6571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6572 # support --undefined. This deserves some investigation. FIXME
6573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6579 cygwin* | mingw* | pw32*)
6580 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6581 # as there is no search path for DLLs.
6582 hardcode_libdir_flag_spec='-L$libdir'
6583 allow_undefined_flag=unsupported
6584 always_export_symbols=no
6585 enable_shared_with_static_runtimes=yes
6586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6588 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6590 # If the export-symbols file already is a .def file (1st line
6591 # is EXPORTS), use it as is; otherwise, prepend...
6592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6593 cp $export_symbols $output_objdir/$soname.def;
6595 echo EXPORTS > $output_objdir/$soname.def;
6596 cat $export_symbols >> $output_objdir/$soname.def;
6598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6606 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6615 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6619 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6620 *** create shared libraries on Solaris systems. Therefore, libtool
6621 *** is disabling shared libraries support. We urge you to upgrade GNU
6622 *** binutils to release 2.9.1 or newer. Another option is to modify
6623 *** your PATH or compiler configuration so that the native linker is
6624 *** used, and then restart.
6627 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6639 hardcode_shlibpath_var=no
6643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6644 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6645 archive_cmds="$tmp_archive_cmds"
6646 supports_anon_versioning=no
6647 case `$LD -v 2>/dev/null` in
6648 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6651 *\ 2.11.*) ;; # other 2.11 versions
6652 *) supports_anon_versioning=yes ;;
6654 if test $supports_anon_versioning = yes; then
6655 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6657 $echo "local: *; };" >> $output_objdir/$libname.ver~
6658 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6660 archive_expsym_cmds="$tmp_archive_cmds"
6668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6677 if test "$ld_shlibs" = yes; then
6678 runpath_var=LD_RUN_PATH
6679 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6680 export_dynamic_flag_spec='${wl}--export-dynamic'
6681 # ancient GNU ld didn't support --whole-archive et. al.
6682 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6683 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6685 whole_archive_flag_spec=
6689 # PORTME fill in a description of your system's linker (not GNU ld)
6692 allow_undefined_flag=unsupported
6693 always_export_symbols=yes
6694 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'
6695 # Note: this linker hardcodes the directories in LIBPATH if there
6696 # are no directories specified by -L.
6697 hardcode_minus_L=yes
6698 if test "$GCC" = yes && test -z "$link_static_flag"; then
6699 # Neither direct hardcoding nor static linking is supported with a
6701 hardcode_direct=unsupported
6706 if test "$host_cpu" = ia64; then
6707 # On IA64, the linker does run time linking by default, so we don't
6708 # have to do anything special.
6709 aix_use_runtimelinking=no
6710 exp_sym_flag='-Bexport'
6713 # If we're using GNU nm, then we don't want the "-C" option.
6714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6716 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'
6718 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'
6720 aix_use_runtimelinking=no
6722 # Test if we are trying to use run time linking or normal
6723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6724 # need to do runtime linking.
6725 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6726 for ld_flag in $LDFLAGS; do
6727 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6728 aix_use_runtimelinking=yes
6734 exp_sym_flag='-bexport'
6735 no_entry_flag='-bnoentry'
6738 # When large executables or shared objects are built, AIX ld can
6739 # have problems creating the table of contents. If linking a library
6740 # or program results in "error TOC overflow" add -mminimal-toc to
6741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6746 hardcode_libdir_separator=':'
6747 link_all_deplibs=yes
6749 if test "$GCC" = yes; then
6750 case $host_os in aix4.012|aix4.012.*)
6751 # We only want to do this on AIX 4.2 and lower, the check
6752 # below for broken collect2 doesn't work under 4.3+
6753 collect2name=`${CC} -print-prog-name=collect2`
6754 if test -f "$collect2name" && \
6755 strings "$collect2name" | grep resolve_lib_name >/dev/null
6757 # We have reworked collect2
6760 # We have old collect2
6761 hardcode_direct=unsupported
6762 # It fails to find uninstalled libraries when the uninstalled
6763 # path is not listed in the libpath. Setting hardcode_minus_L
6764 # to unsupported forces relinking
6765 hardcode_minus_L=yes
6766 hardcode_libdir_flag_spec='-L$libdir'
6767 hardcode_libdir_separator=
6770 shared_flag='-shared'
6773 if test "$host_cpu" = ia64; then
6774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6775 # chokes on -Wl,-G. The following line is correct:
6778 if test "$aix_use_runtimelinking" = yes; then
6779 shared_flag='${wl}-G'
6781 shared_flag='${wl}-bM:SRE'
6786 # It seems that -bexpall does not export symbols beginning with
6787 # underscore (_), so it is better to generate a list of symbols to export.
6788 always_export_symbols=yes
6789 if test "$aix_use_runtimelinking" = yes; then
6790 # Warning - without using the other runtime loading flags (-brtl),
6791 # -berok will link without error, but may produce a broken library.
6792 allow_undefined_flag='-berok'
6793 # Determine the default libpath from the value encoded in an empty executable.
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6813 grep -v '^ *+' conftest.er1 >conftest.err
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6834 # Check for a 64-bit object if we didn't find anything.
6835 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; }
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6842 rm -f conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847 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"
6849 if test "$host_cpu" = ia64; then
6850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6851 allow_undefined_flag="-z nodefs"
6852 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"
6854 # Determine the default libpath from the value encoded in an empty executable.
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872 (eval $ac_link) 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6895 # Check for a 64-bit object if we didn't find anything.
6896 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; }
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6908 # Warning - without using the other run time loading flags,
6909 # -berok will link without error, but may produce a broken library.
6910 no_undefined_flag=' ${wl}-bernotok'
6911 allow_undefined_flag=' ${wl}-berok'
6912 # -bexpall does not export symbols beginning with underscore (_)
6913 always_export_symbols=yes
6914 # Exported symbols can be pulled into shared objects from archives
6915 whole_archive_flag_spec=' '
6916 archive_cmds_need_lc=yes
6917 # This is similar to how AIX traditionally builds it's shared libraries.
6918 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'
6924 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)'
6925 hardcode_libdir_flag_spec='-L$libdir'
6926 hardcode_minus_L=yes
6927 # see comment about different semantics on the GNU ld section
6932 export_dynamic_flag_spec=-rdynamic
6935 cygwin* | mingw* | pw32*)
6936 # When not using gcc, we currently assume that we are using
6937 # Microsoft Visual C++.
6938 # hardcode_libdir_flag_spec is actually meaningless, as there is
6939 # no search path for DLLs.
6940 hardcode_libdir_flag_spec=' '
6941 allow_undefined_flag=unsupported
6942 # Tell ltmain to make .lib files, not .a files.
6944 # Tell ltmain to make .dll files, not .so files.
6946 # FIXME: Setting linknames here is a bad hack.
6947 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6948 # The linker will automatically build a .lib file if we build a DLL.
6949 old_archive_From_new_cmds='true'
6950 # FIXME: Should let the user specify the lib program.
6951 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6952 fix_srcfile_path='`cygpath -w "$srcfile"`'
6953 enable_shared_with_static_runtimes=yes
6956 darwin* | rhapsody*)
6958 rhapsody* | darwin1.[012])
6959 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6962 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6963 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6965 case ${MACOSX_DEPLOYMENT_TARGET} in
6967 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6970 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6976 archive_cmds_need_lc=no
6978 hardcode_automatic=yes
6979 hardcode_shlibpath_var=unsupported
6980 whole_archive_flag_spec=''
6981 link_all_deplibs=yes
6982 if test "$GCC" = yes ; then
6983 output_verbose_link_cmd='echo'
6984 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6985 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6987 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}'
6988 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}'
6990 case "$cc_basename" in
6992 output_verbose_link_cmd='echo'
6993 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6994 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6995 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6996 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}'
6997 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}'
7007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7008 hardcode_libdir_flag_spec='-L$libdir'
7009 hardcode_shlibpath_var=no
7016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7017 # support. Future versions do this automatically, but an explicit c++rt0.o
7018 # does not break anything, and helps significantly (at the cost of a little
7021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7022 hardcode_libdir_flag_spec='-R$libdir'
7024 hardcode_shlibpath_var=no
7027 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7031 hardcode_minus_L=yes
7032 hardcode_shlibpath_var=no
7035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7036 freebsd* | kfreebsd*-gnu)
7037 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7038 hardcode_libdir_flag_spec='-R$libdir'
7040 hardcode_shlibpath_var=no
7044 if test "$GCC" = yes; then
7045 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'
7047 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'
7049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7050 hardcode_libdir_separator=:
7053 # hardcode_minus_L: Not really in the search PATH,
7054 # but as the default location of the library.
7055 hardcode_minus_L=yes
7056 export_dynamic_flag_spec='${wl}-E'
7060 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7063 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7066 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7072 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7075 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7079 if test "$with_gnu_ld" = no; then
7082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7083 hardcode_libdir_flag_spec_ld='+b $libdir'
7084 hardcode_libdir_separator=:
7086 hardcode_shlibpath_var=no
7089 hardcode_libdir_flag_spec='-L$libdir'
7091 hardcode_shlibpath_var=no
7093 # hardcode_minus_L: Not really in the search PATH,
7094 # but as the default location of the library.
7095 hardcode_minus_L=yes
7098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7099 hardcode_libdir_separator=:
7101 export_dynamic_flag_spec='${wl}-E'
7103 # hardcode_minus_L: Not really in the search PATH,
7104 # but as the default location of the library.
7105 hardcode_minus_L=yes
7111 irix5* | irix6* | nonstopux*)
7112 if test "$GCC" = yes; then
7113 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'
7115 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'
7116 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7119 hardcode_libdir_separator=:
7120 link_all_deplibs=yes
7124 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7127 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7129 hardcode_libdir_flag_spec='-R$libdir'
7131 hardcode_shlibpath_var=no
7135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7138 hardcode_libdir_separator=:
7139 hardcode_shlibpath_var=no
7144 hardcode_shlibpath_var=no
7145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7146 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7147 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149 export_dynamic_flag_spec='${wl}-E'
7152 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154 hardcode_libdir_flag_spec='-R$libdir'
7157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7158 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7165 hardcode_libdir_flag_spec='-L$libdir'
7166 hardcode_minus_L=yes
7167 allow_undefined_flag=unsupported
7168 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'
7169 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7173 if test "$GCC" = yes; then
7174 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7175 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'
7177 allow_undefined_flag=' -expect_unresolved \*'
7178 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'
7180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181 hardcode_libdir_separator=:
7184 osf4* | osf5*) # as osf3* with the addition of -msym flag
7185 if test "$GCC" = yes; then
7186 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7187 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'
7188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7190 allow_undefined_flag=' -expect_unresolved \*'
7191 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'
7192 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7193 $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'
7195 # Both c and cxx compiler support -rpath directly
7196 hardcode_libdir_flag_spec='-rpath $libdir'
7198 hardcode_libdir_separator=:
7202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7203 hardcode_shlibpath_var=no
7204 export_dynamic_flag_spec='${wl}-Bexport'
7205 runpath_var=LD_RUN_PATH
7206 hardcode_runpath_var=yes
7210 no_undefined_flag=' -z text'
7211 if test "$GCC" = yes; then
7212 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7213 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7216 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7220 hardcode_libdir_flag_spec='-R$libdir'
7221 hardcode_shlibpath_var=no
7223 solaris2.[0-5] | solaris2.[0-5].*) ;;
7224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7225 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7227 link_all_deplibs=yes
7231 if test "x$host_vendor" = xsequent; then
7232 # Use $CC to link under sequent, because it throws in some extra .o
7233 # files that make .init and .fini sections work.
7234 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7236 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_libdir_flag_spec='-L$libdir'
7240 hardcode_minus_L=yes
7241 hardcode_shlibpath_var=no
7245 case $host_vendor in
7247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7248 hardcode_direct=yes # is this really true???
7251 ## LD is ld it makes a PLAMLIB
7252 ## CC just makes a GrossModule.
7253 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7254 reload_cmds='$CC -r -o $output$reload_objs'
7258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7259 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7262 runpath_var='LD_RUN_PATH'
7263 hardcode_shlibpath_var=no
7267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_shlibpath_var=no
7269 export_dynamic_flag_spec='-Bexport'
7273 if test -d /usr/nec; then
7274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 hardcode_shlibpath_var=no
7276 runpath_var=LD_RUN_PATH
7277 hardcode_runpath_var=yes
7283 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_shlibpath_var=no
7287 hardcode_runpath_var=yes
7288 runpath_var=LD_RUN_PATH
7291 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7292 no_undefined_flag='${wl}-z ${wl}text'
7293 if test "$GCC" = yes; then
7294 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7296 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7298 runpath_var='LD_RUN_PATH'
7299 hardcode_shlibpath_var=no
7303 no_undefined_flag=' -z text'
7304 # $CC -shared without GNU ld will not create a library from C++
7305 # object files and a static libstdc++, better avoid it by now
7306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7307 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7309 hardcode_libdir_flag_spec=
7310 hardcode_shlibpath_var=no
7311 runpath_var='LD_RUN_PATH'
7315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_libdir_flag_spec='-L$libdir'
7317 hardcode_shlibpath_var=no
7326 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7327 echo "${ECHO_T}$ld_shlibs" >&6
7328 test "$ld_shlibs" = no && can_build_shared=no
7330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7331 if test "$GCC" = yes; then
7332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7336 # Do we need to explicitly link libc?
7338 case "x$archive_cmds_need_lc" in
7340 # Assume -lc should be added
7341 archive_cmds_need_lc=yes
7343 if test "$enable_shared" = yes && test "$GCC" = yes; then
7344 case $archive_cmds in
7346 # FIXME: we may have to deal with multi-command sequences.
7349 # Test whether the compiler implicitly links with -lc since on some
7350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7351 # to ld, don't add -lc before -lgcc.
7352 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } 2>conftest.err; then
7364 libobjs=conftest.$ac_objext
7366 wl=$lt_prog_compiler_wl
7372 lt_save_allow_undefined_flag=$allow_undefined_flag
7373 allow_undefined_flag=
7374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7375 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }
7380 archive_cmds_need_lc=no
7382 archive_cmds_need_lc=yes
7384 allow_undefined_flag=$lt_save_allow_undefined_flag
7386 cat conftest.err 1>&5
7389 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7390 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7397 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7400 libname_spec='lib$name'
7408 shlibpath_overrides_runpath=unknown
7410 dynamic_linker="$host_os ld.so"
7411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7412 if test "$GCC" = yes; then
7413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7414 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7415 # if the path contains ";" then we assume it to be the separator
7416 # otherwise default to the standard path separator (i.e. ":") - it is
7417 # assumed that no part of a normal pathname contains ";" but that should
7418 # okay in the real world where ";" in dirpaths is itself problematic.
7419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7426 need_lib_prefix=unknown
7427 hardcode_into_libs=no
7429 # when you set need_version to no, make sure it does not cause -set_version
7430 # flags to be left without arguments
7431 need_version=unknown
7436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7437 shlibpath_var=LIBPATH
7439 # AIX 3 has no versioning support, so we append a major version to the name.
7440 soname_spec='${libname}${release}${shared_ext}$major'
7447 hardcode_into_libs=yes
7448 if test "$host_cpu" = ia64; then
7449 # AIX 5 supports IA64
7450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7451 shlibpath_var=LD_LIBRARY_PATH
7453 # With GCC up to 2.95.x, collect2 would create an import file
7454 # for dependence libraries. The import file would start with
7455 # the line `#! .'. This would cause the generated library to
7456 # depend on `.', always an invalid library. This was fixed in
7457 # development snapshots of GCC prior to 3.0.
7459 aix4 | aix4.[01] | aix4.[01].*)
7460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7470 # soname into executable. Probably we can add versioning support to
7471 # collect2, so additional links can be useful in future.
7472 if test "$aix_use_runtimelinking" = yes; then
7473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7474 # instead of lib<name>.a to let people know that these are not
7475 # typical AIX shared libraries.
7476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7478 # We preserve .a as extension for shared libraries through AIX4.2
7479 # and later when we are not doing run time linking.
7480 library_names_spec='${libname}${release}.a $libname.a'
7481 soname_spec='${libname}${release}${shared_ext}$major'
7483 shlibpath_var=LIBPATH
7488 library_names_spec='$libname.ixlibrary $libname.a'
7489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7490 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'
7494 library_names_spec='${libname}${shared_ext}'
7495 dynamic_linker="$host_os ld.so"
7496 shlibpath_var=LIBRARY_PATH
7502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503 soname_spec='${libname}${release}${shared_ext}$major'
7504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7505 shlibpath_var=LD_LIBRARY_PATH
7506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7508 # the default ld.so.conf also contains /usr/contrib/lib and
7509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7510 # libtool to hard-code these into programs
7513 cygwin* | mingw* | pw32*)
7514 version_type=windows
7519 case $GCC,$host_os in
7520 yes,cygwin* | yes,mingw* | yes,pw32*)
7521 library_names_spec='$libname.dll.a'
7522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7523 postinstall_cmds='base_file=`basename \${file}`~
7524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7525 dldir=$destdir/`dirname \$dlpath`~
7526 test -d \$dldir || mkdir -p \$dldir~
7527 $install_prog $dir/$dlname \$dldir/$dlname'
7528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7529 dlpath=$dir/\$dldll~
7531 shlibpath_overrides_runpath=yes
7535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7540 # MinGW DLLs use traditional 'lib' prefix
7541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7544 # It is most probably a Windows format PATH printed by
7545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7546 # path with ; separators, and with drive letters. We can handle the
7547 # drive letters (cygwin fileutils understands them), so leave them,
7548 # especially as we might pass files found there to a mingw objdump,
7549 # which wouldn't understand a cygwinified path. Ahh.
7550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7556 # pw32 DLLs use 'pw' prefix rather than 'lib'
7557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7566 dynamic_linker='Win32 ld.exe'
7567 # FIXME: first we should search . and the directory the executable is in
7571 darwin* | rhapsody*)
7572 dynamic_linker="$host_os dyld"
7576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7577 soname_spec='${libname}${release}${major}$shared_ext'
7578 shlibpath_overrides_runpath=yes
7579 shlibpath_var=DYLD_LIBRARY_PATH
7580 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7582 if test "$GCC" = yes; then
7583 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"`
7585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7595 soname_spec='${libname}${release}${shared_ext}$major'
7596 shlibpath_var=LD_LIBRARY_PATH
7607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7608 soname_spec='${libname}${release}${shared_ext}$major'
7609 shlibpath_var=LD_LIBRARY_PATH
7610 shlibpath_overrides_runpath=no
7611 hardcode_into_libs=yes
7612 dynamic_linker='GNU ld.so'
7616 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7617 version_type=freebsd-$objformat
7618 case $version_type in
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7629 shlibpath_var=LD_LIBRARY_PATH
7632 shlibpath_overrides_runpath=yes
7634 freebsd3.01* | freebsdelf3.01*)
7635 shlibpath_overrides_runpath=yes
7636 hardcode_into_libs=yes
7639 shlibpath_overrides_runpath=no
7640 hardcode_into_libs=yes
7649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7650 soname_spec='${libname}${release}${shared_ext}$major'
7651 shlibpath_var=LD_LIBRARY_PATH
7652 hardcode_into_libs=yes
7655 hpux9* | hpux10* | hpux11*)
7656 # Give a soname corresponding to the major version so that dld.sl refuses to
7657 # link against other versions.
7664 hardcode_into_libs=yes
7665 dynamic_linker="$host_os dld.so"
7666 shlibpath_var=LD_LIBRARY_PATH
7667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 if test "X$HPUX_IA64_MODE" = X32; then
7671 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7679 hardcode_into_libs=yes
7680 dynamic_linker="$host_os dld.sl"
7681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7684 soname_spec='${libname}${release}${shared_ext}$major'
7685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7690 dynamic_linker="$host_os dld.sl"
7691 shlibpath_var=SHLIB_PATH
7692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7694 soname_spec='${libname}${release}${shared_ext}$major'
7697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7698 postinstall_cmds='chmod 555 $lib'
7701 irix5* | irix6* | nonstopux*)
7703 nonstopux*) version_type=nonstopux ;;
7705 if test "$lt_cv_prog_gnu_ld" = yes; then
7713 soname_spec='${libname}${release}${shared_ext}$major'
7714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7716 irix5* | nonstopux*)
7720 case $LD in # libtool.m4 will add one of these switches to LD
7721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7722 libsuff= shlibsuff= libmagic=32-bit;;
7723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7724 libsuff=32 shlibsuff=N32 libmagic=N32;;
7725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7727 *) libsuff= shlibsuff= libmagic=never-match;;
7731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7732 shlibpath_overrides_runpath=no
7733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7735 hardcode_into_libs=yes
7738 # No shared lib support for Linux oldld, aout, or coff.
7739 linux*oldld* | linux*aout* | linux*coff*)
7743 # This must be Linux ELF.
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7749 soname_spec='${libname}${release}${shared_ext}$major'
7750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7751 shlibpath_var=LD_LIBRARY_PATH
7752 shlibpath_overrides_runpath=no
7753 # This implies no fast_install, which is unacceptable.
7754 # Some rework will be needed to allow for fast_install
7755 # before this can be enabled.
7756 hardcode_into_libs=yes
7758 # Append ld.so.conf contents to the search path
7759 if test -f /etc/ld.so.conf; then
7760 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7764 # We used to test for /lib/ld.so.1 and disable shared libraries on
7765 # powerpc, because MkLinux only supported shared libraries with the
7766 # GNU dynamic linker. Since this was broken with cross compilers,
7767 # most powerpc-linux boxes support dynamic linking these days and
7768 # people can always --disable-shared, the test was removed, and we
7769 # assume the GNU/Linux dynamic linker is in use.
7770 dynamic_linker='GNU/Linux ld.so'
7777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7778 soname_spec='${libname}${release}${shared_ext}$major'
7779 shlibpath_var=LD_LIBRARY_PATH
7780 shlibpath_overrides_runpath=no
7781 hardcode_into_libs=yes
7782 dynamic_linker='GNU ld.so'
7789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792 dynamic_linker='NetBSD (a.out) ld.so'
7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7795 soname_spec='${libname}${release}${shared_ext}$major'
7796 dynamic_linker='NetBSD ld.elf_so'
7798 shlibpath_var=LD_LIBRARY_PATH
7799 shlibpath_overrides_runpath=yes
7800 hardcode_into_libs=yes
7805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7806 shlibpath_var=LD_LIBRARY_PATH
7807 shlibpath_overrides_runpath=yes
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
7816 shlibpath_var=LD_LIBRARY_PATH
7817 shlibpath_overrides_runpath=yes
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7826 shlibpath_var=LD_LIBRARY_PATH
7827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7829 openbsd2.[89] | openbsd2.[89].*)
7830 shlibpath_overrides_runpath=no
7833 shlibpath_overrides_runpath=yes
7837 shlibpath_overrides_runpath=yes
7842 libname_spec='$name'
7845 library_names_spec='$libname${shared_ext} $libname.a'
7846 dynamic_linker='OS/2 ld.exe'
7847 shlibpath_var=LIBPATH
7850 osf3* | osf4* | osf5*)
7854 soname_spec='${libname}${release}${shared_ext}$major'
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856 shlibpath_var=LD_LIBRARY_PATH
7857 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7858 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865 shlibpath_var=LD_LIBRARY_PATH
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 shlibpath_overrides_runpath=yes
7876 hardcode_into_libs=yes
7877 # ldd complains unless libraries are executable
7878 postinstall_cmds='chmod +x $lib'
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7885 shlibpath_var=LD_LIBRARY_PATH
7886 shlibpath_overrides_runpath=yes
7887 if test "$with_gnu_ld" = yes; then
7893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7897 shlibpath_var=LD_LIBRARY_PATH
7898 case $host_vendor in
7900 shlibpath_overrides_runpath=no
7902 export_dynamic_flag_spec='${wl}-Blargedynsym'
7903 runpath_var=LD_RUN_PATH
7911 shlibpath_overrides_runpath=no
7912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7918 if test -d /usr/nec ;then
7920 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7921 soname_spec='$libname${shared_ext}.$major'
7922 shlibpath_var=LD_LIBRARY_PATH
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7937 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7938 echo "${ECHO_T}$dynamic_linker" >&6
7939 test "$dynamic_linker" = no && can_build_shared=no
7941 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7942 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7944 if test -n "$hardcode_libdir_flag_spec" || \
7945 test -n "$runpath_var" || \
7946 test "X$hardcode_automatic" = "Xyes" ; then
7948 # We can hardcode non-existant directories.
7949 if test "$hardcode_direct" != no &&
7950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7951 # have to relink, otherwise we might link with an installed library
7952 # when we should be linking with a yet-to-be-installed one
7953 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7954 test "$hardcode_minus_L" != no; then
7955 # Linking always hardcodes the temporary library directory.
7956 hardcode_action=relink
7958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7959 hardcode_action=immediate
7962 # We cannot hardcode anything, or else we can only hardcode existing
7964 hardcode_action=unsupported
7966 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7967 echo "${ECHO_T}$hardcode_action" >&6
7969 if test "$hardcode_action" = relink; then
7970 # Fast installation is not supported
7971 enable_fast_install=no
7972 elif test "$shlibpath_overrides_runpath" = yes ||
7973 test "$enable_shared" = no; then
7974 # Fast installation is not necessary
7975 enable_fast_install=needless
7980 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7981 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7982 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7985 echo "$as_me:$LINENO: result: yes" >&5
7986 echo "${ECHO_T}yes" >&6
7988 # FIXME - insert some real tests, host_os isn't really good enough
7991 if test -n "$STRIP" ; then
7992 striplib="$STRIP -x"
7993 echo "$as_me:$LINENO: result: yes" >&5
7994 echo "${ECHO_T}yes" >&6
7996 echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6
8001 echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6
8007 if test "x$enable_dlopen" != xyes; then
8008 enable_dlopen=unknown
8009 enable_dlopen_self=unknown
8010 enable_dlopen_self_static=unknown
8017 lt_cv_dlopen="load_add_on"
8019 lt_cv_dlopen_self=yes
8023 lt_cv_dlopen="LoadLibrary"
8028 lt_cv_dlopen="dlopen"
8033 # if libdl is installed we need to link against it
8034 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_check_lib_save_LIBS=$LIBS
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8048 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>conftest.er1
8067 grep -v '^ *+' conftest.er1 >conftest.err
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest$ac_exeext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 ac_cv_lib_dl_dlopen=yes
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 ac_cv_lib_dl_dlopen=no
8092 rm -f conftest.err conftest.$ac_objext \
8093 conftest$ac_exeext conftest.$ac_ext
8094 LIBS=$ac_check_lib_save_LIBS
8096 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8098 if test $ac_cv_lib_dl_dlopen = yes; then
8099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8104 lt_cv_dlopen_self=yes
8111 echo "$as_me:$LINENO: checking for shl_load" >&5
8112 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8113 if test "${ac_cv_func_shl_load+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8124 #define shl_load innocuous_shl_load
8126 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char shl_load (); below.
8128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129 <limits.h> exists even on freestanding compilers. */
8132 # include <limits.h>
8134 # include <assert.h>
8139 /* Override any gcc2 internal prototype to avoid an error. */
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8153 char (*f) () = shl_load;
8162 return f != shl_load;
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_func_shl_load=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_func_shl_load=no
8196 rm -f conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8200 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8201 if test $ac_cv_func_shl_load = yes; then
8202 lt_cv_dlopen="shl_load"
8204 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8205 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8206 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 ac_check_lib_save_LIBS=$LIBS
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest$ac_exeext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_lib_dld_shl_load=yes
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 ac_cv_lib_dld_shl_load=no
8262 rm -f conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8266 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8267 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8268 if test $ac_cv_lib_dld_shl_load = yes; then
8269 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8271 echo "$as_me:$LINENO: checking for dlopen" >&5
8272 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8273 if test "${ac_cv_func_dlopen+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8284 #define dlopen innocuous_dlopen
8286 /* System header to define __stub macros and hopefully few prototypes,
8287 which can conflict with char dlopen (); below.
8288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8289 <limits.h> exists even on freestanding compilers. */
8292 # include <limits.h>
8294 # include <assert.h>
8299 /* Override any gcc2 internal prototype to avoid an error. */
8304 /* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8307 /* The GNU C library defines this for functions which it implements
8308 to always fail with ENOSYS. Some functions are actually named
8309 something starting with __ and the normal name is an alias. */
8310 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8313 char (*f) () = dlopen;
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>conftest.er1
8331 grep -v '^ *+' conftest.er1 >conftest.err
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag"
8337 || test ! -s conftest.err'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 ac_cv_func_dlopen=yes
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 ac_cv_func_dlopen=no
8356 rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8359 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8360 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8361 if test $ac_cv_func_dlopen = yes; then
8362 lt_cv_dlopen="dlopen"
8364 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8365 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_check_lib_save_LIBS=$LIBS
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_lib_dl_dlopen=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_lib_dl_dlopen=no
8422 rm -f conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8424 LIBS=$ac_check_lib_save_LIBS
8426 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8427 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8428 if test $ac_cv_lib_dl_dlopen = yes; then
8429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8431 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8432 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8433 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 ac_check_lib_save_LIBS=$LIBS
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8445 /* Override any gcc2 internal prototype to avoid an error. */
8449 /* We use char because int might match the return type of a gcc2
8450 builtin and then its argument prototype would still apply. */
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_lib_svld_dlopen=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_cv_lib_svld_dlopen=no
8489 rm -f conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8491 LIBS=$ac_check_lib_save_LIBS
8493 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8494 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8495 if test $ac_cv_lib_svld_dlopen = yes; then
8496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8498 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8499 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8500 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 ac_check_lib_save_LIBS=$LIBS
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8512 /* Override any gcc2 internal prototype to avoid an error. */
8516 /* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529 (eval $ac_link) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_lib_dld_dld_link=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_cv_lib_dld_dld_link=no
8556 rm -f conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8560 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8561 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8562 if test $ac_cv_lib_dld_dld_link = yes; then
8563 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8584 if test "x$lt_cv_dlopen" != xno; then
8590 case $lt_cv_dlopen in
8592 save_CPPFLAGS="$CPPFLAGS"
8593 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8595 save_LDFLAGS="$LDFLAGS"
8596 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8599 LIBS="$lt_cv_dlopen_libs $LIBS"
8601 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8602 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8603 if test "${lt_cv_dlopen_self+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 if test "$cross_compiling" = yes; then :
8607 lt_cv_dlopen_self=cross
8609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8610 lt_status=$lt_dlunknown
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8612 "configure"
8613 #include "confdefs.h"
8622 # define LT_DLGLOBAL RTLD_GLOBAL
8625 # define LT_DLGLOBAL DL_GLOBAL
8627 # define LT_DLGLOBAL 0
8631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8632 find out it does not work in some platform. */
8633 #ifndef LT_DLLAZY_OR_NOW
8635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8638 # define LT_DLLAZY_OR_NOW DL_LAZY
8641 # define LT_DLLAZY_OR_NOW RTLD_NOW
8644 # define LT_DLLAZY_OR_NOW DL_NOW
8646 # define LT_DLLAZY_OR_NOW 0
8654 extern "C" void exit (int);
8657 void fnord() { int i=42;}
8660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8661 int status = $lt_dlunknown;
8665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8667 /* dlclose (self); */
8673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8678 (./conftest; exit; ) 2>/dev/null
8681 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8682 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8683 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8686 # compilation failed
8687 lt_cv_dlopen_self=no
8694 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8695 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8697 if test "x$lt_cv_dlopen_self" = xyes; then
8698 LDFLAGS="$LDFLAGS $link_static_flag"
8699 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8700 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8701 if test "${lt_cv_dlopen_self_static+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 if test "$cross_compiling" = yes; then :
8705 lt_cv_dlopen_self_static=cross
8707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8708 lt_status=$lt_dlunknown
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8710 "configure"
8711 #include "confdefs.h"
8720 # define LT_DLGLOBAL RTLD_GLOBAL
8723 # define LT_DLGLOBAL DL_GLOBAL
8725 # define LT_DLGLOBAL 0
8729 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8730 find out it does not work in some platform. */
8731 #ifndef LT_DLLAZY_OR_NOW
8733 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8736 # define LT_DLLAZY_OR_NOW DL_LAZY
8739 # define LT_DLLAZY_OR_NOW RTLD_NOW
8742 # define LT_DLLAZY_OR_NOW DL_NOW
8744 # define LT_DLLAZY_OR_NOW 0
8752 extern "C" void exit (int);
8755 void fnord() { int i=42;}
8758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8759 int status = $lt_dlunknown;
8763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8764 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8765 /* dlclose (self); */
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8776 (./conftest; exit; ) 2>/dev/null
8779 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8780 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8781 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8784 # compilation failed
8785 lt_cv_dlopen_self_static=no
8792 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8793 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8796 CPPFLAGS="$save_CPPFLAGS"
8797 LDFLAGS="$save_LDFLAGS"
8802 case $lt_cv_dlopen_self in
8803 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8804 *) enable_dlopen_self=unknown ;;
8807 case $lt_cv_dlopen_self_static in
8808 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8809 *) enable_dlopen_self_static=unknown ;;
8814 # Report which librarie types wil actually be built
8815 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8817 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8818 echo "${ECHO_T}$can_build_shared" >&6
8820 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8822 test "$can_build_shared" = "no" && enable_shared=no
8824 # On AIX, shared libraries and static libraries use the same namespace, and
8825 # are all built from PIC.
8828 test "$enable_shared" = yes && enable_static=no
8829 if test -n "$RANLIB"; then
8830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8831 postinstall_cmds='$RANLIB $lib'
8836 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8837 test "$enable_shared" = yes && enable_static=no
8841 echo "$as_me:$LINENO: result: $enable_shared" >&5
8842 echo "${ECHO_T}$enable_shared" >&6
8844 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8846 # Make sure either enable_shared or enable_static is yes.
8847 test "$enable_shared" = yes || enable_static=yes
8848 echo "$as_me:$LINENO: result: $enable_static" >&5
8849 echo "${ECHO_T}$enable_static" >&6
8851 # The else clause should only fire when bootstrapping the
8852 # libtool distribution, otherwise you forgot to ship ltmain.sh
8853 # with your package, and you will get complaints that there are
8854 # no rules to generate ltmain.sh.
8855 if test -f "$ltmain"; then
8856 # See if we are running on zsh, and set the options which allow our commands through
8857 # without removal of \ escapes.
8858 if test -n "${ZSH_VERSION+set}" ; then
8859 setopt NO_GLOB_SUBST
8861 # Now quote all the things that may contain metacharacters while being
8862 # careful not to overquote the AC_SUBSTed values. We take copies of the
8863 # variables and quote the copies for generation of the libtool script.
8864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8868 deplibs_check_method reload_flag reload_cmds need_locks \
8869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8870 lt_cv_sys_global_symbol_to_c_name_address \
8871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8872 old_postinstall_cmds old_postuninstall_cmds \
8876 lt_prog_compiler_wl \
8877 lt_prog_compiler_pic \
8878 lt_prog_compiler_static \
8879 lt_prog_compiler_no_builtin_flag \
8880 export_dynamic_flag_spec \
8881 thread_safe_flag_spec \
8882 whole_archive_flag_spec \
8883 enable_shared_with_static_runtimes \
8885 old_archive_from_new_cmds \
8890 compiler_lib_search_path \
8892 archive_expsym_cmds \
8894 postuninstall_cmds \
8895 old_archive_from_expsyms_cmds \
8896 allow_undefined_flag \
8898 export_symbols_cmds \
8899 hardcode_libdir_flag_spec \
8900 hardcode_libdir_flag_spec_ld \
8901 hardcode_libdir_separator \
8902 hardcode_automatic \
8904 module_expsym_cmds \
8905 lt_cv_prog_compiler_c_o \
8910 old_archive_cmds | \
8911 old_archive_from_new_cmds | \
8913 archive_expsym_cmds | \
8915 module_expsym_cmds | \
8916 old_archive_from_expsyms_cmds | \
8917 export_symbols_cmds | \
8918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8919 postinstall_cmds | postuninstall_cmds | \
8920 old_postinstall_cmds | old_postuninstall_cmds | \
8921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8922 # Double-quote double-evaled strings.
8923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8932 *'\$0 --fallback-echo"')
8933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8938 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8940 { echo "$as_me:$LINENO: creating $ofile" >&5
8941 echo "$as_me: creating $ofile" >&6;}
8943 cat <<__EOF__ >> "$cfgfile"
8946 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8947 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8950 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8951 # Free Software Foundation, Inc.
8953 # This file is part of GNU Libtool:
8954 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8956 # This program is free software; you can redistribute it and/or modify
8957 # it under the terms of the GNU General Public License as published by
8958 # the Free Software Foundation; either version 2 of the License, or
8959 # (at your option) any later version.
8961 # This program is distributed in the hope that it will be useful, but
8962 # WITHOUT ANY WARRANTY; without even the implied warranty of
8963 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8964 # General Public License for more details.
8966 # You should have received a copy of the GNU General Public License
8967 # along with this program; if not, write to the Free Software
8968 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8970 # As a special exception to the GNU General Public License, if you
8971 # distribute this file as part of a program that contains a
8972 # configuration script generated by Autoconf, you may include it under
8973 # the same distribution terms that you use for the rest of that program.
8975 # A sed program that does not truncate output.
8978 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8979 Xsed="$SED -e s/^X//"
8981 # The HP-UX ksh and POSIX shell print the target directory to stdout
8983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8985 # The names of the tagged configurations supported by this script.
8988 # ### BEGIN LIBTOOL CONFIG
8990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8992 # Shell to use when invoking shell scripts.
8995 # Whether or not to build shared libraries.
8996 build_libtool_libs=$enable_shared
8998 # Whether or not to build static libraries.
8999 build_old_libs=$enable_static
9001 # Whether or not to add -lc for building shared libraries.
9002 build_libtool_need_lc=$archive_cmds_need_lc
9004 # Whether or not to disallow shared libs when runtime libs are static
9005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9007 # Whether or not to optimize for fast installation.
9008 fast_install=$enable_fast_install
9011 host_alias=$host_alias
9014 # An echo program that does not interpret backslashes.
9019 AR_FLAGS=$lt_AR_FLAGS
9024 # A language-specific compiler.
9027 # Is the compiler the GNU C compiler?
9033 # The linker used to build libraries.
9036 # Whether we need hard or soft links.
9039 # A BSD-compatible nm program.
9042 # A symbol stripping program
9045 # Used to examine libraries when file_magic_cmd begins "file"
9046 MAGIC_CMD=$MAGIC_CMD
9048 # Used on cygwin: DLL creation program.
9051 # Used on cygwin: object dumper.
9054 # Used on cygwin: assembler.
9057 # The name of the directory that contains temporary libtool files.
9060 # How to create reloadable object files.
9061 reload_flag=$lt_reload_flag
9062 reload_cmds=$lt_reload_cmds
9064 # How to pass a linker flag through the compiler.
9065 wl=$lt_lt_prog_compiler_wl
9067 # Object file suffix (normally "o").
9070 # Old archive suffix (normally "a").
9073 # Shared library suffix (normally ".so").
9074 shrext_cmds='$shrext_cmds'
9076 # Executable file suffix (normally "").
9079 # Additional compiler flags for building library objects.
9080 pic_flag=$lt_lt_prog_compiler_pic
9083 # What is the maximum length of a command?
9084 max_cmd_len=$lt_cv_sys_max_cmd_len
9086 # Does compiler simultaneously support -c and -o options?
9087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9089 # Must we lock files when doing compilation ?
9090 need_locks=$lt_need_locks
9092 # Do we need the lib prefix for modules?
9093 need_lib_prefix=$need_lib_prefix
9095 # Do we need a version for libraries?
9096 need_version=$need_version
9098 # Whether dlopen is supported.
9099 dlopen_support=$enable_dlopen
9101 # Whether dlopen of programs is supported.
9102 dlopen_self=$enable_dlopen_self
9104 # Whether dlopen of statically linked programs is supported.
9105 dlopen_self_static=$enable_dlopen_self_static
9107 # Compiler flag to prevent dynamic linking.
9108 link_static_flag=$lt_lt_prog_compiler_static
9110 # Compiler flag to turn off builtin functions.
9111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9113 # Compiler flag to allow reflexive dlopens.
9114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9116 # Compiler flag to generate shared objects directly from archives.
9117 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9119 # Compiler flag to generate thread-safe objects.
9120 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9122 # Library versioning type.
9123 version_type=$version_type
9125 # Format of library name prefix.
9126 libname_spec=$lt_libname_spec
9128 # List of archive names. First name is the real one, the rest are links.
9129 # The last name is the one that the linker finds with -lNAME.
9130 library_names_spec=$lt_library_names_spec
9132 # The coded name of the library, if different from the real name.
9133 soname_spec=$lt_soname_spec
9135 # Commands used to build and install an old-style archive.
9137 old_archive_cmds=$lt_old_archive_cmds
9138 old_postinstall_cmds=$lt_old_postinstall_cmds
9139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9141 # Create an old-style archive from a shared archive.
9142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9144 # Create a temporary old-style archive to link instead of a shared archive.
9145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9147 # Commands used to build and install a shared archive.
9148 archive_cmds=$lt_archive_cmds
9149 archive_expsym_cmds=$lt_archive_expsym_cmds
9150 postinstall_cmds=$lt_postinstall_cmds
9151 postuninstall_cmds=$lt_postuninstall_cmds
9153 # Commands used to build a loadable module (assumed same as above if empty)
9154 module_cmds=$lt_module_cmds
9155 module_expsym_cmds=$lt_module_expsym_cmds
9157 # Commands to strip libraries.
9158 old_striplib=$lt_old_striplib
9159 striplib=$lt_striplib
9161 # Dependencies to place before the objects being linked to create a
9163 predep_objects=$lt_predep_objects
9165 # Dependencies to place after the objects being linked to create a
9167 postdep_objects=$lt_postdep_objects
9169 # Dependencies to place before the objects being linked to create a
9173 # Dependencies to place after the objects being linked to create a
9175 postdeps=$lt_postdeps
9177 # The library search path used internally by the compiler when linking
9179 compiler_lib_search_path=$lt_compiler_lib_search_path
9181 # Method to check whether dependent libraries are shared objects.
9182 deplibs_check_method=$lt_deplibs_check_method
9184 # Command to use when deplibs_check_method == file_magic.
9185 file_magic_cmd=$lt_file_magic_cmd
9187 # Flag that allows shared libraries with undefined symbols to be built.
9188 allow_undefined_flag=$lt_allow_undefined_flag
9190 # Flag that forces no undefined symbols.
9191 no_undefined_flag=$lt_no_undefined_flag
9193 # Commands used to finish a libtool library installation in a directory.
9194 finish_cmds=$lt_finish_cmds
9196 # Same as above, but a single script fragment to be evaled but not shown.
9197 finish_eval=$lt_finish_eval
9199 # Take the output of nm and produce a listing of raw symbols and C names.
9200 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9202 # Transform the output of nm in a proper C declaration
9203 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9205 # Transform the output of nm in a C name address pair
9206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9208 # This is the shared library runtime path variable.
9209 runpath_var=$runpath_var
9211 # This is the shared library path variable.
9212 shlibpath_var=$shlibpath_var
9214 # Is shlibpath searched before the hard-coded library search path?
9215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9217 # How to hardcode a shared library path into an executable.
9218 hardcode_action=$hardcode_action
9220 # Whether we should hardcode library paths into libraries.
9221 hardcode_into_libs=$hardcode_into_libs
9223 # Flag to hardcode \$libdir into a binary during linking.
9224 # This must work even if \$libdir does not exist.
9225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9227 # If ld is used when linking, flag to hardcode \$libdir into
9228 # a binary during linking. This must work even if \$libdir does
9230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9232 # Whether we need a single -rpath flag with a separated argument.
9233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9235 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9237 hardcode_direct=$hardcode_direct
9239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9241 hardcode_minus_L=$hardcode_minus_L
9243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9244 # the resulting binary.
9245 hardcode_shlibpath_var=$hardcode_shlibpath_var
9247 # Set to yes if building a shared library automatically hardcodes DIR into the library
9248 # and all subsequent libraries and executables linked against it.
9249 hardcode_automatic=$hardcode_automatic
9251 # Variables whose values should be saved in libtool wrapper scripts and
9252 # restored at relink time.
9253 variables_saved_for_relink="$variables_saved_for_relink"
9255 # Whether libtool must link a program against all its dependency libraries.
9256 link_all_deplibs=$link_all_deplibs
9258 # Compile-time system search path for libraries
9259 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9261 # Run-time system search path for libraries
9262 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9264 # Fix the shell variable \$srcfile for the compiler.
9265 fix_srcfile_path="$fix_srcfile_path"
9267 # Set to yes if exported symbols are required.
9268 always_export_symbols=$always_export_symbols
9270 # The commands to list exported symbols.
9271 export_symbols_cmds=$lt_export_symbols_cmds
9273 # The commands to extract the exported symbol list from a shared archive.
9274 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9276 # Symbols that should not be listed in the preloaded symbols.
9277 exclude_expsyms=$lt_exclude_expsyms
9279 # Symbols that must always be exported.
9280 include_expsyms=$lt_include_expsyms
9282 # ### END LIBTOOL CONFIG
9289 cat <<\EOF >> "$cfgfile"
9291 # AIX sometimes has problems with the GCC collect2 program. For some
9292 # reason, if we set the COLLECT_NAMES environment variable, the problems
9293 # vanish in a puff of smoke.
9294 if test "X${COLLECT_NAMES+set}" != Xset; then
9296 export COLLECT_NAMES
9302 # We use sed instead of cat because bash on DJGPP gets confused if
9303 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9304 # text mode, it properly converts lines to CR/LF. This bash problem
9305 # is reportedly fixed, but why not run on old versions too?
9306 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9308 mv -f "$cfgfile" "$ofile" || \
9309 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9313 # If there is no Makefile yet, we rely on a make rule to execute
9314 # `config.status --recheck' to rerun these tests and create the
9315 # libtool script then.
9316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9317 if test -f "$ltmain_in"; then
9318 test -f Makefile && make "$ltmain"
9324 ac_cpp='$CPP $CPPFLAGS'
9325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9332 # Check whether --with-tags or --without-tags was given.
9333 if test "${with_tags+set}" = set; then
9334 withval="$with_tags"
9338 if test -f "$ltmain" && test -n "$tagnames"; then
9339 if test ! -f "${ofile}"; then
9340 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9341 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9344 if test -z "$LTCC"; then
9345 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9346 if test -z "$LTCC"; then
9347 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9348 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9351 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9355 # Extract list of available tagged configurations in $ofile.
9356 # Note that this assumes the entire list is on one line.
9357 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9360 for tagname in $tagnames; do
9362 # Check whether tagname contains only valid characters
9363 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9365 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9366 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9367 { (exit 1); exit 1; }; }
9371 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9373 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9374 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9375 { (exit 1); exit 1; }; }
9378 # Update the list of available tags.
9379 if test -n "$tagname"; then
9380 echo appending configuration tag "$tagname" to $ofile
9384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9386 (test "X$CXX" != "Xg++"))) ; then
9388 ac_cpp='$CXXCPP $CPPFLAGS'
9389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9396 archive_cmds_need_lc_CXX=no
9397 allow_undefined_flag_CXX=
9398 always_export_symbols_CXX=no
9399 archive_expsym_cmds_CXX=
9400 export_dynamic_flag_spec_CXX=
9401 hardcode_direct_CXX=no
9402 hardcode_libdir_flag_spec_CXX=
9403 hardcode_libdir_flag_spec_ld_CXX=
9404 hardcode_libdir_separator_CXX=
9405 hardcode_minus_L_CXX=no
9406 hardcode_automatic_CXX=no
9408 module_expsym_cmds_CXX=
9409 link_all_deplibs_CXX=unknown
9410 old_archive_cmds_CXX=$old_archive_cmds
9411 no_undefined_flag_CXX=
9412 whole_archive_flag_spec_CXX=
9413 enable_shared_with_static_runtimes_CXX=no
9415 # Dependencies to place before and after the object being linked:
9417 postdep_objects_CXX=
9420 compiler_lib_search_path_CXX=
9422 # Source file extension for C++ test sources.
9425 # Object file extension for compiled C++ test sources.
9429 # Code to be used in simple compile tests
9430 lt_simple_compile_test_code="int some_variable = 0;\n"
9432 # Code to be used in simple link tests
9433 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9435 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9437 # If no C compiler was specified, use CC.
9440 # Allow CC to be a program name with arguments.
9444 # Allow CC to be a program name with arguments.
9449 lt_save_with_gnu_ld=$with_gnu_ld
9450 lt_save_path_LD=$lt_cv_path_LD
9451 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9452 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9454 unset lt_cv_prog_gnu_ld
9456 if test -n "${lt_cv_path_LDCXX+set}"; then
9457 lt_cv_path_LD=$lt_cv_path_LDCXX
9461 test -z "${LDCXX+set}" || LD=$LDCXX
9465 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9467 # We don't want -fno-exception wen compiling C++ code, so set the
9468 # no_builtin_flag separately
9469 if test "$GXX" = yes; then
9470 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9472 lt_prog_compiler_no_builtin_flag_CXX=
9475 if test "$GXX" = yes; then
9476 # Set up default GNU C++ configuration
9479 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9480 if test "${with_gnu_ld+set}" = set; then
9481 withval="$with_gnu_ld"
9482 test "$withval" = no || with_gnu_ld=yes
9487 if test "$GCC" = yes; then
9488 # Check if gcc -print-prog-name=ld gives a path.
9489 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9490 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9493 # gcc leaves a trailing carriage return which upsets mingw
9494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9499 # Accept absolute paths.
9501 re_direlt='/[^/][^/]*/\.\./'
9502 # Canonicalize the pathname of ld
9503 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9504 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9505 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9507 test -z "$LD" && LD="$ac_prog"
9510 # If it fails, then pretend we aren't using GCC.
9514 # If it is relative, then search for the first ld in PATH.
9518 elif test "$with_gnu_ld" = yes; then
9519 echo "$as_me:$LINENO: checking for GNU ld" >&5
9520 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9522 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9523 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9525 if test "${lt_cv_path_LD+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 if test -z "$LD"; then
9529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9530 for ac_dir in $PATH; do
9532 test -z "$ac_dir" && ac_dir=.
9533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9534 lt_cv_path_LD="$ac_dir/$ac_prog"
9535 # Check to see if the program is GNU ld. I'd rather use --version,
9536 # but apparently some GNU ld's only accept -v.
9537 # Break only if it was the GNU/non-GNU ld that we prefer.
9538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9539 *GNU* | *'with BFD'*)
9540 test "$with_gnu_ld" != no && break
9543 test "$with_gnu_ld" != yes && break
9550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9555 if test -n "$LD"; then
9556 echo "$as_me:$LINENO: result: $LD" >&5
9557 echo "${ECHO_T}$LD" >&6
9559 echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6
9562 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9563 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9564 { (exit 1); exit 1; }; }
9565 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9566 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9567 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9571 case `$LD -v 2>&1 </dev/null` in
9572 *GNU* | *'with BFD'*)
9573 lt_cv_prog_gnu_ld=yes
9576 lt_cv_prog_gnu_ld=no
9580 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9581 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9582 with_gnu_ld=$lt_cv_prog_gnu_ld
9586 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9587 # archiving commands below assume that GNU ld is being used.
9588 if test "$with_gnu_ld" = yes; then
9589 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590 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'
9592 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9595 # If archive_cmds runs LD, not CC, wlarc should be empty
9596 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9597 # investigate it a little bit more. (MM)
9600 # ancient GNU ld didn't support --whole-archive et. al.
9601 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9602 grep 'no-whole-archive' > /dev/null; then
9603 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9605 whole_archive_flag_spec_CXX=
9611 # A generic and very simple default shared library creation
9612 # command for GNU C++ for the case where it uses the native
9613 # linker, instead of GNU ld. If possible, this setting should
9614 # overridden to take advantage of the native linker features on
9615 # the platform it is being used on.
9616 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9619 # Commands to make compiler produce verbose output that lists
9620 # what "hidden" libraries, object files and flags are used when
9621 # linking a shared library.
9622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9630 # PORTME: fill in a description of your system's C++ link characteristics
9631 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9632 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9636 # FIXME: insert proper C++ library support
9640 if test "$host_cpu" = ia64; then
9641 # On IA64, the linker does run time linking by default, so we don't
9642 # have to do anything special.
9643 aix_use_runtimelinking=no
9644 exp_sym_flag='-Bexport'
9647 aix_use_runtimelinking=no
9649 # Test if we are trying to use run time linking or normal
9650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9651 # need to do runtime linking.
9652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9653 for ld_flag in $LDFLAGS; do
9656 aix_use_runtimelinking=yes
9663 exp_sym_flag='-bexport'
9664 no_entry_flag='-bnoentry'
9667 # When large executables or shared objects are built, AIX ld can
9668 # have problems creating the table of contents. If linking a library
9669 # or program results in "error TOC overflow" add -mminimal-toc to
9670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9674 hardcode_direct_CXX=yes
9675 hardcode_libdir_separator_CXX=':'
9676 link_all_deplibs_CXX=yes
9678 if test "$GXX" = yes; then
9679 case $host_os in aix4.012|aix4.012.*)
9680 # We only want to do this on AIX 4.2 and lower, the check
9681 # below for broken collect2 doesn't work under 4.3+
9682 collect2name=`${CC} -print-prog-name=collect2`
9683 if test -f "$collect2name" && \
9684 strings "$collect2name" | grep resolve_lib_name >/dev/null
9686 # We have reworked collect2
9687 hardcode_direct_CXX=yes
9689 # We have old collect2
9690 hardcode_direct_CXX=unsupported
9691 # It fails to find uninstalled libraries when the uninstalled
9692 # path is not listed in the libpath. Setting hardcode_minus_L
9693 # to unsupported forces relinking
9694 hardcode_minus_L_CXX=yes
9695 hardcode_libdir_flag_spec_CXX='-L$libdir'
9696 hardcode_libdir_separator_CXX=
9699 shared_flag='-shared'
9702 if test "$host_cpu" = ia64; then
9703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704 # chokes on -Wl,-G. The following line is correct:
9707 if test "$aix_use_runtimelinking" = yes; then
9708 shared_flag='${wl}-G'
9710 shared_flag='${wl}-bM:SRE'
9715 # It seems that -bexpall does not export symbols beginning with
9716 # underscore (_), so it is better to generate a list of symbols to export.
9717 always_export_symbols_CXX=yes
9718 if test "$aix_use_runtimelinking" = yes; then
9719 # Warning - without using the other runtime loading flags (-brtl),
9720 # -berok will link without error, but may produce a broken library.
9721 allow_undefined_flag_CXX='-berok'
9722 # Determine the default libpath from the value encoded in an empty executable.
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_cxx_werror_flag"
9748 || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9763 # Check for a 64-bit object if we didn't find anything.
9764 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; }
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9771 rm -f conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9775 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9777 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"
9779 if test "$host_cpu" = ia64; then
9780 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9781 allow_undefined_flag_CXX="-z nodefs"
9782 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"
9784 # Determine the default libpath from the value encoded in an empty executable.
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802 (eval $ac_link) 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -z "$ac_cxx_werror_flag"
9810 || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9825 # Check for a 64-bit object if we didn't find anything.
9826 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; }
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9833 rm -f conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9837 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9838 # Warning - without using the other run time loading flags,
9839 # -berok will link without error, but may produce a broken library.
9840 no_undefined_flag_CXX=' ${wl}-bernotok'
9841 allow_undefined_flag_CXX=' ${wl}-berok'
9842 # -bexpall does not export symbols beginning with underscore (_)
9843 always_export_symbols_CXX=yes
9844 # Exported symbols can be pulled into shared objects from archives
9845 whole_archive_flag_spec_CXX=' '
9846 archive_cmds_need_lc_CXX=yes
9847 # This is similar to how AIX traditionally builds it's shared libraries.
9848 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'
9853 case $cc_basename in
9855 # FIXME: insert proper C++ library support
9862 cygwin* | mingw* | pw32*)
9863 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9864 # as there is no search path for DLLs.
9865 hardcode_libdir_flag_spec_CXX='-L$libdir'
9866 allow_undefined_flag_CXX=unsupported
9867 always_export_symbols_CXX=no
9868 enable_shared_with_static_runtimes_CXX=yes
9870 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9871 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'
9872 # If the export-symbols file already is a .def file (1st line
9873 # is EXPORTS), use it as is; otherwise, prepend...
9874 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9875 cp $export_symbols $output_objdir/$soname.def;
9877 echo EXPORTS > $output_objdir/$soname.def;
9878 cat $export_symbols >> $output_objdir/$soname.def;
9880 $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'
9885 darwin* | rhapsody*)
9887 rhapsody* | darwin1.[012])
9888 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9891 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9892 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9894 case ${MACOSX_DEPLOYMENT_TARGET} in
9896 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9899 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9905 archive_cmds_need_lc_CXX=no
9906 hardcode_direct_CXX=no
9907 hardcode_automatic_CXX=yes
9908 hardcode_shlibpath_var_CXX=unsupported
9909 whole_archive_flag_spec_CXX=''
9910 link_all_deplibs_CXX=yes
9912 if test "$GXX" = yes ; then
9913 lt_int_apple_cc_single_mod=no
9914 output_verbose_link_cmd='echo'
9915 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9916 lt_int_apple_cc_single_mod=yes
9918 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9919 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9921 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'
9923 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9925 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9926 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}'
9928 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}'
9930 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}'
9932 case "$cc_basename" in
9934 output_verbose_link_cmd='echo'
9935 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'
9936 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9937 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9938 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}'
9939 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}'
9949 case $cc_basename in
9951 # FIXME: insert proper C++ library support
9955 # Green Hills C++ Compiler
9956 # FIXME: insert proper C++ library support
9960 # FIXME: insert proper C++ library support
9966 # C++ shared libraries reported to be fairly broken before switch to ELF
9970 archive_cmds_need_lc_CXX=no
9972 freebsd* | kfreebsd*-gnu)
9973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9980 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9981 hardcode_libdir_separator_CXX=:
9982 export_dynamic_flag_spec_CXX='${wl}-E'
9983 hardcode_direct_CXX=yes
9984 hardcode_minus_L_CXX=yes # Not in the search PATH,
9985 # but as the default
9986 # location of the library.
9988 case $cc_basename in
9990 # FIXME: insert proper C++ library support
9994 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'
9995 # Commands to make compiler produce verbose output that lists
9996 # what "hidden" libraries, object files and flags are used when
9997 # linking a shared library.
9999 # There doesn't appear to be a way to prevent this compiler from
10000 # explicitly linking system object files so we need to strip them
10001 # from the output so that they don't get included in the library
10003 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'
10006 if test "$GXX" = yes; then
10007 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'
10009 # FIXME: insert proper C++ library support
10016 if test $with_gnu_ld = no; then
10017 case "$host_cpu" in
10019 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10020 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10021 hardcode_libdir_separator_CXX=:
10024 hardcode_libdir_flag_spec_CXX='-L$libdir'
10027 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10028 hardcode_libdir_separator_CXX=:
10029 export_dynamic_flag_spec_CXX='${wl}-E'
10033 case "$host_cpu" in
10035 hardcode_direct_CXX=no
10036 hardcode_shlibpath_var_CXX=no
10039 hardcode_direct_CXX=no
10040 hardcode_shlibpath_var_CXX=no
10041 hardcode_minus_L_CXX=yes # Not in the search PATH,
10042 # but as the default
10043 # location of the library.
10046 hardcode_direct_CXX=yes
10047 hardcode_minus_L_CXX=yes # Not in the search PATH,
10048 # but as the default
10049 # location of the library.
10053 case $cc_basename in
10055 # FIXME: insert proper C++ library support
10059 case "$host_cpu" in
10061 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10064 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10067 # Commands to make compiler produce verbose output that lists
10068 # what "hidden" libraries, object files and flags are used when
10069 # linking a shared library.
10071 # There doesn't appear to be a way to prevent this compiler from
10072 # explicitly linking system object files so we need to strip them
10073 # from the output so that they don't get included in the library
10075 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'
10078 if test "$GXX" = yes; then
10079 if test $with_gnu_ld = no; then
10080 case "$host_cpu" in
10082 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10085 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'
10090 # FIXME: insert proper C++ library support
10097 case $cc_basename in
10100 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'
10102 # Archives containing C++ object files must be created using
10103 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10104 # necessary to make sure instantiated templates are included
10106 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10109 if test "$GXX" = yes; then
10110 if test "$with_gnu_ld" = no; then
10111 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'
10113 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'
10116 link_all_deplibs_CXX=yes
10119 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator_CXX=:
10123 case $cc_basename in
10125 # Kuck and Associates, Inc. (KAI) C++ Compiler
10127 # KCC will only create a shared library if the output file
10128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10129 # to its proper name (with version) after linking.
10130 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'
10131 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'
10132 # Commands to make compiler produce verbose output that lists
10133 # what "hidden" libraries, object files and flags are used when
10134 # linking a shared library.
10136 # There doesn't appear to be a way to prevent this compiler from
10137 # explicitly linking system object files so we need to strip them
10138 # from the output so that they don't get included in the library
10140 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'
10142 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10145 # Archives containing C++ object files must be created using
10146 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10147 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10152 # version 8.0 and above of icpc choke on multiply defined symbols
10153 # if we add $predep_objects and $postdep_objects, however 7.1 and
10154 # earlier do not add the objects themselves.
10155 case `$CC -V 2>&1` in
10157 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158 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'
10160 *) # Version 8.0 or newer
10161 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10162 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10165 archive_cmds_need_lc_CXX=no
10166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10168 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 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'
10175 runpath_var=LD_RUN_PATH
10176 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10177 hardcode_libdir_separator_CXX=:
10179 # Commands to make compiler produce verbose output that lists
10180 # what "hidden" libraries, object files and flags are used when
10181 # linking a shared library.
10183 # There doesn't appear to be a way to prevent this compiler from
10184 # explicitly linking system object files so we need to strip them
10185 # from the output so that they don't get included in the library
10187 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'
10192 # FIXME: insert proper C++ library support
10196 # FIXME: insert proper C++ library support
10200 case $cc_basename in
10202 # FIXME: insert proper C++ library support
10206 # FIXME: insert proper C++ library support
10212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10215 hardcode_libdir_flag_spec_CXX='-R$libdir'
10216 hardcode_direct_CXX=yes
10217 hardcode_shlibpath_var_CXX=no
10219 # Workaround some broken pre-1.5 toolchains
10220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10223 # C++ shared libraries are fairly broken
10227 hardcode_direct_CXX=yes
10228 hardcode_shlibpath_var_CXX=no
10229 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10232 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10233 export_dynamic_flag_spec_CXX='${wl}-E'
10234 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10236 output_verbose_link_cmd='echo'
10239 case $cc_basename in
10241 # Kuck and Associates, Inc. (KAI) C++ Compiler
10243 # KCC will only create a shared library if the output file
10244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10245 # to its proper name (with version) after linking.
10246 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'
10248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10249 hardcode_libdir_separator_CXX=:
10251 # Archives containing C++ object files must be created using
10252 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10253 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10257 # Rational C++ 2.4.1
10258 # FIXME: insert proper C++ library support
10262 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10263 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'
10265 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10266 hardcode_libdir_separator_CXX=:
10268 # Commands to make compiler produce verbose output that lists
10269 # what "hidden" libraries, object files and flags are used when
10270 # linking a shared library.
10272 # There doesn't appear to be a way to prevent this compiler from
10273 # explicitly linking system object files so we need to strip them
10274 # from the output so that they don't get included in the library
10276 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'
10279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10281 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'
10283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10284 hardcode_libdir_separator_CXX=:
10286 # Commands to make compiler produce verbose output that lists
10287 # what "hidden" libraries, object files and flags are used when
10288 # linking a shared library.
10289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10292 # FIXME: insert proper C++ library support
10299 case $cc_basename in
10301 # Kuck and Associates, Inc. (KAI) C++ Compiler
10303 # KCC will only create a shared library if the output file
10304 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10305 # to its proper name (with version) after linking.
10306 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'
10308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10309 hardcode_libdir_separator_CXX=:
10311 # Archives containing C++ object files must be created using
10312 # the KAI C++ compiler.
10313 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10316 # Rational C++ 2.4.1
10317 # FIXME: insert proper C++ library support
10321 allow_undefined_flag_CXX=' -expect_unresolved \*'
10322 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'
10323 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10324 echo "-hidden">> $lib.exp~
10325 $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~
10328 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10329 hardcode_libdir_separator_CXX=:
10331 # Commands to make compiler produce verbose output that lists
10332 # what "hidden" libraries, object files and flags are used when
10333 # linking a shared library.
10335 # There doesn't appear to be a way to prevent this compiler from
10336 # explicitly linking system object files so we need to strip them
10337 # from the output so that they don't get included in the library
10339 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'
10342 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10343 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10344 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'
10346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10347 hardcode_libdir_separator_CXX=:
10349 # Commands to make compiler produce verbose output that lists
10350 # what "hidden" libraries, object files and flags are used when
10351 # linking a shared library.
10352 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10355 # FIXME: insert proper C++ library support
10362 # FIXME: insert proper C++ library support
10366 archive_cmds_need_lc_CXX=no
10367 case $cc_basename in
10369 # FIXME: insert proper C++ library support
10373 # FIXME: insert proper C++ library support
10379 case $cc_basename in
10382 # FIXME: insert proper C++ library support
10387 # FIXME: insert proper C++ library support
10391 # FIXME: insert proper C++ library support
10397 case $cc_basename in
10399 # Sun C++ 4.2, 5.x and Centerline C++
10400 no_undefined_flag_CXX=' -zdefs'
10401 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10402 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10403 $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'
10405 hardcode_libdir_flag_spec_CXX='-R$libdir'
10406 hardcode_shlibpath_var_CXX=no
10408 solaris2.0-5 | solaris2.0-5.*) ;;
10410 # The C++ compiler is used as linker so we must use $wl
10411 # flag to pass the commands to the underlying system
10413 # Supported since Solaris 2.6 (maybe 2.5.1?)
10414 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10417 link_all_deplibs_CXX=yes
10419 # Commands to make compiler produce verbose output that lists
10420 # what "hidden" libraries, object files and flags are used when
10421 # linking a shared library.
10423 # There doesn't appear to be a way to prevent this compiler from
10424 # explicitly linking system object files so we need to strip them
10425 # from the output so that they don't get included in the library
10427 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'
10429 # Archives containing C++ object files must be created using
10430 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10431 # necessary to make sure instantiated templates are included
10433 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10436 # Green Hills C++ Compiler
10437 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10439 # The C++ compiler must be used to create the archive.
10440 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10443 # GNU C++ compiler with Solaris linker
10444 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10445 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10446 if $CC --version | grep -v '^2\.7' > /dev/null; then
10447 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10448 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10449 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10451 # Commands to make compiler produce verbose output that lists
10452 # what "hidden" libraries, object files and flags are used when
10453 # linking a shared library.
10454 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10456 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10458 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10459 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10460 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10462 # Commands to make compiler produce verbose output that lists
10463 # what "hidden" libraries, object files and flags are used when
10464 # linking a shared library.
10465 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10468 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10473 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10474 archive_cmds_need_lc_CXX=no
10477 case $cc_basename in
10479 # NonStop-UX NCC 3.20
10480 # FIXME: insert proper C++ library support
10484 # FIXME: insert proper C++ library support
10490 # FIXME: insert proper C++ library support
10494 # FIXME: insert proper C++ library support
10498 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10499 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10500 test "$ld_shlibs_CXX" = no && can_build_shared=no
10506 cat > conftest.$ac_ext <<EOF
10510 Foo (void) { a = 0; }
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; then
10521 # Parse the compiler output and extract the necessary
10522 # objects, libraries and library flags.
10524 # Sentinel used to keep track of whether or not we are before
10525 # the conftest object file.
10526 pre_test_object_deps_done=no
10528 # The `*' in the case matches for architectures that use `case' in
10529 # $output_verbose_cmd can trigger glob expansion during the loop
10530 # eval without this substitution.
10531 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10533 for p in `eval $output_verbose_link_cmd`; do
10537 # Some compilers place space between "-{L,R}" and the path.
10538 # Remove the space.
10539 if test $p = "-L" \
10540 || test $p = "-R"; then
10547 if test "$pre_test_object_deps_done" = no; then
10550 # Internal compiler library paths should come after those
10551 # provided the user. The postdeps already come after the
10552 # user supplied libs so there is no need to process them.
10553 if test -z "$compiler_lib_search_path_CXX"; then
10554 compiler_lib_search_path_CXX="${prev}${p}"
10556 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10559 # The "-l" case would never come before the object being
10560 # linked, so don't bother handling this case.
10563 if test -z "$postdeps_CXX"; then
10564 postdeps_CXX="${prev}${p}"
10566 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10572 # This assumes that the test object file only shows up
10573 # once in the compiler output.
10574 if test "$p" = "conftest.$objext"; then
10575 pre_test_object_deps_done=yes
10579 if test "$pre_test_object_deps_done" = no; then
10580 if test -z "$predep_objects_CXX"; then
10581 predep_objects_CXX="$p"
10583 predep_objects_CXX="$predep_objects_CXX $p"
10586 if test -z "$postdep_objects_CXX"; then
10587 postdep_objects_CXX="$p"
10589 postdep_objects_CXX="$postdep_objects_CXX $p"
10594 *) ;; # Ignore the rest.
10602 echo "libtool.m4: error: problem compiling CXX test program"
10605 $rm -f confest.$objext
10607 case " $postdeps_CXX " in
10608 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10611 lt_prog_compiler_wl_CXX=
10612 lt_prog_compiler_pic_CXX=
10613 lt_prog_compiler_static_CXX=
10615 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10616 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10618 # C++ specific cases for pic, static, wl, etc.
10619 if test "$GXX" = yes; then
10620 lt_prog_compiler_wl_CXX='-Wl,'
10621 lt_prog_compiler_static_CXX='-static'
10625 # All AIX code is PIC.
10626 if test "$host_cpu" = ia64; then
10627 # AIX 5 now supports IA64 processor
10628 lt_prog_compiler_static_CXX='-Bstatic'
10632 # FIXME: we need at least 68020 code to build shared libraries, but
10633 # adding the `-m68020' flag to GCC prevents building anything better,
10635 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10637 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10638 # PIC is the default for these OSes.
10640 mingw* | os2* | pw32*)
10641 # This hack is so that the source file can tell whether it is being
10642 # built for inclusion in a dll (and should export symbols for example).
10643 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10645 darwin* | rhapsody*)
10646 # PIC is the default on this platform
10647 # Common symbols not allowed in MH_DYLIB files
10648 lt_prog_compiler_pic_CXX='-fno-common'
10651 # DJGPP does not support shared libraries at all
10652 lt_prog_compiler_pic_CXX=
10655 if test -d /usr/nec; then
10656 lt_prog_compiler_pic_CXX=-Kconform_pic
10660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10661 # not for PA HP-UX.
10662 case "$host_cpu" in
10666 lt_prog_compiler_pic_CXX='-fPIC'
10671 lt_prog_compiler_pic_CXX='-fPIC'
10677 # All AIX code is PIC.
10678 if test "$host_cpu" = ia64; then
10679 # AIX 5 now supports IA64 processor
10680 lt_prog_compiler_static_CXX='-Bstatic'
10682 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10686 case $cc_basename in
10688 # Green Hills C++ Compiler
10689 # _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"
10694 # PIC is the default on this platform
10695 # Common symbols not allowed in MH_DYLIB files
10696 case "$cc_basename" in
10698 lt_prog_compiler_pic_CXX='-qnocommon'
10699 lt_prog_compiler_wl_CXX='-Wl,'
10704 case $cc_basename in
10706 lt_prog_compiler_pic_CXX='-KPIC'
10709 # Green Hills C++ Compiler
10710 lt_prog_compiler_pic_CXX='-pic'
10716 freebsd* | kfreebsd*-gnu)
10717 # FreeBSD uses GNU C++
10719 hpux9* | hpux10* | hpux11*)
10720 case $cc_basename in
10722 lt_prog_compiler_wl_CXX='-Wl,'
10723 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10724 if test "$host_cpu" != ia64; then
10725 lt_prog_compiler_pic_CXX='+Z'
10729 lt_prog_compiler_wl_CXX='-Wl,'
10730 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10731 case "$host_cpu" in
10736 lt_prog_compiler_pic_CXX='+Z'
10744 irix5* | irix6* | nonstopux*)
10745 case $cc_basename in
10747 lt_prog_compiler_wl_CXX='-Wl,'
10748 lt_prog_compiler_static_CXX='-non_shared'
10749 # CC pic flag -KPIC is the default.
10756 case $cc_basename in
10759 lt_prog_compiler_wl_CXX='--backend -Wl,'
10760 lt_prog_compiler_pic_CXX='-fPIC'
10764 lt_prog_compiler_wl_CXX='-Wl,'
10765 lt_prog_compiler_pic_CXX='-KPIC'
10766 lt_prog_compiler_static_CXX='-static'
10770 # Make sure the PIC flag is empty. It appears that all Alpha
10771 # Linux and Compaq Tru64 Unix objects are PIC.
10772 lt_prog_compiler_pic_CXX=
10773 lt_prog_compiler_static_CXX='-non_shared'
10784 case $cc_basename in
10786 lt_prog_compiler_pic_CXX='-W c,exportall'
10794 osf3* | osf4* | osf5*)
10795 case $cc_basename in
10797 lt_prog_compiler_wl_CXX='--backend -Wl,'
10800 # Rational C++ 2.4.1
10801 lt_prog_compiler_pic_CXX='-pic'
10804 # Digital/Compaq C++
10805 lt_prog_compiler_wl_CXX='-Wl,'
10806 # Make sure the PIC flag is empty. It appears that all Alpha
10807 # Linux and Compaq Tru64 Unix objects are PIC.
10808 lt_prog_compiler_pic_CXX=
10809 lt_prog_compiler_static_CXX='-non_shared'
10818 case $cc_basename in
10820 lt_prog_compiler_pic_CXX='-fPIC'
10827 case $cc_basename in
10829 # Sun C++ 4.2, 5.x and Centerline C++
10830 lt_prog_compiler_pic_CXX='-KPIC'
10831 lt_prog_compiler_static_CXX='-Bstatic'
10832 lt_prog_compiler_wl_CXX='-Qoption ld '
10835 # Green Hills C++ Compiler
10836 lt_prog_compiler_pic_CXX='-PIC'
10843 case $cc_basename in
10846 lt_prog_compiler_pic_CXX='-pic'
10847 lt_prog_compiler_static_CXX='-Bstatic'
10851 lt_prog_compiler_pic_CXX='-pic'
10858 case $cc_basename in
10860 # NonStop-UX NCC 3.20
10861 lt_prog_compiler_pic_CXX='-KPIC'
10872 lt_prog_compiler_can_build_shared_CXX=no
10877 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10878 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10881 # Check to make sure the PIC flag actually works.
10883 if test -n "$lt_prog_compiler_pic_CXX"; then
10885 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10886 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10887 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 lt_prog_compiler_pic_works_CXX=no
10891 ac_outfile=conftest.$ac_objext
10892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10893 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10894 # Insert the option either (1) after the last *FLAGS variable, or
10895 # (2) before a word containing "conftest.", or (3) at the end.
10896 # Note that $ac_compile itself does not contain backslashes and begins
10897 # with a dollar sign (not a hyphen), so the echo should work correctly.
10898 # The option is referenced via a variable to avoid confusing sed.
10899 lt_compile=`echo "$ac_compile" | $SED \
10900 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10902 -e 's:$: $lt_compiler_flag:'`
10903 (eval echo "\"\$as_me:10903: $lt_compile\"" >&5)
10904 (eval "$lt_compile" 2>conftest.err)
10906 cat conftest.err >&5
10907 echo "$as_me:10907: \$? = $ac_status" >&5
10908 if (exit $ac_status) && test -s "$ac_outfile"; then
10909 # The compiler can only warn and ignore the option if not recognized
10910 # So say no if there are warnings
10911 if test ! -s conftest.err; then
10912 lt_prog_compiler_pic_works_CXX=yes
10918 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10919 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10921 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10922 case $lt_prog_compiler_pic_CXX in
10924 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10927 lt_prog_compiler_pic_CXX=
10928 lt_prog_compiler_can_build_shared_CXX=no
10933 # For platforms which do not support PIC, -DPIC is meaningless:
10935 lt_prog_compiler_pic_CXX=
10938 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10944 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 lt_cv_prog_compiler_c_o_CXX=no
10948 $rm -r conftest 2>/dev/null
10952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10954 lt_compiler_flag="-o out/conftest2.$ac_objext"
10955 # Insert the option either (1) after the last *FLAGS variable, or
10956 # (2) before a word containing "conftest.", or (3) at the end.
10957 # Note that $ac_compile itself does not contain backslashes and begins
10958 # with a dollar sign (not a hyphen), so the echo should work correctly.
10959 lt_compile=`echo "$ac_compile" | $SED \
10960 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10962 -e 's:$: $lt_compiler_flag:'`
10963 (eval echo "\"\$as_me:10963: $lt_compile\"" >&5)
10964 (eval "$lt_compile" 2>out/conftest.err)
10966 cat out/conftest.err >&5
10967 echo "$as_me:10967: \$? = $ac_status" >&5
10968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10970 # The compiler can only warn and ignore the option if not recognized
10971 # So say no if there are warnings
10972 if test ! -s out/conftest.err; then
10973 lt_cv_prog_compiler_c_o_CXX=yes
10978 # SGI C++ compiler will create directory out/ii_files/ for
10979 # template instantiation
10980 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10981 $rm out/* && rmdir out
10987 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10991 hard_links="nottested"
10992 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10993 # do not overwrite the value of need_locks provided by the user
10994 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11000 ln conftest.a conftest.b 2>&5 || hard_links=no
11001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11002 echo "$as_me:$LINENO: result: $hard_links" >&5
11003 echo "${ECHO_T}$hard_links" >&6
11004 if test "$hard_links" = no; then
11005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11013 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11016 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11019 # If we're using GNU nm, then we don't want the "-C" option.
11020 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11021 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11022 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'
11024 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'
11028 export_symbols_cmds_CXX="$ltdll_cmds"
11031 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11034 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11038 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11039 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11040 test "$ld_shlibs_CXX" = no && can_build_shared=no
11042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11043 if test "$GCC" = yes; then
11044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11048 # Do we need to explicitly link libc?
11050 case "x$archive_cmds_need_lc_CXX" in
11052 # Assume -lc should be added
11053 archive_cmds_need_lc_CXX=yes
11055 if test "$enable_shared" = yes && test "$GCC" = yes; then
11056 case $archive_cmds_CXX in
11058 # FIXME: we may have to deal with multi-command sequences.
11061 # Test whether the compiler implicitly links with -lc since on some
11062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11063 # to ld, don't add -lc before -lgcc.
11064 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11065 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11070 (eval $ac_compile) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } 2>conftest.err; then
11076 libobjs=conftest.$ac_objext
11078 wl=$lt_prog_compiler_wl_CXX
11084 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11085 allow_undefined_flag_CXX=
11086 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11087 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }
11092 archive_cmds_need_lc_CXX=no
11094 archive_cmds_need_lc_CXX=yes
11096 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11098 cat conftest.err 1>&5
11101 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11102 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11109 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11111 library_names_spec=
11112 libname_spec='lib$name'
11116 postuninstall_cmds=
11120 shlibpath_overrides_runpath=unknown
11122 dynamic_linker="$host_os ld.so"
11123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11124 if test "$GCC" = yes; then
11125 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11126 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11127 # if the path contains ";" then we assume it to be the separator
11128 # otherwise default to the standard path separator (i.e. ":") - it is
11129 # assumed that no part of a normal pathname contains ";" but that should
11130 # okay in the real world where ";" in dirpaths is itself problematic.
11131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11138 need_lib_prefix=unknown
11139 hardcode_into_libs=no
11141 # when you set need_version to no, make sure it does not cause -set_version
11142 # flags to be left without arguments
11143 need_version=unknown
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149 shlibpath_var=LIBPATH
11151 # AIX 3 has no versioning support, so we append a major version to the name.
11152 soname_spec='${libname}${release}${shared_ext}$major'
11159 hardcode_into_libs=yes
11160 if test "$host_cpu" = ia64; then
11161 # AIX 5 supports IA64
11162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163 shlibpath_var=LD_LIBRARY_PATH
11165 # With GCC up to 2.95.x, collect2 would create an import file
11166 # for dependence libraries. The import file would start with
11167 # the line `#! .'. This would cause the generated library to
11168 # depend on `.', always an invalid library. This was fixed in
11169 # development snapshots of GCC prior to 3.0.
11171 aix4 | aix4.[01] | aix4.[01].*)
11172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11174 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11177 can_build_shared=no
11181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182 # soname into executable. Probably we can add versioning support to
11183 # collect2, so additional links can be useful in future.
11184 if test "$aix_use_runtimelinking" = yes; then
11185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186 # instead of lib<name>.a to let people know that these are not
11187 # typical AIX shared libraries.
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 # We preserve .a as extension for shared libraries through AIX4.2
11191 # and later when we are not doing run time linking.
11192 library_names_spec='${libname}${release}.a $libname.a'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LIBPATH
11200 library_names_spec='$libname.ixlibrary $libname.a'
11201 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11202 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'
11206 library_names_spec='${libname}${shared_ext}'
11207 dynamic_linker="$host_os ld.so"
11208 shlibpath_var=LIBRARY_PATH
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11220 # the default ld.so.conf also contains /usr/contrib/lib and
11221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11222 # libtool to hard-code these into programs
11225 cygwin* | mingw* | pw32*)
11226 version_type=windows
11231 case $GCC,$host_os in
11232 yes,cygwin* | yes,mingw* | yes,pw32*)
11233 library_names_spec='$libname.dll.a'
11234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11235 postinstall_cmds='base_file=`basename \${file}`~
11236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11237 dldir=$destdir/`dirname \$dlpath`~
11238 test -d \$dldir || mkdir -p \$dldir~
11239 $install_prog $dir/$dlname \$dldir/$dlname'
11240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241 dlpath=$dir/\$dldll~
11243 shlibpath_overrides_runpath=yes
11247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11252 # MinGW DLLs use traditional 'lib' prefix
11253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11255 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11256 # It is most probably a Windows format PATH printed by
11257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11258 # path with ; separators, and with drive letters. We can handle the
11259 # drive letters (cygwin fileutils understands them), so leave them,
11260 # especially as we might pass files found there to a mingw objdump,
11261 # which wouldn't understand a cygwinified path. Ahh.
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 # pw32 DLLs use 'pw' prefix rather than 'lib'
11269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11278 dynamic_linker='Win32 ld.exe'
11279 # FIXME: first we should search . and the directory the executable is in
11283 darwin* | rhapsody*)
11284 dynamic_linker="$host_os dyld"
11285 version_type=darwin
11288 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11289 soname_spec='${libname}${release}${major}$shared_ext'
11290 shlibpath_overrides_runpath=yes
11291 shlibpath_var=DYLD_LIBRARY_PATH
11292 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11293 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11294 if test "$GCC" = yes; then
11295 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"`
11297 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11299 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 shlibpath_var=LD_LIBRARY_PATH
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 hardcode_into_libs=yes
11324 dynamic_linker='GNU ld.so'
11328 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11329 version_type=freebsd-$objformat
11330 case $version_type in
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11341 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11346 freebsd3.01* | freebsdelf3.01*)
11347 shlibpath_overrides_runpath=yes
11348 hardcode_into_libs=yes
11351 shlibpath_overrides_runpath=no
11352 hardcode_into_libs=yes
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 hardcode_into_libs=yes
11367 hpux9* | hpux10* | hpux11*)
11368 # Give a soname corresponding to the major version so that dld.sl refuses to
11369 # link against other versions.
11373 case "$host_cpu" in
11376 hardcode_into_libs=yes
11377 dynamic_linker="$host_os dld.so"
11378 shlibpath_var=LD_LIBRARY_PATH
11379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 if test "X$HPUX_IA64_MODE" = X32; then
11383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11391 hardcode_into_libs=yes
11392 dynamic_linker="$host_os dld.sl"
11393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11402 dynamic_linker="$host_os dld.sl"
11403 shlibpath_var=SHLIB_PATH
11404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11409 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11410 postinstall_cmds='chmod 555 $lib'
11413 irix5* | irix6* | nonstopux*)
11415 nonstopux*) version_type=nonstopux ;;
11417 if test "$lt_cv_prog_gnu_ld" = yes; then
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11428 irix5* | nonstopux*)
11429 libsuff= shlibsuff=
11432 case $LD in # libtool.m4 will add one of these switches to LD
11433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11434 libsuff= shlibsuff= libmagic=32-bit;;
11435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11436 libsuff=32 shlibsuff=N32 libmagic=N32;;
11437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11439 *) libsuff= shlibsuff= libmagic=never-match;;
11443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11444 shlibpath_overrides_runpath=no
11445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11447 hardcode_into_libs=yes
11450 # No shared lib support for Linux oldld, aout, or coff.
11451 linux*oldld* | linux*aout* | linux*coff*)
11455 # This must be Linux ELF.
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 # This implies no fast_install, which is unacceptable.
11466 # Some rework will be needed to allow for fast_install
11467 # before this can be enabled.
11468 hardcode_into_libs=yes
11470 # Append ld.so.conf contents to the search path
11471 if test -f /etc/ld.so.conf; then
11472 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11476 # We used to test for /lib/ld.so.1 and disable shared libraries on
11477 # powerpc, because MkLinux only supported shared libraries with the
11478 # GNU dynamic linker. Since this was broken with cross compilers,
11479 # most powerpc-linux boxes support dynamic linking these days and
11480 # people can always --disable-shared, the test was removed, and we
11481 # assume the GNU/Linux dynamic linker is in use.
11482 dynamic_linker='GNU/Linux ld.so'
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11490 soname_spec='${libname}${release}${shared_ext}$major'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=no
11493 hardcode_into_libs=yes
11494 dynamic_linker='GNU ld.so'
11501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504 dynamic_linker='NetBSD (a.out) ld.so'
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 dynamic_linker='NetBSD ld.elf_so'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=yes
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11541 openbsd2.[89] | openbsd2.[89].*)
11542 shlibpath_overrides_runpath=no
11545 shlibpath_overrides_runpath=yes
11549 shlibpath_overrides_runpath=yes
11554 libname_spec='$name'
11557 library_names_spec='$libname${shared_ext} $libname.a'
11558 dynamic_linker='OS/2 ld.exe'
11559 shlibpath_var=LIBPATH
11562 osf3* | osf4* | osf5*)
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 shlibpath_var=LD_LIBRARY_PATH
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11589 # ldd complains unless libraries are executable
11590 postinstall_cmds='chmod +x $lib'
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=yes
11599 if test "$with_gnu_ld" = yes; then
11605 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 case $host_vendor in
11612 shlibpath_overrides_runpath=no
11614 export_dynamic_flag_spec='${wl}-Blargedynsym'
11615 runpath_var=LD_RUN_PATH
11623 shlibpath_overrides_runpath=no
11624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11630 if test -d /usr/nec ;then
11632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11633 soname_spec='$libname${shared_ext}.$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11649 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11650 echo "${ECHO_T}$dynamic_linker" >&6
11651 test "$dynamic_linker" = no && can_build_shared=no
11653 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11654 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11655 hardcode_action_CXX=
11656 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11657 test -n "$runpath_var_CXX" || \
11658 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11660 # We can hardcode non-existant directories.
11661 if test "$hardcode_direct_CXX" != no &&
11662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11663 # have to relink, otherwise we might link with an installed library
11664 # when we should be linking with a yet-to-be-installed one
11665 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11666 test "$hardcode_minus_L_CXX" != no; then
11667 # Linking always hardcodes the temporary library directory.
11668 hardcode_action_CXX=relink
11670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11671 hardcode_action_CXX=immediate
11674 # We cannot hardcode anything, or else we can only hardcode existing
11676 hardcode_action_CXX=unsupported
11678 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11679 echo "${ECHO_T}$hardcode_action_CXX" >&6
11681 if test "$hardcode_action_CXX" = relink; then
11682 # Fast installation is not supported
11683 enable_fast_install=no
11684 elif test "$shlibpath_overrides_runpath" = yes ||
11685 test "$enable_shared" = no; then
11686 # Fast installation is not necessary
11687 enable_fast_install=needless
11692 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11693 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11694 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11695 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11696 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11697 echo "$as_me:$LINENO: result: yes" >&5
11698 echo "${ECHO_T}yes" >&6
11700 # FIXME - insert some real tests, host_os isn't really good enough
11703 if test -n "$STRIP" ; then
11704 striplib="$STRIP -x"
11705 echo "$as_me:$LINENO: result: yes" >&5
11706 echo "${ECHO_T}yes" >&6
11708 echo "$as_me:$LINENO: result: no" >&5
11709 echo "${ECHO_T}no" >&6
11713 echo "$as_me:$LINENO: result: no" >&5
11714 echo "${ECHO_T}no" >&6
11719 if test "x$enable_dlopen" != xyes; then
11720 enable_dlopen=unknown
11721 enable_dlopen_self=unknown
11722 enable_dlopen_self_static=unknown
11729 lt_cv_dlopen="load_add_on"
11731 lt_cv_dlopen_self=yes
11735 lt_cv_dlopen="LoadLibrary"
11740 lt_cv_dlopen="dlopen"
11745 # if libdl is installed we need to link against it
11746 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11747 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11748 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 ac_check_lib_save_LIBS=$LIBS
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11760 /* Override any gcc2 internal prototype to avoid an error. */
11764 /* We use char because int might match the return type of a gcc2
11765 builtin and then its argument prototype would still apply. */
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_cxx_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_lib_dl_dlopen=yes
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_lib_dl_dlopen=no
11804 rm -f conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11808 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11809 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11810 if test $ac_cv_lib_dl_dlopen = yes; then
11811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11814 lt_cv_dlopen="dyld"
11816 lt_cv_dlopen_self=yes
11823 echo "$as_me:$LINENO: checking for shl_load" >&5
11824 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11825 if test "${ac_cv_func_shl_load+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11836 #define shl_load innocuous_shl_load
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char shl_load (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11844 # include <limits.h>
11846 # include <assert.h>
11851 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11865 char (*f) () = shl_load;
11874 return f != shl_load;
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881 (eval $ac_link) 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_cxx_werror_flag"
11889 || test ! -s conftest.err'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest$ac_exeext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_func_shl_load=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_func_shl_load=no
11908 rm -f conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11911 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11912 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11913 if test $ac_cv_func_shl_load = yes; then
11914 lt_cv_dlopen="shl_load"
11916 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11917 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11918 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 ac_check_lib_save_LIBS=$LIBS
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11930 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11947 (eval $ac_link) 2>conftest.er1
11949 grep -v '^ *+' conftest.er1 >conftest.err
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } &&
11954 { ac_try='test -z "$ac_cxx_werror_flag"
11955 || test ! -s conftest.err'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; } &&
11961 { ac_try='test -s conftest$ac_exeext'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 ac_cv_lib_dld_shl_load=yes
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_cv_lib_dld_shl_load=no
11974 rm -f conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LIBS=$ac_check_lib_save_LIBS
11978 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11979 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11980 if test $ac_cv_lib_dld_shl_load = yes; then
11981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11983 echo "$as_me:$LINENO: checking for dlopen" >&5
11984 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11985 if test "${ac_cv_func_dlopen+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11996 #define dlopen innocuous_dlopen
11998 /* System header to define __stub macros and hopefully few prototypes,
11999 which can conflict with char dlopen (); below.
12000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12001 <limits.h> exists even on freestanding compilers. */
12004 # include <limits.h>
12006 # include <assert.h>
12011 /* Override any gcc2 internal prototype to avoid an error. */
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12019 /* The GNU C library defines this for functions which it implements
12020 to always fail with ENOSYS. Some functions are actually named
12021 something starting with __ and the normal name is an alias. */
12022 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12025 char (*f) () = dlopen;
12034 return f != dlopen;
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041 (eval $ac_link) 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_cxx_werror_flag"
12049 || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_func_dlopen=yes
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_cv_func_dlopen=no
12068 rm -f conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12072 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12073 if test $ac_cv_func_dlopen = yes; then
12074 lt_cv_dlopen="dlopen"
12076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 ac_check_lib_save_LIBS=$LIBS
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12090 /* Override any gcc2 internal prototype to avoid an error. */
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107 (eval $ac_link) 2>conftest.er1
12109 grep -v '^ *+' conftest.er1 >conftest.err
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_cxx_werror_flag"
12115 || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest$ac_exeext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_cv_lib_dl_dlopen=yes
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12132 ac_cv_lib_dl_dlopen=no
12134 rm -f conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12138 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12139 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12140 if test $ac_cv_lib_dl_dlopen = yes; then
12141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12143 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12144 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12145 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-lsvld $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any gcc2 internal prototype to avoid an error. */
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12176 grep -v '^ *+' conftest.er1 >conftest.err
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_cxx_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_svld_dlopen=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_svld_dlopen=no
12201 rm -f conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12207 if test $ac_cv_lib_svld_dlopen = yes; then
12208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12210 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12211 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12212 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_check_lib_save_LIBS=$LIBS
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12224 /* Override any gcc2 internal prototype to avoid an error. */
12228 /* We use char because int might match the return type of a gcc2
12229 builtin and then its argument prototype would still apply. */
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241 (eval $ac_link) 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_cxx_werror_flag"
12249 || test ! -s conftest.err'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest$ac_exeext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_lib_dld_dld_link=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_lib_dld_dld_link=no
12268 rm -f conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$ac_check_lib_save_LIBS
12272 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12273 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12274 if test $ac_cv_lib_dld_dld_link = yes; then
12275 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12296 if test "x$lt_cv_dlopen" != xno; then
12302 case $lt_cv_dlopen in
12304 save_CPPFLAGS="$CPPFLAGS"
12305 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12307 save_LDFLAGS="$LDFLAGS"
12308 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12311 LIBS="$lt_cv_dlopen_libs $LIBS"
12313 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12314 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12315 if test "${lt_cv_dlopen_self+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 if test "$cross_compiling" = yes; then :
12319 lt_cv_dlopen_self=cross
12321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12322 lt_status=$lt_dlunknown
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12324 "configure"
12325 #include "confdefs.h"
12334 # define LT_DLGLOBAL RTLD_GLOBAL
12337 # define LT_DLGLOBAL DL_GLOBAL
12339 # define LT_DLGLOBAL 0
12343 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12344 find out it does not work in some platform. */
12345 #ifndef LT_DLLAZY_OR_NOW
12347 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12350 # define LT_DLLAZY_OR_NOW DL_LAZY
12353 # define LT_DLLAZY_OR_NOW RTLD_NOW
12356 # define LT_DLLAZY_OR_NOW DL_NOW
12358 # define LT_DLLAZY_OR_NOW 0
12366 extern "C" void exit (int);
12369 void fnord() { int i=42;}
12372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12373 int status = $lt_dlunknown;
12377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12378 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12379 /* dlclose (self); */
12385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386 (eval $ac_link) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12390 (./conftest; exit; ) 2>/dev/null
12392 case x$lt_status in
12393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12395 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12398 # compilation failed
12399 lt_cv_dlopen_self=no
12406 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12407 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12409 if test "x$lt_cv_dlopen_self" = xyes; then
12410 LDFLAGS="$LDFLAGS $link_static_flag"
12411 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12412 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12413 if test "${lt_cv_dlopen_self_static+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 if test "$cross_compiling" = yes; then :
12417 lt_cv_dlopen_self_static=cross
12419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12420 lt_status=$lt_dlunknown
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12422 "configure"
12423 #include "confdefs.h"
12432 # define LT_DLGLOBAL RTLD_GLOBAL
12435 # define LT_DLGLOBAL DL_GLOBAL
12437 # define LT_DLGLOBAL 0
12441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12442 find out it does not work in some platform. */
12443 #ifndef LT_DLLAZY_OR_NOW
12445 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12448 # define LT_DLLAZY_OR_NOW DL_LAZY
12451 # define LT_DLLAZY_OR_NOW RTLD_NOW
12454 # define LT_DLLAZY_OR_NOW DL_NOW
12456 # define LT_DLLAZY_OR_NOW 0
12464 extern "C" void exit (int);
12467 void fnord() { int i=42;}
12470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12471 int status = $lt_dlunknown;
12475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12477 /* dlclose (self); */
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12488 (./conftest; exit; ) 2>/dev/null
12490 case x$lt_status in
12491 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12492 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12493 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12496 # compilation failed
12497 lt_cv_dlopen_self_static=no
12504 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12505 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12508 CPPFLAGS="$save_CPPFLAGS"
12509 LDFLAGS="$save_LDFLAGS"
12514 case $lt_cv_dlopen_self in
12515 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12516 *) enable_dlopen_self=unknown ;;
12519 case $lt_cv_dlopen_self_static in
12520 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12521 *) enable_dlopen_self_static=unknown ;;
12526 # The else clause should only fire when bootstrapping the
12527 # libtool distribution, otherwise you forgot to ship ltmain.sh
12528 # with your package, and you will get complaints that there are
12529 # no rules to generate ltmain.sh.
12530 if test -f "$ltmain"; then
12531 # See if we are running on zsh, and set the options which allow our commands through
12532 # without removal of \ escapes.
12533 if test -n "${ZSH_VERSION+set}" ; then
12534 setopt NO_GLOB_SUBST
12536 # Now quote all the things that may contain metacharacters while being
12537 # careful not to overquote the AC_SUBSTed values. We take copies of the
12538 # variables and quote the copies for generation of the libtool script.
12539 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12541 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12542 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12543 deplibs_check_method reload_flag reload_cmds need_locks \
12544 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12545 lt_cv_sys_global_symbol_to_c_name_address \
12546 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12547 old_postinstall_cmds old_postuninstall_cmds \
12551 lt_prog_compiler_wl_CXX \
12552 lt_prog_compiler_pic_CXX \
12553 lt_prog_compiler_static_CXX \
12554 lt_prog_compiler_no_builtin_flag_CXX \
12555 export_dynamic_flag_spec_CXX \
12556 thread_safe_flag_spec_CXX \
12557 whole_archive_flag_spec_CXX \
12558 enable_shared_with_static_runtimes_CXX \
12559 old_archive_cmds_CXX \
12560 old_archive_from_new_cmds_CXX \
12561 predep_objects_CXX \
12562 postdep_objects_CXX \
12565 compiler_lib_search_path_CXX \
12567 archive_expsym_cmds_CXX \
12568 postinstall_cmds_CXX \
12569 postuninstall_cmds_CXX \
12570 old_archive_from_expsyms_cmds_CXX \
12571 allow_undefined_flag_CXX \
12572 no_undefined_flag_CXX \
12573 export_symbols_cmds_CXX \
12574 hardcode_libdir_flag_spec_CXX \
12575 hardcode_libdir_flag_spec_ld_CXX \
12576 hardcode_libdir_separator_CXX \
12577 hardcode_automatic_CXX \
12579 module_expsym_cmds_CXX \
12580 lt_cv_prog_compiler_c_o_CXX \
12581 exclude_expsyms_CXX \
12582 include_expsyms_CXX; do
12585 old_archive_cmds_CXX | \
12586 old_archive_from_new_cmds_CXX | \
12587 archive_cmds_CXX | \
12588 archive_expsym_cmds_CXX | \
12589 module_cmds_CXX | \
12590 module_expsym_cmds_CXX | \
12591 old_archive_from_expsyms_cmds_CXX | \
12592 export_symbols_cmds_CXX | \
12593 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12594 postinstall_cmds | postuninstall_cmds | \
12595 old_postinstall_cmds | old_postuninstall_cmds | \
12596 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12597 # Double-quote double-evaled strings.
12598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12607 *'\$0 --fallback-echo"')
12608 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12614 cat <<__EOF__ >> "$cfgfile"
12615 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12619 # Shell to use when invoking shell scripts.
12622 # Whether or not to build shared libraries.
12623 build_libtool_libs=$enable_shared
12625 # Whether or not to build static libraries.
12626 build_old_libs=$enable_static
12628 # Whether or not to add -lc for building shared libraries.
12629 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12631 # Whether or not to disallow shared libs when runtime libs are static
12632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12634 # Whether or not to optimize for fast installation.
12635 fast_install=$enable_fast_install
12638 host_alias=$host_alias
12641 # An echo program that does not interpret backslashes.
12646 AR_FLAGS=$lt_AR_FLAGS
12651 # A language-specific compiler.
12652 CC=$lt_compiler_CXX
12654 # Is the compiler the GNU C compiler?
12660 # The linker used to build libraries.
12663 # Whether we need hard or soft links.
12666 # A BSD-compatible nm program.
12669 # A symbol stripping program
12672 # Used to examine libraries when file_magic_cmd begins "file"
12673 MAGIC_CMD=$MAGIC_CMD
12675 # Used on cygwin: DLL creation program.
12678 # Used on cygwin: object dumper.
12681 # Used on cygwin: assembler.
12684 # The name of the directory that contains temporary libtool files.
12687 # How to create reloadable object files.
12688 reload_flag=$lt_reload_flag
12689 reload_cmds=$lt_reload_cmds
12691 # How to pass a linker flag through the compiler.
12692 wl=$lt_lt_prog_compiler_wl_CXX
12694 # Object file suffix (normally "o").
12695 objext="$ac_objext"
12697 # Old archive suffix (normally "a").
12700 # Shared library suffix (normally ".so").
12701 shrext_cmds='$shrext_cmds'
12703 # Executable file suffix (normally "").
12706 # Additional compiler flags for building library objects.
12707 pic_flag=$lt_lt_prog_compiler_pic_CXX
12710 # What is the maximum length of a command?
12711 max_cmd_len=$lt_cv_sys_max_cmd_len
12713 # Does compiler simultaneously support -c and -o options?
12714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12716 # Must we lock files when doing compilation ?
12717 need_locks=$lt_need_locks
12719 # Do we need the lib prefix for modules?
12720 need_lib_prefix=$need_lib_prefix
12722 # Do we need a version for libraries?
12723 need_version=$need_version
12725 # Whether dlopen is supported.
12726 dlopen_support=$enable_dlopen
12728 # Whether dlopen of programs is supported.
12729 dlopen_self=$enable_dlopen_self
12731 # Whether dlopen of statically linked programs is supported.
12732 dlopen_self_static=$enable_dlopen_self_static
12734 # Compiler flag to prevent dynamic linking.
12735 link_static_flag=$lt_lt_prog_compiler_static_CXX
12737 # Compiler flag to turn off builtin functions.
12738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12740 # Compiler flag to allow reflexive dlopens.
12741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12743 # Compiler flag to generate shared objects directly from archives.
12744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12746 # Compiler flag to generate thread-safe objects.
12747 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12749 # Library versioning type.
12750 version_type=$version_type
12752 # Format of library name prefix.
12753 libname_spec=$lt_libname_spec
12755 # List of archive names. First name is the real one, the rest are links.
12756 # The last name is the one that the linker finds with -lNAME.
12757 library_names_spec=$lt_library_names_spec
12759 # The coded name of the library, if different from the real name.
12760 soname_spec=$lt_soname_spec
12762 # Commands used to build and install an old-style archive.
12764 old_archive_cmds=$lt_old_archive_cmds_CXX
12765 old_postinstall_cmds=$lt_old_postinstall_cmds
12766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12768 # Create an old-style archive from a shared archive.
12769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12771 # Create a temporary old-style archive to link instead of a shared archive.
12772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12774 # Commands used to build and install a shared archive.
12775 archive_cmds=$lt_archive_cmds_CXX
12776 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12777 postinstall_cmds=$lt_postinstall_cmds
12778 postuninstall_cmds=$lt_postuninstall_cmds
12780 # Commands used to build a loadable module (assumed same as above if empty)
12781 module_cmds=$lt_module_cmds_CXX
12782 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12784 # Commands to strip libraries.
12785 old_striplib=$lt_old_striplib
12786 striplib=$lt_striplib
12788 # Dependencies to place before the objects being linked to create a
12790 predep_objects=$lt_predep_objects_CXX
12792 # Dependencies to place after the objects being linked to create a
12794 postdep_objects=$lt_postdep_objects_CXX
12796 # Dependencies to place before the objects being linked to create a
12798 predeps=$lt_predeps_CXX
12800 # Dependencies to place after the objects being linked to create a
12802 postdeps=$lt_postdeps_CXX
12804 # The library search path used internally by the compiler when linking
12805 # a shared library.
12806 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12808 # Method to check whether dependent libraries are shared objects.
12809 deplibs_check_method=$lt_deplibs_check_method
12811 # Command to use when deplibs_check_method == file_magic.
12812 file_magic_cmd=$lt_file_magic_cmd
12814 # Flag that allows shared libraries with undefined symbols to be built.
12815 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12817 # Flag that forces no undefined symbols.
12818 no_undefined_flag=$lt_no_undefined_flag_CXX
12820 # Commands used to finish a libtool library installation in a directory.
12821 finish_cmds=$lt_finish_cmds
12823 # Same as above, but a single script fragment to be evaled but not shown.
12824 finish_eval=$lt_finish_eval
12826 # Take the output of nm and produce a listing of raw symbols and C names.
12827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12829 # Transform the output of nm in a proper C declaration
12830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12832 # Transform the output of nm in a C name address pair
12833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12835 # This is the shared library runtime path variable.
12836 runpath_var=$runpath_var
12838 # This is the shared library path variable.
12839 shlibpath_var=$shlibpath_var
12841 # Is shlibpath searched before the hard-coded library search path?
12842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12844 # How to hardcode a shared library path into an executable.
12845 hardcode_action=$hardcode_action_CXX
12847 # Whether we should hardcode library paths into libraries.
12848 hardcode_into_libs=$hardcode_into_libs
12850 # Flag to hardcode \$libdir into a binary during linking.
12851 # This must work even if \$libdir does not exist.
12852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12854 # If ld is used when linking, flag to hardcode \$libdir into
12855 # a binary during linking. This must work even if \$libdir does
12857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12859 # Whether we need a single -rpath flag with a separated argument.
12860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12863 # resulting binary.
12864 hardcode_direct=$hardcode_direct_CXX
12866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12867 # resulting binary.
12868 hardcode_minus_L=$hardcode_minus_L_CXX
12870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12871 # the resulting binary.
12872 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12874 # Set to yes if building a shared library automatically hardcodes DIR into the library
12875 # and all subsequent libraries and executables linked against it.
12876 hardcode_automatic=$hardcode_automatic_CXX
12878 # Variables whose values should be saved in libtool wrapper scripts and
12879 # restored at relink time.
12880 variables_saved_for_relink="$variables_saved_for_relink"
12882 # Whether libtool must link a program against all its dependency libraries.
12883 link_all_deplibs=$link_all_deplibs_CXX
12885 # Compile-time system search path for libraries
12886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12888 # Run-time system search path for libraries
12889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12891 # Fix the shell variable \$srcfile for the compiler.
12892 fix_srcfile_path="$fix_srcfile_path_CXX"
12894 # Set to yes if exported symbols are required.
12895 always_export_symbols=$always_export_symbols_CXX
12897 # The commands to list exported symbols.
12898 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12900 # The commands to extract the exported symbol list from a shared archive.
12901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12903 # Symbols that should not be listed in the preloaded symbols.
12904 exclude_expsyms=$lt_exclude_expsyms_CXX
12906 # Symbols that must always be exported.
12907 include_expsyms=$lt_include_expsyms_CXX
12909 # ### END LIBTOOL TAG CONFIG: $tagname
12915 # If there is no Makefile yet, we rely on a make rule to execute
12916 # `config.status --recheck' to rerun these tests and create the
12917 # libtool script then.
12918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12919 if test -f "$ltmain_in"; then
12920 test -f Makefile && make "$ltmain"
12926 ac_cpp='$CPP $CPPFLAGS'
12927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935 with_gnu_ldcxx=$with_gnu_ld
12936 with_gnu_ld=$lt_save_with_gnu_ld
12937 lt_cv_path_LDCXX=$lt_cv_path_LD
12938 lt_cv_path_LD=$lt_save_path_LD
12939 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12940 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12948 if test -n "$F77" && test "X$F77" != "Xno"; then
12951 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12952 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12956 archive_cmds_need_lc_F77=no
12957 allow_undefined_flag_F77=
12958 always_export_symbols_F77=no
12959 archive_expsym_cmds_F77=
12960 export_dynamic_flag_spec_F77=
12961 hardcode_direct_F77=no
12962 hardcode_libdir_flag_spec_F77=
12963 hardcode_libdir_flag_spec_ld_F77=
12964 hardcode_libdir_separator_F77=
12965 hardcode_minus_L_F77=no
12966 hardcode_automatic_F77=no
12968 module_expsym_cmds_F77=
12969 link_all_deplibs_F77=unknown
12970 old_archive_cmds_F77=$old_archive_cmds
12971 no_undefined_flag_F77=
12972 whole_archive_flag_spec_F77=
12973 enable_shared_with_static_runtimes_F77=no
12975 # Source file extension for f77 test sources.
12978 # Object file extension for compiled f77 test sources.
12982 # Code to be used in simple compile tests
12983 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12985 # Code to be used in simple link tests
12986 lt_simple_link_test_code=" program t\n end\n"
12988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12990 # If no C compiler was specified, use CC.
12993 # Allow CC to be a program name with arguments.
12997 # Allow CC to be a program name with arguments.
13002 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13004 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13005 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13006 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13007 echo "${ECHO_T}$can_build_shared" >&6
13009 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13010 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13011 test "$can_build_shared" = "no" && enable_shared=no
13013 # On AIX, shared libraries and static libraries use the same namespace, and
13014 # are all built from PIC.
13017 test "$enable_shared" = yes && enable_static=no
13018 if test -n "$RANLIB"; then
13019 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13020 postinstall_cmds='$RANLIB $lib'
13024 test "$enable_shared" = yes && enable_static=no
13027 echo "$as_me:$LINENO: result: $enable_shared" >&5
13028 echo "${ECHO_T}$enable_shared" >&6
13030 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13031 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13032 # Make sure either enable_shared or enable_static is yes.
13033 test "$enable_shared" = yes || enable_static=yes
13034 echo "$as_me:$LINENO: result: $enable_static" >&5
13035 echo "${ECHO_T}$enable_static" >&6
13037 test "$ld_shlibs_F77" = no && can_build_shared=no
13042 lt_prog_compiler_wl_F77=
13043 lt_prog_compiler_pic_F77=
13044 lt_prog_compiler_static_F77=
13046 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13047 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13049 if test "$GCC" = yes; then
13050 lt_prog_compiler_wl_F77='-Wl,'
13051 lt_prog_compiler_static_F77='-static'
13055 # All AIX code is PIC.
13056 if test "$host_cpu" = ia64; then
13057 # AIX 5 now supports IA64 processor
13058 lt_prog_compiler_static_F77='-Bstatic'
13063 # FIXME: we need at least 68020 code to build shared libraries, but
13064 # adding the `-m68020' flag to GCC prevents building anything better,
13066 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13070 # PIC is the default for these OSes.
13073 mingw* | pw32* | os2*)
13074 # This hack is so that the source file can tell whether it is being
13075 # built for inclusion in a dll (and should export symbols for example).
13076 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13079 darwin* | rhapsody*)
13080 # PIC is the default on this platform
13081 # Common symbols not allowed in MH_DYLIB files
13082 lt_prog_compiler_pic_F77='-fno-common'
13086 # Just because we use GCC doesn't mean we suddenly get shared libraries
13087 # on systems that don't support them.
13088 lt_prog_compiler_can_build_shared_F77=no
13093 if test -d /usr/nec; then
13094 lt_prog_compiler_pic_F77=-Kconform_pic
13099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13100 # not for PA HP-UX.
13101 case "$host_cpu" in
13106 lt_prog_compiler_pic_F77='-fPIC'
13112 lt_prog_compiler_pic_F77='-fPIC'
13116 # PORTME Check for flag to pass linker flags through the system compiler.
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 if test "$host_cpu" = ia64; then
13121 # AIX 5 now supports IA64 processor
13122 lt_prog_compiler_static_F77='-Bstatic'
13124 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13128 # PIC is the default on this platform
13129 # Common symbols not allowed in MH_DYLIB files
13130 case "$cc_basename" in
13132 lt_prog_compiler_pic_F77='-qnocommon'
13133 lt_prog_compiler_wl_F77='-Wl,'
13138 mingw* | pw32* | os2*)
13139 # This hack is so that the source file can tell whether it is being
13140 # built for inclusion in a dll (and should export symbols for example).
13141 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13144 hpux9* | hpux10* | hpux11*)
13145 lt_prog_compiler_wl_F77='-Wl,'
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case "$host_cpu" in
13153 lt_prog_compiler_pic_F77='+Z'
13156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13157 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13160 irix5* | irix6* | nonstopux*)
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 # PIC (with -KPIC) is the default.
13163 lt_prog_compiler_static_F77='-non_shared'
13167 lt_prog_compiler_pic_F77='-KPIC'
13168 lt_prog_compiler_static_F77='-Bstatic'
13174 lt_prog_compiler_wl_F77='-Wl,'
13175 lt_prog_compiler_pic_F77='-KPIC'
13176 lt_prog_compiler_static_F77='-static'
13179 lt_prog_compiler_wl_F77='-Wl,'
13180 # All Alpha code is PIC.
13181 lt_prog_compiler_static_F77='-non_shared'
13186 osf3* | osf4* | osf5*)
13187 lt_prog_compiler_wl_F77='-Wl,'
13188 # All OSF/1 code is PIC.
13189 lt_prog_compiler_static_F77='-non_shared'
13193 lt_prog_compiler_pic_F77='-Kpic'
13194 lt_prog_compiler_static_F77='-dn'
13198 lt_prog_compiler_wl_F77='-Wl,'
13199 lt_prog_compiler_pic_F77='-KPIC'
13200 lt_prog_compiler_static_F77='-Bstatic'
13204 lt_prog_compiler_wl_F77='-Qoption ld '
13205 lt_prog_compiler_pic_F77='-PIC'
13206 lt_prog_compiler_static_F77='-Bstatic'
13209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13210 lt_prog_compiler_wl_F77='-Wl,'
13211 lt_prog_compiler_pic_F77='-KPIC'
13212 lt_prog_compiler_static_F77='-Bstatic'
13216 if test -d /usr/nec ;then
13217 lt_prog_compiler_pic_F77='-Kconform_pic'
13218 lt_prog_compiler_static_F77='-Bstatic'
13223 lt_prog_compiler_pic_F77='-pic'
13224 lt_prog_compiler_static_F77='-Bstatic'
13228 lt_prog_compiler_can_build_shared_F77=no
13233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13234 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13237 # Check to make sure the PIC flag actually works.
13239 if test -n "$lt_prog_compiler_pic_F77"; then
13241 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13242 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13243 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 lt_prog_compiler_pic_works_F77=no
13247 ac_outfile=conftest.$ac_objext
13248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13249 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13250 # Insert the option either (1) after the last *FLAGS variable, or
13251 # (2) before a word containing "conftest.", or (3) at the end.
13252 # Note that $ac_compile itself does not contain backslashes and begins
13253 # with a dollar sign (not a hyphen), so the echo should work correctly.
13254 # The option is referenced via a variable to avoid confusing sed.
13255 lt_compile=`echo "$ac_compile" | $SED \
13256 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13258 -e 's:$: $lt_compiler_flag:'`
13259 (eval echo "\"\$as_me:13259: $lt_compile\"" >&5)
13260 (eval "$lt_compile" 2>conftest.err)
13262 cat conftest.err >&5
13263 echo "$as_me:13263: \$? = $ac_status" >&5
13264 if (exit $ac_status) && test -s "$ac_outfile"; then
13265 # The compiler can only warn and ignore the option if not recognized
13266 # So say no if there are warnings
13267 if test ! -s conftest.err; then
13268 lt_prog_compiler_pic_works_F77=yes
13274 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13275 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13277 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13278 case $lt_prog_compiler_pic_F77 in
13280 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13283 lt_prog_compiler_pic_F77=
13284 lt_prog_compiler_can_build_shared_F77=no
13289 # For platforms which do not support PIC, -DPIC is meaningless:
13291 lt_prog_compiler_pic_F77=
13294 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13298 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13299 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13300 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 lt_cv_prog_compiler_c_o_F77=no
13304 $rm -r conftest 2>/dev/null
13308 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13310 lt_compiler_flag="-o out/conftest2.$ac_objext"
13311 # Insert the option either (1) after the last *FLAGS variable, or
13312 # (2) before a word containing "conftest.", or (3) at the end.
13313 # Note that $ac_compile itself does not contain backslashes and begins
13314 # with a dollar sign (not a hyphen), so the echo should work correctly.
13315 lt_compile=`echo "$ac_compile" | $SED \
13316 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13318 -e 's:$: $lt_compiler_flag:'`
13319 (eval echo "\"\$as_me:13319: $lt_compile\"" >&5)
13320 (eval "$lt_compile" 2>out/conftest.err)
13322 cat out/conftest.err >&5
13323 echo "$as_me:13323: \$? = $ac_status" >&5
13324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13326 # The compiler can only warn and ignore the option if not recognized
13327 # So say no if there are warnings
13328 if test ! -s out/conftest.err; then
13329 lt_cv_prog_compiler_c_o_F77=yes
13334 # SGI C++ compiler will create directory out/ii_files/ for
13335 # template instantiation
13336 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13337 $rm out/* && rmdir out
13343 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13344 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13347 hard_links="nottested"
13348 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13349 # do not overwrite the value of need_locks provided by the user
13350 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13351 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13356 ln conftest.a conftest.b 2>&5 || hard_links=no
13357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13358 echo "$as_me:$LINENO: result: $hard_links" >&5
13359 echo "${ECHO_T}$hard_links" >&6
13360 if test "$hard_links" = no; then
13361 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13362 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13369 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13370 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13373 allow_undefined_flag_F77=
13374 enable_shared_with_static_runtimes_F77=no
13376 archive_expsym_cmds_F77=
13377 old_archive_From_new_cmds_F77=
13378 old_archive_from_expsyms_cmds_F77=
13379 export_dynamic_flag_spec_F77=
13380 whole_archive_flag_spec_F77=
13381 thread_safe_flag_spec_F77=
13382 hardcode_libdir_flag_spec_F77=
13383 hardcode_libdir_flag_spec_ld_F77=
13384 hardcode_libdir_separator_F77=
13385 hardcode_direct_F77=no
13386 hardcode_minus_L_F77=no
13387 hardcode_shlibpath_var_F77=unsupported
13388 link_all_deplibs_F77=unknown
13389 hardcode_automatic_F77=no
13391 module_expsym_cmds_F77=
13392 always_export_symbols_F77=no
13393 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13394 # include_expsyms should be a list of space-separated symbols to be *always*
13395 # included in the symbol list
13396 include_expsyms_F77=
13397 # exclude_expsyms can be an extended regexp of symbols to exclude
13398 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13399 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13400 # as well as any symbol that contains `d'.
13401 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13402 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13403 # platforms (ab)use it in PIC code, but their linkers get confused if
13404 # the symbol is explicitly referenced. Since portable code cannot
13405 # rely on this symbol name, it's probably fine to never include it in
13406 # preloaded symbol tables.
13407 extract_expsyms_cmds=
13410 cygwin* | mingw* | pw32*)
13411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13412 # When not using gcc, we currently assume that we are using
13413 # Microsoft Visual C++.
13414 if test "$GCC" != yes; then
13424 if test "$with_gnu_ld" = yes; then
13425 # If archive_cmds runs LD, not CC, wlarc should be empty
13428 # See if GNU ld supports shared libraries.
13430 aix3* | aix4* | aix5*)
13431 # On AIX/PPC, the GNU linker is very broken
13432 if test "$host_cpu" != ia64; then
13436 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13437 *** to be unable to reliably create shared libraries on AIX.
13438 *** Therefore, libtool is disabling shared libraries support. If you
13439 *** really care for shared libraries, you may want to modify your PATH
13440 *** so that a non-GNU linker is found, and then restart.
13447 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)'
13448 hardcode_libdir_flag_spec_F77='-L$libdir'
13449 hardcode_minus_L_F77=yes
13451 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13452 # that the semantics of dynamic libraries on AmigaOS, at least up
13453 # to version 4, is to share data among multiple programs linked
13454 # with the same dynamic library. Since this doesn't match the
13455 # behavior of shared libraries on other platforms, we can't use
13461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13462 allow_undefined_flag_F77=unsupported
13463 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13464 # support --undefined. This deserves some investigation. FIXME
13465 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471 cygwin* | mingw* | pw32*)
13472 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13473 # as there is no search path for DLLs.
13474 hardcode_libdir_flag_spec_F77='-L$libdir'
13475 allow_undefined_flag_F77=unsupported
13476 always_export_symbols_F77=no
13477 enable_shared_with_static_runtimes_F77=yes
13478 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13480 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13482 # If the export-symbols file already is a .def file (1st line
13483 # is EXPORTS), use it as is; otherwise, prepend...
13484 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13485 cp $export_symbols $output_objdir/$soname.def;
13487 echo EXPORTS > $output_objdir/$soname.def;
13488 cat $export_symbols >> $output_objdir/$soname.def;
13490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13498 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13502 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13512 *** create shared libraries on Solaris systems. Therefore, libtool
13513 *** is disabling shared libraries support. We urge you to upgrade GNU
13514 *** binutils to release 2.9.1 or newer. Another option is to modify
13515 *** your PATH or compiler configuration so that the native linker is
13516 *** used, and then restart.
13519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13520 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13521 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13528 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13530 hardcode_direct_F77=yes
13531 hardcode_shlibpath_var_F77=no
13535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537 archive_cmds_F77="$tmp_archive_cmds"
13538 supports_anon_versioning=no
13539 case `$LD -v 2>/dev/null` in
13540 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13543 *\ 2.11.*) ;; # other 2.11 versions
13544 *) supports_anon_versioning=yes ;;
13546 if test $supports_anon_versioning = yes; then
13547 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13549 $echo "local: *; };" >> $output_objdir/$libname.ver~
13550 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13552 archive_expsym_cmds_F77="$tmp_archive_cmds"
13560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13569 if test "$ld_shlibs_F77" = yes; then
13570 runpath_var=LD_RUN_PATH
13571 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13572 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13573 # ancient GNU ld didn't support --whole-archive et. al.
13574 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13575 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13577 whole_archive_flag_spec_F77=
13581 # PORTME fill in a description of your system's linker (not GNU ld)
13584 allow_undefined_flag_F77=unsupported
13585 always_export_symbols_F77=yes
13586 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'
13587 # Note: this linker hardcodes the directories in LIBPATH if there
13588 # are no directories specified by -L.
13589 hardcode_minus_L_F77=yes
13590 if test "$GCC" = yes && test -z "$link_static_flag"; then
13591 # Neither direct hardcoding nor static linking is supported with a
13593 hardcode_direct_F77=unsupported
13598 if test "$host_cpu" = ia64; then
13599 # On IA64, the linker does run time linking by default, so we don't
13600 # have to do anything special.
13601 aix_use_runtimelinking=no
13602 exp_sym_flag='-Bexport'
13605 # If we're using GNU nm, then we don't want the "-C" option.
13606 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13607 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13608 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'
13610 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'
13612 aix_use_runtimelinking=no
13614 # Test if we are trying to use run time linking or normal
13615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13616 # need to do runtime linking.
13617 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13618 for ld_flag in $LDFLAGS; do
13619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13620 aix_use_runtimelinking=yes
13626 exp_sym_flag='-bexport'
13627 no_entry_flag='-bnoentry'
13630 # When large executables or shared objects are built, AIX ld can
13631 # have problems creating the table of contents. If linking a library
13632 # or program results in "error TOC overflow" add -mminimal-toc to
13633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13636 archive_cmds_F77=''
13637 hardcode_direct_F77=yes
13638 hardcode_libdir_separator_F77=':'
13639 link_all_deplibs_F77=yes
13641 if test "$GCC" = yes; then
13642 case $host_os in aix4.012|aix4.012.*)
13643 # We only want to do this on AIX 4.2 and lower, the check
13644 # below for broken collect2 doesn't work under 4.3+
13645 collect2name=`${CC} -print-prog-name=collect2`
13646 if test -f "$collect2name" && \
13647 strings "$collect2name" | grep resolve_lib_name >/dev/null
13649 # We have reworked collect2
13650 hardcode_direct_F77=yes
13652 # We have old collect2
13653 hardcode_direct_F77=unsupported
13654 # It fails to find uninstalled libraries when the uninstalled
13655 # path is not listed in the libpath. Setting hardcode_minus_L
13656 # to unsupported forces relinking
13657 hardcode_minus_L_F77=yes
13658 hardcode_libdir_flag_spec_F77='-L$libdir'
13659 hardcode_libdir_separator_F77=
13662 shared_flag='-shared'
13665 if test "$host_cpu" = ia64; then
13666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13667 # chokes on -Wl,-G. The following line is correct:
13670 if test "$aix_use_runtimelinking" = yes; then
13671 shared_flag='${wl}-G'
13673 shared_flag='${wl}-bM:SRE'
13678 # It seems that -bexpall does not export symbols beginning with
13679 # underscore (_), so it is better to generate a list of symbols to export.
13680 always_export_symbols_F77=yes
13681 if test "$aix_use_runtimelinking" = yes; then
13682 # Warning - without using the other runtime loading flags (-brtl),
13683 # -berok will link without error, but may produce a broken library.
13684 allow_undefined_flag_F77='-berok'
13685 # Determine the default libpath from the value encoded in an empty executable.
13686 cat >conftest.$ac_ext <<_ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -z "$ac_f77_werror_flag"
13701 || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest$ac_exeext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13716 # Check for a 64-bit object if we didn't find anything.
13717 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; }
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13724 rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13728 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13729 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"
13731 if test "$host_cpu" = ia64; then
13732 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13733 allow_undefined_flag_F77="-z nodefs"
13734 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"
13736 # Determine the default libpath from the value encoded in an empty executable.
13737 cat >conftest.$ac_ext <<_ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744 (eval $ac_link) 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_f77_werror_flag"
13752 || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13767 # Check for a 64-bit object if we didn't find anything.
13768 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; }
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13779 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13780 # Warning - without using the other run time loading flags,
13781 # -berok will link without error, but may produce a broken library.
13782 no_undefined_flag_F77=' ${wl}-bernotok'
13783 allow_undefined_flag_F77=' ${wl}-berok'
13784 # -bexpall does not export symbols beginning with underscore (_)
13785 always_export_symbols_F77=yes
13786 # Exported symbols can be pulled into shared objects from archives
13787 whole_archive_flag_spec_F77=' '
13788 archive_cmds_need_lc_F77=yes
13789 # This is similar to how AIX traditionally builds it's shared libraries.
13790 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'
13796 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)'
13797 hardcode_libdir_flag_spec_F77='-L$libdir'
13798 hardcode_minus_L_F77=yes
13799 # see comment about different semantics on the GNU ld section
13804 export_dynamic_flag_spec_F77=-rdynamic
13807 cygwin* | mingw* | pw32*)
13808 # When not using gcc, we currently assume that we are using
13809 # Microsoft Visual C++.
13810 # hardcode_libdir_flag_spec is actually meaningless, as there is
13811 # no search path for DLLs.
13812 hardcode_libdir_flag_spec_F77=' '
13813 allow_undefined_flag_F77=unsupported
13814 # Tell ltmain to make .lib files, not .a files.
13816 # Tell ltmain to make .dll files, not .so files.
13818 # FIXME: Setting linknames here is a bad hack.
13819 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13820 # The linker will automatically build a .lib file if we build a DLL.
13821 old_archive_From_new_cmds_F77='true'
13822 # FIXME: Should let the user specify the lib program.
13823 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13824 fix_srcfile_path='`cygpath -w "$srcfile"`'
13825 enable_shared_with_static_runtimes_F77=yes
13828 darwin* | rhapsody*)
13830 rhapsody* | darwin1.[012])
13831 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13837 case ${MACOSX_DEPLOYMENT_TARGET} in
13839 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13842 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13848 archive_cmds_need_lc_F77=no
13849 hardcode_direct_F77=no
13850 hardcode_automatic_F77=yes
13851 hardcode_shlibpath_var_F77=unsupported
13852 whole_archive_flag_spec_F77=''
13853 link_all_deplibs_F77=yes
13854 if test "$GCC" = yes ; then
13855 output_verbose_link_cmd='echo'
13856 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13857 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13858 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13859 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}'
13860 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}'
13862 case "$cc_basename" in
13864 output_verbose_link_cmd='echo'
13865 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13866 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13868 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}'
13869 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}'
13879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_libdir_flag_spec_F77='-L$libdir'
13881 hardcode_shlibpath_var_F77=no
13888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13889 # support. Future versions do this automatically, but an explicit c++rt0.o
13890 # does not break anything, and helps significantly (at the cost of a little
13893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13894 hardcode_libdir_flag_spec_F77='-R$libdir'
13895 hardcode_direct_F77=yes
13896 hardcode_shlibpath_var_F77=no
13899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13901 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_direct_F77=yes
13903 hardcode_minus_L_F77=yes
13904 hardcode_shlibpath_var_F77=no
13907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13908 freebsd* | kfreebsd*-gnu)
13909 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13910 hardcode_libdir_flag_spec_F77='-R$libdir'
13911 hardcode_direct_F77=yes
13912 hardcode_shlibpath_var_F77=no
13916 if test "$GCC" = yes; then
13917 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'
13919 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'
13921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13922 hardcode_libdir_separator_F77=:
13923 hardcode_direct_F77=yes
13925 # hardcode_minus_L: Not really in the search PATH,
13926 # but as the default location of the library.
13927 hardcode_minus_L_F77=yes
13928 export_dynamic_flag_spec_F77='${wl}-E'
13932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13933 case "$host_cpu" in
13935 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13938 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13942 case "$host_cpu" in
13944 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13947 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13951 if test "$with_gnu_ld" = no; then
13952 case "$host_cpu" in
13954 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13955 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13956 hardcode_libdir_separator_F77=:
13957 hardcode_direct_F77=no
13958 hardcode_shlibpath_var_F77=no
13961 hardcode_libdir_flag_spec_F77='-L$libdir'
13962 hardcode_direct_F77=no
13963 hardcode_shlibpath_var_F77=no
13965 # hardcode_minus_L: Not really in the search PATH,
13966 # but as the default location of the library.
13967 hardcode_minus_L_F77=yes
13970 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13971 hardcode_libdir_separator_F77=:
13972 hardcode_direct_F77=yes
13973 export_dynamic_flag_spec_F77='${wl}-E'
13975 # hardcode_minus_L: Not really in the search PATH,
13976 # but as the default location of the library.
13977 hardcode_minus_L_F77=yes
13983 irix5* | irix6* | nonstopux*)
13984 if test "$GCC" = yes; then
13985 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'
13987 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'
13988 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13990 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13991 hardcode_libdir_separator_F77=:
13992 link_all_deplibs_F77=yes
13996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13999 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14001 hardcode_libdir_flag_spec_F77='-R$libdir'
14002 hardcode_direct_F77=yes
14003 hardcode_shlibpath_var_F77=no
14007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14008 hardcode_direct_F77=yes
14009 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14010 hardcode_libdir_separator_F77=:
14011 hardcode_shlibpath_var_F77=no
14015 hardcode_direct_F77=yes
14016 hardcode_shlibpath_var_F77=no
14017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14018 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14019 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14020 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14021 export_dynamic_flag_spec_F77='${wl}-E'
14024 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14025 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_libdir_flag_spec_F77='-R$libdir'
14029 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14030 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14037 hardcode_libdir_flag_spec_F77='-L$libdir'
14038 hardcode_minus_L_F77=yes
14039 allow_undefined_flag_F77=unsupported
14040 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'
14041 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14045 if test "$GCC" = yes; then
14046 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14047 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'
14049 allow_undefined_flag_F77=' -expect_unresolved \*'
14050 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'
14052 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14053 hardcode_libdir_separator_F77=:
14056 osf4* | osf5*) # as osf3* with the addition of -msym flag
14057 if test "$GCC" = yes; then
14058 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14059 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'
14060 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14062 allow_undefined_flag_F77=' -expect_unresolved \*'
14063 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'
14064 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~
14065 $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'
14067 # Both c and cxx compiler support -rpath directly
14068 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14070 hardcode_libdir_separator_F77=:
14074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14075 hardcode_shlibpath_var_F77=no
14076 export_dynamic_flag_spec_F77='${wl}-Bexport'
14077 runpath_var=LD_RUN_PATH
14078 hardcode_runpath_var=yes
14082 no_undefined_flag_F77=' -z text'
14083 if test "$GCC" = yes; then
14084 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14086 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14088 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14089 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14090 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14092 hardcode_libdir_flag_spec_F77='-R$libdir'
14093 hardcode_shlibpath_var_F77=no
14095 solaris2.[0-5] | solaris2.[0-5].*) ;;
14096 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14097 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14099 link_all_deplibs_F77=yes
14103 if test "x$host_vendor" = xsequent; then
14104 # Use $CC to link under sequent, because it throws in some extra .o
14105 # files that make .init and .fini sections work.
14106 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14108 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14110 hardcode_libdir_flag_spec_F77='-L$libdir'
14111 hardcode_direct_F77=yes
14112 hardcode_minus_L_F77=yes
14113 hardcode_shlibpath_var_F77=no
14117 case $host_vendor in
14119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14120 hardcode_direct_F77=yes # is this really true???
14123 ## LD is ld it makes a PLAMLIB
14124 ## CC just makes a GrossModule.
14125 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14126 reload_cmds_F77='$CC -r -o $output$reload_objs'
14127 hardcode_direct_F77=no
14130 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14131 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14134 runpath_var='LD_RUN_PATH'
14135 hardcode_shlibpath_var_F77=no
14139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140 hardcode_shlibpath_var_F77=no
14141 export_dynamic_flag_spec_F77='-Bexport'
14145 if test -d /usr/nec; then
14146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14147 hardcode_shlibpath_var_F77=no
14148 runpath_var=LD_RUN_PATH
14149 hardcode_runpath_var=yes
14155 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14156 hardcode_direct_F77=yes
14157 hardcode_minus_L_F77=no
14158 hardcode_shlibpath_var_F77=no
14159 hardcode_runpath_var=yes
14160 runpath_var=LD_RUN_PATH
14163 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14164 no_undefined_flag_F77='${wl}-z ${wl}text'
14165 if test "$GCC" = yes; then
14166 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14168 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14170 runpath_var='LD_RUN_PATH'
14171 hardcode_shlibpath_var_F77=no
14175 no_undefined_flag_F77=' -z text'
14176 # $CC -shared without GNU ld will not create a library from C++
14177 # object files and a static libstdc++, better avoid it by now
14178 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14179 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14181 hardcode_libdir_flag_spec_F77=
14182 hardcode_shlibpath_var_F77=no
14183 runpath_var='LD_RUN_PATH'
14187 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14188 hardcode_libdir_flag_spec_F77='-L$libdir'
14189 hardcode_shlibpath_var_F77=no
14198 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14199 echo "${ECHO_T}$ld_shlibs_F77" >&6
14200 test "$ld_shlibs_F77" = no && can_build_shared=no
14202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14203 if test "$GCC" = yes; then
14204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14208 # Do we need to explicitly link libc?
14210 case "x$archive_cmds_need_lc_F77" in
14212 # Assume -lc should be added
14213 archive_cmds_need_lc_F77=yes
14215 if test "$enable_shared" = yes && test "$GCC" = yes; then
14216 case $archive_cmds_F77 in
14218 # FIXME: we may have to deal with multi-command sequences.
14221 # Test whether the compiler implicitly links with -lc since on some
14222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223 # to ld, don't add -lc before -lgcc.
14224 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14225 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } 2>conftest.err; then
14236 libobjs=conftest.$ac_objext
14238 wl=$lt_prog_compiler_wl_F77
14244 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14245 allow_undefined_flag_F77=
14246 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14247 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }
14252 archive_cmds_need_lc_F77=no
14254 archive_cmds_need_lc_F77=yes
14256 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14258 cat conftest.err 1>&5
14261 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14262 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14269 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14270 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14271 library_names_spec=
14272 libname_spec='lib$name'
14276 postuninstall_cmds=
14280 shlibpath_overrides_runpath=unknown
14282 dynamic_linker="$host_os ld.so"
14283 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14284 if test "$GCC" = yes; then
14285 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14286 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14287 # if the path contains ";" then we assume it to be the separator
14288 # otherwise default to the standard path separator (i.e. ":") - it is
14289 # assumed that no part of a normal pathname contains ";" but that should
14290 # okay in the real world where ";" in dirpaths is itself problematic.
14291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14293 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14298 need_lib_prefix=unknown
14299 hardcode_into_libs=no
14301 # when you set need_version to no, make sure it does not cause -set_version
14302 # flags to be left without arguments
14303 need_version=unknown
14308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14309 shlibpath_var=LIBPATH
14311 # AIX 3 has no versioning support, so we append a major version to the name.
14312 soname_spec='${libname}${release}${shared_ext}$major'
14319 hardcode_into_libs=yes
14320 if test "$host_cpu" = ia64; then
14321 # AIX 5 supports IA64
14322 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14323 shlibpath_var=LD_LIBRARY_PATH
14325 # With GCC up to 2.95.x, collect2 would create an import file
14326 # for dependence libraries. The import file would start with
14327 # the line `#! .'. This would cause the generated library to
14328 # depend on `.', always an invalid library. This was fixed in
14329 # development snapshots of GCC prior to 3.0.
14331 aix4 | aix4.[01] | aix4.[01].*)
14332 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14334 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14337 can_build_shared=no
14341 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14342 # soname into executable. Probably we can add versioning support to
14343 # collect2, so additional links can be useful in future.
14344 if test "$aix_use_runtimelinking" = yes; then
14345 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14346 # instead of lib<name>.a to let people know that these are not
14347 # typical AIX shared libraries.
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350 # We preserve .a as extension for shared libraries through AIX4.2
14351 # and later when we are not doing run time linking.
14352 library_names_spec='${libname}${release}.a $libname.a'
14353 soname_spec='${libname}${release}${shared_ext}$major'
14355 shlibpath_var=LIBPATH
14360 library_names_spec='$libname.ixlibrary $libname.a'
14361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14362 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'
14366 library_names_spec='${libname}${shared_ext}'
14367 dynamic_linker="$host_os ld.so"
14368 shlibpath_var=LIBRARY_PATH
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14380 # the default ld.so.conf also contains /usr/contrib/lib and
14381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14382 # libtool to hard-code these into programs
14385 cygwin* | mingw* | pw32*)
14386 version_type=windows
14391 case $GCC,$host_os in
14392 yes,cygwin* | yes,mingw* | yes,pw32*)
14393 library_names_spec='$libname.dll.a'
14394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14395 postinstall_cmds='base_file=`basename \${file}`~
14396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14397 dldir=$destdir/`dirname \$dlpath`~
14398 test -d \$dldir || mkdir -p \$dldir~
14399 $install_prog $dir/$dlname \$dldir/$dlname'
14400 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14401 dlpath=$dir/\$dldll~
14403 shlibpath_overrides_runpath=yes
14407 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14408 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14409 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14412 # MinGW DLLs use traditional 'lib' prefix
14413 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14414 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14415 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14416 # It is most probably a Windows format PATH printed by
14417 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14418 # path with ; separators, and with drive letters. We can handle the
14419 # drive letters (cygwin fileutils understands them), so leave them,
14420 # especially as we might pass files found there to a mingw objdump,
14421 # which wouldn't understand a cygwinified path. Ahh.
14422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14428 # pw32 DLLs use 'pw' prefix rather than 'lib'
14429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14435 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14438 dynamic_linker='Win32 ld.exe'
14439 # FIXME: first we should search . and the directory the executable is in
14443 darwin* | rhapsody*)
14444 dynamic_linker="$host_os dyld"
14445 version_type=darwin
14448 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14449 soname_spec='${libname}${release}${major}$shared_ext'
14450 shlibpath_overrides_runpath=yes
14451 shlibpath_var=DYLD_LIBRARY_PATH
14452 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14453 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14454 if test "$GCC" = yes; then
14455 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"`
14457 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14459 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 shlibpath_var=LD_LIBRARY_PATH
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14480 soname_spec='${libname}${release}${shared_ext}$major'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 shlibpath_overrides_runpath=no
14483 hardcode_into_libs=yes
14484 dynamic_linker='GNU ld.so'
14488 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14489 version_type=freebsd-$objformat
14490 case $version_type in
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14501 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes
14506 freebsd3.01* | freebsdelf3.01*)
14507 shlibpath_overrides_runpath=yes
14508 hardcode_into_libs=yes
14511 shlibpath_overrides_runpath=no
14512 hardcode_into_libs=yes
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 hardcode_into_libs=yes
14527 hpux9* | hpux10* | hpux11*)
14528 # Give a soname corresponding to the major version so that dld.sl refuses to
14529 # link against other versions.
14533 case "$host_cpu" in
14536 hardcode_into_libs=yes
14537 dynamic_linker="$host_os dld.so"
14538 shlibpath_var=LD_LIBRARY_PATH
14539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 if test "X$HPUX_IA64_MODE" = X32; then
14543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14551 hardcode_into_libs=yes
14552 dynamic_linker="$host_os dld.sl"
14553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14562 dynamic_linker="$host_os dld.sl"
14563 shlibpath_var=SHLIB_PATH
14564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 soname_spec='${libname}${release}${shared_ext}$major'
14569 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14570 postinstall_cmds='chmod 555 $lib'
14573 irix5* | irix6* | nonstopux*)
14575 nonstopux*) version_type=nonstopux ;;
14577 if test "$lt_cv_prog_gnu_ld" = yes; then
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14588 irix5* | nonstopux*)
14589 libsuff= shlibsuff=
14592 case $LD in # libtool.m4 will add one of these switches to LD
14593 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14594 libsuff= shlibsuff= libmagic=32-bit;;
14595 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14596 libsuff=32 shlibsuff=N32 libmagic=N32;;
14597 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14598 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14599 *) libsuff= shlibsuff= libmagic=never-match;;
14603 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14604 shlibpath_overrides_runpath=no
14605 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14606 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14607 hardcode_into_libs=yes
14610 # No shared lib support for Linux oldld, aout, or coff.
14611 linux*oldld* | linux*aout* | linux*coff*)
14615 # This must be Linux ELF.
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14621 soname_spec='${libname}${release}${shared_ext}$major'
14622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=no
14625 # This implies no fast_install, which is unacceptable.
14626 # Some rework will be needed to allow for fast_install
14627 # before this can be enabled.
14628 hardcode_into_libs=yes
14630 # Append ld.so.conf contents to the search path
14631 if test -f /etc/ld.so.conf; then
14632 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14633 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14636 # We used to test for /lib/ld.so.1 and disable shared libraries on
14637 # powerpc, because MkLinux only supported shared libraries with the
14638 # GNU dynamic linker. Since this was broken with cross compilers,
14639 # most powerpc-linux boxes support dynamic linking these days and
14640 # people can always --disable-shared, the test was removed, and we
14641 # assume the GNU/Linux dynamic linker is in use.
14642 dynamic_linker='GNU/Linux ld.so'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=no
14653 hardcode_into_libs=yes
14654 dynamic_linker='GNU ld.so'
14661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664 dynamic_linker='NetBSD (a.out) ld.so'
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 dynamic_linker='NetBSD ld.elf_so'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 shlibpath_overrides_runpath=yes
14672 hardcode_into_libs=yes
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687 soname_spec='${libname}${release}${shared_ext}$major'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14701 openbsd2.[89] | openbsd2.[89].*)
14702 shlibpath_overrides_runpath=no
14705 shlibpath_overrides_runpath=yes
14709 shlibpath_overrides_runpath=yes
14714 libname_spec='$name'
14717 library_names_spec='$libname${shared_ext} $libname.a'
14718 dynamic_linker='OS/2 ld.exe'
14719 shlibpath_var=LIBPATH
14722 osf3* | osf4* | osf5*)
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14730 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 shlibpath_var=LD_LIBRARY_PATH
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=yes
14748 hardcode_into_libs=yes
14749 # ldd complains unless libraries are executable
14750 postinstall_cmds='chmod +x $lib'
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=yes
14759 if test "$with_gnu_ld" = yes; then
14765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14770 case $host_vendor in
14772 shlibpath_overrides_runpath=no
14774 export_dynamic_flag_spec='${wl}-Blargedynsym'
14775 runpath_var=LD_RUN_PATH
14783 shlibpath_overrides_runpath=no
14784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14790 if test -d /usr/nec ;then
14792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14793 soname_spec='$libname${shared_ext}.$major'
14794 shlibpath_var=LD_LIBRARY_PATH
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 shlibpath_var=LD_LIBRARY_PATH
14809 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14810 echo "${ECHO_T}$dynamic_linker" >&6
14811 test "$dynamic_linker" = no && can_build_shared=no
14813 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14815 hardcode_action_F77=
14816 if test -n "$hardcode_libdir_flag_spec_F77" || \
14817 test -n "$runpath_var_F77" || \
14818 test "X$hardcode_automatic_F77" = "Xyes" ; then
14820 # We can hardcode non-existant directories.
14821 if test "$hardcode_direct_F77" != no &&
14822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14823 # have to relink, otherwise we might link with an installed library
14824 # when we should be linking with a yet-to-be-installed one
14825 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14826 test "$hardcode_minus_L_F77" != no; then
14827 # Linking always hardcodes the temporary library directory.
14828 hardcode_action_F77=relink
14830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14831 hardcode_action_F77=immediate
14834 # We cannot hardcode anything, or else we can only hardcode existing
14836 hardcode_action_F77=unsupported
14838 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14839 echo "${ECHO_T}$hardcode_action_F77" >&6
14841 if test "$hardcode_action_F77" = relink; then
14842 # Fast installation is not supported
14843 enable_fast_install=no
14844 elif test "$shlibpath_overrides_runpath" = yes ||
14845 test "$enable_shared" = no; then
14846 # Fast installation is not necessary
14847 enable_fast_install=needless
14852 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14853 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14854 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14855 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14856 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14857 echo "$as_me:$LINENO: result: yes" >&5
14858 echo "${ECHO_T}yes" >&6
14860 # FIXME - insert some real tests, host_os isn't really good enough
14863 if test -n "$STRIP" ; then
14864 striplib="$STRIP -x"
14865 echo "$as_me:$LINENO: result: yes" >&5
14866 echo "${ECHO_T}yes" >&6
14868 echo "$as_me:$LINENO: result: no" >&5
14869 echo "${ECHO_T}no" >&6
14873 echo "$as_me:$LINENO: result: no" >&5
14874 echo "${ECHO_T}no" >&6
14881 # The else clause should only fire when bootstrapping the
14882 # libtool distribution, otherwise you forgot to ship ltmain.sh
14883 # with your package, and you will get complaints that there are
14884 # no rules to generate ltmain.sh.
14885 if test -f "$ltmain"; then
14886 # See if we are running on zsh, and set the options which allow our commands through
14887 # without removal of \ escapes.
14888 if test -n "${ZSH_VERSION+set}" ; then
14889 setopt NO_GLOB_SUBST
14891 # Now quote all the things that may contain metacharacters while being
14892 # careful not to overquote the AC_SUBSTed values. We take copies of the
14893 # variables and quote the copies for generation of the libtool script.
14894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14898 deplibs_check_method reload_flag reload_cmds need_locks \
14899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14900 lt_cv_sys_global_symbol_to_c_name_address \
14901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14902 old_postinstall_cmds old_postuninstall_cmds \
14906 lt_prog_compiler_wl_F77 \
14907 lt_prog_compiler_pic_F77 \
14908 lt_prog_compiler_static_F77 \
14909 lt_prog_compiler_no_builtin_flag_F77 \
14910 export_dynamic_flag_spec_F77 \
14911 thread_safe_flag_spec_F77 \
14912 whole_archive_flag_spec_F77 \
14913 enable_shared_with_static_runtimes_F77 \
14914 old_archive_cmds_F77 \
14915 old_archive_from_new_cmds_F77 \
14916 predep_objects_F77 \
14917 postdep_objects_F77 \
14920 compiler_lib_search_path_F77 \
14922 archive_expsym_cmds_F77 \
14923 postinstall_cmds_F77 \
14924 postuninstall_cmds_F77 \
14925 old_archive_from_expsyms_cmds_F77 \
14926 allow_undefined_flag_F77 \
14927 no_undefined_flag_F77 \
14928 export_symbols_cmds_F77 \
14929 hardcode_libdir_flag_spec_F77 \
14930 hardcode_libdir_flag_spec_ld_F77 \
14931 hardcode_libdir_separator_F77 \
14932 hardcode_automatic_F77 \
14934 module_expsym_cmds_F77 \
14935 lt_cv_prog_compiler_c_o_F77 \
14936 exclude_expsyms_F77 \
14937 include_expsyms_F77; do
14940 old_archive_cmds_F77 | \
14941 old_archive_from_new_cmds_F77 | \
14942 archive_cmds_F77 | \
14943 archive_expsym_cmds_F77 | \
14944 module_cmds_F77 | \
14945 module_expsym_cmds_F77 | \
14946 old_archive_from_expsyms_cmds_F77 | \
14947 export_symbols_cmds_F77 | \
14948 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14949 postinstall_cmds | postuninstall_cmds | \
14950 old_postinstall_cmds | old_postuninstall_cmds | \
14951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14952 # Double-quote double-evaled strings.
14953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14962 *'\$0 --fallback-echo"')
14963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14969 cat <<__EOF__ >> "$cfgfile"
14970 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14972 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14974 # Shell to use when invoking shell scripts.
14977 # Whether or not to build shared libraries.
14978 build_libtool_libs=$enable_shared
14980 # Whether or not to build static libraries.
14981 build_old_libs=$enable_static
14983 # Whether or not to add -lc for building shared libraries.
14984 build_libtool_need_lc=$archive_cmds_need_lc_F77
14986 # Whether or not to disallow shared libs when runtime libs are static
14987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14989 # Whether or not to optimize for fast installation.
14990 fast_install=$enable_fast_install
14993 host_alias=$host_alias
14996 # An echo program that does not interpret backslashes.
15001 AR_FLAGS=$lt_AR_FLAGS
15006 # A language-specific compiler.
15007 CC=$lt_compiler_F77
15009 # Is the compiler the GNU C compiler?
15015 # The linker used to build libraries.
15018 # Whether we need hard or soft links.
15021 # A BSD-compatible nm program.
15024 # A symbol stripping program
15027 # Used to examine libraries when file_magic_cmd begins "file"
15028 MAGIC_CMD=$MAGIC_CMD
15030 # Used on cygwin: DLL creation program.
15033 # Used on cygwin: object dumper.
15036 # Used on cygwin: assembler.
15039 # The name of the directory that contains temporary libtool files.
15042 # How to create reloadable object files.
15043 reload_flag=$lt_reload_flag
15044 reload_cmds=$lt_reload_cmds
15046 # How to pass a linker flag through the compiler.
15047 wl=$lt_lt_prog_compiler_wl_F77
15049 # Object file suffix (normally "o").
15050 objext="$ac_objext"
15052 # Old archive suffix (normally "a").
15055 # Shared library suffix (normally ".so").
15056 shrext_cmds='$shrext_cmds'
15058 # Executable file suffix (normally "").
15061 # Additional compiler flags for building library objects.
15062 pic_flag=$lt_lt_prog_compiler_pic_F77
15065 # What is the maximum length of a command?
15066 max_cmd_len=$lt_cv_sys_max_cmd_len
15068 # Does compiler simultaneously support -c and -o options?
15069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15071 # Must we lock files when doing compilation ?
15072 need_locks=$lt_need_locks
15074 # Do we need the lib prefix for modules?
15075 need_lib_prefix=$need_lib_prefix
15077 # Do we need a version for libraries?
15078 need_version=$need_version
15080 # Whether dlopen is supported.
15081 dlopen_support=$enable_dlopen
15083 # Whether dlopen of programs is supported.
15084 dlopen_self=$enable_dlopen_self
15086 # Whether dlopen of statically linked programs is supported.
15087 dlopen_self_static=$enable_dlopen_self_static
15089 # Compiler flag to prevent dynamic linking.
15090 link_static_flag=$lt_lt_prog_compiler_static_F77
15092 # Compiler flag to turn off builtin functions.
15093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15095 # Compiler flag to allow reflexive dlopens.
15096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15098 # Compiler flag to generate shared objects directly from archives.
15099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15101 # Compiler flag to generate thread-safe objects.
15102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15104 # Library versioning type.
15105 version_type=$version_type
15107 # Format of library name prefix.
15108 libname_spec=$lt_libname_spec
15110 # List of archive names. First name is the real one, the rest are links.
15111 # The last name is the one that the linker finds with -lNAME.
15112 library_names_spec=$lt_library_names_spec
15114 # The coded name of the library, if different from the real name.
15115 soname_spec=$lt_soname_spec
15117 # Commands used to build and install an old-style archive.
15119 old_archive_cmds=$lt_old_archive_cmds_F77
15120 old_postinstall_cmds=$lt_old_postinstall_cmds
15121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15123 # Create an old-style archive from a shared archive.
15124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15126 # Create a temporary old-style archive to link instead of a shared archive.
15127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15129 # Commands used to build and install a shared archive.
15130 archive_cmds=$lt_archive_cmds_F77
15131 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15132 postinstall_cmds=$lt_postinstall_cmds
15133 postuninstall_cmds=$lt_postuninstall_cmds
15135 # Commands used to build a loadable module (assumed same as above if empty)
15136 module_cmds=$lt_module_cmds_F77
15137 module_expsym_cmds=$lt_module_expsym_cmds_F77
15139 # Commands to strip libraries.
15140 old_striplib=$lt_old_striplib
15141 striplib=$lt_striplib
15143 # Dependencies to place before the objects being linked to create a
15145 predep_objects=$lt_predep_objects_F77
15147 # Dependencies to place after the objects being linked to create a
15149 postdep_objects=$lt_postdep_objects_F77
15151 # Dependencies to place before the objects being linked to create a
15153 predeps=$lt_predeps_F77
15155 # Dependencies to place after the objects being linked to create a
15157 postdeps=$lt_postdeps_F77
15159 # The library search path used internally by the compiler when linking
15160 # a shared library.
15161 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15163 # Method to check whether dependent libraries are shared objects.
15164 deplibs_check_method=$lt_deplibs_check_method
15166 # Command to use when deplibs_check_method == file_magic.
15167 file_magic_cmd=$lt_file_magic_cmd
15169 # Flag that allows shared libraries with undefined symbols to be built.
15170 allow_undefined_flag=$lt_allow_undefined_flag_F77
15172 # Flag that forces no undefined symbols.
15173 no_undefined_flag=$lt_no_undefined_flag_F77
15175 # Commands used to finish a libtool library installation in a directory.
15176 finish_cmds=$lt_finish_cmds
15178 # Same as above, but a single script fragment to be evaled but not shown.
15179 finish_eval=$lt_finish_eval
15181 # Take the output of nm and produce a listing of raw symbols and C names.
15182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15184 # Transform the output of nm in a proper C declaration
15185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15187 # Transform the output of nm in a C name address pair
15188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15190 # This is the shared library runtime path variable.
15191 runpath_var=$runpath_var
15193 # This is the shared library path variable.
15194 shlibpath_var=$shlibpath_var
15196 # Is shlibpath searched before the hard-coded library search path?
15197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15199 # How to hardcode a shared library path into an executable.
15200 hardcode_action=$hardcode_action_F77
15202 # Whether we should hardcode library paths into libraries.
15203 hardcode_into_libs=$hardcode_into_libs
15205 # Flag to hardcode \$libdir into a binary during linking.
15206 # This must work even if \$libdir does not exist.
15207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15209 # If ld is used when linking, flag to hardcode \$libdir into
15210 # a binary during linking. This must work even if \$libdir does
15212 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15214 # Whether we need a single -rpath flag with a separated argument.
15215 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15217 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15218 # resulting binary.
15219 hardcode_direct=$hardcode_direct_F77
15221 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15222 # resulting binary.
15223 hardcode_minus_L=$hardcode_minus_L_F77
15225 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15226 # the resulting binary.
15227 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15229 # Set to yes if building a shared library automatically hardcodes DIR into the library
15230 # and all subsequent libraries and executables linked against it.
15231 hardcode_automatic=$hardcode_automatic_F77
15233 # Variables whose values should be saved in libtool wrapper scripts and
15234 # restored at relink time.
15235 variables_saved_for_relink="$variables_saved_for_relink"
15237 # Whether libtool must link a program against all its dependency libraries.
15238 link_all_deplibs=$link_all_deplibs_F77
15240 # Compile-time system search path for libraries
15241 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15243 # Run-time system search path for libraries
15244 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15246 # Fix the shell variable \$srcfile for the compiler.
15247 fix_srcfile_path="$fix_srcfile_path_F77"
15249 # Set to yes if exported symbols are required.
15250 always_export_symbols=$always_export_symbols_F77
15252 # The commands to list exported symbols.
15253 export_symbols_cmds=$lt_export_symbols_cmds_F77
15255 # The commands to extract the exported symbol list from a shared archive.
15256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15258 # Symbols that should not be listed in the preloaded symbols.
15259 exclude_expsyms=$lt_exclude_expsyms_F77
15261 # Symbols that must always be exported.
15262 include_expsyms=$lt_include_expsyms_F77
15264 # ### END LIBTOOL TAG CONFIG: $tagname
15270 # If there is no Makefile yet, we rely on a make rule to execute
15271 # `config.status --recheck' to rerun these tests and create the
15272 # libtool script then.
15273 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15274 if test -f "$ltmain_in"; then
15275 test -f Makefile && make "$ltmain"
15281 ac_cpp='$CPP $CPPFLAGS'
15282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15294 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15296 ac_cpp='$CPP $CPPFLAGS'
15297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15302 # Source file extension for Java test sources.
15305 # Object file extension for compiled Java test sources.
15309 # Code to be used in simple compile tests
15310 lt_simple_compile_test_code="class foo {}\n"
15312 # Code to be used in simple link tests
15313 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15317 # If no C compiler was specified, use CC.
15320 # Allow CC to be a program name with arguments.
15324 # Allow CC to be a program name with arguments.
15330 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15331 archive_cmds_need_lc_GCJ=no
15334 lt_prog_compiler_no_builtin_flag_GCJ=
15336 if test "$GCC" = yes; then
15337 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15340 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15341 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15342 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 lt_cv_prog_compiler_rtti_exceptions=no
15346 ac_outfile=conftest.$ac_objext
15347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15348 lt_compiler_flag="-fno-rtti -fno-exceptions"
15349 # Insert the option either (1) after the last *FLAGS variable, or
15350 # (2) before a word containing "conftest.", or (3) at the end.
15351 # Note that $ac_compile itself does not contain backslashes and begins
15352 # with a dollar sign (not a hyphen), so the echo should work correctly.
15353 # The option is referenced via a variable to avoid confusing sed.
15354 lt_compile=`echo "$ac_compile" | $SED \
15355 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15357 -e 's:$: $lt_compiler_flag:'`
15358 (eval echo "\"\$as_me:15358: $lt_compile\"" >&5)
15359 (eval "$lt_compile" 2>conftest.err)
15361 cat conftest.err >&5
15362 echo "$as_me:15362: \$? = $ac_status" >&5
15363 if (exit $ac_status) && test -s "$ac_outfile"; then
15364 # The compiler can only warn and ignore the option if not recognized
15365 # So say no if there are warnings
15366 if test ! -s conftest.err; then
15367 lt_cv_prog_compiler_rtti_exceptions=yes
15373 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15374 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15376 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15377 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15384 lt_prog_compiler_wl_GCJ=
15385 lt_prog_compiler_pic_GCJ=
15386 lt_prog_compiler_static_GCJ=
15388 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15389 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15391 if test "$GCC" = yes; then
15392 lt_prog_compiler_wl_GCJ='-Wl,'
15393 lt_prog_compiler_static_GCJ='-static'
15397 # All AIX code is PIC.
15398 if test "$host_cpu" = ia64; then
15399 # AIX 5 now supports IA64 processor
15400 lt_prog_compiler_static_GCJ='-Bstatic'
15405 # FIXME: we need at least 68020 code to build shared libraries, but
15406 # adding the `-m68020' flag to GCC prevents building anything better,
15408 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15411 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15412 # PIC is the default for these OSes.
15415 mingw* | pw32* | os2*)
15416 # This hack is so that the source file can tell whether it is being
15417 # built for inclusion in a dll (and should export symbols for example).
15418 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15421 darwin* | rhapsody*)
15422 # PIC is the default on this platform
15423 # Common symbols not allowed in MH_DYLIB files
15424 lt_prog_compiler_pic_GCJ='-fno-common'
15428 # Just because we use GCC doesn't mean we suddenly get shared libraries
15429 # on systems that don't support them.
15430 lt_prog_compiler_can_build_shared_GCJ=no
15435 if test -d /usr/nec; then
15436 lt_prog_compiler_pic_GCJ=-Kconform_pic
15441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15442 # not for PA HP-UX.
15443 case "$host_cpu" in
15448 lt_prog_compiler_pic_GCJ='-fPIC'
15454 lt_prog_compiler_pic_GCJ='-fPIC'
15458 # PORTME Check for flag to pass linker flags through the system compiler.
15461 lt_prog_compiler_wl_GCJ='-Wl,'
15462 if test "$host_cpu" = ia64; then
15463 # AIX 5 now supports IA64 processor
15464 lt_prog_compiler_static_GCJ='-Bstatic'
15466 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15470 # PIC is the default on this platform
15471 # Common symbols not allowed in MH_DYLIB files
15472 case "$cc_basename" in
15474 lt_prog_compiler_pic_GCJ='-qnocommon'
15475 lt_prog_compiler_wl_GCJ='-Wl,'
15480 mingw* | pw32* | os2*)
15481 # This hack is so that the source file can tell whether it is being
15482 # built for inclusion in a dll (and should export symbols for example).
15483 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15486 hpux9* | hpux10* | hpux11*)
15487 lt_prog_compiler_wl_GCJ='-Wl,'
15488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15489 # not for PA HP-UX.
15490 case "$host_cpu" in
15495 lt_prog_compiler_pic_GCJ='+Z'
15498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15499 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15502 irix5* | irix6* | nonstopux*)
15503 lt_prog_compiler_wl_GCJ='-Wl,'
15504 # PIC (with -KPIC) is the default.
15505 lt_prog_compiler_static_GCJ='-non_shared'
15509 lt_prog_compiler_pic_GCJ='-KPIC'
15510 lt_prog_compiler_static_GCJ='-Bstatic'
15516 lt_prog_compiler_wl_GCJ='-Wl,'
15517 lt_prog_compiler_pic_GCJ='-KPIC'
15518 lt_prog_compiler_static_GCJ='-static'
15521 lt_prog_compiler_wl_GCJ='-Wl,'
15522 # All Alpha code is PIC.
15523 lt_prog_compiler_static_GCJ='-non_shared'
15528 osf3* | osf4* | osf5*)
15529 lt_prog_compiler_wl_GCJ='-Wl,'
15530 # All OSF/1 code is PIC.
15531 lt_prog_compiler_static_GCJ='-non_shared'
15535 lt_prog_compiler_pic_GCJ='-Kpic'
15536 lt_prog_compiler_static_GCJ='-dn'
15540 lt_prog_compiler_wl_GCJ='-Wl,'
15541 lt_prog_compiler_pic_GCJ='-KPIC'
15542 lt_prog_compiler_static_GCJ='-Bstatic'
15546 lt_prog_compiler_wl_GCJ='-Qoption ld '
15547 lt_prog_compiler_pic_GCJ='-PIC'
15548 lt_prog_compiler_static_GCJ='-Bstatic'
15551 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15552 lt_prog_compiler_wl_GCJ='-Wl,'
15553 lt_prog_compiler_pic_GCJ='-KPIC'
15554 lt_prog_compiler_static_GCJ='-Bstatic'
15558 if test -d /usr/nec ;then
15559 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15560 lt_prog_compiler_static_GCJ='-Bstatic'
15565 lt_prog_compiler_pic_GCJ='-pic'
15566 lt_prog_compiler_static_GCJ='-Bstatic'
15570 lt_prog_compiler_can_build_shared_GCJ=no
15575 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15576 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15579 # Check to make sure the PIC flag actually works.
15581 if test -n "$lt_prog_compiler_pic_GCJ"; then
15583 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15584 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15585 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 lt_prog_compiler_pic_works_GCJ=no
15589 ac_outfile=conftest.$ac_objext
15590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15591 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15592 # Insert the option either (1) after the last *FLAGS variable, or
15593 # (2) before a word containing "conftest.", or (3) at the end.
15594 # Note that $ac_compile itself does not contain backslashes and begins
15595 # with a dollar sign (not a hyphen), so the echo should work correctly.
15596 # The option is referenced via a variable to avoid confusing sed.
15597 lt_compile=`echo "$ac_compile" | $SED \
15598 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15600 -e 's:$: $lt_compiler_flag:'`
15601 (eval echo "\"\$as_me:15601: $lt_compile\"" >&5)
15602 (eval "$lt_compile" 2>conftest.err)
15604 cat conftest.err >&5
15605 echo "$as_me:15605: \$? = $ac_status" >&5
15606 if (exit $ac_status) && test -s "$ac_outfile"; then
15607 # The compiler can only warn and ignore the option if not recognized
15608 # So say no if there are warnings
15609 if test ! -s conftest.err; then
15610 lt_prog_compiler_pic_works_GCJ=yes
15616 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15617 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15619 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15620 case $lt_prog_compiler_pic_GCJ in
15622 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15625 lt_prog_compiler_pic_GCJ=
15626 lt_prog_compiler_can_build_shared_GCJ=no
15631 # For platforms which do not support PIC, -DPIC is meaningless:
15633 lt_prog_compiler_pic_GCJ=
15636 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15640 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15641 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15642 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 lt_cv_prog_compiler_c_o_GCJ=no
15646 $rm -r conftest 2>/dev/null
15650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15652 lt_compiler_flag="-o out/conftest2.$ac_objext"
15653 # Insert the option either (1) after the last *FLAGS variable, or
15654 # (2) before a word containing "conftest.", or (3) at the end.
15655 # Note that $ac_compile itself does not contain backslashes and begins
15656 # with a dollar sign (not a hyphen), so the echo should work correctly.
15657 lt_compile=`echo "$ac_compile" | $SED \
15658 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15660 -e 's:$: $lt_compiler_flag:'`
15661 (eval echo "\"\$as_me:15661: $lt_compile\"" >&5)
15662 (eval "$lt_compile" 2>out/conftest.err)
15664 cat out/conftest.err >&5
15665 echo "$as_me:15665: \$? = $ac_status" >&5
15666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15668 # The compiler can only warn and ignore the option if not recognized
15669 # So say no if there are warnings
15670 if test ! -s out/conftest.err; then
15671 lt_cv_prog_compiler_c_o_GCJ=yes
15676 # SGI C++ compiler will create directory out/ii_files/ for
15677 # template instantiation
15678 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15679 $rm out/* && rmdir out
15685 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15686 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15689 hard_links="nottested"
15690 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15691 # do not overwrite the value of need_locks provided by the user
15692 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15693 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15698 ln conftest.a conftest.b 2>&5 || hard_links=no
15699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15700 echo "$as_me:$LINENO: result: $hard_links" >&5
15701 echo "${ECHO_T}$hard_links" >&6
15702 if test "$hard_links" = no; then
15703 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15704 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15711 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15712 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15715 allow_undefined_flag_GCJ=
15716 enable_shared_with_static_runtimes_GCJ=no
15718 archive_expsym_cmds_GCJ=
15719 old_archive_From_new_cmds_GCJ=
15720 old_archive_from_expsyms_cmds_GCJ=
15721 export_dynamic_flag_spec_GCJ=
15722 whole_archive_flag_spec_GCJ=
15723 thread_safe_flag_spec_GCJ=
15724 hardcode_libdir_flag_spec_GCJ=
15725 hardcode_libdir_flag_spec_ld_GCJ=
15726 hardcode_libdir_separator_GCJ=
15727 hardcode_direct_GCJ=no
15728 hardcode_minus_L_GCJ=no
15729 hardcode_shlibpath_var_GCJ=unsupported
15730 link_all_deplibs_GCJ=unknown
15731 hardcode_automatic_GCJ=no
15733 module_expsym_cmds_GCJ=
15734 always_export_symbols_GCJ=no
15735 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15736 # include_expsyms should be a list of space-separated symbols to be *always*
15737 # included in the symbol list
15738 include_expsyms_GCJ=
15739 # exclude_expsyms can be an extended regexp of symbols to exclude
15740 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15742 # as well as any symbol that contains `d'.
15743 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15745 # platforms (ab)use it in PIC code, but their linkers get confused if
15746 # the symbol is explicitly referenced. Since portable code cannot
15747 # rely on this symbol name, it's probably fine to never include it in
15748 # preloaded symbol tables.
15749 extract_expsyms_cmds=
15752 cygwin* | mingw* | pw32*)
15753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15754 # When not using gcc, we currently assume that we are using
15755 # Microsoft Visual C++.
15756 if test "$GCC" != yes; then
15766 if test "$with_gnu_ld" = yes; then
15767 # If archive_cmds runs LD, not CC, wlarc should be empty
15770 # See if GNU ld supports shared libraries.
15772 aix3* | aix4* | aix5*)
15773 # On AIX/PPC, the GNU linker is very broken
15774 if test "$host_cpu" != ia64; then
15778 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15779 *** to be unable to reliably create shared libraries on AIX.
15780 *** Therefore, libtool is disabling shared libraries support. If you
15781 *** really care for shared libraries, you may want to modify your PATH
15782 *** so that a non-GNU linker is found, and then restart.
15789 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)'
15790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15791 hardcode_minus_L_GCJ=yes
15793 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15794 # that the semantics of dynamic libraries on AmigaOS, at least up
15795 # to version 4, is to share data among multiple programs linked
15796 # with the same dynamic library. Since this doesn't match the
15797 # behavior of shared libraries on other platforms, we can't use
15803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15804 allow_undefined_flag_GCJ=unsupported
15805 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15806 # support --undefined. This deserves some investigation. FIXME
15807 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813 cygwin* | mingw* | pw32*)
15814 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15815 # as there is no search path for DLLs.
15816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15817 allow_undefined_flag_GCJ=unsupported
15818 always_export_symbols_GCJ=no
15819 enable_shared_with_static_runtimes_GCJ=yes
15820 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15822 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15823 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15824 # If the export-symbols file already is a .def file (1st line
15825 # is EXPORTS), use it as is; otherwise, prepend...
15826 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15827 cp $export_symbols $output_objdir/$soname.def;
15829 echo EXPORTS > $output_objdir/$soname.def;
15830 cat $export_symbols >> $output_objdir/$soname.def;
15832 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15840 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15849 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15853 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15854 *** create shared libraries on Solaris systems. Therefore, libtool
15855 *** is disabling shared libraries support. We urge you to upgrade GNU
15856 *** binutils to release 2.9.1 or newer. Another option is to modify
15857 *** your PATH or compiler configuration so that the native linker is
15858 *** used, and then restart.
15861 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15862 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15870 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15872 hardcode_direct_GCJ=yes
15873 hardcode_shlibpath_var_GCJ=no
15877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15878 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879 archive_cmds_GCJ="$tmp_archive_cmds"
15880 supports_anon_versioning=no
15881 case `$LD -v 2>/dev/null` in
15882 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15883 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15884 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15885 *\ 2.11.*) ;; # other 2.11 versions
15886 *) supports_anon_versioning=yes ;;
15888 if test $supports_anon_versioning = yes; then
15889 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15891 $echo "local: *; };" >> $output_objdir/$libname.ver~
15892 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15894 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15903 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15904 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15911 if test "$ld_shlibs_GCJ" = yes; then
15912 runpath_var=LD_RUN_PATH
15913 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15914 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15915 # ancient GNU ld didn't support --whole-archive et. al.
15916 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15917 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15919 whole_archive_flag_spec_GCJ=
15923 # PORTME fill in a description of your system's linker (not GNU ld)
15926 allow_undefined_flag_GCJ=unsupported
15927 always_export_symbols_GCJ=yes
15928 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'
15929 # Note: this linker hardcodes the directories in LIBPATH if there
15930 # are no directories specified by -L.
15931 hardcode_minus_L_GCJ=yes
15932 if test "$GCC" = yes && test -z "$link_static_flag"; then
15933 # Neither direct hardcoding nor static linking is supported with a
15935 hardcode_direct_GCJ=unsupported
15940 if test "$host_cpu" = ia64; then
15941 # On IA64, the linker does run time linking by default, so we don't
15942 # have to do anything special.
15943 aix_use_runtimelinking=no
15944 exp_sym_flag='-Bexport'
15947 # If we're using GNU nm, then we don't want the "-C" option.
15948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15950 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'
15952 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'
15954 aix_use_runtimelinking=no
15956 # Test if we are trying to use run time linking or normal
15957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15958 # need to do runtime linking.
15959 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15960 for ld_flag in $LDFLAGS; do
15961 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15962 aix_use_runtimelinking=yes
15968 exp_sym_flag='-bexport'
15969 no_entry_flag='-bnoentry'
15972 # When large executables or shared objects are built, AIX ld can
15973 # have problems creating the table of contents. If linking a library
15974 # or program results in "error TOC overflow" add -mminimal-toc to
15975 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15976 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15978 archive_cmds_GCJ=''
15979 hardcode_direct_GCJ=yes
15980 hardcode_libdir_separator_GCJ=':'
15981 link_all_deplibs_GCJ=yes
15983 if test "$GCC" = yes; then
15984 case $host_os in aix4.012|aix4.012.*)
15985 # We only want to do this on AIX 4.2 and lower, the check
15986 # below for broken collect2 doesn't work under 4.3+
15987 collect2name=`${CC} -print-prog-name=collect2`
15988 if test -f "$collect2name" && \
15989 strings "$collect2name" | grep resolve_lib_name >/dev/null
15991 # We have reworked collect2
15992 hardcode_direct_GCJ=yes
15994 # We have old collect2
15995 hardcode_direct_GCJ=unsupported
15996 # It fails to find uninstalled libraries when the uninstalled
15997 # path is not listed in the libpath. Setting hardcode_minus_L
15998 # to unsupported forces relinking
15999 hardcode_minus_L_GCJ=yes
16000 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16001 hardcode_libdir_separator_GCJ=
16004 shared_flag='-shared'
16007 if test "$host_cpu" = ia64; then
16008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16009 # chokes on -Wl,-G. The following line is correct:
16012 if test "$aix_use_runtimelinking" = yes; then
16013 shared_flag='${wl}-G'
16015 shared_flag='${wl}-bM:SRE'
16020 # It seems that -bexpall does not export symbols beginning with
16021 # underscore (_), so it is better to generate a list of symbols to export.
16022 always_export_symbols_GCJ=yes
16023 if test "$aix_use_runtimelinking" = yes; then
16024 # Warning - without using the other runtime loading flags (-brtl),
16025 # -berok will link without error, but may produce a broken library.
16026 allow_undefined_flag_GCJ='-berok'
16027 # Determine the default libpath from the value encoded in an empty executable.
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045 (eval $ac_link) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16068 # Check for a 64-bit object if we didn't find anything.
16069 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; }
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16076 rm -f conftest.err conftest.$ac_objext \
16077 conftest$ac_exeext conftest.$ac_ext
16078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16080 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16081 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"
16083 if test "$host_cpu" = ia64; then
16084 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16085 allow_undefined_flag_GCJ="-z nodefs"
16086 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"
16088 # Determine the default libpath from the value encoded in an empty executable.
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16129 # Check for a 64-bit object if we didn't find anything.
16130 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; }
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16137 rm -f conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16141 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16142 # Warning - without using the other run time loading flags,
16143 # -berok will link without error, but may produce a broken library.
16144 no_undefined_flag_GCJ=' ${wl}-bernotok'
16145 allow_undefined_flag_GCJ=' ${wl}-berok'
16146 # -bexpall does not export symbols beginning with underscore (_)
16147 always_export_symbols_GCJ=yes
16148 # Exported symbols can be pulled into shared objects from archives
16149 whole_archive_flag_spec_GCJ=' '
16150 archive_cmds_need_lc_GCJ=yes
16151 # This is similar to how AIX traditionally builds it's shared libraries.
16152 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'
16158 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)'
16159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160 hardcode_minus_L_GCJ=yes
16161 # see comment about different semantics on the GNU ld section
16166 export_dynamic_flag_spec_GCJ=-rdynamic
16169 cygwin* | mingw* | pw32*)
16170 # When not using gcc, we currently assume that we are using
16171 # Microsoft Visual C++.
16172 # hardcode_libdir_flag_spec is actually meaningless, as there is
16173 # no search path for DLLs.
16174 hardcode_libdir_flag_spec_GCJ=' '
16175 allow_undefined_flag_GCJ=unsupported
16176 # Tell ltmain to make .lib files, not .a files.
16178 # Tell ltmain to make .dll files, not .so files.
16180 # FIXME: Setting linknames here is a bad hack.
16181 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16182 # The linker will automatically build a .lib file if we build a DLL.
16183 old_archive_From_new_cmds_GCJ='true'
16184 # FIXME: Should let the user specify the lib program.
16185 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16186 fix_srcfile_path='`cygpath -w "$srcfile"`'
16187 enable_shared_with_static_runtimes_GCJ=yes
16190 darwin* | rhapsody*)
16192 rhapsody* | darwin1.[012])
16193 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16196 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16197 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16199 case ${MACOSX_DEPLOYMENT_TARGET} in
16201 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16204 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16210 archive_cmds_need_lc_GCJ=no
16211 hardcode_direct_GCJ=no
16212 hardcode_automatic_GCJ=yes
16213 hardcode_shlibpath_var_GCJ=unsupported
16214 whole_archive_flag_spec_GCJ=''
16215 link_all_deplibs_GCJ=yes
16216 if test "$GCC" = yes ; then
16217 output_verbose_link_cmd='echo'
16218 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16219 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16220 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16221 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}'
16222 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}'
16224 case "$cc_basename" in
16226 output_verbose_link_cmd='echo'
16227 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16228 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16230 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}'
16231 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}'
16241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243 hardcode_shlibpath_var_GCJ=no
16250 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16251 # support. Future versions do this automatically, but an explicit c++rt0.o
16252 # does not break anything, and helps significantly (at the cost of a little
16255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16256 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16257 hardcode_direct_GCJ=yes
16258 hardcode_shlibpath_var_GCJ=no
16261 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16263 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16264 hardcode_direct_GCJ=yes
16265 hardcode_minus_L_GCJ=yes
16266 hardcode_shlibpath_var_GCJ=no
16269 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16270 freebsd* | kfreebsd*-gnu)
16271 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16272 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16273 hardcode_direct_GCJ=yes
16274 hardcode_shlibpath_var_GCJ=no
16278 if test "$GCC" = yes; then
16279 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'
16281 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'
16283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_separator_GCJ=:
16285 hardcode_direct_GCJ=yes
16287 # hardcode_minus_L: Not really in the search PATH,
16288 # but as the default location of the library.
16289 hardcode_minus_L_GCJ=yes
16290 export_dynamic_flag_spec_GCJ='${wl}-E'
16294 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16295 case "$host_cpu" in
16297 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16300 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16304 case "$host_cpu" in
16306 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16309 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16313 if test "$with_gnu_ld" = no; then
16314 case "$host_cpu" in
16316 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16317 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16318 hardcode_libdir_separator_GCJ=:
16319 hardcode_direct_GCJ=no
16320 hardcode_shlibpath_var_GCJ=no
16323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324 hardcode_direct_GCJ=no
16325 hardcode_shlibpath_var_GCJ=no
16327 # hardcode_minus_L: Not really in the search PATH,
16328 # but as the default location of the library.
16329 hardcode_minus_L_GCJ=yes
16332 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16333 hardcode_libdir_separator_GCJ=:
16334 hardcode_direct_GCJ=yes
16335 export_dynamic_flag_spec_GCJ='${wl}-E'
16337 # hardcode_minus_L: Not really in the search PATH,
16338 # but as the default location of the library.
16339 hardcode_minus_L_GCJ=yes
16345 irix5* | irix6* | nonstopux*)
16346 if test "$GCC" = yes; then
16347 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'
16349 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'
16350 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16352 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16353 hardcode_libdir_separator_GCJ=:
16354 link_all_deplibs_GCJ=yes
16358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16359 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16361 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16363 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16364 hardcode_direct_GCJ=yes
16365 hardcode_shlibpath_var_GCJ=no
16369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_direct_GCJ=yes
16371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16372 hardcode_libdir_separator_GCJ=:
16373 hardcode_shlibpath_var_GCJ=no
16377 hardcode_direct_GCJ=yes
16378 hardcode_shlibpath_var_GCJ=no
16379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16380 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16382 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16383 export_dynamic_flag_spec_GCJ='${wl}-E'
16386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16387 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16388 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16391 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400 hardcode_minus_L_GCJ=yes
16401 allow_undefined_flag_GCJ=unsupported
16402 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'
16403 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16407 if test "$GCC" = yes; then
16408 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16409 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'
16411 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16412 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'
16414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16415 hardcode_libdir_separator_GCJ=:
16418 osf4* | osf5*) # as osf3* with the addition of -msym flag
16419 if test "$GCC" = yes; then
16420 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16421 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'
16422 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16424 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16425 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'
16426 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~
16427 $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'
16429 # Both c and cxx compiler support -rpath directly
16430 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16432 hardcode_libdir_separator_GCJ=:
16436 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_shlibpath_var_GCJ=no
16438 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16439 runpath_var=LD_RUN_PATH
16440 hardcode_runpath_var=yes
16444 no_undefined_flag_GCJ=' -z text'
16445 if test "$GCC" = yes; then
16446 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16448 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16450 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16452 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16454 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16455 hardcode_shlibpath_var_GCJ=no
16457 solaris2.[0-5] | solaris2.[0-5].*) ;;
16458 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16459 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16461 link_all_deplibs_GCJ=yes
16465 if test "x$host_vendor" = xsequent; then
16466 # Use $CC to link under sequent, because it throws in some extra .o
16467 # files that make .init and .fini sections work.
16468 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16470 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16473 hardcode_direct_GCJ=yes
16474 hardcode_minus_L_GCJ=yes
16475 hardcode_shlibpath_var_GCJ=no
16479 case $host_vendor in
16481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16482 hardcode_direct_GCJ=yes # is this really true???
16485 ## LD is ld it makes a PLAMLIB
16486 ## CC just makes a GrossModule.
16487 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16488 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16489 hardcode_direct_GCJ=no
16492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16496 runpath_var='LD_RUN_PATH'
16497 hardcode_shlibpath_var_GCJ=no
16501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502 hardcode_shlibpath_var_GCJ=no
16503 export_dynamic_flag_spec_GCJ='-Bexport'
16507 if test -d /usr/nec; then
16508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509 hardcode_shlibpath_var_GCJ=no
16510 runpath_var=LD_RUN_PATH
16511 hardcode_runpath_var=yes
16517 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16518 hardcode_direct_GCJ=yes
16519 hardcode_minus_L_GCJ=no
16520 hardcode_shlibpath_var_GCJ=no
16521 hardcode_runpath_var=yes
16522 runpath_var=LD_RUN_PATH
16525 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16526 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16527 if test "$GCC" = yes; then
16528 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16530 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16532 runpath_var='LD_RUN_PATH'
16533 hardcode_shlibpath_var_GCJ=no
16537 no_undefined_flag_GCJ=' -z text'
16538 # $CC -shared without GNU ld will not create a library from C++
16539 # object files and a static libstdc++, better avoid it by now
16540 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16543 hardcode_libdir_flag_spec_GCJ=
16544 hardcode_shlibpath_var_GCJ=no
16545 runpath_var='LD_RUN_PATH'
16549 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16551 hardcode_shlibpath_var_GCJ=no
16560 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16561 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16562 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565 if test "$GCC" = yes; then
16566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570 # Do we need to explicitly link libc?
16572 case "x$archive_cmds_need_lc_GCJ" in
16574 # Assume -lc should be added
16575 archive_cmds_need_lc_GCJ=yes
16577 if test "$enable_shared" = yes && test "$GCC" = yes; then
16578 case $archive_cmds_GCJ in
16580 # FIXME: we may have to deal with multi-command sequences.
16583 # Test whether the compiler implicitly links with -lc since on some
16584 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16585 # to ld, don't add -lc before -lgcc.
16586 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16587 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } 2>conftest.err; then
16598 libobjs=conftest.$ac_objext
16600 wl=$lt_prog_compiler_wl_GCJ
16606 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16607 allow_undefined_flag_GCJ=
16608 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16609 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }
16614 archive_cmds_need_lc_GCJ=no
16616 archive_cmds_need_lc_GCJ=yes
16618 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16620 cat conftest.err 1>&5
16623 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16624 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16631 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16632 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16633 library_names_spec=
16634 libname_spec='lib$name'
16638 postuninstall_cmds=
16642 shlibpath_overrides_runpath=unknown
16644 dynamic_linker="$host_os ld.so"
16645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16646 if test "$GCC" = yes; then
16647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16649 # if the path contains ";" then we assume it to be the separator
16650 # otherwise default to the standard path separator (i.e. ":") - it is
16651 # assumed that no part of a normal pathname contains ";" but that should
16652 # okay in the real world where ";" in dirpaths is itself problematic.
16653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16660 need_lib_prefix=unknown
16661 hardcode_into_libs=no
16663 # when you set need_version to no, make sure it does not cause -set_version
16664 # flags to be left without arguments
16665 need_version=unknown
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16671 shlibpath_var=LIBPATH
16673 # AIX 3 has no versioning support, so we append a major version to the name.
16674 soname_spec='${libname}${release}${shared_ext}$major'
16681 hardcode_into_libs=yes
16682 if test "$host_cpu" = ia64; then
16683 # AIX 5 supports IA64
16684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16687 # With GCC up to 2.95.x, collect2 would create an import file
16688 # for dependence libraries. The import file would start with
16689 # the line `#! .'. This would cause the generated library to
16690 # depend on `.', always an invalid library. This was fixed in
16691 # development snapshots of GCC prior to 3.0.
16693 aix4 | aix4.[01] | aix4.[01].*)
16694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16699 can_build_shared=no
16703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16704 # soname into executable. Probably we can add versioning support to
16705 # collect2, so additional links can be useful in future.
16706 if test "$aix_use_runtimelinking" = yes; then
16707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16708 # instead of lib<name>.a to let people know that these are not
16709 # typical AIX shared libraries.
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16712 # We preserve .a as extension for shared libraries through AIX4.2
16713 # and later when we are not doing run time linking.
16714 library_names_spec='${libname}${release}.a $libname.a'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LIBPATH
16722 library_names_spec='$libname.ixlibrary $libname.a'
16723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16724 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16728 library_names_spec='${libname}${shared_ext}'
16729 dynamic_linker="$host_os ld.so"
16730 shlibpath_var=LIBRARY_PATH
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16742 # the default ld.so.conf also contains /usr/contrib/lib and
16743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16744 # libtool to hard-code these into programs
16747 cygwin* | mingw* | pw32*)
16748 version_type=windows
16753 case $GCC,$host_os in
16754 yes,cygwin* | yes,mingw* | yes,pw32*)
16755 library_names_spec='$libname.dll.a'
16756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16757 postinstall_cmds='base_file=`basename \${file}`~
16758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16759 dldir=$destdir/`dirname \$dlpath`~
16760 test -d \$dldir || mkdir -p \$dldir~
16761 $install_prog $dir/$dlname \$dldir/$dlname'
16762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16763 dlpath=$dir/\$dldll~
16765 shlibpath_overrides_runpath=yes
16769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16774 # MinGW DLLs use traditional 'lib' prefix
16775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16778 # It is most probably a Windows format PATH printed by
16779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16780 # path with ; separators, and with drive letters. We can handle the
16781 # drive letters (cygwin fileutils understands them), so leave them,
16782 # especially as we might pass files found there to a mingw objdump,
16783 # which wouldn't understand a cygwinified path. Ahh.
16784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16790 # pw32 DLLs use 'pw' prefix rather than 'lib'
16791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16800 dynamic_linker='Win32 ld.exe'
16801 # FIXME: first we should search . and the directory the executable is in
16805 darwin* | rhapsody*)
16806 dynamic_linker="$host_os dyld"
16807 version_type=darwin
16810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16811 soname_spec='${libname}${release}${major}$shared_ext'
16812 shlibpath_overrides_runpath=yes
16813 shlibpath_var=DYLD_LIBRARY_PATH
16814 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16815 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16816 if test "$GCC" = yes; then
16817 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16819 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 shlibpath_var=LD_LIBRARY_PATH
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=no
16845 hardcode_into_libs=yes
16846 dynamic_linker='GNU ld.so'
16850 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16851 version_type=freebsd-$objformat
16852 case $version_type in
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16863 shlibpath_var=LD_LIBRARY_PATH
16866 shlibpath_overrides_runpath=yes
16868 freebsd3.01* | freebsdelf3.01*)
16869 shlibpath_overrides_runpath=yes
16870 hardcode_into_libs=yes
16873 shlibpath_overrides_runpath=no
16874 hardcode_into_libs=yes
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 shlibpath_var=LD_LIBRARY_PATH
16886 hardcode_into_libs=yes
16889 hpux9* | hpux10* | hpux11*)
16890 # Give a soname corresponding to the major version so that dld.sl refuses to
16891 # link against other versions.
16895 case "$host_cpu" in
16898 hardcode_into_libs=yes
16899 dynamic_linker="$host_os dld.so"
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 if test "X$HPUX_IA64_MODE" = X32; then
16905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16913 hardcode_into_libs=yes
16914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16924 dynamic_linker="$host_os dld.sl"
16925 shlibpath_var=SHLIB_PATH
16926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16932 postinstall_cmds='chmod 555 $lib'
16935 irix5* | irix6* | nonstopux*)
16937 nonstopux*) version_type=nonstopux ;;
16939 if test "$lt_cv_prog_gnu_ld" = yes; then
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16950 irix5* | nonstopux*)
16951 libsuff= shlibsuff=
16954 case $LD in # libtool.m4 will add one of these switches to LD
16955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16956 libsuff= shlibsuff= libmagic=32-bit;;
16957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16958 libsuff=32 shlibsuff=N32 libmagic=N32;;
16959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16961 *) libsuff= shlibsuff= libmagic=never-match;;
16965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16966 shlibpath_overrides_runpath=no
16967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16969 hardcode_into_libs=yes
16972 # No shared lib support for Linux oldld, aout, or coff.
16973 linux*oldld* | linux*aout* | linux*coff*)
16977 # This must be Linux ELF.
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=no
16987 # This implies no fast_install, which is unacceptable.
16988 # Some rework will be needed to allow for fast_install
16989 # before this can be enabled.
16990 hardcode_into_libs=yes
16992 # Append ld.so.conf contents to the search path
16993 if test -f /etc/ld.so.conf; then
16994 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16998 # We used to test for /lib/ld.so.1 and disable shared libraries on
16999 # powerpc, because MkLinux only supported shared libraries with the
17000 # GNU dynamic linker. Since this was broken with cross compilers,
17001 # most powerpc-linux boxes support dynamic linking these days and
17002 # people can always --disable-shared, the test was removed, and we
17003 # assume the GNU/Linux dynamic linker is in use.
17004 dynamic_linker='GNU/Linux ld.so'
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 shlibpath_overrides_runpath=no
17015 hardcode_into_libs=yes
17016 dynamic_linker='GNU ld.so'
17023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17026 dynamic_linker='NetBSD (a.out) ld.so'
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17029 soname_spec='${libname}${release}${shared_ext}$major'
17030 dynamic_linker='NetBSD ld.elf_so'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes
17034 hardcode_into_libs=yes
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=yes
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17063 openbsd2.[89] | openbsd2.[89].*)
17064 shlibpath_overrides_runpath=no
17067 shlibpath_overrides_runpath=yes
17071 shlibpath_overrides_runpath=yes
17076 libname_spec='$name'
17079 library_names_spec='$libname${shared_ext} $libname.a'
17080 dynamic_linker='OS/2 ld.exe'
17081 shlibpath_var=LIBPATH
17084 osf3* | osf4* | osf5*)
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 shlibpath_var=LD_LIBRARY_PATH
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 # ldd complains unless libraries are executable
17112 postinstall_cmds='chmod +x $lib'
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 if test "$with_gnu_ld" = yes; then
17127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 case $host_vendor in
17134 shlibpath_overrides_runpath=no
17136 export_dynamic_flag_spec='${wl}-Blargedynsym'
17137 runpath_var=LD_RUN_PATH
17145 shlibpath_overrides_runpath=no
17146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17152 if test -d /usr/nec ;then
17154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17155 soname_spec='$libname${shared_ext}.$major'
17156 shlibpath_var=LD_LIBRARY_PATH
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 shlibpath_var=LD_LIBRARY_PATH
17171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17172 echo "${ECHO_T}$dynamic_linker" >&6
17173 test "$dynamic_linker" = no && can_build_shared=no
17175 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17176 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17177 hardcode_action_GCJ=
17178 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17179 test -n "$runpath_var_GCJ" || \
17180 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17182 # We can hardcode non-existant directories.
17183 if test "$hardcode_direct_GCJ" != no &&
17184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17185 # have to relink, otherwise we might link with an installed library
17186 # when we should be linking with a yet-to-be-installed one
17187 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17188 test "$hardcode_minus_L_GCJ" != no; then
17189 # Linking always hardcodes the temporary library directory.
17190 hardcode_action_GCJ=relink
17192 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17193 hardcode_action_GCJ=immediate
17196 # We cannot hardcode anything, or else we can only hardcode existing
17198 hardcode_action_GCJ=unsupported
17200 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17201 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17203 if test "$hardcode_action_GCJ" = relink; then
17204 # Fast installation is not supported
17205 enable_fast_install=no
17206 elif test "$shlibpath_overrides_runpath" = yes ||
17207 test "$enable_shared" = no; then
17208 # Fast installation is not necessary
17209 enable_fast_install=needless
17214 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17215 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17216 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17217 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17218 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17219 echo "$as_me:$LINENO: result: yes" >&5
17220 echo "${ECHO_T}yes" >&6
17222 # FIXME - insert some real tests, host_os isn't really good enough
17225 if test -n "$STRIP" ; then
17226 striplib="$STRIP -x"
17227 echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6
17230 echo "$as_me:$LINENO: result: no" >&5
17231 echo "${ECHO_T}no" >&6
17235 echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17241 if test "x$enable_dlopen" != xyes; then
17242 enable_dlopen=unknown
17243 enable_dlopen_self=unknown
17244 enable_dlopen_self_static=unknown
17251 lt_cv_dlopen="load_add_on"
17253 lt_cv_dlopen_self=yes
17257 lt_cv_dlopen="LoadLibrary"
17262 lt_cv_dlopen="dlopen"
17267 # if libdl is installed we need to link against it
17268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 ac_check_lib_save_LIBS=$LIBS
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any gcc2 internal prototype to avoid an error. */
17286 /* We use char because int might match the return type of a gcc2
17287 builtin and then its argument prototype would still apply. */
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299 (eval $ac_link) 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag"
17307 || test ! -s conftest.err'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest$ac_exeext'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_lib_dl_dlopen=yes
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_cv_lib_dl_dlopen=no
17326 rm -f conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17332 if test $ac_cv_lib_dl_dlopen = yes; then
17333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17336 lt_cv_dlopen="dyld"
17338 lt_cv_dlopen_self=yes
17345 echo "$as_me:$LINENO: checking for shl_load" >&5
17346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17347 if test "${ac_cv_func_shl_load+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17358 #define shl_load innocuous_shl_load
17360 /* System header to define __stub macros and hopefully few prototypes,
17361 which can conflict with char shl_load (); below.
17362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17363 <limits.h> exists even on freestanding compilers. */
17366 # include <limits.h>
17368 # include <assert.h>
17373 /* Override any gcc2 internal prototype to avoid an error. */
17378 /* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17381 /* The GNU C library defines this for functions which it implements
17382 to always fail with ENOSYS. Some functions are actually named
17383 something starting with __ and the normal name is an alias. */
17384 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17387 char (*f) () = shl_load;
17396 return f != shl_load;
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403 (eval $ac_link) 2>conftest.er1
17405 grep -v '^ *+' conftest.er1 >conftest.err
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag"
17411 || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_func_shl_load=yes
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ac_cv_func_shl_load=no
17430 rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17433 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17435 if test $ac_cv_func_shl_load = yes; then
17436 lt_cv_dlopen="shl_load"
17438 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 ac_check_lib_save_LIBS=$LIBS
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 /* Override any gcc2 internal prototype to avoid an error. */
17456 /* We use char because int might match the return type of a gcc2
17457 builtin and then its argument prototype would still apply. */
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469 (eval $ac_link) 2>conftest.er1
17471 grep -v '^ *+' conftest.er1 >conftest.err
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_dld_shl_load=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_cv_lib_dld_shl_load=no
17496 rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17502 if test $ac_cv_lib_dld_shl_load = yes; then
17503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17505 echo "$as_me:$LINENO: checking for dlopen" >&5
17506 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17507 if test "${ac_cv_func_dlopen+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 cat >conftest.$ac_ext <<_ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17518 #define dlopen innocuous_dlopen
17520 /* System header to define __stub macros and hopefully few prototypes,
17521 which can conflict with char dlopen (); below.
17522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523 <limits.h> exists even on freestanding compilers. */
17526 # include <limits.h>
17528 # include <assert.h>
17533 /* Override any gcc2 internal prototype to avoid an error. */
17538 /* We use char because int might match the return type of a gcc2
17539 builtin and then its argument prototype would still apply. */
17541 /* The GNU C library defines this for functions which it implements
17542 to always fail with ENOSYS. Some functions are actually named
17543 something starting with __ and the normal name is an alias. */
17544 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17547 char (*f) () = dlopen;
17556 return f != dlopen;
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563 (eval $ac_link) 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -z "$ac_c_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_func_dlopen=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_func_dlopen=no
17590 rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17593 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17594 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17595 if test $ac_cv_func_dlopen = yes; then
17596 lt_cv_dlopen="dlopen"
17598 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17599 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17600 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 ac_check_lib_save_LIBS=$LIBS
17605 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17612 /* Override any gcc2 internal prototype to avoid an error. */
17616 /* We use char because int might match the return type of a gcc2
17617 builtin and then its argument prototype would still apply. */
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>conftest.er1
17631 grep -v '^ *+' conftest.er1 >conftest.err
17633 cat conftest.err >&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } &&
17636 { ac_try='test -z "$ac_c_werror_flag"
17637 || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_lib_dl_dlopen=yes
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_cv_lib_dl_dlopen=no
17656 rm -f conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17662 if test $ac_cv_lib_dl_dlopen = yes; then
17663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17665 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17666 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17667 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 ac_check_lib_save_LIBS=$LIBS
17671 LIBS="-lsvld $LIBS"
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17679 /* Override any gcc2 internal prototype to avoid an error. */
17683 /* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696 (eval $ac_link) 2>conftest.er1
17698 grep -v '^ *+' conftest.er1 >conftest.err
17700 cat conftest.err >&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
17703 { ac_try='test -z "$ac_c_werror_flag"
17704 || test ! -s conftest.err'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_cv_lib_svld_dlopen=yes
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17721 ac_cv_lib_svld_dlopen=no
17723 rm -f conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
17725 LIBS=$ac_check_lib_save_LIBS
17727 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17728 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17729 if test $ac_cv_lib_svld_dlopen = yes; then
17730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17732 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17733 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 ac_check_lib_save_LIBS=$LIBS
17739 cat >conftest.$ac_ext <<_ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17746 /* Override any gcc2 internal prototype to avoid an error. */
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_lib_dld_dld_link=yes
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_cv_lib_dld_dld_link=no
17790 rm -f conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796 if test $ac_cv_lib_dld_dld_link = yes; then
17797 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17818 if test "x$lt_cv_dlopen" != xno; then
17824 case $lt_cv_dlopen in
17826 save_CPPFLAGS="$CPPFLAGS"
17827 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17829 save_LDFLAGS="$LDFLAGS"
17830 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17833 LIBS="$lt_cv_dlopen_libs $LIBS"
17835 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837 if test "${lt_cv_dlopen_self+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 if test "$cross_compiling" = yes; then :
17841 lt_cv_dlopen_self=cross
17843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844 lt_status=$lt_dlunknown
17845 cat > conftest.$ac_ext <<EOF
17846 #line 17846 "configure"
17847 #include "confdefs.h"
17856 # define LT_DLGLOBAL RTLD_GLOBAL
17859 # define LT_DLGLOBAL DL_GLOBAL
17861 # define LT_DLGLOBAL 0
17865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866 find out it does not work in some platform. */
17867 #ifndef LT_DLLAZY_OR_NOW
17869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17872 # define LT_DLLAZY_OR_NOW DL_LAZY
17875 # define LT_DLLAZY_OR_NOW RTLD_NOW
17878 # define LT_DLLAZY_OR_NOW DL_NOW
17880 # define LT_DLLAZY_OR_NOW 0
17888 extern "C" void exit (int);
17891 void fnord() { int i=42;}
17894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895 int status = $lt_dlunknown;
17899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901 /* dlclose (self); */
17907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908 (eval $ac_link) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912 (./conftest; exit; ) 2>/dev/null
17914 case x$lt_status in
17915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17920 # compilation failed
17921 lt_cv_dlopen_self=no
17928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17931 if test "x$lt_cv_dlopen_self" = xyes; then
17932 LDFLAGS="$LDFLAGS $link_static_flag"
17933 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935 if test "${lt_cv_dlopen_self_static+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 if test "$cross_compiling" = yes; then :
17939 lt_cv_dlopen_self_static=cross
17941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942 lt_status=$lt_dlunknown
17943 cat > conftest.$ac_ext <<EOF
17944 #line 17944 "configure"
17945 #include "confdefs.h"
17954 # define LT_DLGLOBAL RTLD_GLOBAL
17957 # define LT_DLGLOBAL DL_GLOBAL
17959 # define LT_DLGLOBAL 0
17963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964 find out it does not work in some platform. */
17965 #ifndef LT_DLLAZY_OR_NOW
17967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17970 # define LT_DLLAZY_OR_NOW DL_LAZY
17973 # define LT_DLLAZY_OR_NOW RTLD_NOW
17976 # define LT_DLLAZY_OR_NOW DL_NOW
17978 # define LT_DLLAZY_OR_NOW 0
17986 extern "C" void exit (int);
17989 void fnord() { int i=42;}
17992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993 int status = $lt_dlunknown;
17997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17998 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999 /* dlclose (self); */
18005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006 (eval $ac_link) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010 (./conftest; exit; ) 2>/dev/null
18012 case x$lt_status in
18013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18018 # compilation failed
18019 lt_cv_dlopen_self_static=no
18026 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18030 CPPFLAGS="$save_CPPFLAGS"
18031 LDFLAGS="$save_LDFLAGS"
18036 case $lt_cv_dlopen_self in
18037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038 *) enable_dlopen_self=unknown ;;
18041 case $lt_cv_dlopen_self_static in
18042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043 *) enable_dlopen_self_static=unknown ;;
18048 # The else clause should only fire when bootstrapping the
18049 # libtool distribution, otherwise you forgot to ship ltmain.sh
18050 # with your package, and you will get complaints that there are
18051 # no rules to generate ltmain.sh.
18052 if test -f "$ltmain"; then
18053 # See if we are running on zsh, and set the options which allow our commands through
18054 # without removal of \ escapes.
18055 if test -n "${ZSH_VERSION+set}" ; then
18056 setopt NO_GLOB_SUBST
18058 # Now quote all the things that may contain metacharacters while being
18059 # careful not to overquote the AC_SUBSTed values. We take copies of the
18060 # variables and quote the copies for generation of the libtool script.
18061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18065 deplibs_check_method reload_flag reload_cmds need_locks \
18066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18067 lt_cv_sys_global_symbol_to_c_name_address \
18068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18069 old_postinstall_cmds old_postuninstall_cmds \
18073 lt_prog_compiler_wl_GCJ \
18074 lt_prog_compiler_pic_GCJ \
18075 lt_prog_compiler_static_GCJ \
18076 lt_prog_compiler_no_builtin_flag_GCJ \
18077 export_dynamic_flag_spec_GCJ \
18078 thread_safe_flag_spec_GCJ \
18079 whole_archive_flag_spec_GCJ \
18080 enable_shared_with_static_runtimes_GCJ \
18081 old_archive_cmds_GCJ \
18082 old_archive_from_new_cmds_GCJ \
18083 predep_objects_GCJ \
18084 postdep_objects_GCJ \
18087 compiler_lib_search_path_GCJ \
18089 archive_expsym_cmds_GCJ \
18090 postinstall_cmds_GCJ \
18091 postuninstall_cmds_GCJ \
18092 old_archive_from_expsyms_cmds_GCJ \
18093 allow_undefined_flag_GCJ \
18094 no_undefined_flag_GCJ \
18095 export_symbols_cmds_GCJ \
18096 hardcode_libdir_flag_spec_GCJ \
18097 hardcode_libdir_flag_spec_ld_GCJ \
18098 hardcode_libdir_separator_GCJ \
18099 hardcode_automatic_GCJ \
18101 module_expsym_cmds_GCJ \
18102 lt_cv_prog_compiler_c_o_GCJ \
18103 exclude_expsyms_GCJ \
18104 include_expsyms_GCJ; do
18107 old_archive_cmds_GCJ | \
18108 old_archive_from_new_cmds_GCJ | \
18109 archive_cmds_GCJ | \
18110 archive_expsym_cmds_GCJ | \
18111 module_cmds_GCJ | \
18112 module_expsym_cmds_GCJ | \
18113 old_archive_from_expsyms_cmds_GCJ | \
18114 export_symbols_cmds_GCJ | \
18115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18116 postinstall_cmds | postuninstall_cmds | \
18117 old_postinstall_cmds | old_postuninstall_cmds | \
18118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18119 # Double-quote double-evaled strings.
18120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18129 *'\$0 --fallback-echo"')
18130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18136 cat <<__EOF__ >> "$cfgfile"
18137 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18139 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18141 # Shell to use when invoking shell scripts.
18144 # Whether or not to build shared libraries.
18145 build_libtool_libs=$enable_shared
18147 # Whether or not to build static libraries.
18148 build_old_libs=$enable_static
18150 # Whether or not to add -lc for building shared libraries.
18151 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18153 # Whether or not to disallow shared libs when runtime libs are static
18154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18156 # Whether or not to optimize for fast installation.
18157 fast_install=$enable_fast_install
18160 host_alias=$host_alias
18163 # An echo program that does not interpret backslashes.
18168 AR_FLAGS=$lt_AR_FLAGS
18173 # A language-specific compiler.
18174 CC=$lt_compiler_GCJ
18176 # Is the compiler the GNU C compiler?
18182 # The linker used to build libraries.
18185 # Whether we need hard or soft links.
18188 # A BSD-compatible nm program.
18191 # A symbol stripping program
18194 # Used to examine libraries when file_magic_cmd begins "file"
18195 MAGIC_CMD=$MAGIC_CMD
18197 # Used on cygwin: DLL creation program.
18200 # Used on cygwin: object dumper.
18203 # Used on cygwin: assembler.
18206 # The name of the directory that contains temporary libtool files.
18209 # How to create reloadable object files.
18210 reload_flag=$lt_reload_flag
18211 reload_cmds=$lt_reload_cmds
18213 # How to pass a linker flag through the compiler.
18214 wl=$lt_lt_prog_compiler_wl_GCJ
18216 # Object file suffix (normally "o").
18217 objext="$ac_objext"
18219 # Old archive suffix (normally "a").
18222 # Shared library suffix (normally ".so").
18223 shrext_cmds='$shrext_cmds'
18225 # Executable file suffix (normally "").
18228 # Additional compiler flags for building library objects.
18229 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18232 # What is the maximum length of a command?
18233 max_cmd_len=$lt_cv_sys_max_cmd_len
18235 # Does compiler simultaneously support -c and -o options?
18236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18238 # Must we lock files when doing compilation ?
18239 need_locks=$lt_need_locks
18241 # Do we need the lib prefix for modules?
18242 need_lib_prefix=$need_lib_prefix
18244 # Do we need a version for libraries?
18245 need_version=$need_version
18247 # Whether dlopen is supported.
18248 dlopen_support=$enable_dlopen
18250 # Whether dlopen of programs is supported.
18251 dlopen_self=$enable_dlopen_self
18253 # Whether dlopen of statically linked programs is supported.
18254 dlopen_self_static=$enable_dlopen_self_static
18256 # Compiler flag to prevent dynamic linking.
18257 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18259 # Compiler flag to turn off builtin functions.
18260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18262 # Compiler flag to allow reflexive dlopens.
18263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18265 # Compiler flag to generate shared objects directly from archives.
18266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18268 # Compiler flag to generate thread-safe objects.
18269 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18271 # Library versioning type.
18272 version_type=$version_type
18274 # Format of library name prefix.
18275 libname_spec=$lt_libname_spec
18277 # List of archive names. First name is the real one, the rest are links.
18278 # The last name is the one that the linker finds with -lNAME.
18279 library_names_spec=$lt_library_names_spec
18281 # The coded name of the library, if different from the real name.
18282 soname_spec=$lt_soname_spec
18284 # Commands used to build and install an old-style archive.
18286 old_archive_cmds=$lt_old_archive_cmds_GCJ
18287 old_postinstall_cmds=$lt_old_postinstall_cmds
18288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18290 # Create an old-style archive from a shared archive.
18291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18293 # Create a temporary old-style archive to link instead of a shared archive.
18294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18296 # Commands used to build and install a shared archive.
18297 archive_cmds=$lt_archive_cmds_GCJ
18298 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18299 postinstall_cmds=$lt_postinstall_cmds
18300 postuninstall_cmds=$lt_postuninstall_cmds
18302 # Commands used to build a loadable module (assumed same as above if empty)
18303 module_cmds=$lt_module_cmds_GCJ
18304 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18306 # Commands to strip libraries.
18307 old_striplib=$lt_old_striplib
18308 striplib=$lt_striplib
18310 # Dependencies to place before the objects being linked to create a
18312 predep_objects=$lt_predep_objects_GCJ
18314 # Dependencies to place after the objects being linked to create a
18316 postdep_objects=$lt_postdep_objects_GCJ
18318 # Dependencies to place before the objects being linked to create a
18320 predeps=$lt_predeps_GCJ
18322 # Dependencies to place after the objects being linked to create a
18324 postdeps=$lt_postdeps_GCJ
18326 # The library search path used internally by the compiler when linking
18327 # a shared library.
18328 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18330 # Method to check whether dependent libraries are shared objects.
18331 deplibs_check_method=$lt_deplibs_check_method
18333 # Command to use when deplibs_check_method == file_magic.
18334 file_magic_cmd=$lt_file_magic_cmd
18336 # Flag that allows shared libraries with undefined symbols to be built.
18337 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18339 # Flag that forces no undefined symbols.
18340 no_undefined_flag=$lt_no_undefined_flag_GCJ
18342 # Commands used to finish a libtool library installation in a directory.
18343 finish_cmds=$lt_finish_cmds
18345 # Same as above, but a single script fragment to be evaled but not shown.
18346 finish_eval=$lt_finish_eval
18348 # Take the output of nm and produce a listing of raw symbols and C names.
18349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18351 # Transform the output of nm in a proper C declaration
18352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18354 # Transform the output of nm in a C name address pair
18355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18357 # This is the shared library runtime path variable.
18358 runpath_var=$runpath_var
18360 # This is the shared library path variable.
18361 shlibpath_var=$shlibpath_var
18363 # Is shlibpath searched before the hard-coded library search path?
18364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18366 # How to hardcode a shared library path into an executable.
18367 hardcode_action=$hardcode_action_GCJ
18369 # Whether we should hardcode library paths into libraries.
18370 hardcode_into_libs=$hardcode_into_libs
18372 # Flag to hardcode \$libdir into a binary during linking.
18373 # This must work even if \$libdir does not exist.
18374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18376 # If ld is used when linking, flag to hardcode \$libdir into
18377 # a binary during linking. This must work even if \$libdir does
18379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18381 # Whether we need a single -rpath flag with a separated argument.
18382 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18384 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18385 # resulting binary.
18386 hardcode_direct=$hardcode_direct_GCJ
18388 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18389 # resulting binary.
18390 hardcode_minus_L=$hardcode_minus_L_GCJ
18392 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18393 # the resulting binary.
18394 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18396 # Set to yes if building a shared library automatically hardcodes DIR into the library
18397 # and all subsequent libraries and executables linked against it.
18398 hardcode_automatic=$hardcode_automatic_GCJ
18400 # Variables whose values should be saved in libtool wrapper scripts and
18401 # restored at relink time.
18402 variables_saved_for_relink="$variables_saved_for_relink"
18404 # Whether libtool must link a program against all its dependency libraries.
18405 link_all_deplibs=$link_all_deplibs_GCJ
18407 # Compile-time system search path for libraries
18408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18410 # Run-time system search path for libraries
18411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18413 # Fix the shell variable \$srcfile for the compiler.
18414 fix_srcfile_path="$fix_srcfile_path_GCJ"
18416 # Set to yes if exported symbols are required.
18417 always_export_symbols=$always_export_symbols_GCJ
18419 # The commands to list exported symbols.
18420 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18422 # The commands to extract the exported symbol list from a shared archive.
18423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18425 # Symbols that should not be listed in the preloaded symbols.
18426 exclude_expsyms=$lt_exclude_expsyms_GCJ
18428 # Symbols that must always be exported.
18429 include_expsyms=$lt_include_expsyms_GCJ
18431 # ### END LIBTOOL TAG CONFIG: $tagname
18437 # If there is no Makefile yet, we rely on a make rule to execute
18438 # `config.status --recheck' to rerun these tests and create the
18439 # libtool script then.
18440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18441 if test -f "$ltmain_in"; then
18442 test -f Makefile && make "$ltmain"
18448 ac_cpp='$CPP $CPPFLAGS'
18449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18462 ac_cpp='$CPP $CPPFLAGS'
18463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18468 # Source file extension for RC test sources.
18471 # Object file extension for compiled RC test sources.
18475 # Code to be used in simple compile tests
18476 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18478 # Code to be used in simple link tests
18479 lt_simple_link_test_code="$lt_simple_compile_test_code"
18481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18483 # If no C compiler was specified, use CC.
18486 # Allow CC to be a program name with arguments.
18490 # Allow CC to be a program name with arguments.
18495 lt_cv_prog_compiler_c_o_RC=yes
18497 # The else clause should only fire when bootstrapping the
18498 # libtool distribution, otherwise you forgot to ship ltmain.sh
18499 # with your package, and you will get complaints that there are
18500 # no rules to generate ltmain.sh.
18501 if test -f "$ltmain"; then
18502 # See if we are running on zsh, and set the options which allow our commands through
18503 # without removal of \ escapes.
18504 if test -n "${ZSH_VERSION+set}" ; then
18505 setopt NO_GLOB_SUBST
18507 # Now quote all the things that may contain metacharacters while being
18508 # careful not to overquote the AC_SUBSTed values. We take copies of the
18509 # variables and quote the copies for generation of the libtool script.
18510 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18512 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18513 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18514 deplibs_check_method reload_flag reload_cmds need_locks \
18515 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18516 lt_cv_sys_global_symbol_to_c_name_address \
18517 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18518 old_postinstall_cmds old_postuninstall_cmds \
18522 lt_prog_compiler_wl_RC \
18523 lt_prog_compiler_pic_RC \
18524 lt_prog_compiler_static_RC \
18525 lt_prog_compiler_no_builtin_flag_RC \
18526 export_dynamic_flag_spec_RC \
18527 thread_safe_flag_spec_RC \
18528 whole_archive_flag_spec_RC \
18529 enable_shared_with_static_runtimes_RC \
18530 old_archive_cmds_RC \
18531 old_archive_from_new_cmds_RC \
18532 predep_objects_RC \
18533 postdep_objects_RC \
18536 compiler_lib_search_path_RC \
18538 archive_expsym_cmds_RC \
18539 postinstall_cmds_RC \
18540 postuninstall_cmds_RC \
18541 old_archive_from_expsyms_cmds_RC \
18542 allow_undefined_flag_RC \
18543 no_undefined_flag_RC \
18544 export_symbols_cmds_RC \
18545 hardcode_libdir_flag_spec_RC \
18546 hardcode_libdir_flag_spec_ld_RC \
18547 hardcode_libdir_separator_RC \
18548 hardcode_automatic_RC \
18550 module_expsym_cmds_RC \
18551 lt_cv_prog_compiler_c_o_RC \
18552 exclude_expsyms_RC \
18553 include_expsyms_RC; do
18556 old_archive_cmds_RC | \
18557 old_archive_from_new_cmds_RC | \
18558 archive_cmds_RC | \
18559 archive_expsym_cmds_RC | \
18561 module_expsym_cmds_RC | \
18562 old_archive_from_expsyms_cmds_RC | \
18563 export_symbols_cmds_RC | \
18564 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18565 postinstall_cmds | postuninstall_cmds | \
18566 old_postinstall_cmds | old_postuninstall_cmds | \
18567 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18568 # Double-quote double-evaled strings.
18569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18578 *'\$0 --fallback-echo"')
18579 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18585 cat <<__EOF__ >> "$cfgfile"
18586 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18588 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18590 # Shell to use when invoking shell scripts.
18593 # Whether or not to build shared libraries.
18594 build_libtool_libs=$enable_shared
18596 # Whether or not to build static libraries.
18597 build_old_libs=$enable_static
18599 # Whether or not to add -lc for building shared libraries.
18600 build_libtool_need_lc=$archive_cmds_need_lc_RC
18602 # Whether or not to disallow shared libs when runtime libs are static
18603 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18605 # Whether or not to optimize for fast installation.
18606 fast_install=$enable_fast_install
18609 host_alias=$host_alias
18612 # An echo program that does not interpret backslashes.
18617 AR_FLAGS=$lt_AR_FLAGS
18622 # A language-specific compiler.
18625 # Is the compiler the GNU C compiler?
18631 # The linker used to build libraries.
18634 # Whether we need hard or soft links.
18637 # A BSD-compatible nm program.
18640 # A symbol stripping program
18643 # Used to examine libraries when file_magic_cmd begins "file"
18644 MAGIC_CMD=$MAGIC_CMD
18646 # Used on cygwin: DLL creation program.
18649 # Used on cygwin: object dumper.
18652 # Used on cygwin: assembler.
18655 # The name of the directory that contains temporary libtool files.
18658 # How to create reloadable object files.
18659 reload_flag=$lt_reload_flag
18660 reload_cmds=$lt_reload_cmds
18662 # How to pass a linker flag through the compiler.
18663 wl=$lt_lt_prog_compiler_wl_RC
18665 # Object file suffix (normally "o").
18666 objext="$ac_objext"
18668 # Old archive suffix (normally "a").
18671 # Shared library suffix (normally ".so").
18672 shrext_cmds='$shrext_cmds'
18674 # Executable file suffix (normally "").
18677 # Additional compiler flags for building library objects.
18678 pic_flag=$lt_lt_prog_compiler_pic_RC
18681 # What is the maximum length of a command?
18682 max_cmd_len=$lt_cv_sys_max_cmd_len
18684 # Does compiler simultaneously support -c and -o options?
18685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18687 # Must we lock files when doing compilation ?
18688 need_locks=$lt_need_locks
18690 # Do we need the lib prefix for modules?
18691 need_lib_prefix=$need_lib_prefix
18693 # Do we need a version for libraries?
18694 need_version=$need_version
18696 # Whether dlopen is supported.
18697 dlopen_support=$enable_dlopen
18699 # Whether dlopen of programs is supported.
18700 dlopen_self=$enable_dlopen_self
18702 # Whether dlopen of statically linked programs is supported.
18703 dlopen_self_static=$enable_dlopen_self_static
18705 # Compiler flag to prevent dynamic linking.
18706 link_static_flag=$lt_lt_prog_compiler_static_RC
18708 # Compiler flag to turn off builtin functions.
18709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18711 # Compiler flag to allow reflexive dlopens.
18712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18714 # Compiler flag to generate shared objects directly from archives.
18715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18717 # Compiler flag to generate thread-safe objects.
18718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18720 # Library versioning type.
18721 version_type=$version_type
18723 # Format of library name prefix.
18724 libname_spec=$lt_libname_spec
18726 # List of archive names. First name is the real one, the rest are links.
18727 # The last name is the one that the linker finds with -lNAME.
18728 library_names_spec=$lt_library_names_spec
18730 # The coded name of the library, if different from the real name.
18731 soname_spec=$lt_soname_spec
18733 # Commands used to build and install an old-style archive.
18735 old_archive_cmds=$lt_old_archive_cmds_RC
18736 old_postinstall_cmds=$lt_old_postinstall_cmds
18737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18739 # Create an old-style archive from a shared archive.
18740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18742 # Create a temporary old-style archive to link instead of a shared archive.
18743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18745 # Commands used to build and install a shared archive.
18746 archive_cmds=$lt_archive_cmds_RC
18747 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18748 postinstall_cmds=$lt_postinstall_cmds
18749 postuninstall_cmds=$lt_postuninstall_cmds
18751 # Commands used to build a loadable module (assumed same as above if empty)
18752 module_cmds=$lt_module_cmds_RC
18753 module_expsym_cmds=$lt_module_expsym_cmds_RC
18755 # Commands to strip libraries.
18756 old_striplib=$lt_old_striplib
18757 striplib=$lt_striplib
18759 # Dependencies to place before the objects being linked to create a
18761 predep_objects=$lt_predep_objects_RC
18763 # Dependencies to place after the objects being linked to create a
18765 postdep_objects=$lt_postdep_objects_RC
18767 # Dependencies to place before the objects being linked to create a
18769 predeps=$lt_predeps_RC
18771 # Dependencies to place after the objects being linked to create a
18773 postdeps=$lt_postdeps_RC
18775 # The library search path used internally by the compiler when linking
18776 # a shared library.
18777 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18779 # Method to check whether dependent libraries are shared objects.
18780 deplibs_check_method=$lt_deplibs_check_method
18782 # Command to use when deplibs_check_method == file_magic.
18783 file_magic_cmd=$lt_file_magic_cmd
18785 # Flag that allows shared libraries with undefined symbols to be built.
18786 allow_undefined_flag=$lt_allow_undefined_flag_RC
18788 # Flag that forces no undefined symbols.
18789 no_undefined_flag=$lt_no_undefined_flag_RC
18791 # Commands used to finish a libtool library installation in a directory.
18792 finish_cmds=$lt_finish_cmds
18794 # Same as above, but a single script fragment to be evaled but not shown.
18795 finish_eval=$lt_finish_eval
18797 # Take the output of nm and produce a listing of raw symbols and C names.
18798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18800 # Transform the output of nm in a proper C declaration
18801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18803 # Transform the output of nm in a C name address pair
18804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18806 # This is the shared library runtime path variable.
18807 runpath_var=$runpath_var
18809 # This is the shared library path variable.
18810 shlibpath_var=$shlibpath_var
18812 # Is shlibpath searched before the hard-coded library search path?
18813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18815 # How to hardcode a shared library path into an executable.
18816 hardcode_action=$hardcode_action_RC
18818 # Whether we should hardcode library paths into libraries.
18819 hardcode_into_libs=$hardcode_into_libs
18821 # Flag to hardcode \$libdir into a binary during linking.
18822 # This must work even if \$libdir does not exist.
18823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18825 # If ld is used when linking, flag to hardcode \$libdir into
18826 # a binary during linking. This must work even if \$libdir does
18828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18830 # Whether we need a single -rpath flag with a separated argument.
18831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18834 # resulting binary.
18835 hardcode_direct=$hardcode_direct_RC
18837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18838 # resulting binary.
18839 hardcode_minus_L=$hardcode_minus_L_RC
18841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18842 # the resulting binary.
18843 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18845 # Set to yes if building a shared library automatically hardcodes DIR into the library
18846 # and all subsequent libraries and executables linked against it.
18847 hardcode_automatic=$hardcode_automatic_RC
18849 # Variables whose values should be saved in libtool wrapper scripts and
18850 # restored at relink time.
18851 variables_saved_for_relink="$variables_saved_for_relink"
18853 # Whether libtool must link a program against all its dependency libraries.
18854 link_all_deplibs=$link_all_deplibs_RC
18856 # Compile-time system search path for libraries
18857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18859 # Run-time system search path for libraries
18860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18862 # Fix the shell variable \$srcfile for the compiler.
18863 fix_srcfile_path="$fix_srcfile_path_RC"
18865 # Set to yes if exported symbols are required.
18866 always_export_symbols=$always_export_symbols_RC
18868 # The commands to list exported symbols.
18869 export_symbols_cmds=$lt_export_symbols_cmds_RC
18871 # The commands to extract the exported symbol list from a shared archive.
18872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18874 # Symbols that should not be listed in the preloaded symbols.
18875 exclude_expsyms=$lt_exclude_expsyms_RC
18877 # Symbols that must always be exported.
18878 include_expsyms=$lt_include_expsyms_RC
18880 # ### END LIBTOOL TAG CONFIG: $tagname
18886 # If there is no Makefile yet, we rely on a make rule to execute
18887 # `config.status --recheck' to rerun these tests and create the
18888 # libtool script then.
18889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18890 if test -f "$ltmain_in"; then
18891 test -f Makefile && make "$ltmain"
18897 ac_cpp='$CPP $CPPFLAGS'
18898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18907 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18908 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18909 { (exit 1); exit 1; }; }
18913 # Append the new tag name to the list of available tags.
18914 if test -n "$tagname" ; then
18915 available_tags="$available_tags $tagname"
18921 # Now substitute the updated list of available tags.
18922 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18923 mv "${ofile}T" "$ofile"
18927 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18928 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18929 { (exit 1); exit 1; }; }
18935 # This can be used to rebuild libtool when needed
18936 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18938 # Always use our own libtool.
18939 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18941 # Prevent multiple expansion
18962 # Extract the first word of "tar", so it can be a program name with args.
18963 set dummy tar; ac_word=$2
18964 echo "$as_me:$LINENO: checking for $ac_word" >&5
18965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18966 if test "${ac_cv_path_TAR+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975 for as_dir in $PATH
18978 test -z "$as_dir" && as_dir=.
18979 for ac_exec_ext in '' $ac_executable_extensions; do
18980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18981 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18988 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18992 TAR=$ac_cv_path_TAR
18994 if test -n "$TAR"; then
18995 echo "$as_me:$LINENO: result: $TAR" >&5
18996 echo "${ECHO_T}$TAR" >&6
18998 echo "$as_me:$LINENO: result: no" >&5
18999 echo "${ECHO_T}no" >&6
19003 # Extract the first word of "dot", so it can be a program name with args.
19004 set dummy dot; ac_word=$2
19005 echo "$as_me:$LINENO: checking for $ac_word" >&5
19006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19007 if test "${ac_cv_path_DOT+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19016 for as_dir in $PATH
19019 test -z "$as_dir" && as_dir=.
19020 for ac_exec_ext in '' $ac_executable_extensions; do
19021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19022 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19029 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
19033 DOT=$ac_cv_path_DOT
19035 if test -n "$DOT"; then
19036 echo "$as_me:$LINENO: result: $DOT" >&5
19037 echo "${ECHO_T}$DOT" >&6
19039 echo "$as_me:$LINENO: result: no" >&5
19040 echo "${ECHO_T}no" >&6
19043 # Extract the first word of "etags", so it can be a program name with args.
19044 set dummy etags; ac_word=$2
19045 echo "$as_me:$LINENO: checking for $ac_word" >&5
19046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19047 if test "${ac_cv_path_ETAGS+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19056 for as_dir in $PATH
19059 test -z "$as_dir" && as_dir=.
19060 for ac_exec_ext in '' $ac_executable_extensions; do
19061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19062 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19069 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19073 ETAGS=$ac_cv_path_ETAGS
19075 if test -n "$ETAGS"; then
19076 echo "$as_me:$LINENO: result: $ETAGS" >&5
19077 echo "${ECHO_T}$ETAGS" >&6
19079 echo "$as_me:$LINENO: result: no" >&5
19080 echo "${ECHO_T}no" >&6
19083 etags_version=`$ETAGS --version 2>&1`
19084 case "$etags_version" in
19085 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19086 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19087 *) ETAGSFLAGS="" ;;
19089 ETAGSFLAGS=$ETAGSFLAGS
19091 # Extract the first word of "python", so it can be a program name with args.
19092 set dummy python; ac_word=$2
19093 echo "$as_me:$LINENO: checking for $ac_word" >&5
19094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19095 if test "${ac_cv_path_PYTHON+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19104 for as_dir in $PATH
19107 test -z "$as_dir" && as_dir=.
19108 for ac_exec_ext in '' $ac_executable_extensions; do
19109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19110 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19117 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19121 PYTHON=$ac_cv_path_PYTHON
19123 if test -n "$PYTHON"; then
19124 echo "$as_me:$LINENO: result: $PYTHON" >&5
19125 echo "${ECHO_T}$PYTHON" >&6
19127 echo "$as_me:$LINENO: result: no" >&5
19128 echo "${ECHO_T}no" >&6
19131 if test "$PYTHON" = "false" ; then
19132 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19133 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19135 # Extract the first word of "qmtest", so it can be a program name with args.
19136 set dummy qmtest; ac_word=$2
19137 echo "$as_me:$LINENO: checking for $ac_word" >&5
19138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19139 if test "${ac_cv_path_QMTEST+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19148 for as_dir in $PATH
19151 test -z "$as_dir" && as_dir=.
19152 for ac_exec_ext in '' $ac_executable_extensions; do
19153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19154 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19161 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19165 QMTEST=$ac_cv_path_QMTEST
19167 if test -n "$QMTEST"; then
19168 echo "$as_me:$LINENO: result: $QMTEST" >&5
19169 echo "${ECHO_T}$QMTEST" >&6
19171 echo "$as_me:$LINENO: result: no" >&5
19172 echo "${ECHO_T}no" >&6
19175 if test "$QMTEST" = "false" ; then
19176 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19177 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19179 # Extract the first word of "runtest", so it can be a program name with args.
19180 set dummy runtest; ac_word=$2
19181 echo "$as_me:$LINENO: checking for $ac_word" >&5
19182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19183 if test "${ac_cv_path_RUNTEST+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
19191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19192 for as_dir in $PATH
19195 test -z "$as_dir" && as_dir=.
19196 for ac_exec_ext in '' $ac_executable_extensions; do
19197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19198 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
19199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19205 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
19209 RUNTEST=$ac_cv_path_RUNTEST
19211 if test -n "$RUNTEST"; then
19212 echo "$as_me:$LINENO: result: $RUNTEST" >&5
19213 echo "${ECHO_T}$RUNTEST" >&6
19215 echo "$as_me:$LINENO: result: no" >&5
19216 echo "${ECHO_T}no" >&6
19219 if test "$RUNTEST" = "false" ; then
19220 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
19221 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
19224 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19225 pymajor=`echo $pyversion | cut -d. -f1`
19226 pyminor=`echo $pyversion | cut -d. -f2`
19228 if test "$pymajor" -ge "2"
19230 if test "$pymajor" -eq "2"
19232 if test "$pyminor" -lt "2"
19234 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19235 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19239 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19240 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19244 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19245 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19246 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 ac_check_lib_save_LIBS=$LIBS
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19258 /* Override any gcc2 internal prototype to avoid an error. */
19262 /* We use char because int might match the return type of a gcc2
19263 builtin and then its argument prototype would still apply. */
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19275 (eval $ac_link) 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest$ac_exeext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_lib_elf_elf_begin=yes
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_cv_lib_elf_elf_begin=no
19302 rm -f conftest.err conftest.$ac_objext \
19303 conftest$ac_exeext conftest.$ac_ext
19304 LIBS=$ac_check_lib_save_LIBS
19306 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19308 if test $ac_cv_lib_elf_elf_begin = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_LIBELF 1
19318 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19319 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19320 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any gcc2 internal prototype to avoid an error. */
19336 /* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_lib_z_gzopen=yes
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_z_gzopen=no
19376 rm -f conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19380 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19381 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19382 if test $ac_cv_lib_z_gzopen = yes; then
19388 if test $zlib_found -eq 1; then
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_ZLIB 1
19401 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19402 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19403 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 ac_check_lib_save_LIBS=$LIBS
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 /* Override any gcc2 internal prototype to avoid an error. */
19419 /* We use char because int might match the return type of a gcc2
19420 builtin and then its argument prototype would still apply. */
19421 char BZ2_bzCompressInit ();
19425 BZ2_bzCompressInit ();
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432 (eval $ac_link) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest$ac_exeext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19459 rm -f conftest.err conftest.$ac_objext \
19460 conftest$ac_exeext conftest.$ac_ext
19461 LIBS=$ac_check_lib_save_LIBS
19463 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19464 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19465 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19471 if test $bzip2_found -eq 1 ; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_BZIP2 1
19484 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
19485 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
19486 if test "${ac_cv_search_lt_dlopen+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 ac_func_search_save_LIBS=$LIBS
19490 ac_cv_search_lt_dlopen=no
19491 cat >conftest.$ac_ext <<_ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 /* Override any gcc2 internal prototype to avoid an error. */
19502 /* We use char because int might match the return type of a gcc2
19503 builtin and then its argument prototype would still apply. */
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_search_lt_dlopen="none required"
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19541 rm -f conftest.err conftest.$ac_objext \
19542 conftest$ac_exeext conftest.$ac_ext
19543 if test "$ac_cv_search_lt_dlopen" = no; then
19544 for ac_lib in ltdl; do
19545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19553 /* Override any gcc2 internal prototype to avoid an error. */
19557 /* We use char because int might match the return type of a gcc2
19558 builtin and then its argument prototype would still apply. */
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag"
19578 || test ! -s conftest.err'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest$ac_exeext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 ac_cv_search_lt_dlopen="-l$ac_lib"
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19597 rm -f conftest.err conftest.$ac_objext \
19598 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_func_search_save_LIBS
19603 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
19604 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
19605 if test "$ac_cv_search_lt_dlopen" != no; then
19606 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_LT_DLOPEN 1
19613 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
19614 not be available" >&5
19615 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
19616 not be available" >&2;}
19620 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19621 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19622 if test "${ac_cv_search_dlopen+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 ac_func_search_save_LIBS=$LIBS
19626 ac_cv_search_dlopen=no
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19634 /* Override any gcc2 internal prototype to avoid an error. */
19638 /* We use char because int might match the return type of a gcc2
19639 builtin and then its argument prototype would still apply. */
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651 (eval $ac_link) 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -z "$ac_c_werror_flag"
19659 || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_cv_search_dlopen="none required"
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19677 rm -f conftest.err conftest.$ac_objext \
19678 conftest$ac_exeext conftest.$ac_ext
19679 if test "$ac_cv_search_dlopen" = no; then
19680 for ac_lib in dl; do
19681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19682 cat >conftest.$ac_ext <<_ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19689 /* Override any gcc2 internal prototype to avoid an error. */
19693 /* We use char because int might match the return type of a gcc2
19694 builtin and then its argument prototype would still apply. */
19704 rm -f conftest.$ac_objext conftest$ac_exeext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19706 (eval $ac_link) 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest$ac_exeext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_search_dlopen="-l$ac_lib"
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19733 rm -f conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_func_search_save_LIBS
19739 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19740 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19741 if test "$ac_cv_search_dlopen" != no; then
19742 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19744 cat >>confdefs.h <<\_ACEOF
19745 #define HAVE_DLOPEN 1
19749 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19750 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19754 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19755 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19756 if test "${ac_cv_search_mallinfo+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 ac_func_search_save_LIBS=$LIBS
19760 ac_cv_search_mallinfo=no
19761 cat >conftest.$ac_ext <<_ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19768 /* Override any gcc2 internal prototype to avoid an error. */
19772 /* We use char because int might match the return type of a gcc2
19773 builtin and then its argument prototype would still apply. */
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19785 (eval $ac_link) 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -z "$ac_c_werror_flag"
19793 || test ! -s conftest.err'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest$ac_exeext'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_search_mallinfo="none required"
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19811 rm -f conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813 if test "$ac_cv_search_mallinfo" = no; then
19814 for ac_lib in malloc; do
19815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19823 /* Override any gcc2 internal prototype to avoid an error. */
19827 /* We use char because int might match the return type of a gcc2
19828 builtin and then its argument prototype would still apply. */
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19840 (eval $ac_link) 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag"
19848 || test ! -s conftest.err'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try='test -s conftest$ac_exeext'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 ac_cv_search_mallinfo="-l$ac_lib"
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19867 rm -f conftest.err conftest.$ac_objext \
19868 conftest$ac_exeext conftest.$ac_ext
19871 LIBS=$ac_func_search_save_LIBS
19873 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19874 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19875 if test "$ac_cv_search_mallinfo" != no; then
19876 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19878 cat >>confdefs.h <<\_ACEOF
19879 #define HAVE_MALLINFO 1
19885 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19886 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19887 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 ac_func_search_save_LIBS=$LIBS
19891 ac_cv_search_pthread_mutex_lock=no
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19899 /* Override any gcc2 internal prototype to avoid an error. */
19903 /* We use char because int might match the return type of a gcc2
19904 builtin and then its argument prototype would still apply. */
19905 char pthread_mutex_lock ();
19909 pthread_mutex_lock ();
19914 rm -f conftest.$ac_objext conftest$ac_exeext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19916 (eval $ac_link) 2>conftest.er1
19918 grep -v '^ *+' conftest.er1 >conftest.err
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -z "$ac_c_werror_flag"
19924 || test ! -s conftest.err'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest$ac_exeext'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_cv_search_pthread_mutex_lock="none required"
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19942 rm -f conftest.err conftest.$ac_objext \
19943 conftest$ac_exeext conftest.$ac_ext
19944 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19945 for ac_lib in pthread; do
19946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19947 cat >conftest.$ac_ext <<_ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19954 /* Override any gcc2 internal prototype to avoid an error. */
19958 /* We use char because int might match the return type of a gcc2
19959 builtin and then its argument prototype would still apply. */
19960 char pthread_mutex_lock ();
19964 pthread_mutex_lock ();
19969 rm -f conftest.$ac_objext conftest$ac_exeext
19970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19971 (eval $ac_link) 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest$ac_exeext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19998 rm -f conftest.err conftest.$ac_objext \
19999 conftest$ac_exeext conftest.$ac_ext
20002 LIBS=$ac_func_search_save_LIBS
20004 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20005 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20006 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20007 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_PTHREAD_MUTEX_LOCK 1
20016 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20018 if test "${ac_cv_header_stdc+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <stdlib.h>
20028 #include <stdarg.h>
20029 #include <string.h>
20040 rm -f conftest.$ac_objext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042 (eval $ac_compile) 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -z "$ac_c_werror_flag"
20050 || test ! -s conftest.err'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; } &&
20056 { ac_try='test -s conftest.$ac_objext'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_header_stdc=yes
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ac_cv_header_stdc=no
20069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20071 if test $ac_cv_header_stdc = yes; then
20072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20079 #include <string.h>
20082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20083 $EGREP "memchr" >/dev/null 2>&1; then
20086 ac_cv_header_stdc=no
20092 if test $ac_cv_header_stdc = yes; then
20093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 #include <stdlib.h>
20103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104 $EGREP "free" >/dev/null 2>&1; then
20107 ac_cv_header_stdc=no
20113 if test $ac_cv_header_stdc = yes; then
20114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20115 if test "$cross_compiling" = yes; then
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20125 #if ((' ' & 0x0FF) == 0x020)
20126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20129 # define ISLOWER(c) \
20130 (('a' <= (c) && (c) <= 'i') \
20131 || ('j' <= (c) && (c) <= 'r') \
20132 || ('s' <= (c) && (c) <= 'z'))
20133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20141 for (i = 0; i < 256; i++)
20142 if (XOR (islower (i), ISLOWER (i))
20143 || toupper (i) != TOUPPER (i))
20148 rm -f conftest$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150 (eval $ac_link) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20161 echo "$as_me: program exited with status $ac_status" >&5
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ( exit $ac_status )
20166 ac_cv_header_stdc=no
20168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20174 if test $ac_cv_header_stdc = yes; then
20176 cat >>confdefs.h <<\_ACEOF
20177 #define STDC_HEADERS 1
20182 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20183 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20184 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 #include <sys/types.h>
20194 #include <sys/wait.h>
20195 #ifndef WEXITSTATUS
20196 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20199 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20207 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag"
20222 || test ! -s conftest.err'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_header_sys_wait_h=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_cv_header_sys_wait_h=no
20241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20243 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20244 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20245 if test $ac_cv_header_sys_wait_h = yes; then
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_SYS_WAIT_H 1
20268 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h ltdl.h link.h execinfo.h windows.h bzlib.h zlib.h
20270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20272 echo "$as_me:$LINENO: checking for $ac_header" >&5
20273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20280 # Is the header compilable?
20281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20290 #include <$ac_header>
20292 rm -f conftest.$ac_objext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294 (eval $ac_compile) 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -z "$ac_c_werror_flag"
20302 || test ! -s conftest.err'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest.$ac_objext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_header_compiler=yes
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 ac_header_compiler=no
20321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20323 echo "${ECHO_T}$ac_header_compiler" >&6
20325 # Is the header present?
20326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <$ac_header>
20336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } >/dev/null; then
20344 if test -s conftest.err; then
20345 ac_cpp_err=$ac_c_preproc_warn_flag
20346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20353 if test -z "$ac_cpp_err"; then
20354 ac_header_preproc=yes
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 ac_header_preproc=no
20361 rm -f conftest.err conftest.$ac_ext
20362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20363 echo "${ECHO_T}$ac_header_preproc" >&6
20365 # So? What about this header?
20366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20372 ac_header_preproc=yes
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20389 ## ----------------------------------- ##
20390 ## Report this to llvmbugs@cs.uiuc.edu ##
20391 ## ----------------------------------- ##
20394 sed "s/^/$as_me: WARNING: /" >&2
20397 echo "$as_me:$LINENO: checking for $ac_header" >&5
20398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 eval "$as_ac_Header=\$ac_header_preproc"
20404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20409 cat >>confdefs.h <<_ACEOF
20410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20418 if test "${ac_cv_header_sys_types_h+set}" = set; then
20419 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20420 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20421 if test "${ac_cv_header_sys_types_h+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20425 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20427 # Is the header compilable?
20428 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20429 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 $ac_includes_default
20437 #include <sys/types.h>
20439 rm -f conftest.$ac_objext
20440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20441 (eval $ac_compile) 2>conftest.er1
20443 grep -v '^ *+' conftest.er1 >conftest.err
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
20448 { ac_try='test -z "$ac_c_werror_flag"
20449 || test ! -s conftest.err'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest.$ac_objext'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 ac_header_compiler=yes
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_header_compiler=no
20468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20470 echo "${ECHO_T}$ac_header_compiler" >&6
20472 # Is the header present?
20473 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20474 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 #include <sys/types.h>
20483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } >/dev/null; then
20491 if test -s conftest.err; then
20492 ac_cpp_err=$ac_c_preproc_warn_flag
20493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20500 if test -z "$ac_cpp_err"; then
20501 ac_header_preproc=yes
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_header_preproc=no
20508 rm -f conftest.err conftest.$ac_ext
20509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20510 echo "${ECHO_T}$ac_header_preproc" >&6
20512 # So? What about this header?
20513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20515 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20516 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20518 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20519 ac_header_preproc=yes
20522 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20523 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20525 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20527 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20529 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20530 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20531 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20533 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20536 ## ----------------------------------- ##
20537 ## Report this to llvmbugs@cs.uiuc.edu ##
20538 ## ----------------------------------- ##
20541 sed "s/^/$as_me: WARNING: /" >&2
20544 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20545 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20546 if test "${ac_cv_header_sys_types_h+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 ac_cv_header_sys_types_h=$ac_header_preproc
20551 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20552 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20557 if test "${ac_cv_header_inttypes_h+set}" = set; then
20558 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20559 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20560 if test "${ac_cv_header_inttypes_h+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20564 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20566 # Is the header compilable?
20567 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20568 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 $ac_includes_default
20576 #include <inttypes.h>
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580 (eval $ac_compile) 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
20587 { ac_try='test -z "$ac_c_werror_flag"
20588 || test ! -s conftest.err'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_header_compiler=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_header_compiler=no
20607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20609 echo "${ECHO_T}$ac_header_compiler" >&6
20611 # Is the header present?
20612 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20613 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 #include <inttypes.h>
20622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } >/dev/null; then
20630 if test -s conftest.err; then
20631 ac_cpp_err=$ac_c_preproc_warn_flag
20632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20639 if test -z "$ac_cpp_err"; then
20640 ac_header_preproc=yes
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_header_preproc=no
20647 rm -f conftest.err conftest.$ac_ext
20648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20649 echo "${ECHO_T}$ac_header_preproc" >&6
20651 # So? What about this header?
20652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20654 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20655 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20656 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20657 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20658 ac_header_preproc=yes
20661 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20662 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20664 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20666 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20668 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20670 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20672 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20675 ## ----------------------------------- ##
20676 ## Report this to llvmbugs@cs.uiuc.edu ##
20677 ## ----------------------------------- ##
20680 sed "s/^/$as_me: WARNING: /" >&2
20683 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20684 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20685 if test "${ac_cv_header_inttypes_h+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 ac_cv_header_inttypes_h=$ac_header_preproc
20690 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20691 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20696 if test "${ac_cv_header_stdint_h+set}" = set; then
20697 echo "$as_me:$LINENO: checking for stdint.h" >&5
20698 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20699 if test "${ac_cv_header_stdint_h+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20703 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20705 # Is the header compilable?
20706 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20707 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 $ac_includes_default
20715 #include <stdint.h>
20717 rm -f conftest.$ac_objext
20718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20719 (eval $ac_compile) 2>conftest.er1
20721 grep -v '^ *+' conftest.er1 >conftest.err
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
20726 { ac_try='test -z "$ac_c_werror_flag"
20727 || test ! -s conftest.err'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } &&
20733 { ac_try='test -s conftest.$ac_objext'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_header_compiler=yes
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_header_compiler=no
20746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20748 echo "${ECHO_T}$ac_header_compiler" >&6
20750 # Is the header present?
20751 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20752 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 #include <stdint.h>
20761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20764 grep -v '^ *+' conftest.er1 >conftest.err
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } >/dev/null; then
20769 if test -s conftest.err; then
20770 ac_cpp_err=$ac_c_preproc_warn_flag
20771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20778 if test -z "$ac_cpp_err"; then
20779 ac_header_preproc=yes
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_header_preproc=no
20786 rm -f conftest.err conftest.$ac_ext
20787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20788 echo "${ECHO_T}$ac_header_preproc" >&6
20790 # So? What about this header?
20791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20793 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20794 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20796 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20797 ac_header_preproc=yes
20800 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20801 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20803 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20804 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20805 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20807 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20809 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20811 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20814 ## ----------------------------------- ##
20815 ## Report this to llvmbugs@cs.uiuc.edu ##
20816 ## ----------------------------------- ##
20819 sed "s/^/$as_me: WARNING: /" >&2
20822 echo "$as_me:$LINENO: checking for stdint.h" >&5
20823 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20824 if test "${ac_cv_header_stdint_h+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 ac_cv_header_stdint_h=$ac_header_preproc
20829 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20830 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20836 echo "$as_me:$LINENO: checking for pid_t" >&5
20837 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20838 if test "${ac_cv_type_pid_t+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 cat >conftest.$ac_ext <<_ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 $ac_includes_default
20853 if (sizeof (pid_t))
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861 (eval $ac_compile) 2>conftest.er1
20863 grep -v '^ *+' conftest.er1 >conftest.err
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
20868 { ac_try='test -z "$ac_c_werror_flag"
20869 || test ! -s conftest.err'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; } &&
20875 { ac_try='test -s conftest.$ac_objext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_type_pid_t=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_type_pid_t=no
20888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20890 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20891 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20892 if test $ac_cv_type_pid_t = yes; then
20896 cat >>confdefs.h <<_ACEOF
20902 echo "$as_me:$LINENO: checking for size_t" >&5
20903 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20904 if test "${ac_cv_type_size_t+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 $ac_includes_default
20919 if (sizeof (size_t))
20925 rm -f conftest.$ac_objext
20926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20927 (eval $ac_compile) 2>conftest.er1
20929 grep -v '^ *+' conftest.er1 >conftest.err
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_c_werror_flag"
20935 || test ! -s conftest.err'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; } &&
20941 { ac_try='test -s conftest.$ac_objext'
20942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943 (eval $ac_try) 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 ac_cv_type_size_t=yes
20949 echo "$as_me: failed program was:" >&5
20950 sed 's/^/| /' conftest.$ac_ext >&5
20952 ac_cv_type_size_t=no
20954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20956 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20957 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20958 if test $ac_cv_type_size_t = yes; then
20962 cat >>confdefs.h <<_ACEOF
20963 #define size_t unsigned
20968 echo "$as_me:$LINENO: checking for int64_t" >&5
20969 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20970 if test "${ac_cv_type_int64_t+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20979 $ac_includes_default
20985 if (sizeof (int64_t))
20991 rm -f conftest.$ac_objext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993 (eval $ac_compile) 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag"
21001 || test ! -s conftest.err'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; } &&
21007 { ac_try='test -s conftest.$ac_objext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_type_int64_t=yes
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 ac_cv_type_int64_t=no
21020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21022 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21023 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21024 if test $ac_cv_type_int64_t = yes; then
21026 cat >>confdefs.h <<_ACEOF
21027 #define HAVE_INT64_T 1
21032 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21033 echo "$as_me: error: Type int64_t required but not found" >&2;}
21034 { (exit 1); exit 1; }; }
21037 echo "$as_me:$LINENO: checking for uint64_t" >&5
21038 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21039 if test "${ac_cv_type_uint64_t+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21052 if ((uint64_t *) 0)
21054 if (sizeof (uint64_t))
21060 rm -f conftest.$ac_objext
21061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062 (eval $ac_compile) 2>conftest.er1
21064 grep -v '^ *+' conftest.er1 >conftest.err
21066 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
21069 { ac_try='test -z "$ac_c_werror_flag"
21070 || test ! -s conftest.err'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } &&
21076 { ac_try='test -s conftest.$ac_objext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_cv_type_uint64_t=yes
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_cv_type_uint64_t=no
21089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21091 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21092 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21093 if test $ac_cv_type_uint64_t = yes; then
21095 cat >>confdefs.h <<_ACEOF
21096 #define HAVE_UINT64_T 1
21101 echo "$as_me:$LINENO: checking for u_int64_t" >&5
21102 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21103 if test "${ac_cv_type_u_int64_t+set}" = set; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 cat >conftest.$ac_ext <<_ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 $ac_includes_default
21116 if ((u_int64_t *) 0)
21118 if (sizeof (u_int64_t))
21124 rm -f conftest.$ac_objext
21125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21126 (eval $ac_compile) 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
21133 { ac_try='test -z "$ac_c_werror_flag"
21134 || test ! -s conftest.err'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest.$ac_objext'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 ac_cv_type_u_int64_t=yes
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_cv_type_u_int64_t=no
21153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21155 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21156 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21157 if test $ac_cv_type_u_int64_t = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_U_INT64_T 1
21165 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21166 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21167 { (exit 1); exit 1; }; }
21172 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21173 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21174 if test "${ac_cv_header_time+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 #include <sys/types.h>
21184 #include <sys/time.h>
21190 if ((struct tm *) 0)
21196 rm -f conftest.$ac_objext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198 (eval $ac_compile) 2>conftest.er1
21200 grep -v '^ *+' conftest.er1 >conftest.err
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
21205 { ac_try='test -z "$ac_c_werror_flag"
21206 || test ! -s conftest.err'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest.$ac_objext'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 ac_cv_header_time=yes
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_header_time=no
21225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21228 echo "${ECHO_T}$ac_cv_header_time" >&6
21229 if test $ac_cv_header_time = yes; then
21231 cat >>confdefs.h <<\_ACEOF
21232 #define TIME_WITH_SYS_TIME 1
21237 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21238 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21239 if test "${ac_cv_struct_tm+set}" = set; then
21240 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 #include <sys/types.h>
21254 struct tm *tp; tp->tm_sec;
21259 rm -f conftest.$ac_objext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261 (eval $ac_compile) 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_struct_tm=time.h
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_struct_tm=sys/time.h
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21291 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21292 if test $ac_cv_struct_tm = sys/time.h; then
21294 cat >>confdefs.h <<\_ACEOF
21295 #define TM_IN_SYS_TIME 1
21302 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21303 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21305 ac_cpp='$CPP $CPPFLAGS'
21306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21310 if test "$cross_compiling" = yes; then
21313 cat >conftest.$ac_ext <<_ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21322 #include <stdlib.h>
21328 volatile double A, B;
21332 sprintf(Buffer, "%a", A);
21336 if (A != 0x1.999999999999ap-4)
21343 rm -f conftest$ac_exeext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21345 (eval $ac_link) 2>&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; }; then
21356 echo "$as_me: program exited with status $ac_status" >&5
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 ( exit $ac_status )
21363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21366 ac_cpp='$CPP $CPPFLAGS'
21367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21371 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21372 echo "${ECHO_T}$ac_c_printf_a" >&6
21373 if test "$ac_c_printf_a" = "yes"; then
21375 cat >>confdefs.h <<\_ACEOF
21376 #define HAVE_PRINTF_A 1
21382 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21383 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21384 if test "${ac_cv_c_bigendian+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 # See if sys/param.h defines the BYTE_ORDER macro.
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 #include <sys/types.h>
21395 #include <sys/param.h>
21400 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21401 bogus endian macros
21408 rm -f conftest.$ac_objext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410 (eval $ac_compile) 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -z "$ac_c_werror_flag"
21418 || test ! -s conftest.err'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest.$ac_objext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 # It does; now see whether it defined to BIG_ENDIAN or not.
21431 cat >conftest.$ac_ext <<_ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h. */
21437 #include <sys/types.h>
21438 #include <sys/param.h>
21443 #if BYTE_ORDER != BIG_ENDIAN
21451 rm -f conftest.$ac_objext
21452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453 (eval $ac_compile) 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } &&
21460 { ac_try='test -z "$ac_c_werror_flag"
21461 || test ! -s conftest.err'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; } &&
21467 { ac_try='test -s conftest.$ac_objext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_cv_c_bigendian=yes
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 ac_cv_c_bigendian=no
21480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 # It does not; compile a test program.
21486 if test "$cross_compiling" = yes; then
21487 # try to guess the endianness by grepping values into an object file
21488 ac_cv_c_bigendian=unknown
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21496 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21497 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21498 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21499 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21500 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21504 _ascii (); _ebcdic ();
21509 rm -f conftest.$ac_objext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21511 (eval $ac_compile) 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag"
21519 || test ! -s conftest.err'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } &&
21525 { ac_try='test -s conftest.$ac_objext'
21526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527 (eval $ac_try) 2>&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); }; }; then
21531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21532 ac_cv_c_bigendian=yes
21534 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21535 if test "$ac_cv_c_bigendian" = unknown; then
21536 ac_cv_c_bigendian=no
21538 # finding both strings is unlikely to happen, but who knows?
21539 ac_cv_c_bigendian=unknown
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21558 /* Are we little or big endian? From Harbison&Steele. */
21562 char c[sizeof (long)];
21565 exit (u.c[sizeof (long) - 1] == 1);
21568 rm -f conftest$ac_exeext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570 (eval $ac_link) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_c_bigendian=no
21581 echo "$as_me: program exited with status $ac_status" >&5
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ( exit $ac_status )
21586 ac_cv_c_bigendian=yes
21588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21593 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21594 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21595 case $ac_cv_c_bigendian in
21603 { { echo "$as_me:$LINENO: error: unknown endianness
21604 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21605 echo "$as_me: error: unknown endianness
21606 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21607 { (exit 1); exit 1; }; } ;;
21611 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21612 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21613 if test "${ac_cv_cxx_namespaces+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 ac_cpp='$CXXCPP $CPPFLAGS'
21618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 namespace Outer { namespace Inner { int i = 0; }}
21632 using namespace Outer::Inner; return i;
21637 rm -f conftest.$ac_objext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639 (eval $ac_compile) 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
21646 { ac_try='test -z "$ac_cxx_werror_flag"
21647 || test ! -s conftest.err'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; } &&
21653 { ac_try='test -s conftest.$ac_objext'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_cv_cxx_namespaces=yes
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ac_cv_cxx_namespaces=no
21666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21668 ac_cpp='$CPP $CPPFLAGS'
21669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21675 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21676 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21677 if test "$ac_cv_cxx_namespaces" = yes; then
21679 cat >>confdefs.h <<\_ACEOF
21680 #define HAVE_NAMESPACES
21685 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21686 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21687 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 ac_cpp='$CXXCPP $CPPFLAGS'
21693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <ext/hash_map>
21704 #ifdef HAVE_NAMESPACES
21705 using namespace std;
21710 hash_map<int, int> t;
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try='test -z "$ac_cxx_werror_flag"
21725 || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest.$ac_objext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 ac_cv_cxx_have_std_ext_hash_map=yes
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_cv_cxx_have_std_ext_hash_map=no
21744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 ac_cpp='$CPP $CPPFLAGS'
21747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21752 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21753 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21754 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21757 cat >>confdefs.h <<\_ACEOF
21758 #define HAVE_STD_EXT_HASH_MAP 1
21763 cat >>confdefs.h <<\_ACEOF
21764 #define HAVE_STD_EXT_HASH_MAP 0
21769 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21770 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21771 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 ac_cpp='$CXXCPP $CPPFLAGS'
21777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21781 cat >conftest.$ac_ext <<_ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21787 #include <ext/hash_map>
21788 #ifdef HAVE_NAMESPACES
21789 using namespace __gnu_cxx;
21794 hash_map<int,int> t;
21799 rm -f conftest.$ac_objext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21801 (eval $ac_compile) 2>conftest.er1
21803 grep -v '^ *+' conftest.er1 >conftest.err
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
21808 { ac_try='test -z "$ac_cxx_werror_flag"
21809 || test ! -s conftest.err'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; } &&
21815 { ac_try='test -s conftest.$ac_objext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_cxx_have_gnu_ext_hash_map=yes
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21826 ac_cv_cxx_have_gnu_ext_hash_map=no
21828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21830 ac_cpp='$CPP $CPPFLAGS'
21831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21836 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21837 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21838 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21841 cat >>confdefs.h <<\_ACEOF
21842 #define HAVE_GNU_EXT_HASH_MAP 1
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_GNU_EXT_HASH_MAP 0
21853 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21854 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21855 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21860 ac_cpp='$CXXCPP $CPPFLAGS'
21861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <hash_map>
21875 hash_map<int,int> t;
21880 rm -f conftest.$ac_objext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882 (eval $ac_compile) 2>conftest.er1
21884 grep -v '^ *+' conftest.er1 >conftest.err
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
21889 { ac_try='test -z "$ac_cxx_werror_flag"
21890 || test ! -s conftest.err'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; } &&
21896 { ac_try='test -s conftest.$ac_objext'
21897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898 (eval $ac_try) 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; }; then
21902 ac_cv_cxx_have_global_hash_map=yes
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 ac_cv_cxx_have_global_hash_map=no
21909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21911 ac_cpp='$CPP $CPPFLAGS'
21912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21917 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21918 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21919 if test "$ac_cv_cxx_have_global_hash_map" = yes
21922 cat >>confdefs.h <<\_ACEOF
21923 #define HAVE_GLOBAL_HASH_MAP 1
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_GLOBAL_HASH_MAP 0
21934 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21935 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21936 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 ac_cpp='$CXXCPP $CPPFLAGS'
21942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <ext/hash_set>
21953 #ifdef HAVE_NAMESPACES
21954 using namespace std;
21964 rm -f conftest.$ac_objext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21966 (eval $ac_compile) 2>conftest.er1
21968 grep -v '^ *+' conftest.er1 >conftest.err
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } &&
21973 { ac_try='test -z "$ac_cxx_werror_flag"
21974 || test ! -s conftest.err'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest.$ac_objext'
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21986 ac_cv_cxx_have_std_ext_hash_set=yes
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_cv_cxx_have_std_ext_hash_set=no
21993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21995 ac_cpp='$CPP $CPPFLAGS'
21996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22001 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22002 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22003 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22006 cat >>confdefs.h <<\_ACEOF
22007 #define HAVE_STD_EXT_HASH_SET 1
22012 cat >>confdefs.h <<\_ACEOF
22013 #define HAVE_STD_EXT_HASH_SET 0
22018 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22019 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22020 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 ac_cpp='$CXXCPP $CPPFLAGS'
22026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 #include <ext/hash_set>
22037 #ifdef HAVE_NAMESPACES
22038 using namespace __gnu_cxx;
22048 rm -f conftest.$ac_objext
22049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22050 (eval $ac_compile) 2>conftest.er1
22052 grep -v '^ *+' conftest.er1 >conftest.err
22054 cat conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } &&
22057 { ac_try='test -z "$ac_cxx_werror_flag"
22058 || test ! -s conftest.err'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; } &&
22064 { ac_try='test -s conftest.$ac_objext'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; }; then
22070 ac_cv_cxx_have_gnu_ext_hash_set=yes
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_cv_cxx_have_gnu_ext_hash_set=no
22077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22079 ac_cpp='$CPP $CPPFLAGS'
22080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22085 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22086 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22087 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22090 cat >>confdefs.h <<\_ACEOF
22091 #define HAVE_GNU_EXT_HASH_SET 1
22096 cat >>confdefs.h <<\_ACEOF
22097 #define HAVE_GNU_EXT_HASH_SET 0
22102 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22103 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22104 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 ac_cpp='$CXXCPP $CPPFLAGS'
22110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 #include <hash_set>
22124 hash_set<int> t; return 0;
22129 rm -f conftest.$ac_objext
22130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22131 (eval $ac_compile) 2>conftest.er1
22133 grep -v '^ *+' conftest.er1 >conftest.err
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } &&
22138 { ac_try='test -z "$ac_cxx_werror_flag"
22139 || test ! -s conftest.err'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest.$ac_objext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 ac_cv_cxx_have_global_hash_set=yes
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 ac_cv_cxx_have_global_hash_set=no
22158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22160 ac_cpp='$CPP $CPPFLAGS'
22161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22166 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22167 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22168 if test "$ac_cv_cxx_have_global_hash_set" = yes
22171 cat >>confdefs.h <<\_ACEOF
22172 #define HAVE_GLOBAL_HASH_SET 1
22177 cat >>confdefs.h <<\_ACEOF
22178 #define HAVE_GLOBAL_HASH_SET 0
22183 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22184 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22185 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 ac_cpp='$CXXCPP $CPPFLAGS'
22191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22195 cat >conftest.$ac_ext <<_ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 #include <iterator>
22202 #ifdef HAVE_NAMESPACES
22203 using namespace std;
22208 iterator<int,int,int> t; return 0;
22213 rm -f conftest.$ac_objext
22214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22215 (eval $ac_compile) 2>conftest.er1
22217 grep -v '^ *+' conftest.er1 >conftest.err
22219 cat conftest.err >&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } &&
22222 { ac_try='test -z "$ac_cxx_werror_flag"
22223 || test ! -s conftest.err'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; } &&
22229 { ac_try='test -s conftest.$ac_objext'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 ac_cv_cxx_have_std_iterator=yes
22237 echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22240 ac_cv_cxx_have_std_iterator=no
22242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22244 ac_cpp='$CPP $CPPFLAGS'
22245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22251 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22252 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22253 if test "$ac_cv_cxx_have_std_iterator" = yes
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_STD_ITERATOR 1
22262 cat >>confdefs.h <<\_ACEOF
22263 #define HAVE_STD_ITERATOR 0
22268 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22269 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22270 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22275 ac_cpp='$CXXCPP $CPPFLAGS'
22276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 #include <iterator>
22287 #ifdef HAVE_NAMESPACES
22288 using namespace std;
22293 bidirectional_iterator<int,int> t; return 0;
22298 rm -f conftest.$ac_objext
22299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22300 (eval $ac_compile) 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } &&
22307 { ac_try='test -z "$ac_cxx_werror_flag"
22308 || test ! -s conftest.err'
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; } &&
22314 { ac_try='test -s conftest.$ac_objext'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ac_cv_cxx_have_bi_iterator=yes
22322 echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22325 ac_cv_cxx_have_bi_iterator=no
22327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22329 ac_cpp='$CPP $CPPFLAGS'
22330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22336 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22337 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22338 if test "$ac_cv_cxx_have_bi_iterator" = yes
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_BI_ITERATOR 1
22347 cat >>confdefs.h <<\_ACEOF
22348 #define HAVE_BI_ITERATOR 0
22353 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22354 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22355 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22360 ac_cpp='$CXXCPP $CPPFLAGS'
22361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22371 #include <iterator>
22372 #ifdef HAVE_NAMESPACES
22373 using namespace std;
22378 forward_iterator<int,int> t; return 0;
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385 (eval $ac_compile) 2>conftest.er1
22387 grep -v '^ *+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } &&
22392 { ac_try='test -z "$ac_cxx_werror_flag"
22393 || test ! -s conftest.err'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; } &&
22399 { ac_try='test -s conftest.$ac_objext'
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_cv_cxx_have_fwd_iterator=yes
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_cv_cxx_have_fwd_iterator=no
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22414 ac_cpp='$CPP $CPPFLAGS'
22415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22421 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22422 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22423 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22426 cat >>confdefs.h <<\_ACEOF
22427 #define HAVE_FWD_ITERATOR 1
22432 cat >>confdefs.h <<\_ACEOF
22433 #define HAVE_FWD_ITERATOR 0
22440 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22441 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22442 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 ac_cpp='$CXXCPP $CPPFLAGS'
22447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22466 rm -f conftest.$ac_objext
22467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22468 (eval $ac_compile) 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
22475 { ac_try='test -z "$ac_cxx_werror_flag"
22476 || test ! -s conftest.err'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; } &&
22482 { ac_try='test -s conftest.$ac_objext'
22483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; }; then
22488 ac_cv_func_isnan_in_math_h=yes
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_cv_func_isnan_in_math_h=no
22495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22497 ac_cpp='$CPP $CPPFLAGS'
22498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22503 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22504 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22507 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
22509 cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_ISNAN_IN_MATH_H 1
22515 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22516 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22517 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 ac_cpp='$CXXCPP $CPPFLAGS'
22522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22526 cat >conftest.$ac_ext <<_ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h. */
22541 rm -f conftest.$ac_objext
22542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22543 (eval $ac_compile) 2>conftest.er1
22545 grep -v '^ *+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
22550 { ac_try='test -z "$ac_cxx_werror_flag"
22551 || test ! -s conftest.err'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } &&
22557 { ac_try='test -s conftest.$ac_objext'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; }; then
22563 ac_cv_func_isnan_in_cmath=yes
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_cv_func_isnan_in_cmath=no
22570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22572 ac_cpp='$CPP $CPPFLAGS'
22573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22578 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22579 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22581 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
22583 cat >>confdefs.h <<\_ACEOF
22584 #define HAVE_ISNAN_IN_CMATH 1
22589 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22590 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22591 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 ac_cpp='$CXXCPP $CPPFLAGS'
22596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22600 cat >conftest.$ac_ext <<_ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22610 float f; std::isnan(f);
22615 rm -f conftest.$ac_objext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22617 (eval $ac_compile) 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } &&
22624 { ac_try='test -z "$ac_cxx_werror_flag"
22625 || test ! -s conftest.err'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; } &&
22631 { ac_try='test -s conftest.$ac_objext'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; }; then
22637 ac_cv_func_std_isnan_in_cmath=yes
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 ac_cv_func_std_isnan_in_cmath=no
22644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646 ac_cpp='$CPP $CPPFLAGS'
22647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22652 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22653 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22655 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_STD_ISNAN_IN_CMATH 1
22664 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22665 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22666 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 ac_cpp='$CXXCPP $CPPFLAGS'
22671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22675 cat >conftest.$ac_ext <<_ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h. */
22690 rm -f conftest.$ac_objext
22691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22692 (eval $ac_compile) 2>conftest.er1
22694 grep -v '^ *+' conftest.er1 >conftest.err
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } &&
22699 { ac_try='test -z "$ac_cxx_werror_flag"
22700 || test ! -s conftest.err'
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702 (eval $ac_try) 2>&5
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; } &&
22706 { ac_try='test -s conftest.$ac_objext'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 ac_cv_func_isinf_in_math_h=yes
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 ac_cv_func_isinf_in_math_h=no
22719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22721 ac_cpp='$CPP $CPPFLAGS'
22722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22727 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22728 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22730 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_ISINF_IN_MATH_H 1
22738 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22739 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22740 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 ac_cpp='$CXXCPP $CPPFLAGS'
22745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766 (eval $ac_compile) 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
22773 { ac_try='test -z "$ac_cxx_werror_flag"
22774 || test ! -s conftest.err'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22786 ac_cv_func_isinf_in_cmath=yes
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 ac_cv_func_isinf_in_cmath=no
22793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 ac_cpp='$CPP $CPPFLAGS'
22796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22801 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22802 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22804 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
22806 cat >>confdefs.h <<\_ACEOF
22807 #define HAVE_ISINF_IN_CMATH 1
22812 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22813 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22814 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 ac_cpp='$CXXCPP $CPPFLAGS'
22819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22823 cat >conftest.$ac_ext <<_ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22833 float f; std::isinf(f)}
22838 rm -f conftest.$ac_objext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22840 (eval $ac_compile) 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } &&
22847 { ac_try='test -z "$ac_cxx_werror_flag"
22848 || test ! -s conftest.err'
22849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850 (eval $ac_try) 2>&5
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); }; } &&
22854 { ac_try='test -s conftest.$ac_objext'
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; }; then
22860 ac_cv_func_std_isinf_in_cmath=yes
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_cv_func_std_isinf_in_cmath=no
22867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22869 ac_cpp='$CPP $CPPFLAGS'
22870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22875 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22876 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22878 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_STD_ISINF_IN_CMATH 1
22886 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22887 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22888 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 ac_cpp='$CXXCPP $CPPFLAGS'
22893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <ieeefp.h>
22907 float f; finite(f);
22912 rm -f conftest.$ac_objext
22913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22914 (eval $ac_compile) 2>conftest.er1
22916 grep -v '^ *+' conftest.er1 >conftest.err
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } &&
22921 { ac_try='test -z "$ac_cxx_werror_flag"
22922 || test ! -s conftest.err'
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; } &&
22928 { ac_try='test -s conftest.$ac_objext'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }; then
22934 ac_cv_func_finite_in_ieeefp_h=yes
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_cv_func_finite_in_ieeefp_h=no
22941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22943 ac_cpp='$CPP $CPPFLAGS'
22944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22949 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22950 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22952 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_FINITE_IN_IEEEFP_H 1
22962 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
22963 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
22964 if test "${ac_cv_func_rand48+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 ac_cpp='$CXXCPP $CPPFLAGS'
22969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22979 #include <stdlib.h>
22983 srand48(0);lrand48();drand48();
22988 rm -f conftest.$ac_objext
22989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22990 (eval $ac_compile) 2>conftest.er1
22992 grep -v '^ *+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
22997 { ac_try='test -z "$ac_cxx_werror_flag"
22998 || test ! -s conftest.err'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } &&
23004 { ac_try='test -s conftest.$ac_objext'
23005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006 (eval $ac_try) 2>&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }; }; then
23010 ac_cv_func_rand48=yes
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_cv_func_rand48=no
23017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23019 ac_cpp='$CPP $CPPFLAGS'
23020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23025 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23026 echo "${ECHO_T}$ac_cv_func_rand48" >&6
23028 if test "$ac_cv_func_rand48" = "yes" ; then
23030 cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_RAND48 1
23037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23038 # for constant arguments. Useless!
23039 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23040 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23041 if test "${ac_cv_working_alloca_h+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <alloca.h>
23054 char *p = (char *) alloca (2 * sizeof (int));
23059 rm -f conftest.$ac_objext conftest$ac_exeext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061 (eval $ac_link) 2>conftest.er1
23063 grep -v '^ *+' conftest.er1 >conftest.err
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } &&
23068 { ac_try='test -z "$ac_c_werror_flag"
23069 || test ! -s conftest.err'
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } &&
23075 { ac_try='test -s conftest$ac_exeext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_working_alloca_h=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_cv_working_alloca_h=no
23088 rm -f conftest.err conftest.$ac_objext \
23089 conftest$ac_exeext conftest.$ac_ext
23091 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23092 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23093 if test $ac_cv_working_alloca_h = yes; then
23095 cat >>confdefs.h <<\_ACEOF
23096 #define HAVE_ALLOCA_H 1
23101 echo "$as_me:$LINENO: checking for alloca" >&5
23102 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23103 if test "${ac_cv_func_alloca_works+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 # define alloca __builtin_alloca
23116 # include <malloc.h>
23117 # define alloca _alloca
23120 # include <alloca.h>
23125 # ifndef alloca /* predefined by HP cc +Olibcalls */
23136 char *p = (char *) alloca (1);
23141 rm -f conftest.$ac_objext conftest$ac_exeext
23142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23143 (eval $ac_link) 2>conftest.er1
23145 grep -v '^ *+' conftest.er1 >conftest.err
23147 cat conftest.err >&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } &&
23150 { ac_try='test -z "$ac_c_werror_flag"
23151 || test ! -s conftest.err'
23152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153 (eval $ac_try) 2>&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; } &&
23157 { ac_try='test -s conftest$ac_exeext'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; }; then
23163 ac_cv_func_alloca_works=yes
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_cv_func_alloca_works=no
23170 rm -f conftest.err conftest.$ac_objext \
23171 conftest$ac_exeext conftest.$ac_ext
23173 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23174 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23176 if test $ac_cv_func_alloca_works = yes; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_ALLOCA 1
23183 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23184 # that cause trouble. Some versions do not even contain alloca or
23185 # contain a buggy version. If you still want to use their alloca,
23186 # use ar to extract alloca.o from them instead of compiling alloca.c.
23188 ALLOCA=alloca.$ac_objext
23190 cat >>confdefs.h <<\_ACEOF
23195 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23196 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23197 if test "${ac_cv_os_cray+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 cat >conftest.$ac_ext <<_ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23206 #if defined(CRAY) && ! defined(CRAY2)
23213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23214 $EGREP "webecray" >/dev/null 2>&1; then
23222 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23223 echo "${ECHO_T}$ac_cv_os_cray" >&6
23224 if test $ac_cv_os_cray = yes; then
23225 for ac_func in _getb67 GETB67 getb67; do
23226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 echo "$as_me:$LINENO: checking for $ac_func" >&5
23228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23229 if eval "test \"\${$as_ac_var+set}\" = set"; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 cat >conftest.$ac_ext <<_ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23240 #define $ac_func innocuous_$ac_func
23242 /* System header to define __stub macros and hopefully few prototypes,
23243 which can conflict with char $ac_func (); below.
23244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23245 <limits.h> exists even on freestanding compilers. */
23248 # include <limits.h>
23250 # include <assert.h>
23255 /* Override any gcc2 internal prototype to avoid an error. */
23260 /* We use char because int might match the return type of a gcc2
23261 builtin and then its argument prototype would still apply. */
23263 /* The GNU C library defines this for functions which it implements
23264 to always fail with ENOSYS. Some functions are actually named
23265 something starting with __ and the normal name is an alias. */
23266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23269 char (*f) () = $ac_func;
23278 return f != $ac_func;
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23285 (eval $ac_link) 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
23292 { ac_try='test -z "$ac_c_werror_flag"
23293 || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest$ac_exeext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 eval "$as_ac_var=yes"
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 eval "$as_ac_var=no"
23312 rm -f conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
23315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23317 if test `eval echo '${'$as_ac_var'}'` = yes; then
23319 cat >>confdefs.h <<_ACEOF
23320 #define CRAY_STACKSEG_END $ac_func
23329 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23330 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23331 if test "${ac_cv_c_stack_direction+set}" = set; then
23332 echo $ECHO_N "(cached) $ECHO_C" >&6
23334 if test "$cross_compiling" = yes; then
23335 ac_cv_c_stack_direction=0
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23344 find_stack_direction ()
23346 static char *addr = 0;
23351 return find_stack_direction ();
23354 return (&dummy > addr) ? 1 : -1;
23360 exit (find_stack_direction () < 0);
23363 rm -f conftest$ac_exeext
23364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365 (eval $ac_link) 2>&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 ac_cv_c_stack_direction=1
23376 echo "$as_me: program exited with status $ac_status" >&5
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ( exit $ac_status )
23381 ac_cv_c_stack_direction=-1
23383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23386 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23387 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23389 cat >>confdefs.h <<_ACEOF
23390 #define STACK_DIRECTION $ac_cv_c_stack_direction
23398 for ac_header in stdlib.h unistd.h
23400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23402 echo "$as_me:$LINENO: checking for $ac_header" >&5
23403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23410 # Is the header compilable?
23411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23413 cat >conftest.$ac_ext <<_ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23419 $ac_includes_default
23420 #include <$ac_header>
23422 rm -f conftest.$ac_objext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23424 (eval $ac_compile) 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } &&
23431 { ac_try='test -z "$ac_c_werror_flag"
23432 || test ! -s conftest.err'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest.$ac_objext'
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; }; then
23444 ac_header_compiler=yes
23446 echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23449 ac_header_compiler=no
23451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23453 echo "${ECHO_T}$ac_header_compiler" >&6
23455 # Is the header present?
23456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 #include <$ac_header>
23466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } >/dev/null; then
23474 if test -s conftest.err; then
23475 ac_cpp_err=$ac_c_preproc_warn_flag
23476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23483 if test -z "$ac_cpp_err"; then
23484 ac_header_preproc=yes
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23489 ac_header_preproc=no
23491 rm -f conftest.err conftest.$ac_ext
23492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23493 echo "${ECHO_T}$ac_header_preproc" >&6
23495 # So? What about this header?
23496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23502 ac_header_preproc=yes
23505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23519 ## ----------------------------------- ##
23520 ## Report this to llvmbugs@cs.uiuc.edu ##
23521 ## ----------------------------------- ##
23524 sed "s/^/$as_me: WARNING: /" >&2
23527 echo "$as_me:$LINENO: checking for $ac_header" >&5
23528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 eval "$as_ac_Header=\$ac_header_preproc"
23534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23539 cat >>confdefs.h <<_ACEOF
23540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23548 for ac_func in getpagesize
23550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23551 echo "$as_me:$LINENO: checking for $ac_func" >&5
23552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23553 if eval "test \"\${$as_ac_var+set}\" = set"; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 cat >conftest.$ac_ext <<_ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23564 #define $ac_func innocuous_$ac_func
23566 /* System header to define __stub macros and hopefully few prototypes,
23567 which can conflict with char $ac_func (); below.
23568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23569 <limits.h> exists even on freestanding compilers. */
23572 # include <limits.h>
23574 # include <assert.h>
23579 /* Override any gcc2 internal prototype to avoid an error. */
23584 /* We use char because int might match the return type of a gcc2
23585 builtin and then its argument prototype would still apply. */
23587 /* The GNU C library defines this for functions which it implements
23588 to always fail with ENOSYS. Some functions are actually named
23589 something starting with __ and the normal name is an alias. */
23590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23593 char (*f) () = $ac_func;
23602 return f != $ac_func;
23607 rm -f conftest.$ac_objext conftest$ac_exeext
23608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23609 (eval $ac_link) 2>conftest.er1
23611 grep -v '^ *+' conftest.er1 >conftest.err
23613 cat conftest.err >&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } &&
23616 { ac_try='test -z "$ac_c_werror_flag"
23617 || test ! -s conftest.err'
23618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619 (eval $ac_try) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); }; } &&
23623 { ac_try='test -s conftest$ac_exeext'
23624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625 (eval $ac_try) 2>&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 eval "$as_ac_var=yes"
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 eval "$as_ac_var=no"
23636 rm -f conftest.err conftest.$ac_objext \
23637 conftest$ac_exeext conftest.$ac_ext
23639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23641 if test `eval echo '${'$as_ac_var'}'` = yes; then
23642 cat >>confdefs.h <<_ACEOF
23643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23649 echo "$as_me:$LINENO: checking for working mmap" >&5
23650 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23651 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23652 echo $ECHO_N "(cached) $ECHO_C" >&6
23654 if test "$cross_compiling" = yes; then
23655 ac_cv_func_mmap_fixed_mapped=no
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 $ac_includes_default
23664 /* malloc might have been renamed as rpl_malloc. */
23667 /* Thanks to Mike Haertel and Jim Avera for this test.
23668 Here is a matrix of mmap possibilities:
23669 mmap private not fixed
23670 mmap private fixed at somewhere currently unmapped
23671 mmap private fixed at somewhere already mapped
23672 mmap shared not fixed
23673 mmap shared fixed at somewhere currently unmapped
23674 mmap shared fixed at somewhere already mapped
23675 For private mappings, we should verify that changes cannot be read()
23676 back from the file, nor mmap's back from the file at a different
23677 address. (There have been systems where private was not correctly
23678 implemented like the infamous i386 svr4.0, and systems where the
23679 VM page cache was not coherent with the file system buffer cache
23680 like early versions of FreeBSD and possibly contemporary NetBSD.)
23681 For shared mappings, we should conversely verify that changes get
23682 propagated back to all the places they're supposed to be.
23684 Grep wants private fixed already mapped.
23685 The main things grep needs to know about mmap are:
23686 * does it exist and is it safe to write into the mmap'd area
23687 * how to use it (BSD variants) */
23690 #include <sys/mman.h>
23692 #if !STDC_HEADERS && !HAVE_STDLIB_H
23696 /* This mess was copied from the GNU getpagesize.h. */
23697 #if !HAVE_GETPAGESIZE
23698 /* Assume that all systems that can run configure have sys/param.h. */
23699 # if !HAVE_SYS_PARAM_H
23700 # define HAVE_SYS_PARAM_H 1
23703 # ifdef _SC_PAGESIZE
23704 # define getpagesize() sysconf(_SC_PAGESIZE)
23705 # else /* no _SC_PAGESIZE */
23706 # if HAVE_SYS_PARAM_H
23707 # include <sys/param.h>
23708 # ifdef EXEC_PAGESIZE
23709 # define getpagesize() EXEC_PAGESIZE
23710 # else /* no EXEC_PAGESIZE */
23712 # define getpagesize() NBPG * CLSIZE
23715 # endif /* no CLSIZE */
23716 # else /* no NBPG */
23718 # define getpagesize() NBPC
23719 # else /* no NBPC */
23721 # define getpagesize() PAGESIZE
23722 # endif /* PAGESIZE */
23723 # endif /* no NBPC */
23724 # endif /* no NBPG */
23725 # endif /* no EXEC_PAGESIZE */
23726 # else /* no HAVE_SYS_PARAM_H */
23727 # define getpagesize() 8192 /* punt totally */
23728 # endif /* no HAVE_SYS_PARAM_H */
23729 # endif /* no _SC_PAGESIZE */
23731 #endif /* no HAVE_GETPAGESIZE */
23736 char *data, *data2, *data3;
23740 pagesize = getpagesize ();
23742 /* First, make a file with some known garbage in it. */
23743 data = (char *) malloc (pagesize);
23746 for (i = 0; i < pagesize; ++i)
23747 *(data + i) = rand ();
23749 fd = creat ("conftest.mmap", 0600);
23752 if (write (fd, data, pagesize) != pagesize)
23756 /* Next, try to mmap the file at a fixed address which already has
23757 something else allocated at it. If we can, also make sure that
23758 we see the same garbage. */
23759 fd = open ("conftest.mmap", O_RDWR);
23762 data2 = (char *) malloc (2 * pagesize);
23765 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23766 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23767 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23769 for (i = 0; i < pagesize; ++i)
23770 if (*(data + i) != *(data2 + i))
23773 /* Finally, make sure that changes to the mapped area do not
23774 percolate back to the file as seen by read(). (This is a bug on
23775 some variants of i386 svr4.0.) */
23776 for (i = 0; i < pagesize; ++i)
23777 *(data2 + i) = *(data2 + i) + 1;
23778 data3 = (char *) malloc (pagesize);
23781 if (read (fd, data3, pagesize) != pagesize)
23783 for (i = 0; i < pagesize; ++i)
23784 if (*(data + i) != *(data3 + i))
23790 rm -f conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792 (eval $ac_link) 2>&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797 (eval $ac_try) 2>&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); }; }; then
23801 ac_cv_func_mmap_fixed_mapped=yes
23803 echo "$as_me: program exited with status $ac_status" >&5
23804 echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23807 ( exit $ac_status )
23808 ac_cv_func_mmap_fixed_mapped=no
23810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23813 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23814 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23815 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23817 cat >>confdefs.h <<\_ACEOF
23818 #define HAVE_MMAP 1
23822 rm -f conftest.mmap
23824 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23826 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23827 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23829 echo "$as_me:$LINENO: checking for mmap of files" >&5
23830 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23831 if test "${ac_cv_func_mmap_file+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23835 ac_cpp='$CPP $CPPFLAGS'
23836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23840 if test "$cross_compiling" = yes; then
23841 ac_cv_func_mmap_file=no
23843 cat >conftest.$ac_ext <<_ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23851 #include <sys/types.h>
23852 #include <sys/mman.h>
23860 fd = creat ("foo",0777);
23861 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23863 return (fd != (int) MAP_FAILED);
23868 rm -f conftest$ac_exeext
23869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870 (eval $ac_link) 2>&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 ac_cv_func_mmap_file=yes
23881 echo "$as_me: program exited with status $ac_status" >&5
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.$ac_ext >&5
23885 ( exit $ac_status )
23886 ac_cv_func_mmap_file=no
23888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23891 ac_cpp='$CPP $CPPFLAGS'
23892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23898 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23899 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23900 if test "$ac_cv_func_mmap_file" = yes; then
23902 cat >>confdefs.h <<\_ACEOF
23903 #define HAVE_MMAP_FILE
23910 if test "$ac_cv_func_mmap_file" = "no"
23912 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23913 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23915 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23916 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23917 if test "${ac_cv_header_mmap_anon+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 ac_cpp='$CPP $CPPFLAGS'
23922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 #include <sys/mman.h>
23933 #include <unistd.h>
23938 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23943 rm -f conftest.$ac_objext
23944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23945 (eval $ac_compile) 2>conftest.er1
23947 grep -v '^ *+' conftest.er1 >conftest.err
23949 cat conftest.err >&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } &&
23952 { ac_try='test -z "$ac_c_werror_flag"
23953 || test ! -s conftest.err'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; } &&
23959 { ac_try='test -s conftest.$ac_objext'
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23965 ac_cv_header_mmap_anon=yes
23967 echo "$as_me: failed program was:" >&5
23968 sed 's/^/| /' conftest.$ac_ext >&5
23970 ac_cv_header_mmap_anon=no
23972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
23981 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23982 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23983 if test "$ac_cv_header_mmap_anon" = yes; then
23985 cat >>confdefs.h <<\_ACEOF
23986 #define HAVE_MMAP_ANONYMOUS
23991 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23992 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23993 if test "${ac_cv_type_signal+set}" = set; then
23994 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 #include <sys/types.h>
24003 #include <signal.h>
24008 extern "C" void (*signal (int, void (*)(int)))(int);
24010 void (*signal ()) ();
24021 rm -f conftest.$ac_objext
24022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24023 (eval $ac_compile) 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); } &&
24030 { ac_try='test -z "$ac_c_werror_flag"
24031 || test ! -s conftest.err'
24032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033 (eval $ac_try) 2>&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; } &&
24037 { ac_try='test -s conftest.$ac_objext'
24038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); }; }; then
24043 ac_cv_type_signal=void
24045 echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_cv_type_signal=int
24050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24052 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24053 echo "${ECHO_T}$ac_cv_type_signal" >&6
24055 cat >>confdefs.h <<_ACEOF
24056 #define RETSIGTYPE $ac_cv_type_signal
24069 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24072 echo "$as_me:$LINENO: checking for $ac_func" >&5
24073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24074 if eval "test \"\${$as_ac_var+set}\" = set"; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24085 #define $ac_func innocuous_$ac_func
24087 /* System header to define __stub macros and hopefully few prototypes,
24088 which can conflict with char $ac_func (); below.
24089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24090 <limits.h> exists even on freestanding compilers. */
24093 # include <limits.h>
24095 # include <assert.h>
24100 /* Override any gcc2 internal prototype to avoid an error. */
24105 /* We use char because int might match the return type of a gcc2
24106 builtin and then its argument prototype would still apply. */
24108 /* The GNU C library defines this for functions which it implements
24109 to always fail with ENOSYS. Some functions are actually named
24110 something starting with __ and the normal name is an alias. */
24111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24114 char (*f) () = $ac_func;
24123 return f != $ac_func;
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130 (eval $ac_link) 2>conftest.er1
24132 grep -v '^ *+' conftest.er1 >conftest.err
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -z "$ac_c_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest$ac_exeext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 eval "$as_ac_var=yes"
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 eval "$as_ac_var=no"
24157 rm -f conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24162 if test `eval echo '${'$as_ac_var'}'` = yes; then
24163 cat >>confdefs.h <<_ACEOF
24164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24170 echo "$as_me:$LINENO: checking for mprotect" >&5
24171 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24172 if test "${ac_cv_func_mprotect+set}" = set; then
24173 echo $ECHO_N "(cached) $ECHO_C" >&6
24175 cat >conftest.$ac_ext <<_ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24181 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24183 #define mprotect innocuous_mprotect
24185 /* System header to define __stub macros and hopefully few prototypes,
24186 which can conflict with char mprotect (); below.
24187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24188 <limits.h> exists even on freestanding compilers. */
24191 # include <limits.h>
24193 # include <assert.h>
24198 /* Override any gcc2 internal prototype to avoid an error. */
24203 /* We use char because int might match the return type of a gcc2
24204 builtin and then its argument prototype would still apply. */
24206 /* The GNU C library defines this for functions which it implements
24207 to always fail with ENOSYS. Some functions are actually named
24208 something starting with __ and the normal name is an alias. */
24209 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24212 char (*f) () = mprotect;
24221 return f != mprotect;
24226 rm -f conftest.$ac_objext conftest$ac_exeext
24227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24228 (eval $ac_link) 2>conftest.er1
24230 grep -v '^ *+' conftest.er1 >conftest.err
24232 cat conftest.err >&5
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); } &&
24235 { ac_try='test -z "$ac_c_werror_flag"
24236 || test ! -s conftest.err'
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; } &&
24242 { ac_try='test -s conftest$ac_exeext'
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; }; then
24248 ac_cv_func_mprotect=yes
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ac_cv_func_mprotect=no
24255 rm -f conftest.err conftest.$ac_objext \
24256 conftest$ac_exeext conftest.$ac_ext
24258 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24259 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24260 if test $ac_cv_func_mprotect = yes; then
24263 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24264 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24265 { (exit 1); exit 1; }; }
24270 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24271 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24273 ac_cpp='$CPP $CPPFLAGS'
24274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24278 oldcflags="$CFLAGS"
24279 CFLAGS="$CFLAGS -Wl,-R."
24280 cat >conftest.$ac_ext <<_ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h. */
24290 int main() { return 0; }
24295 rm -f conftest.$ac_objext conftest$ac_exeext
24296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24297 (eval $ac_link) 2>conftest.er1
24299 grep -v '^ *+' conftest.er1 >conftest.err
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } &&
24304 { ac_try='test -z "$ac_c_werror_flag"
24305 || test ! -s conftest.err'
24306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307 (eval $ac_try) 2>&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; } &&
24311 { ac_try='test -s conftest$ac_exeext'
24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313 (eval $ac_try) 2>&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); }; }; then
24317 ac_cv_link_use_r=yes
24319 echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.$ac_ext >&5
24322 ac_cv_link_use_r=no
24324 rm -f conftest.err conftest.$ac_objext \
24325 conftest$ac_exeext conftest.$ac_ext
24326 CFLAGS="$oldcflags"
24328 ac_cpp='$CPP $CPPFLAGS'
24329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24333 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24334 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24335 if test "$ac_cv_link_use_r" = yes
24338 cat >>confdefs.h <<\_ACEOF
24339 #define HAVE_LINK_R 1
24345 # Check whether --enable-optimized or --disable-optimized was given.
24346 if test "${enable_optimized+set}" = set; then
24347 enableval="$enable_optimized"
24352 if test ${enableval} = "no"
24357 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24361 # Check whether --enable-jit or --disable-jit was given.
24362 if test "${enable_jit+set}" = set; then
24363 enableval="$enable_jit"
24368 if test ${enableval} = "no"
24375 JIT=TARGET_HAS_JIT=1
24379 JIT=TARGET_HAS_JIT=1
24390 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24391 if test "${with_llvmgccdir+set}" = set; then
24392 withval="$with_llvmgccdir"
24393 LLVMGCCDIR=$withval
24396 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24397 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24399 if test -d "$LLVMGCCDIR"
24401 if test -x "$LLVMGCCDIR/bin/gcc"
24403 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24407 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24408 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24409 if test "$LLVM_GCC_CHECK" = "no"
24413 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24414 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24416 if test -x "$LLVM_GCC_CHECK"
24418 cp /dev/null conftest.c
24419 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24425 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24426 LLVMCC1=$llvmcc1path
24428 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24429 LLVMCC1PLUS=$llvmcc1pluspath
24432 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24433 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24434 if test "$LLVM_GCC_SANE" = "no"
24439 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24440 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24441 eval "SHLIBEXT=$shrext_cmds"
24442 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24443 echo "${ECHO_T}$SHLIBEXT" >&6
24447 cat >>confdefs.h <<_ACEOF
24448 #define SHLIBEXT "$SHLIBEXT"
24452 # Translate the various configuration directories and other basic
24453 # information into substitutions that will end up in config.h.in so
24454 # that these configured values can be hard-wired into a program.
24455 eval LLVM_PREFIX="${prefix}";
24456 eval LLVM_BINDIR="${prefix}/bin";
24457 eval LLVM_LIBDIR="${prefix}/lib";
24458 eval LLVM_DATADIR="${prefix}/data";
24459 eval LLVM_DOCSDIR="${prefix}/docs";
24460 eval LLVM_ETCDIR="${prefix}/etc";
24461 eval LLVM_INCLUDEDIR="${prefix}/include";
24462 eval LLVM_INFODIR="${prefix}/info";
24463 eval LLVM_MANDIR="${prefix}/man";
24464 LLVM_CONFIGTIME=`date`
24476 cat >>confdefs.h <<_ACEOF
24477 #define LLVM_PREFIX "$LLVM_PREFIX"
24481 cat >>confdefs.h <<_ACEOF
24482 #define LLVM_BINDIR "$LLVM_BINDIR"
24486 cat >>confdefs.h <<_ACEOF
24487 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24491 cat >>confdefs.h <<_ACEOF
24492 #define LLVM_DATADIR "$LLVM_DATADIR"
24496 cat >>confdefs.h <<_ACEOF
24497 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24501 cat >>confdefs.h <<_ACEOF
24502 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24506 cat >>confdefs.h <<_ACEOF
24507 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24511 cat >>confdefs.h <<_ACEOF
24512 #define LLVM_INFODIR "$LLVM_INFODIR"
24516 cat >>confdefs.h <<_ACEOF
24517 #define LLVM_MANDIR "$LLVM_MANDIR"
24521 cat >>confdefs.h <<_ACEOF
24522 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24526 cat >confcache <<\_ACEOF
24527 # This file is a shell script that caches the results of configure
24528 # tests run on this system so they can be shared between configure
24529 # scripts and configure runs, see configure's option --config-cache.
24530 # It is not useful on other systems. If it contains results you don't
24531 # want to keep, you may remove or edit it.
24533 # config.status only pays attention to the cache file if you give it
24534 # the --recheck option to rerun configure.
24536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24538 # following values.
24542 # The following way of writing the cache mishandles newlines in values,
24543 # but we know of no workaround that is simple, portable, and efficient.
24544 # So, don't put newlines in cache variables' values.
24545 # Ultrix sh set writes to stderr and can't be redirected directly,
24546 # and sets the high bit in the cache file unless we assign to the vars.
24549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24551 # `set' does not quote correctly, so add quotes (double-quote
24552 # substitution turns \\\\ into \\, and sed turns \\ into \).
24555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24558 # `set' quotes correctly as required by POSIX, so do not add quotes.
24560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24572 if test -w $cache_file; then
24573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24574 cat confcache >$cache_file
24576 echo "not updating unwritable cache $cache_file"
24581 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24582 # Let make expand exec_prefix.
24583 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24585 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24586 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24587 # trailing colons and then remove the whole line if VPATH becomes empty
24588 # (actually we leave an empty line to preserve line numbers).
24589 if test "x$srcdir" = x.; then
24590 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24591 s/:*\$(srcdir):*/:/;
24592 s/:*\${srcdir}:*/:/;
24594 s/^\([^=]*=[ ]*\):*/\1/;
24600 DEFS=-DHAVE_CONFIG_H
24604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24605 # 1. Remove the extension, and $U if already installed.
24606 ac_i=`echo "$ac_i" |
24607 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24609 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24610 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24612 LIBOBJS=$ac_libobjs
24614 LTLIBOBJS=$ac_ltlibobjs
24618 : ${CONFIG_STATUS=./config.status}
24619 ac_clean_files_save=$ac_clean_files
24620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24623 cat >$CONFIG_STATUS <<_ACEOF
24625 # Generated by $as_me.
24626 # Run this file to recreate the current configuration.
24627 # Compiler output produced by configure, useful for debugging
24628 # configure, is in config.log if it exists.
24631 ac_cs_recheck=false
24633 SHELL=\${CONFIG_SHELL-$SHELL}
24636 cat >>$CONFIG_STATUS <<\_ACEOF
24637 ## --------------------- ##
24638 ## M4sh Initialization. ##
24639 ## --------------------- ##
24641 # Be Bourne compatible
24642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24645 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24646 # is contrary to our usage. Disable this feature.
24647 alias -g '${1+"$@"}'='"$@"'
24648 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24651 DUALCASE=1; export DUALCASE # for MKS sh
24653 # Support unset when possible.
24654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24661 # Work around bugs in pre-3.0 UWIN ksh.
24662 $as_unset ENV MAIL MAILPATH
24669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24671 LC_TELEPHONE LC_TIME
24673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24674 eval $as_var=C; export $as_var
24680 # Required to use basename.
24681 if expr a : '\(a\)' >/dev/null 2>&1; then
24687 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24688 as_basename=basename
24694 # Name of the executable.
24695 as_me=`$as_basename "$0" ||
24696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24697 X"$0" : 'X\(//\)$' \| \
24698 X"$0" : 'X\(/\)$' \| \
24699 . : '\(.\)' 2>/dev/null ||
24701 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24702 /^X\/\(\/\/\)$/{ s//\1/; q; }
24703 /^X\/\(\/\).*/{ s//\1/; q; }
24707 # PATH needs CR, and LINENO needs CR and PATH.
24708 # Avoid depending upon Character Ranges.
24709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24712 as_cr_digits='0123456789'
24713 as_cr_alnum=$as_cr_Letters$as_cr_digits
24715 # The user is always right.
24716 if test "${PATH_SEPARATOR+set}" != set; then
24717 echo "#! /bin/sh" >conf$$.sh
24718 echo "exit 0" >>conf$$.sh
24720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24729 as_lineno_1=$LINENO
24730 as_lineno_2=$LINENO
24731 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24732 test "x$as_lineno_1" != "x$as_lineno_2" &&
24733 test "x$as_lineno_3" = "x$as_lineno_2" || {
24734 # Find who we are. Look in the path if we contain no path at all
24737 *[\\/]* ) as_myself=$0 ;;
24738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24739 for as_dir in $PATH
24742 test -z "$as_dir" && as_dir=.
24743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24748 # We did not find ourselves, most probably we were run as `sh COMMAND'
24749 # in which case we are not to be found in the path.
24750 if test "x$as_myself" = x; then
24753 if test ! -f "$as_myself"; then
24754 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24755 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24756 { (exit 1); exit 1; }; }
24758 case $CONFIG_SHELL in
24760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24764 test -z "$as_dir" && as_dir=.
24765 for as_base in sh bash ksh sh5; do
24768 if ("$as_dir/$as_base" -c '
24769 as_lineno_1=$LINENO
24770 as_lineno_2=$LINENO
24771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24772 test "x$as_lineno_1" != "x$as_lineno_2" &&
24773 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24774 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24775 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24776 CONFIG_SHELL=$as_dir/$as_base
24777 export CONFIG_SHELL
24778 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24787 # uniformly replaced by the line number. The first 'sed' inserts a
24788 # line-number line before each line; the second 'sed' does the real
24789 # work. The second script uses 'N' to pair each line-number line
24790 # with the numbered line, and appends trailing '-' during
24791 # substitution so that $LINENO is not a special case at line end.
24792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24793 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24794 sed '=' <$as_myself |
24799 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24802 s,^['$as_cr_digits']*\n,,
24803 ' >$as_me.lineno &&
24804 chmod +x $as_me.lineno ||
24805 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24806 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24807 { (exit 1); exit 1; }; }
24809 # Don't try to exec as it changes $[0], causing all sort of problems
24810 # (the dirname of $[0] is not the place where we might find the
24811 # original and so on. Autoconf is especially sensible to this).
24813 # Exit status is that of the last command.
24818 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24819 *c*,-n*) ECHO_N= ECHO_C='
24821 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24822 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24825 if expr a : '\(a\)' >/dev/null 2>&1; then
24831 rm -f conf$$ conf$$.exe conf$$.file
24833 if ln -s conf$$.file conf$$ 2>/dev/null; then
24834 # We could just check for DJGPP; but this test a) works b) is more generic
24835 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24836 if test -f conf$$.exe; then
24837 # Don't use ln at all; we don't have any links
24842 elif ln conf$$.file conf$$ 2>/dev/null; then
24847 rm -f conf$$ conf$$.exe conf$$.file
24849 if mkdir -p . 2>/dev/null; then
24852 test -d ./-p && rmdir ./-p
24856 as_executable_p="test -f"
24858 # Sed expression to map a string onto a valid CPP name.
24859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24861 # Sed expression to map a string onto a valid variable name.
24862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24866 # We need space, tab and new line, in precisely that order.
24876 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24877 # report actual input values of CONFIG_FILES etc. instead of their
24878 # values after options handling. Logging --version etc. is OK.
24882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24883 ## Running $as_me. ##
24888 This file was extended by llvm $as_me 1.4, which was
24889 generated by GNU Autoconf 2.59. Invocation command line was
24891 CONFIG_FILES = $CONFIG_FILES
24892 CONFIG_HEADERS = $CONFIG_HEADERS
24893 CONFIG_LINKS = $CONFIG_LINKS
24894 CONFIG_COMMANDS = $CONFIG_COMMANDS
24898 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24902 # Files that config.status was made for.
24903 if test -n "$ac_config_files"; then
24904 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24907 if test -n "$ac_config_headers"; then
24908 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24911 if test -n "$ac_config_links"; then
24912 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24915 if test -n "$ac_config_commands"; then
24916 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24919 cat >>$CONFIG_STATUS <<\_ACEOF
24922 \`$as_me' instantiates files from templates according to the
24923 current configuration.
24925 Usage: $0 [OPTIONS] [FILE]...
24927 -h, --help print this help, then exit
24928 -V, --version print version number, then exit
24929 -q, --quiet do not print progress messages
24930 -d, --debug don't remove temporary files
24931 --recheck update $as_me by reconfiguring in the same conditions
24932 --file=FILE[:TEMPLATE]
24933 instantiate the configuration file FILE
24934 --header=FILE[:TEMPLATE]
24935 instantiate the configuration header FILE
24937 Configuration files:
24940 Configuration headers:
24943 Configuration links:
24946 Configuration commands:
24949 Report bugs to <bug-autoconf@gnu.org>."
24952 cat >>$CONFIG_STATUS <<_ACEOF
24954 llvm config.status 1.4
24955 configured by $0, generated by GNU Autoconf 2.59,
24956 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24958 Copyright (C) 2003 Free Software Foundation, Inc.
24959 This config.status script is free software; the Free Software Foundation
24960 gives unlimited permission to copy, distribute and modify it."
24965 cat >>$CONFIG_STATUS <<\_ACEOF
24966 # If no file are specified by the user, then we need to provide default
24967 # value. By we need to know if files were specified by the user.
24973 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24974 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24982 *) # This is not an option, so the user has probably given explicit
24985 ac_need_defaults=false;;
24989 # Handling of the options.
24991 cat >>$CONFIG_STATUS <<\_ACEOF
24992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24994 --version | --vers* | -V )
24995 echo "$ac_cs_version"; exit 0 ;;
24997 # Conflict between --help and --header
24998 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24999 Try \`$0 --help' for more information." >&5
25000 echo "$as_me: error: ambiguous option: $1
25001 Try \`$0 --help' for more information." >&2;}
25002 { (exit 1); exit 1; }; };;
25003 --help | --hel | -h )
25004 echo "$ac_cs_usage"; exit 0 ;;
25005 --debug | --d* | -d )
25007 --file | --fil | --fi | --f )
25009 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25010 ac_need_defaults=false;;
25011 --header | --heade | --head | --hea )
25013 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25014 ac_need_defaults=false;;
25015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25019 # This is an error.
25020 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25021 Try \`$0 --help' for more information." >&5
25022 echo "$as_me: error: unrecognized option: $1
25023 Try \`$0 --help' for more information." >&2;}
25024 { (exit 1); exit 1; }; } ;;
25026 *) ac_config_targets="$ac_config_targets $1" ;;
25032 ac_configure_extra_args=
25034 if $ac_cs_silent; then
25036 ac_configure_extra_args="$ac_configure_extra_args --silent"
25040 cat >>$CONFIG_STATUS <<_ACEOF
25041 if \$ac_cs_recheck; then
25042 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25043 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25048 cat >>$CONFIG_STATUS <<_ACEOF
25050 # INIT-COMMANDS section.
25053 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25054 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25055 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25056 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25057 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25058 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25059 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25060 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25061 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25062 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25063 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25064 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25065 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25071 cat >>$CONFIG_STATUS <<\_ACEOF
25072 for ac_config_target in $ac_config_targets
25074 case "$ac_config_target" in
25075 # Handling of arguments.
25076 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25077 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25078 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25079 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25080 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25081 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25082 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25083 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25084 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25085 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25086 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25087 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25088 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25089 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25090 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25091 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25092 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25093 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25094 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25095 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25096 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25099 { (exit 1); exit 1; }; };;
25103 # If the user did not use the arguments to specify the items to instantiate,
25104 # then the envvar interface is used. Set only those that are not.
25105 # We use the long form for the default assignment because of an extremely
25106 # bizarre bug on SunOS 4.1.3.
25107 if $ac_need_defaults; then
25108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25110 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25114 # Have a temporary directory for convenience. Make it in the build tree
25115 # simply because there is no reason to put it here, and in addition,
25116 # creating and moving files from /tmp can sometimes cause problems.
25117 # Create a temporary directory, and hook for its removal unless debugging.
25120 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25121 trap '{ (exit 1); exit 1; }' 1 2 13 15
25124 # Create a (secure) tmp directory for tmp files.
25127 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25128 test -n "$tmp" && test -d "$tmp"
25131 tmp=./confstat$$-$RANDOM
25132 (umask 077 && mkdir $tmp)
25135 echo "$me: cannot create a temporary directory in ." >&2
25136 { (exit 1); exit 1; }
25141 cat >>$CONFIG_STATUS <<_ACEOF
25144 # CONFIG_FILES section.
25147 # No need to generate the scripts if there are no CONFIG_FILES.
25148 # This happens for instance when ./config.status config.h
25149 if test -n "\$CONFIG_FILES"; then
25150 # Protect against being on the right side of a sed subst in config.status.
25151 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25152 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25153 s,@SHELL@,$SHELL,;t t
25154 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25155 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25156 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25157 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25158 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25159 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25160 s,@exec_prefix@,$exec_prefix,;t t
25161 s,@prefix@,$prefix,;t t
25162 s,@program_transform_name@,$program_transform_name,;t t
25163 s,@bindir@,$bindir,;t t
25164 s,@sbindir@,$sbindir,;t t
25165 s,@libexecdir@,$libexecdir,;t t
25166 s,@datadir@,$datadir,;t t
25167 s,@sysconfdir@,$sysconfdir,;t t
25168 s,@sharedstatedir@,$sharedstatedir,;t t
25169 s,@localstatedir@,$localstatedir,;t t
25170 s,@libdir@,$libdir,;t t
25171 s,@includedir@,$includedir,;t t
25172 s,@oldincludedir@,$oldincludedir,;t t
25173 s,@infodir@,$infodir,;t t
25174 s,@mandir@,$mandir,;t t
25175 s,@build_alias@,$build_alias,;t t
25176 s,@host_alias@,$host_alias,;t t
25177 s,@target_alias@,$target_alias,;t t
25178 s,@DEFS@,$DEFS,;t t
25179 s,@ECHO_C@,$ECHO_C,;t t
25180 s,@ECHO_N@,$ECHO_N,;t t
25181 s,@ECHO_T@,$ECHO_T,;t t
25182 s,@LIBS@,$LIBS,;t t
25183 s,@subdirs@,$subdirs,;t t
25184 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25185 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25186 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25187 s,@build@,$build,;t t
25188 s,@build_cpu@,$build_cpu,;t t
25189 s,@build_vendor@,$build_vendor,;t t
25190 s,@build_os@,$build_os,;t t
25191 s,@host@,$host,;t t
25192 s,@host_cpu@,$host_cpu,;t t
25193 s,@host_vendor@,$host_vendor,;t t
25194 s,@host_os@,$host_os,;t t
25195 s,@target@,$target,;t t
25196 s,@target_cpu@,$target_cpu,;t t
25197 s,@target_vendor@,$target_vendor,;t t
25198 s,@target_os@,$target_os,;t t
25200 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25201 s,@ARCH@,$ARCH,;t t
25203 s,@CXXFLAGS@,$CXXFLAGS,;t t
25204 s,@LDFLAGS@,$LDFLAGS,;t t
25205 s,@CPPFLAGS@,$CPPFLAGS,;t t
25206 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25207 s,@EXEEXT@,$EXEEXT,;t t
25208 s,@OBJEXT@,$OBJEXT,;t t
25210 s,@CFLAGS@,$CFLAGS,;t t
25211 s,@ac_ct_CC@,$ac_ct_CC,;t t
25213 s,@ifGNUmake@,$ifGNUmake,;t t
25215 s,@LEXLIB@,$LEXLIB,;t t
25216 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25217 s,@FLEX@,$FLEX,;t t
25218 s,@YACC@,$YACC,;t t
25219 s,@BISON@,$BISON,;t t
25220 s,@EGREP@,$EGREP,;t t
25221 s,@LN_S@,$LN_S,;t t
25222 s,@ECHO@,$ECHO,;t t
25224 s,@ac_ct_AR@,$ac_ct_AR,;t t
25225 s,@RANLIB@,$RANLIB,;t t
25226 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25227 s,@STRIP@,$STRIP,;t t
25228 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25229 s,@CXXCPP@,$CXXCPP,;t t
25231 s,@FFLAGS@,$FFLAGS,;t t
25232 s,@ac_ct_F77@,$ac_ct_F77,;t t
25233 s,@LIBTOOL@,$LIBTOOL,;t t
25236 s,@ETAGS@,$ETAGS,;t t
25237 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25238 s,@PYTHON@,$PYTHON,;t t
25239 s,@QMTEST@,$QMTEST,;t t
25240 s,@RUNTEST@,$RUNTEST,;t t
25241 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25242 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25243 s,@ENDIAN@,$ENDIAN,;t t
25244 s,@ALLOCA@,$ALLOCA,;t t
25245 s,@MMAP_FILE@,$MMAP_FILE,;t t
25246 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25248 s,@LLVMCC1@,$LLVMCC1,;t t
25249 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25250 s,@SHLIBEXT@,$SHLIBEXT,;t t
25251 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25252 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25253 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25254 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25255 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25256 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25257 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25258 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25259 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25260 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25261 s,@LIBOBJS@,$LIBOBJS,;t t
25262 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25267 cat >>$CONFIG_STATUS <<\_ACEOF
25268 # Split the substitutions into bite-sized pieces for seds with
25269 # small command number limits, like on Digital OSF/1 and HP-UX.
25270 ac_max_sed_lines=48
25271 ac_sed_frag=1 # Number of current file.
25272 ac_beg=1 # First line for current file.
25273 ac_end=$ac_max_sed_lines # Line after last line for current file.
25276 while $ac_more_lines; do
25277 if test $ac_beg -gt 1; then
25278 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25280 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25282 if test ! -s $tmp/subs.frag; then
25283 ac_more_lines=false
25285 # The purpose of the label and of the branching condition is to
25286 # speed up the sed processing (if there are no `@' at all, there
25287 # is no need to browse any of the substitutions).
25288 # These are the two extra sed commands mentioned above.
25290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25291 if test -z "$ac_sed_cmds"; then
25292 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25294 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25296 ac_sed_frag=`expr $ac_sed_frag + 1`
25298 ac_end=`expr $ac_end + $ac_max_sed_lines`
25301 if test -z "$ac_sed_cmds"; then
25304 fi # test -n "$CONFIG_FILES"
25307 cat >>$CONFIG_STATUS <<\_ACEOF
25308 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25311 - | *:- | *:-:* ) # input from stdin
25313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25317 * ) ac_file_in=$ac_file.in ;;
25320 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25323 X"$ac_file" : 'X\(//\)[^/]' \| \
25324 X"$ac_file" : 'X\(//\)$' \| \
25325 X"$ac_file" : 'X\(/\)' \| \
25326 . : '\(.\)' 2>/dev/null ||
25328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25330 /^X\(\/\/\)$/{ s//\1/; q; }
25331 /^X\(\/\).*/{ s//\1/; q; }
25333 { if $as_mkdir_p; then
25338 while test ! -d "$as_dir"; do
25339 as_dirs="$as_dir $as_dirs"
25340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25342 X"$as_dir" : 'X\(//\)[^/]' \| \
25343 X"$as_dir" : 'X\(//\)$' \| \
25344 X"$as_dir" : 'X\(/\)' \| \
25345 . : '\(.\)' 2>/dev/null ||
25347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25349 /^X\(\/\/\)$/{ s//\1/; q; }
25350 /^X\(\/\).*/{ s//\1/; q; }
25353 test ! -n "$as_dirs" || mkdir $as_dirs
25354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25356 { (exit 1); exit 1; }; }; }
25360 if test "$ac_dir" != .; then
25361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25362 # A "../" for each directory in $ac_dir_suffix.
25363 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25365 ac_dir_suffix= ac_top_builddir=
25369 .) # No --srcdir option. We are building in place.
25371 if test -z "$ac_top_builddir"; then
25374 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25376 [\\/]* | ?:[\\/]* ) # Absolute path.
25377 ac_srcdir=$srcdir$ac_dir_suffix;
25378 ac_top_srcdir=$srcdir ;;
25379 *) # Relative path.
25380 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25381 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25384 # Do not use `cd foo && pwd` to compute absolute paths, because
25385 # the directories may not exist.
25387 .) ac_abs_builddir="$ac_dir";;
25390 .) ac_abs_builddir=`pwd`;;
25391 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25392 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25395 case $ac_abs_builddir in
25396 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25398 case ${ac_top_builddir}. in
25399 .) ac_abs_top_builddir=$ac_abs_builddir;;
25400 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25401 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25404 case $ac_abs_builddir in
25405 .) ac_abs_srcdir=$ac_srcdir;;
25408 .) ac_abs_srcdir=$ac_abs_builddir;;
25409 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25410 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25413 case $ac_abs_builddir in
25414 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25416 case $ac_top_srcdir in
25417 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25418 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25419 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25429 if test x"$ac_file" != x-; then
25430 { echo "$as_me:$LINENO: creating $ac_file" >&5
25431 echo "$as_me: creating $ac_file" >&6;}
25434 # Let's still pretend it is `configure' which instantiates (i.e., don't
25435 # use $as_me), people would be surprised to read:
25436 # /* config.h. Generated by config.status. */
25437 if test x"$ac_file" = x-; then
25440 configure_input="$ac_file. "
25442 configure_input=$configure_input"Generated from `echo $ac_file_in |
25443 sed 's,.*/,,'` by configure."
25445 # First look for the input files in the build tree, otherwise in the
25447 ac_file_inputs=`IFS=:
25448 for f in $ac_file_in; do
25450 -) echo $tmp/stdin ;;
25452 # Absolute (can't be DOS-style, as IFS=:)
25453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25454 echo "$as_me: error: cannot find input file: $f" >&2;}
25455 { (exit 1); exit 1; }; }
25458 if test -f "$f"; then
25461 elif test -f "$srcdir/$f"; then
25466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25467 echo "$as_me: error: cannot find input file: $f" >&2;}
25468 { (exit 1); exit 1; }; }
25471 done` || { (exit 1); exit 1; }
25473 cat >>$CONFIG_STATUS <<_ACEOF
25477 cat >>$CONFIG_STATUS <<\_ACEOF
25479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25480 s,@configure_input@,$configure_input,;t t
25481 s,@srcdir@,$ac_srcdir,;t t
25482 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25483 s,@top_srcdir@,$ac_top_srcdir,;t t
25484 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25485 s,@builddir@,$ac_builddir,;t t
25486 s,@abs_builddir@,$ac_abs_builddir,;t t
25487 s,@top_builddir@,$ac_top_builddir,;t t
25488 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25489 s,@INSTALL@,$ac_INSTALL,;t t
25490 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25492 if test x"$ac_file" != x-; then
25493 mv $tmp/out $ac_file
25501 cat >>$CONFIG_STATUS <<\_ACEOF
25504 # CONFIG_HEADER section.
25507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25510 # ac_d sets the value in "#define NAME VALUE" lines.
25511 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25512 ac_dB='[ ].*$,\1#\2'
25515 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25516 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25517 ac_uB='$,\1#\2define\3'
25521 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25524 - | *:- | *:-:* ) # input from stdin
25526 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25528 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25530 * ) ac_file_in=$ac_file.in ;;
25533 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25534 echo "$as_me: creating $ac_file" >&6;}
25536 # First look for the input files in the build tree, otherwise in the
25538 ac_file_inputs=`IFS=:
25539 for f in $ac_file_in; do
25541 -) echo $tmp/stdin ;;
25543 # Absolute (can't be DOS-style, as IFS=:)
25544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25545 echo "$as_me: error: cannot find input file: $f" >&2;}
25546 { (exit 1); exit 1; }; }
25547 # Do quote $f, to prevent DOS paths from being IFS'd.
25550 if test -f "$f"; then
25553 elif test -f "$srcdir/$f"; then
25558 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25559 echo "$as_me: error: cannot find input file: $f" >&2;}
25560 { (exit 1); exit 1; }; }
25563 done` || { (exit 1); exit 1; }
25564 # Remove the trailing spaces.
25565 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25569 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25570 # `conftest.undefs', that substitutes the proper values into
25571 # config.h.in to produce config.h. The first handles `#define'
25572 # templates, and the second `#undef' templates.
25573 # And first: Protect against being on the right side of a sed subst in
25574 # config.status. Protect against being in an unquoted here document
25575 # in config.status.
25576 rm -f conftest.defines conftest.undefs
25577 # Using a here document instead of a string reduces the quoting nightmare.
25578 # Putting comments in sed scripts is not portable.
25580 # `end' is used to avoid that the second main sed command (meant for
25581 # 0-ary CPP macros) applies to n-ary macro definitions.
25582 # See the Autoconf documentation for `clear'.
25583 cat >confdef2sed.sed <<\_ACEOF
25588 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25590 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25593 # If some macros were called several times there might be several times
25594 # the same #defines, which is useless. Nevertheless, we may not want to
25595 # sort them, since we want the *last* AC-DEFINE to be honored.
25596 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25597 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25598 rm -f confdef2sed.sed
25600 # This sed command replaces #undef with comments. This is necessary, for
25601 # example, in the case of _POSIX_SOURCE, which is predefined and required
25602 # on some systems where configure will not decide to define it.
25603 cat >>conftest.undefs <<\_ACEOF
25604 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25607 # Break up conftest.defines because some shells have a limit on the size
25608 # of here documents, and old seds have small limits too (100 cmds).
25609 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25610 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25611 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25612 echo ' :' >>$CONFIG_STATUS
25613 rm -f conftest.tail
25614 while grep . conftest.defines >/dev/null
25616 # Write a limited-size here document to $tmp/defines.sed.
25617 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25618 # Speed up: don't consider the non `#define' lines.
25619 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25620 # Work around the forget-to-reset-the-flag bug.
25621 echo 't clr' >>$CONFIG_STATUS
25622 echo ': clr' >>$CONFIG_STATUS
25623 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25625 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25627 mv $tmp/out $tmp/in
25629 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25630 rm -f conftest.defines
25631 mv conftest.tail conftest.defines
25633 rm -f conftest.defines
25634 echo ' fi # grep' >>$CONFIG_STATUS
25635 echo >>$CONFIG_STATUS
25637 # Break up conftest.undefs because some shells have a limit on the size
25638 # of here documents, and old seds have small limits too (100 cmds).
25639 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25640 rm -f conftest.tail
25641 while grep . conftest.undefs >/dev/null
25643 # Write a limited-size here document to $tmp/undefs.sed.
25644 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25645 # Speed up: don't consider the non `#undef'
25646 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25647 # Work around the forget-to-reset-the-flag bug.
25648 echo 't clr' >>$CONFIG_STATUS
25649 echo ': clr' >>$CONFIG_STATUS
25650 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25652 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25654 mv $tmp/out $tmp/in
25656 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25657 rm -f conftest.undefs
25658 mv conftest.tail conftest.undefs
25660 rm -f conftest.undefs
25662 cat >>$CONFIG_STATUS <<\_ACEOF
25663 # Let's still pretend it is `configure' which instantiates (i.e., don't
25664 # use $as_me), people would be surprised to read:
25665 # /* config.h. Generated by config.status. */
25666 if test x"$ac_file" = x-; then
25667 echo "/* Generated by configure. */" >$tmp/config.h
25669 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25671 cat $tmp/in >>$tmp/config.h
25673 if test x"$ac_file" != x-; then
25674 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25675 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25676 echo "$as_me: $ac_file is unchanged" >&6;}
25678 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25680 X"$ac_file" : 'X\(//\)[^/]' \| \
25681 X"$ac_file" : 'X\(//\)$' \| \
25682 X"$ac_file" : 'X\(/\)' \| \
25683 . : '\(.\)' 2>/dev/null ||
25685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25687 /^X\(\/\/\)$/{ s//\1/; q; }
25688 /^X\(\/\).*/{ s//\1/; q; }
25690 { if $as_mkdir_p; then
25695 while test ! -d "$as_dir"; do
25696 as_dirs="$as_dir $as_dirs"
25697 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25699 X"$as_dir" : 'X\(//\)[^/]' \| \
25700 X"$as_dir" : 'X\(//\)$' \| \
25701 X"$as_dir" : 'X\(/\)' \| \
25702 . : '\(.\)' 2>/dev/null ||
25704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25706 /^X\(\/\/\)$/{ s//\1/; q; }
25707 /^X\(\/\).*/{ s//\1/; q; }
25710 test ! -n "$as_dirs" || mkdir $as_dirs
25711 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25713 { (exit 1); exit 1; }; }; }
25716 mv $tmp/config.h $ac_file
25720 rm -f $tmp/config.h
25724 cat >>$CONFIG_STATUS <<\_ACEOF
25727 # CONFIG_LINKS section.
25730 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25731 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25732 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25734 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25735 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25737 if test ! -r $srcdir/$ac_source; then
25738 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25739 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25740 { (exit 1); exit 1; }; }
25744 # Make relative symlinks.
25745 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25746 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25747 X"$ac_dest" : 'X\(//\)[^/]' \| \
25748 X"$ac_dest" : 'X\(//\)$' \| \
25749 X"$ac_dest" : 'X\(/\)' \| \
25750 . : '\(.\)' 2>/dev/null ||
25752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25754 /^X\(\/\/\)$/{ s//\1/; q; }
25755 /^X\(\/\).*/{ s//\1/; q; }
25757 { if $as_mkdir_p; then
25758 mkdir -p "$ac_dest_dir"
25760 as_dir="$ac_dest_dir"
25762 while test ! -d "$as_dir"; do
25763 as_dirs="$as_dir $as_dirs"
25764 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25766 X"$as_dir" : 'X\(//\)[^/]' \| \
25767 X"$as_dir" : 'X\(//\)$' \| \
25768 X"$as_dir" : 'X\(/\)' \| \
25769 . : '\(.\)' 2>/dev/null ||
25771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25773 /^X\(\/\/\)$/{ s//\1/; q; }
25774 /^X\(\/\).*/{ s//\1/; q; }
25777 test ! -n "$as_dirs" || mkdir $as_dirs
25778 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25779 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25780 { (exit 1); exit 1; }; }; }
25784 if test "$ac_dest_dir" != .; then
25785 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25786 # A "../" for each directory in $ac_dir_suffix.
25787 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25789 ac_dir_suffix= ac_top_builddir=
25793 .) # No --srcdir option. We are building in place.
25795 if test -z "$ac_top_builddir"; then
25798 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25800 [\\/]* | ?:[\\/]* ) # Absolute path.
25801 ac_srcdir=$srcdir$ac_dir_suffix;
25802 ac_top_srcdir=$srcdir ;;
25803 *) # Relative path.
25804 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25805 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25808 # Do not use `cd foo && pwd` to compute absolute paths, because
25809 # the directories may not exist.
25811 .) ac_abs_builddir="$ac_dest_dir";;
25813 case "$ac_dest_dir" in
25814 .) ac_abs_builddir=`pwd`;;
25815 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25816 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25819 case $ac_abs_builddir in
25820 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25822 case ${ac_top_builddir}. in
25823 .) ac_abs_top_builddir=$ac_abs_builddir;;
25824 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25825 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25828 case $ac_abs_builddir in
25829 .) ac_abs_srcdir=$ac_srcdir;;
25832 .) ac_abs_srcdir=$ac_abs_builddir;;
25833 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25834 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25837 case $ac_abs_builddir in
25838 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25840 case $ac_top_srcdir in
25841 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25842 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25843 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25849 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25850 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25853 # Try a symlink, then a hard link, then a copy.
25854 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25855 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25856 cp -p $srcdir/$ac_source $ac_dest ||
25857 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25858 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25859 { (exit 1); exit 1; }; }
25862 cat >>$CONFIG_STATUS <<\_ACEOF
25865 # CONFIG_COMMANDS section.
25867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25868 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25869 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25870 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25872 X"$ac_dest" : 'X\(//\)[^/]' \| \
25873 X"$ac_dest" : 'X\(//\)$' \| \
25874 X"$ac_dest" : 'X\(/\)' \| \
25875 . : '\(.\)' 2>/dev/null ||
25877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25879 /^X\(\/\/\)$/{ s//\1/; q; }
25880 /^X\(\/\).*/{ s//\1/; q; }
25882 { if $as_mkdir_p; then
25887 while test ! -d "$as_dir"; do
25888 as_dirs="$as_dir $as_dirs"
25889 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25891 X"$as_dir" : 'X\(//\)[^/]' \| \
25892 X"$as_dir" : 'X\(//\)$' \| \
25893 X"$as_dir" : 'X\(/\)' \| \
25894 . : '\(.\)' 2>/dev/null ||
25896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25898 /^X\(\/\/\)$/{ s//\1/; q; }
25899 /^X\(\/\).*/{ s//\1/; q; }
25902 test ! -n "$as_dirs" || mkdir $as_dirs
25903 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25905 { (exit 1); exit 1; }; }; }
25909 if test "$ac_dir" != .; then
25910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25911 # A "../" for each directory in $ac_dir_suffix.
25912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25914 ac_dir_suffix= ac_top_builddir=
25918 .) # No --srcdir option. We are building in place.
25920 if test -z "$ac_top_builddir"; then
25923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25925 [\\/]* | ?:[\\/]* ) # Absolute path.
25926 ac_srcdir=$srcdir$ac_dir_suffix;
25927 ac_top_srcdir=$srcdir ;;
25928 *) # Relative path.
25929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25933 # Do not use `cd foo && pwd` to compute absolute paths, because
25934 # the directories may not exist.
25936 .) ac_abs_builddir="$ac_dir";;
25939 .) ac_abs_builddir=`pwd`;;
25940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25944 case $ac_abs_builddir in
25945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25947 case ${ac_top_builddir}. in
25948 .) ac_abs_top_builddir=$ac_abs_builddir;;
25949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25953 case $ac_abs_builddir in
25954 .) ac_abs_srcdir=$ac_srcdir;;
25957 .) ac_abs_srcdir=$ac_abs_builddir;;
25958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25962 case $ac_abs_builddir in
25963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25965 case $ac_top_srcdir in
25966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25973 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25974 echo "$as_me: executing $ac_dest commands" >&6;}
25976 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25977 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25978 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25979 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25980 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25981 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25982 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25983 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25984 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25985 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25986 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
25987 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25988 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25993 cat >>$CONFIG_STATUS <<\_ACEOF
25995 { (exit 0); exit 0; }
25997 chmod +x $CONFIG_STATUS
25998 ac_clean_files=$ac_clean_files_save
26001 # configure is writing to config.log, and then calls config.status.
26002 # config.status does its own redirection, appending to config.log.
26003 # Unfortunately, on DOS this fails, as config.log is still kept open
26004 # by configure, so config.status won't be able to write to it; its
26005 # output is simply discarded. So we exec the FD to /dev/null,
26006 # effectively closing config.log, so it can be properly (re)opened and
26007 # appended to by config.status. When coming back to configure, we
26008 # need to make the FD available again.
26009 if test "$no_create" != yes; then
26011 ac_config_status_args=
26012 test "$silent" = yes &&
26013 ac_config_status_args="$ac_config_status_args --quiet"
26015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26018 # would make configure fail if this is the last instruction.
26019 $ac_cs_success || { (exit 1); exit 1; }
26023 # CONFIG_SUBDIRS section.
26025 if test "$no_recursion" != yes; then
26027 # Remove --cache-file and --srcdir arguments so they do not pile up.
26028 ac_sub_configure_args=
26030 for ac_arg in $ac_configure_args; do
26031 if test -n "$ac_prev"; then
26036 -cache-file | --cache-file | --cache-fil | --cache-fi \
26037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26038 ac_prev=cache_file ;;
26039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26043 --config-cache | -C)
26045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26053 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26057 # Always prepend --prefix to ensure using the same prefix
26058 # in subdir configurations.
26059 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26062 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26064 # Do not complain, so a configure script can configure whichever
26065 # parts of a large source tree are present.
26066 test -d $srcdir/$ac_dir || continue
26068 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26069 echo "$as_me: configuring in $ac_dir" >&6;}
26070 { if $as_mkdir_p; then
26075 while test ! -d "$as_dir"; do
26076 as_dirs="$as_dir $as_dirs"
26077 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26079 X"$as_dir" : 'X\(//\)[^/]' \| \
26080 X"$as_dir" : 'X\(//\)$' \| \
26081 X"$as_dir" : 'X\(/\)' \| \
26082 . : '\(.\)' 2>/dev/null ||
26084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26086 /^X\(\/\/\)$/{ s//\1/; q; }
26087 /^X\(\/\).*/{ s//\1/; q; }
26090 test ! -n "$as_dirs" || mkdir $as_dirs
26091 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26092 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26093 { (exit 1); exit 1; }; }; }
26097 if test "$ac_dir" != .; then
26098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26099 # A "../" for each directory in $ac_dir_suffix.
26100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26102 ac_dir_suffix= ac_top_builddir=
26106 .) # No --srcdir option. We are building in place.
26108 if test -z "$ac_top_builddir"; then
26111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26113 [\\/]* | ?:[\\/]* ) # Absolute path.
26114 ac_srcdir=$srcdir$ac_dir_suffix;
26115 ac_top_srcdir=$srcdir ;;
26116 *) # Relative path.
26117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26121 # Do not use `cd foo && pwd` to compute absolute paths, because
26122 # the directories may not exist.
26124 .) ac_abs_builddir="$ac_dir";;
26127 .) ac_abs_builddir=`pwd`;;
26128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26132 case $ac_abs_builddir in
26133 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26135 case ${ac_top_builddir}. in
26136 .) ac_abs_top_builddir=$ac_abs_builddir;;
26137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26141 case $ac_abs_builddir in
26142 .) ac_abs_srcdir=$ac_srcdir;;
26145 .) ac_abs_srcdir=$ac_abs_builddir;;
26146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26150 case $ac_abs_builddir in
26151 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26153 case $ac_top_srcdir in
26154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26163 # Check for guested configure; otherwise get Cygnus style configure.
26164 if test -f $ac_srcdir/configure.gnu; then
26165 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26166 elif test -f $ac_srcdir/configure; then
26167 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26168 elif test -f $ac_srcdir/configure.in; then
26169 ac_sub_configure=$ac_configure
26171 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26176 # The recursion is here.
26177 if test -n "$ac_sub_configure"; then
26178 # Make the cache file name correct relative to the subdirectory.
26179 case $cache_file in
26180 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26181 *) # Relative path.
26182 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26185 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26186 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26187 # The eval makes quoting arguments work.
26188 eval $ac_sub_configure $ac_sub_configure_args \
26189 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26190 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26191 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26192 { (exit 1); exit 1; }; }
26200 if test $bzip2_found -ne 1 ; then
26201 if test $zlib_found -ne 1 ; then
26202 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26203 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26204 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26205 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26207 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26211 if test $llvmgccwarn = yes
26213 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26214 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26215 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26216 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26217 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26218 echo "$as_me: WARNING: ***** " >&2;}
26219 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26220 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26221 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26222 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26223 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26224 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}