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 # Factoring default headers for most tests.
440 ac_includes_default="\
443 # include <sys/types.h>
446 # include <sys/stat.h>
457 # if !STDC_HEADERS && HAVE_MEMORY_H
463 # include <strings.h>
466 # include <inttypes.h>
476 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 DOT ETAGS ETAGSFLAGS PYTHON QMTEST 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'
479 # Initialize some variables set by options.
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
491 program_transform_name=s,x,x,
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529 # Accept the important Cygnus configure options, so we can diagnose typos.
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
551 cache_file=config.cache ;;
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 datadir=$ac_optarg ;;
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 eval "enable_$ac_feature='$ac_optarg'" ;;
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
594 -help | --help | --hel | --he | -h)
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
618 -libdir | --libdir | --libdi | --libd)
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 # Obsolete; use --without-fp.
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 sbindir=$ac_optarg ;;
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 sharedstatedir=$ac_optarg ;;
722 -site | --site | --sit)
724 -site=* | --site=* | --sit=*)
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 -version | --version | --versio | --versi | --vers | -V)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 eval "with_$ac_package='$ac_optarg'" ;;
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
773 # Obsolete; use --with-x.
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
816 if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
825 eval ac_val=$`echo $ac_var`
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835 localstatedir libdir includedir oldincludedir infodir mandir
837 eval ac_val=$`echo $ac_var`
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866 test "$silent" = yes && exec 6>/dev/null
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
886 if test ! -r $srcdir/$ac_unique_file; then
890 ac_srcdir_defaulted=no
892 if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
959 # Report the --help message.
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1025 if test -n "$ac_init_help"; then
1026 case $ac_init_help in
1027 short | recursive ) echo "Configuration of LLVM 1.4:";;
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-optimized Compile with optimizations enabled (default is NO)
1042 --enable-jit Enable Just In Time Compiling (default is YES)
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1052 --with-llvmgccdir Location of LLVM GCC front-end
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1109 .) ac_abs_builddir="$ac_dir";;
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
1154 test -f $ac_srcdir/configure.in; then
1156 $ac_configure --help
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1168 generated by GNU Autoconf 2.59
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59. Invocation command line was
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1241 ac_must_keep_next=false
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
1259 ac_must_keep_next=false # Got value, back to normal.
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 -* ) ac_must_keep_next=true ;;
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log. We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1299 # The following way of writing the cache mishandles newlines in values,
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1322 for ac_var in $ac_subst_vars
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1329 if test -n "$ac_subst_files"; then
1336 for ac_var in $ac_subst_files
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1344 if test -s confdefs.h; then
1351 sed "/^$/d" confdefs.h | sort
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1358 rm -f core *.core &&
1359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 # Predefined preprocessor variables.
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1417 if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1434 # Check that the precious variables saved in the cache have kept the same
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
1455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1458 echo "$as_me: former value: $ac_old_val" >&2;}
1459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1460 echo "$as_me: current value: $ac_new_val" >&2;}
1461 ac_cache_corrupted=:
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477 if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520 if test -f $ac_dir/install-sh; then
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 elif test -f $ac_dir/install.sh; then
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 elif test -f $ac_dir/shtool; then
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 if test -z "$ac_aux_dir"; then
1535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537 { (exit 1); exit 1; }; }
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 if test ${srcdir} != "." ; then
1546 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549 { (exit 1); exit 1; }; }
1553 for i in `ls ${srcdir}/projects`
1555 if test -d ${srcdir}/projects/${i} ; then
1560 subdirs="$subdirs projects/sample"
1564 subdirs="$subdirs projects/Stacker"
1568 subdirs="$subdirs projects/llvm-test"
1572 subdirs="$subdirs projects/llvm-reopt"
1576 subdirs="$subdirs projects/llvm-gcc"
1580 subdirs="$subdirs projects/Java"
1584 subdirs="$subdirs projects/llvm-tv"
1588 subdirs="$subdirs projects/llvm-fefw"
1591 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1598 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1601 ac_config_files="$ac_config_files Makefile.config"
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1605 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1607 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1609 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1611 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1614 ac_config_commands="$ac_config_commands Makefile"
1617 ac_config_commands="$ac_config_commands Makefile.common"
1620 ac_config_commands="$ac_config_commands examples/Makefile"
1623 ac_config_commands="$ac_config_commands lib/Makefile"
1626 ac_config_commands="$ac_config_commands runtime/Makefile"
1629 ac_config_commands="$ac_config_commands test/Makefile"
1632 ac_config_commands="$ac_config_commands test/Makefile.tests"
1635 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1638 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1641 ac_config_commands="$ac_config_commands tools/Makefile"
1644 ac_config_commands="$ac_config_commands utils/Makefile"
1647 ac_config_commands="$ac_config_commands projects/Makefile"
1651 # Find a good install program. We prefer a C program (faster),
1652 # so one script is as good as another. But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 # Account for people who put trailing slashes in PATH elements.
1677 ./ | .// | /cC/* | \
1678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1685 for ac_prog in ginstall scoinst install; do
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1692 elif test $ac_prog = install &&
1693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1709 if test "${ac_cv_path_install+set}" = set; then
1710 INSTALL=$ac_cv_path_install
1712 # As a last resort, use the slow shell script. We don't cache a
1713 # path for INSTALL within a source directory, because that will
1714 # break other packages using the cache if that directory is
1715 # removed, or if the path is relative.
1716 INSTALL=$ac_install_sh
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1731 # Make sure we can run config.sub.
1732 $ac_config_sub sun4 >/dev/null 2>&1 ||
1733 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735 { (exit 1); exit 1; }; }
1737 echo "$as_me:$LINENO: checking build system type" >&5
1738 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739 if test "${ac_cv_build+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 ac_cv_build_alias=$build_alias
1743 test -z "$ac_cv_build_alias" &&
1744 ac_cv_build_alias=`$ac_config_guess`
1745 test -z "$ac_cv_build_alias" &&
1746 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748 { (exit 1); exit 1; }; }
1749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756 echo "${ECHO_T}$ac_cv_build" >&6
1758 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$as_me:$LINENO: checking host system type" >&5
1764 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765 if test "${ac_cv_host+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 ac_cv_host_alias=$host_alias
1769 test -z "$ac_cv_host_alias" &&
1770 ac_cv_host_alias=$ac_cv_build_alias
1771 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774 { (exit 1); exit 1; }; }
1777 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778 echo "${ECHO_T}$ac_cv_host" >&6
1780 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1785 echo "$as_me:$LINENO: checking target system type" >&5
1786 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1787 if test "${ac_cv_target+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 ac_cv_target_alias=$target_alias
1791 test "x$ac_cv_target_alias" = "x" &&
1792 ac_cv_target_alias=$ac_cv_host_alias
1793 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1794 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1795 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1796 { (exit 1); exit 1; }; }
1799 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1800 echo "${ECHO_T}$ac_cv_target" >&6
1801 target=$ac_cv_target
1802 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1803 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1804 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1807 # The aliases save the names the user supplied, while $host etc.
1808 # will get canonicalized.
1809 test -n "$target_alias" &&
1810 test "$program_prefix$program_suffix$program_transform_name" = \
1812 program_prefix=${target_alias}-
1815 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1816 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1826 platform_type="Cygwin"
1831 platform_type="Darwin"
1836 platform_type="FreeBSD"
1841 platform_type="Interix"
1846 platform_type="Linux"
1847 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1849 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1856 platform_type="SunOS"
1857 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1859 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1866 platform_type="Win32"
1871 platform_type="Win32"
1876 platform_type="Unknown"
1880 if test "$platform_type" = "Unknown" ; then
1881 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1882 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1883 { (exit 1); exit 1; }; }
1886 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1890 echo "$as_me:$LINENO: checking target architecture" >&5
1891 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1893 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1921 echo "$as_me:$LINENO: result: $ARCH" >&5
1922 echo "${ECHO_T}$ARCH" >&6
1925 ac_cpp='$CXXCPP $CPPFLAGS'
1926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1929 if test -n "$ac_tool_prefix"; then
1930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CXX+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CXX"; then
1940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 if test -n "$CXX"; then
1960 echo "$as_me:$LINENO: result: $CXX" >&5
1961 echo "${ECHO_T}$CXX" >&6
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1967 test -n "$CXX" && break
1970 if test -z "$CXX"; then
1972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1974 # Extract the first word of "$ac_prog", so it can be a program name with args.
1975 set dummy $ac_prog; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$ac_ct_CXX"; then
1982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_CXX="$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2001 if test -n "$ac_ct_CXX"; then
2002 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2003 echo "${ECHO_T}$ac_ct_CXX" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2009 test -n "$ac_ct_CXX" && break
2011 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019 "checking for C++ compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev/null >&5) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev/null >&5) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev/null >&5) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2037 cat >conftest.$ac_ext <<_ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2052 ac_clean_files_save=$ac_clean_files
2053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2057 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2058 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 (eval $ac_link_default) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # Find the output, starting from the most likely. This scheme is
2066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2069 # Be careful to initialize this variable, since it used to be cached.
2070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2072 # b.out is created by i960 compilers.
2073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2075 test -f "$ac_file" || continue
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2080 # This is the source file.
2083 # We found the default executable, but exeext='' is most
2087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 # but it would be cool to find out if it's true. Does anybody
2090 # maintain Libtool? --akim.
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: C++ compiler cannot create executables
2104 See \`config.log' for more details." >&2;}
2105 { (exit 77); exit 77; }; }
2108 ac_exeext=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${ECHO_T}$ac_file" >&6
2112 # Check the compiler produces executables we can run. If not, either
2113 # the compiler is broken, or we cross compile.
2114 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2115 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117 # If not cross compiling, check that we can run a simple program.
2118 if test "$cross_compiling" != yes; then
2119 if { ac_try='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2127 if test "$cross_compiling" = maybe; then
2130 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot run C++ compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2140 echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6
2143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144 ac_clean_files=$ac_clean_files_save
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 echo "${ECHO_T}$cross_compiling" >&6
2152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 (eval $ac_link) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161 # work properly (i.e., refer to `conftest.exe'), while it won't with
2163 for ac_file in conftest.exe conftest conftest.*; do
2164 test -f "$ac_file" || continue
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2181 rm -f conftest$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 echo "${ECHO_T}$ac_cv_exeext" >&6
2185 rm -f conftest.$ac_ext
2186 EXEEXT=$ac_cv_exeext
2188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 if test "${ac_cv_objext+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 cat >conftest.$ac_ext <<_ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h. */
2208 rm -f conftest.o conftest.obj
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; then
2214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235 echo "${ECHO_T}$ac_cv_objext" >&6
2236 OBJEXT=$ac_cv_objext
2238 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 cat >conftest.$ac_ext <<_ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1 >conftest.err
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_cxx_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2294 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2296 GXX=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CXXFLAGS=${CXXFLAGS+set}
2298 ac_save_CXXFLAGS=$CXXFLAGS
2300 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2301 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cxx_g+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_cxx_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 ac_cv_prog_cxx_g=yes
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2352 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2353 if test "$ac_test_CXXFLAGS" = set; then
2354 CXXFLAGS=$ac_save_CXXFLAGS
2355 elif test $ac_cv_prog_cxx_g = yes; then
2356 if test "$GXX" = yes; then
2362 if test "$GXX" = yes; then
2368 for ac_declaration in \
2370 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371 'extern "C" void std::exit (int); using std::exit;' \
2372 'extern "C" void exit (int) throw ();' \
2373 'extern "C" void exit (int);' \
2376 cat >conftest.$ac_ext <<_ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>conftest.er1
2396 grep -v '^ *+' conftest.er1 >conftest.err
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_cxx_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2441 grep -v '^ *+' conftest.er1 >conftest.err
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_cxx_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 if test -n "$ac_declaration"; then
2469 echo '#ifdef __cplusplus' >>confdefs.h
2470 echo $ac_declaration >>confdefs.h
2471 echo '#endif' >>confdefs.h
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test -n "$CC"; then
2516 echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2523 test -n "$CC" && break
2526 if test -z "$CC"; then
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$ac_ct_CC"; then
2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_ac_ct_CC="$ac_prog"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557 if test -n "$ac_ct_CC"; then
2558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2559 echo "${ECHO_T}$ac_ct_CC" >&6
2561 echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2565 test -n "$ac_ct_CC" && break
2572 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: no acceptable C compiler found in \$PATH
2575 See \`config.log' for more details." >&2;}
2576 { (exit 1); exit 1; }; }
2578 # Provide some information about the compiler.
2579 echo "$as_me:$LINENO:" \
2580 "checking for C compiler version" >&5
2581 ac_compiler=`set X $ac_compile; echo $2`
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2583 (eval $ac_compiler --version </dev/null >&5) 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2588 (eval $ac_compiler -v </dev/null >&5) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2593 (eval $ac_compiler -V </dev/null >&5) 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }
2598 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2654 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656 GCC=`test $ac_compiler_gnu = yes && echo yes`
2657 ac_test_CFLAGS=${CFLAGS+set}
2658 ac_save_CFLAGS=$CFLAGS
2660 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 cat >conftest.$ac_ext <<_ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2713 if test "$ac_test_CFLAGS" = set; then
2714 CFLAGS=$ac_save_CFLAGS
2715 elif test $ac_cv_prog_cc_g = yes; then
2716 if test "$GCC" = yes; then
2722 if test "$GCC" = yes; then
2728 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2729 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2730 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_cv_prog_cc_stdc=no
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2759 s = g (p, va_arg (v,int));
2764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2765 function prototypes and stuff, but not '\xHH' hex character constants.
2766 These don't provoke an error unfortunately, instead are silently treated
2767 as 'x'. The following induces an error, until -std1 is added to get
2768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2769 array size at least. It's necessary to write '\x00'==0 to get something
2770 that's true only with -std1. */
2771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2787 # Don't try gcc -ansi; that turns off useful extensions and
2788 # breaks some systems' header files.
2789 # AIX -qlanglvl=ansi
2790 # Ultrix and OSF/1 -std1
2791 # HP-UX 10.20 and later -Ae
2792 # HP-UX older versions -Aa -D_HPUX_SOURCE
2793 # SVR4 -Xc -D__EXTENSIONS__
2794 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2796 CC="$ac_save_CC $ac_arg"
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1 >conftest.err
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_cv_prog_cc_stdc=$ac_arg
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2826 rm -f conftest.err conftest.$ac_objext
2828 rm -f conftest.$ac_ext conftest.$ac_objext
2833 case "x$ac_cv_prog_cc_stdc" in
2835 echo "$as_me:$LINENO: result: none needed" >&5
2836 echo "${ECHO_T}none needed" >&6 ;;
2838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2840 CC="$CC $ac_cv_prog_cc_stdc" ;;
2843 # Some people use a C++ compiler to compile C. Since we use `exit',
2844 # in C++ we need to declare it. In case someone uses the same compiler
2845 # for both compiling C and C++ we need to have the C++ compiler decide
2846 # the declaration of exit, since it's the most demanding environment.
2847 cat >conftest.$ac_ext <<_ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 for ac_declaration in \
2876 'extern "C" void std::exit (int) throw (); using std::exit;' \
2877 'extern "C" void std::exit (int); using std::exit;' \
2878 'extern "C" void exit (int) throw ();' \
2879 'extern "C" void exit (int);' \
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974 if test -n "$ac_declaration"; then
2975 echo '#ifdef __cplusplus' >>confdefs.h
2976 echo $ac_declaration >>confdefs.h
2977 echo '#endif' >>confdefs.h
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 if test "$GCC" != "yes"
2994 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2995 echo "$as_me: error: gcc required but not found" >&2;}
2996 { (exit 1); exit 1; }; }
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3005 # On Suns, sometimes $CPP names a directory.
3006 if test -n "$CPP" && test -d "$CPP"; then
3009 if test -z "$CPP"; then
3010 if test "${ac_cv_prog_CPP+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 # Double quotes because CPP needs to be expanded
3014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3017 for ac_c_preproc_warn_flag in '' yes
3019 # Use a header file that comes with gcc, so configuring glibc
3020 # with a fresh cross-compiler works.
3021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022 # <limits.h> exists even on freestanding compilers.
3023 # On the NeXT, cc -E runs the code through the compiler's parser,
3024 # not just through cpp. "Syntax error" is here to catch this case.
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3032 # include <limits.h>
3034 # include <assert.h>
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
3048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 if test -z "$ac_cpp_err"; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 # Broken: fails on valid input.
3064 rm -f conftest.err conftest.$ac_ext
3066 # OK, works on sane cases. Now check whether non-existent headers
3067 # can be detected and how.
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <ac_nonexistent.h>
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 if test -z "$ac_cpp_err"; then
3094 # Broken: success on invalid input.
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 # Passes both tests.
3104 rm -f conftest.err conftest.$ac_ext
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then
3121 echo "$as_me:$LINENO: result: $CPP" >&5
3122 echo "${ECHO_T}$CPP" >&6
3124 for ac_c_preproc_warn_flag in '' yes
3126 # Use a header file that comes with gcc, so configuring glibc
3127 # with a fresh cross-compiler works.
3128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129 # <limits.h> exists even on freestanding compilers.
3130 # On the NeXT, cc -E runs the code through the compiler's parser,
3131 # not just through cpp. "Syntax error" is here to catch this case.
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3139 # include <limits.h>
3141 # include <assert.h>
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 grep -v '^ *+' conftest.er1 >conftest.err
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 if test -z "$ac_cpp_err"; then
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 # Broken: fails on valid input.
3171 rm -f conftest.err conftest.$ac_ext
3173 # OK, works on sane cases. Now check whether non-existent headers
3174 # can be detected and how.
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3181 #include <ac_nonexistent.h>
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 if test -z "$ac_cpp_err"; then
3201 # Broken: success on invalid input.
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 # Passes both tests.
3211 rm -f conftest.err conftest.$ac_ext
3214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3215 rm -f conftest.err conftest.$ac_ext
3216 if $ac_preproc_ok; then
3219 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 if test "$GXX" != "yes"
3234 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3235 echo "$as_me: error: g++ required but not found" >&2;}
3236 { (exit 1); exit 1; }; }
3239 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3240 if test "$gccmajor" -lt "3"
3242 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3243 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3244 { (exit 1); exit 1; }; }
3247 echo "$as_me:$LINENO: checking for GNU make" >&5
3248 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3249 if test "${_cv_gnu_make_command+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 _cv_gnu_make_command='' ;
3253 for a in "$MAKE" make gmake gnumake ; do
3254 if test -z "$a" ; then continue ; fi ;
3255 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3256 _cv_gnu_make_command=$a ;
3262 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3263 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3264 if test "x$_cv_gnu_make_command" != "x" ; then
3268 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3269 echo "${ECHO_T}\"Not found\"" >&6;
3273 if test -z "$_cv_gnu_make_command"
3275 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3276 echo "$as_me: error: GNU Make required but not found" >&2;}
3277 { (exit 1); exit 1; }; }
3281 echo "$as_me:$LINENO: checking " >&5
3282 echo $ECHO_N "checking ... $ECHO_C" >&6
3283 if test "${ac_cv_has_flex+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 for ac_prog in flex lex
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_LEX+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 if test -n "$LEX"; then
3296 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_LEX="$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 if test -n "$LEX"; then
3316 echo "$as_me:$LINENO: result: $LEX" >&5
3317 echo "${ECHO_T}$LEX" >&6
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 test -n "$LEX" && break
3325 test -n "$LEX" || LEX=":"
3327 if test -z "$LEXLIB"
3329 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3330 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3331 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 ac_check_lib_save_LIBS=$LIBS
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_lib_fl_yywrap=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ac_cv_lib_fl_yywrap=no
3387 rm -f conftest.err conftest.$ac_objext \
3388 conftest$ac_exeext conftest.$ac_ext
3389 LIBS=$ac_check_lib_save_LIBS
3391 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3392 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3393 if test $ac_cv_lib_fl_yywrap = yes; then
3396 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3397 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3398 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 ac_check_lib_save_LIBS=$LIBS
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3410 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3425 rm -f conftest.$ac_objext conftest$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427 (eval $ac_link) 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest$ac_exeext'
3442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_l_yywrap=yes
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 ac_cv_lib_l_yywrap=no
3454 rm -f conftest.err conftest.$ac_objext \
3455 conftest$ac_exeext conftest.$ac_ext
3456 LIBS=$ac_check_lib_save_LIBS
3458 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3459 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3460 if test $ac_cv_lib_l_yywrap = yes; then
3468 if test "x$LEX" != "x:"; then
3469 echo "$as_me:$LINENO: checking lex output file root" >&5
3470 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3471 if test "${ac_cv_prog_lex_root+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 # The minimal lex program is just a single line: %%. But some broken lexes
3475 # (Solaris, I think it was) want two %% lines, so accommodate them.
3476 cat >conftest.l <<_ACEOF
3480 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3481 (eval $LEX conftest.l) 2>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }
3485 if test -f lex.yy.c; then
3486 ac_cv_prog_lex_root=lex.yy
3487 elif test -f lexyy.c; then
3488 ac_cv_prog_lex_root=lexyy
3490 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3491 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3492 { (exit 1); exit 1; }; }
3495 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3496 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3498 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3500 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3501 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3502 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 # POSIX says lex can declare yytext either as a pointer or an array; the
3506 # default is implementation-dependent. Figure out which it is, since
3507 # not all implementations provide the %pointer and %array declarations.
3508 ac_cv_prog_lex_yytext_pointer=no
3509 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3511 LIBS="$LIBS $LEXLIB"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 `cat $LEX_OUTPUT_ROOT.c`
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517 (eval $ac_link) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest$ac_exeext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_prog_lex_yytext_pointer=yes
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
3546 rm -f "${LEX_OUTPUT_ROOT}.c"
3549 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3550 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3551 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3553 cat >>confdefs.h <<\_ACEOF
3554 #define YYTEXT_POINTER 1
3562 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3563 echo "${ECHO_T}$ac_cv_has_flex" >&6
3564 if test "$LEX" != "flex"; then
3565 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3566 echo "$as_me: error: flex not found but required" >&2;}
3567 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: checking " >&5
3574 echo $ECHO_N "checking ... $ECHO_C" >&6
3575 if test "${ac_cv_has_bison+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 for ac_prog in 'bison -y' byacc
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_YACC+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$YACC"; then
3588 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_YACC="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 YACC=$ac_cv_prog_YACC
3607 if test -n "$YACC"; then
3608 echo "$as_me:$LINENO: result: $YACC" >&5
3609 echo "${ECHO_T}$YACC" >&6
3611 echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3615 test -n "$YACC" && break
3617 test -n "$YACC" || YACC="yacc"
3621 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3622 echo "${ECHO_T}$ac_cv_has_bison" >&6
3623 if test "$YACC" != "bison -y"; then
3624 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3625 echo "$as_me: error: bison not found but required" >&2;}
3626 { (exit 1); exit 1; }; }
3632 # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634 enableval="$enable_shared"
3635 p=${PACKAGE-default}
3637 yes) enable_shared=yes ;;
3638 no) enable_shared=no ;;
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3645 if test "X$pkg" = "X$p"; then
3656 # Check whether --enable-static or --disable-static was given.
3657 if test "${enable_static+set}" = set; then
3658 enableval="$enable_static"
3659 p=${PACKAGE-default}
3661 yes) enable_static=yes ;;
3662 no) enable_static=no ;;
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3669 if test "X$pkg" = "X$p"; then
3680 # Check whether --enable-fast-install or --disable-fast-install was given.
3681 if test "${enable_fast_install+set}" = set; then
3682 enableval="$enable_fast_install"
3683 p=${PACKAGE-default}
3685 yes) enable_fast_install=yes ;;
3686 no) enable_fast_install=no ;;
3688 enable_fast_install=no
3689 # Look at the argument we got. We use all the common list separators.
3690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691 for pkg in $enableval; do
3693 if test "X$pkg" = "X$p"; then
3694 enable_fast_install=yes
3701 enable_fast_install=yes
3704 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3705 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3706 if test "${lt_cv_path_SED+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 # Loop through the user's path and test for sed and gsed.
3710 # Then use that list of sed's as ones to test for truncation.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for lt_ac_prog in sed gsed; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3719 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3726 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3727 # along with /bin/sed that truncates output.
3728 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3729 test ! -f $lt_ac_sed && break
3730 cat /dev/null > conftest.in
3732 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3733 # Check for GNU sed and select it if it is found.
3734 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3735 lt_cv_path_SED=$lt_ac_sed
3739 cat conftest.in conftest.in >conftest.tmp
3740 mv conftest.tmp conftest.in
3741 cp conftest.in conftest.nl
3743 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3744 cmp -s conftest.out conftest.nl || break
3745 # 10000 chars as input seems more than enough
3746 test $lt_ac_count -gt 10 && break
3747 lt_ac_count=`expr $lt_ac_count + 1`
3748 if test $lt_ac_count -gt $lt_ac_max; then
3749 lt_ac_max=$lt_ac_count
3750 lt_cv_path_SED=$lt_ac_sed
3758 echo "$as_me:$LINENO: result: $SED" >&5
3759 echo "${ECHO_T}$SED" >&6
3761 echo "$as_me:$LINENO: checking for egrep" >&5
3762 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3763 if test "${ac_cv_prog_egrep+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3767 then ac_cv_prog_egrep='grep -E'
3768 else ac_cv_prog_egrep='egrep'
3771 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3772 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3773 EGREP=$ac_cv_prog_egrep
3777 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3778 if test "${with_gnu_ld+set}" = set; then
3779 withval="$with_gnu_ld"
3780 test "$withval" = no || with_gnu_ld=yes
3785 if test "$GCC" = yes; then
3786 # Check if gcc -print-prog-name=ld gives a path.
3787 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3788 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3791 # gcc leaves a trailing carriage return which upsets mingw
3792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3797 # Accept absolute paths.
3799 re_direlt='/[^/][^/]*/\.\./'
3800 # Canonicalize the pathname of ld
3801 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3802 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3803 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3805 test -z "$LD" && LD="$ac_prog"
3808 # If it fails, then pretend we aren't using GCC.
3812 # If it is relative, then search for the first ld in PATH.
3816 elif test "$with_gnu_ld" = yes; then
3817 echo "$as_me:$LINENO: checking for GNU ld" >&5
3818 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3820 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3821 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3823 if test "${lt_cv_path_LD+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 if test -z "$LD"; then
3827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3828 for ac_dir in $PATH; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3832 lt_cv_path_LD="$ac_dir/$ac_prog"
3833 # Check to see if the program is GNU ld. I'd rather use --version,
3834 # but apparently some GNU ld's only accept -v.
3835 # Break only if it was the GNU/non-GNU ld that we prefer.
3836 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3837 *GNU* | *'with BFD'*)
3838 test "$with_gnu_ld" != no && break
3841 test "$with_gnu_ld" != yes && break
3848 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3853 if test -n "$LD"; then
3854 echo "$as_me:$LINENO: result: $LD" >&5
3855 echo "${ECHO_T}$LD" >&6
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3862 { (exit 1); exit 1; }; }
3863 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3865 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3869 case `$LD -v 2>&1 </dev/null` in
3870 *GNU* | *'with BFD'*)
3871 lt_cv_prog_gnu_ld=yes
3874 lt_cv_prog_gnu_ld=no
3878 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3879 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3880 with_gnu_ld=$lt_cv_prog_gnu_ld
3883 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3884 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3885 if test "${lt_cv_ld_reload_flag+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 lt_cv_ld_reload_flag='-r'
3890 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3891 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3892 reload_flag=$lt_cv_ld_reload_flag
3893 case $reload_flag in
3895 *) reload_flag=" $reload_flag" ;;
3897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3900 if test "$GCC" = yes; then
3901 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3909 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3910 if test "${lt_cv_path_NM+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 if test -n "$NM"; then
3914 # Let the user override the test.
3917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3918 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3920 test -z "$ac_dir" && ac_dir=.
3921 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3923 # Check to see if the nm accepts a BSD-compat flag.
3924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925 # nm: unknown option "B" ignored
3926 # Tru64's nm complains that /dev/null is an invalid object file
3927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928 */dev/null* | *'Invalid file or object type'*)
3929 lt_cv_path_NM="$tmp_nm -B"
3933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3935 lt_cv_path_NM="$tmp_nm -p"
3939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940 continue # so that we can try to find one that supports BSD flags
3947 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3950 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3951 echo "${ECHO_T}$lt_cv_path_NM" >&6
3954 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3957 if test "$LN_S" = "ln -s"; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959 echo "${ECHO_T}yes" >&6
3961 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3962 echo "${ECHO_T}no, using $LN_S" >&6
3965 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3966 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3967 if test "${lt_cv_deplibs_check_method+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 lt_cv_file_magic_cmd='$MAGIC_CMD'
3971 lt_cv_file_magic_test_file=
3972 lt_cv_deplibs_check_method='unknown'
3973 # Need to set the preceding variable on all platforms that support
3974 # interlibrary dependencies.
3975 # 'none' -- dependencies not supported.
3976 # `unknown' -- same as none, but documents that we really don't know.
3977 # 'pass_all' -- all dependencies passed with no checks.
3978 # 'test_compile' -- check by making test program.
3979 # 'file_magic [[regex]]' -- check by looking for files in library path
3980 # which responds to the $file_magic_cmd with a given extended regex.
3981 # If you have `file' or equivalent on your system and you're not sure
3982 # whether `pass_all' will *always* work, you probably want this one.
3986 lt_cv_deplibs_check_method=pass_all
3990 lt_cv_deplibs_check_method=pass_all
3994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3995 lt_cv_file_magic_cmd='/usr/bin/file -L'
3996 lt_cv_file_magic_test_file=/shlib/libc.so
4000 # func_win32_libid is a shell function defined in ltmain.sh
4001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4002 lt_cv_file_magic_cmd='func_win32_libid'
4006 # Base MSYS/MinGW do not provide the 'file' command needed by
4007 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
4012 darwin* | rhapsody*)
4013 lt_cv_deplibs_check_method=pass_all
4016 freebsd* | kfreebsd*-gnu)
4017 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4020 # Not sure whether the presence of OpenBSD here was a mistake.
4021 # Let's accept both of them until this is cleared up.
4022 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4023 lt_cv_file_magic_cmd=/usr/bin/file
4024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 lt_cv_deplibs_check_method=pass_all
4033 lt_cv_deplibs_check_method=pass_all
4036 hpux10.20* | hpux11*)
4037 lt_cv_file_magic_cmd=/usr/bin/file
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4044 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]'
4045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4054 irix5* | irix6* | nonstopux*)
4056 *-32|*"-32 ") libmagic=32-bit;;
4057 *-n32|*"-n32 ") libmagic=N32;;
4058 *-64|*"-64 ") libmagic=64-bit;;
4059 *) libmagic=never-match;;
4061 lt_cv_deplibs_check_method=pass_all
4064 # This must be Linux ELF.
4066 lt_cv_deplibs_check_method=pass_all
4070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4079 lt_cv_file_magic_cmd=/usr/bin/file
4080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084 lt_cv_deplibs_check_method=unknown
4088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4095 osf3* | osf4* | osf5*)
4096 lt_cv_deplibs_check_method=pass_all
4100 lt_cv_deplibs_check_method=pass_all
4104 lt_cv_deplibs_check_method=pass_all
4107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4108 case $host_vendor in
4110 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]'
4111 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4114 lt_cv_deplibs_check_method=pass_all
4117 lt_cv_file_magic_cmd='/bin/file'
4118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4121 lt_cv_file_magic_cmd='/bin/file'
4122 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4123 lt_cv_file_magic_test_file=/lib/libc.so
4126 lt_cv_deplibs_check_method=pass_all
4131 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4132 lt_cv_deplibs_check_method=pass_all
4137 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4138 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4139 file_magic_cmd=$lt_cv_file_magic_cmd
4140 deplibs_check_method=$lt_cv_deplibs_check_method
4141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4146 # If no C compiler was specified, use CC.
4149 # Allow CC to be a program name with arguments.
4152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4153 if test "${enable_libtool_lock+set}" = set; then
4154 enableval="$enable_libtool_lock"
4157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4159 # Some flags need to be propagated to the compiler or linker for good
4163 # Find out which ABI we are using.
4164 echo 'int i;' > conftest.$ac_ext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; then
4170 case `/usr/bin/file conftest.$ac_objext` in
4182 # Find out which ABI we are using.
4183 echo '#line 4183 "configure"' > conftest.$ac_ext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; then
4189 if test "$lt_cv_prog_gnu_ld" = yes; then
4190 case `/usr/bin/file conftest.$ac_objext` in
4192 LD="${LD-ld} -melf32bsmip"
4195 LD="${LD-ld} -melf32bmipn32"
4198 LD="${LD-ld} -melf64bmip"
4202 case `/usr/bin/file conftest.$ac_objext` in
4218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4219 # Find out which ABI we are using.
4220 echo 'int i;' > conftest.$ac_ext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 case "`/usr/bin/file conftest.o`" in
4230 LD="${LD-ld} -m elf_i386"
4232 ppc64-*linux*|powerpc64-*linux*)
4233 LD="${LD-ld} -m elf32ppclinux"
4236 LD="${LD-ld} -m elf_s390"
4239 LD="${LD-ld} -m elf32_sparc"
4246 LD="${LD-ld} -m elf_x86_64"
4248 ppc*-*linux*|powerpc*-*linux*)
4249 LD="${LD-ld} -m elf64ppc"
4252 LD="${LD-ld} -m elf64_s390"
4255 LD="${LD-ld} -m elf64_sparc"
4265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4266 SAVE_CFLAGS="$CFLAGS"
4267 CFLAGS="$CFLAGS -belf"
4268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4270 if test "${lt_cv_cc_needs_belf+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest$ac_exeext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 lt_cv_cc_needs_belf=yes
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 lt_cv_cc_needs_belf=no
4316 rm -f conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4326 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4329 CFLAGS="$SAVE_CFLAGS"
4335 need_locks="$enable_libtool_lock"
4339 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4341 if test "${ac_cv_header_stdc+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 cat >conftest.$ac_ext <<_ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_header_stdc=yes
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_header_stdc=no
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394 if test $ac_cv_header_stdc = yes; then
4395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4396 cat >conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 $EGREP "memchr" >/dev/null 2>&1; then
4409 ac_cv_header_stdc=no
4415 if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "free" >/dev/null 2>&1; then
4430 ac_cv_header_stdc=no
4436 if test $ac_cv_header_stdc = yes; then
4437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4438 if test "$cross_compiling" = yes; then
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4448 #if ((' ' & 0x0FF) == 0x020)
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4452 # define ISLOWER(c) \
4453 (('a' <= (c) && (c) <= 'i') \
4454 || ('j' <= (c) && (c) <= 'r') \
4455 || ('s' <= (c) && (c) <= 'z'))
4456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4464 for (i = 0; i < 256; i++)
4465 if (XOR (islower (i), ISLOWER (i))
4466 || toupper (i) != TOUPPER (i))
4471 rm -f conftest$ac_exeext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4473 (eval $ac_link) 2>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4484 echo "$as_me: program exited with status $ac_status" >&5
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_cv_header_stdc=no
4491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4496 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4497 if test $ac_cv_header_stdc = yes; then
4499 cat >>confdefs.h <<\_ACEOF
4500 #define STDC_HEADERS 1
4505 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4515 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4516 inttypes.h stdint.h unistd.h
4518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4532 #include <$ac_header>
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 eval "$as_ac_Header=yes"
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 eval "$as_ac_Header=no"
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4568 cat >>confdefs.h <<_ACEOF
4569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 for ac_header in dlfcn.h
4580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 # Is the header compilable?
4591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4600 #include <$ac_header>
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_header_compiler=yes
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_header_compiler=no
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633 echo "${ECHO_T}$ac_header_compiler" >&6
4635 # Is the header present?
4636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 #include <$ac_header>
4646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } >/dev/null; then
4654 if test -s conftest.err; then
4655 ac_cpp_err=$ac_c_preproc_warn_flag
4656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4663 if test -z "$ac_cpp_err"; then
4664 ac_header_preproc=yes
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 ac_header_preproc=no
4671 rm -f conftest.err conftest.$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673 echo "${ECHO_T}$ac_header_preproc" >&6
4675 # So? What about this header?
4676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682 ac_header_preproc=yes
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4699 ## ----------------------------------- ##
4700 ## Report this to llvmbugs@cs.uiuc.edu ##
4701 ## ----------------------------------- ##
4704 sed "s/^/$as_me: WARNING: /" >&2
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 eval "$as_ac_Header=\$ac_header_preproc"
4714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4719 cat >>confdefs.h <<_ACEOF
4720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4730 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4731 (test "X$CXX" != "Xg++"))) ; then
4733 ac_cpp='$CXXCPP $CPPFLAGS'
4734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4737 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4738 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4739 if test -z "$CXXCPP"; then
4740 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 # Double quotes because CXXCPP needs to be expanded
4744 for CXXCPP in "$CXX -E" "/lib/cpp"
4747 for ac_cxx_preproc_warn_flag in '' yes
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4762 # include <limits.h>
4764 # include <assert.h>
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_cxx_preproc_warn_flag
4778 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4785 if test -z "$ac_cpp_err"; then
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 # Broken: fails on valid input.
4794 rm -f conftest.err conftest.$ac_ext
4796 # OK, works on sane cases. Now check whether non-existent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 #include <ac_nonexistent.h>
4806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null; then
4814 if test -s conftest.err; then
4815 ac_cpp_err=$ac_cxx_preproc_warn_flag
4816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4823 if test -z "$ac_cpp_err"; then
4824 # Broken: success on invalid input.
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 # Passes both tests.
4834 rm -f conftest.err conftest.$ac_ext
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then
4844 ac_cv_prog_CXXCPP=$CXXCPP
4847 CXXCPP=$ac_cv_prog_CXXCPP
4849 ac_cv_prog_CXXCPP=$CXXCPP
4851 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4852 echo "${ECHO_T}$CXXCPP" >&6
4854 for ac_cxx_preproc_warn_flag in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4869 # include <limits.h>
4871 # include <assert.h>
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null; then
4883 if test -s conftest.err; then
4884 ac_cpp_err=$ac_cxx_preproc_warn_flag
4885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4892 if test -z "$ac_cpp_err"; then
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 # Broken: fails on valid input.
4901 rm -f conftest.err conftest.$ac_ext
4903 # OK, works on sane cases. Now check whether non-existent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ac_nonexistent.h>
4913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_cxx_preproc_warn_flag
4923 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4930 if test -z "$ac_cpp_err"; then
4931 # Broken: success on invalid input.
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 # Passes both tests.
4941 rm -f conftest.err conftest.$ac_ext
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4949 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4950 See \`config.log' for more details." >&5
4951 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4952 See \`config.log' for more details." >&2;}
4953 { (exit 1); exit 1; }; }
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4966 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4967 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4969 if test -n "$ac_tool_prefix"; then
4970 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4974 echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4976 if test "${ac_cv_prog_F77+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 if test -n "$F77"; then
4980 ac_cv_prog_F77="$F77" # Let the user override the test.
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 if test -n "$F77"; then
5000 echo "$as_me:$LINENO: result: $F77" >&5
5001 echo "${ECHO_T}$F77" >&6
5003 echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6
5007 test -n "$F77" && break
5010 if test -z "$F77"; then
5012 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test -n "$ac_ct_F77"; then
5022 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_F77="$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5041 if test -n "$ac_ct_F77"; then
5042 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5043 echo "${ECHO_T}$ac_ct_F77" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 test -n "$ac_ct_F77" && break
5056 # Provide some information about the compiler.
5057 echo "$as_me:5057:" \
5058 "checking for Fortran 77 compiler version" >&5
5059 ac_compiler=`set X $ac_compile; echo $2`
5060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5061 (eval $ac_compiler --version </dev/null >&5) 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }
5065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5066 (eval $ac_compiler -v </dev/null >&5) 2>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }
5070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5071 (eval $ac_compiler -V </dev/null >&5) 2>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }
5077 # If we don't use `.F' as extension, the preprocessor is not run on the
5078 # input file. (Note that this only needs to work for GNU compilers.)
5081 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5082 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5083 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 cat >conftest.$ac_ext <<_ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_f77_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5127 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5128 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5130 ac_test_FFLAGS=${FFLAGS+set}
5131 ac_save_FFLAGS=$FFLAGS
5133 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5134 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5135 if test "${ac_cv_prog_f77_g+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5144 rm -f conftest.$ac_objext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146 (eval $ac_compile) 2>conftest.er1
5148 grep -v '^ *+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try='test -z "$ac_f77_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try='test -s conftest.$ac_objext'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_prog_f77_g=yes
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5177 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5178 if test "$ac_test_FFLAGS" = set; then
5179 FFLAGS=$ac_save_FFLAGS
5180 elif test $ac_cv_prog_f77_g = yes; then
5181 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5187 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5194 G77=`test $ac_compiler_gnu = yes && echo yes`
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5205 # find the maximum length of command line arguments
5206 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5207 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5208 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 # On DJGPP, this test can blow up pretty badly due to problems in libc
5217 # (any single argument exceeding 2000 bytes causes a buffer overrun
5218 # during glob expansion). Even if it were fixed, the result of this
5219 # check would be larger than it should be.
5220 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5224 # Under GNU Hurd, this test is not required because there is
5225 # no limit to the length of command line arguments.
5226 # Libtool will interpret -1 as no limit whatsoever
5227 lt_cv_sys_max_cmd_len=-1;
5231 # On Win9x/ME, this test blows up -- it succeeds, but takes
5232 # about 5 minutes as the teststring grows exponentially.
5233 # Worse, since 9x/ME are not pre-emptively multitasking,
5234 # you end up with a "frozen" computer, even though with patience
5235 # the test eventually succeeds (with a max line length of 256k).
5236 # Instead, let's just punt: use the minimum linelength reported by
5237 # all of the supported platforms: 8192 (on NT/2K/XP).
5238 lt_cv_sys_max_cmd_len=8192;
5242 # On AmigaOS with pdksh, this test takes hours, literally.
5243 # So we just punt and use a minimum line length of 8192.
5244 lt_cv_sys_max_cmd_len=8192;
5247 netbsd* | freebsd* | openbsd* | darwin* )
5248 # This has been around since 386BSD, at least. Likely further.
5249 if test -x /sbin/sysctl; then
5250 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5251 elif test -x /usr/sbin/sysctl; then
5252 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5254 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5256 # And add a safety zone
5257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261 # If test is not a shell built-in, we'll probably end up computing a
5262 # maximum length that is only half of the actual maximum length, but
5264 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5265 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5266 = "XX$teststring") >/dev/null 2>&1 &&
5267 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5268 lt_cv_sys_max_cmd_len=$new_result &&
5269 test $i != 17 # 1/2 MB should be enough
5272 teststring=$teststring$teststring
5275 # Add a significant safety factor because C++ compilers can tack on massive
5276 # amounts of additional arguments before passing them to the linker.
5277 # It appears as though 1/2 is a usable value.
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5284 if test -n $lt_cv_sys_max_cmd_len ; then
5285 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5286 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5288 echo "$as_me:$LINENO: result: none" >&5
5289 echo "${ECHO_T}none" >&6
5295 # Check for command to grab the raw symbol name followed by C symbol from nm.
5296 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5297 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5298 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 # These are sane defaults that work on at least a few old systems.
5303 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5305 # Character class describing NM global symbol codes.
5306 symcode='[BCDEGRST]'
5308 # Regexp to match symbols that can be accessed directly from C.
5309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5311 # Transform the above into a raw symbol and a C symbol.
5312 symxfrm='\1 \2\3 \3'
5314 # Transform an extracted symbol line into a proper C declaration
5315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5317 # Transform an extracted symbol line into symbol name and symbol address
5318 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'"
5320 # Define system-specific variables.
5325 cygwin* | mingw* | pw32*)
5326 symcode='[ABCDGISTW]'
5328 hpux*) # Its linker distinguishes data from code symbols
5329 if test "$host_cpu" = ia64; then
5330 symcode='[ABCDEGRST]'
5332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5333 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'"
5336 if test "$host_cpu" = ia64; then
5337 symcode='[ABCDGIRSTW]'
5338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5339 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'"
5343 symcode='[BCDEGRST]'
5346 symcode='[BCDEGQRST]'
5356 # Handle CRLF in mingw tool chain
5360 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5364 # If we're using GNU nm, then use its standard symbol codes.
5365 case `$NM -V 2>&1` in
5366 *GNU* | *'with BFD'*)
5367 symcode='[ABCDGIRSTW]' ;;
5370 # Try without a prefix undercore, then with it.
5371 for ac_symprfx in "" "_"; do
5373 # Write the raw and C identifiers.
5374 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5376 # Check to see that the pipe works correctly.
5380 cat > conftest.$ac_ext <<EOF
5385 void nm_test_func(){}
5389 int main(){nm_test_var='a';nm_test_func();return(0);}
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; then
5397 # Now try to grab the symbols.
5399 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5400 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && test -s "$nlist"; then
5404 # Try sorting and uniquifying the output.
5405 if sort "$nlist" | uniq > "$nlist"T; then
5406 mv -f "$nlist"T "$nlist"
5411 # Make sure that we snagged all the symbols we need.
5412 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5413 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5414 cat <<EOF > conftest.$ac_ext
5420 # Now generate the symbol file.
5421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5423 cat <<EOF >> conftest.$ac_ext
5424 #if defined (__STDC__) && __STDC__
5425 # define lt_ptr_t void *
5427 # define lt_ptr_t char *
5431 /* The mapping between symbol names and symbols. */
5436 lt_preloaded_symbols[] =
5439 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5440 cat <<\EOF >> conftest.$ac_ext
5448 # Now try linking the two files.
5449 mv conftest.$ac_objext conftstm.$ac_objext
5450 lt_save_LIBS="$LIBS"
5451 lt_save_CFLAGS="$CFLAGS"
5452 LIBS="conftstm.$ac_objext"
5453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5461 LIBS="$lt_save_LIBS"
5462 CFLAGS="$lt_save_CFLAGS"
5464 echo "cannot find nm_test_func in $nlist" >&5
5467 echo "cannot find nm_test_var in $nlist" >&5
5470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5473 echo "$progname: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 rm -f conftest* conftst*
5478 # Do not use the global_symbol_pipe unless it works.
5479 if test "$pipe_works" = yes; then
5482 lt_cv_sys_global_symbol_pipe=
5488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5489 lt_cv_sys_global_symbol_to_cdecl=
5491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5492 echo "$as_me:$LINENO: result: failed" >&5
5493 echo "${ECHO_T}failed" >&6
5495 echo "$as_me:$LINENO: result: ok" >&5
5496 echo "${ECHO_T}ok" >&6
5499 echo "$as_me:$LINENO: checking for objdir" >&5
5500 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5501 if test "${lt_cv_objdir+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 rm -f .libs 2>/dev/null
5505 mkdir .libs 2>/dev/null
5506 if test -d .libs; then
5509 # MS-DOS does not allow filenames that begin with a dot.
5512 rmdir .libs 2>/dev/null
5514 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5515 echo "${ECHO_T}$lt_cv_objdir" >&6
5516 objdir=$lt_cv_objdir
5524 # AIX sometimes has problems with the GCC collect2 program. For some
5525 # reason, if we set the COLLECT_NAMES environment variable, the problems
5526 # vanish in a puff of smoke.
5527 if test "X${COLLECT_NAMES+set}" != Xset; then
5529 export COLLECT_NAMES
5534 # Sed substitution that helps us do robust quoting. It backslashifies
5535 # metacharacters that are still active within double-quoted strings.
5536 Xsed='sed -e s/^X//'
5537 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5539 # Same as above, but do not quote variable references.
5540 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5542 # Sed substitution to delay expansion of an escaped shell variable in a
5543 # double_quote_subst'ed string.
5544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5546 # Sed substitution to avoid accidental globbing in evaled expressions
5547 no_glob_subst='s/\*/\\\*/g'
5554 can_build_shared=yes
5556 # All known linkers require a `.a' archive for static linking (except M$VC,
5557 # which needs '.lib').
5559 ltmain="$ac_aux_dir/ltmain.sh"
5560 ofile="$default_ofile"
5561 with_gnu_ld="$lt_cv_prog_gnu_ld"
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}ar; ac_word=$2
5566 echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if test "${ac_cv_prog_AR+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 if test -n "$AR"; then
5572 ac_cv_prog_AR="$AR" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_AR="${ac_tool_prefix}ar"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 if test -n "$AR"; then
5592 echo "$as_me:$LINENO: result: $AR" >&5
5593 echo "${ECHO_T}$AR" >&6
5595 echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5600 if test -z "$ac_cv_prog_AR"; then
5602 # Extract the first word of "ar", so it can be a program name with args.
5603 set dummy ar; ac_word=$2
5604 echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 if test -n "$ac_ct_AR"; then
5610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_ac_ct_AR="ar"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5630 if test -n "$ac_ct_AR"; then
5631 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5632 echo "${ECHO_T}$ac_ct_AR" >&6
5634 echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6
5643 if test -n "$ac_tool_prefix"; then
5644 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_prog_RANLIB+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 if test -n "$RANLIB"; then
5652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 RANLIB=$ac_cv_prog_RANLIB
5671 if test -n "$RANLIB"; then
5672 echo "$as_me:$LINENO: result: $RANLIB" >&5
5673 echo "${ECHO_T}$RANLIB" >&6
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5680 if test -z "$ac_cv_prog_RANLIB"; then
5681 ac_ct_RANLIB=$RANLIB
5682 # Extract the first word of "ranlib", so it can be a program name with args.
5683 set dummy ranlib; ac_word=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 if test -n "$ac_ct_RANLIB"; then
5690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_ac_ct_RANLIB="ranlib"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5710 if test -n "$ac_ct_RANLIB"; then
5711 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5712 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5714 echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5718 RANLIB=$ac_ct_RANLIB
5720 RANLIB="$ac_cv_prog_RANLIB"
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}strip; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_STRIP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 if test -n "$STRIP"; then
5732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 STRIP=$ac_cv_prog_STRIP
5751 if test -n "$STRIP"; then
5752 echo "$as_me:$LINENO: result: $STRIP" >&5
5753 echo "${ECHO_T}$STRIP" >&6
5755 echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5760 if test -z "$ac_cv_prog_STRIP"; then
5762 # Extract the first word of "strip", so it can be a program name with args.
5763 set dummy strip; ac_word=$2
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 if test -n "$ac_ct_STRIP"; then
5770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_STRIP="strip"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5790 if test -n "$ac_ct_STRIP"; then
5791 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5792 echo "${ECHO_T}$ac_ct_STRIP" >&6
5794 echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5800 STRIP="$ac_cv_prog_STRIP"
5805 old_CFLAGS="$CFLAGS"
5807 # Set sane defaults for various variables
5808 test -z "$AR" && AR=ar
5809 test -z "$AR_FLAGS" && AR_FLAGS=cru
5810 test -z "$AS" && AS=as
5811 test -z "$CC" && CC=cc
5812 test -z "$LTCC" && LTCC=$CC
5813 test -z "$DLLTOOL" && DLLTOOL=dlltool
5814 test -z "$LD" && LD=ld
5815 test -z "$LN_S" && LN_S="ln -s"
5816 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5817 test -z "$NM" && NM=nm
5818 test -z "$SED" && SED=sed
5819 test -z "$OBJDUMP" && OBJDUMP=objdump
5820 test -z "$RANLIB" && RANLIB=:
5821 test -z "$STRIP" && STRIP=:
5822 test -z "$ac_objext" && ac_objext=o
5824 # Determine commands to create old-style static archives.
5825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5826 old_postinstall_cmds='chmod 644 $oldlib'
5827 old_postuninstall_cmds=
5829 if test -n "$RANLIB"; then
5832 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5835 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5841 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5843 # Only perform the check for file, if the check method requires it
5844 case $deplibs_check_method in
5846 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5847 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5848 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5849 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5857 lt_save_MAGIC_CMD="$MAGIC_CMD"
5858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5860 for ac_dir in $ac_dummy; do
5862 test -z "$ac_dir" && ac_dir=.
5863 if test -f $ac_dir/${ac_tool_prefix}file; then
5864 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5865 if test -n "$file_magic_test_file"; then
5866 case $deplibs_check_method in
5868 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5871 $EGREP "$file_magic_regex" > /dev/null; then
5876 *** Warning: the command libtool uses to detect shared libraries,
5877 *** $file_magic_cmd, produces output that libtool cannot recognize.
5878 *** The result is that libtool may fail to recognize shared libraries
5879 *** as such. This will affect the creation of libtool libraries that
5880 *** depend on shared libraries, but programs linked with such libtool
5881 *** libraries will work regardless of this problem. Nevertheless, you
5882 *** may want to report the problem to your system manager and/or to
5883 *** bug-libtool@gnu.org
5893 MAGIC_CMD="$lt_save_MAGIC_CMD"
5898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5899 if test -n "$MAGIC_CMD"; then
5900 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5901 echo "${ECHO_T}$MAGIC_CMD" >&6
5903 echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5907 if test -z "$lt_cv_path_MAGIC_CMD"; then
5908 if test -n "$ac_tool_prefix"; then
5909 echo "$as_me:$LINENO: checking for file" >&5
5910 echo $ECHO_N "checking for file... $ECHO_C" >&6
5911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5919 lt_save_MAGIC_CMD="$MAGIC_CMD"
5920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5922 for ac_dir in $ac_dummy; do
5924 test -z "$ac_dir" && ac_dir=.
5925 if test -f $ac_dir/file; then
5926 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5927 if test -n "$file_magic_test_file"; then
5928 case $deplibs_check_method in
5930 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5933 $EGREP "$file_magic_regex" > /dev/null; then
5938 *** Warning: the command libtool uses to detect shared libraries,
5939 *** $file_magic_cmd, produces output that libtool cannot recognize.
5940 *** The result is that libtool may fail to recognize shared libraries
5941 *** as such. This will affect the creation of libtool libraries that
5942 *** depend on shared libraries, but programs linked with such libtool
5943 *** libraries will work regardless of this problem. Nevertheless, you
5944 *** may want to report the problem to your system manager and/or to
5945 *** bug-libtool@gnu.org
5955 MAGIC_CMD="$lt_save_MAGIC_CMD"
5960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5961 if test -n "$MAGIC_CMD"; then
5962 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5963 echo "${ECHO_T}$MAGIC_CMD" >&6
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5981 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5982 if test "${enable_libtool_lock+set}" = set; then
5983 enableval="$enable_libtool_lock"
5986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5989 # Check whether --with-pic or --without-pic was given.
5990 if test "${with_pic+set}" = set; then
5996 test -z "$pic_mode" && pic_mode=default
5998 # Use C for the default configuration in the libtool script
6002 ac_cpp='$CPP $CPPFLAGS'
6003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008 # Source file extension for C test sources.
6011 # Object file extension for compiled C test sources.
6015 # Code to be used in simple compile tests
6016 lt_simple_compile_test_code="int some_variable = 0;\n"
6018 # Code to be used in simple link tests
6019 lt_simple_link_test_code='int main(){return(0);}\n'
6022 # If no C compiler was specified, use CC.
6025 # Allow CC to be a program name with arguments.
6030 # Check for any special shared library compilation flags.
6033 if test "$GCC" = no; then
6036 lt_prog_cc_shlib='-belf'
6040 if test -n "$lt_prog_cc_shlib"; then
6041 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6042 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6043 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6045 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6046 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6047 lt_cv_prog_cc_can_build_shared=no
6053 # Check to make sure the static flag actually works.
6055 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6056 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6057 if test "${lt_prog_compiler_static_works+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 lt_prog_compiler_static_works=no
6061 save_LDFLAGS="$LDFLAGS"
6062 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6063 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6065 # The compiler can only warn and ignore the option if not recognized
6066 # So say no if there are warnings
6067 if test -s conftest.err; then
6068 # Append any errors to the config.log.
6069 cat conftest.err 1>&5
6071 lt_prog_compiler_static_works=yes
6075 LDFLAGS="$save_LDFLAGS"
6078 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6079 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6081 if test x"$lt_prog_compiler_static_works" = xyes; then
6084 lt_prog_compiler_static=
6090 lt_prog_compiler_no_builtin_flag=
6092 if test "$GCC" = yes; then
6093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6096 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6097 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6098 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 lt_cv_prog_compiler_rtti_exceptions=no
6102 ac_outfile=conftest.$ac_objext
6103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6104 lt_compiler_flag="-fno-rtti -fno-exceptions"
6105 # Insert the option either (1) after the last *FLAGS variable, or
6106 # (2) before a word containing "conftest.", or (3) at the end.
6107 # Note that $ac_compile itself does not contain backslashes and begins
6108 # with a dollar sign (not a hyphen), so the echo should work correctly.
6109 # The option is referenced via a variable to avoid confusing sed.
6110 lt_compile=`echo "$ac_compile" | $SED \
6111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6113 -e 's:$: $lt_compiler_flag:'`
6114 (eval echo "\"\$as_me:6114: $lt_compile\"" >&5)
6115 (eval "$lt_compile" 2>conftest.err)
6117 cat conftest.err >&5
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 if (exit $ac_status) && test -s "$ac_outfile"; then
6120 # The compiler can only warn and ignore the option if not recognized
6121 # So say no if there are warnings
6122 if test ! -s conftest.err; then
6123 lt_cv_prog_compiler_rtti_exceptions=yes
6129 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6130 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6132 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6133 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6140 lt_prog_compiler_wl=
6141 lt_prog_compiler_pic=
6142 lt_prog_compiler_static=
6144 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6145 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6147 if test "$GCC" = yes; then
6148 lt_prog_compiler_wl='-Wl,'
6149 lt_prog_compiler_static='-static'
6153 # All AIX code is PIC.
6154 if test "$host_cpu" = ia64; then
6155 # AIX 5 now supports IA64 processor
6156 lt_prog_compiler_static='-Bstatic'
6161 # FIXME: we need at least 68020 code to build shared libraries, but
6162 # adding the `-m68020' flag to GCC prevents building anything better,
6164 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6167 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6168 # PIC is the default for these OSes.
6171 mingw* | pw32* | os2*)
6172 # This hack is so that the source file can tell whether it is being
6173 # built for inclusion in a dll (and should export symbols for example).
6174 lt_prog_compiler_pic='-DDLL_EXPORT'
6177 darwin* | rhapsody*)
6178 # PIC is the default on this platform
6179 # Common symbols not allowed in MH_DYLIB files
6180 lt_prog_compiler_pic='-fno-common'
6184 # Just because we use GCC doesn't mean we suddenly get shared libraries
6185 # on systems that don't support them.
6186 lt_prog_compiler_can_build_shared=no
6191 if test -d /usr/nec; then
6192 lt_prog_compiler_pic=-Kconform_pic
6197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6204 lt_prog_compiler_pic='-fPIC'
6210 lt_prog_compiler_pic='-fPIC'
6214 # PORTME Check for flag to pass linker flags through the system compiler.
6217 lt_prog_compiler_wl='-Wl,'
6218 if test "$host_cpu" = ia64; then
6219 # AIX 5 now supports IA64 processor
6220 lt_prog_compiler_static='-Bstatic'
6222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6226 # PIC is the default on this platform
6227 # Common symbols not allowed in MH_DYLIB files
6228 case "$cc_basename" in
6230 lt_prog_compiler_pic='-qnocommon'
6231 lt_prog_compiler_wl='-Wl,'
6236 mingw* | pw32* | os2*)
6237 # This hack is so that the source file can tell whether it is being
6238 # built for inclusion in a dll (and should export symbols for example).
6239 lt_prog_compiler_pic='-DDLL_EXPORT'
6242 hpux9* | hpux10* | hpux11*)
6243 lt_prog_compiler_wl='-Wl,'
6244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6251 lt_prog_compiler_pic='+Z'
6254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6255 lt_prog_compiler_static='${wl}-a ${wl}archive'
6258 irix5* | irix6* | nonstopux*)
6259 lt_prog_compiler_wl='-Wl,'
6260 # PIC (with -KPIC) is the default.
6261 lt_prog_compiler_static='-non_shared'
6265 lt_prog_compiler_pic='-KPIC'
6266 lt_prog_compiler_static='-Bstatic'
6272 lt_prog_compiler_wl='-Wl,'
6273 lt_prog_compiler_pic='-KPIC'
6274 lt_prog_compiler_static='-static'
6277 lt_prog_compiler_wl='-Wl,'
6278 # All Alpha code is PIC.
6279 lt_prog_compiler_static='-non_shared'
6284 osf3* | osf4* | osf5*)
6285 lt_prog_compiler_wl='-Wl,'
6286 # All OSF/1 code is PIC.
6287 lt_prog_compiler_static='-non_shared'
6291 lt_prog_compiler_pic='-Kpic'
6292 lt_prog_compiler_static='-dn'
6296 lt_prog_compiler_wl='-Wl,'
6297 lt_prog_compiler_pic='-KPIC'
6298 lt_prog_compiler_static='-Bstatic'
6302 lt_prog_compiler_wl='-Qoption ld '
6303 lt_prog_compiler_pic='-PIC'
6304 lt_prog_compiler_static='-Bstatic'
6307 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6308 lt_prog_compiler_wl='-Wl,'
6309 lt_prog_compiler_pic='-KPIC'
6310 lt_prog_compiler_static='-Bstatic'
6314 if test -d /usr/nec ;then
6315 lt_prog_compiler_pic='-Kconform_pic'
6316 lt_prog_compiler_static='-Bstatic'
6321 lt_prog_compiler_pic='-pic'
6322 lt_prog_compiler_static='-Bstatic'
6326 lt_prog_compiler_can_build_shared=no
6331 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6332 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6335 # Check to make sure the PIC flag actually works.
6337 if test -n "$lt_prog_compiler_pic"; then
6339 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6340 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6341 if test "${lt_prog_compiler_pic_works+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 lt_prog_compiler_pic_works=no
6345 ac_outfile=conftest.$ac_objext
6346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6348 # Insert the option either (1) after the last *FLAGS variable, or
6349 # (2) before a word containing "conftest.", or (3) at the end.
6350 # Note that $ac_compile itself does not contain backslashes and begins
6351 # with a dollar sign (not a hyphen), so the echo should work correctly.
6352 # The option is referenced via a variable to avoid confusing sed.
6353 lt_compile=`echo "$ac_compile" | $SED \
6354 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6356 -e 's:$: $lt_compiler_flag:'`
6357 (eval echo "\"\$as_me:6357: $lt_compile\"" >&5)
6358 (eval "$lt_compile" 2>conftest.err)
6360 cat conftest.err >&5
6361 echo "$as_me:6361: \$? = $ac_status" >&5
6362 if (exit $ac_status) && test -s "$ac_outfile"; then
6363 # The compiler can only warn and ignore the option if not recognized
6364 # So say no if there are warnings
6365 if test ! -s conftest.err; then
6366 lt_prog_compiler_pic_works=yes
6372 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6373 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6375 if test x"$lt_prog_compiler_pic_works" = xyes; then
6376 case $lt_prog_compiler_pic in
6378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6381 lt_prog_compiler_pic=
6382 lt_prog_compiler_can_build_shared=no
6387 # For platforms which do not support PIC, -DPIC is meaningless:
6389 lt_prog_compiler_pic=
6392 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6396 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6397 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6398 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 lt_cv_prog_compiler_c_o=no
6402 $rm -r conftest 2>/dev/null
6406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6408 lt_compiler_flag="-o out/conftest2.$ac_objext"
6409 # Insert the option either (1) after the last *FLAGS variable, or
6410 # (2) before a word containing "conftest.", or (3) at the end.
6411 # Note that $ac_compile itself does not contain backslashes and begins
6412 # with a dollar sign (not a hyphen), so the echo should work correctly.
6413 lt_compile=`echo "$ac_compile" | $SED \
6414 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416 -e 's:$: $lt_compiler_flag:'`
6417 (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418 (eval "$lt_compile" 2>out/conftest.err)
6420 cat out/conftest.err >&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6424 # The compiler can only warn and ignore the option if not recognized
6425 # So say no if there are warnings
6426 if test ! -s out/conftest.err; then
6427 lt_cv_prog_compiler_c_o=yes
6432 # SGI C++ compiler will create directory out/ii_files/ for
6433 # template instantiation
6434 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6435 $rm out/* && rmdir out
6441 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6442 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6445 hard_links="nottested"
6446 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6447 # do not overwrite the value of need_locks provided by the user
6448 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6449 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6454 ln conftest.a conftest.b 2>&5 || hard_links=no
6455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456 echo "$as_me:$LINENO: result: $hard_links" >&5
6457 echo "${ECHO_T}$hard_links" >&6
6458 if test "$hard_links" = no; then
6459 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6460 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6467 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6468 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6471 allow_undefined_flag=
6472 enable_shared_with_static_runtimes=no
6474 archive_expsym_cmds=
6475 old_archive_From_new_cmds=
6476 old_archive_from_expsyms_cmds=
6477 export_dynamic_flag_spec=
6478 whole_archive_flag_spec=
6479 thread_safe_flag_spec=
6480 hardcode_libdir_flag_spec=
6481 hardcode_libdir_flag_spec_ld=
6482 hardcode_libdir_separator=
6485 hardcode_shlibpath_var=unsupported
6486 link_all_deplibs=unknown
6487 hardcode_automatic=no
6490 always_export_symbols=no
6491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6492 # include_expsyms should be a list of space-separated symbols to be *always*
6493 # included in the symbol list
6495 # exclude_expsyms can be an extended regexp of symbols to exclude
6496 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6497 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6498 # as well as any symbol that contains `d'.
6499 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6501 # platforms (ab)use it in PIC code, but their linkers get confused if
6502 # the symbol is explicitly referenced. Since portable code cannot
6503 # rely on this symbol name, it's probably fine to never include it in
6504 # preloaded symbol tables.
6505 extract_expsyms_cmds=
6508 cygwin* | mingw* | pw32*)
6509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6510 # When not using gcc, we currently assume that we are using
6511 # Microsoft Visual C++.
6512 if test "$GCC" != yes; then
6522 if test "$with_gnu_ld" = yes; then
6523 # If archive_cmds runs LD, not CC, wlarc should be empty
6526 # See if GNU ld supports shared libraries.
6528 aix3* | aix4* | aix5*)
6529 # On AIX/PPC, the GNU linker is very broken
6530 if test "$host_cpu" != ia64; then
6534 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6535 *** to be unable to reliably create shared libraries on AIX.
6536 *** Therefore, libtool is disabling shared libraries support. If you
6537 *** really care for shared libraries, you may want to modify your PATH
6538 *** so that a non-GNU linker is found, and then restart.
6545 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)'
6546 hardcode_libdir_flag_spec='-L$libdir'
6547 hardcode_minus_L=yes
6549 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6550 # that the semantics of dynamic libraries on AmigaOS, at least up
6551 # to version 4, is to share data among multiple programs linked
6552 # with the same dynamic library. Since this doesn't match the
6553 # behavior of shared libraries on other platforms, we can't use
6559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6560 allow_undefined_flag=unsupported
6561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6562 # support --undefined. This deserves some investigation. FIXME
6563 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6569 cygwin* | mingw* | pw32*)
6570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6571 # as there is no search path for DLLs.
6572 hardcode_libdir_flag_spec='-L$libdir'
6573 allow_undefined_flag=unsupported
6574 always_export_symbols=no
6575 enable_shared_with_static_runtimes=yes
6576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6578 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6580 # If the export-symbols file already is a .def file (1st line
6581 # is EXPORTS), use it as is; otherwise, prepend...
6582 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6583 cp $export_symbols $output_objdir/$soname.def;
6585 echo EXPORTS > $output_objdir/$soname.def;
6586 cat $export_symbols >> $output_objdir/$soname.def;
6588 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6596 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6605 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6610 *** create shared libraries on Solaris systems. Therefore, libtool
6611 *** is disabling shared libraries support. We urge you to upgrade GNU
6612 *** binutils to release 2.9.1 or newer. Another option is to modify
6613 *** your PATH or compiler configuration so that the native linker is
6614 *** used, and then restart.
6617 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6626 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6629 hardcode_shlibpath_var=no
6633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6634 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635 archive_cmds="$tmp_archive_cmds"
6636 supports_anon_versioning=no
6637 case `$LD -v 2>/dev/null` in
6638 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6641 *\ 2.11.*) ;; # other 2.11 versions
6642 *) supports_anon_versioning=yes ;;
6644 if test $supports_anon_versioning = yes; then
6645 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6647 $echo "local: *; };" >> $output_objdir/$libname.ver~
6648 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6650 archive_expsym_cmds="$tmp_archive_cmds"
6658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6667 if test "$ld_shlibs" = yes; then
6668 runpath_var=LD_RUN_PATH
6669 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6670 export_dynamic_flag_spec='${wl}--export-dynamic'
6671 # ancient GNU ld didn't support --whole-archive et. al.
6672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6675 whole_archive_flag_spec=
6679 # PORTME fill in a description of your system's linker (not GNU ld)
6682 allow_undefined_flag=unsupported
6683 always_export_symbols=yes
6684 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'
6685 # Note: this linker hardcodes the directories in LIBPATH if there
6686 # are no directories specified by -L.
6687 hardcode_minus_L=yes
6688 if test "$GCC" = yes && test -z "$link_static_flag"; then
6689 # Neither direct hardcoding nor static linking is supported with a
6691 hardcode_direct=unsupported
6696 if test "$host_cpu" = ia64; then
6697 # On IA64, the linker does run time linking by default, so we don't
6698 # have to do anything special.
6699 aix_use_runtimelinking=no
6700 exp_sym_flag='-Bexport'
6703 # If we're using GNU nm, then we don't want the "-C" option.
6704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6705 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6706 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'
6708 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'
6710 aix_use_runtimelinking=no
6712 # Test if we are trying to use run time linking or normal
6713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6714 # need to do runtime linking.
6715 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6716 for ld_flag in $LDFLAGS; do
6717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6718 aix_use_runtimelinking=yes
6724 exp_sym_flag='-bexport'
6725 no_entry_flag='-bnoentry'
6728 # When large executables or shared objects are built, AIX ld can
6729 # have problems creating the table of contents. If linking a library
6730 # or program results in "error TOC overflow" add -mminimal-toc to
6731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6736 hardcode_libdir_separator=':'
6737 link_all_deplibs=yes
6739 if test "$GCC" = yes; then
6740 case $host_os in aix4.012|aix4.012.*)
6741 # We only want to do this on AIX 4.2 and lower, the check
6742 # below for broken collect2 doesn't work under 4.3+
6743 collect2name=`${CC} -print-prog-name=collect2`
6744 if test -f "$collect2name" && \
6745 strings "$collect2name" | grep resolve_lib_name >/dev/null
6747 # We have reworked collect2
6750 # We have old collect2
6751 hardcode_direct=unsupported
6752 # It fails to find uninstalled libraries when the uninstalled
6753 # path is not listed in the libpath. Setting hardcode_minus_L
6754 # to unsupported forces relinking
6755 hardcode_minus_L=yes
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 hardcode_libdir_separator=
6760 shared_flag='-shared'
6763 if test "$host_cpu" = ia64; then
6764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6765 # chokes on -Wl,-G. The following line is correct:
6768 if test "$aix_use_runtimelinking" = yes; then
6769 shared_flag='${wl}-G'
6771 shared_flag='${wl}-bM:SRE'
6776 # It seems that -bexpall does not export symbols beginning with
6777 # underscore (_), so it is better to generate a list of symbols to export.
6778 always_export_symbols=yes
6779 if test "$aix_use_runtimelinking" = yes; then
6780 # Warning - without using the other runtime loading flags (-brtl),
6781 # -berok will link without error, but may produce a broken library.
6782 allow_undefined_flag='-berok'
6783 # Determine the default libpath from the value encoded in an empty executable.
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest$ac_exeext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6824 # Check for a 64-bit object if we didn't find anything.
6825 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; }
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6832 rm -f conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6837 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"
6839 if test "$host_cpu" = ia64; then
6840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6841 allow_undefined_flag="-z nodefs"
6842 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"
6844 # Determine the default libpath from the value encoded in an empty executable.
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6885 # Check for a 64-bit object if we didn't find anything.
6886 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; }
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6893 rm -f conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6898 # Warning - without using the other run time loading flags,
6899 # -berok will link without error, but may produce a broken library.
6900 no_undefined_flag=' ${wl}-bernotok'
6901 allow_undefined_flag=' ${wl}-berok'
6902 # -bexpall does not export symbols beginning with underscore (_)
6903 always_export_symbols=yes
6904 # Exported symbols can be pulled into shared objects from archives
6905 whole_archive_flag_spec=' '
6906 archive_cmds_need_lc=yes
6907 # This is similar to how AIX traditionally builds it's shared libraries.
6908 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'
6914 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)'
6915 hardcode_libdir_flag_spec='-L$libdir'
6916 hardcode_minus_L=yes
6917 # see comment about different semantics on the GNU ld section
6922 export_dynamic_flag_spec=-rdynamic
6925 cygwin* | mingw* | pw32*)
6926 # When not using gcc, we currently assume that we are using
6927 # Microsoft Visual C++.
6928 # hardcode_libdir_flag_spec is actually meaningless, as there is
6929 # no search path for DLLs.
6930 hardcode_libdir_flag_spec=' '
6931 allow_undefined_flag=unsupported
6932 # Tell ltmain to make .lib files, not .a files.
6934 # Tell ltmain to make .dll files, not .so files.
6936 # FIXME: Setting linknames here is a bad hack.
6937 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6938 # The linker will automatically build a .lib file if we build a DLL.
6939 old_archive_From_new_cmds='true'
6940 # FIXME: Should let the user specify the lib program.
6941 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942 fix_srcfile_path='`cygpath -w "$srcfile"`'
6943 enable_shared_with_static_runtimes=yes
6946 darwin* | rhapsody*)
6948 rhapsody* | darwin1.[012])
6949 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6952 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6955 case ${MACOSX_DEPLOYMENT_TARGET} in
6957 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6960 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6966 archive_cmds_need_lc=no
6968 hardcode_automatic=yes
6969 hardcode_shlibpath_var=unsupported
6970 whole_archive_flag_spec=''
6971 link_all_deplibs=yes
6972 if test "$GCC" = yes ; then
6973 output_verbose_link_cmd='echo'
6974 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6975 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6977 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}'
6978 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}'
6980 case "$cc_basename" in
6982 output_verbose_link_cmd='echo'
6983 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6984 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6986 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}'
6987 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}'
6997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6998 hardcode_libdir_flag_spec='-L$libdir'
6999 hardcode_shlibpath_var=no
7006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7007 # support. Future versions do this automatically, but an explicit c++rt0.o
7008 # does not break anything, and helps significantly (at the cost of a little
7011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7012 hardcode_libdir_flag_spec='-R$libdir'
7014 hardcode_shlibpath_var=no
7017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7021 hardcode_minus_L=yes
7022 hardcode_shlibpath_var=no
7025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7026 freebsd* | kfreebsd*-gnu)
7027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7028 hardcode_libdir_flag_spec='-R$libdir'
7030 hardcode_shlibpath_var=no
7034 if test "$GCC" = yes; then
7035 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'
7037 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'
7039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7040 hardcode_libdir_separator=:
7043 # hardcode_minus_L: Not really in the search PATH,
7044 # but as the default location of the library.
7045 hardcode_minus_L=yes
7046 export_dynamic_flag_spec='${wl}-E'
7050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7053 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7062 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7069 if test "$with_gnu_ld" = no; then
7072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7073 hardcode_libdir_flag_spec_ld='+b $libdir'
7074 hardcode_libdir_separator=:
7076 hardcode_shlibpath_var=no
7079 hardcode_libdir_flag_spec='-L$libdir'
7081 hardcode_shlibpath_var=no
7083 # hardcode_minus_L: Not really in the search PATH,
7084 # but as the default location of the library.
7085 hardcode_minus_L=yes
7088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7089 hardcode_libdir_separator=:
7091 export_dynamic_flag_spec='${wl}-E'
7093 # hardcode_minus_L: Not really in the search PATH,
7094 # but as the default location of the library.
7095 hardcode_minus_L=yes
7101 irix5* | irix6* | nonstopux*)
7102 if test "$GCC" = yes; then
7103 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'
7105 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'
7106 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110 link_all_deplibs=yes
7114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7117 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7119 hardcode_libdir_flag_spec='-R$libdir'
7121 hardcode_shlibpath_var=no
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7128 hardcode_libdir_separator=:
7129 hardcode_shlibpath_var=no
7134 hardcode_shlibpath_var=no
7135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139 export_dynamic_flag_spec='${wl}-E'
7142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_libdir_flag_spec='-R$libdir'
7147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_minus_L=yes
7157 allow_undefined_flag=unsupported
7158 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'
7159 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7163 if test "$GCC" = yes; then
7164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165 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'
7167 allow_undefined_flag=' -expect_unresolved \*'
7168 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'
7170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171 hardcode_libdir_separator=:
7174 osf4* | osf5*) # as osf3* with the addition of -msym flag
7175 if test "$GCC" = yes; then
7176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177 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'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7180 allow_undefined_flag=' -expect_unresolved \*'
7181 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'
7182 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7183 $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'
7185 # Both c and cxx compiler support -rpath directly
7186 hardcode_libdir_flag_spec='-rpath $libdir'
7188 hardcode_libdir_separator=:
7192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193 hardcode_shlibpath_var=no
7194 export_dynamic_flag_spec='${wl}-Bexport'
7195 runpath_var=LD_RUN_PATH
7196 hardcode_runpath_var=yes
7200 no_undefined_flag=' -z text'
7201 if test "$GCC" = yes; then
7202 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7204 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7206 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7208 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7210 hardcode_libdir_flag_spec='-R$libdir'
7211 hardcode_shlibpath_var=no
7213 solaris2.[0-5] | solaris2.[0-5].*) ;;
7214 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7217 link_all_deplibs=yes
7221 if test "x$host_vendor" = xsequent; then
7222 # Use $CC to link under sequent, because it throws in some extra .o
7223 # files that make .init and .fini sections work.
7224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_libdir_flag_spec='-L$libdir'
7230 hardcode_minus_L=yes
7231 hardcode_shlibpath_var=no
7235 case $host_vendor in
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=yes # is this really true???
7241 ## LD is ld it makes a PLAMLIB
7242 ## CC just makes a GrossModule.
7243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244 reload_cmds='$CC -r -o $output$reload_objs'
7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7252 runpath_var='LD_RUN_PATH'
7253 hardcode_shlibpath_var=no
7257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258 hardcode_shlibpath_var=no
7259 export_dynamic_flag_spec='-Bexport'
7263 if test -d /usr/nec; then
7264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7266 runpath_var=LD_RUN_PATH
7267 hardcode_runpath_var=yes
7273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7276 hardcode_shlibpath_var=no
7277 hardcode_runpath_var=yes
7278 runpath_var=LD_RUN_PATH
7281 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7282 no_undefined_flag='${wl}-z ${wl}text'
7283 if test "$GCC" = yes; then
7284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7286 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288 runpath_var='LD_RUN_PATH'
7289 hardcode_shlibpath_var=no
7293 no_undefined_flag=' -z text'
7294 # $CC -shared without GNU ld will not create a library from C++
7295 # object files and a static libstdc++, better avoid it by now
7296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7299 hardcode_libdir_flag_spec=
7300 hardcode_shlibpath_var=no
7301 runpath_var='LD_RUN_PATH'
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_libdir_flag_spec='-L$libdir'
7307 hardcode_shlibpath_var=no
7316 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7317 echo "${ECHO_T}$ld_shlibs" >&6
7318 test "$ld_shlibs" = no && can_build_shared=no
7320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7321 if test "$GCC" = yes; then
7322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7326 # Do we need to explicitly link libc?
7328 case "x$archive_cmds_need_lc" in
7330 # Assume -lc should be added
7331 archive_cmds_need_lc=yes
7333 if test "$enable_shared" = yes && test "$GCC" = yes; then
7334 case $archive_cmds in
7336 # FIXME: we may have to deal with multi-command sequences.
7339 # Test whether the compiler implicitly links with -lc since on some
7340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7341 # to ld, don't add -lc before -lgcc.
7342 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7343 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } 2>conftest.err; then
7354 libobjs=conftest.$ac_objext
7356 wl=$lt_prog_compiler_wl
7362 lt_save_allow_undefined_flag=$allow_undefined_flag
7363 allow_undefined_flag=
7364 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7365 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7370 archive_cmds_need_lc=no
7372 archive_cmds_need_lc=yes
7374 allow_undefined_flag=$lt_save_allow_undefined_flag
7376 cat conftest.err 1>&5
7379 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7380 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7387 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7388 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7390 libname_spec='lib$name'
7398 shlibpath_overrides_runpath=unknown
7400 dynamic_linker="$host_os ld.so"
7401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7402 if test "$GCC" = yes; then
7403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7404 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7405 # if the path contains ";" then we assume it to be the separator
7406 # otherwise default to the standard path separator (i.e. ":") - it is
7407 # assumed that no part of a normal pathname contains ";" but that should
7408 # okay in the real world where ";" in dirpaths is itself problematic.
7409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7416 need_lib_prefix=unknown
7417 hardcode_into_libs=no
7419 # when you set need_version to no, make sure it does not cause -set_version
7420 # flags to be left without arguments
7421 need_version=unknown
7426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7427 shlibpath_var=LIBPATH
7429 # AIX 3 has no versioning support, so we append a major version to the name.
7430 soname_spec='${libname}${release}${shared_ext}$major'
7437 hardcode_into_libs=yes
7438 if test "$host_cpu" = ia64; then
7439 # AIX 5 supports IA64
7440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7441 shlibpath_var=LD_LIBRARY_PATH
7443 # With GCC up to 2.95.x, collect2 would create an import file
7444 # for dependence libraries. The import file would start with
7445 # the line `#! .'. This would cause the generated library to
7446 # depend on `.', always an invalid library. This was fixed in
7447 # development snapshots of GCC prior to 3.0.
7449 aix4 | aix4.[01] | aix4.[01].*)
7450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7452 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7460 # soname into executable. Probably we can add versioning support to
7461 # collect2, so additional links can be useful in future.
7462 if test "$aix_use_runtimelinking" = yes; then
7463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7464 # instead of lib<name>.a to let people know that these are not
7465 # typical AIX shared libraries.
7466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7468 # We preserve .a as extension for shared libraries through AIX4.2
7469 # and later when we are not doing run time linking.
7470 library_names_spec='${libname}${release}.a $libname.a'
7471 soname_spec='${libname}${release}${shared_ext}$major'
7473 shlibpath_var=LIBPATH
7478 library_names_spec='$libname.ixlibrary $libname.a'
7479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7480 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'
7484 library_names_spec='${libname}${shared_ext}'
7485 dynamic_linker="$host_os ld.so"
7486 shlibpath_var=LIBRARY_PATH
7492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7493 soname_spec='${libname}${release}${shared_ext}$major'
7494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7495 shlibpath_var=LD_LIBRARY_PATH
7496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7498 # the default ld.so.conf also contains /usr/contrib/lib and
7499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7500 # libtool to hard-code these into programs
7503 cygwin* | mingw* | pw32*)
7504 version_type=windows
7509 case $GCC,$host_os in
7510 yes,cygwin* | yes,mingw* | yes,pw32*)
7511 library_names_spec='$libname.dll.a'
7512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7513 postinstall_cmds='base_file=`basename \${file}`~
7514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7515 dldir=$destdir/`dirname \$dlpath`~
7516 test -d \$dldir || mkdir -p \$dldir~
7517 $install_prog $dir/$dlname \$dldir/$dlname'
7518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7519 dlpath=$dir/\$dldll~
7521 shlibpath_overrides_runpath=yes
7525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7530 # MinGW DLLs use traditional 'lib' prefix
7531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7533 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7534 # It is most probably a Windows format PATH printed by
7535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7536 # path with ; separators, and with drive letters. We can handle the
7537 # drive letters (cygwin fileutils understands them), so leave them,
7538 # especially as we might pass files found there to a mingw objdump,
7539 # which wouldn't understand a cygwinified path. Ahh.
7540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7546 # pw32 DLLs use 'pw' prefix rather than 'lib'
7547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7556 dynamic_linker='Win32 ld.exe'
7557 # FIXME: first we should search . and the directory the executable is in
7561 darwin* | rhapsody*)
7562 dynamic_linker="$host_os dyld"
7566 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7567 soname_spec='${libname}${release}${major}$shared_ext'
7568 shlibpath_overrides_runpath=yes
7569 shlibpath_var=DYLD_LIBRARY_PATH
7570 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7571 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7572 if test "$GCC" = yes; then
7573 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"`
7575 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7585 soname_spec='${libname}${release}${shared_ext}$major'
7586 shlibpath_var=LD_LIBRARY_PATH
7597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7598 soname_spec='${libname}${release}${shared_ext}$major'
7599 shlibpath_var=LD_LIBRARY_PATH
7600 shlibpath_overrides_runpath=no
7601 hardcode_into_libs=yes
7602 dynamic_linker='GNU ld.so'
7606 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7607 version_type=freebsd-$objformat
7608 case $version_type in
7610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7619 shlibpath_var=LD_LIBRARY_PATH
7622 shlibpath_overrides_runpath=yes
7624 freebsd3.01* | freebsdelf3.01*)
7625 shlibpath_overrides_runpath=yes
7626 hardcode_into_libs=yes
7629 shlibpath_overrides_runpath=no
7630 hardcode_into_libs=yes
7639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7640 soname_spec='${libname}${release}${shared_ext}$major'
7641 shlibpath_var=LD_LIBRARY_PATH
7642 hardcode_into_libs=yes
7645 hpux9* | hpux10* | hpux11*)
7646 # Give a soname corresponding to the major version so that dld.sl refuses to
7647 # link against other versions.
7654 hardcode_into_libs=yes
7655 dynamic_linker="$host_os dld.so"
7656 shlibpath_var=LD_LIBRARY_PATH
7657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659 soname_spec='${libname}${release}${shared_ext}$major'
7660 if test "X$HPUX_IA64_MODE" = X32; then
7661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7669 hardcode_into_libs=yes
7670 dynamic_linker="$host_os dld.sl"
7671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 soname_spec='${libname}${release}${shared_ext}$major'
7675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7680 dynamic_linker="$host_os dld.sl"
7681 shlibpath_var=SHLIB_PATH
7682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
7687 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7688 postinstall_cmds='chmod 555 $lib'
7691 irix5* | irix6* | nonstopux*)
7693 nonstopux*) version_type=nonstopux ;;
7695 if test "$lt_cv_prog_gnu_ld" = yes; then
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7706 irix5* | nonstopux*)
7710 case $LD in # libtool.m4 will add one of these switches to LD
7711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7712 libsuff= shlibsuff= libmagic=32-bit;;
7713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7714 libsuff=32 shlibsuff=N32 libmagic=N32;;
7715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7716 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7717 *) libsuff= shlibsuff= libmagic=never-match;;
7721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7722 shlibpath_overrides_runpath=no
7723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7725 hardcode_into_libs=yes
7728 # No shared lib support for Linux oldld, aout, or coff.
7729 linux*oldld* | linux*aout* | linux*coff*)
7733 # This must be Linux ELF.
7738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7739 soname_spec='${libname}${release}${shared_ext}$major'
7740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7741 shlibpath_var=LD_LIBRARY_PATH
7742 shlibpath_overrides_runpath=no
7743 # This implies no fast_install, which is unacceptable.
7744 # Some rework will be needed to allow for fast_install
7745 # before this can be enabled.
7746 hardcode_into_libs=yes
7748 # Append ld.so.conf contents to the search path
7749 if test -f /etc/ld.so.conf; then
7750 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7754 # We used to test for /lib/ld.so.1 and disable shared libraries on
7755 # powerpc, because MkLinux only supported shared libraries with the
7756 # GNU dynamic linker. Since this was broken with cross compilers,
7757 # most powerpc-linux boxes support dynamic linking these days and
7758 # people can always --disable-shared, the test was removed, and we
7759 # assume the GNU/Linux dynamic linker is in use.
7760 dynamic_linker='GNU/Linux ld.so'
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7768 soname_spec='${libname}${release}${shared_ext}$major'
7769 shlibpath_var=LD_LIBRARY_PATH
7770 shlibpath_overrides_runpath=no
7771 hardcode_into_libs=yes
7772 dynamic_linker='GNU ld.so'
7779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7782 dynamic_linker='NetBSD (a.out) ld.so'
7784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7785 soname_spec='${libname}${release}${shared_ext}$major'
7786 dynamic_linker='NetBSD ld.elf_so'
7788 shlibpath_var=LD_LIBRARY_PATH
7789 shlibpath_overrides_runpath=yes
7790 hardcode_into_libs=yes
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805 soname_spec='${libname}${release}${shared_ext}$major'
7806 shlibpath_var=LD_LIBRARY_PATH
7807 shlibpath_overrides_runpath=yes
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7816 shlibpath_var=LD_LIBRARY_PATH
7817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7819 openbsd2.[89] | openbsd2.[89].*)
7820 shlibpath_overrides_runpath=no
7823 shlibpath_overrides_runpath=yes
7827 shlibpath_overrides_runpath=yes
7832 libname_spec='$name'
7835 library_names_spec='$libname${shared_ext} $libname.a'
7836 dynamic_linker='OS/2 ld.exe'
7837 shlibpath_var=LIBPATH
7840 osf3* | osf4* | osf5*)
7844 soname_spec='${libname}${release}${shared_ext}$major'
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 shlibpath_var=LD_LIBRARY_PATH
7847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7853 soname_spec='${libname}${release}${shared_ext}$major'
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7855 shlibpath_var=LD_LIBRARY_PATH
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=yes
7866 hardcode_into_libs=yes
7867 # ldd complains unless libraries are executable
7868 postinstall_cmds='chmod +x $lib'
7873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=yes
7877 if test "$with_gnu_ld" = yes; then
7883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 soname_spec='${libname}${release}${shared_ext}$major'
7887 shlibpath_var=LD_LIBRARY_PATH
7888 case $host_vendor in
7890 shlibpath_overrides_runpath=no
7892 export_dynamic_flag_spec='${wl}-Blargedynsym'
7893 runpath_var=LD_RUN_PATH
7901 shlibpath_overrides_runpath=no
7902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7908 if test -d /usr/nec ;then
7910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7911 soname_spec='$libname${shared_ext}.$major'
7912 shlibpath_var=LD_LIBRARY_PATH
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
7920 shlibpath_var=LD_LIBRARY_PATH
7927 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7928 echo "${ECHO_T}$dynamic_linker" >&6
7929 test "$dynamic_linker" = no && can_build_shared=no
7931 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7932 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7934 if test -n "$hardcode_libdir_flag_spec" || \
7935 test -n "$runpath_var" || \
7936 test "X$hardcode_automatic" = "Xyes" ; then
7938 # We can hardcode non-existant directories.
7939 if test "$hardcode_direct" != no &&
7940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7941 # have to relink, otherwise we might link with an installed library
7942 # when we should be linking with a yet-to-be-installed one
7943 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7944 test "$hardcode_minus_L" != no; then
7945 # Linking always hardcodes the temporary library directory.
7946 hardcode_action=relink
7948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7949 hardcode_action=immediate
7952 # We cannot hardcode anything, or else we can only hardcode existing
7954 hardcode_action=unsupported
7956 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7957 echo "${ECHO_T}$hardcode_action" >&6
7959 if test "$hardcode_action" = relink; then
7960 # Fast installation is not supported
7961 enable_fast_install=no
7962 elif test "$shlibpath_overrides_runpath" = yes ||
7963 test "$enable_shared" = no; then
7964 # Fast installation is not necessary
7965 enable_fast_install=needless
7970 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7971 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7972 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7973 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7974 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7975 echo "$as_me:$LINENO: result: yes" >&5
7976 echo "${ECHO_T}yes" >&6
7978 # FIXME - insert some real tests, host_os isn't really good enough
7981 if test -n "$STRIP" ; then
7982 striplib="$STRIP -x"
7983 echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7986 echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7991 echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7997 if test "x$enable_dlopen" != xyes; then
7998 enable_dlopen=unknown
7999 enable_dlopen_self=unknown
8000 enable_dlopen_self_static=unknown
8007 lt_cv_dlopen="load_add_on"
8009 lt_cv_dlopen_self=yes
8013 lt_cv_dlopen="LoadLibrary"
8018 lt_cv_dlopen="dlopen"
8023 # if libdl is installed we need to link against it
8024 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 ac_check_lib_save_LIBS=$LIBS
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8038 /* Override any gcc2 internal prototype to avoid an error. */
8042 /* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055 (eval $ac_link) 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag"
8063 || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_lib_dl_dlopen=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 ac_cv_lib_dl_dlopen=no
8082 rm -f conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8088 if test $ac_cv_lib_dl_dlopen = yes; then
8089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8094 lt_cv_dlopen_self=yes
8101 echo "$as_me:$LINENO: checking for shl_load" >&5
8102 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8103 if test "${ac_cv_func_shl_load+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8114 #define shl_load innocuous_shl_load
8116 /* System header to define __stub macros and hopefully few prototypes,
8117 which can conflict with char shl_load (); below.
8118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8119 <limits.h> exists even on freestanding compilers. */
8122 # include <limits.h>
8124 # include <assert.h>
8129 /* Override any gcc2 internal prototype to avoid an error. */
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8137 /* The GNU C library defines this for functions which it implements
8138 to always fail with ENOSYS. Some functions are actually named
8139 something starting with __ and the normal name is an alias. */
8140 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8143 char (*f) () = shl_load;
8152 return f != shl_load;
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159 (eval $ac_link) 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest$ac_exeext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_func_shl_load=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_func_shl_load=no
8186 rm -f conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8190 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8191 if test $ac_cv_func_shl_load = yes; then
8192 lt_cv_dlopen="shl_load"
8194 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8195 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_check_lib_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8208 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8225 (eval $ac_link) 2>conftest.er1
8227 grep -v '^ *+' conftest.er1 >conftest.err
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try='test -s conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_lib_dld_shl_load=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 ac_cv_lib_dld_shl_load=no
8252 rm -f conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254 LIBS=$ac_check_lib_save_LIBS
8256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8258 if test $ac_cv_lib_dld_shl_load = yes; then
8259 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8261 echo "$as_me:$LINENO: checking for dlopen" >&5
8262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8263 if test "${ac_cv_func_dlopen+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274 #define dlopen innocuous_dlopen
8276 /* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char dlopen (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
8282 # include <limits.h>
8284 # include <assert.h>
8289 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8297 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8303 char (*f) () = dlopen;
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_dlopen=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_func_dlopen=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8350 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8351 if test $ac_cv_func_dlopen = yes; then
8352 lt_cv_dlopen="dlopen"
8354 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 ac_check_lib_save_LIBS=$LIBS
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8368 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_lib_dl_dlopen=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_lib_dl_dlopen=no
8412 rm -f conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8416 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8417 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8418 if test $ac_cv_lib_dl_dlopen = yes; then
8419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8421 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8422 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8423 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 ac_check_lib_save_LIBS=$LIBS
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8435 /* Override any gcc2 internal prototype to avoid an error. */
8439 /* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>conftest.er1
8454 grep -v '^ *+' conftest.er1 >conftest.err
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -z "$ac_c_werror_flag"
8460 || test ! -s conftest.err'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; } &&
8466 { ac_try='test -s conftest$ac_exeext'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_lib_svld_dlopen=yes
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8477 ac_cv_lib_svld_dlopen=no
8479 rm -f conftest.err conftest.$ac_objext \
8480 conftest$ac_exeext conftest.$ac_ext
8481 LIBS=$ac_check_lib_save_LIBS
8483 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8484 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8485 if test $ac_cv_lib_svld_dlopen = yes; then
8486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8488 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8489 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8490 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 ac_check_lib_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any gcc2 internal prototype to avoid an error. */
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519 (eval $ac_link) 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_lib_dld_dld_link=yes
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 ac_cv_lib_dld_dld_link=no
8546 rm -f conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8550 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8551 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8552 if test $ac_cv_lib_dld_dld_link = yes; then
8553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8574 if test "x$lt_cv_dlopen" != xno; then
8580 case $lt_cv_dlopen in
8582 save_CPPFLAGS="$CPPFLAGS"
8583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8585 save_LDFLAGS="$LDFLAGS"
8586 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8589 LIBS="$lt_cv_dlopen_libs $LIBS"
8591 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8592 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8593 if test "${lt_cv_dlopen_self+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 if test "$cross_compiling" = yes; then :
8597 lt_cv_dlopen_self=cross
8599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8600 lt_status=$lt_dlunknown
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8602 "configure"
8603 #include "confdefs.h"
8612 # define LT_DLGLOBAL RTLD_GLOBAL
8615 # define LT_DLGLOBAL DL_GLOBAL
8617 # define LT_DLGLOBAL 0
8621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8622 find out it does not work in some platform. */
8623 #ifndef LT_DLLAZY_OR_NOW
8625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8628 # define LT_DLLAZY_OR_NOW DL_LAZY
8631 # define LT_DLLAZY_OR_NOW RTLD_NOW
8634 # define LT_DLLAZY_OR_NOW DL_NOW
8636 # define LT_DLLAZY_OR_NOW 0
8644 extern "C" void exit (int);
8647 void fnord() { int i=42;}
8650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8651 int status = $lt_dlunknown;
8655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8657 /* dlclose (self); */
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8668 (./conftest; exit; ) 2>/dev/null
8671 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8672 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8673 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8676 # compilation failed
8677 lt_cv_dlopen_self=no
8684 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8685 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8687 if test "x$lt_cv_dlopen_self" = xyes; then
8688 LDFLAGS="$LDFLAGS $link_static_flag"
8689 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8690 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8691 if test "${lt_cv_dlopen_self_static+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 if test "$cross_compiling" = yes; then :
8695 lt_cv_dlopen_self_static=cross
8697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8698 lt_status=$lt_dlunknown
8699 cat > conftest.$ac_ext <<EOF
8700 #line 8700 "configure"
8701 #include "confdefs.h"
8710 # define LT_DLGLOBAL RTLD_GLOBAL
8713 # define LT_DLGLOBAL DL_GLOBAL
8715 # define LT_DLGLOBAL 0
8719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8720 find out it does not work in some platform. */
8721 #ifndef LT_DLLAZY_OR_NOW
8723 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8726 # define LT_DLLAZY_OR_NOW DL_LAZY
8729 # define LT_DLLAZY_OR_NOW RTLD_NOW
8732 # define LT_DLLAZY_OR_NOW DL_NOW
8734 # define LT_DLLAZY_OR_NOW 0
8742 extern "C" void exit (int);
8745 void fnord() { int i=42;}
8748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8749 int status = $lt_dlunknown;
8753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8754 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8755 /* dlclose (self); */
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8766 (./conftest; exit; ) 2>/dev/null
8769 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8770 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8771 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8774 # compilation failed
8775 lt_cv_dlopen_self_static=no
8782 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8783 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8786 CPPFLAGS="$save_CPPFLAGS"
8787 LDFLAGS="$save_LDFLAGS"
8792 case $lt_cv_dlopen_self in
8793 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8794 *) enable_dlopen_self=unknown ;;
8797 case $lt_cv_dlopen_self_static in
8798 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8799 *) enable_dlopen_self_static=unknown ;;
8804 # Report which librarie types wil actually be built
8805 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8806 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8807 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8808 echo "${ECHO_T}$can_build_shared" >&6
8810 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8811 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8812 test "$can_build_shared" = "no" && enable_shared=no
8814 # On AIX, shared libraries and static libraries use the same namespace, and
8815 # are all built from PIC.
8818 test "$enable_shared" = yes && enable_static=no
8819 if test -n "$RANLIB"; then
8820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8821 postinstall_cmds='$RANLIB $lib'
8826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8827 test "$enable_shared" = yes && enable_static=no
8831 echo "$as_me:$LINENO: result: $enable_shared" >&5
8832 echo "${ECHO_T}$enable_shared" >&6
8834 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8835 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8836 # Make sure either enable_shared or enable_static is yes.
8837 test "$enable_shared" = yes || enable_static=yes
8838 echo "$as_me:$LINENO: result: $enable_static" >&5
8839 echo "${ECHO_T}$enable_static" >&6
8841 # The else clause should only fire when bootstrapping the
8842 # libtool distribution, otherwise you forgot to ship ltmain.sh
8843 # with your package, and you will get complaints that there are
8844 # no rules to generate ltmain.sh.
8845 if test -f "$ltmain"; then
8846 # See if we are running on zsh, and set the options which allow our commands through
8847 # without removal of \ escapes.
8848 if test -n "${ZSH_VERSION+set}" ; then
8849 setopt NO_GLOB_SUBST
8851 # Now quote all the things that may contain metacharacters while being
8852 # careful not to overquote the AC_SUBSTed values. We take copies of the
8853 # variables and quote the copies for generation of the libtool script.
8854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8858 deplibs_check_method reload_flag reload_cmds need_locks \
8859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8860 lt_cv_sys_global_symbol_to_c_name_address \
8861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8862 old_postinstall_cmds old_postuninstall_cmds \
8866 lt_prog_compiler_wl \
8867 lt_prog_compiler_pic \
8868 lt_prog_compiler_static \
8869 lt_prog_compiler_no_builtin_flag \
8870 export_dynamic_flag_spec \
8871 thread_safe_flag_spec \
8872 whole_archive_flag_spec \
8873 enable_shared_with_static_runtimes \
8875 old_archive_from_new_cmds \
8880 compiler_lib_search_path \
8882 archive_expsym_cmds \
8884 postuninstall_cmds \
8885 old_archive_from_expsyms_cmds \
8886 allow_undefined_flag \
8888 export_symbols_cmds \
8889 hardcode_libdir_flag_spec \
8890 hardcode_libdir_flag_spec_ld \
8891 hardcode_libdir_separator \
8892 hardcode_automatic \
8894 module_expsym_cmds \
8895 lt_cv_prog_compiler_c_o \
8900 old_archive_cmds | \
8901 old_archive_from_new_cmds | \
8903 archive_expsym_cmds | \
8905 module_expsym_cmds | \
8906 old_archive_from_expsyms_cmds | \
8907 export_symbols_cmds | \
8908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8909 postinstall_cmds | postuninstall_cmds | \
8910 old_postinstall_cmds | old_postuninstall_cmds | \
8911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8912 # Double-quote double-evaled strings.
8913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8922 *'\$0 --fallback-echo"')
8923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8928 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8930 { echo "$as_me:$LINENO: creating $ofile" >&5
8931 echo "$as_me: creating $ofile" >&6;}
8933 cat <<__EOF__ >> "$cfgfile"
8936 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8937 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8940 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8941 # Free Software Foundation, Inc.
8943 # This file is part of GNU Libtool:
8944 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8946 # This program is free software; you can redistribute it and/or modify
8947 # it under the terms of the GNU General Public License as published by
8948 # the Free Software Foundation; either version 2 of the License, or
8949 # (at your option) any later version.
8951 # This program is distributed in the hope that it will be useful, but
8952 # WITHOUT ANY WARRANTY; without even the implied warranty of
8953 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8954 # General Public License for more details.
8956 # You should have received a copy of the GNU General Public License
8957 # along with this program; if not, write to the Free Software
8958 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8960 # As a special exception to the GNU General Public License, if you
8961 # distribute this file as part of a program that contains a
8962 # configuration script generated by Autoconf, you may include it under
8963 # the same distribution terms that you use for the rest of that program.
8965 # A sed program that does not truncate output.
8968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8969 Xsed="$SED -e s/^X//"
8971 # The HP-UX ksh and POSIX shell print the target directory to stdout
8973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8975 # The names of the tagged configurations supported by this script.
8978 # ### BEGIN LIBTOOL CONFIG
8980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8982 # Shell to use when invoking shell scripts.
8985 # Whether or not to build shared libraries.
8986 build_libtool_libs=$enable_shared
8988 # Whether or not to build static libraries.
8989 build_old_libs=$enable_static
8991 # Whether or not to add -lc for building shared libraries.
8992 build_libtool_need_lc=$archive_cmds_need_lc
8994 # Whether or not to disallow shared libs when runtime libs are static
8995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8997 # Whether or not to optimize for fast installation.
8998 fast_install=$enable_fast_install
9001 host_alias=$host_alias
9004 # An echo program that does not interpret backslashes.
9009 AR_FLAGS=$lt_AR_FLAGS
9014 # A language-specific compiler.
9017 # Is the compiler the GNU C compiler?
9023 # The linker used to build libraries.
9026 # Whether we need hard or soft links.
9029 # A BSD-compatible nm program.
9032 # A symbol stripping program
9035 # Used to examine libraries when file_magic_cmd begins "file"
9036 MAGIC_CMD=$MAGIC_CMD
9038 # Used on cygwin: DLL creation program.
9041 # Used on cygwin: object dumper.
9044 # Used on cygwin: assembler.
9047 # The name of the directory that contains temporary libtool files.
9050 # How to create reloadable object files.
9051 reload_flag=$lt_reload_flag
9052 reload_cmds=$lt_reload_cmds
9054 # How to pass a linker flag through the compiler.
9055 wl=$lt_lt_prog_compiler_wl
9057 # Object file suffix (normally "o").
9060 # Old archive suffix (normally "a").
9063 # Shared library suffix (normally ".so").
9064 shrext_cmds='$shrext_cmds'
9066 # Executable file suffix (normally "").
9069 # Additional compiler flags for building library objects.
9070 pic_flag=$lt_lt_prog_compiler_pic
9073 # What is the maximum length of a command?
9074 max_cmd_len=$lt_cv_sys_max_cmd_len
9076 # Does compiler simultaneously support -c and -o options?
9077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9079 # Must we lock files when doing compilation ?
9080 need_locks=$lt_need_locks
9082 # Do we need the lib prefix for modules?
9083 need_lib_prefix=$need_lib_prefix
9085 # Do we need a version for libraries?
9086 need_version=$need_version
9088 # Whether dlopen is supported.
9089 dlopen_support=$enable_dlopen
9091 # Whether dlopen of programs is supported.
9092 dlopen_self=$enable_dlopen_self
9094 # Whether dlopen of statically linked programs is supported.
9095 dlopen_self_static=$enable_dlopen_self_static
9097 # Compiler flag to prevent dynamic linking.
9098 link_static_flag=$lt_lt_prog_compiler_static
9100 # Compiler flag to turn off builtin functions.
9101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9103 # Compiler flag to allow reflexive dlopens.
9104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9106 # Compiler flag to generate shared objects directly from archives.
9107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9109 # Compiler flag to generate thread-safe objects.
9110 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9112 # Library versioning type.
9113 version_type=$version_type
9115 # Format of library name prefix.
9116 libname_spec=$lt_libname_spec
9118 # List of archive names. First name is the real one, the rest are links.
9119 # The last name is the one that the linker finds with -lNAME.
9120 library_names_spec=$lt_library_names_spec
9122 # The coded name of the library, if different from the real name.
9123 soname_spec=$lt_soname_spec
9125 # Commands used to build and install an old-style archive.
9127 old_archive_cmds=$lt_old_archive_cmds
9128 old_postinstall_cmds=$lt_old_postinstall_cmds
9129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9131 # Create an old-style archive from a shared archive.
9132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9134 # Create a temporary old-style archive to link instead of a shared archive.
9135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9137 # Commands used to build and install a shared archive.
9138 archive_cmds=$lt_archive_cmds
9139 archive_expsym_cmds=$lt_archive_expsym_cmds
9140 postinstall_cmds=$lt_postinstall_cmds
9141 postuninstall_cmds=$lt_postuninstall_cmds
9143 # Commands used to build a loadable module (assumed same as above if empty)
9144 module_cmds=$lt_module_cmds
9145 module_expsym_cmds=$lt_module_expsym_cmds
9147 # Commands to strip libraries.
9148 old_striplib=$lt_old_striplib
9149 striplib=$lt_striplib
9151 # Dependencies to place before the objects being linked to create a
9153 predep_objects=$lt_predep_objects
9155 # Dependencies to place after the objects being linked to create a
9157 postdep_objects=$lt_postdep_objects
9159 # Dependencies to place before the objects being linked to create a
9163 # Dependencies to place after the objects being linked to create a
9165 postdeps=$lt_postdeps
9167 # The library search path used internally by the compiler when linking
9169 compiler_lib_search_path=$lt_compiler_lib_search_path
9171 # Method to check whether dependent libraries are shared objects.
9172 deplibs_check_method=$lt_deplibs_check_method
9174 # Command to use when deplibs_check_method == file_magic.
9175 file_magic_cmd=$lt_file_magic_cmd
9177 # Flag that allows shared libraries with undefined symbols to be built.
9178 allow_undefined_flag=$lt_allow_undefined_flag
9180 # Flag that forces no undefined symbols.
9181 no_undefined_flag=$lt_no_undefined_flag
9183 # Commands used to finish a libtool library installation in a directory.
9184 finish_cmds=$lt_finish_cmds
9186 # Same as above, but a single script fragment to be evaled but not shown.
9187 finish_eval=$lt_finish_eval
9189 # Take the output of nm and produce a listing of raw symbols and C names.
9190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9192 # Transform the output of nm in a proper C declaration
9193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9195 # Transform the output of nm in a C name address pair
9196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9198 # This is the shared library runtime path variable.
9199 runpath_var=$runpath_var
9201 # This is the shared library path variable.
9202 shlibpath_var=$shlibpath_var
9204 # Is shlibpath searched before the hard-coded library search path?
9205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9207 # How to hardcode a shared library path into an executable.
9208 hardcode_action=$hardcode_action
9210 # Whether we should hardcode library paths into libraries.
9211 hardcode_into_libs=$hardcode_into_libs
9213 # Flag to hardcode \$libdir into a binary during linking.
9214 # This must work even if \$libdir does not exist.
9215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9217 # If ld is used when linking, flag to hardcode \$libdir into
9218 # a binary during linking. This must work even if \$libdir does
9220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9222 # Whether we need a single -rpath flag with a separated argument.
9223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9227 hardcode_direct=$hardcode_direct
9229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9231 hardcode_minus_L=$hardcode_minus_L
9233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9234 # the resulting binary.
9235 hardcode_shlibpath_var=$hardcode_shlibpath_var
9237 # Set to yes if building a shared library automatically hardcodes DIR into the library
9238 # and all subsequent libraries and executables linked against it.
9239 hardcode_automatic=$hardcode_automatic
9241 # Variables whose values should be saved in libtool wrapper scripts and
9242 # restored at relink time.
9243 variables_saved_for_relink="$variables_saved_for_relink"
9245 # Whether libtool must link a program against all its dependency libraries.
9246 link_all_deplibs=$link_all_deplibs
9248 # Compile-time system search path for libraries
9249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9251 # Run-time system search path for libraries
9252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9254 # Fix the shell variable \$srcfile for the compiler.
9255 fix_srcfile_path="$fix_srcfile_path"
9257 # Set to yes if exported symbols are required.
9258 always_export_symbols=$always_export_symbols
9260 # The commands to list exported symbols.
9261 export_symbols_cmds=$lt_export_symbols_cmds
9263 # The commands to extract the exported symbol list from a shared archive.
9264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9266 # Symbols that should not be listed in the preloaded symbols.
9267 exclude_expsyms=$lt_exclude_expsyms
9269 # Symbols that must always be exported.
9270 include_expsyms=$lt_include_expsyms
9272 # ### END LIBTOOL CONFIG
9279 cat <<\EOF >> "$cfgfile"
9281 # AIX sometimes has problems with the GCC collect2 program. For some
9282 # reason, if we set the COLLECT_NAMES environment variable, the problems
9283 # vanish in a puff of smoke.
9284 if test "X${COLLECT_NAMES+set}" != Xset; then
9286 export COLLECT_NAMES
9292 # We use sed instead of cat because bash on DJGPP gets confused if
9293 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9294 # text mode, it properly converts lines to CR/LF. This bash problem
9295 # is reportedly fixed, but why not run on old versions too?
9296 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9298 mv -f "$cfgfile" "$ofile" || \
9299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9303 # If there is no Makefile yet, we rely on a make rule to execute
9304 # `config.status --recheck' to rerun these tests and create the
9305 # libtool script then.
9306 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9307 if test -f "$ltmain_in"; then
9308 test -f Makefile && make "$ltmain"
9314 ac_cpp='$CPP $CPPFLAGS'
9315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9322 # Check whether --with-tags or --without-tags was given.
9323 if test "${with_tags+set}" = set; then
9324 withval="$with_tags"
9328 if test -f "$ltmain" && test -n "$tagnames"; then
9329 if test ! -f "${ofile}"; then
9330 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9331 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9334 if test -z "$LTCC"; then
9335 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9336 if test -z "$LTCC"; then
9337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9338 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9341 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9345 # Extract list of available tagged configurations in $ofile.
9346 # Note that this assumes the entire list is on one line.
9347 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9350 for tagname in $tagnames; do
9352 # Check whether tagname contains only valid characters
9353 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9355 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9356 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9357 { (exit 1); exit 1; }; }
9361 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9363 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9364 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9365 { (exit 1); exit 1; }; }
9368 # Update the list of available tags.
9369 if test -n "$tagname"; then
9370 echo appending configuration tag "$tagname" to $ofile
9374 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9375 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9376 (test "X$CXX" != "Xg++"))) ; then
9378 ac_cpp='$CXXCPP $CPPFLAGS'
9379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9386 archive_cmds_need_lc_CXX=no
9387 allow_undefined_flag_CXX=
9388 always_export_symbols_CXX=no
9389 archive_expsym_cmds_CXX=
9390 export_dynamic_flag_spec_CXX=
9391 hardcode_direct_CXX=no
9392 hardcode_libdir_flag_spec_CXX=
9393 hardcode_libdir_flag_spec_ld_CXX=
9394 hardcode_libdir_separator_CXX=
9395 hardcode_minus_L_CXX=no
9396 hardcode_automatic_CXX=no
9398 module_expsym_cmds_CXX=
9399 link_all_deplibs_CXX=unknown
9400 old_archive_cmds_CXX=$old_archive_cmds
9401 no_undefined_flag_CXX=
9402 whole_archive_flag_spec_CXX=
9403 enable_shared_with_static_runtimes_CXX=no
9405 # Dependencies to place before and after the object being linked:
9407 postdep_objects_CXX=
9410 compiler_lib_search_path_CXX=
9412 # Source file extension for C++ test sources.
9415 # Object file extension for compiled C++ test sources.
9419 # Code to be used in simple compile tests
9420 lt_simple_compile_test_code="int some_variable = 0;\n"
9422 # Code to be used in simple link tests
9423 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9425 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9427 # If no C compiler was specified, use CC.
9430 # Allow CC to be a program name with arguments.
9434 # Allow CC to be a program name with arguments.
9439 lt_save_with_gnu_ld=$with_gnu_ld
9440 lt_save_path_LD=$lt_cv_path_LD
9441 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9442 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9444 unset lt_cv_prog_gnu_ld
9446 if test -n "${lt_cv_path_LDCXX+set}"; then
9447 lt_cv_path_LD=$lt_cv_path_LDCXX
9451 test -z "${LDCXX+set}" || LD=$LDCXX
9455 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9457 # We don't want -fno-exception wen compiling C++ code, so set the
9458 # no_builtin_flag separately
9459 if test "$GXX" = yes; then
9460 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9462 lt_prog_compiler_no_builtin_flag_CXX=
9465 if test "$GXX" = yes; then
9466 # Set up default GNU C++ configuration
9469 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9470 if test "${with_gnu_ld+set}" = set; then
9471 withval="$with_gnu_ld"
9472 test "$withval" = no || with_gnu_ld=yes
9477 if test "$GCC" = yes; then
9478 # Check if gcc -print-prog-name=ld gives a path.
9479 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9480 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9483 # gcc leaves a trailing carriage return which upsets mingw
9484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9489 # Accept absolute paths.
9491 re_direlt='/[^/][^/]*/\.\./'
9492 # Canonicalize the pathname of ld
9493 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9494 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9495 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9497 test -z "$LD" && LD="$ac_prog"
9500 # If it fails, then pretend we aren't using GCC.
9504 # If it is relative, then search for the first ld in PATH.
9508 elif test "$with_gnu_ld" = yes; then
9509 echo "$as_me:$LINENO: checking for GNU ld" >&5
9510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9512 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9515 if test "${lt_cv_path_LD+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 if test -z "$LD"; then
9519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9520 for ac_dir in $PATH; do
9522 test -z "$ac_dir" && ac_dir=.
9523 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9524 lt_cv_path_LD="$ac_dir/$ac_prog"
9525 # Check to see if the program is GNU ld. I'd rather use --version,
9526 # but apparently some GNU ld's only accept -v.
9527 # Break only if it was the GNU/non-GNU ld that we prefer.
9528 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9529 *GNU* | *'with BFD'*)
9530 test "$with_gnu_ld" != no && break
9533 test "$with_gnu_ld" != yes && break
9540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9545 if test -n "$LD"; then
9546 echo "$as_me:$LINENO: result: $LD" >&5
9547 echo "${ECHO_T}$LD" >&6
9549 echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6
9552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9554 { (exit 1); exit 1; }; }
9555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9561 case `$LD -v 2>&1 </dev/null` in
9562 *GNU* | *'with BFD'*)
9563 lt_cv_prog_gnu_ld=yes
9566 lt_cv_prog_gnu_ld=no
9570 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9571 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9572 with_gnu_ld=$lt_cv_prog_gnu_ld
9576 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9577 # archiving commands below assume that GNU ld is being used.
9578 if test "$with_gnu_ld" = yes; then
9579 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 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'
9582 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9585 # If archive_cmds runs LD, not CC, wlarc should be empty
9586 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9587 # investigate it a little bit more. (MM)
9590 # ancient GNU ld didn't support --whole-archive et. al.
9591 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9592 grep 'no-whole-archive' > /dev/null; then
9593 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9595 whole_archive_flag_spec_CXX=
9601 # A generic and very simple default shared library creation
9602 # command for GNU C++ for the case where it uses the native
9603 # linker, instead of GNU ld. If possible, this setting should
9604 # overridden to take advantage of the native linker features on
9605 # the platform it is being used on.
9606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9609 # Commands to make compiler produce verbose output that lists
9610 # what "hidden" libraries, object files and flags are used when
9611 # linking a shared library.
9612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9620 # PORTME: fill in a description of your system's C++ link characteristics
9621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9626 # FIXME: insert proper C++ library support
9630 if test "$host_cpu" = ia64; then
9631 # On IA64, the linker does run time linking by default, so we don't
9632 # have to do anything special.
9633 aix_use_runtimelinking=no
9634 exp_sym_flag='-Bexport'
9637 aix_use_runtimelinking=no
9639 # Test if we are trying to use run time linking or normal
9640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9641 # need to do runtime linking.
9642 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9643 for ld_flag in $LDFLAGS; do
9646 aix_use_runtimelinking=yes
9653 exp_sym_flag='-bexport'
9654 no_entry_flag='-bnoentry'
9657 # When large executables or shared objects are built, AIX ld can
9658 # have problems creating the table of contents. If linking a library
9659 # or program results in "error TOC overflow" add -mminimal-toc to
9660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9664 hardcode_direct_CXX=yes
9665 hardcode_libdir_separator_CXX=':'
9666 link_all_deplibs_CXX=yes
9668 if test "$GXX" = yes; then
9669 case $host_os in aix4.012|aix4.012.*)
9670 # We only want to do this on AIX 4.2 and lower, the check
9671 # below for broken collect2 doesn't work under 4.3+
9672 collect2name=`${CC} -print-prog-name=collect2`
9673 if test -f "$collect2name" && \
9674 strings "$collect2name" | grep resolve_lib_name >/dev/null
9676 # We have reworked collect2
9677 hardcode_direct_CXX=yes
9679 # We have old collect2
9680 hardcode_direct_CXX=unsupported
9681 # It fails to find uninstalled libraries when the uninstalled
9682 # path is not listed in the libpath. Setting hardcode_minus_L
9683 # to unsupported forces relinking
9684 hardcode_minus_L_CXX=yes
9685 hardcode_libdir_flag_spec_CXX='-L$libdir'
9686 hardcode_libdir_separator_CXX=
9689 shared_flag='-shared'
9692 if test "$host_cpu" = ia64; then
9693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9694 # chokes on -Wl,-G. The following line is correct:
9697 if test "$aix_use_runtimelinking" = yes; then
9698 shared_flag='${wl}-G'
9700 shared_flag='${wl}-bM:SRE'
9705 # It seems that -bexpall does not export symbols beginning with
9706 # underscore (_), so it is better to generate a list of symbols to export.
9707 always_export_symbols_CXX=yes
9708 if test "$aix_use_runtimelinking" = yes; then
9709 # Warning - without using the other runtime loading flags (-brtl),
9710 # -berok will link without error, but may produce a broken library.
9711 allow_undefined_flag_CXX='-berok'
9712 # Determine the default libpath from the value encoded in an empty executable.
9713 cat >conftest.$ac_ext <<_ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_cxx_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9753 # Check for a 64-bit object if we didn't find anything.
9754 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; }
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9761 rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9767 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"
9769 if test "$host_cpu" = ia64; then
9770 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9771 allow_undefined_flag_CXX="-z nodefs"
9772 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"
9774 # Determine the default libpath from the value encoded in an empty executable.
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_cxx_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9815 # Check for a 64-bit object if we didn't find anything.
9816 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; }
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9823 rm -f conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9828 # Warning - without using the other run time loading flags,
9829 # -berok will link without error, but may produce a broken library.
9830 no_undefined_flag_CXX=' ${wl}-bernotok'
9831 allow_undefined_flag_CXX=' ${wl}-berok'
9832 # -bexpall does not export symbols beginning with underscore (_)
9833 always_export_symbols_CXX=yes
9834 # Exported symbols can be pulled into shared objects from archives
9835 whole_archive_flag_spec_CXX=' '
9836 archive_cmds_need_lc_CXX=yes
9837 # This is similar to how AIX traditionally builds it's shared libraries.
9838 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'
9843 case $cc_basename in
9845 # FIXME: insert proper C++ library support
9852 cygwin* | mingw* | pw32*)
9853 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9854 # as there is no search path for DLLs.
9855 hardcode_libdir_flag_spec_CXX='-L$libdir'
9856 allow_undefined_flag_CXX=unsupported
9857 always_export_symbols_CXX=no
9858 enable_shared_with_static_runtimes_CXX=yes
9860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9861 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'
9862 # If the export-symbols file already is a .def file (1st line
9863 # is EXPORTS), use it as is; otherwise, prepend...
9864 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9865 cp $export_symbols $output_objdir/$soname.def;
9867 echo EXPORTS > $output_objdir/$soname.def;
9868 cat $export_symbols >> $output_objdir/$soname.def;
9870 $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'
9875 darwin* | rhapsody*)
9877 rhapsody* | darwin1.[012])
9878 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9881 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9882 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9884 case ${MACOSX_DEPLOYMENT_TARGET} in
9886 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9889 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9895 archive_cmds_need_lc_CXX=no
9896 hardcode_direct_CXX=no
9897 hardcode_automatic_CXX=yes
9898 hardcode_shlibpath_var_CXX=unsupported
9899 whole_archive_flag_spec_CXX=''
9900 link_all_deplibs_CXX=yes
9902 if test "$GXX" = yes ; then
9903 lt_int_apple_cc_single_mod=no
9904 output_verbose_link_cmd='echo'
9905 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9906 lt_int_apple_cc_single_mod=yes
9908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9909 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9911 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'
9913 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9915 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9916 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}'
9918 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}'
9920 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}'
9922 case "$cc_basename" in
9924 output_verbose_link_cmd='echo'
9925 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'
9926 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9927 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9928 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}'
9929 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}'
9939 case $cc_basename in
9941 # FIXME: insert proper C++ library support
9945 # Green Hills C++ Compiler
9946 # FIXME: insert proper C++ library support
9950 # FIXME: insert proper C++ library support
9956 # C++ shared libraries reported to be fairly broken before switch to ELF
9960 archive_cmds_need_lc_CXX=no
9962 freebsd* | kfreebsd*-gnu)
9963 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9970 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971 hardcode_libdir_separator_CXX=:
9972 export_dynamic_flag_spec_CXX='${wl}-E'
9973 hardcode_direct_CXX=yes
9974 hardcode_minus_L_CXX=yes # Not in the search PATH,
9975 # but as the default
9976 # location of the library.
9978 case $cc_basename in
9980 # FIXME: insert proper C++ library support
9984 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'
9985 # Commands to make compiler produce verbose output that lists
9986 # what "hidden" libraries, object files and flags are used when
9987 # linking a shared library.
9989 # There doesn't appear to be a way to prevent this compiler from
9990 # explicitly linking system object files so we need to strip them
9991 # from the output so that they don't get included in the library
9993 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'
9996 if test "$GXX" = yes; then
9997 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'
9999 # FIXME: insert proper C++ library support
10006 if test $with_gnu_ld = no; then
10007 case "$host_cpu" in
10009 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10011 hardcode_libdir_separator_CXX=:
10014 hardcode_libdir_flag_spec_CXX='-L$libdir'
10017 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10018 hardcode_libdir_separator_CXX=:
10019 export_dynamic_flag_spec_CXX='${wl}-E'
10023 case "$host_cpu" in
10025 hardcode_direct_CXX=no
10026 hardcode_shlibpath_var_CXX=no
10029 hardcode_direct_CXX=no
10030 hardcode_shlibpath_var_CXX=no
10031 hardcode_minus_L_CXX=yes # Not in the search PATH,
10032 # but as the default
10033 # location of the library.
10036 hardcode_direct_CXX=yes
10037 hardcode_minus_L_CXX=yes # Not in the search PATH,
10038 # but as the default
10039 # location of the library.
10043 case $cc_basename in
10045 # FIXME: insert proper C++ library support
10049 case "$host_cpu" in
10051 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10054 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10057 # Commands to make compiler produce verbose output that lists
10058 # what "hidden" libraries, object files and flags are used when
10059 # linking a shared library.
10061 # There doesn't appear to be a way to prevent this compiler from
10062 # explicitly linking system object files so we need to strip them
10063 # from the output so that they don't get included in the library
10065 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'
10068 if test "$GXX" = yes; then
10069 if test $with_gnu_ld = no; then
10070 case "$host_cpu" in
10072 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10075 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'
10080 # FIXME: insert proper C++ library support
10087 case $cc_basename in
10090 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'
10092 # Archives containing C++ object files must be created using
10093 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10094 # necessary to make sure instantiated templates are included
10096 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10099 if test "$GXX" = yes; then
10100 if test "$with_gnu_ld" = no; then
10101 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'
10103 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'
10106 link_all_deplibs_CXX=yes
10109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10110 hardcode_libdir_separator_CXX=:
10113 case $cc_basename in
10115 # Kuck and Associates, Inc. (KAI) C++ Compiler
10117 # KCC will only create a shared library if the output file
10118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10119 # to its proper name (with version) after linking.
10120 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'
10121 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'
10122 # Commands to make compiler produce verbose output that lists
10123 # what "hidden" libraries, object files and flags are used when
10124 # linking a shared library.
10126 # There doesn't appear to be a way to prevent this compiler from
10127 # explicitly linking system object files so we need to strip them
10128 # from the output so that they don't get included in the library
10130 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'
10132 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10135 # Archives containing C++ object files must be created using
10136 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10137 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10142 # version 8.0 and above of icpc choke on multiply defined symbols
10143 # if we add $predep_objects and $postdep_objects, however 7.1 and
10144 # earlier do not add the objects themselves.
10145 case `$CC -V 2>&1` in
10147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148 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'
10150 *) # Version 8.0 or newer
10151 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10155 archive_cmds_need_lc_CXX=no
10156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10158 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10162 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163 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'
10165 runpath_var=LD_RUN_PATH
10166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10167 hardcode_libdir_separator_CXX=:
10169 # Commands to make compiler produce verbose output that lists
10170 # what "hidden" libraries, object files and flags are used when
10171 # linking a shared library.
10173 # There doesn't appear to be a way to prevent this compiler from
10174 # explicitly linking system object files so we need to strip them
10175 # from the output so that they don't get included in the library
10177 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'
10182 # FIXME: insert proper C++ library support
10186 # FIXME: insert proper C++ library support
10190 case $cc_basename in
10192 # FIXME: insert proper C++ library support
10196 # FIXME: insert proper C++ library support
10202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10203 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10205 hardcode_libdir_flag_spec_CXX='-R$libdir'
10206 hardcode_direct_CXX=yes
10207 hardcode_shlibpath_var_CXX=no
10209 # Workaround some broken pre-1.5 toolchains
10210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10213 # C++ shared libraries are fairly broken
10217 hardcode_direct_CXX=yes
10218 hardcode_shlibpath_var_CXX=no
10219 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10222 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10223 export_dynamic_flag_spec_CXX='${wl}-E'
10224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10226 output_verbose_link_cmd='echo'
10229 case $cc_basename in
10231 # Kuck and Associates, Inc. (KAI) C++ Compiler
10233 # KCC will only create a shared library if the output file
10234 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10235 # to its proper name (with version) after linking.
10236 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'
10238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10239 hardcode_libdir_separator_CXX=:
10241 # Archives containing C++ object files must be created using
10242 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10243 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10247 # Rational C++ 2.4.1
10248 # FIXME: insert proper C++ library support
10252 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10253 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'
10255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10256 hardcode_libdir_separator_CXX=:
10258 # Commands to make compiler produce verbose output that lists
10259 # what "hidden" libraries, object files and flags are used when
10260 # linking a shared library.
10262 # There doesn't appear to be a way to prevent this compiler from
10263 # explicitly linking system object files so we need to strip them
10264 # from the output so that they don't get included in the library
10266 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'
10269 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10270 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10271 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'
10273 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10274 hardcode_libdir_separator_CXX=:
10276 # Commands to make compiler produce verbose output that lists
10277 # what "hidden" libraries, object files and flags are used when
10278 # linking a shared library.
10279 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10282 # FIXME: insert proper C++ library support
10289 case $cc_basename in
10291 # Kuck and Associates, Inc. (KAI) C++ Compiler
10293 # KCC will only create a shared library if the output file
10294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295 # to its proper name (with version) after linking.
10296 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'
10298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10299 hardcode_libdir_separator_CXX=:
10301 # Archives containing C++ object files must be created using
10302 # the KAI C++ compiler.
10303 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10306 # Rational C++ 2.4.1
10307 # FIXME: insert proper C++ library support
10311 allow_undefined_flag_CXX=' -expect_unresolved \*'
10312 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'
10313 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10314 echo "-hidden">> $lib.exp~
10315 $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~
10318 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10319 hardcode_libdir_separator_CXX=:
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10325 # There doesn't appear to be a way to prevent this compiler from
10326 # explicitly linking system object files so we need to strip them
10327 # from the output so that they don't get included in the library
10329 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'
10332 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10333 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10334 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'
10336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator_CXX=:
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10342 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10345 # FIXME: insert proper C++ library support
10352 # FIXME: insert proper C++ library support
10356 archive_cmds_need_lc_CXX=no
10357 case $cc_basename in
10359 # FIXME: insert proper C++ library support
10363 # FIXME: insert proper C++ library support
10369 case $cc_basename in
10372 # FIXME: insert proper C++ library support
10377 # FIXME: insert proper C++ library support
10381 # FIXME: insert proper C++ library support
10387 case $cc_basename in
10389 # Sun C++ 4.2, 5.x and Centerline C++
10390 no_undefined_flag_CXX=' -zdefs'
10391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10393 $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'
10395 hardcode_libdir_flag_spec_CXX='-R$libdir'
10396 hardcode_shlibpath_var_CXX=no
10398 solaris2.0-5 | solaris2.0-5.*) ;;
10400 # The C++ compiler is used as linker so we must use $wl
10401 # flag to pass the commands to the underlying system
10403 # Supported since Solaris 2.6 (maybe 2.5.1?)
10404 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10407 link_all_deplibs_CXX=yes
10409 # Commands to make compiler produce verbose output that lists
10410 # what "hidden" libraries, object files and flags are used when
10411 # linking a shared library.
10413 # There doesn't appear to be a way to prevent this compiler from
10414 # explicitly linking system object files so we need to strip them
10415 # from the output so that they don't get included in the library
10417 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'
10419 # Archives containing C++ object files must be created using
10420 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10421 # necessary to make sure instantiated templates are included
10423 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10426 # Green Hills C++ Compiler
10427 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10429 # The C++ compiler must be used to create the archive.
10430 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10433 # GNU C++ compiler with Solaris linker
10434 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10435 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10436 if $CC --version | grep -v '^2\.7' > /dev/null; then
10437 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10438 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10439 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10441 # Commands to make compiler produce verbose output that lists
10442 # what "hidden" libraries, object files and flags are used when
10443 # linking a shared library.
10444 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10446 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10448 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10449 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10450 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10452 # Commands to make compiler produce verbose output that lists
10453 # what "hidden" libraries, object files and flags are used when
10454 # linking a shared library.
10455 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10458 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10463 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10464 archive_cmds_need_lc_CXX=no
10467 case $cc_basename in
10469 # NonStop-UX NCC 3.20
10470 # FIXME: insert proper C++ library support
10474 # FIXME: insert proper C++ library support
10480 # FIXME: insert proper C++ library support
10484 # FIXME: insert proper C++ library support
10488 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10489 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10490 test "$ld_shlibs_CXX" = no && can_build_shared=no
10496 cat > conftest.$ac_ext <<EOF
10500 Foo (void) { a = 0; }
10506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10507 (eval $ac_compile) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; then
10511 # Parse the compiler output and extract the necessary
10512 # objects, libraries and library flags.
10514 # Sentinel used to keep track of whether or not we are before
10515 # the conftest object file.
10516 pre_test_object_deps_done=no
10518 # The `*' in the case matches for architectures that use `case' in
10519 # $output_verbose_cmd can trigger glob expansion during the loop
10520 # eval without this substitution.
10521 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10523 for p in `eval $output_verbose_link_cmd`; do
10527 # Some compilers place space between "-{L,R}" and the path.
10528 # Remove the space.
10529 if test $p = "-L" \
10530 || test $p = "-R"; then
10537 if test "$pre_test_object_deps_done" = no; then
10540 # Internal compiler library paths should come after those
10541 # provided the user. The postdeps already come after the
10542 # user supplied libs so there is no need to process them.
10543 if test -z "$compiler_lib_search_path_CXX"; then
10544 compiler_lib_search_path_CXX="${prev}${p}"
10546 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10549 # The "-l" case would never come before the object being
10550 # linked, so don't bother handling this case.
10553 if test -z "$postdeps_CXX"; then
10554 postdeps_CXX="${prev}${p}"
10556 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10562 # This assumes that the test object file only shows up
10563 # once in the compiler output.
10564 if test "$p" = "conftest.$objext"; then
10565 pre_test_object_deps_done=yes
10569 if test "$pre_test_object_deps_done" = no; then
10570 if test -z "$predep_objects_CXX"; then
10571 predep_objects_CXX="$p"
10573 predep_objects_CXX="$predep_objects_CXX $p"
10576 if test -z "$postdep_objects_CXX"; then
10577 postdep_objects_CXX="$p"
10579 postdep_objects_CXX="$postdep_objects_CXX $p"
10584 *) ;; # Ignore the rest.
10592 echo "libtool.m4: error: problem compiling CXX test program"
10595 $rm -f confest.$objext
10597 case " $postdeps_CXX " in
10598 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10601 lt_prog_compiler_wl_CXX=
10602 lt_prog_compiler_pic_CXX=
10603 lt_prog_compiler_static_CXX=
10605 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10608 # C++ specific cases for pic, static, wl, etc.
10609 if test "$GXX" = yes; then
10610 lt_prog_compiler_wl_CXX='-Wl,'
10611 lt_prog_compiler_static_CXX='-static'
10615 # All AIX code is PIC.
10616 if test "$host_cpu" = ia64; then
10617 # AIX 5 now supports IA64 processor
10618 lt_prog_compiler_static_CXX='-Bstatic'
10622 # FIXME: we need at least 68020 code to build shared libraries, but
10623 # adding the `-m68020' flag to GCC prevents building anything better,
10625 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10627 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10628 # PIC is the default for these OSes.
10630 mingw* | os2* | pw32*)
10631 # This hack is so that the source file can tell whether it is being
10632 # built for inclusion in a dll (and should export symbols for example).
10633 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10635 darwin* | rhapsody*)
10636 # PIC is the default on this platform
10637 # Common symbols not allowed in MH_DYLIB files
10638 lt_prog_compiler_pic_CXX='-fno-common'
10641 # DJGPP does not support shared libraries at all
10642 lt_prog_compiler_pic_CXX=
10645 if test -d /usr/nec; then
10646 lt_prog_compiler_pic_CXX=-Kconform_pic
10650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10651 # not for PA HP-UX.
10652 case "$host_cpu" in
10656 lt_prog_compiler_pic_CXX='-fPIC'
10661 lt_prog_compiler_pic_CXX='-fPIC'
10667 # All AIX code is PIC.
10668 if test "$host_cpu" = ia64; then
10669 # AIX 5 now supports IA64 processor
10670 lt_prog_compiler_static_CXX='-Bstatic'
10672 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10676 case $cc_basename in
10678 # Green Hills C++ Compiler
10679 # _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"
10684 # PIC is the default on this platform
10685 # Common symbols not allowed in MH_DYLIB files
10686 case "$cc_basename" in
10688 lt_prog_compiler_pic_CXX='-qnocommon'
10689 lt_prog_compiler_wl_CXX='-Wl,'
10694 case $cc_basename in
10696 lt_prog_compiler_pic_CXX='-KPIC'
10699 # Green Hills C++ Compiler
10700 lt_prog_compiler_pic_CXX='-pic'
10706 freebsd* | kfreebsd*-gnu)
10707 # FreeBSD uses GNU C++
10709 hpux9* | hpux10* | hpux11*)
10710 case $cc_basename in
10712 lt_prog_compiler_wl_CXX='-Wl,'
10713 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10714 if test "$host_cpu" != ia64; then
10715 lt_prog_compiler_pic_CXX='+Z'
10719 lt_prog_compiler_wl_CXX='-Wl,'
10720 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10721 case "$host_cpu" in
10726 lt_prog_compiler_pic_CXX='+Z'
10734 irix5* | irix6* | nonstopux*)
10735 case $cc_basename in
10737 lt_prog_compiler_wl_CXX='-Wl,'
10738 lt_prog_compiler_static_CXX='-non_shared'
10739 # CC pic flag -KPIC is the default.
10746 case $cc_basename in
10749 lt_prog_compiler_wl_CXX='--backend -Wl,'
10750 lt_prog_compiler_pic_CXX='-fPIC'
10754 lt_prog_compiler_wl_CXX='-Wl,'
10755 lt_prog_compiler_pic_CXX='-KPIC'
10756 lt_prog_compiler_static_CXX='-static'
10760 # Make sure the PIC flag is empty. It appears that all Alpha
10761 # Linux and Compaq Tru64 Unix objects are PIC.
10762 lt_prog_compiler_pic_CXX=
10763 lt_prog_compiler_static_CXX='-non_shared'
10774 case $cc_basename in
10776 lt_prog_compiler_pic_CXX='-W c,exportall'
10784 osf3* | osf4* | osf5*)
10785 case $cc_basename in
10787 lt_prog_compiler_wl_CXX='--backend -Wl,'
10790 # Rational C++ 2.4.1
10791 lt_prog_compiler_pic_CXX='-pic'
10794 # Digital/Compaq C++
10795 lt_prog_compiler_wl_CXX='-Wl,'
10796 # Make sure the PIC flag is empty. It appears that all Alpha
10797 # Linux and Compaq Tru64 Unix objects are PIC.
10798 lt_prog_compiler_pic_CXX=
10799 lt_prog_compiler_static_CXX='-non_shared'
10808 case $cc_basename in
10810 lt_prog_compiler_pic_CXX='-fPIC'
10817 case $cc_basename in
10819 # Sun C++ 4.2, 5.x and Centerline C++
10820 lt_prog_compiler_pic_CXX='-KPIC'
10821 lt_prog_compiler_static_CXX='-Bstatic'
10822 lt_prog_compiler_wl_CXX='-Qoption ld '
10825 # Green Hills C++ Compiler
10826 lt_prog_compiler_pic_CXX='-PIC'
10833 case $cc_basename in
10836 lt_prog_compiler_pic_CXX='-pic'
10837 lt_prog_compiler_static_CXX='-Bstatic'
10841 lt_prog_compiler_pic_CXX='-pic'
10848 case $cc_basename in
10850 # NonStop-UX NCC 3.20
10851 lt_prog_compiler_pic_CXX='-KPIC'
10862 lt_prog_compiler_can_build_shared_CXX=no
10867 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10868 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10871 # Check to make sure the PIC flag actually works.
10873 if test -n "$lt_prog_compiler_pic_CXX"; then
10875 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10876 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10877 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 lt_prog_compiler_pic_works_CXX=no
10881 ac_outfile=conftest.$ac_objext
10882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10883 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10884 # Insert the option either (1) after the last *FLAGS variable, or
10885 # (2) before a word containing "conftest.", or (3) at the end.
10886 # Note that $ac_compile itself does not contain backslashes and begins
10887 # with a dollar sign (not a hyphen), so the echo should work correctly.
10888 # The option is referenced via a variable to avoid confusing sed.
10889 lt_compile=`echo "$ac_compile" | $SED \
10890 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10892 -e 's:$: $lt_compiler_flag:'`
10893 (eval echo "\"\$as_me:10893: $lt_compile\"" >&5)
10894 (eval "$lt_compile" 2>conftest.err)
10896 cat conftest.err >&5
10897 echo "$as_me:10897: \$? = $ac_status" >&5
10898 if (exit $ac_status) && test -s "$ac_outfile"; then
10899 # The compiler can only warn and ignore the option if not recognized
10900 # So say no if there are warnings
10901 if test ! -s conftest.err; then
10902 lt_prog_compiler_pic_works_CXX=yes
10908 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10909 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10911 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10912 case $lt_prog_compiler_pic_CXX in
10914 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10917 lt_prog_compiler_pic_CXX=
10918 lt_prog_compiler_can_build_shared_CXX=no
10923 # For platforms which do not support PIC, -DPIC is meaningless:
10925 lt_prog_compiler_pic_CXX=
10928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10932 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 lt_cv_prog_compiler_c_o_CXX=no
10938 $rm -r conftest 2>/dev/null
10942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10944 lt_compiler_flag="-o out/conftest2.$ac_objext"
10945 # Insert the option either (1) after the last *FLAGS variable, or
10946 # (2) before a word containing "conftest.", or (3) at the end.
10947 # Note that $ac_compile itself does not contain backslashes and begins
10948 # with a dollar sign (not a hyphen), so the echo should work correctly.
10949 lt_compile=`echo "$ac_compile" | $SED \
10950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10952 -e 's:$: $lt_compiler_flag:'`
10953 (eval echo "\"\$as_me:10953: $lt_compile\"" >&5)
10954 (eval "$lt_compile" 2>out/conftest.err)
10956 cat out/conftest.err >&5
10957 echo "$as_me:10957: \$? = $ac_status" >&5
10958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10960 # The compiler can only warn and ignore the option if not recognized
10961 # So say no if there are warnings
10962 if test ! -s out/conftest.err; then
10963 lt_cv_prog_compiler_c_o_CXX=yes
10968 # SGI C++ compiler will create directory out/ii_files/ for
10969 # template instantiation
10970 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10971 $rm out/* && rmdir out
10977 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10981 hard_links="nottested"
10982 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10983 # do not overwrite the value of need_locks provided by the user
10984 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10990 ln conftest.a conftest.b 2>&5 || hard_links=no
10991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10992 echo "$as_me:$LINENO: result: $hard_links" >&5
10993 echo "${ECHO_T}$hard_links" >&6
10994 if test "$hard_links" = no; then
10995 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11003 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11009 # If we're using GNU nm, then we don't want the "-C" option.
11010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11012 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'
11014 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'
11018 export_symbols_cmds_CXX="$ltdll_cmds"
11021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11028 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11029 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11030 test "$ld_shlibs_CXX" = no && can_build_shared=no
11032 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11033 if test "$GCC" = yes; then
11034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11038 # Do we need to explicitly link libc?
11040 case "x$archive_cmds_need_lc_CXX" in
11042 # Assume -lc should be added
11043 archive_cmds_need_lc_CXX=yes
11045 if test "$enable_shared" = yes && test "$GCC" = yes; then
11046 case $archive_cmds_CXX in
11048 # FIXME: we may have to deal with multi-command sequences.
11051 # Test whether the compiler implicitly links with -lc since on some
11052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11053 # to ld, don't add -lc before -lgcc.
11054 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11055 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060 (eval $ac_compile) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } 2>conftest.err; then
11066 libobjs=conftest.$ac_objext
11068 wl=$lt_prog_compiler_wl_CXX
11074 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11075 allow_undefined_flag_CXX=
11076 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11077 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }
11082 archive_cmds_need_lc_CXX=no
11084 archive_cmds_need_lc_CXX=yes
11086 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11088 cat conftest.err 1>&5
11091 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11092 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11099 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11100 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11101 library_names_spec=
11102 libname_spec='lib$name'
11106 postuninstall_cmds=
11110 shlibpath_overrides_runpath=unknown
11112 dynamic_linker="$host_os ld.so"
11113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11114 if test "$GCC" = yes; then
11115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11116 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11117 # if the path contains ";" then we assume it to be the separator
11118 # otherwise default to the standard path separator (i.e. ":") - it is
11119 # assumed that no part of a normal pathname contains ";" but that should
11120 # okay in the real world where ";" in dirpaths is itself problematic.
11121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11126 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11128 need_lib_prefix=unknown
11129 hardcode_into_libs=no
11131 # when you set need_version to no, make sure it does not cause -set_version
11132 # flags to be left without arguments
11133 need_version=unknown
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11139 shlibpath_var=LIBPATH
11141 # AIX 3 has no versioning support, so we append a major version to the name.
11142 soname_spec='${libname}${release}${shared_ext}$major'
11149 hardcode_into_libs=yes
11150 if test "$host_cpu" = ia64; then
11151 # AIX 5 supports IA64
11152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11153 shlibpath_var=LD_LIBRARY_PATH
11155 # With GCC up to 2.95.x, collect2 would create an import file
11156 # for dependence libraries. The import file would start with
11157 # the line `#! .'. This would cause the generated library to
11158 # depend on `.', always an invalid library. This was fixed in
11159 # development snapshots of GCC prior to 3.0.
11161 aix4 | aix4.[01] | aix4.[01].*)
11162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11164 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11167 can_build_shared=no
11171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11172 # soname into executable. Probably we can add versioning support to
11173 # collect2, so additional links can be useful in future.
11174 if test "$aix_use_runtimelinking" = yes; then
11175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11176 # instead of lib<name>.a to let people know that these are not
11177 # typical AIX shared libraries.
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 # We preserve .a as extension for shared libraries through AIX4.2
11181 # and later when we are not doing run time linking.
11182 library_names_spec='${libname}${release}.a $libname.a'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LIBPATH
11190 library_names_spec='$libname.ixlibrary $libname.a'
11191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11192 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'
11196 library_names_spec='${libname}${shared_ext}'
11197 dynamic_linker="$host_os ld.so"
11198 shlibpath_var=LIBRARY_PATH
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11210 # the default ld.so.conf also contains /usr/contrib/lib and
11211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11212 # libtool to hard-code these into programs
11215 cygwin* | mingw* | pw32*)
11216 version_type=windows
11221 case $GCC,$host_os in
11222 yes,cygwin* | yes,mingw* | yes,pw32*)
11223 library_names_spec='$libname.dll.a'
11224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11225 postinstall_cmds='base_file=`basename \${file}`~
11226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11227 dldir=$destdir/`dirname \$dlpath`~
11228 test -d \$dldir || mkdir -p \$dldir~
11229 $install_prog $dir/$dlname \$dldir/$dlname'
11230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11231 dlpath=$dir/\$dldll~
11233 shlibpath_overrides_runpath=yes
11237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11238 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11242 # MinGW DLLs use traditional 'lib' prefix
11243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11245 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11246 # It is most probably a Windows format PATH printed by
11247 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11248 # path with ; separators, and with drive letters. We can handle the
11249 # drive letters (cygwin fileutils understands them), so leave them,
11250 # especially as we might pass files found there to a mingw objdump,
11251 # which wouldn't understand a cygwinified path. Ahh.
11252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11258 # pw32 DLLs use 'pw' prefix rather than 'lib'
11259 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11268 dynamic_linker='Win32 ld.exe'
11269 # FIXME: first we should search . and the directory the executable is in
11273 darwin* | rhapsody*)
11274 dynamic_linker="$host_os dyld"
11275 version_type=darwin
11278 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11279 soname_spec='${libname}${release}${major}$shared_ext'
11280 shlibpath_overrides_runpath=yes
11281 shlibpath_var=DYLD_LIBRARY_PATH
11282 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11283 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11284 if test "$GCC" = yes; then
11285 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"`
11287 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 shlibpath_var=LD_LIBRARY_PATH
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=no
11313 hardcode_into_libs=yes
11314 dynamic_linker='GNU ld.so'
11318 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11319 version_type=freebsd-$objformat
11320 case $version_type in
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11331 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes
11336 freebsd3.01* | freebsdelf3.01*)
11337 shlibpath_overrides_runpath=yes
11338 hardcode_into_libs=yes
11341 shlibpath_overrides_runpath=no
11342 hardcode_into_libs=yes
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 hardcode_into_libs=yes
11357 hpux9* | hpux10* | hpux11*)
11358 # Give a soname corresponding to the major version so that dld.sl refuses to
11359 # link against other versions.
11363 case "$host_cpu" in
11366 hardcode_into_libs=yes
11367 dynamic_linker="$host_os dld.so"
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 if test "X$HPUX_IA64_MODE" = X32; then
11373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381 hardcode_into_libs=yes
11382 dynamic_linker="$host_os dld.sl"
11383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11392 dynamic_linker="$host_os dld.sl"
11393 shlibpath_var=SHLIB_PATH
11394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
11399 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11400 postinstall_cmds='chmod 555 $lib'
11403 irix5* | irix6* | nonstopux*)
11405 nonstopux*) version_type=nonstopux ;;
11407 if test "$lt_cv_prog_gnu_ld" = yes; then
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11418 irix5* | nonstopux*)
11419 libsuff= shlibsuff=
11422 case $LD in # libtool.m4 will add one of these switches to LD
11423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11424 libsuff= shlibsuff= libmagic=32-bit;;
11425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11426 libsuff=32 shlibsuff=N32 libmagic=N32;;
11427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11429 *) libsuff= shlibsuff= libmagic=never-match;;
11433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434 shlibpath_overrides_runpath=no
11435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11437 hardcode_into_libs=yes
11440 # No shared lib support for Linux oldld, aout, or coff.
11441 linux*oldld* | linux*aout* | linux*coff*)
11445 # This must be Linux ELF.
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=no
11455 # This implies no fast_install, which is unacceptable.
11456 # Some rework will be needed to allow for fast_install
11457 # before this can be enabled.
11458 hardcode_into_libs=yes
11460 # Append ld.so.conf contents to the search path
11461 if test -f /etc/ld.so.conf; then
11462 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11466 # We used to test for /lib/ld.so.1 and disable shared libraries on
11467 # powerpc, because MkLinux only supported shared libraries with the
11468 # GNU dynamic linker. Since this was broken with cross compilers,
11469 # most powerpc-linux boxes support dynamic linking these days and
11470 # people can always --disable-shared, the test was removed, and we
11471 # assume the GNU/Linux dynamic linker is in use.
11472 dynamic_linker='GNU/Linux ld.so'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=no
11483 hardcode_into_libs=yes
11484 dynamic_linker='GNU ld.so'
11491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494 dynamic_linker='NetBSD (a.out) ld.so'
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 dynamic_linker='NetBSD ld.elf_so'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11531 openbsd2.[89] | openbsd2.[89].*)
11532 shlibpath_overrides_runpath=no
11535 shlibpath_overrides_runpath=yes
11539 shlibpath_overrides_runpath=yes
11544 libname_spec='$name'
11547 library_names_spec='$libname${shared_ext} $libname.a'
11548 dynamic_linker='OS/2 ld.exe'
11549 shlibpath_var=LIBPATH
11552 osf3* | osf4* | osf5*)
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 shlibpath_var=LD_LIBRARY_PATH
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11579 # ldd complains unless libraries are executable
11580 postinstall_cmds='chmod +x $lib'
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 if test "$with_gnu_ld" = yes; then
11595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 case $host_vendor in
11602 shlibpath_overrides_runpath=no
11604 export_dynamic_flag_spec='${wl}-Blargedynsym'
11605 runpath_var=LD_RUN_PATH
11613 shlibpath_overrides_runpath=no
11614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11620 if test -d /usr/nec ;then
11622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11623 soname_spec='$libname${shared_ext}.$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11639 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11640 echo "${ECHO_T}$dynamic_linker" >&6
11641 test "$dynamic_linker" = no && can_build_shared=no
11643 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11645 hardcode_action_CXX=
11646 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11647 test -n "$runpath_var_CXX" || \
11648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11650 # We can hardcode non-existant directories.
11651 if test "$hardcode_direct_CXX" != no &&
11652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11653 # have to relink, otherwise we might link with an installed library
11654 # when we should be linking with a yet-to-be-installed one
11655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11656 test "$hardcode_minus_L_CXX" != no; then
11657 # Linking always hardcodes the temporary library directory.
11658 hardcode_action_CXX=relink
11660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11661 hardcode_action_CXX=immediate
11664 # We cannot hardcode anything, or else we can only hardcode existing
11666 hardcode_action_CXX=unsupported
11668 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11669 echo "${ECHO_T}$hardcode_action_CXX" >&6
11671 if test "$hardcode_action_CXX" = relink; then
11672 # Fast installation is not supported
11673 enable_fast_install=no
11674 elif test "$shlibpath_overrides_runpath" = yes ||
11675 test "$enable_shared" = no; then
11676 # Fast installation is not necessary
11677 enable_fast_install=needless
11682 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11683 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11684 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11687 echo "$as_me:$LINENO: result: yes" >&5
11688 echo "${ECHO_T}yes" >&6
11690 # FIXME - insert some real tests, host_os isn't really good enough
11693 if test -n "$STRIP" ; then
11694 striplib="$STRIP -x"
11695 echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11698 echo "$as_me:$LINENO: result: no" >&5
11699 echo "${ECHO_T}no" >&6
11703 echo "$as_me:$LINENO: result: no" >&5
11704 echo "${ECHO_T}no" >&6
11709 if test "x$enable_dlopen" != xyes; then
11710 enable_dlopen=unknown
11711 enable_dlopen_self=unknown
11712 enable_dlopen_self_static=unknown
11719 lt_cv_dlopen="load_add_on"
11721 lt_cv_dlopen_self=yes
11725 lt_cv_dlopen="LoadLibrary"
11730 lt_cv_dlopen="dlopen"
11735 # if libdl is installed we need to link against it
11736 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11737 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 ac_check_lib_save_LIBS=$LIBS
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11750 /* Override any gcc2 internal prototype to avoid an error. */
11754 /* We use char because int might match the return type of a gcc2
11755 builtin and then its argument prototype would still apply. */
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767 (eval $ac_link) 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_cxx_werror_flag"
11775 || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest$ac_exeext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_lib_dl_dlopen=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_cv_lib_dl_dlopen=no
11794 rm -f conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11798 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11799 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11800 if test $ac_cv_lib_dl_dlopen = yes; then
11801 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11804 lt_cv_dlopen="dyld"
11806 lt_cv_dlopen_self=yes
11813 echo "$as_me:$LINENO: checking for shl_load" >&5
11814 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11815 if test "${ac_cv_func_shl_load+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11826 #define shl_load innocuous_shl_load
11828 /* System header to define __stub macros and hopefully few prototypes,
11829 which can conflict with char shl_load (); below.
11830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11831 <limits.h> exists even on freestanding compilers. */
11834 # include <limits.h>
11836 # include <assert.h>
11841 /* Override any gcc2 internal prototype to avoid an error. */
11846 /* We use char because int might match the return type of a gcc2
11847 builtin and then its argument prototype would still apply. */
11849 /* The GNU C library defines this for functions which it implements
11850 to always fail with ENOSYS. Some functions are actually named
11851 something starting with __ and the normal name is an alias. */
11852 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11855 char (*f) () = shl_load;
11864 return f != shl_load;
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -z "$ac_cxx_werror_flag"
11879 || test ! -s conftest.err'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; } &&
11885 { ac_try='test -s conftest$ac_exeext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_func_shl_load=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_func_shl_load=no
11898 rm -f conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11901 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11902 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11903 if test $ac_cv_func_shl_load = yes; then
11904 lt_cv_dlopen="shl_load"
11906 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11907 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11908 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 ac_check_lib_save_LIBS=$LIBS
11913 cat >conftest.$ac_ext <<_ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11920 /* Override any gcc2 internal prototype to avoid an error. */
11924 /* We use char because int might match the return type of a gcc2
11925 builtin and then its argument prototype would still apply. */
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -z "$ac_cxx_werror_flag"
11945 || test ! -s conftest.err'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_lib_dld_shl_load=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_lib_dld_shl_load=no
11964 rm -f conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11968 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11969 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11970 if test $ac_cv_lib_dld_shl_load = yes; then
11971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11973 echo "$as_me:$LINENO: checking for dlopen" >&5
11974 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11975 if test "${ac_cv_func_dlopen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986 #define dlopen innocuous_dlopen
11988 /* System header to define __stub macros and hopefully few prototypes,
11989 which can conflict with char dlopen (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
11994 # include <limits.h>
11996 # include <assert.h>
12001 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12009 /* The GNU C library defines this for functions which it implements
12010 to always fail with ENOSYS. Some functions are actually named
12011 something starting with __ and the normal name is an alias. */
12012 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12015 char (*f) () = dlopen;
12024 return f != dlopen;
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031 (eval $ac_link) 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_cxx_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_func_dlopen=yes
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12056 ac_cv_func_dlopen=no
12058 rm -f conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12061 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12062 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12063 if test $ac_cv_func_dlopen = yes; then
12064 lt_cv_dlopen="dlopen"
12066 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12067 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_check_lib_save_LIBS=$LIBS
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>conftest.er1
12099 grep -v '^ *+' conftest.er1 >conftest.err
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_cxx_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_dl_dlopen=yes
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_cv_lib_dl_dlopen=no
12124 rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12130 if test $ac_cv_lib_dl_dlopen = yes; then
12131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12133 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12134 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12135 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-lsvld $LIBS"
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 /* Override any gcc2 internal prototype to avoid an error. */
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>conftest.er1
12166 grep -v '^ *+' conftest.er1 >conftest.err
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -z "$ac_cxx_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_cv_lib_svld_dlopen=yes
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_cv_lib_svld_dlopen=no
12191 rm -f conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12195 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12196 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12197 if test $ac_cv_lib_svld_dlopen = yes; then
12198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12200 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12201 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_check_lib_save_LIBS=$LIBS
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12214 /* Override any gcc2 internal prototype to avoid an error. */
12218 /* We use char because int might match the return type of a gcc2
12219 builtin and then its argument prototype would still apply. */
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231 (eval $ac_link) 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
12238 { ac_try='test -z "$ac_cxx_werror_flag"
12239 || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest$ac_exeext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_cv_lib_dld_dld_link=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 ac_cv_lib_dld_dld_link=no
12258 rm -f conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12263 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12264 if test $ac_cv_lib_dld_dld_link = yes; then
12265 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12286 if test "x$lt_cv_dlopen" != xno; then
12292 case $lt_cv_dlopen in
12294 save_CPPFLAGS="$CPPFLAGS"
12295 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12297 save_LDFLAGS="$LDFLAGS"
12298 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12301 LIBS="$lt_cv_dlopen_libs $LIBS"
12303 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12304 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12305 if test "${lt_cv_dlopen_self+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 if test "$cross_compiling" = yes; then :
12309 lt_cv_dlopen_self=cross
12311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312 lt_status=$lt_dlunknown
12313 cat > conftest.$ac_ext <<EOF
12314 #line 12314 "configure"
12315 #include "confdefs.h"
12324 # define LT_DLGLOBAL RTLD_GLOBAL
12327 # define LT_DLGLOBAL DL_GLOBAL
12329 # define LT_DLGLOBAL 0
12333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334 find out it does not work in some platform. */
12335 #ifndef LT_DLLAZY_OR_NOW
12337 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12340 # define LT_DLLAZY_OR_NOW DL_LAZY
12343 # define LT_DLLAZY_OR_NOW RTLD_NOW
12346 # define LT_DLLAZY_OR_NOW DL_NOW
12348 # define LT_DLLAZY_OR_NOW 0
12356 extern "C" void exit (int);
12359 void fnord() { int i=42;}
12362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12363 int status = $lt_dlunknown;
12367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12368 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12369 /* dlclose (self); */
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12380 (./conftest; exit; ) 2>/dev/null
12382 case x$lt_status in
12383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12385 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12388 # compilation failed
12389 lt_cv_dlopen_self=no
12396 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12397 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12399 if test "x$lt_cv_dlopen_self" = xyes; then
12400 LDFLAGS="$LDFLAGS $link_static_flag"
12401 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12402 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12403 if test "${lt_cv_dlopen_self_static+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 if test "$cross_compiling" = yes; then :
12407 lt_cv_dlopen_self_static=cross
12409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12410 lt_status=$lt_dlunknown
12411 cat > conftest.$ac_ext <<EOF
12412 #line 12412 "configure"
12413 #include "confdefs.h"
12422 # define LT_DLGLOBAL RTLD_GLOBAL
12425 # define LT_DLGLOBAL DL_GLOBAL
12427 # define LT_DLGLOBAL 0
12431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12432 find out it does not work in some platform. */
12433 #ifndef LT_DLLAZY_OR_NOW
12435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12438 # define LT_DLLAZY_OR_NOW DL_LAZY
12441 # define LT_DLLAZY_OR_NOW RTLD_NOW
12444 # define LT_DLLAZY_OR_NOW DL_NOW
12446 # define LT_DLLAZY_OR_NOW 0
12454 extern "C" void exit (int);
12457 void fnord() { int i=42;}
12460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461 int status = $lt_dlunknown;
12465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12467 /* dlclose (self); */
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12478 (./conftest; exit; ) 2>/dev/null
12480 case x$lt_status in
12481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12483 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12486 # compilation failed
12487 lt_cv_dlopen_self_static=no
12494 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12498 CPPFLAGS="$save_CPPFLAGS"
12499 LDFLAGS="$save_LDFLAGS"
12504 case $lt_cv_dlopen_self in
12505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12506 *) enable_dlopen_self=unknown ;;
12509 case $lt_cv_dlopen_self_static in
12510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12511 *) enable_dlopen_self_static=unknown ;;
12516 # The else clause should only fire when bootstrapping the
12517 # libtool distribution, otherwise you forgot to ship ltmain.sh
12518 # with your package, and you will get complaints that there are
12519 # no rules to generate ltmain.sh.
12520 if test -f "$ltmain"; then
12521 # See if we are running on zsh, and set the options which allow our commands through
12522 # without removal of \ escapes.
12523 if test -n "${ZSH_VERSION+set}" ; then
12524 setopt NO_GLOB_SUBST
12526 # Now quote all the things that may contain metacharacters while being
12527 # careful not to overquote the AC_SUBSTed values. We take copies of the
12528 # variables and quote the copies for generation of the libtool script.
12529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12533 deplibs_check_method reload_flag reload_cmds need_locks \
12534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12535 lt_cv_sys_global_symbol_to_c_name_address \
12536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12537 old_postinstall_cmds old_postuninstall_cmds \
12541 lt_prog_compiler_wl_CXX \
12542 lt_prog_compiler_pic_CXX \
12543 lt_prog_compiler_static_CXX \
12544 lt_prog_compiler_no_builtin_flag_CXX \
12545 export_dynamic_flag_spec_CXX \
12546 thread_safe_flag_spec_CXX \
12547 whole_archive_flag_spec_CXX \
12548 enable_shared_with_static_runtimes_CXX \
12549 old_archive_cmds_CXX \
12550 old_archive_from_new_cmds_CXX \
12551 predep_objects_CXX \
12552 postdep_objects_CXX \
12555 compiler_lib_search_path_CXX \
12557 archive_expsym_cmds_CXX \
12558 postinstall_cmds_CXX \
12559 postuninstall_cmds_CXX \
12560 old_archive_from_expsyms_cmds_CXX \
12561 allow_undefined_flag_CXX \
12562 no_undefined_flag_CXX \
12563 export_symbols_cmds_CXX \
12564 hardcode_libdir_flag_spec_CXX \
12565 hardcode_libdir_flag_spec_ld_CXX \
12566 hardcode_libdir_separator_CXX \
12567 hardcode_automatic_CXX \
12569 module_expsym_cmds_CXX \
12570 lt_cv_prog_compiler_c_o_CXX \
12571 exclude_expsyms_CXX \
12572 include_expsyms_CXX; do
12575 old_archive_cmds_CXX | \
12576 old_archive_from_new_cmds_CXX | \
12577 archive_cmds_CXX | \
12578 archive_expsym_cmds_CXX | \
12579 module_cmds_CXX | \
12580 module_expsym_cmds_CXX | \
12581 old_archive_from_expsyms_cmds_CXX | \
12582 export_symbols_cmds_CXX | \
12583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12584 postinstall_cmds | postuninstall_cmds | \
12585 old_postinstall_cmds | old_postuninstall_cmds | \
12586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12587 # Double-quote double-evaled strings.
12588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12597 *'\$0 --fallback-echo"')
12598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12604 cat <<__EOF__ >> "$cfgfile"
12605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12609 # Shell to use when invoking shell scripts.
12612 # Whether or not to build shared libraries.
12613 build_libtool_libs=$enable_shared
12615 # Whether or not to build static libraries.
12616 build_old_libs=$enable_static
12618 # Whether or not to add -lc for building shared libraries.
12619 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12621 # Whether or not to disallow shared libs when runtime libs are static
12622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12624 # Whether or not to optimize for fast installation.
12625 fast_install=$enable_fast_install
12628 host_alias=$host_alias
12631 # An echo program that does not interpret backslashes.
12636 AR_FLAGS=$lt_AR_FLAGS
12641 # A language-specific compiler.
12642 CC=$lt_compiler_CXX
12644 # Is the compiler the GNU C compiler?
12650 # The linker used to build libraries.
12653 # Whether we need hard or soft links.
12656 # A BSD-compatible nm program.
12659 # A symbol stripping program
12662 # Used to examine libraries when file_magic_cmd begins "file"
12663 MAGIC_CMD=$MAGIC_CMD
12665 # Used on cygwin: DLL creation program.
12668 # Used on cygwin: object dumper.
12671 # Used on cygwin: assembler.
12674 # The name of the directory that contains temporary libtool files.
12677 # How to create reloadable object files.
12678 reload_flag=$lt_reload_flag
12679 reload_cmds=$lt_reload_cmds
12681 # How to pass a linker flag through the compiler.
12682 wl=$lt_lt_prog_compiler_wl_CXX
12684 # Object file suffix (normally "o").
12685 objext="$ac_objext"
12687 # Old archive suffix (normally "a").
12690 # Shared library suffix (normally ".so").
12691 shrext_cmds='$shrext_cmds'
12693 # Executable file suffix (normally "").
12696 # Additional compiler flags for building library objects.
12697 pic_flag=$lt_lt_prog_compiler_pic_CXX
12700 # What is the maximum length of a command?
12701 max_cmd_len=$lt_cv_sys_max_cmd_len
12703 # Does compiler simultaneously support -c and -o options?
12704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12706 # Must we lock files when doing compilation ?
12707 need_locks=$lt_need_locks
12709 # Do we need the lib prefix for modules?
12710 need_lib_prefix=$need_lib_prefix
12712 # Do we need a version for libraries?
12713 need_version=$need_version
12715 # Whether dlopen is supported.
12716 dlopen_support=$enable_dlopen
12718 # Whether dlopen of programs is supported.
12719 dlopen_self=$enable_dlopen_self
12721 # Whether dlopen of statically linked programs is supported.
12722 dlopen_self_static=$enable_dlopen_self_static
12724 # Compiler flag to prevent dynamic linking.
12725 link_static_flag=$lt_lt_prog_compiler_static_CXX
12727 # Compiler flag to turn off builtin functions.
12728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12730 # Compiler flag to allow reflexive dlopens.
12731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12733 # Compiler flag to generate shared objects directly from archives.
12734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12736 # Compiler flag to generate thread-safe objects.
12737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12739 # Library versioning type.
12740 version_type=$version_type
12742 # Format of library name prefix.
12743 libname_spec=$lt_libname_spec
12745 # List of archive names. First name is the real one, the rest are links.
12746 # The last name is the one that the linker finds with -lNAME.
12747 library_names_spec=$lt_library_names_spec
12749 # The coded name of the library, if different from the real name.
12750 soname_spec=$lt_soname_spec
12752 # Commands used to build and install an old-style archive.
12754 old_archive_cmds=$lt_old_archive_cmds_CXX
12755 old_postinstall_cmds=$lt_old_postinstall_cmds
12756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12758 # Create an old-style archive from a shared archive.
12759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12761 # Create a temporary old-style archive to link instead of a shared archive.
12762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12764 # Commands used to build and install a shared archive.
12765 archive_cmds=$lt_archive_cmds_CXX
12766 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12767 postinstall_cmds=$lt_postinstall_cmds
12768 postuninstall_cmds=$lt_postuninstall_cmds
12770 # Commands used to build a loadable module (assumed same as above if empty)
12771 module_cmds=$lt_module_cmds_CXX
12772 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12774 # Commands to strip libraries.
12775 old_striplib=$lt_old_striplib
12776 striplib=$lt_striplib
12778 # Dependencies to place before the objects being linked to create a
12780 predep_objects=$lt_predep_objects_CXX
12782 # Dependencies to place after the objects being linked to create a
12784 postdep_objects=$lt_postdep_objects_CXX
12786 # Dependencies to place before the objects being linked to create a
12788 predeps=$lt_predeps_CXX
12790 # Dependencies to place after the objects being linked to create a
12792 postdeps=$lt_postdeps_CXX
12794 # The library search path used internally by the compiler when linking
12795 # a shared library.
12796 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12798 # Method to check whether dependent libraries are shared objects.
12799 deplibs_check_method=$lt_deplibs_check_method
12801 # Command to use when deplibs_check_method == file_magic.
12802 file_magic_cmd=$lt_file_magic_cmd
12804 # Flag that allows shared libraries with undefined symbols to be built.
12805 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12807 # Flag that forces no undefined symbols.
12808 no_undefined_flag=$lt_no_undefined_flag_CXX
12810 # Commands used to finish a libtool library installation in a directory.
12811 finish_cmds=$lt_finish_cmds
12813 # Same as above, but a single script fragment to be evaled but not shown.
12814 finish_eval=$lt_finish_eval
12816 # Take the output of nm and produce a listing of raw symbols and C names.
12817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12819 # Transform the output of nm in a proper C declaration
12820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12822 # Transform the output of nm in a C name address pair
12823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12825 # This is the shared library runtime path variable.
12826 runpath_var=$runpath_var
12828 # This is the shared library path variable.
12829 shlibpath_var=$shlibpath_var
12831 # Is shlibpath searched before the hard-coded library search path?
12832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12834 # How to hardcode a shared library path into an executable.
12835 hardcode_action=$hardcode_action_CXX
12837 # Whether we should hardcode library paths into libraries.
12838 hardcode_into_libs=$hardcode_into_libs
12840 # Flag to hardcode \$libdir into a binary during linking.
12841 # This must work even if \$libdir does not exist.
12842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12844 # If ld is used when linking, flag to hardcode \$libdir into
12845 # a binary during linking. This must work even if \$libdir does
12847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12849 # Whether we need a single -rpath flag with a separated argument.
12850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12853 # resulting binary.
12854 hardcode_direct=$hardcode_direct_CXX
12856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12857 # resulting binary.
12858 hardcode_minus_L=$hardcode_minus_L_CXX
12860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12861 # the resulting binary.
12862 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12864 # Set to yes if building a shared library automatically hardcodes DIR into the library
12865 # and all subsequent libraries and executables linked against it.
12866 hardcode_automatic=$hardcode_automatic_CXX
12868 # Variables whose values should be saved in libtool wrapper scripts and
12869 # restored at relink time.
12870 variables_saved_for_relink="$variables_saved_for_relink"
12872 # Whether libtool must link a program against all its dependency libraries.
12873 link_all_deplibs=$link_all_deplibs_CXX
12875 # Compile-time system search path for libraries
12876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12878 # Run-time system search path for libraries
12879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12881 # Fix the shell variable \$srcfile for the compiler.
12882 fix_srcfile_path="$fix_srcfile_path_CXX"
12884 # Set to yes if exported symbols are required.
12885 always_export_symbols=$always_export_symbols_CXX
12887 # The commands to list exported symbols.
12888 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12890 # The commands to extract the exported symbol list from a shared archive.
12891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12893 # Symbols that should not be listed in the preloaded symbols.
12894 exclude_expsyms=$lt_exclude_expsyms_CXX
12896 # Symbols that must always be exported.
12897 include_expsyms=$lt_include_expsyms_CXX
12899 # ### END LIBTOOL TAG CONFIG: $tagname
12905 # If there is no Makefile yet, we rely on a make rule to execute
12906 # `config.status --recheck' to rerun these tests and create the
12907 # libtool script then.
12908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12909 if test -f "$ltmain_in"; then
12910 test -f Makefile && make "$ltmain"
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12925 with_gnu_ldcxx=$with_gnu_ld
12926 with_gnu_ld=$lt_save_with_gnu_ld
12927 lt_cv_path_LDCXX=$lt_cv_path_LD
12928 lt_cv_path_LD=$lt_save_path_LD
12929 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12930 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12938 if test -n "$F77" && test "X$F77" != "Xno"; then
12941 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12942 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12946 archive_cmds_need_lc_F77=no
12947 allow_undefined_flag_F77=
12948 always_export_symbols_F77=no
12949 archive_expsym_cmds_F77=
12950 export_dynamic_flag_spec_F77=
12951 hardcode_direct_F77=no
12952 hardcode_libdir_flag_spec_F77=
12953 hardcode_libdir_flag_spec_ld_F77=
12954 hardcode_libdir_separator_F77=
12955 hardcode_minus_L_F77=no
12956 hardcode_automatic_F77=no
12958 module_expsym_cmds_F77=
12959 link_all_deplibs_F77=unknown
12960 old_archive_cmds_F77=$old_archive_cmds
12961 no_undefined_flag_F77=
12962 whole_archive_flag_spec_F77=
12963 enable_shared_with_static_runtimes_F77=no
12965 # Source file extension for f77 test sources.
12968 # Object file extension for compiled f77 test sources.
12972 # Code to be used in simple compile tests
12973 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12975 # Code to be used in simple link tests
12976 lt_simple_link_test_code=" program t\n end\n"
12978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12980 # If no C compiler was specified, use CC.
12983 # Allow CC to be a program name with arguments.
12987 # Allow CC to be a program name with arguments.
12992 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12994 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12995 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12996 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12997 echo "${ECHO_T}$can_build_shared" >&6
12999 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13000 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13001 test "$can_build_shared" = "no" && enable_shared=no
13003 # On AIX, shared libraries and static libraries use the same namespace, and
13004 # are all built from PIC.
13007 test "$enable_shared" = yes && enable_static=no
13008 if test -n "$RANLIB"; then
13009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13010 postinstall_cmds='$RANLIB $lib'
13014 test "$enable_shared" = yes && enable_static=no
13017 echo "$as_me:$LINENO: result: $enable_shared" >&5
13018 echo "${ECHO_T}$enable_shared" >&6
13020 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13021 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13022 # Make sure either enable_shared or enable_static is yes.
13023 test "$enable_shared" = yes || enable_static=yes
13024 echo "$as_me:$LINENO: result: $enable_static" >&5
13025 echo "${ECHO_T}$enable_static" >&6
13027 test "$ld_shlibs_F77" = no && can_build_shared=no
13032 lt_prog_compiler_wl_F77=
13033 lt_prog_compiler_pic_F77=
13034 lt_prog_compiler_static_F77=
13036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13039 if test "$GCC" = yes; then
13040 lt_prog_compiler_wl_F77='-Wl,'
13041 lt_prog_compiler_static_F77='-static'
13045 # All AIX code is PIC.
13046 if test "$host_cpu" = ia64; then
13047 # AIX 5 now supports IA64 processor
13048 lt_prog_compiler_static_F77='-Bstatic'
13053 # FIXME: we need at least 68020 code to build shared libraries, but
13054 # adding the `-m68020' flag to GCC prevents building anything better,
13056 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13060 # PIC is the default for these OSes.
13063 mingw* | pw32* | os2*)
13064 # This hack is so that the source file can tell whether it is being
13065 # built for inclusion in a dll (and should export symbols for example).
13066 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13069 darwin* | rhapsody*)
13070 # PIC is the default on this platform
13071 # Common symbols not allowed in MH_DYLIB files
13072 lt_prog_compiler_pic_F77='-fno-common'
13076 # Just because we use GCC doesn't mean we suddenly get shared libraries
13077 # on systems that don't support them.
13078 lt_prog_compiler_can_build_shared_F77=no
13083 if test -d /usr/nec; then
13084 lt_prog_compiler_pic_F77=-Kconform_pic
13089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13090 # not for PA HP-UX.
13091 case "$host_cpu" in
13096 lt_prog_compiler_pic_F77='-fPIC'
13102 lt_prog_compiler_pic_F77='-fPIC'
13106 # PORTME Check for flag to pass linker flags through the system compiler.
13109 lt_prog_compiler_wl_F77='-Wl,'
13110 if test "$host_cpu" = ia64; then
13111 # AIX 5 now supports IA64 processor
13112 lt_prog_compiler_static_F77='-Bstatic'
13114 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13118 # PIC is the default on this platform
13119 # Common symbols not allowed in MH_DYLIB files
13120 case "$cc_basename" in
13122 lt_prog_compiler_pic_F77='-qnocommon'
13123 lt_prog_compiler_wl_F77='-Wl,'
13128 mingw* | pw32* | os2*)
13129 # This hack is so that the source file can tell whether it is being
13130 # built for inclusion in a dll (and should export symbols for example).
13131 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13134 hpux9* | hpux10* | hpux11*)
13135 lt_prog_compiler_wl_F77='-Wl,'
13136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137 # not for PA HP-UX.
13138 case "$host_cpu" in
13143 lt_prog_compiler_pic_F77='+Z'
13146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13147 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13150 irix5* | irix6* | nonstopux*)
13151 lt_prog_compiler_wl_F77='-Wl,'
13152 # PIC (with -KPIC) is the default.
13153 lt_prog_compiler_static_F77='-non_shared'
13157 lt_prog_compiler_pic_F77='-KPIC'
13158 lt_prog_compiler_static_F77='-Bstatic'
13164 lt_prog_compiler_wl_F77='-Wl,'
13165 lt_prog_compiler_pic_F77='-KPIC'
13166 lt_prog_compiler_static_F77='-static'
13169 lt_prog_compiler_wl_F77='-Wl,'
13170 # All Alpha code is PIC.
13171 lt_prog_compiler_static_F77='-non_shared'
13176 osf3* | osf4* | osf5*)
13177 lt_prog_compiler_wl_F77='-Wl,'
13178 # All OSF/1 code is PIC.
13179 lt_prog_compiler_static_F77='-non_shared'
13183 lt_prog_compiler_pic_F77='-Kpic'
13184 lt_prog_compiler_static_F77='-dn'
13188 lt_prog_compiler_wl_F77='-Wl,'
13189 lt_prog_compiler_pic_F77='-KPIC'
13190 lt_prog_compiler_static_F77='-Bstatic'
13194 lt_prog_compiler_wl_F77='-Qoption ld '
13195 lt_prog_compiler_pic_F77='-PIC'
13196 lt_prog_compiler_static_F77='-Bstatic'
13199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13200 lt_prog_compiler_wl_F77='-Wl,'
13201 lt_prog_compiler_pic_F77='-KPIC'
13202 lt_prog_compiler_static_F77='-Bstatic'
13206 if test -d /usr/nec ;then
13207 lt_prog_compiler_pic_F77='-Kconform_pic'
13208 lt_prog_compiler_static_F77='-Bstatic'
13213 lt_prog_compiler_pic_F77='-pic'
13214 lt_prog_compiler_static_F77='-Bstatic'
13218 lt_prog_compiler_can_build_shared_F77=no
13223 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13224 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13227 # Check to make sure the PIC flag actually works.
13229 if test -n "$lt_prog_compiler_pic_F77"; then
13231 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13232 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13233 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 lt_prog_compiler_pic_works_F77=no
13237 ac_outfile=conftest.$ac_objext
13238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13239 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13240 # Insert the option either (1) after the last *FLAGS variable, or
13241 # (2) before a word containing "conftest.", or (3) at the end.
13242 # Note that $ac_compile itself does not contain backslashes and begins
13243 # with a dollar sign (not a hyphen), so the echo should work correctly.
13244 # The option is referenced via a variable to avoid confusing sed.
13245 lt_compile=`echo "$ac_compile" | $SED \
13246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13248 -e 's:$: $lt_compiler_flag:'`
13249 (eval echo "\"\$as_me:13249: $lt_compile\"" >&5)
13250 (eval "$lt_compile" 2>conftest.err)
13252 cat conftest.err >&5
13253 echo "$as_me:13253: \$? = $ac_status" >&5
13254 if (exit $ac_status) && test -s "$ac_outfile"; then
13255 # The compiler can only warn and ignore the option if not recognized
13256 # So say no if there are warnings
13257 if test ! -s conftest.err; then
13258 lt_prog_compiler_pic_works_F77=yes
13264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13265 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13267 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13268 case $lt_prog_compiler_pic_F77 in
13270 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13273 lt_prog_compiler_pic_F77=
13274 lt_prog_compiler_can_build_shared_F77=no
13279 # For platforms which do not support PIC, -DPIC is meaningless:
13281 lt_prog_compiler_pic_F77=
13284 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13288 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13289 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13290 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 lt_cv_prog_compiler_c_o_F77=no
13294 $rm -r conftest 2>/dev/null
13298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13300 lt_compiler_flag="-o out/conftest2.$ac_objext"
13301 # Insert the option either (1) after the last *FLAGS variable, or
13302 # (2) before a word containing "conftest.", or (3) at the end.
13303 # Note that $ac_compile itself does not contain backslashes and begins
13304 # with a dollar sign (not a hyphen), so the echo should work correctly.
13305 lt_compile=`echo "$ac_compile" | $SED \
13306 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13308 -e 's:$: $lt_compiler_flag:'`
13309 (eval echo "\"\$as_me:13309: $lt_compile\"" >&5)
13310 (eval "$lt_compile" 2>out/conftest.err)
13312 cat out/conftest.err >&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13316 # The compiler can only warn and ignore the option if not recognized
13317 # So say no if there are warnings
13318 if test ! -s out/conftest.err; then
13319 lt_cv_prog_compiler_c_o_F77=yes
13324 # SGI C++ compiler will create directory out/ii_files/ for
13325 # template instantiation
13326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13327 $rm out/* && rmdir out
13333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13337 hard_links="nottested"
13338 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13339 # do not overwrite the value of need_locks provided by the user
13340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13346 ln conftest.a conftest.b 2>&5 || hard_links=no
13347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348 echo "$as_me:$LINENO: result: $hard_links" >&5
13349 echo "${ECHO_T}$hard_links" >&6
13350 if test "$hard_links" = no; then
13351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13363 allow_undefined_flag_F77=
13364 enable_shared_with_static_runtimes_F77=no
13366 archive_expsym_cmds_F77=
13367 old_archive_From_new_cmds_F77=
13368 old_archive_from_expsyms_cmds_F77=
13369 export_dynamic_flag_spec_F77=
13370 whole_archive_flag_spec_F77=
13371 thread_safe_flag_spec_F77=
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_direct_F77=no
13376 hardcode_minus_L_F77=no
13377 hardcode_shlibpath_var_F77=unsupported
13378 link_all_deplibs_F77=unknown
13379 hardcode_automatic_F77=no
13381 module_expsym_cmds_F77=
13382 always_export_symbols_F77=no
13383 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13384 # include_expsyms should be a list of space-separated symbols to be *always*
13385 # included in the symbol list
13386 include_expsyms_F77=
13387 # exclude_expsyms can be an extended regexp of symbols to exclude
13388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13390 # as well as any symbol that contains `d'.
13391 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13393 # platforms (ab)use it in PIC code, but their linkers get confused if
13394 # the symbol is explicitly referenced. Since portable code cannot
13395 # rely on this symbol name, it's probably fine to never include it in
13396 # preloaded symbol tables.
13397 extract_expsyms_cmds=
13400 cygwin* | mingw* | pw32*)
13401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13402 # When not using gcc, we currently assume that we are using
13403 # Microsoft Visual C++.
13404 if test "$GCC" != yes; then
13414 if test "$with_gnu_ld" = yes; then
13415 # If archive_cmds runs LD, not CC, wlarc should be empty
13418 # See if GNU ld supports shared libraries.
13420 aix3* | aix4* | aix5*)
13421 # On AIX/PPC, the GNU linker is very broken
13422 if test "$host_cpu" != ia64; then
13426 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13427 *** to be unable to reliably create shared libraries on AIX.
13428 *** Therefore, libtool is disabling shared libraries support. If you
13429 *** really care for shared libraries, you may want to modify your PATH
13430 *** so that a non-GNU linker is found, and then restart.
13437 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)'
13438 hardcode_libdir_flag_spec_F77='-L$libdir'
13439 hardcode_minus_L_F77=yes
13441 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13442 # that the semantics of dynamic libraries on AmigaOS, at least up
13443 # to version 4, is to share data among multiple programs linked
13444 # with the same dynamic library. Since this doesn't match the
13445 # behavior of shared libraries on other platforms, we can't use
13451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13452 allow_undefined_flag_F77=unsupported
13453 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13454 # support --undefined. This deserves some investigation. FIXME
13455 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 cygwin* | mingw* | pw32*)
13462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13463 # as there is no search path for DLLs.
13464 hardcode_libdir_flag_spec_F77='-L$libdir'
13465 allow_undefined_flag_F77=unsupported
13466 always_export_symbols_F77=no
13467 enable_shared_with_static_runtimes_F77=yes
13468 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13470 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13471 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13472 # If the export-symbols file already is a .def file (1st line
13473 # is EXPORTS), use it as is; otherwise, prepend...
13474 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13475 cp $export_symbols $output_objdir/$soname.def;
13477 echo EXPORTS > $output_objdir/$soname.def;
13478 cat $export_symbols >> $output_objdir/$soname.def;
13480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13488 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13502 *** create shared libraries on Solaris systems. Therefore, libtool
13503 *** is disabling shared libraries support. We urge you to upgrade GNU
13504 *** binutils to release 2.9.1 or newer. Another option is to modify
13505 *** your PATH or compiler configuration so that the native linker is
13506 *** used, and then restart.
13509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13518 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13520 hardcode_direct_F77=yes
13521 hardcode_shlibpath_var_F77=no
13525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13526 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13527 archive_cmds_F77="$tmp_archive_cmds"
13528 supports_anon_versioning=no
13529 case `$LD -v 2>/dev/null` in
13530 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13531 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13532 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13533 *\ 2.11.*) ;; # other 2.11 versions
13534 *) supports_anon_versioning=yes ;;
13536 if test $supports_anon_versioning = yes; then
13537 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13539 $echo "local: *; };" >> $output_objdir/$libname.ver~
13540 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13542 archive_expsym_cmds_F77="$tmp_archive_cmds"
13550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13559 if test "$ld_shlibs_F77" = yes; then
13560 runpath_var=LD_RUN_PATH
13561 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13562 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13563 # ancient GNU ld didn't support --whole-archive et. al.
13564 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13565 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13567 whole_archive_flag_spec_F77=
13571 # PORTME fill in a description of your system's linker (not GNU ld)
13574 allow_undefined_flag_F77=unsupported
13575 always_export_symbols_F77=yes
13576 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'
13577 # Note: this linker hardcodes the directories in LIBPATH if there
13578 # are no directories specified by -L.
13579 hardcode_minus_L_F77=yes
13580 if test "$GCC" = yes && test -z "$link_static_flag"; then
13581 # Neither direct hardcoding nor static linking is supported with a
13583 hardcode_direct_F77=unsupported
13588 if test "$host_cpu" = ia64; then
13589 # On IA64, the linker does run time linking by default, so we don't
13590 # have to do anything special.
13591 aix_use_runtimelinking=no
13592 exp_sym_flag='-Bexport'
13595 # If we're using GNU nm, then we don't want the "-C" option.
13596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13597 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13598 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'
13600 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'
13602 aix_use_runtimelinking=no
13604 # Test if we are trying to use run time linking or normal
13605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13606 # need to do runtime linking.
13607 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13608 for ld_flag in $LDFLAGS; do
13609 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13610 aix_use_runtimelinking=yes
13616 exp_sym_flag='-bexport'
13617 no_entry_flag='-bnoentry'
13620 # When large executables or shared objects are built, AIX ld can
13621 # have problems creating the table of contents. If linking a library
13622 # or program results in "error TOC overflow" add -mminimal-toc to
13623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13626 archive_cmds_F77=''
13627 hardcode_direct_F77=yes
13628 hardcode_libdir_separator_F77=':'
13629 link_all_deplibs_F77=yes
13631 if test "$GCC" = yes; then
13632 case $host_os in aix4.012|aix4.012.*)
13633 # We only want to do this on AIX 4.2 and lower, the check
13634 # below for broken collect2 doesn't work under 4.3+
13635 collect2name=`${CC} -print-prog-name=collect2`
13636 if test -f "$collect2name" && \
13637 strings "$collect2name" | grep resolve_lib_name >/dev/null
13639 # We have reworked collect2
13640 hardcode_direct_F77=yes
13642 # We have old collect2
13643 hardcode_direct_F77=unsupported
13644 # It fails to find uninstalled libraries when the uninstalled
13645 # path is not listed in the libpath. Setting hardcode_minus_L
13646 # to unsupported forces relinking
13647 hardcode_minus_L_F77=yes
13648 hardcode_libdir_flag_spec_F77='-L$libdir'
13649 hardcode_libdir_separator_F77=
13652 shared_flag='-shared'
13655 if test "$host_cpu" = ia64; then
13656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13657 # chokes on -Wl,-G. The following line is correct:
13660 if test "$aix_use_runtimelinking" = yes; then
13661 shared_flag='${wl}-G'
13663 shared_flag='${wl}-bM:SRE'
13668 # It seems that -bexpall does not export symbols beginning with
13669 # underscore (_), so it is better to generate a list of symbols to export.
13670 always_export_symbols_F77=yes
13671 if test "$aix_use_runtimelinking" = yes; then
13672 # Warning - without using the other runtime loading flags (-brtl),
13673 # -berok will link without error, but may produce a broken library.
13674 allow_undefined_flag_F77='-berok'
13675 # Determine the default libpath from the value encoded in an empty executable.
13676 cat >conftest.$ac_ext <<_ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_f77_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13706 # Check for a 64-bit object if we didn't find anything.
13707 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; }
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13714 rm -f conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
13716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13719 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"
13721 if test "$host_cpu" = ia64; then
13722 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13723 allow_undefined_flag_F77="-z nodefs"
13724 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"
13726 # Determine the default libpath from the value encoded in an empty executable.
13727 cat >conftest.$ac_ext <<_ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734 (eval $ac_link) 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_f77_werror_flag"
13742 || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest$ac_exeext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13757 # Check for a 64-bit object if we didn't find anything.
13758 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; }
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13765 rm -f conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
13767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13769 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13770 # Warning - without using the other run time loading flags,
13771 # -berok will link without error, but may produce a broken library.
13772 no_undefined_flag_F77=' ${wl}-bernotok'
13773 allow_undefined_flag_F77=' ${wl}-berok'
13774 # -bexpall does not export symbols beginning with underscore (_)
13775 always_export_symbols_F77=yes
13776 # Exported symbols can be pulled into shared objects from archives
13777 whole_archive_flag_spec_F77=' '
13778 archive_cmds_need_lc_F77=yes
13779 # This is similar to how AIX traditionally builds it's shared libraries.
13780 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'
13786 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)'
13787 hardcode_libdir_flag_spec_F77='-L$libdir'
13788 hardcode_minus_L_F77=yes
13789 # see comment about different semantics on the GNU ld section
13794 export_dynamic_flag_spec_F77=-rdynamic
13797 cygwin* | mingw* | pw32*)
13798 # When not using gcc, we currently assume that we are using
13799 # Microsoft Visual C++.
13800 # hardcode_libdir_flag_spec is actually meaningless, as there is
13801 # no search path for DLLs.
13802 hardcode_libdir_flag_spec_F77=' '
13803 allow_undefined_flag_F77=unsupported
13804 # Tell ltmain to make .lib files, not .a files.
13806 # Tell ltmain to make .dll files, not .so files.
13808 # FIXME: Setting linknames here is a bad hack.
13809 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13810 # The linker will automatically build a .lib file if we build a DLL.
13811 old_archive_From_new_cmds_F77='true'
13812 # FIXME: Should let the user specify the lib program.
13813 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13814 fix_srcfile_path='`cygpath -w "$srcfile"`'
13815 enable_shared_with_static_runtimes_F77=yes
13818 darwin* | rhapsody*)
13820 rhapsody* | darwin1.[012])
13821 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13825 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13827 case ${MACOSX_DEPLOYMENT_TARGET} in
13829 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13832 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13838 archive_cmds_need_lc_F77=no
13839 hardcode_direct_F77=no
13840 hardcode_automatic_F77=yes
13841 hardcode_shlibpath_var_F77=unsupported
13842 whole_archive_flag_spec_F77=''
13843 link_all_deplibs_F77=yes
13844 if test "$GCC" = yes ; then
13845 output_verbose_link_cmd='echo'
13846 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13847 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13849 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}'
13850 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}'
13852 case "$cc_basename" in
13854 output_verbose_link_cmd='echo'
13855 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13856 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13858 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}'
13859 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}'
13869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_libdir_flag_spec_F77='-L$libdir'
13871 hardcode_shlibpath_var_F77=no
13878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13879 # support. Future versions do this automatically, but an explicit c++rt0.o
13880 # does not break anything, and helps significantly (at the cost of a little
13883 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13884 hardcode_libdir_flag_spec_F77='-R$libdir'
13885 hardcode_direct_F77=yes
13886 hardcode_shlibpath_var_F77=no
13889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13891 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_direct_F77=yes
13893 hardcode_minus_L_F77=yes
13894 hardcode_shlibpath_var_F77=no
13897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13898 freebsd* | kfreebsd*-gnu)
13899 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13900 hardcode_libdir_flag_spec_F77='-R$libdir'
13901 hardcode_direct_F77=yes
13902 hardcode_shlibpath_var_F77=no
13906 if test "$GCC" = yes; then
13907 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'
13909 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'
13911 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13912 hardcode_libdir_separator_F77=:
13913 hardcode_direct_F77=yes
13915 # hardcode_minus_L: Not really in the search PATH,
13916 # but as the default location of the library.
13917 hardcode_minus_L_F77=yes
13918 export_dynamic_flag_spec_F77='${wl}-E'
13922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13923 case "$host_cpu" in
13925 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13932 case "$host_cpu" in
13934 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13937 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13941 if test "$with_gnu_ld" = no; then
13942 case "$host_cpu" in
13944 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13946 hardcode_libdir_separator_F77=:
13947 hardcode_direct_F77=no
13948 hardcode_shlibpath_var_F77=no
13951 hardcode_libdir_flag_spec_F77='-L$libdir'
13952 hardcode_direct_F77=no
13953 hardcode_shlibpath_var_F77=no
13955 # hardcode_minus_L: Not really in the search PATH,
13956 # but as the default location of the library.
13957 hardcode_minus_L_F77=yes
13960 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13961 hardcode_libdir_separator_F77=:
13962 hardcode_direct_F77=yes
13963 export_dynamic_flag_spec_F77='${wl}-E'
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
13973 irix5* | irix6* | nonstopux*)
13974 if test "$GCC" = yes; then
13975 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'
13977 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'
13978 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13980 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13981 hardcode_libdir_separator_F77=:
13982 link_all_deplibs_F77=yes
13986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13987 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13989 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13991 hardcode_libdir_flag_spec_F77='-R$libdir'
13992 hardcode_direct_F77=yes
13993 hardcode_shlibpath_var_F77=no
13997 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13998 hardcode_direct_F77=yes
13999 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14000 hardcode_libdir_separator_F77=:
14001 hardcode_shlibpath_var_F77=no
14005 hardcode_direct_F77=yes
14006 hardcode_shlibpath_var_F77=no
14007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14009 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14010 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14011 export_dynamic_flag_spec_F77='${wl}-E'
14014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14015 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14016 hardcode_libdir_flag_spec_F77='-R$libdir'
14019 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14020 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14027 hardcode_libdir_flag_spec_F77='-L$libdir'
14028 hardcode_minus_L_F77=yes
14029 allow_undefined_flag_F77=unsupported
14030 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'
14031 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14035 if test "$GCC" = yes; then
14036 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14037 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'
14039 allow_undefined_flag_F77=' -expect_unresolved \*'
14040 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'
14042 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14043 hardcode_libdir_separator_F77=:
14046 osf4* | osf5*) # as osf3* with the addition of -msym flag
14047 if test "$GCC" = yes; then
14048 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14049 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'
14050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14052 allow_undefined_flag_F77=' -expect_unresolved \*'
14053 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'
14054 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~
14055 $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'
14057 # Both c and cxx compiler support -rpath directly
14058 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14060 hardcode_libdir_separator_F77=:
14064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065 hardcode_shlibpath_var_F77=no
14066 export_dynamic_flag_spec_F77='${wl}-Bexport'
14067 runpath_var=LD_RUN_PATH
14068 hardcode_runpath_var=yes
14072 no_undefined_flag_F77=' -z text'
14073 if test "$GCC" = yes; then
14074 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14076 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14078 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14082 hardcode_libdir_flag_spec_F77='-R$libdir'
14083 hardcode_shlibpath_var_F77=no
14085 solaris2.[0-5] | solaris2.[0-5].*) ;;
14086 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14087 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14089 link_all_deplibs_F77=yes
14093 if test "x$host_vendor" = xsequent; then
14094 # Use $CC to link under sequent, because it throws in some extra .o
14095 # files that make .init and .fini sections work.
14096 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14098 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14100 hardcode_libdir_flag_spec_F77='-L$libdir'
14101 hardcode_direct_F77=yes
14102 hardcode_minus_L_F77=yes
14103 hardcode_shlibpath_var_F77=no
14107 case $host_vendor in
14109 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14110 hardcode_direct_F77=yes # is this really true???
14113 ## LD is ld it makes a PLAMLIB
14114 ## CC just makes a GrossModule.
14115 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14116 reload_cmds_F77='$CC -r -o $output$reload_objs'
14117 hardcode_direct_F77=no
14120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14124 runpath_var='LD_RUN_PATH'
14125 hardcode_shlibpath_var_F77=no
14129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14130 hardcode_shlibpath_var_F77=no
14131 export_dynamic_flag_spec_F77='-Bexport'
14135 if test -d /usr/nec; then
14136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_shlibpath_var_F77=no
14138 runpath_var=LD_RUN_PATH
14139 hardcode_runpath_var=yes
14145 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_direct_F77=yes
14147 hardcode_minus_L_F77=no
14148 hardcode_shlibpath_var_F77=no
14149 hardcode_runpath_var=yes
14150 runpath_var=LD_RUN_PATH
14153 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14154 no_undefined_flag_F77='${wl}-z ${wl}text'
14155 if test "$GCC" = yes; then
14156 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14158 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160 runpath_var='LD_RUN_PATH'
14161 hardcode_shlibpath_var_F77=no
14165 no_undefined_flag_F77=' -z text'
14166 # $CC -shared without GNU ld will not create a library from C++
14167 # object files and a static libstdc++, better avoid it by now
14168 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14169 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14171 hardcode_libdir_flag_spec_F77=
14172 hardcode_shlibpath_var_F77=no
14173 runpath_var='LD_RUN_PATH'
14177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14178 hardcode_libdir_flag_spec_F77='-L$libdir'
14179 hardcode_shlibpath_var_F77=no
14188 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14189 echo "${ECHO_T}$ld_shlibs_F77" >&6
14190 test "$ld_shlibs_F77" = no && can_build_shared=no
14192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14193 if test "$GCC" = yes; then
14194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14198 # Do we need to explicitly link libc?
14200 case "x$archive_cmds_need_lc_F77" in
14202 # Assume -lc should be added
14203 archive_cmds_need_lc_F77=yes
14205 if test "$enable_shared" = yes && test "$GCC" = yes; then
14206 case $archive_cmds_F77 in
14208 # FIXME: we may have to deal with multi-command sequences.
14211 # Test whether the compiler implicitly links with -lc since on some
14212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14213 # to ld, don't add -lc before -lgcc.
14214 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14215 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220 (eval $ac_compile) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } 2>conftest.err; then
14226 libobjs=conftest.$ac_objext
14228 wl=$lt_prog_compiler_wl_F77
14234 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14235 allow_undefined_flag_F77=
14236 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14237 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }
14242 archive_cmds_need_lc_F77=no
14244 archive_cmds_need_lc_F77=yes
14246 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14248 cat conftest.err 1>&5
14251 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14252 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14259 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14260 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14261 library_names_spec=
14262 libname_spec='lib$name'
14266 postuninstall_cmds=
14270 shlibpath_overrides_runpath=unknown
14272 dynamic_linker="$host_os ld.so"
14273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14274 if test "$GCC" = yes; then
14275 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14276 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14277 # if the path contains ";" then we assume it to be the separator
14278 # otherwise default to the standard path separator (i.e. ":") - it is
14279 # assumed that no part of a normal pathname contains ";" but that should
14280 # okay in the real world where ";" in dirpaths is itself problematic.
14281 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14288 need_lib_prefix=unknown
14289 hardcode_into_libs=no
14291 # when you set need_version to no, make sure it does not cause -set_version
14292 # flags to be left without arguments
14293 need_version=unknown
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14299 shlibpath_var=LIBPATH
14301 # AIX 3 has no versioning support, so we append a major version to the name.
14302 soname_spec='${libname}${release}${shared_ext}$major'
14309 hardcode_into_libs=yes
14310 if test "$host_cpu" = ia64; then
14311 # AIX 5 supports IA64
14312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14313 shlibpath_var=LD_LIBRARY_PATH
14315 # With GCC up to 2.95.x, collect2 would create an import file
14316 # for dependence libraries. The import file would start with
14317 # the line `#! .'. This would cause the generated library to
14318 # depend on `.', always an invalid library. This was fixed in
14319 # development snapshots of GCC prior to 3.0.
14321 aix4 | aix4.[01] | aix4.[01].*)
14322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14324 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14327 can_build_shared=no
14331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14332 # soname into executable. Probably we can add versioning support to
14333 # collect2, so additional links can be useful in future.
14334 if test "$aix_use_runtimelinking" = yes; then
14335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14336 # instead of lib<name>.a to let people know that these are not
14337 # typical AIX shared libraries.
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 # We preserve .a as extension for shared libraries through AIX4.2
14341 # and later when we are not doing run time linking.
14342 library_names_spec='${libname}${release}.a $libname.a'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14345 shlibpath_var=LIBPATH
14350 library_names_spec='$libname.ixlibrary $libname.a'
14351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14352 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'
14356 library_names_spec='${libname}${shared_ext}'
14357 dynamic_linker="$host_os ld.so"
14358 shlibpath_var=LIBRARY_PATH
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14367 shlibpath_var=LD_LIBRARY_PATH
14368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14370 # the default ld.so.conf also contains /usr/contrib/lib and
14371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14372 # libtool to hard-code these into programs
14375 cygwin* | mingw* | pw32*)
14376 version_type=windows
14381 case $GCC,$host_os in
14382 yes,cygwin* | yes,mingw* | yes,pw32*)
14383 library_names_spec='$libname.dll.a'
14384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14385 postinstall_cmds='base_file=`basename \${file}`~
14386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14387 dldir=$destdir/`dirname \$dlpath`~
14388 test -d \$dldir || mkdir -p \$dldir~
14389 $install_prog $dir/$dlname \$dldir/$dlname'
14390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14391 dlpath=$dir/\$dldll~
14393 shlibpath_overrides_runpath=yes
14397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14399 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14402 # MinGW DLLs use traditional 'lib' prefix
14403 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14404 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14405 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14406 # It is most probably a Windows format PATH printed by
14407 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14408 # path with ; separators, and with drive letters. We can handle the
14409 # drive letters (cygwin fileutils understands them), so leave them,
14410 # especially as we might pass files found there to a mingw objdump,
14411 # which wouldn't understand a cygwinified path. Ahh.
14412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14418 # pw32 DLLs use 'pw' prefix rather than 'lib'
14419 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14428 dynamic_linker='Win32 ld.exe'
14429 # FIXME: first we should search . and the directory the executable is in
14433 darwin* | rhapsody*)
14434 dynamic_linker="$host_os dyld"
14435 version_type=darwin
14438 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14439 soname_spec='${libname}${release}${major}$shared_ext'
14440 shlibpath_overrides_runpath=yes
14441 shlibpath_var=DYLD_LIBRARY_PATH
14442 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14443 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14444 if test "$GCC" = yes; then
14445 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"`
14447 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 shlibpath_var=LD_LIBRARY_PATH
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 shlibpath_overrides_runpath=no
14473 hardcode_into_libs=yes
14474 dynamic_linker='GNU ld.so'
14478 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14479 version_type=freebsd-$objformat
14480 case $version_type in
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14491 shlibpath_var=LD_LIBRARY_PATH
14494 shlibpath_overrides_runpath=yes
14496 freebsd3.01* | freebsdelf3.01*)
14497 shlibpath_overrides_runpath=yes
14498 hardcode_into_libs=yes
14501 shlibpath_overrides_runpath=no
14502 hardcode_into_libs=yes
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 hardcode_into_libs=yes
14517 hpux9* | hpux10* | hpux11*)
14518 # Give a soname corresponding to the major version so that dld.sl refuses to
14519 # link against other versions.
14523 case "$host_cpu" in
14526 hardcode_into_libs=yes
14527 dynamic_linker="$host_os dld.so"
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 if test "X$HPUX_IA64_MODE" = X32; then
14533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14541 hardcode_into_libs=yes
14542 dynamic_linker="$host_os dld.sl"
14543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14552 dynamic_linker="$host_os dld.sl"
14553 shlibpath_var=SHLIB_PATH
14554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
14559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14560 postinstall_cmds='chmod 555 $lib'
14563 irix5* | irix6* | nonstopux*)
14565 nonstopux*) version_type=nonstopux ;;
14567 if test "$lt_cv_prog_gnu_ld" = yes; then
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14578 irix5* | nonstopux*)
14579 libsuff= shlibsuff=
14582 case $LD in # libtool.m4 will add one of these switches to LD
14583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14584 libsuff= shlibsuff= libmagic=32-bit;;
14585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14586 libsuff=32 shlibsuff=N32 libmagic=N32;;
14587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14589 *) libsuff= shlibsuff= libmagic=never-match;;
14593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14594 shlibpath_overrides_runpath=no
14595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14597 hardcode_into_libs=yes
14600 # No shared lib support for Linux oldld, aout, or coff.
14601 linux*oldld* | linux*aout* | linux*coff*)
14605 # This must be Linux ELF.
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 # This implies no fast_install, which is unacceptable.
14616 # Some rework will be needed to allow for fast_install
14617 # before this can be enabled.
14618 hardcode_into_libs=yes
14620 # Append ld.so.conf contents to the search path
14621 if test -f /etc/ld.so.conf; then
14622 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14626 # We used to test for /lib/ld.so.1 and disable shared libraries on
14627 # powerpc, because MkLinux only supported shared libraries with the
14628 # GNU dynamic linker. Since this was broken with cross compilers,
14629 # most powerpc-linux boxes support dynamic linking these days and
14630 # people can always --disable-shared, the test was removed, and we
14631 # assume the GNU/Linux dynamic linker is in use.
14632 dynamic_linker='GNU/Linux ld.so'
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14644 dynamic_linker='GNU ld.so'
14651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14654 dynamic_linker='NetBSD (a.out) ld.so'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 dynamic_linker='NetBSD ld.elf_so'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14691 openbsd2.[89] | openbsd2.[89].*)
14692 shlibpath_overrides_runpath=no
14695 shlibpath_overrides_runpath=yes
14699 shlibpath_overrides_runpath=yes
14704 libname_spec='$name'
14707 library_names_spec='$libname${shared_ext} $libname.a'
14708 dynamic_linker='OS/2 ld.exe'
14709 shlibpath_var=LIBPATH
14712 osf3* | osf4* | osf5*)
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 shlibpath_var=LD_LIBRARY_PATH
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=yes
14738 hardcode_into_libs=yes
14739 # ldd complains unless libraries are executable
14740 postinstall_cmds='chmod +x $lib'
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14746 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=yes
14749 if test "$with_gnu_ld" = yes; then
14755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 case $host_vendor in
14762 shlibpath_overrides_runpath=no
14764 export_dynamic_flag_spec='${wl}-Blargedynsym'
14765 runpath_var=LD_RUN_PATH
14773 shlibpath_overrides_runpath=no
14774 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14780 if test -d /usr/nec ;then
14782 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14783 soname_spec='$libname${shared_ext}.$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14799 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14800 echo "${ECHO_T}$dynamic_linker" >&6
14801 test "$dynamic_linker" = no && can_build_shared=no
14803 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14805 hardcode_action_F77=
14806 if test -n "$hardcode_libdir_flag_spec_F77" || \
14807 test -n "$runpath_var_F77" || \
14808 test "X$hardcode_automatic_F77" = "Xyes" ; then
14810 # We can hardcode non-existant directories.
14811 if test "$hardcode_direct_F77" != no &&
14812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14813 # have to relink, otherwise we might link with an installed library
14814 # when we should be linking with a yet-to-be-installed one
14815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14816 test "$hardcode_minus_L_F77" != no; then
14817 # Linking always hardcodes the temporary library directory.
14818 hardcode_action_F77=relink
14820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14821 hardcode_action_F77=immediate
14824 # We cannot hardcode anything, or else we can only hardcode existing
14826 hardcode_action_F77=unsupported
14828 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14829 echo "${ECHO_T}$hardcode_action_F77" >&6
14831 if test "$hardcode_action_F77" = relink; then
14832 # Fast installation is not supported
14833 enable_fast_install=no
14834 elif test "$shlibpath_overrides_runpath" = yes ||
14835 test "$enable_shared" = no; then
14836 # Fast installation is not necessary
14837 enable_fast_install=needless
14842 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14843 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14844 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14845 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14846 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14847 echo "$as_me:$LINENO: result: yes" >&5
14848 echo "${ECHO_T}yes" >&6
14850 # FIXME - insert some real tests, host_os isn't really good enough
14853 if test -n "$STRIP" ; then
14854 striplib="$STRIP -x"
14855 echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6
14858 echo "$as_me:$LINENO: result: no" >&5
14859 echo "${ECHO_T}no" >&6
14863 echo "$as_me:$LINENO: result: no" >&5
14864 echo "${ECHO_T}no" >&6
14871 # The else clause should only fire when bootstrapping the
14872 # libtool distribution, otherwise you forgot to ship ltmain.sh
14873 # with your package, and you will get complaints that there are
14874 # no rules to generate ltmain.sh.
14875 if test -f "$ltmain"; then
14876 # See if we are running on zsh, and set the options which allow our commands through
14877 # without removal of \ escapes.
14878 if test -n "${ZSH_VERSION+set}" ; then
14879 setopt NO_GLOB_SUBST
14881 # Now quote all the things that may contain metacharacters while being
14882 # careful not to overquote the AC_SUBSTed values. We take copies of the
14883 # variables and quote the copies for generation of the libtool script.
14884 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14886 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14887 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14888 deplibs_check_method reload_flag reload_cmds need_locks \
14889 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14890 lt_cv_sys_global_symbol_to_c_name_address \
14891 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14892 old_postinstall_cmds old_postuninstall_cmds \
14896 lt_prog_compiler_wl_F77 \
14897 lt_prog_compiler_pic_F77 \
14898 lt_prog_compiler_static_F77 \
14899 lt_prog_compiler_no_builtin_flag_F77 \
14900 export_dynamic_flag_spec_F77 \
14901 thread_safe_flag_spec_F77 \
14902 whole_archive_flag_spec_F77 \
14903 enable_shared_with_static_runtimes_F77 \
14904 old_archive_cmds_F77 \
14905 old_archive_from_new_cmds_F77 \
14906 predep_objects_F77 \
14907 postdep_objects_F77 \
14910 compiler_lib_search_path_F77 \
14912 archive_expsym_cmds_F77 \
14913 postinstall_cmds_F77 \
14914 postuninstall_cmds_F77 \
14915 old_archive_from_expsyms_cmds_F77 \
14916 allow_undefined_flag_F77 \
14917 no_undefined_flag_F77 \
14918 export_symbols_cmds_F77 \
14919 hardcode_libdir_flag_spec_F77 \
14920 hardcode_libdir_flag_spec_ld_F77 \
14921 hardcode_libdir_separator_F77 \
14922 hardcode_automatic_F77 \
14924 module_expsym_cmds_F77 \
14925 lt_cv_prog_compiler_c_o_F77 \
14926 exclude_expsyms_F77 \
14927 include_expsyms_F77; do
14930 old_archive_cmds_F77 | \
14931 old_archive_from_new_cmds_F77 | \
14932 archive_cmds_F77 | \
14933 archive_expsym_cmds_F77 | \
14934 module_cmds_F77 | \
14935 module_expsym_cmds_F77 | \
14936 old_archive_from_expsyms_cmds_F77 | \
14937 export_symbols_cmds_F77 | \
14938 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14939 postinstall_cmds | postuninstall_cmds | \
14940 old_postinstall_cmds | old_postuninstall_cmds | \
14941 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14942 # Double-quote double-evaled strings.
14943 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14952 *'\$0 --fallback-echo"')
14953 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14959 cat <<__EOF__ >> "$cfgfile"
14960 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14964 # Shell to use when invoking shell scripts.
14967 # Whether or not to build shared libraries.
14968 build_libtool_libs=$enable_shared
14970 # Whether or not to build static libraries.
14971 build_old_libs=$enable_static
14973 # Whether or not to add -lc for building shared libraries.
14974 build_libtool_need_lc=$archive_cmds_need_lc_F77
14976 # Whether or not to disallow shared libs when runtime libs are static
14977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14979 # Whether or not to optimize for fast installation.
14980 fast_install=$enable_fast_install
14983 host_alias=$host_alias
14986 # An echo program that does not interpret backslashes.
14991 AR_FLAGS=$lt_AR_FLAGS
14996 # A language-specific compiler.
14997 CC=$lt_compiler_F77
14999 # Is the compiler the GNU C compiler?
15005 # The linker used to build libraries.
15008 # Whether we need hard or soft links.
15011 # A BSD-compatible nm program.
15014 # A symbol stripping program
15017 # Used to examine libraries when file_magic_cmd begins "file"
15018 MAGIC_CMD=$MAGIC_CMD
15020 # Used on cygwin: DLL creation program.
15023 # Used on cygwin: object dumper.
15026 # Used on cygwin: assembler.
15029 # The name of the directory that contains temporary libtool files.
15032 # How to create reloadable object files.
15033 reload_flag=$lt_reload_flag
15034 reload_cmds=$lt_reload_cmds
15036 # How to pass a linker flag through the compiler.
15037 wl=$lt_lt_prog_compiler_wl_F77
15039 # Object file suffix (normally "o").
15040 objext="$ac_objext"
15042 # Old archive suffix (normally "a").
15045 # Shared library suffix (normally ".so").
15046 shrext_cmds='$shrext_cmds'
15048 # Executable file suffix (normally "").
15051 # Additional compiler flags for building library objects.
15052 pic_flag=$lt_lt_prog_compiler_pic_F77
15055 # What is the maximum length of a command?
15056 max_cmd_len=$lt_cv_sys_max_cmd_len
15058 # Does compiler simultaneously support -c and -o options?
15059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15061 # Must we lock files when doing compilation ?
15062 need_locks=$lt_need_locks
15064 # Do we need the lib prefix for modules?
15065 need_lib_prefix=$need_lib_prefix
15067 # Do we need a version for libraries?
15068 need_version=$need_version
15070 # Whether dlopen is supported.
15071 dlopen_support=$enable_dlopen
15073 # Whether dlopen of programs is supported.
15074 dlopen_self=$enable_dlopen_self
15076 # Whether dlopen of statically linked programs is supported.
15077 dlopen_self_static=$enable_dlopen_self_static
15079 # Compiler flag to prevent dynamic linking.
15080 link_static_flag=$lt_lt_prog_compiler_static_F77
15082 # Compiler flag to turn off builtin functions.
15083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15085 # Compiler flag to allow reflexive dlopens.
15086 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15088 # Compiler flag to generate shared objects directly from archives.
15089 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15091 # Compiler flag to generate thread-safe objects.
15092 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15094 # Library versioning type.
15095 version_type=$version_type
15097 # Format of library name prefix.
15098 libname_spec=$lt_libname_spec
15100 # List of archive names. First name is the real one, the rest are links.
15101 # The last name is the one that the linker finds with -lNAME.
15102 library_names_spec=$lt_library_names_spec
15104 # The coded name of the library, if different from the real name.
15105 soname_spec=$lt_soname_spec
15107 # Commands used to build and install an old-style archive.
15109 old_archive_cmds=$lt_old_archive_cmds_F77
15110 old_postinstall_cmds=$lt_old_postinstall_cmds
15111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15113 # Create an old-style archive from a shared archive.
15114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15116 # Create a temporary old-style archive to link instead of a shared archive.
15117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15119 # Commands used to build and install a shared archive.
15120 archive_cmds=$lt_archive_cmds_F77
15121 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15122 postinstall_cmds=$lt_postinstall_cmds
15123 postuninstall_cmds=$lt_postuninstall_cmds
15125 # Commands used to build a loadable module (assumed same as above if empty)
15126 module_cmds=$lt_module_cmds_F77
15127 module_expsym_cmds=$lt_module_expsym_cmds_F77
15129 # Commands to strip libraries.
15130 old_striplib=$lt_old_striplib
15131 striplib=$lt_striplib
15133 # Dependencies to place before the objects being linked to create a
15135 predep_objects=$lt_predep_objects_F77
15137 # Dependencies to place after the objects being linked to create a
15139 postdep_objects=$lt_postdep_objects_F77
15141 # Dependencies to place before the objects being linked to create a
15143 predeps=$lt_predeps_F77
15145 # Dependencies to place after the objects being linked to create a
15147 postdeps=$lt_postdeps_F77
15149 # The library search path used internally by the compiler when linking
15150 # a shared library.
15151 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15153 # Method to check whether dependent libraries are shared objects.
15154 deplibs_check_method=$lt_deplibs_check_method
15156 # Command to use when deplibs_check_method == file_magic.
15157 file_magic_cmd=$lt_file_magic_cmd
15159 # Flag that allows shared libraries with undefined symbols to be built.
15160 allow_undefined_flag=$lt_allow_undefined_flag_F77
15162 # Flag that forces no undefined symbols.
15163 no_undefined_flag=$lt_no_undefined_flag_F77
15165 # Commands used to finish a libtool library installation in a directory.
15166 finish_cmds=$lt_finish_cmds
15168 # Same as above, but a single script fragment to be evaled but not shown.
15169 finish_eval=$lt_finish_eval
15171 # Take the output of nm and produce a listing of raw symbols and C names.
15172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15174 # Transform the output of nm in a proper C declaration
15175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15177 # Transform the output of nm in a C name address pair
15178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15180 # This is the shared library runtime path variable.
15181 runpath_var=$runpath_var
15183 # This is the shared library path variable.
15184 shlibpath_var=$shlibpath_var
15186 # Is shlibpath searched before the hard-coded library search path?
15187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15189 # How to hardcode a shared library path into an executable.
15190 hardcode_action=$hardcode_action_F77
15192 # Whether we should hardcode library paths into libraries.
15193 hardcode_into_libs=$hardcode_into_libs
15195 # Flag to hardcode \$libdir into a binary during linking.
15196 # This must work even if \$libdir does not exist.
15197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15199 # If ld is used when linking, flag to hardcode \$libdir into
15200 # a binary during linking. This must work even if \$libdir does
15202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15204 # Whether we need a single -rpath flag with a separated argument.
15205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15207 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15208 # resulting binary.
15209 hardcode_direct=$hardcode_direct_F77
15211 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15212 # resulting binary.
15213 hardcode_minus_L=$hardcode_minus_L_F77
15215 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15216 # the resulting binary.
15217 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15219 # Set to yes if building a shared library automatically hardcodes DIR into the library
15220 # and all subsequent libraries and executables linked against it.
15221 hardcode_automatic=$hardcode_automatic_F77
15223 # Variables whose values should be saved in libtool wrapper scripts and
15224 # restored at relink time.
15225 variables_saved_for_relink="$variables_saved_for_relink"
15227 # Whether libtool must link a program against all its dependency libraries.
15228 link_all_deplibs=$link_all_deplibs_F77
15230 # Compile-time system search path for libraries
15231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15233 # Run-time system search path for libraries
15234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15236 # Fix the shell variable \$srcfile for the compiler.
15237 fix_srcfile_path="$fix_srcfile_path_F77"
15239 # Set to yes if exported symbols are required.
15240 always_export_symbols=$always_export_symbols_F77
15242 # The commands to list exported symbols.
15243 export_symbols_cmds=$lt_export_symbols_cmds_F77
15245 # The commands to extract the exported symbol list from a shared archive.
15246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15248 # Symbols that should not be listed in the preloaded symbols.
15249 exclude_expsyms=$lt_exclude_expsyms_F77
15251 # Symbols that must always be exported.
15252 include_expsyms=$lt_include_expsyms_F77
15254 # ### END LIBTOOL TAG CONFIG: $tagname
15260 # If there is no Makefile yet, we rely on a make rule to execute
15261 # `config.status --recheck' to rerun these tests and create the
15262 # libtool script then.
15263 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15264 if test -f "$ltmain_in"; then
15265 test -f Makefile && make "$ltmain"
15271 ac_cpp='$CPP $CPPFLAGS'
15272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15284 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15292 # Source file extension for Java test sources.
15295 # Object file extension for compiled Java test sources.
15299 # Code to be used in simple compile tests
15300 lt_simple_compile_test_code="class foo {}\n"
15302 # Code to be used in simple link tests
15303 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15307 # If no C compiler was specified, use CC.
15310 # Allow CC to be a program name with arguments.
15314 # Allow CC to be a program name with arguments.
15320 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15321 archive_cmds_need_lc_GCJ=no
15324 lt_prog_compiler_no_builtin_flag_GCJ=
15326 if test "$GCC" = yes; then
15327 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15330 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15331 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15332 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 lt_cv_prog_compiler_rtti_exceptions=no
15336 ac_outfile=conftest.$ac_objext
15337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15338 lt_compiler_flag="-fno-rtti -fno-exceptions"
15339 # Insert the option either (1) after the last *FLAGS variable, or
15340 # (2) before a word containing "conftest.", or (3) at the end.
15341 # Note that $ac_compile itself does not contain backslashes and begins
15342 # with a dollar sign (not a hyphen), so the echo should work correctly.
15343 # The option is referenced via a variable to avoid confusing sed.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
15348 (eval echo "\"\$as_me:15348: $lt_compile\"" >&5)
15349 (eval "$lt_compile" 2>conftest.err)
15351 cat conftest.err >&5
15352 echo "$as_me:15352: \$? = $ac_status" >&5
15353 if (exit $ac_status) && test -s "$ac_outfile"; then
15354 # The compiler can only warn and ignore the option if not recognized
15355 # So say no if there are warnings
15356 if test ! -s conftest.err; then
15357 lt_cv_prog_compiler_rtti_exceptions=yes
15363 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15367 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15374 lt_prog_compiler_wl_GCJ=
15375 lt_prog_compiler_pic_GCJ=
15376 lt_prog_compiler_static_GCJ=
15378 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15381 if test "$GCC" = yes; then
15382 lt_prog_compiler_wl_GCJ='-Wl,'
15383 lt_prog_compiler_static_GCJ='-static'
15387 # All AIX code is PIC.
15388 if test "$host_cpu" = ia64; then
15389 # AIX 5 now supports IA64 processor
15390 lt_prog_compiler_static_GCJ='-Bstatic'
15395 # FIXME: we need at least 68020 code to build shared libraries, but
15396 # adding the `-m68020' flag to GCC prevents building anything better,
15398 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15401 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15402 # PIC is the default for these OSes.
15405 mingw* | pw32* | os2*)
15406 # This hack is so that the source file can tell whether it is being
15407 # built for inclusion in a dll (and should export symbols for example).
15408 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15411 darwin* | rhapsody*)
15412 # PIC is the default on this platform
15413 # Common symbols not allowed in MH_DYLIB files
15414 lt_prog_compiler_pic_GCJ='-fno-common'
15418 # Just because we use GCC doesn't mean we suddenly get shared libraries
15419 # on systems that don't support them.
15420 lt_prog_compiler_can_build_shared_GCJ=no
15425 if test -d /usr/nec; then
15426 lt_prog_compiler_pic_GCJ=-Kconform_pic
15431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15432 # not for PA HP-UX.
15433 case "$host_cpu" in
15438 lt_prog_compiler_pic_GCJ='-fPIC'
15444 lt_prog_compiler_pic_GCJ='-fPIC'
15448 # PORTME Check for flag to pass linker flags through the system compiler.
15451 lt_prog_compiler_wl_GCJ='-Wl,'
15452 if test "$host_cpu" = ia64; then
15453 # AIX 5 now supports IA64 processor
15454 lt_prog_compiler_static_GCJ='-Bstatic'
15456 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15460 # PIC is the default on this platform
15461 # Common symbols not allowed in MH_DYLIB files
15462 case "$cc_basename" in
15464 lt_prog_compiler_pic_GCJ='-qnocommon'
15465 lt_prog_compiler_wl_GCJ='-Wl,'
15470 mingw* | pw32* | os2*)
15471 # This hack is so that the source file can tell whether it is being
15472 # built for inclusion in a dll (and should export symbols for example).
15473 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15476 hpux9* | hpux10* | hpux11*)
15477 lt_prog_compiler_wl_GCJ='-Wl,'
15478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15479 # not for PA HP-UX.
15480 case "$host_cpu" in
15485 lt_prog_compiler_pic_GCJ='+Z'
15488 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15489 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15492 irix5* | irix6* | nonstopux*)
15493 lt_prog_compiler_wl_GCJ='-Wl,'
15494 # PIC (with -KPIC) is the default.
15495 lt_prog_compiler_static_GCJ='-non_shared'
15499 lt_prog_compiler_pic_GCJ='-KPIC'
15500 lt_prog_compiler_static_GCJ='-Bstatic'
15506 lt_prog_compiler_wl_GCJ='-Wl,'
15507 lt_prog_compiler_pic_GCJ='-KPIC'
15508 lt_prog_compiler_static_GCJ='-static'
15511 lt_prog_compiler_wl_GCJ='-Wl,'
15512 # All Alpha code is PIC.
15513 lt_prog_compiler_static_GCJ='-non_shared'
15518 osf3* | osf4* | osf5*)
15519 lt_prog_compiler_wl_GCJ='-Wl,'
15520 # All OSF/1 code is PIC.
15521 lt_prog_compiler_static_GCJ='-non_shared'
15525 lt_prog_compiler_pic_GCJ='-Kpic'
15526 lt_prog_compiler_static_GCJ='-dn'
15530 lt_prog_compiler_wl_GCJ='-Wl,'
15531 lt_prog_compiler_pic_GCJ='-KPIC'
15532 lt_prog_compiler_static_GCJ='-Bstatic'
15536 lt_prog_compiler_wl_GCJ='-Qoption ld '
15537 lt_prog_compiler_pic_GCJ='-PIC'
15538 lt_prog_compiler_static_GCJ='-Bstatic'
15541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15542 lt_prog_compiler_wl_GCJ='-Wl,'
15543 lt_prog_compiler_pic_GCJ='-KPIC'
15544 lt_prog_compiler_static_GCJ='-Bstatic'
15548 if test -d /usr/nec ;then
15549 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15550 lt_prog_compiler_static_GCJ='-Bstatic'
15555 lt_prog_compiler_pic_GCJ='-pic'
15556 lt_prog_compiler_static_GCJ='-Bstatic'
15560 lt_prog_compiler_can_build_shared_GCJ=no
15565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15566 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15569 # Check to make sure the PIC flag actually works.
15571 if test -n "$lt_prog_compiler_pic_GCJ"; then
15573 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15575 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 lt_prog_compiler_pic_works_GCJ=no
15579 ac_outfile=conftest.$ac_objext
15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15582 # Insert the option either (1) after the last *FLAGS variable, or
15583 # (2) before a word containing "conftest.", or (3) at the end.
15584 # Note that $ac_compile itself does not contain backslashes and begins
15585 # with a dollar sign (not a hyphen), so the echo should work correctly.
15586 # The option is referenced via a variable to avoid confusing sed.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
15591 (eval echo "\"\$as_me:15591: $lt_compile\"" >&5)
15592 (eval "$lt_compile" 2>conftest.err)
15594 cat conftest.err >&5
15595 echo "$as_me:15595: \$? = $ac_status" >&5
15596 if (exit $ac_status) && test -s "$ac_outfile"; then
15597 # The compiler can only warn and ignore the option if not recognized
15598 # So say no if there are warnings
15599 if test ! -s conftest.err; then
15600 lt_prog_compiler_pic_works_GCJ=yes
15606 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15607 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15609 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15610 case $lt_prog_compiler_pic_GCJ in
15612 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15615 lt_prog_compiler_pic_GCJ=
15616 lt_prog_compiler_can_build_shared_GCJ=no
15621 # For platforms which do not support PIC, -DPIC is meaningless:
15623 lt_prog_compiler_pic_GCJ=
15626 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15630 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15631 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15632 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 lt_cv_prog_compiler_c_o_GCJ=no
15636 $rm -r conftest 2>/dev/null
15640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15642 lt_compiler_flag="-o out/conftest2.$ac_objext"
15643 # Insert the option either (1) after the last *FLAGS variable, or
15644 # (2) before a word containing "conftest.", or (3) at the end.
15645 # Note that $ac_compile itself does not contain backslashes and begins
15646 # with a dollar sign (not a hyphen), so the echo should work correctly.
15647 lt_compile=`echo "$ac_compile" | $SED \
15648 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650 -e 's:$: $lt_compiler_flag:'`
15651 (eval echo "\"\$as_me:15651: $lt_compile\"" >&5)
15652 (eval "$lt_compile" 2>out/conftest.err)
15654 cat out/conftest.err >&5
15655 echo "$as_me:15655: \$? = $ac_status" >&5
15656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15658 # The compiler can only warn and ignore the option if not recognized
15659 # So say no if there are warnings
15660 if test ! -s out/conftest.err; then
15661 lt_cv_prog_compiler_c_o_GCJ=yes
15666 # SGI C++ compiler will create directory out/ii_files/ for
15667 # template instantiation
15668 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15669 $rm out/* && rmdir out
15675 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15676 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15679 hard_links="nottested"
15680 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15681 # do not overwrite the value of need_locks provided by the user
15682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15683 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15688 ln conftest.a conftest.b 2>&5 || hard_links=no
15689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15690 echo "$as_me:$LINENO: result: $hard_links" >&5
15691 echo "${ECHO_T}$hard_links" >&6
15692 if test "$hard_links" = no; then
15693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15694 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15701 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15705 allow_undefined_flag_GCJ=
15706 enable_shared_with_static_runtimes_GCJ=no
15708 archive_expsym_cmds_GCJ=
15709 old_archive_From_new_cmds_GCJ=
15710 old_archive_from_expsyms_cmds_GCJ=
15711 export_dynamic_flag_spec_GCJ=
15712 whole_archive_flag_spec_GCJ=
15713 thread_safe_flag_spec_GCJ=
15714 hardcode_libdir_flag_spec_GCJ=
15715 hardcode_libdir_flag_spec_ld_GCJ=
15716 hardcode_libdir_separator_GCJ=
15717 hardcode_direct_GCJ=no
15718 hardcode_minus_L_GCJ=no
15719 hardcode_shlibpath_var_GCJ=unsupported
15720 link_all_deplibs_GCJ=unknown
15721 hardcode_automatic_GCJ=no
15723 module_expsym_cmds_GCJ=
15724 always_export_symbols_GCJ=no
15725 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15726 # include_expsyms should be a list of space-separated symbols to be *always*
15727 # included in the symbol list
15728 include_expsyms_GCJ=
15729 # exclude_expsyms can be an extended regexp of symbols to exclude
15730 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15731 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15732 # as well as any symbol that contains `d'.
15733 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15735 # platforms (ab)use it in PIC code, but their linkers get confused if
15736 # the symbol is explicitly referenced. Since portable code cannot
15737 # rely on this symbol name, it's probably fine to never include it in
15738 # preloaded symbol tables.
15739 extract_expsyms_cmds=
15742 cygwin* | mingw* | pw32*)
15743 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15744 # When not using gcc, we currently assume that we are using
15745 # Microsoft Visual C++.
15746 if test "$GCC" != yes; then
15756 if test "$with_gnu_ld" = yes; then
15757 # If archive_cmds runs LD, not CC, wlarc should be empty
15760 # See if GNU ld supports shared libraries.
15762 aix3* | aix4* | aix5*)
15763 # On AIX/PPC, the GNU linker is very broken
15764 if test "$host_cpu" != ia64; then
15768 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15769 *** to be unable to reliably create shared libraries on AIX.
15770 *** Therefore, libtool is disabling shared libraries support. If you
15771 *** really care for shared libraries, you may want to modify your PATH
15772 *** so that a non-GNU linker is found, and then restart.
15779 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)'
15780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781 hardcode_minus_L_GCJ=yes
15783 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15784 # that the semantics of dynamic libraries on AmigaOS, at least up
15785 # to version 4, is to share data among multiple programs linked
15786 # with the same dynamic library. Since this doesn't match the
15787 # behavior of shared libraries on other platforms, we can't use
15793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15794 allow_undefined_flag_GCJ=unsupported
15795 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15796 # support --undefined. This deserves some investigation. FIXME
15797 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803 cygwin* | mingw* | pw32*)
15804 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15805 # as there is no search path for DLLs.
15806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807 allow_undefined_flag_GCJ=unsupported
15808 always_export_symbols_GCJ=no
15809 enable_shared_with_static_runtimes_GCJ=yes
15810 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15812 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15813 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15814 # If the export-symbols file already is a .def file (1st line
15815 # is EXPORTS), use it as is; otherwise, prepend...
15816 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15817 cp $export_symbols $output_objdir/$soname.def;
15819 echo EXPORTS > $output_objdir/$soname.def;
15820 cat $export_symbols >> $output_objdir/$soname.def;
15822 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15830 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15833 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15834 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15839 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15844 *** create shared libraries on Solaris systems. Therefore, libtool
15845 *** is disabling shared libraries support. We urge you to upgrade GNU
15846 *** binutils to release 2.9.1 or newer. Another option is to modify
15847 *** your PATH or compiler configuration so that the native linker is
15848 *** used, and then restart.
15851 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15860 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15862 hardcode_direct_GCJ=yes
15863 hardcode_shlibpath_var_GCJ=no
15867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15868 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869 archive_cmds_GCJ="$tmp_archive_cmds"
15870 supports_anon_versioning=no
15871 case `$LD -v 2>/dev/null` in
15872 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15873 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15874 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15875 *\ 2.11.*) ;; # other 2.11 versions
15876 *) supports_anon_versioning=yes ;;
15878 if test $supports_anon_versioning = yes; then
15879 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15881 $echo "local: *; };" >> $output_objdir/$libname.ver~
15882 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15884 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15894 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15901 if test "$ld_shlibs_GCJ" = yes; then
15902 runpath_var=LD_RUN_PATH
15903 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15904 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15905 # ancient GNU ld didn't support --whole-archive et. al.
15906 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15907 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15909 whole_archive_flag_spec_GCJ=
15913 # PORTME fill in a description of your system's linker (not GNU ld)
15916 allow_undefined_flag_GCJ=unsupported
15917 always_export_symbols_GCJ=yes
15918 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'
15919 # Note: this linker hardcodes the directories in LIBPATH if there
15920 # are no directories specified by -L.
15921 hardcode_minus_L_GCJ=yes
15922 if test "$GCC" = yes && test -z "$link_static_flag"; then
15923 # Neither direct hardcoding nor static linking is supported with a
15925 hardcode_direct_GCJ=unsupported
15930 if test "$host_cpu" = ia64; then
15931 # On IA64, the linker does run time linking by default, so we don't
15932 # have to do anything special.
15933 aix_use_runtimelinking=no
15934 exp_sym_flag='-Bexport'
15937 # If we're using GNU nm, then we don't want the "-C" option.
15938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15940 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'
15942 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'
15944 aix_use_runtimelinking=no
15946 # Test if we are trying to use run time linking or normal
15947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948 # need to do runtime linking.
15949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15950 for ld_flag in $LDFLAGS; do
15951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15952 aix_use_runtimelinking=yes
15958 exp_sym_flag='-bexport'
15959 no_entry_flag='-bnoentry'
15962 # When large executables or shared objects are built, AIX ld can
15963 # have problems creating the table of contents. If linking a library
15964 # or program results in "error TOC overflow" add -mminimal-toc to
15965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15968 archive_cmds_GCJ=''
15969 hardcode_direct_GCJ=yes
15970 hardcode_libdir_separator_GCJ=':'
15971 link_all_deplibs_GCJ=yes
15973 if test "$GCC" = yes; then
15974 case $host_os in aix4.012|aix4.012.*)
15975 # We only want to do this on AIX 4.2 and lower, the check
15976 # below for broken collect2 doesn't work under 4.3+
15977 collect2name=`${CC} -print-prog-name=collect2`
15978 if test -f "$collect2name" && \
15979 strings "$collect2name" | grep resolve_lib_name >/dev/null
15981 # We have reworked collect2
15982 hardcode_direct_GCJ=yes
15984 # We have old collect2
15985 hardcode_direct_GCJ=unsupported
15986 # It fails to find uninstalled libraries when the uninstalled
15987 # path is not listed in the libpath. Setting hardcode_minus_L
15988 # to unsupported forces relinking
15989 hardcode_minus_L_GCJ=yes
15990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15991 hardcode_libdir_separator_GCJ=
15994 shared_flag='-shared'
15997 if test "$host_cpu" = ia64; then
15998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15999 # chokes on -Wl,-G. The following line is correct:
16002 if test "$aix_use_runtimelinking" = yes; then
16003 shared_flag='${wl}-G'
16005 shared_flag='${wl}-bM:SRE'
16010 # It seems that -bexpall does not export symbols beginning with
16011 # underscore (_), so it is better to generate a list of symbols to export.
16012 always_export_symbols_GCJ=yes
16013 if test "$aix_use_runtimelinking" = yes; then
16014 # Warning - without using the other runtime loading flags (-brtl),
16015 # -berok will link without error, but may produce a broken library.
16016 allow_undefined_flag_GCJ='-berok'
16017 # Determine the default libpath from the value encoded in an empty executable.
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16033 rm -f conftest.$ac_objext conftest$ac_exeext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16035 (eval $ac_link) 2>conftest.er1
16037 grep -v '^ *+' conftest.er1 >conftest.err
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -z "$ac_c_werror_flag"
16043 || test ! -s conftest.err'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; } &&
16049 { ac_try='test -s conftest$ac_exeext'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16058 # Check for a 64-bit object if we didn't find anything.
16059 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; }
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16066 rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16070 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16071 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"
16073 if test "$host_cpu" = ia64; then
16074 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16075 allow_undefined_flag_GCJ="-z nodefs"
16076 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"
16078 # Determine the default libpath from the value encoded in an empty executable.
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096 (eval $ac_link) 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16119 # Check for a 64-bit object if we didn't find anything.
16120 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; }
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16127 rm -f conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16129 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16131 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16132 # Warning - without using the other run time loading flags,
16133 # -berok will link without error, but may produce a broken library.
16134 no_undefined_flag_GCJ=' ${wl}-bernotok'
16135 allow_undefined_flag_GCJ=' ${wl}-berok'
16136 # -bexpall does not export symbols beginning with underscore (_)
16137 always_export_symbols_GCJ=yes
16138 # Exported symbols can be pulled into shared objects from archives
16139 whole_archive_flag_spec_GCJ=' '
16140 archive_cmds_need_lc_GCJ=yes
16141 # This is similar to how AIX traditionally builds it's shared libraries.
16142 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'
16148 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)'
16149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150 hardcode_minus_L_GCJ=yes
16151 # see comment about different semantics on the GNU ld section
16156 export_dynamic_flag_spec_GCJ=-rdynamic
16159 cygwin* | mingw* | pw32*)
16160 # When not using gcc, we currently assume that we are using
16161 # Microsoft Visual C++.
16162 # hardcode_libdir_flag_spec is actually meaningless, as there is
16163 # no search path for DLLs.
16164 hardcode_libdir_flag_spec_GCJ=' '
16165 allow_undefined_flag_GCJ=unsupported
16166 # Tell ltmain to make .lib files, not .a files.
16168 # Tell ltmain to make .dll files, not .so files.
16170 # FIXME: Setting linknames here is a bad hack.
16171 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16172 # The linker will automatically build a .lib file if we build a DLL.
16173 old_archive_From_new_cmds_GCJ='true'
16174 # FIXME: Should let the user specify the lib program.
16175 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16176 fix_srcfile_path='`cygpath -w "$srcfile"`'
16177 enable_shared_with_static_runtimes_GCJ=yes
16180 darwin* | rhapsody*)
16182 rhapsody* | darwin1.[012])
16183 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16186 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16187 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16189 case ${MACOSX_DEPLOYMENT_TARGET} in
16191 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16194 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16200 archive_cmds_need_lc_GCJ=no
16201 hardcode_direct_GCJ=no
16202 hardcode_automatic_GCJ=yes
16203 hardcode_shlibpath_var_GCJ=unsupported
16204 whole_archive_flag_spec_GCJ=''
16205 link_all_deplibs_GCJ=yes
16206 if test "$GCC" = yes ; then
16207 output_verbose_link_cmd='echo'
16208 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16209 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16211 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}'
16212 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}'
16214 case "$cc_basename" in
16216 output_verbose_link_cmd='echo'
16217 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16218 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16220 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}'
16221 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}'
16231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16233 hardcode_shlibpath_var_GCJ=no
16240 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16241 # support. Future versions do this automatically, but an explicit c++rt0.o
16242 # does not break anything, and helps significantly (at the cost of a little
16245 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16246 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16247 hardcode_direct_GCJ=yes
16248 hardcode_shlibpath_var_GCJ=no
16251 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16253 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254 hardcode_direct_GCJ=yes
16255 hardcode_minus_L_GCJ=yes
16256 hardcode_shlibpath_var_GCJ=no
16259 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16260 freebsd* | kfreebsd*-gnu)
16261 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16262 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16263 hardcode_direct_GCJ=yes
16264 hardcode_shlibpath_var_GCJ=no
16268 if test "$GCC" = yes; then
16269 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'
16271 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'
16273 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16274 hardcode_libdir_separator_GCJ=:
16275 hardcode_direct_GCJ=yes
16277 # hardcode_minus_L: Not really in the search PATH,
16278 # but as the default location of the library.
16279 hardcode_minus_L_GCJ=yes
16280 export_dynamic_flag_spec_GCJ='${wl}-E'
16284 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16285 case "$host_cpu" in
16287 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16294 case "$host_cpu" in
16296 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16299 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16303 if test "$with_gnu_ld" = no; then
16304 case "$host_cpu" in
16306 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16307 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16308 hardcode_libdir_separator_GCJ=:
16309 hardcode_direct_GCJ=no
16310 hardcode_shlibpath_var_GCJ=no
16313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16314 hardcode_direct_GCJ=no
16315 hardcode_shlibpath_var_GCJ=no
16317 # hardcode_minus_L: Not really in the search PATH,
16318 # but as the default location of the library.
16319 hardcode_minus_L_GCJ=yes
16322 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16323 hardcode_libdir_separator_GCJ=:
16324 hardcode_direct_GCJ=yes
16325 export_dynamic_flag_spec_GCJ='${wl}-E'
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
16335 irix5* | irix6* | nonstopux*)
16336 if test "$GCC" = yes; then
16337 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'
16339 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'
16340 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16343 hardcode_libdir_separator_GCJ=:
16344 link_all_deplibs_GCJ=yes
16348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16351 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16353 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16354 hardcode_direct_GCJ=yes
16355 hardcode_shlibpath_var_GCJ=no
16359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360 hardcode_direct_GCJ=yes
16361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16362 hardcode_libdir_separator_GCJ=:
16363 hardcode_shlibpath_var_GCJ=no
16367 hardcode_direct_GCJ=yes
16368 hardcode_shlibpath_var_GCJ=no
16369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16370 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16371 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16373 export_dynamic_flag_spec_GCJ='${wl}-E'
16376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16381 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390 hardcode_minus_L_GCJ=yes
16391 allow_undefined_flag_GCJ=unsupported
16392 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'
16393 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16397 if test "$GCC" = yes; then
16398 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16399 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'
16401 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16402 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'
16404 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16405 hardcode_libdir_separator_GCJ=:
16408 osf4* | osf5*) # as osf3* with the addition of -msym flag
16409 if test "$GCC" = yes; then
16410 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16411 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'
16412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16414 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16415 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'
16416 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~
16417 $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'
16419 # Both c and cxx compiler support -rpath directly
16420 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16422 hardcode_libdir_separator_GCJ=:
16426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_shlibpath_var_GCJ=no
16428 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16429 runpath_var=LD_RUN_PATH
16430 hardcode_runpath_var=yes
16434 no_undefined_flag_GCJ=' -z text'
16435 if test "$GCC" = yes; then
16436 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16437 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16440 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16442 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16444 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16445 hardcode_shlibpath_var_GCJ=no
16447 solaris2.[0-5] | solaris2.[0-5].*) ;;
16448 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16449 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16451 link_all_deplibs_GCJ=yes
16455 if test "x$host_vendor" = xsequent; then
16456 # Use $CC to link under sequent, because it throws in some extra .o
16457 # files that make .init and .fini sections work.
16458 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16460 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16463 hardcode_direct_GCJ=yes
16464 hardcode_minus_L_GCJ=yes
16465 hardcode_shlibpath_var_GCJ=no
16469 case $host_vendor in
16471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_direct_GCJ=yes # is this really true???
16475 ## LD is ld it makes a PLAMLIB
16476 ## CC just makes a GrossModule.
16477 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16478 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16479 hardcode_direct_GCJ=no
16482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16483 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16486 runpath_var='LD_RUN_PATH'
16487 hardcode_shlibpath_var_GCJ=no
16491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492 hardcode_shlibpath_var_GCJ=no
16493 export_dynamic_flag_spec_GCJ='-Bexport'
16497 if test -d /usr/nec; then
16498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_shlibpath_var_GCJ=no
16500 runpath_var=LD_RUN_PATH
16501 hardcode_runpath_var=yes
16507 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct_GCJ=yes
16509 hardcode_minus_L_GCJ=no
16510 hardcode_shlibpath_var_GCJ=no
16511 hardcode_runpath_var=yes
16512 runpath_var=LD_RUN_PATH
16515 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16516 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16517 if test "$GCC" = yes; then
16518 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16520 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 runpath_var='LD_RUN_PATH'
16523 hardcode_shlibpath_var_GCJ=no
16527 no_undefined_flag_GCJ=' -z text'
16528 # $CC -shared without GNU ld will not create a library from C++
16529 # object files and a static libstdc++, better avoid it by now
16530 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16531 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16533 hardcode_libdir_flag_spec_GCJ=
16534 hardcode_shlibpath_var_GCJ=no
16535 runpath_var='LD_RUN_PATH'
16539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16541 hardcode_shlibpath_var_GCJ=no
16550 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16551 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16552 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555 if test "$GCC" = yes; then
16556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16560 # Do we need to explicitly link libc?
16562 case "x$archive_cmds_need_lc_GCJ" in
16564 # Assume -lc should be added
16565 archive_cmds_need_lc_GCJ=yes
16567 if test "$enable_shared" = yes && test "$GCC" = yes; then
16568 case $archive_cmds_GCJ in
16570 # FIXME: we may have to deal with multi-command sequences.
16573 # Test whether the compiler implicitly links with -lc since on some
16574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16575 # to ld, don't add -lc before -lgcc.
16576 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582 (eval $ac_compile) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } 2>conftest.err; then
16588 libobjs=conftest.$ac_objext
16590 wl=$lt_prog_compiler_wl_GCJ
16596 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16597 allow_undefined_flag_GCJ=
16598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16599 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }
16604 archive_cmds_need_lc_GCJ=no
16606 archive_cmds_need_lc_GCJ=yes
16608 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16610 cat conftest.err 1>&5
16613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16614 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16621 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16622 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16623 library_names_spec=
16624 libname_spec='lib$name'
16628 postuninstall_cmds=
16632 shlibpath_overrides_runpath=unknown
16634 dynamic_linker="$host_os ld.so"
16635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16636 if test "$GCC" = yes; then
16637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16638 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16639 # if the path contains ";" then we assume it to be the separator
16640 # otherwise default to the standard path separator (i.e. ":") - it is
16641 # assumed that no part of a normal pathname contains ";" but that should
16642 # okay in the real world where ";" in dirpaths is itself problematic.
16643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16648 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16650 need_lib_prefix=unknown
16651 hardcode_into_libs=no
16653 # when you set need_version to no, make sure it does not cause -set_version
16654 # flags to be left without arguments
16655 need_version=unknown
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16661 shlibpath_var=LIBPATH
16663 # AIX 3 has no versioning support, so we append a major version to the name.
16664 soname_spec='${libname}${release}${shared_ext}$major'
16671 hardcode_into_libs=yes
16672 if test "$host_cpu" = ia64; then
16673 # AIX 5 supports IA64
16674 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16675 shlibpath_var=LD_LIBRARY_PATH
16677 # With GCC up to 2.95.x, collect2 would create an import file
16678 # for dependence libraries. The import file would start with
16679 # the line `#! .'. This would cause the generated library to
16680 # depend on `.', always an invalid library. This was fixed in
16681 # development snapshots of GCC prior to 3.0.
16683 aix4 | aix4.[01] | aix4.[01].*)
16684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16686 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16689 can_build_shared=no
16693 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16694 # soname into executable. Probably we can add versioning support to
16695 # collect2, so additional links can be useful in future.
16696 if test "$aix_use_runtimelinking" = yes; then
16697 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16698 # instead of lib<name>.a to let people know that these are not
16699 # typical AIX shared libraries.
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16702 # We preserve .a as extension for shared libraries through AIX4.2
16703 # and later when we are not doing run time linking.
16704 library_names_spec='${libname}${release}.a $libname.a'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16707 shlibpath_var=LIBPATH
16712 library_names_spec='$libname.ixlibrary $libname.a'
16713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16714 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16718 library_names_spec='${libname}${shared_ext}'
16719 dynamic_linker="$host_os ld.so"
16720 shlibpath_var=LIBRARY_PATH
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16732 # the default ld.so.conf also contains /usr/contrib/lib and
16733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16734 # libtool to hard-code these into programs
16737 cygwin* | mingw* | pw32*)
16738 version_type=windows
16743 case $GCC,$host_os in
16744 yes,cygwin* | yes,mingw* | yes,pw32*)
16745 library_names_spec='$libname.dll.a'
16746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16747 postinstall_cmds='base_file=`basename \${file}`~
16748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16749 dldir=$destdir/`dirname \$dlpath`~
16750 test -d \$dldir || mkdir -p \$dldir~
16751 $install_prog $dir/$dlname \$dldir/$dlname'
16752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16753 dlpath=$dir/\$dldll~
16755 shlibpath_overrides_runpath=yes
16759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16764 # MinGW DLLs use traditional 'lib' prefix
16765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16768 # It is most probably a Windows format PATH printed by
16769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16770 # path with ; separators, and with drive letters. We can handle the
16771 # drive letters (cygwin fileutils understands them), so leave them,
16772 # especially as we might pass files found there to a mingw objdump,
16773 # which wouldn't understand a cygwinified path. Ahh.
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16780 # pw32 DLLs use 'pw' prefix rather than 'lib'
16781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16790 dynamic_linker='Win32 ld.exe'
16791 # FIXME: first we should search . and the directory the executable is in
16795 darwin* | rhapsody*)
16796 dynamic_linker="$host_os dyld"
16797 version_type=darwin
16800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16801 soname_spec='${libname}${release}${major}$shared_ext'
16802 shlibpath_overrides_runpath=yes
16803 shlibpath_var=DYLD_LIBRARY_PATH
16804 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16805 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16806 if test "$GCC" = yes; then
16807 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16809 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 shlibpath_var=LD_LIBRARY_PATH
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=no
16835 hardcode_into_libs=yes
16836 dynamic_linker='GNU ld.so'
16840 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16841 version_type=freebsd-$objformat
16842 case $version_type in
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16853 shlibpath_var=LD_LIBRARY_PATH
16856 shlibpath_overrides_runpath=yes
16858 freebsd3.01* | freebsdelf3.01*)
16859 shlibpath_overrides_runpath=yes
16860 hardcode_into_libs=yes
16863 shlibpath_overrides_runpath=no
16864 hardcode_into_libs=yes
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 hardcode_into_libs=yes
16879 hpux9* | hpux10* | hpux11*)
16880 # Give a soname corresponding to the major version so that dld.sl refuses to
16881 # link against other versions.
16885 case "$host_cpu" in
16888 hardcode_into_libs=yes
16889 dynamic_linker="$host_os dld.so"
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 if test "X$HPUX_IA64_MODE" = X32; then
16895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16903 hardcode_into_libs=yes
16904 dynamic_linker="$host_os dld.sl"
16905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=SHLIB_PATH
16916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16922 postinstall_cmds='chmod 555 $lib'
16925 irix5* | irix6* | nonstopux*)
16927 nonstopux*) version_type=nonstopux ;;
16929 if test "$lt_cv_prog_gnu_ld" = yes; then
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16940 irix5* | nonstopux*)
16941 libsuff= shlibsuff=
16944 case $LD in # libtool.m4 will add one of these switches to LD
16945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16946 libsuff= shlibsuff= libmagic=32-bit;;
16947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16948 libsuff=32 shlibsuff=N32 libmagic=N32;;
16949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16951 *) libsuff= shlibsuff= libmagic=never-match;;
16955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16956 shlibpath_overrides_runpath=no
16957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16959 hardcode_into_libs=yes
16962 # No shared lib support for Linux oldld, aout, or coff.
16963 linux*oldld* | linux*aout* | linux*coff*)
16967 # This must be Linux ELF.
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 # This implies no fast_install, which is unacceptable.
16978 # Some rework will be needed to allow for fast_install
16979 # before this can be enabled.
16980 hardcode_into_libs=yes
16982 # Append ld.so.conf contents to the search path
16983 if test -f /etc/ld.so.conf; then
16984 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16988 # We used to test for /lib/ld.so.1 and disable shared libraries on
16989 # powerpc, because MkLinux only supported shared libraries with the
16990 # GNU dynamic linker. Since this was broken with cross compilers,
16991 # most powerpc-linux boxes support dynamic linking these days and
16992 # people can always --disable-shared, the test was removed, and we
16993 # assume the GNU/Linux dynamic linker is in use.
16994 dynamic_linker='GNU/Linux ld.so'
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 dynamic_linker='GNU ld.so'
17013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016 dynamic_linker='NetBSD (a.out) ld.so'
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 dynamic_linker='NetBSD ld.elf_so'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 hardcode_into_libs=yes
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17053 openbsd2.[89] | openbsd2.[89].*)
17054 shlibpath_overrides_runpath=no
17057 shlibpath_overrides_runpath=yes
17061 shlibpath_overrides_runpath=yes
17066 libname_spec='$name'
17069 library_names_spec='$libname${shared_ext} $libname.a'
17070 dynamic_linker='OS/2 ld.exe'
17071 shlibpath_var=LIBPATH
17074 osf3* | osf4* | osf5*)
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 shlibpath_var=LD_LIBRARY_PATH
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17101 # ldd complains unless libraries are executable
17102 postinstall_cmds='chmod +x $lib'
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17111 if test "$with_gnu_ld" = yes; then
17117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 case $host_vendor in
17124 shlibpath_overrides_runpath=no
17126 export_dynamic_flag_spec='${wl}-Blargedynsym'
17127 runpath_var=LD_RUN_PATH
17135 shlibpath_overrides_runpath=no
17136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17142 if test -d /usr/nec ;then
17144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145 soname_spec='$libname${shared_ext}.$major'
17146 shlibpath_var=LD_LIBRARY_PATH
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17161 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162 echo "${ECHO_T}$dynamic_linker" >&6
17163 test "$dynamic_linker" = no && can_build_shared=no
17165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167 hardcode_action_GCJ=
17168 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17169 test -n "$runpath_var_GCJ" || \
17170 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17172 # We can hardcode non-existant directories.
17173 if test "$hardcode_direct_GCJ" != no &&
17174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17175 # have to relink, otherwise we might link with an installed library
17176 # when we should be linking with a yet-to-be-installed one
17177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17178 test "$hardcode_minus_L_GCJ" != no; then
17179 # Linking always hardcodes the temporary library directory.
17180 hardcode_action_GCJ=relink
17182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17183 hardcode_action_GCJ=immediate
17186 # We cannot hardcode anything, or else we can only hardcode existing
17188 hardcode_action_GCJ=unsupported
17190 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17191 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17193 if test "$hardcode_action_GCJ" = relink; then
17194 # Fast installation is not supported
17195 enable_fast_install=no
17196 elif test "$shlibpath_overrides_runpath" = yes ||
17197 test "$enable_shared" = no; then
17198 # Fast installation is not necessary
17199 enable_fast_install=needless
17204 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209 echo "$as_me:$LINENO: result: yes" >&5
17210 echo "${ECHO_T}yes" >&6
17212 # FIXME - insert some real tests, host_os isn't really good enough
17215 if test -n "$STRIP" ; then
17216 striplib="$STRIP -x"
17217 echo "$as_me:$LINENO: result: yes" >&5
17218 echo "${ECHO_T}yes" >&6
17220 echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6
17225 echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6
17231 if test "x$enable_dlopen" != xyes; then
17232 enable_dlopen=unknown
17233 enable_dlopen_self=unknown
17234 enable_dlopen_self_static=unknown
17241 lt_cv_dlopen="load_add_on"
17243 lt_cv_dlopen_self=yes
17247 lt_cv_dlopen="LoadLibrary"
17252 lt_cv_dlopen="dlopen"
17257 # if libdl is installed we need to link against it
17258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 ac_check_lib_save_LIBS=$LIBS
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17272 /* Override any gcc2 internal prototype to avoid an error. */
17276 /* We use char because int might match the return type of a gcc2
17277 builtin and then its argument prototype would still apply. */
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>conftest.er1
17291 grep -v '^ *+' conftest.er1 >conftest.err
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_lib_dl_dlopen=yes
17311 echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17314 ac_cv_lib_dl_dlopen=no
17316 rm -f conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322 if test $ac_cv_lib_dl_dlopen = yes; then
17323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17326 lt_cv_dlopen="dyld"
17328 lt_cv_dlopen_self=yes
17335 echo "$as_me:$LINENO: checking for shl_load" >&5
17336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337 if test "${ac_cv_func_shl_load+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define shl_load innocuous_shl_load
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char shl_load (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17356 # include <limits.h>
17358 # include <assert.h>
17363 /* Override any gcc2 internal prototype to avoid an error. */
17368 /* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17377 char (*f) () = shl_load;
17386 return f != shl_load;
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_func_shl_load=yes
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_cv_func_shl_load=no
17420 rm -f conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
17423 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425 if test $ac_cv_func_shl_load = yes; then
17426 lt_cv_dlopen="shl_load"
17428 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 ac_check_lib_save_LIBS=$LIBS
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17442 /* Override any gcc2 internal prototype to avoid an error. */
17446 /* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459 (eval $ac_link) 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest$ac_exeext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_dld_shl_load=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_lib_dld_shl_load=no
17486 rm -f conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17490 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492 if test $ac_cv_lib_dld_shl_load = yes; then
17493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17495 echo "$as_me:$LINENO: checking for dlopen" >&5
17496 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497 if test "${ac_cv_func_dlopen+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508 #define dlopen innocuous_dlopen
17510 /* System header to define __stub macros and hopefully few prototypes,
17511 which can conflict with char dlopen (); below.
17512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 <limits.h> exists even on freestanding compilers. */
17516 # include <limits.h>
17518 # include <assert.h>
17523 /* Override any gcc2 internal prototype to avoid an error. */
17528 /* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17531 /* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17537 char (*f) () = dlopen;
17546 return f != dlopen;
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553 (eval $ac_link) 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag"
17561 || test ! -s conftest.err'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
17568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17573 ac_cv_func_dlopen=yes
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 ac_cv_func_dlopen=no
17580 rm -f conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
17583 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585 if test $ac_cv_func_dlopen = yes; then
17586 lt_cv_dlopen="dlopen"
17588 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 ac_check_lib_save_LIBS=$LIBS
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17602 /* Override any gcc2 internal prototype to avoid an error. */
17606 /* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_dl_dlopen=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_lib_dl_dlopen=no
17646 rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652 if test $ac_cv_lib_dl_dlopen = yes; then
17653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17655 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_check_lib_save_LIBS=$LIBS
17661 LIBS="-lsvld $LIBS"
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17669 /* Override any gcc2 internal prototype to avoid an error. */
17673 /* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686 (eval $ac_link) 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest$ac_exeext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_lib_svld_dlopen=yes
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 ac_cv_lib_svld_dlopen=no
17713 rm -f conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17717 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719 if test $ac_cv_lib_svld_dlopen = yes; then
17720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17722 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 ac_check_lib_save_LIBS=$LIBS
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17736 /* Override any gcc2 internal prototype to avoid an error. */
17740 /* We use char because int might match the return type of a gcc2
17741 builtin and then its argument prototype would still apply. */
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
17755 grep -v '^ *+' conftest.er1 >conftest.err
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_lib_dld_dld_link=yes
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_cv_lib_dld_dld_link=no
17780 rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786 if test $ac_cv_lib_dld_dld_link = yes; then
17787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17808 if test "x$lt_cv_dlopen" != xno; then
17814 case $lt_cv_dlopen in
17816 save_CPPFLAGS="$CPPFLAGS"
17817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17819 save_LDFLAGS="$LDFLAGS"
17820 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17823 LIBS="$lt_cv_dlopen_libs $LIBS"
17825 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827 if test "${lt_cv_dlopen_self+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 if test "$cross_compiling" = yes; then :
17831 lt_cv_dlopen_self=cross
17833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834 lt_status=$lt_dlunknown
17835 cat > conftest.$ac_ext <<EOF
17836 #line 17836 "configure"
17837 #include "confdefs.h"
17846 # define LT_DLGLOBAL RTLD_GLOBAL
17849 # define LT_DLGLOBAL DL_GLOBAL
17851 # define LT_DLGLOBAL 0
17855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856 find out it does not work in some platform. */
17857 #ifndef LT_DLLAZY_OR_NOW
17859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17862 # define LT_DLLAZY_OR_NOW DL_LAZY
17865 # define LT_DLLAZY_OR_NOW RTLD_NOW
17868 # define LT_DLLAZY_OR_NOW DL_NOW
17870 # define LT_DLLAZY_OR_NOW 0
17878 extern "C" void exit (int);
17881 void fnord() { int i=42;}
17884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885 int status = $lt_dlunknown;
17889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891 /* dlclose (self); */
17897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898 (eval $ac_link) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902 (./conftest; exit; ) 2>/dev/null
17904 case x$lt_status in
17905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17910 # compilation failed
17911 lt_cv_dlopen_self=no
17918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17921 if test "x$lt_cv_dlopen_self" = xyes; then
17922 LDFLAGS="$LDFLAGS $link_static_flag"
17923 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925 if test "${lt_cv_dlopen_self_static+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self_static=cross
17931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932 lt_status=$lt_dlunknown
17933 cat > conftest.$ac_ext <<EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17944 # define LT_DLGLOBAL RTLD_GLOBAL
17947 # define LT_DLGLOBAL DL_GLOBAL
17949 # define LT_DLGLOBAL 0
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17960 # define LT_DLLAZY_OR_NOW DL_LAZY
17963 # define LT_DLLAZY_OR_NOW RTLD_NOW
17966 # define LT_DLLAZY_OR_NOW DL_NOW
17968 # define LT_DLLAZY_OR_NOW 0
17976 extern "C" void exit (int);
17979 void fnord() { int i=42;}
17982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983 int status = $lt_dlunknown;
17987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 /* dlclose (self); */
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) 2>/dev/null
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18008 # compilation failed
18009 lt_cv_dlopen_self_static=no
18016 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18020 CPPFLAGS="$save_CPPFLAGS"
18021 LDFLAGS="$save_LDFLAGS"
18026 case $lt_cv_dlopen_self in
18027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028 *) enable_dlopen_self=unknown ;;
18031 case $lt_cv_dlopen_self_static in
18032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033 *) enable_dlopen_self_static=unknown ;;
18038 # The else clause should only fire when bootstrapping the
18039 # libtool distribution, otherwise you forgot to ship ltmain.sh
18040 # with your package, and you will get complaints that there are
18041 # no rules to generate ltmain.sh.
18042 if test -f "$ltmain"; then
18043 # See if we are running on zsh, and set the options which allow our commands through
18044 # without removal of \ escapes.
18045 if test -n "${ZSH_VERSION+set}" ; then
18046 setopt NO_GLOB_SUBST
18048 # Now quote all the things that may contain metacharacters while being
18049 # careful not to overquote the AC_SUBSTed values. We take copies of the
18050 # variables and quote the copies for generation of the libtool script.
18051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055 deplibs_check_method reload_flag reload_cmds need_locks \
18056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057 lt_cv_sys_global_symbol_to_c_name_address \
18058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059 old_postinstall_cmds old_postuninstall_cmds \
18063 lt_prog_compiler_wl_GCJ \
18064 lt_prog_compiler_pic_GCJ \
18065 lt_prog_compiler_static_GCJ \
18066 lt_prog_compiler_no_builtin_flag_GCJ \
18067 export_dynamic_flag_spec_GCJ \
18068 thread_safe_flag_spec_GCJ \
18069 whole_archive_flag_spec_GCJ \
18070 enable_shared_with_static_runtimes_GCJ \
18071 old_archive_cmds_GCJ \
18072 old_archive_from_new_cmds_GCJ \
18073 predep_objects_GCJ \
18074 postdep_objects_GCJ \
18077 compiler_lib_search_path_GCJ \
18079 archive_expsym_cmds_GCJ \
18080 postinstall_cmds_GCJ \
18081 postuninstall_cmds_GCJ \
18082 old_archive_from_expsyms_cmds_GCJ \
18083 allow_undefined_flag_GCJ \
18084 no_undefined_flag_GCJ \
18085 export_symbols_cmds_GCJ \
18086 hardcode_libdir_flag_spec_GCJ \
18087 hardcode_libdir_flag_spec_ld_GCJ \
18088 hardcode_libdir_separator_GCJ \
18089 hardcode_automatic_GCJ \
18091 module_expsym_cmds_GCJ \
18092 lt_cv_prog_compiler_c_o_GCJ \
18093 exclude_expsyms_GCJ \
18094 include_expsyms_GCJ; do
18097 old_archive_cmds_GCJ | \
18098 old_archive_from_new_cmds_GCJ | \
18099 archive_cmds_GCJ | \
18100 archive_expsym_cmds_GCJ | \
18101 module_cmds_GCJ | \
18102 module_expsym_cmds_GCJ | \
18103 old_archive_from_expsyms_cmds_GCJ | \
18104 export_symbols_cmds_GCJ | \
18105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106 postinstall_cmds | postuninstall_cmds | \
18107 old_postinstall_cmds | old_postuninstall_cmds | \
18108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109 # Double-quote double-evaled strings.
18110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18119 *'\$0 --fallback-echo"')
18120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18126 cat <<__EOF__ >> "$cfgfile"
18127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18131 # Shell to use when invoking shell scripts.
18134 # Whether or not to build shared libraries.
18135 build_libtool_libs=$enable_shared
18137 # Whether or not to build static libraries.
18138 build_old_libs=$enable_static
18140 # Whether or not to add -lc for building shared libraries.
18141 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18143 # Whether or not to disallow shared libs when runtime libs are static
18144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18146 # Whether or not to optimize for fast installation.
18147 fast_install=$enable_fast_install
18150 host_alias=$host_alias
18153 # An echo program that does not interpret backslashes.
18158 AR_FLAGS=$lt_AR_FLAGS
18163 # A language-specific compiler.
18164 CC=$lt_compiler_GCJ
18166 # Is the compiler the GNU C compiler?
18172 # The linker used to build libraries.
18175 # Whether we need hard or soft links.
18178 # A BSD-compatible nm program.
18181 # A symbol stripping program
18184 # Used to examine libraries when file_magic_cmd begins "file"
18185 MAGIC_CMD=$MAGIC_CMD
18187 # Used on cygwin: DLL creation program.
18190 # Used on cygwin: object dumper.
18193 # Used on cygwin: assembler.
18196 # The name of the directory that contains temporary libtool files.
18199 # How to create reloadable object files.
18200 reload_flag=$lt_reload_flag
18201 reload_cmds=$lt_reload_cmds
18203 # How to pass a linker flag through the compiler.
18204 wl=$lt_lt_prog_compiler_wl_GCJ
18206 # Object file suffix (normally "o").
18207 objext="$ac_objext"
18209 # Old archive suffix (normally "a").
18212 # Shared library suffix (normally ".so").
18213 shrext_cmds='$shrext_cmds'
18215 # Executable file suffix (normally "").
18218 # Additional compiler flags for building library objects.
18219 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18222 # What is the maximum length of a command?
18223 max_cmd_len=$lt_cv_sys_max_cmd_len
18225 # Does compiler simultaneously support -c and -o options?
18226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18228 # Must we lock files when doing compilation ?
18229 need_locks=$lt_need_locks
18231 # Do we need the lib prefix for modules?
18232 need_lib_prefix=$need_lib_prefix
18234 # Do we need a version for libraries?
18235 need_version=$need_version
18237 # Whether dlopen is supported.
18238 dlopen_support=$enable_dlopen
18240 # Whether dlopen of programs is supported.
18241 dlopen_self=$enable_dlopen_self
18243 # Whether dlopen of statically linked programs is supported.
18244 dlopen_self_static=$enable_dlopen_self_static
18246 # Compiler flag to prevent dynamic linking.
18247 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18249 # Compiler flag to turn off builtin functions.
18250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18252 # Compiler flag to allow reflexive dlopens.
18253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18255 # Compiler flag to generate shared objects directly from archives.
18256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18258 # Compiler flag to generate thread-safe objects.
18259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18261 # Library versioning type.
18262 version_type=$version_type
18264 # Format of library name prefix.
18265 libname_spec=$lt_libname_spec
18267 # List of archive names. First name is the real one, the rest are links.
18268 # The last name is the one that the linker finds with -lNAME.
18269 library_names_spec=$lt_library_names_spec
18271 # The coded name of the library, if different from the real name.
18272 soname_spec=$lt_soname_spec
18274 # Commands used to build and install an old-style archive.
18276 old_archive_cmds=$lt_old_archive_cmds_GCJ
18277 old_postinstall_cmds=$lt_old_postinstall_cmds
18278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18280 # Create an old-style archive from a shared archive.
18281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18283 # Create a temporary old-style archive to link instead of a shared archive.
18284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18286 # Commands used to build and install a shared archive.
18287 archive_cmds=$lt_archive_cmds_GCJ
18288 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18289 postinstall_cmds=$lt_postinstall_cmds
18290 postuninstall_cmds=$lt_postuninstall_cmds
18292 # Commands used to build a loadable module (assumed same as above if empty)
18293 module_cmds=$lt_module_cmds_GCJ
18294 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18296 # Commands to strip libraries.
18297 old_striplib=$lt_old_striplib
18298 striplib=$lt_striplib
18300 # Dependencies to place before the objects being linked to create a
18302 predep_objects=$lt_predep_objects_GCJ
18304 # Dependencies to place after the objects being linked to create a
18306 postdep_objects=$lt_postdep_objects_GCJ
18308 # Dependencies to place before the objects being linked to create a
18310 predeps=$lt_predeps_GCJ
18312 # Dependencies to place after the objects being linked to create a
18314 postdeps=$lt_postdeps_GCJ
18316 # The library search path used internally by the compiler when linking
18317 # a shared library.
18318 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18320 # Method to check whether dependent libraries are shared objects.
18321 deplibs_check_method=$lt_deplibs_check_method
18323 # Command to use when deplibs_check_method == file_magic.
18324 file_magic_cmd=$lt_file_magic_cmd
18326 # Flag that allows shared libraries with undefined symbols to be built.
18327 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18329 # Flag that forces no undefined symbols.
18330 no_undefined_flag=$lt_no_undefined_flag_GCJ
18332 # Commands used to finish a libtool library installation in a directory.
18333 finish_cmds=$lt_finish_cmds
18335 # Same as above, but a single script fragment to be evaled but not shown.
18336 finish_eval=$lt_finish_eval
18338 # Take the output of nm and produce a listing of raw symbols and C names.
18339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18341 # Transform the output of nm in a proper C declaration
18342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18344 # Transform the output of nm in a C name address pair
18345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18347 # This is the shared library runtime path variable.
18348 runpath_var=$runpath_var
18350 # This is the shared library path variable.
18351 shlibpath_var=$shlibpath_var
18353 # Is shlibpath searched before the hard-coded library search path?
18354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18356 # How to hardcode a shared library path into an executable.
18357 hardcode_action=$hardcode_action_GCJ
18359 # Whether we should hardcode library paths into libraries.
18360 hardcode_into_libs=$hardcode_into_libs
18362 # Flag to hardcode \$libdir into a binary during linking.
18363 # This must work even if \$libdir does not exist.
18364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18366 # If ld is used when linking, flag to hardcode \$libdir into
18367 # a binary during linking. This must work even if \$libdir does
18369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18371 # Whether we need a single -rpath flag with a separated argument.
18372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18375 # resulting binary.
18376 hardcode_direct=$hardcode_direct_GCJ
18378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18379 # resulting binary.
18380 hardcode_minus_L=$hardcode_minus_L_GCJ
18382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18383 # the resulting binary.
18384 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18386 # Set to yes if building a shared library automatically hardcodes DIR into the library
18387 # and all subsequent libraries and executables linked against it.
18388 hardcode_automatic=$hardcode_automatic_GCJ
18390 # Variables whose values should be saved in libtool wrapper scripts and
18391 # restored at relink time.
18392 variables_saved_for_relink="$variables_saved_for_relink"
18394 # Whether libtool must link a program against all its dependency libraries.
18395 link_all_deplibs=$link_all_deplibs_GCJ
18397 # Compile-time system search path for libraries
18398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18400 # Run-time system search path for libraries
18401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18403 # Fix the shell variable \$srcfile for the compiler.
18404 fix_srcfile_path="$fix_srcfile_path_GCJ"
18406 # Set to yes if exported symbols are required.
18407 always_export_symbols=$always_export_symbols_GCJ
18409 # The commands to list exported symbols.
18410 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18412 # The commands to extract the exported symbol list from a shared archive.
18413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18415 # Symbols that should not be listed in the preloaded symbols.
18416 exclude_expsyms=$lt_exclude_expsyms_GCJ
18418 # Symbols that must always be exported.
18419 include_expsyms=$lt_include_expsyms_GCJ
18421 # ### END LIBTOOL TAG CONFIG: $tagname
18427 # If there is no Makefile yet, we rely on a make rule to execute
18428 # `config.status --recheck' to rerun these tests and create the
18429 # libtool script then.
18430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18431 if test -f "$ltmain_in"; then
18432 test -f Makefile && make "$ltmain"
18438 ac_cpp='$CPP $CPPFLAGS'
18439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452 ac_cpp='$CPP $CPPFLAGS'
18453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18458 # Source file extension for RC test sources.
18461 # Object file extension for compiled RC test sources.
18465 # Code to be used in simple compile tests
18466 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18468 # Code to be used in simple link tests
18469 lt_simple_link_test_code="$lt_simple_compile_test_code"
18471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18473 # If no C compiler was specified, use CC.
18476 # Allow CC to be a program name with arguments.
18480 # Allow CC to be a program name with arguments.
18485 lt_cv_prog_compiler_c_o_RC=yes
18487 # The else clause should only fire when bootstrapping the
18488 # libtool distribution, otherwise you forgot to ship ltmain.sh
18489 # with your package, and you will get complaints that there are
18490 # no rules to generate ltmain.sh.
18491 if test -f "$ltmain"; then
18492 # See if we are running on zsh, and set the options which allow our commands through
18493 # without removal of \ escapes.
18494 if test -n "${ZSH_VERSION+set}" ; then
18495 setopt NO_GLOB_SUBST
18497 # Now quote all the things that may contain metacharacters while being
18498 # careful not to overquote the AC_SUBSTed values. We take copies of the
18499 # variables and quote the copies for generation of the libtool script.
18500 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18504 deplibs_check_method reload_flag reload_cmds need_locks \
18505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18506 lt_cv_sys_global_symbol_to_c_name_address \
18507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18508 old_postinstall_cmds old_postuninstall_cmds \
18512 lt_prog_compiler_wl_RC \
18513 lt_prog_compiler_pic_RC \
18514 lt_prog_compiler_static_RC \
18515 lt_prog_compiler_no_builtin_flag_RC \
18516 export_dynamic_flag_spec_RC \
18517 thread_safe_flag_spec_RC \
18518 whole_archive_flag_spec_RC \
18519 enable_shared_with_static_runtimes_RC \
18520 old_archive_cmds_RC \
18521 old_archive_from_new_cmds_RC \
18522 predep_objects_RC \
18523 postdep_objects_RC \
18526 compiler_lib_search_path_RC \
18528 archive_expsym_cmds_RC \
18529 postinstall_cmds_RC \
18530 postuninstall_cmds_RC \
18531 old_archive_from_expsyms_cmds_RC \
18532 allow_undefined_flag_RC \
18533 no_undefined_flag_RC \
18534 export_symbols_cmds_RC \
18535 hardcode_libdir_flag_spec_RC \
18536 hardcode_libdir_flag_spec_ld_RC \
18537 hardcode_libdir_separator_RC \
18538 hardcode_automatic_RC \
18540 module_expsym_cmds_RC \
18541 lt_cv_prog_compiler_c_o_RC \
18542 exclude_expsyms_RC \
18543 include_expsyms_RC; do
18546 old_archive_cmds_RC | \
18547 old_archive_from_new_cmds_RC | \
18548 archive_cmds_RC | \
18549 archive_expsym_cmds_RC | \
18551 module_expsym_cmds_RC | \
18552 old_archive_from_expsyms_cmds_RC | \
18553 export_symbols_cmds_RC | \
18554 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18555 postinstall_cmds | postuninstall_cmds | \
18556 old_postinstall_cmds | old_postuninstall_cmds | \
18557 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18558 # Double-quote double-evaled strings.
18559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18568 *'\$0 --fallback-echo"')
18569 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18575 cat <<__EOF__ >> "$cfgfile"
18576 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18580 # Shell to use when invoking shell scripts.
18583 # Whether or not to build shared libraries.
18584 build_libtool_libs=$enable_shared
18586 # Whether or not to build static libraries.
18587 build_old_libs=$enable_static
18589 # Whether or not to add -lc for building shared libraries.
18590 build_libtool_need_lc=$archive_cmds_need_lc_RC
18592 # Whether or not to disallow shared libs when runtime libs are static
18593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18595 # Whether or not to optimize for fast installation.
18596 fast_install=$enable_fast_install
18599 host_alias=$host_alias
18602 # An echo program that does not interpret backslashes.
18607 AR_FLAGS=$lt_AR_FLAGS
18612 # A language-specific compiler.
18615 # Is the compiler the GNU C compiler?
18621 # The linker used to build libraries.
18624 # Whether we need hard or soft links.
18627 # A BSD-compatible nm program.
18630 # A symbol stripping program
18633 # Used to examine libraries when file_magic_cmd begins "file"
18634 MAGIC_CMD=$MAGIC_CMD
18636 # Used on cygwin: DLL creation program.
18639 # Used on cygwin: object dumper.
18642 # Used on cygwin: assembler.
18645 # The name of the directory that contains temporary libtool files.
18648 # How to create reloadable object files.
18649 reload_flag=$lt_reload_flag
18650 reload_cmds=$lt_reload_cmds
18652 # How to pass a linker flag through the compiler.
18653 wl=$lt_lt_prog_compiler_wl_RC
18655 # Object file suffix (normally "o").
18656 objext="$ac_objext"
18658 # Old archive suffix (normally "a").
18661 # Shared library suffix (normally ".so").
18662 shrext_cmds='$shrext_cmds'
18664 # Executable file suffix (normally "").
18667 # Additional compiler flags for building library objects.
18668 pic_flag=$lt_lt_prog_compiler_pic_RC
18671 # What is the maximum length of a command?
18672 max_cmd_len=$lt_cv_sys_max_cmd_len
18674 # Does compiler simultaneously support -c and -o options?
18675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18677 # Must we lock files when doing compilation ?
18678 need_locks=$lt_need_locks
18680 # Do we need the lib prefix for modules?
18681 need_lib_prefix=$need_lib_prefix
18683 # Do we need a version for libraries?
18684 need_version=$need_version
18686 # Whether dlopen is supported.
18687 dlopen_support=$enable_dlopen
18689 # Whether dlopen of programs is supported.
18690 dlopen_self=$enable_dlopen_self
18692 # Whether dlopen of statically linked programs is supported.
18693 dlopen_self_static=$enable_dlopen_self_static
18695 # Compiler flag to prevent dynamic linking.
18696 link_static_flag=$lt_lt_prog_compiler_static_RC
18698 # Compiler flag to turn off builtin functions.
18699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18701 # Compiler flag to allow reflexive dlopens.
18702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18704 # Compiler flag to generate shared objects directly from archives.
18705 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18707 # Compiler flag to generate thread-safe objects.
18708 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18710 # Library versioning type.
18711 version_type=$version_type
18713 # Format of library name prefix.
18714 libname_spec=$lt_libname_spec
18716 # List of archive names. First name is the real one, the rest are links.
18717 # The last name is the one that the linker finds with -lNAME.
18718 library_names_spec=$lt_library_names_spec
18720 # The coded name of the library, if different from the real name.
18721 soname_spec=$lt_soname_spec
18723 # Commands used to build and install an old-style archive.
18725 old_archive_cmds=$lt_old_archive_cmds_RC
18726 old_postinstall_cmds=$lt_old_postinstall_cmds
18727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18729 # Create an old-style archive from a shared archive.
18730 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18732 # Create a temporary old-style archive to link instead of a shared archive.
18733 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18735 # Commands used to build and install a shared archive.
18736 archive_cmds=$lt_archive_cmds_RC
18737 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18738 postinstall_cmds=$lt_postinstall_cmds
18739 postuninstall_cmds=$lt_postuninstall_cmds
18741 # Commands used to build a loadable module (assumed same as above if empty)
18742 module_cmds=$lt_module_cmds_RC
18743 module_expsym_cmds=$lt_module_expsym_cmds_RC
18745 # Commands to strip libraries.
18746 old_striplib=$lt_old_striplib
18747 striplib=$lt_striplib
18749 # Dependencies to place before the objects being linked to create a
18751 predep_objects=$lt_predep_objects_RC
18753 # Dependencies to place after the objects being linked to create a
18755 postdep_objects=$lt_postdep_objects_RC
18757 # Dependencies to place before the objects being linked to create a
18759 predeps=$lt_predeps_RC
18761 # Dependencies to place after the objects being linked to create a
18763 postdeps=$lt_postdeps_RC
18765 # The library search path used internally by the compiler when linking
18766 # a shared library.
18767 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18769 # Method to check whether dependent libraries are shared objects.
18770 deplibs_check_method=$lt_deplibs_check_method
18772 # Command to use when deplibs_check_method == file_magic.
18773 file_magic_cmd=$lt_file_magic_cmd
18775 # Flag that allows shared libraries with undefined symbols to be built.
18776 allow_undefined_flag=$lt_allow_undefined_flag_RC
18778 # Flag that forces no undefined symbols.
18779 no_undefined_flag=$lt_no_undefined_flag_RC
18781 # Commands used to finish a libtool library installation in a directory.
18782 finish_cmds=$lt_finish_cmds
18784 # Same as above, but a single script fragment to be evaled but not shown.
18785 finish_eval=$lt_finish_eval
18787 # Take the output of nm and produce a listing of raw symbols and C names.
18788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18790 # Transform the output of nm in a proper C declaration
18791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18793 # Transform the output of nm in a C name address pair
18794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18796 # This is the shared library runtime path variable.
18797 runpath_var=$runpath_var
18799 # This is the shared library path variable.
18800 shlibpath_var=$shlibpath_var
18802 # Is shlibpath searched before the hard-coded library search path?
18803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18805 # How to hardcode a shared library path into an executable.
18806 hardcode_action=$hardcode_action_RC
18808 # Whether we should hardcode library paths into libraries.
18809 hardcode_into_libs=$hardcode_into_libs
18811 # Flag to hardcode \$libdir into a binary during linking.
18812 # This must work even if \$libdir does not exist.
18813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18815 # If ld is used when linking, flag to hardcode \$libdir into
18816 # a binary during linking. This must work even if \$libdir does
18818 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18820 # Whether we need a single -rpath flag with a separated argument.
18821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18823 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18824 # resulting binary.
18825 hardcode_direct=$hardcode_direct_RC
18827 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18828 # resulting binary.
18829 hardcode_minus_L=$hardcode_minus_L_RC
18831 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18832 # the resulting binary.
18833 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18835 # Set to yes if building a shared library automatically hardcodes DIR into the library
18836 # and all subsequent libraries and executables linked against it.
18837 hardcode_automatic=$hardcode_automatic_RC
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at relink time.
18841 variables_saved_for_relink="$variables_saved_for_relink"
18843 # Whether libtool must link a program against all its dependency libraries.
18844 link_all_deplibs=$link_all_deplibs_RC
18846 # Compile-time system search path for libraries
18847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18849 # Run-time system search path for libraries
18850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18852 # Fix the shell variable \$srcfile for the compiler.
18853 fix_srcfile_path="$fix_srcfile_path_RC"
18855 # Set to yes if exported symbols are required.
18856 always_export_symbols=$always_export_symbols_RC
18858 # The commands to list exported symbols.
18859 export_symbols_cmds=$lt_export_symbols_cmds_RC
18861 # The commands to extract the exported symbol list from a shared archive.
18862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18864 # Symbols that should not be listed in the preloaded symbols.
18865 exclude_expsyms=$lt_exclude_expsyms_RC
18867 # Symbols that must always be exported.
18868 include_expsyms=$lt_include_expsyms_RC
18870 # ### END LIBTOOL TAG CONFIG: $tagname
18876 # If there is no Makefile yet, we rely on a make rule to execute
18877 # `config.status --recheck' to rerun these tests and create the
18878 # libtool script then.
18879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18880 if test -f "$ltmain_in"; then
18881 test -f Makefile && make "$ltmain"
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18898 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18899 { (exit 1); exit 1; }; }
18903 # Append the new tag name to the list of available tags.
18904 if test -n "$tagname" ; then
18905 available_tags="$available_tags $tagname"
18911 # Now substitute the updated list of available tags.
18912 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18913 mv "${ofile}T" "$ofile"
18917 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18918 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18919 { (exit 1); exit 1; }; }
18925 # This can be used to rebuild libtool when needed
18926 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18928 # Always use our own libtool.
18929 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18931 # Prevent multiple expansion
18953 # Extract the first word of "dot", so it can be a program name with args.
18954 set dummy dot; ac_word=$2
18955 echo "$as_me:$LINENO: checking for $ac_word" >&5
18956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18957 if test "${ac_cv_path_DOT+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18966 for as_dir in $PATH
18969 test -z "$as_dir" && as_dir=.
18970 for ac_exec_ext in '' $ac_executable_extensions; do
18971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18972 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18979 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18983 DOT=$ac_cv_path_DOT
18985 if test -n "$DOT"; then
18986 echo "$as_me:$LINENO: result: $DOT" >&5
18987 echo "${ECHO_T}$DOT" >&6
18989 echo "$as_me:$LINENO: result: no" >&5
18990 echo "${ECHO_T}no" >&6
18993 # Extract the first word of "etags", so it can be a program name with args.
18994 set dummy etags; ac_word=$2
18995 echo "$as_me:$LINENO: checking for $ac_word" >&5
18996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18997 if test "${ac_cv_path_ETAGS+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006 for as_dir in $PATH
19009 test -z "$as_dir" && as_dir=.
19010 for ac_exec_ext in '' $ac_executable_extensions; do
19011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19012 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19019 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19023 ETAGS=$ac_cv_path_ETAGS
19025 if test -n "$ETAGS"; then
19026 echo "$as_me:$LINENO: result: $ETAGS" >&5
19027 echo "${ECHO_T}$ETAGS" >&6
19029 echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19033 etags_version=`$ETAGS --version 2>&1`
19034 case "$etags_version" in
19035 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19036 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19037 *) ETAGSFLAGS="" ;;
19039 ETAGSFLAGS=$ETAGSFLAGS
19041 # Extract the first word of "python", so it can be a program name with args.
19042 set dummy python; ac_word=$2
19043 echo "$as_me:$LINENO: checking for $ac_word" >&5
19044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19045 if test "${ac_cv_path_PYTHON+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054 for as_dir in $PATH
19057 test -z "$as_dir" && as_dir=.
19058 for ac_exec_ext in '' $ac_executable_extensions; do
19059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19067 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19071 PYTHON=$ac_cv_path_PYTHON
19073 if test -n "$PYTHON"; then
19074 echo "$as_me:$LINENO: result: $PYTHON" >&5
19075 echo "${ECHO_T}$PYTHON" >&6
19077 echo "$as_me:$LINENO: result: no" >&5
19078 echo "${ECHO_T}no" >&6
19081 if test "$PYTHON" = "false"
19083 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19084 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19086 # Extract the first word of "qmtest", so it can be a program name with args.
19087 set dummy qmtest; ac_word=$2
19088 echo "$as_me:$LINENO: checking for $ac_word" >&5
19089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090 if test "${ac_cv_path_QMTEST+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19102 test -z "$as_dir" && as_dir=.
19103 for ac_exec_ext in '' $ac_executable_extensions; do
19104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19112 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19116 QMTEST=$ac_cv_path_QMTEST
19118 if test -n "$QMTEST"; then
19119 echo "$as_me:$LINENO: result: $QMTEST" >&5
19120 echo "${ECHO_T}$QMTEST" >&6
19122 echo "$as_me:$LINENO: result: no" >&5
19123 echo "${ECHO_T}no" >&6
19126 if test "$QMTEST" = "false"
19128 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19129 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19132 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19133 pymajor=`echo $pyversion | cut -d. -f1`
19134 pyminor=`echo $pyversion | cut -d. -f2`
19136 if test "$pymajor" -ge "2"
19138 if test "$pymajor" -eq "2"
19140 if test "$pyminor" -lt "2"
19142 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19143 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19147 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19148 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19152 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19153 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19154 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 ac_check_lib_save_LIBS=$LIBS
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19166 /* Override any gcc2 internal prototype to avoid an error. */
19170 /* We use char because int might match the return type of a gcc2
19171 builtin and then its argument prototype would still apply. */
19181 rm -f conftest.$ac_objext conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest$ac_exeext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_lib_elf_elf_begin=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_lib_elf_elf_begin=no
19210 rm -f conftest.err conftest.$ac_objext \
19211 conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS
19214 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19215 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19216 if test $ac_cv_lib_elf_elf_begin = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define HAVE_LIBELF 1
19226 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19227 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19228 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 ac_check_lib_save_LIBS=$LIBS
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19240 /* Override any gcc2 internal prototype to avoid an error. */
19244 /* We use char because int might match the return type of a gcc2
19245 builtin and then its argument prototype would still apply. */
19246 char BZ2_bzCompressInit ();
19250 BZ2_bzCompressInit ();
19255 rm -f conftest.$ac_objext conftest$ac_exeext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest$ac_exeext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19284 rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19288 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19289 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19290 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19297 for ac_header in bzlib.h
19299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19301 echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19309 # Is the header compilable?
19310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 $ac_includes_default
19319 #include <$ac_header>
19321 rm -f conftest.$ac_objext
19322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19323 (eval $ac_compile) 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_c_werror_flag"
19331 || test ! -s conftest.err'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_header_compiler=yes
19345 echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 ac_header_compiler=no
19350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19352 echo "${ECHO_T}$ac_header_compiler" >&6
19354 # Is the header present?
19355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 #include <$ac_header>
19365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } >/dev/null; then
19373 if test -s conftest.err; then
19374 ac_cpp_err=$ac_c_preproc_warn_flag
19375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19382 if test -z "$ac_cpp_err"; then
19383 ac_header_preproc=yes
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_preproc=no
19390 rm -f conftest.err conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19392 echo "${ECHO_T}$ac_header_preproc" >&6
19394 # So? What about this header?
19395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19401 ac_header_preproc=yes
19404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19418 ## ----------------------------------- ##
19419 ## Report this to llvmbugs@cs.uiuc.edu ##
19420 ## ----------------------------------- ##
19423 sed "s/^/$as_me: WARNING: /" >&2
19426 echo "$as_me:$LINENO: checking for $ac_header" >&5
19427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 eval "$as_ac_Header=\$ac_header_preproc"
19433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19438 cat >>confdefs.h <<_ACEOF
19439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19448 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19449 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19450 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 ac_check_lib_save_LIBS=$LIBS
19455 cat >conftest.$ac_ext <<_ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19462 /* Override any gcc2 internal prototype to avoid an error. */
19466 /* We use char because int might match the return type of a gcc2
19467 builtin and then its argument prototype would still apply. */
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479 (eval $ac_link) 2>conftest.er1
19481 grep -v '^ *+' conftest.er1 >conftest.err
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_c_werror_flag"
19487 || test ! -s conftest.err'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest$ac_exeext'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_lib_z_gzopen=yes
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19504 ac_cv_lib_z_gzopen=no
19506 rm -f conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19510 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19511 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19512 if test $ac_cv_lib_z_gzopen = yes; then
19519 for ac_header in zlib.h
19521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo "$as_me:$LINENO: checking for $ac_header" >&5
19524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19531 # Is the header compilable?
19532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 $ac_includes_default
19541 #include <$ac_header>
19543 rm -f conftest.$ac_objext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545 (eval $ac_compile) 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest.$ac_objext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_header_compiler=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_header_compiler=no
19572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6
19576 # Is the header present?
19577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 #include <$ac_header>
19587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19590 grep -v '^ *+' conftest.er1 >conftest.err
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } >/dev/null; then
19595 if test -s conftest.err; then
19596 ac_cpp_err=$ac_c_preproc_warn_flag
19597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19604 if test -z "$ac_cpp_err"; then
19605 ac_header_preproc=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_header_preproc=no
19612 rm -f conftest.err conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 echo "${ECHO_T}$ac_header_preproc" >&6
19616 # So? What about this header?
19617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19623 ac_header_preproc=yes
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19640 ## ----------------------------------- ##
19641 ## Report this to llvmbugs@cs.uiuc.edu ##
19642 ## ----------------------------------- ##
19645 sed "s/^/$as_me: WARNING: /" >&2
19648 echo "$as_me:$LINENO: checking for $ac_header" >&5
19649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 eval "$as_ac_Header=\$ac_header_preproc"
19655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19660 cat >>confdefs.h <<_ACEOF
19661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19670 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_ZLIB 1
19682 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19684 cat >>confdefs.h <<\_ACEOF
19685 #define HAVE_BZIP2 1
19694 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19695 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19696 if test "${ac_cv_search_dlopen+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 ac_func_search_save_LIBS=$LIBS
19700 ac_cv_search_dlopen=no
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 /* Override any gcc2 internal prototype to avoid an error. */
19712 /* We use char because int might match the return type of a gcc2
19713 builtin and then its argument prototype would still apply. */
19723 rm -f conftest.$ac_objext conftest$ac_exeext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19725 (eval $ac_link) 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest$ac_exeext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_search_dlopen="none required"
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19751 rm -f conftest.err conftest.$ac_objext \
19752 conftest$ac_exeext conftest.$ac_ext
19753 if test "$ac_cv_search_dlopen" = no; then
19754 for ac_lib in dl; do
19755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19763 /* Override any gcc2 internal prototype to avoid an error. */
19767 /* We use char because int might match the return type of a gcc2
19768 builtin and then its argument prototype would still apply. */
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780 (eval $ac_link) 2>conftest.er1
19782 grep -v '^ *+' conftest.er1 >conftest.err
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest$ac_exeext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_search_dlopen="-l$ac_lib"
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19807 rm -f conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_func_search_save_LIBS
19813 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19814 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19815 if test "$ac_cv_search_dlopen" != no; then
19816 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE_DLOPEN 1
19823 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19824 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19828 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19829 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19830 if test "${ac_cv_search_mallinfo+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 ac_func_search_save_LIBS=$LIBS
19834 ac_cv_search_mallinfo=no
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19842 /* Override any gcc2 internal prototype to avoid an error. */
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859 (eval $ac_link) 2>conftest.er1
19861 grep -v '^ *+' conftest.er1 >conftest.err
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag"
19867 || test ! -s conftest.err'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest$ac_exeext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_search_mallinfo="none required"
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19885 rm -f conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
19887 if test "$ac_cv_search_mallinfo" = no; then
19888 for ac_lib in malloc; do
19889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19897 /* Override any gcc2 internal prototype to avoid an error. */
19901 /* We use char because int might match the return type of a gcc2
19902 builtin and then its argument prototype would still apply. */
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914 (eval $ac_link) 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_c_werror_flag"
19922 || test ! -s conftest.err'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest$ac_exeext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_cv_search_mallinfo="-l$ac_lib"
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19941 rm -f conftest.err conftest.$ac_objext \
19942 conftest$ac_exeext conftest.$ac_ext
19945 LIBS=$ac_func_search_save_LIBS
19947 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19948 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19949 if test "$ac_cv_search_mallinfo" != no; then
19950 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_MALLINFO 1
19959 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19960 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19961 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 ac_func_search_save_LIBS=$LIBS
19965 ac_cv_search_pthread_mutex_lock=no
19966 cat >conftest.$ac_ext <<_ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19973 /* Override any gcc2 internal prototype to avoid an error. */
19977 /* We use char because int might match the return type of a gcc2
19978 builtin and then its argument prototype would still apply. */
19979 char pthread_mutex_lock ();
19983 pthread_mutex_lock ();
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_c_werror_flag"
19998 || test ! -s conftest.err'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_search_pthread_mutex_lock="none required"
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20016 rm -f conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
20018 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20019 for ac_lib in pthread; do
20020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20028 /* Override any gcc2 internal prototype to avoid an error. */
20032 /* We use char because int might match the return type of a gcc2
20033 builtin and then its argument prototype would still apply. */
20034 char pthread_mutex_lock ();
20038 pthread_mutex_lock ();
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045 (eval $ac_link) 2>conftest.er1
20047 grep -v '^ *+' conftest.er1 >conftest.err
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try='test -z "$ac_c_werror_flag"
20053 || test ! -s conftest.err'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest$ac_exeext'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20072 rm -f conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_func_search_save_LIBS
20078 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20079 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20080 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20081 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20083 cat >>confdefs.h <<\_ACEOF
20084 #define HAVE_PTHREAD_MUTEX_LOCK 1
20090 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20092 if test "${ac_cv_header_stdc+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 #include <stdlib.h>
20102 #include <stdarg.h>
20103 #include <string.h>
20114 rm -f conftest.$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116 (eval $ac_compile) 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_c_werror_flag"
20124 || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest.$ac_objext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_header_stdc=yes
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_cv_header_stdc=no
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20145 if test $ac_cv_header_stdc = yes; then
20146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <string.h>
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157 $EGREP "memchr" >/dev/null 2>&1; then
20160 ac_cv_header_stdc=no
20166 if test $ac_cv_header_stdc = yes; then
20167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 #include <stdlib.h>
20177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178 $EGREP "free" >/dev/null 2>&1; then
20181 ac_cv_header_stdc=no
20187 if test $ac_cv_header_stdc = yes; then
20188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20189 if test "$cross_compiling" = yes; then
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20199 #if ((' ' & 0x0FF) == 0x020)
20200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20203 # define ISLOWER(c) \
20204 (('a' <= (c) && (c) <= 'i') \
20205 || ('j' <= (c) && (c) <= 'r') \
20206 || ('s' <= (c) && (c) <= 'z'))
20207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20215 for (i = 0; i < 256; i++)
20216 if (XOR (islower (i), ISLOWER (i))
20217 || toupper (i) != TOUPPER (i))
20222 rm -f conftest$ac_exeext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224 (eval $ac_link) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20235 echo "$as_me: program exited with status $ac_status" >&5
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ( exit $ac_status )
20240 ac_cv_header_stdc=no
20242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20246 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20247 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20248 if test $ac_cv_header_stdc = yes; then
20250 cat >>confdefs.h <<\_ACEOF
20251 #define STDC_HEADERS 1
20256 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20257 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20258 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20267 #include <sys/types.h>
20268 #include <sys/wait.h>
20269 #ifndef WEXITSTATUS
20270 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20273 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20281 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag"
20296 || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20308 ac_cv_header_sys_wait_h=yes
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_header_sys_wait_h=no
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20317 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20318 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20319 if test $ac_cv_header_sys_wait_h = yes; then
20321 cat >>confdefs.h <<\_ACEOF
20322 #define HAVE_SYS_WAIT_H 1
20339 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
20341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20343 echo "$as_me:$LINENO: checking for $ac_header" >&5
20344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20351 # Is the header compilable?
20352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 $ac_includes_default
20361 #include <$ac_header>
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365 (eval $ac_compile) 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_header_compiler=yes
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 ac_header_compiler=no
20392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20394 echo "${ECHO_T}$ac_header_compiler" >&6
20396 # Is the header present?
20397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 #include <$ac_header>
20407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } >/dev/null; then
20415 if test -s conftest.err; then
20416 ac_cpp_err=$ac_c_preproc_warn_flag
20417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20424 if test -z "$ac_cpp_err"; then
20425 ac_header_preproc=yes
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_preproc=no
20432 rm -f conftest.err conftest.$ac_ext
20433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20434 echo "${ECHO_T}$ac_header_preproc" >&6
20436 # So? What about this header?
20437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20443 ac_header_preproc=yes
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20460 ## ----------------------------------- ##
20461 ## Report this to llvmbugs@cs.uiuc.edu ##
20462 ## ----------------------------------- ##
20465 sed "s/^/$as_me: WARNING: /" >&2
20468 echo "$as_me:$LINENO: checking for $ac_header" >&5
20469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 eval "$as_ac_Header=\$ac_header_preproc"
20475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20489 if test "${ac_cv_header_sys_types_h+set}" = set; then
20490 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20491 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20492 if test "${ac_cv_header_sys_types_h+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20496 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20498 # Is the header compilable?
20499 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20500 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20501 cat >conftest.$ac_ext <<_ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h. */
20507 $ac_includes_default
20508 #include <sys/types.h>
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512 (eval $ac_compile) 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_header_compiler=yes
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_header_compiler=no
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20541 echo "${ECHO_T}$ac_header_compiler" >&6
20543 # Is the header present?
20544 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20545 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 #include <sys/types.h>
20554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } >/dev/null; then
20562 if test -s conftest.err; then
20563 ac_cpp_err=$ac_c_preproc_warn_flag
20564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20571 if test -z "$ac_cpp_err"; then
20572 ac_header_preproc=yes
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_header_preproc=no
20579 rm -f conftest.err conftest.$ac_ext
20580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20581 echo "${ECHO_T}$ac_header_preproc" >&6
20583 # So? What about this header?
20584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20586 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20587 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20589 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20590 ac_header_preproc=yes
20593 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20594 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20596 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20598 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20600 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20602 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20604 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20607 ## ----------------------------------- ##
20608 ## Report this to llvmbugs@cs.uiuc.edu ##
20609 ## ----------------------------------- ##
20612 sed "s/^/$as_me: WARNING: /" >&2
20615 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20616 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20617 if test "${ac_cv_header_sys_types_h+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 ac_cv_header_sys_types_h=$ac_header_preproc
20622 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20623 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20628 if test "${ac_cv_header_inttypes_h+set}" = set; then
20629 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20630 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20631 if test "${ac_cv_header_inttypes_h+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20635 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20637 # Is the header compilable?
20638 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20639 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 $ac_includes_default
20647 #include <inttypes.h>
20649 rm -f conftest.$ac_objext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651 (eval $ac_compile) 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag"
20659 || test ! -s conftest.err'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest.$ac_objext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_header_compiler=yes
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_header_compiler=no
20678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20680 echo "${ECHO_T}$ac_header_compiler" >&6
20682 # Is the header present?
20683 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20684 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <inttypes.h>
20693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20696 grep -v '^ *+' conftest.er1 >conftest.err
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } >/dev/null; then
20701 if test -s conftest.err; then
20702 ac_cpp_err=$ac_c_preproc_warn_flag
20703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20710 if test -z "$ac_cpp_err"; then
20711 ac_header_preproc=yes
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_header_preproc=no
20718 rm -f conftest.err conftest.$ac_ext
20719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20720 echo "${ECHO_T}$ac_header_preproc" >&6
20722 # So? What about this header?
20723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20725 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20726 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20728 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20729 ac_header_preproc=yes
20732 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20733 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20735 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20736 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20737 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20739 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
20740 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20741 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20742 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20743 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20746 ## ----------------------------------- ##
20747 ## Report this to llvmbugs@cs.uiuc.edu ##
20748 ## ----------------------------------- ##
20751 sed "s/^/$as_me: WARNING: /" >&2
20754 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20755 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20756 if test "${ac_cv_header_inttypes_h+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 ac_cv_header_inttypes_h=$ac_header_preproc
20761 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20762 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20767 if test "${ac_cv_header_stdint_h+set}" = set; then
20768 echo "$as_me:$LINENO: checking for stdint.h" >&5
20769 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20770 if test "${ac_cv_header_stdint_h+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20774 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20776 # Is the header compilable?
20777 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20778 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 $ac_includes_default
20786 #include <stdint.h>
20788 rm -f conftest.$ac_objext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790 (eval $ac_compile) 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
20797 { ac_try='test -z "$ac_c_werror_flag"
20798 || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_header_compiler=yes
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 ac_header_compiler=no
20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20819 echo "${ECHO_T}$ac_header_compiler" >&6
20821 # Is the header present?
20822 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20823 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20830 #include <stdint.h>
20832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } >/dev/null; then
20840 if test -s conftest.err; then
20841 ac_cpp_err=$ac_c_preproc_warn_flag
20842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20849 if test -z "$ac_cpp_err"; then
20850 ac_header_preproc=yes
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 ac_header_preproc=no
20857 rm -f conftest.err conftest.$ac_ext
20858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20859 echo "${ECHO_T}$ac_header_preproc" >&6
20861 # So? What about this header?
20862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20864 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20865 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20866 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20867 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20868 ac_header_preproc=yes
20871 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20872 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20874 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20876 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20878 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20879 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20880 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20881 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20882 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20885 ## ----------------------------------- ##
20886 ## Report this to llvmbugs@cs.uiuc.edu ##
20887 ## ----------------------------------- ##
20890 sed "s/^/$as_me: WARNING: /" >&2
20893 echo "$as_me:$LINENO: checking for stdint.h" >&5
20894 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20895 if test "${ac_cv_header_stdint_h+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 ac_cv_header_stdint_h=$ac_header_preproc
20900 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20901 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20907 echo "$as_me:$LINENO: checking for pid_t" >&5
20908 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20909 if test "${ac_cv_type_pid_t+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 $ac_includes_default
20924 if (sizeof (pid_t))
20930 rm -f conftest.$ac_objext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20932 (eval $ac_compile) 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
20939 { ac_try='test -z "$ac_c_werror_flag"
20940 || test ! -s conftest.err'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_type_pid_t=yes
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_type_pid_t=no
20959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20961 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20962 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20963 if test $ac_cv_type_pid_t = yes; then
20967 cat >>confdefs.h <<_ACEOF
20973 echo "$as_me:$LINENO: checking for size_t" >&5
20974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20975 if test "${ac_cv_type_size_t+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 $ac_includes_default
20990 if (sizeof (size_t))
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
21005 { ac_try='test -z "$ac_c_werror_flag"
21006 || test ! -s conftest.err'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
21013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_cv_type_size_t=yes
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ac_cv_type_size_t=no
21025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21028 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21029 if test $ac_cv_type_size_t = yes; then
21033 cat >>confdefs.h <<_ACEOF
21034 #define size_t unsigned
21039 echo "$as_me:$LINENO: checking for int64_t" >&5
21040 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21041 if test "${ac_cv_type_int64_t+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 $ac_includes_default
21056 if (sizeof (int64_t))
21062 rm -f conftest.$ac_objext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21064 (eval $ac_compile) 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag"
21072 || test ! -s conftest.err'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest.$ac_objext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ac_cv_type_int64_t=yes
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_cv_type_int64_t=no
21091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21094 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21095 if test $ac_cv_type_int64_t = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_INT64_T 1
21103 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21104 echo "$as_me: error: Type int64_t required but not found" >&2;}
21105 { (exit 1); exit 1; }; }
21108 echo "$as_me:$LINENO: checking for uint64_t" >&5
21109 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21110 if test "${ac_cv_type_uint64_t+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21123 if ((uint64_t *) 0)
21125 if (sizeof (uint64_t))
21131 rm -f conftest.$ac_objext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133 (eval $ac_compile) 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_type_uint64_t=yes
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_cv_type_uint64_t=no
21160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21162 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21163 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21164 if test $ac_cv_type_uint64_t = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167 #define HAVE_UINT64_T 1
21172 echo "$as_me:$LINENO: checking for u_int64_t" >&5
21173 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21174 if test "${ac_cv_type_u_int64_t+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 $ac_includes_default
21187 if ((u_int64_t *) 0)
21189 if (sizeof (u_int64_t))
21195 rm -f conftest.$ac_objext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197 (eval $ac_compile) 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try='test -z "$ac_c_werror_flag"
21205 || test ! -s conftest.err'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try='test -s conftest.$ac_objext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 ac_cv_type_u_int64_t=yes
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_cv_type_u_int64_t=no
21224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21226 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21227 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21228 if test $ac_cv_type_u_int64_t = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_U_INT64_T 1
21236 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21237 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21238 { (exit 1); exit 1; }; }
21243 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21244 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21245 if test "${ac_cv_header_time+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <sys/types.h>
21255 #include <sys/time.h>
21261 if ((struct tm *) 0)
21267 rm -f conftest.$ac_objext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21269 (eval $ac_compile) 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -z "$ac_c_werror_flag"
21277 || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest.$ac_objext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_header_time=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_cv_header_time=no
21296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21299 echo "${ECHO_T}$ac_cv_header_time" >&6
21300 if test $ac_cv_header_time = yes; then
21302 cat >>confdefs.h <<\_ACEOF
21303 #define TIME_WITH_SYS_TIME 1
21308 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21310 if test "${ac_cv_struct_tm+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <sys/types.h>
21325 struct tm *tp; tp->tm_sec;
21330 rm -f conftest.$ac_objext
21331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21332 (eval $ac_compile) 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
21339 { ac_try='test -z "$ac_c_werror_flag"
21340 || test ! -s conftest.err'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_struct_tm=time.h
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_cv_struct_tm=sys/time.h
21359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21361 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21362 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21363 if test $ac_cv_struct_tm = sys/time.h; then
21365 cat >>confdefs.h <<\_ACEOF
21366 #define TM_IN_SYS_TIME 1
21373 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21374 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21376 ac_cpp='$CPP $CPPFLAGS'
21377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21381 if test "$cross_compiling" = yes; then
21384 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21393 #include <stdlib.h>
21399 volatile double A, B;
21403 sprintf(Buffer, "%a", A);
21407 if (A != 0x1.999999999999ap-4)
21414 rm -f conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21427 echo "$as_me: program exited with status $ac_status" >&5
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ( exit $ac_status )
21434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21437 ac_cpp='$CPP $CPPFLAGS'
21438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21442 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21443 echo "${ECHO_T}$ac_c_printf_a" >&6
21444 if test "$ac_c_printf_a" = "yes"; then
21446 cat >>confdefs.h <<\_ACEOF
21447 #define HAVE_PRINTF_A 1
21453 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21454 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21455 if test "${ac_cv_c_bigendian+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 # See if sys/param.h defines the BYTE_ORDER macro.
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 #include <sys/types.h>
21466 #include <sys/param.h>
21471 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21472 bogus endian macros
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481 (eval $ac_compile) 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest.$ac_objext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 # It does; now see whether it defined to BIG_ENDIAN or not.
21502 cat >conftest.$ac_ext <<_ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 #include <sys/types.h>
21509 #include <sys/param.h>
21514 #if BYTE_ORDER != BIG_ENDIAN
21522 rm -f conftest.$ac_objext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524 (eval $ac_compile) 2>conftest.er1
21526 grep -v '^ *+' conftest.er1 >conftest.err
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
21531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 ac_cv_c_bigendian=yes
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 ac_cv_c_bigendian=no
21551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 # It does not; compile a test program.
21557 if test "$cross_compiling" = yes; then
21558 # try to guess the endianness by grepping values into an object file
21559 ac_cv_c_bigendian=unknown
21560 cat >conftest.$ac_ext <<_ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21567 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21568 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21569 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21570 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21571 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21575 _ascii (); _ebcdic ();
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>conftest.er1
21584 grep -v '^ *+' conftest.er1 >conftest.err
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
21589 { ac_try='test -z "$ac_c_werror_flag"
21590 || test ! -s conftest.err'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21603 ac_cv_c_bigendian=yes
21605 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21606 if test "$ac_cv_c_bigendian" = unknown; then
21607 ac_cv_c_bigendian=no
21609 # finding both strings is unlikely to happen, but who knows?
21610 ac_cv_c_bigendian=unknown
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21629 /* Are we little or big endian? From Harbison&Steele. */
21633 char c[sizeof (long)];
21636 exit (u.c[sizeof (long) - 1] == 1);
21639 rm -f conftest$ac_exeext
21640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21641 (eval $ac_link) 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_c_bigendian=no
21652 echo "$as_me: program exited with status $ac_status" >&5
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 ( exit $ac_status )
21657 ac_cv_c_bigendian=yes
21659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21664 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21665 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21666 case $ac_cv_c_bigendian in
21674 { { echo "$as_me:$LINENO: error: unknown endianness
21675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21676 echo "$as_me: error: unknown endianness
21677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21678 { (exit 1); exit 1; }; } ;;
21682 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21683 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21684 if test "${ac_cv_cxx_namespaces+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 ac_cpp='$CXXCPP $CPPFLAGS'
21689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 namespace Outer { namespace Inner { int i = 0; }}
21703 using namespace Outer::Inner; return i;
21708 rm -f conftest.$ac_objext
21709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21710 (eval $ac_compile) 2>conftest.er1
21712 grep -v '^ *+' conftest.er1 >conftest.err
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -z "$ac_cxx_werror_flag"
21718 || test ! -s conftest.err'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; } &&
21724 { ac_try='test -s conftest.$ac_objext'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_cv_cxx_namespaces=yes
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_cv_cxx_namespaces=no
21737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21739 ac_cpp='$CPP $CPPFLAGS'
21740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21746 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21747 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21748 if test "$ac_cv_cxx_namespaces" = yes; then
21750 cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_NAMESPACES
21756 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21757 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21758 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 ac_cpp='$CXXCPP $CPPFLAGS'
21764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21768 cat >conftest.$ac_ext <<_ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774 #include <ext/hash_map>
21775 #ifdef HAVE_NAMESPACES
21776 using namespace std;
21781 hash_map<int, int> t;
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788 (eval $ac_compile) 2>conftest.er1
21790 grep -v '^ *+' conftest.er1 >conftest.err
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } &&
21795 { ac_try='test -z "$ac_cxx_werror_flag"
21796 || test ! -s conftest.err'
21797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798 (eval $ac_try) 2>&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; } &&
21802 { ac_try='test -s conftest.$ac_objext'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
21808 ac_cv_cxx_have_std_ext_hash_map=yes
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_cv_cxx_have_std_ext_hash_map=no
21815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21817 ac_cpp='$CPP $CPPFLAGS'
21818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21823 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21824 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21825 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21828 cat >>confdefs.h <<\_ACEOF
21829 #define HAVE_STD_EXT_HASH_MAP 1
21834 cat >>confdefs.h <<\_ACEOF
21835 #define HAVE_STD_EXT_HASH_MAP 0
21840 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21841 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21842 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 ac_cpp='$CXXCPP $CPPFLAGS'
21848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21852 cat >conftest.$ac_ext <<_ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 #include <ext/hash_map>
21859 #ifdef HAVE_NAMESPACES
21860 using namespace __gnu_cxx;
21865 hash_map<int,int> t;
21870 rm -f conftest.$ac_objext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872 (eval $ac_compile) 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -z "$ac_cxx_werror_flag"
21880 || test ! -s conftest.err'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; } &&
21886 { ac_try='test -s conftest.$ac_objext'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_cv_cxx_have_gnu_ext_hash_map=yes
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21897 ac_cv_cxx_have_gnu_ext_hash_map=no
21899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21907 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21908 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21909 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21912 cat >>confdefs.h <<\_ACEOF
21913 #define HAVE_GNU_EXT_HASH_MAP 1
21918 cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_GNU_EXT_HASH_MAP 0
21924 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21925 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21926 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 ac_cpp='$CXXCPP $CPPFLAGS'
21932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 #include <hash_map>
21946 hash_map<int,int> t;
21951 rm -f conftest.$ac_objext
21952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21953 (eval $ac_compile) 2>conftest.er1
21955 grep -v '^ *+' conftest.er1 >conftest.err
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } &&
21960 { ac_try='test -z "$ac_cxx_werror_flag"
21961 || test ! -s conftest.err'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; } &&
21967 { ac_try='test -s conftest.$ac_objext'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 ac_cv_cxx_have_global_hash_map=yes
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 ac_cv_cxx_have_global_hash_map=no
21980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21982 ac_cpp='$CPP $CPPFLAGS'
21983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21988 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21989 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21990 if test "$ac_cv_cxx_have_global_hash_map" = yes
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_GLOBAL_HASH_MAP 1
21999 cat >>confdefs.h <<\_ACEOF
22000 #define HAVE_GLOBAL_HASH_MAP 0
22005 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22006 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22007 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 ac_cpp='$CXXCPP $CPPFLAGS'
22013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 #include <ext/hash_set>
22024 #ifdef HAVE_NAMESPACES
22025 using namespace std;
22035 rm -f conftest.$ac_objext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22037 (eval $ac_compile) 2>conftest.er1
22039 grep -v '^ *+' conftest.er1 >conftest.err
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } &&
22044 { ac_try='test -z "$ac_cxx_werror_flag"
22045 || test ! -s conftest.err'
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest.$ac_objext'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 ac_cv_cxx_have_std_ext_hash_set=yes
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062 ac_cv_cxx_have_std_ext_hash_set=no
22064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22066 ac_cpp='$CPP $CPPFLAGS'
22067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22072 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22073 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22074 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_STD_EXT_HASH_SET 1
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_STD_EXT_HASH_SET 0
22089 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22090 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22091 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22096 ac_cpp='$CXXCPP $CPPFLAGS'
22097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22101 cat >conftest.$ac_ext <<_ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 #include <ext/hash_set>
22108 #ifdef HAVE_NAMESPACES
22109 using namespace __gnu_cxx;
22119 rm -f conftest.$ac_objext
22120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22121 (eval $ac_compile) 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } &&
22128 { ac_try='test -z "$ac_cxx_werror_flag"
22129 || test ! -s conftest.err'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; } &&
22135 { ac_try='test -s conftest.$ac_objext'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22141 ac_cv_cxx_have_gnu_ext_hash_set=yes
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_cv_cxx_have_gnu_ext_hash_set=no
22148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22150 ac_cpp='$CPP $CPPFLAGS'
22151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22156 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22157 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22158 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_GNU_EXT_HASH_SET 1
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_GNU_EXT_HASH_SET 0
22173 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22174 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22175 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 ac_cpp='$CXXCPP $CPPFLAGS'
22181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22185 cat >conftest.$ac_ext <<_ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 #include <hash_set>
22195 hash_set<int> t; return 0;
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_cxx_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_cxx_have_global_hash_set=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_cxx_have_global_hash_set=no
22229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 ac_cpp='$CPP $CPPFLAGS'
22232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22237 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22238 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22239 if test "$ac_cv_cxx_have_global_hash_set" = yes
22242 cat >>confdefs.h <<\_ACEOF
22243 #define HAVE_GLOBAL_HASH_SET 1
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_GLOBAL_HASH_SET 0
22254 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22255 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22256 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 ac_cpp='$CXXCPP $CPPFLAGS'
22262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22272 #include <iterator>
22273 #ifdef HAVE_NAMESPACES
22274 using namespace std;
22279 iterator<int,int,int> t; return 0;
22284 rm -f conftest.$ac_objext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286 (eval $ac_compile) 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } &&
22293 { ac_try='test -z "$ac_cxx_werror_flag"
22294 || test ! -s conftest.err'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest.$ac_objext'
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 ac_cv_cxx_have_std_iterator=yes
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_cv_cxx_have_std_iterator=no
22313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22315 ac_cpp='$CPP $CPPFLAGS'
22316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22322 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22323 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22324 if test "$ac_cv_cxx_have_std_iterator" = yes
22327 cat >>confdefs.h <<\_ACEOF
22328 #define HAVE_STD_ITERATOR 1
22333 cat >>confdefs.h <<\_ACEOF
22334 #define HAVE_STD_ITERATOR 0
22339 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22340 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22341 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 ac_cpp='$CXXCPP $CPPFLAGS'
22347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 #include <iterator>
22358 #ifdef HAVE_NAMESPACES
22359 using namespace std;
22364 bidirectional_iterator<int,int> t; return 0;
22369 rm -f conftest.$ac_objext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22371 (eval $ac_compile) 2>conftest.er1
22373 grep -v '^ *+' conftest.er1 >conftest.err
22375 cat conftest.err >&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
22378 { ac_try='test -z "$ac_cxx_werror_flag"
22379 || test ! -s conftest.err'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; } &&
22385 { ac_try='test -s conftest.$ac_objext'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; }; then
22391 ac_cv_cxx_have_bi_iterator=yes
22393 echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ac_cv_cxx_have_bi_iterator=no
22398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22400 ac_cpp='$CPP $CPPFLAGS'
22401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22407 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22408 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22409 if test "$ac_cv_cxx_have_bi_iterator" = yes
22412 cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_BI_ITERATOR 1
22418 cat >>confdefs.h <<\_ACEOF
22419 #define HAVE_BI_ITERATOR 0
22424 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22425 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22426 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22427 echo $ECHO_N "(cached) $ECHO_C" >&6
22431 ac_cpp='$CXXCPP $CPPFLAGS'
22432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <iterator>
22443 #ifdef HAVE_NAMESPACES
22444 using namespace std;
22449 forward_iterator<int,int> t; return 0;
22454 rm -f conftest.$ac_objext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456 (eval $ac_compile) 2>conftest.er1
22458 grep -v '^ *+' conftest.er1 >conftest.err
22460 cat conftest.err >&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } &&
22463 { ac_try='test -z "$ac_cxx_werror_flag"
22464 || test ! -s conftest.err'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; } &&
22470 { ac_try='test -s conftest.$ac_objext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_cxx_have_fwd_iterator=yes
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_cv_cxx_have_fwd_iterator=no
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22485 ac_cpp='$CPP $CPPFLAGS'
22486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22492 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22493 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22494 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_FWD_ITERATOR 1
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_FWD_ITERATOR 0
22511 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22512 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22513 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22517 ac_cpp='$CXXCPP $CPPFLAGS'
22518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22529 int foo(float f) {return isnan(f);}
22531 rm -f conftest.$ac_objext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22533 (eval $ac_compile) 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_cxx_werror_flag"
22541 || test ! -s conftest.err'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; } &&
22547 { ac_try='test -s conftest.$ac_objext'
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; }; then
22553 ac_cv_func_isnan_in_math_h=yes
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 ac_cv_func_isnan_in_math_h=no
22560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22562 ac_cpp='$CPP $CPPFLAGS'
22563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22568 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22569 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22570 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22573 cat >>confdefs.h <<\_ACEOF
22574 #define HAVE_ISNAN_IN_MATH_H 1
22578 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22579 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22580 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 ac_cpp='$CXXCPP $CPPFLAGS'
22585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22596 int foo(float f) {return isnan(f);}
22598 rm -f conftest.$ac_objext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22600 (eval $ac_compile) 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -z "$ac_cxx_werror_flag"
22608 || test ! -s conftest.err'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; } &&
22614 { ac_try='test -s conftest.$ac_objext'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; }; then
22620 ac_cv_func_isnan_in_cmath=yes
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 ac_cv_func_isnan_in_cmath=no
22627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22629 ac_cpp='$CPP $CPPFLAGS'
22630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22635 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22636 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22637 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22640 cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_ISNAN_IN_CMATH 1
22645 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22646 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22647 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 ac_cpp='$CXXCPP $CPPFLAGS'
22652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22663 using std::isnan; int foo(float f) {return isnan(f);}
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_cxx_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_cv_func_std_isnan_in_cmath=yes
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 ac_cv_func_std_isnan_in_cmath=no
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22696 ac_cpp='$CPP $CPPFLAGS'
22697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22702 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22703 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22704 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22707 cat >>confdefs.h <<\_ACEOF
22708 #define HAVE_STD_ISNAN_IN_CMATH 1
22714 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22715 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22716 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 ac_cpp='$CXXCPP $CPPFLAGS'
22721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22732 int foo(float f) {return isinf(f);}
22734 rm -f conftest.$ac_objext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22736 (eval $ac_compile) 2>conftest.er1
22738 grep -v '^ *+' conftest.er1 >conftest.err
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
22743 { ac_try='test -z "$ac_cxx_werror_flag"
22744 || test ! -s conftest.err'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; } &&
22750 { ac_try='test -s conftest.$ac_objext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ac_cv_func_isinf_in_math_h=yes
22758 echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_func_isinf_in_math_h=no
22763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22765 ac_cpp='$CPP $CPPFLAGS'
22766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22771 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22772 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22773 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_ISINF_IN_MATH_H 1
22781 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22782 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22783 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22787 ac_cpp='$CXXCPP $CPPFLAGS'
22788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22799 int foo(float f) {return isinf(f);}
22801 rm -f conftest.$ac_objext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22803 (eval $ac_compile) 2>conftest.er1
22805 grep -v '^ *+' conftest.er1 >conftest.err
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -z "$ac_cxx_werror_flag"
22811 || test ! -s conftest.err'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; } &&
22817 { ac_try='test -s conftest.$ac_objext'
22818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 ac_cv_func_isinf_in_cmath=yes
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_cv_func_isinf_in_cmath=no
22830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22832 ac_cpp='$CPP $CPPFLAGS'
22833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22838 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22839 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22840 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_ISINF_IN_CMATH 1
22848 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22849 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22850 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22854 ac_cpp='$CXXCPP $CPPFLAGS'
22855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22859 cat >conftest.$ac_ext <<_ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22866 using std::isinf; int foo(float f) {return isinf(f);}
22868 rm -f conftest.$ac_objext
22869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22870 (eval $ac_compile) 2>conftest.er1
22872 grep -v '^ *+' conftest.er1 >conftest.err
22874 cat conftest.err >&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } &&
22877 { ac_try='test -z "$ac_cxx_werror_flag"
22878 || test ! -s conftest.err'
22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880 (eval $ac_try) 2>&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; } &&
22884 { ac_try='test -s conftest.$ac_objext'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 ac_cv_func_std_isinf_in_cmath=yes
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 ac_cv_func_std_isinf_in_cmath=no
22897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22899 ac_cpp='$CPP $CPPFLAGS'
22900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22905 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22906 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22907 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_STD_ISINF_IN_CMATH 1
22915 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22916 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22917 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22921 ac_cpp='$CXXCPP $CPPFLAGS'
22922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 #include <ieeefp.h>
22933 int foo(float f) {return finite(f);}
22935 rm -f conftest.$ac_objext
22936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22937 (eval $ac_compile) 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } &&
22944 { ac_try='test -z "$ac_cxx_werror_flag"
22945 || test ! -s conftest.err'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } &&
22951 { ac_try='test -s conftest.$ac_objext'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 ac_cv_func_finite_in_ieeefp_h=yes
22959 echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_cv_func_finite_in_ieeefp_h=no
22964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22966 ac_cpp='$CPP $CPPFLAGS'
22967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22972 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22973 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22974 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22977 cat >>confdefs.h <<\_ACEOF
22978 #define HAVE_FINITE_IN_IEEEFP_H 1
22984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22985 # for constant arguments. Useless!
22986 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22987 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22988 if test "${ac_cv_working_alloca_h+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 #include <alloca.h>
23001 char *p = (char *) alloca (2 * sizeof (int));
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008 (eval $ac_link) 2>conftest.er1
23010 grep -v '^ *+' conftest.er1 >conftest.err
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
23015 { ac_try='test -z "$ac_c_werror_flag"
23016 || test ! -s conftest.err'
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest$ac_exeext'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ac_cv_working_alloca_h=yes
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ac_cv_working_alloca_h=no
23035 rm -f conftest.err conftest.$ac_objext \
23036 conftest$ac_exeext conftest.$ac_ext
23038 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23039 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23040 if test $ac_cv_working_alloca_h = yes; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE_ALLOCA_H 1
23048 echo "$as_me:$LINENO: checking for alloca" >&5
23049 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23050 if test "${ac_cv_func_alloca_works+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23060 # define alloca __builtin_alloca
23063 # include <malloc.h>
23064 # define alloca _alloca
23067 # include <alloca.h>
23072 # ifndef alloca /* predefined by HP cc +Olibcalls */
23083 char *p = (char *) alloca (1);
23088 rm -f conftest.$ac_objext conftest$ac_exeext
23089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23090 (eval $ac_link) 2>conftest.er1
23092 grep -v '^ *+' conftest.er1 >conftest.err
23094 cat conftest.err >&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } &&
23097 { ac_try='test -z "$ac_c_werror_flag"
23098 || test ! -s conftest.err'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; } &&
23104 { ac_try='test -s conftest$ac_exeext'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 ac_cv_func_alloca_works=yes
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 ac_cv_func_alloca_works=no
23117 rm -f conftest.err conftest.$ac_objext \
23118 conftest$ac_exeext conftest.$ac_ext
23120 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23121 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23123 if test $ac_cv_func_alloca_works = yes; then
23125 cat >>confdefs.h <<\_ACEOF
23126 #define HAVE_ALLOCA 1
23130 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23131 # that cause trouble. Some versions do not even contain alloca or
23132 # contain a buggy version. If you still want to use their alloca,
23133 # use ar to extract alloca.o from them instead of compiling alloca.c.
23135 ALLOCA=alloca.$ac_objext
23137 cat >>confdefs.h <<\_ACEOF
23142 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23143 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23144 if test "${ac_cv_os_cray+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 #if defined(CRAY) && ! defined(CRAY2)
23160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161 $EGREP "webecray" >/dev/null 2>&1; then
23169 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23170 echo "${ECHO_T}$ac_cv_os_cray" >&6
23171 if test $ac_cv_os_cray = yes; then
23172 for ac_func in _getb67 GETB67 getb67; do
23173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23174 echo "$as_me:$LINENO: checking for $ac_func" >&5
23175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23176 if eval "test \"\${$as_ac_var+set}\" = set"; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23187 #define $ac_func innocuous_$ac_func
23189 /* System header to define __stub macros and hopefully few prototypes,
23190 which can conflict with char $ac_func (); below.
23191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23192 <limits.h> exists even on freestanding compilers. */
23195 # include <limits.h>
23197 # include <assert.h>
23202 /* Override any gcc2 internal prototype to avoid an error. */
23207 /* We use char because int might match the return type of a gcc2
23208 builtin and then its argument prototype would still apply. */
23210 /* The GNU C library defines this for functions which it implements
23211 to always fail with ENOSYS. Some functions are actually named
23212 something starting with __ and the normal name is an alias. */
23213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23216 char (*f) () = $ac_func;
23225 return f != $ac_func;
23230 rm -f conftest.$ac_objext conftest$ac_exeext
23231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23232 (eval $ac_link) 2>conftest.er1
23234 grep -v '^ *+' conftest.er1 >conftest.err
23236 cat conftest.err >&5
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
23239 { ac_try='test -z "$ac_c_werror_flag"
23240 || test ! -s conftest.err'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; } &&
23246 { ac_try='test -s conftest$ac_exeext'
23247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 eval "$as_ac_var=yes"
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 eval "$as_ac_var=no"
23259 rm -f conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
23262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23264 if test `eval echo '${'$as_ac_var'}'` = yes; then
23266 cat >>confdefs.h <<_ACEOF
23267 #define CRAY_STACKSEG_END $ac_func
23276 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23277 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23278 if test "${ac_cv_c_stack_direction+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 if test "$cross_compiling" = yes; then
23282 ac_cv_c_stack_direction=0
23284 cat >conftest.$ac_ext <<_ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23291 find_stack_direction ()
23293 static char *addr = 0;
23298 return find_stack_direction ();
23301 return (&dummy > addr) ? 1 : -1;
23307 exit (find_stack_direction () < 0);
23310 rm -f conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312 (eval $ac_link) 2>&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 ac_cv_c_stack_direction=1
23323 echo "$as_me: program exited with status $ac_status" >&5
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 ( exit $ac_status )
23328 ac_cv_c_stack_direction=-1
23330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23333 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23336 cat >>confdefs.h <<_ACEOF
23337 #define STACK_DIRECTION $ac_cv_c_stack_direction
23345 for ac_header in stdlib.h unistd.h
23347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23349 echo "$as_me:$LINENO: checking for $ac_header" >&5
23350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23357 # Is the header compilable?
23358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23366 $ac_includes_default
23367 #include <$ac_header>
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag"
23379 || test ! -s conftest.err'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; } &&
23385 { ac_try='test -s conftest.$ac_objext'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }; then
23391 ac_header_compiler=yes
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ac_header_compiler=no
23398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23400 echo "${ECHO_T}$ac_header_compiler" >&6
23402 # Is the header present?
23403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23405 cat >conftest.$ac_ext <<_ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h. */
23411 #include <$ac_header>
23413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } >/dev/null; then
23421 if test -s conftest.err; then
23422 ac_cpp_err=$ac_c_preproc_warn_flag
23423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23430 if test -z "$ac_cpp_err"; then
23431 ac_header_preproc=yes
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ac_header_preproc=no
23438 rm -f conftest.err conftest.$ac_ext
23439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23440 echo "${ECHO_T}$ac_header_preproc" >&6
23442 # So? What about this header?
23443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23449 ac_header_preproc=yes
23452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23466 ## ----------------------------------- ##
23467 ## Report this to llvmbugs@cs.uiuc.edu ##
23468 ## ----------------------------------- ##
23471 sed "s/^/$as_me: WARNING: /" >&2
23474 echo "$as_me:$LINENO: checking for $ac_header" >&5
23475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 eval "$as_ac_Header=\$ac_header_preproc"
23481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23495 for ac_func in getpagesize
23497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23498 echo "$as_me:$LINENO: checking for $ac_func" >&5
23499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23500 if eval "test \"\${$as_ac_var+set}\" = set"; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 cat >conftest.$ac_ext <<_ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h. */
23509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23511 #define $ac_func innocuous_$ac_func
23513 /* System header to define __stub macros and hopefully few prototypes,
23514 which can conflict with char $ac_func (); below.
23515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23516 <limits.h> exists even on freestanding compilers. */
23519 # include <limits.h>
23521 # include <assert.h>
23526 /* Override any gcc2 internal prototype to avoid an error. */
23531 /* We use char because int might match the return type of a gcc2
23532 builtin and then its argument prototype would still apply. */
23534 /* The GNU C library defines this for functions which it implements
23535 to always fail with ENOSYS. Some functions are actually named
23536 something starting with __ and the normal name is an alias. */
23537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23540 char (*f) () = $ac_func;
23549 return f != $ac_func;
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556 (eval $ac_link) 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag"
23564 || test ! -s conftest.err'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } &&
23570 { ac_try='test -s conftest$ac_exeext'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; }; then
23576 eval "$as_ac_var=yes"
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 eval "$as_ac_var=no"
23583 rm -f conftest.err conftest.$ac_objext \
23584 conftest$ac_exeext conftest.$ac_ext
23586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23588 if test `eval echo '${'$as_ac_var'}'` = yes; then
23589 cat >>confdefs.h <<_ACEOF
23590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23596 echo "$as_me:$LINENO: checking for working mmap" >&5
23597 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23598 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23601 if test "$cross_compiling" = yes; then
23602 ac_cv_func_mmap_fixed_mapped=no
23604 cat >conftest.$ac_ext <<_ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23610 $ac_includes_default
23611 /* malloc might have been renamed as rpl_malloc. */
23614 /* Thanks to Mike Haertel and Jim Avera for this test.
23615 Here is a matrix of mmap possibilities:
23616 mmap private not fixed
23617 mmap private fixed at somewhere currently unmapped
23618 mmap private fixed at somewhere already mapped
23619 mmap shared not fixed
23620 mmap shared fixed at somewhere currently unmapped
23621 mmap shared fixed at somewhere already mapped
23622 For private mappings, we should verify that changes cannot be read()
23623 back from the file, nor mmap's back from the file at a different
23624 address. (There have been systems where private was not correctly
23625 implemented like the infamous i386 svr4.0, and systems where the
23626 VM page cache was not coherent with the file system buffer cache
23627 like early versions of FreeBSD and possibly contemporary NetBSD.)
23628 For shared mappings, we should conversely verify that changes get
23629 propagated back to all the places they're supposed to be.
23631 Grep wants private fixed already mapped.
23632 The main things grep needs to know about mmap are:
23633 * does it exist and is it safe to write into the mmap'd area
23634 * how to use it (BSD variants) */
23637 #include <sys/mman.h>
23639 #if !STDC_HEADERS && !HAVE_STDLIB_H
23643 /* This mess was copied from the GNU getpagesize.h. */
23644 #if !HAVE_GETPAGESIZE
23645 /* Assume that all systems that can run configure have sys/param.h. */
23646 # if !HAVE_SYS_PARAM_H
23647 # define HAVE_SYS_PARAM_H 1
23650 # ifdef _SC_PAGESIZE
23651 # define getpagesize() sysconf(_SC_PAGESIZE)
23652 # else /* no _SC_PAGESIZE */
23653 # if HAVE_SYS_PARAM_H
23654 # include <sys/param.h>
23655 # ifdef EXEC_PAGESIZE
23656 # define getpagesize() EXEC_PAGESIZE
23657 # else /* no EXEC_PAGESIZE */
23659 # define getpagesize() NBPG * CLSIZE
23662 # endif /* no CLSIZE */
23663 # else /* no NBPG */
23665 # define getpagesize() NBPC
23666 # else /* no NBPC */
23668 # define getpagesize() PAGESIZE
23669 # endif /* PAGESIZE */
23670 # endif /* no NBPC */
23671 # endif /* no NBPG */
23672 # endif /* no EXEC_PAGESIZE */
23673 # else /* no HAVE_SYS_PARAM_H */
23674 # define getpagesize() 8192 /* punt totally */
23675 # endif /* no HAVE_SYS_PARAM_H */
23676 # endif /* no _SC_PAGESIZE */
23678 #endif /* no HAVE_GETPAGESIZE */
23683 char *data, *data2, *data3;
23687 pagesize = getpagesize ();
23689 /* First, make a file with some known garbage in it. */
23690 data = (char *) malloc (pagesize);
23693 for (i = 0; i < pagesize; ++i)
23694 *(data + i) = rand ();
23696 fd = creat ("conftest.mmap", 0600);
23699 if (write (fd, data, pagesize) != pagesize)
23703 /* Next, try to mmap the file at a fixed address which already has
23704 something else allocated at it. If we can, also make sure that
23705 we see the same garbage. */
23706 fd = open ("conftest.mmap", O_RDWR);
23709 data2 = (char *) malloc (2 * pagesize);
23712 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23713 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23714 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23716 for (i = 0; i < pagesize; ++i)
23717 if (*(data + i) != *(data2 + i))
23720 /* Finally, make sure that changes to the mapped area do not
23721 percolate back to the file as seen by read(). (This is a bug on
23722 some variants of i386 svr4.0.) */
23723 for (i = 0; i < pagesize; ++i)
23724 *(data2 + i) = *(data2 + i) + 1;
23725 data3 = (char *) malloc (pagesize);
23728 if (read (fd, data3, pagesize) != pagesize)
23730 for (i = 0; i < pagesize; ++i)
23731 if (*(data + i) != *(data3 + i))
23737 rm -f conftest$ac_exeext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23739 (eval $ac_link) 2>&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; }; then
23748 ac_cv_func_mmap_fixed_mapped=yes
23750 echo "$as_me: program exited with status $ac_status" >&5
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 ( exit $ac_status )
23755 ac_cv_func_mmap_fixed_mapped=no
23757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23760 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23761 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23762 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23764 cat >>confdefs.h <<\_ACEOF
23765 #define HAVE_MMAP 1
23769 rm -f conftest.mmap
23771 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23773 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23774 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23776 echo "$as_me:$LINENO: checking for mmap of files" >&5
23777 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23778 if test "${ac_cv_func_mmap_file+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 ac_cpp='$CPP $CPPFLAGS'
23783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23787 if test "$cross_compiling" = yes; then
23788 ac_cv_func_mmap_file=no
23790 cat >conftest.$ac_ext <<_ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h. */
23798 #include <sys/types.h>
23799 #include <sys/mman.h>
23807 fd = creat ("foo",0777);
23808 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23810 return (fd != (int) MAP_FAILED);
23815 rm -f conftest$ac_exeext
23816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23817 (eval $ac_link) 2>&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; }; then
23826 ac_cv_func_mmap_file=yes
23828 echo "$as_me: program exited with status $ac_status" >&5
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23832 ( exit $ac_status )
23833 ac_cv_func_mmap_file=no
23835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23838 ac_cpp='$CPP $CPPFLAGS'
23839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23845 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23846 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23847 if test "$ac_cv_func_mmap_file" = yes; then
23849 cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_MMAP_FILE
23857 if test "$ac_cv_func_mmap_file" = "no"
23859 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23860 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23862 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23863 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23864 if test "${ac_cv_header_mmap_anon+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 ac_cpp='$CPP $CPPFLAGS'
23869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23873 cat >conftest.$ac_ext <<_ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h. */
23879 #include <sys/mman.h>
23880 #include <unistd.h>
23885 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23890 rm -f conftest.$ac_objext
23891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23892 (eval $ac_compile) 2>conftest.er1
23894 grep -v '^ *+' conftest.er1 >conftest.err
23896 cat conftest.err >&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } &&
23899 { ac_try='test -z "$ac_c_werror_flag"
23900 || test ! -s conftest.err'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; } &&
23906 { ac_try='test -s conftest.$ac_objext'
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; }; then
23912 ac_cv_header_mmap_anon=yes
23914 echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23917 ac_cv_header_mmap_anon=no
23919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
23928 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23929 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23930 if test "$ac_cv_header_mmap_anon" = yes; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_MMAP_ANONYMOUS
23938 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23939 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23940 if test "${ac_cv_type_signal+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23943 cat >conftest.$ac_ext <<_ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23949 #include <sys/types.h>
23950 #include <signal.h>
23955 extern "C" void (*signal (int, void (*)(int)))(int);
23957 void (*signal ()) ();
23968 rm -f conftest.$ac_objext
23969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23970 (eval $ac_compile) 2>conftest.er1
23972 grep -v '^ *+' conftest.er1 >conftest.err
23974 cat conftest.err >&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } &&
23977 { ac_try='test -z "$ac_c_werror_flag"
23978 || test ! -s conftest.err'
23979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980 (eval $ac_try) 2>&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; } &&
23984 { ac_try='test -s conftest.$ac_objext'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; }; then
23990 ac_cv_type_signal=void
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ac_cv_type_signal=int
23997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23999 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24000 echo "${ECHO_T}$ac_cv_type_signal" >&6
24002 cat >>confdefs.h <<_ACEOF
24003 #define RETSIGTYPE $ac_cv_type_signal
24016 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24019 echo "$as_me:$LINENO: checking for $ac_func" >&5
24020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24021 if eval "test \"\${$as_ac_var+set}\" = set"; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24032 #define $ac_func innocuous_$ac_func
24034 /* System header to define __stub macros and hopefully few prototypes,
24035 which can conflict with char $ac_func (); below.
24036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037 <limits.h> exists even on freestanding compilers. */
24040 # include <limits.h>
24042 # include <assert.h>
24047 /* Override any gcc2 internal prototype to avoid an error. */
24052 /* We use char because int might match the return type of a gcc2
24053 builtin and then its argument prototype would still apply. */
24055 /* The GNU C library defines this for functions which it implements
24056 to always fail with ENOSYS. Some functions are actually named
24057 something starting with __ and the normal name is an alias. */
24058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24061 char (*f) () = $ac_func;
24070 return f != $ac_func;
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077 (eval $ac_link) 2>conftest.er1
24079 grep -v '^ *+' conftest.er1 >conftest.err
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } &&
24084 { ac_try='test -z "$ac_c_werror_flag"
24085 || test ! -s conftest.err'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; } &&
24091 { ac_try='test -s conftest$ac_exeext'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 eval "$as_ac_var=yes"
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 eval "$as_ac_var=no"
24104 rm -f conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
24107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24109 if test `eval echo '${'$as_ac_var'}'` = yes; then
24110 cat >>confdefs.h <<_ACEOF
24111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24117 echo "$as_me:$LINENO: checking for mprotect" >&5
24118 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24119 if test "${ac_cv_func_mprotect+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24130 #define mprotect innocuous_mprotect
24132 /* System header to define __stub macros and hopefully few prototypes,
24133 which can conflict with char mprotect (); below.
24134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24135 <limits.h> exists even on freestanding compilers. */
24138 # include <limits.h>
24140 # include <assert.h>
24145 /* Override any gcc2 internal prototype to avoid an error. */
24150 /* We use char because int might match the return type of a gcc2
24151 builtin and then its argument prototype would still apply. */
24153 /* The GNU C library defines this for functions which it implements
24154 to always fail with ENOSYS. Some functions are actually named
24155 something starting with __ and the normal name is an alias. */
24156 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24159 char (*f) () = mprotect;
24168 return f != mprotect;
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24175 (eval $ac_link) 2>conftest.er1
24177 grep -v '^ *+' conftest.er1 >conftest.err
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } &&
24182 { ac_try='test -z "$ac_c_werror_flag"
24183 || test ! -s conftest.err'
24184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24185 (eval $ac_try) 2>&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; } &&
24189 { ac_try='test -s conftest$ac_exeext'
24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; }; then
24195 ac_cv_func_mprotect=yes
24197 echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24200 ac_cv_func_mprotect=no
24202 rm -f conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
24205 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24206 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24207 if test $ac_cv_func_mprotect = yes; then
24210 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24211 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24212 { (exit 1); exit 1; }; }
24217 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24218 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24220 ac_cpp='$CPP $CPPFLAGS'
24221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24225 oldcflags="$CFLAGS"
24226 CFLAGS="$CFLAGS -Wl,-R."
24227 cat >conftest.$ac_ext <<_ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h. */
24237 int main() { return 0; }
24242 rm -f conftest.$ac_objext conftest$ac_exeext
24243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24244 (eval $ac_link) 2>conftest.er1
24246 grep -v '^ *+' conftest.er1 >conftest.err
24248 cat conftest.err >&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } &&
24251 { ac_try='test -z "$ac_c_werror_flag"
24252 || test ! -s conftest.err'
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; } &&
24258 { ac_try='test -s conftest$ac_exeext'
24259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; }; then
24264 ac_cv_link_use_r=yes
24266 echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24269 ac_cv_link_use_r=no
24271 rm -f conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
24273 CFLAGS="$oldcflags"
24275 ac_cpp='$CPP $CPPFLAGS'
24276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24280 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24281 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24282 if test "$ac_cv_link_use_r" = yes
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_LINK_R 1
24292 # Check whether --enable-optimized or --disable-optimized was given.
24293 if test "${enable_optimized+set}" = set; then
24294 enableval="$enable_optimized"
24299 if test ${enableval} = "no"
24304 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24308 # Check whether --enable-jit or --disable-jit was given.
24309 if test "${enable_jit+set}" = set; then
24310 enableval="$enable_jit"
24315 if test ${enableval} = "no"
24322 JIT=TARGET_HAS_JIT=1
24326 JIT=TARGET_HAS_JIT=1
24337 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24338 if test "${with_llvmgccdir+set}" = set; then
24339 withval="$with_llvmgccdir"
24340 LLVMGCCDIR=$withval
24343 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24344 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24346 if test -d "$LLVMGCCDIR"
24348 if test -x "$LLVMGCCDIR/bin/gcc"
24350 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24354 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24355 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24356 if test "$LLVM_GCC_CHECK" = "no"
24360 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24361 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24363 if test -x "$LLVM_GCC_CHECK"
24365 cp /dev/null conftest.c
24366 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24372 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24373 LLVMCC1=$llvmcc1path
24375 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24376 LLVMCC1PLUS=$llvmcc1pluspath
24379 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24380 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24381 if test "$LLVM_GCC_SANE" = "no"
24386 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24387 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24388 eval "SHLIBEXT=$shrext_cmds"
24389 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24390 echo "${ECHO_T}$SHLIBEXT" >&6
24394 cat >>confdefs.h <<_ACEOF
24395 #define SHLIBEXT "$SHLIBEXT"
24399 # Translate the various configuration directories and other basic
24400 # information into substitutions that will end up in config.h.in so
24401 # that these configured values can be hard-wired into a program.
24402 eval LLVM_PREFIX="${prefix}";
24403 eval LLVM_BINDIR="${prefix}/bin";
24404 eval LLVM_LIBDIR="${prefix}/lib";
24405 eval LLVM_DATADIR="${prefix}/data";
24406 eval LLVM_DOCSDIR="${prefix}/docs";
24407 eval LLVM_ETCDIR="${prefix}/etc";
24408 eval LLVM_INCLUDEDIR="${prefix}/include";
24409 eval LLVM_INFODIR="${prefix}/info";
24410 eval LLVM_MANDIR="${prefix}/man";
24411 LLVM_CONFIGTIME=`date`
24423 cat >>confdefs.h <<_ACEOF
24424 #define LLVM_PREFIX "$LLVM_PREFIX"
24428 cat >>confdefs.h <<_ACEOF
24429 #define LLVM_BINDIR "$LLVM_BINDIR"
24433 cat >>confdefs.h <<_ACEOF
24434 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24438 cat >>confdefs.h <<_ACEOF
24439 #define LLVM_DATADIR "$LLVM_DATADIR"
24443 cat >>confdefs.h <<_ACEOF
24444 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24448 cat >>confdefs.h <<_ACEOF
24449 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24453 cat >>confdefs.h <<_ACEOF
24454 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24458 cat >>confdefs.h <<_ACEOF
24459 #define LLVM_INFODIR "$LLVM_INFODIR"
24463 cat >>confdefs.h <<_ACEOF
24464 #define LLVM_MANDIR "$LLVM_MANDIR"
24468 cat >>confdefs.h <<_ACEOF
24469 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24473 cat >confcache <<\_ACEOF
24474 # This file is a shell script that caches the results of configure
24475 # tests run on this system so they can be shared between configure
24476 # scripts and configure runs, see configure's option --config-cache.
24477 # It is not useful on other systems. If it contains results you don't
24478 # want to keep, you may remove or edit it.
24480 # config.status only pays attention to the cache file if you give it
24481 # the --recheck option to rerun configure.
24483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24485 # following values.
24489 # The following way of writing the cache mishandles newlines in values,
24490 # but we know of no workaround that is simple, portable, and efficient.
24491 # So, don't put newlines in cache variables' values.
24492 # Ultrix sh set writes to stderr and can't be redirected directly,
24493 # and sets the high bit in the cache file unless we assign to the vars.
24496 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24498 # `set' does not quote correctly, so add quotes (double-quote
24499 # substitution turns \\\\ into \\, and sed turns \\ into \).
24502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24505 # `set' quotes correctly as required by POSIX, so do not add quotes.
24507 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24516 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24518 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24519 if test -w $cache_file; then
24520 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24521 cat confcache >$cache_file
24523 echo "not updating unwritable cache $cache_file"
24528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24529 # Let make expand exec_prefix.
24530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24532 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24533 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24534 # trailing colons and then remove the whole line if VPATH becomes empty
24535 # (actually we leave an empty line to preserve line numbers).
24536 if test "x$srcdir" = x.; then
24537 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24538 s/:*\$(srcdir):*/:/;
24539 s/:*\${srcdir}:*/:/;
24541 s/^\([^=]*=[ ]*\):*/\1/;
24547 DEFS=-DHAVE_CONFIG_H
24551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24552 # 1. Remove the extension, and $U if already installed.
24553 ac_i=`echo "$ac_i" |
24554 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24556 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24557 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24559 LIBOBJS=$ac_libobjs
24561 LTLIBOBJS=$ac_ltlibobjs
24565 : ${CONFIG_STATUS=./config.status}
24566 ac_clean_files_save=$ac_clean_files
24567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24570 cat >$CONFIG_STATUS <<_ACEOF
24572 # Generated by $as_me.
24573 # Run this file to recreate the current configuration.
24574 # Compiler output produced by configure, useful for debugging
24575 # configure, is in config.log if it exists.
24578 ac_cs_recheck=false
24580 SHELL=\${CONFIG_SHELL-$SHELL}
24583 cat >>$CONFIG_STATUS <<\_ACEOF
24584 ## --------------------- ##
24585 ## M4sh Initialization. ##
24586 ## --------------------- ##
24588 # Be Bourne compatible
24589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24593 # is contrary to our usage. Disable this feature.
24594 alias -g '${1+"$@"}'='"$@"'
24595 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24598 DUALCASE=1; export DUALCASE # for MKS sh
24600 # Support unset when possible.
24601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24608 # Work around bugs in pre-3.0 UWIN ksh.
24609 $as_unset ENV MAIL MAILPATH
24616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24618 LC_TELEPHONE LC_TIME
24620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24621 eval $as_var=C; export $as_var
24627 # Required to use basename.
24628 if expr a : '\(a\)' >/dev/null 2>&1; then
24634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24635 as_basename=basename
24641 # Name of the executable.
24642 as_me=`$as_basename "$0" ||
24643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24644 X"$0" : 'X\(//\)$' \| \
24645 X"$0" : 'X\(/\)$' \| \
24646 . : '\(.\)' 2>/dev/null ||
24648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24649 /^X\/\(\/\/\)$/{ s//\1/; q; }
24650 /^X\/\(\/\).*/{ s//\1/; q; }
24654 # PATH needs CR, and LINENO needs CR and PATH.
24655 # Avoid depending upon Character Ranges.
24656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24659 as_cr_digits='0123456789'
24660 as_cr_alnum=$as_cr_Letters$as_cr_digits
24662 # The user is always right.
24663 if test "${PATH_SEPARATOR+set}" != set; then
24664 echo "#! /bin/sh" >conf$$.sh
24665 echo "exit 0" >>conf$$.sh
24667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24676 as_lineno_1=$LINENO
24677 as_lineno_2=$LINENO
24678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24679 test "x$as_lineno_1" != "x$as_lineno_2" &&
24680 test "x$as_lineno_3" = "x$as_lineno_2" || {
24681 # Find who we are. Look in the path if we contain no path at all
24684 *[\\/]* ) as_myself=$0 ;;
24685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24686 for as_dir in $PATH
24689 test -z "$as_dir" && as_dir=.
24690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24695 # We did not find ourselves, most probably we were run as `sh COMMAND'
24696 # in which case we are not to be found in the path.
24697 if test "x$as_myself" = x; then
24700 if test ! -f "$as_myself"; then
24701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24703 { (exit 1); exit 1; }; }
24705 case $CONFIG_SHELL in
24707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24711 test -z "$as_dir" && as_dir=.
24712 for as_base in sh bash ksh sh5; do
24715 if ("$as_dir/$as_base" -c '
24716 as_lineno_1=$LINENO
24717 as_lineno_2=$LINENO
24718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24719 test "x$as_lineno_1" != "x$as_lineno_2" &&
24720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24723 CONFIG_SHELL=$as_dir/$as_base
24724 export CONFIG_SHELL
24725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24734 # uniformly replaced by the line number. The first 'sed' inserts a
24735 # line-number line before each line; the second 'sed' does the real
24736 # work. The second script uses 'N' to pair each line-number line
24737 # with the numbered line, and appends trailing '-' during
24738 # substitution so that $LINENO is not a special case at line end.
24739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24741 sed '=' <$as_myself |
24746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24749 s,^['$as_cr_digits']*\n,,
24750 ' >$as_me.lineno &&
24751 chmod +x $as_me.lineno ||
24752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24754 { (exit 1); exit 1; }; }
24756 # Don't try to exec as it changes $[0], causing all sort of problems
24757 # (the dirname of $[0] is not the place where we might find the
24758 # original and so on. Autoconf is especially sensible to this).
24760 # Exit status is that of the last command.
24765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24766 *c*,-n*) ECHO_N= ECHO_C='
24768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24772 if expr a : '\(a\)' >/dev/null 2>&1; then
24778 rm -f conf$$ conf$$.exe conf$$.file
24780 if ln -s conf$$.file conf$$ 2>/dev/null; then
24781 # We could just check for DJGPP; but this test a) works b) is more generic
24782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24783 if test -f conf$$.exe; then
24784 # Don't use ln at all; we don't have any links
24789 elif ln conf$$.file conf$$ 2>/dev/null; then
24794 rm -f conf$$ conf$$.exe conf$$.file
24796 if mkdir -p . 2>/dev/null; then
24799 test -d ./-p && rmdir ./-p
24803 as_executable_p="test -f"
24805 # Sed expression to map a string onto a valid CPP name.
24806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24808 # Sed expression to map a string onto a valid variable name.
24809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24813 # We need space, tab and new line, in precisely that order.
24823 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24824 # report actual input values of CONFIG_FILES etc. instead of their
24825 # values after options handling. Logging --version etc. is OK.
24829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24830 ## Running $as_me. ##
24835 This file was extended by LLVM $as_me 1.4, which was
24836 generated by GNU Autoconf 2.59. Invocation command line was
24838 CONFIG_FILES = $CONFIG_FILES
24839 CONFIG_HEADERS = $CONFIG_HEADERS
24840 CONFIG_LINKS = $CONFIG_LINKS
24841 CONFIG_COMMANDS = $CONFIG_COMMANDS
24845 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24849 # Files that config.status was made for.
24850 if test -n "$ac_config_files"; then
24851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24854 if test -n "$ac_config_headers"; then
24855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24858 if test -n "$ac_config_links"; then
24859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24862 if test -n "$ac_config_commands"; then
24863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24866 cat >>$CONFIG_STATUS <<\_ACEOF
24869 \`$as_me' instantiates files from templates according to the
24870 current configuration.
24872 Usage: $0 [OPTIONS] [FILE]...
24874 -h, --help print this help, then exit
24875 -V, --version print version number, then exit
24876 -q, --quiet do not print progress messages
24877 -d, --debug don't remove temporary files
24878 --recheck update $as_me by reconfiguring in the same conditions
24879 --file=FILE[:TEMPLATE]
24880 instantiate the configuration file FILE
24881 --header=FILE[:TEMPLATE]
24882 instantiate the configuration header FILE
24884 Configuration files:
24887 Configuration headers:
24890 Configuration links:
24893 Configuration commands:
24896 Report bugs to <bug-autoconf@gnu.org>."
24899 cat >>$CONFIG_STATUS <<_ACEOF
24901 LLVM config.status 1.4
24902 configured by $0, generated by GNU Autoconf 2.59,
24903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24905 Copyright (C) 2003 Free Software Foundation, Inc.
24906 This config.status script is free software; the Free Software Foundation
24907 gives unlimited permission to copy, distribute and modify it."
24912 cat >>$CONFIG_STATUS <<\_ACEOF
24913 # If no file are specified by the user, then we need to provide default
24914 # value. By we need to know if files were specified by the user.
24920 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24921 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24929 *) # This is not an option, so the user has probably given explicit
24932 ac_need_defaults=false;;
24936 # Handling of the options.
24938 cat >>$CONFIG_STATUS <<\_ACEOF
24939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24941 --version | --vers* | -V )
24942 echo "$ac_cs_version"; exit 0 ;;
24944 # Conflict between --help and --header
24945 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24946 Try \`$0 --help' for more information." >&5
24947 echo "$as_me: error: ambiguous option: $1
24948 Try \`$0 --help' for more information." >&2;}
24949 { (exit 1); exit 1; }; };;
24950 --help | --hel | -h )
24951 echo "$ac_cs_usage"; exit 0 ;;
24952 --debug | --d* | -d )
24954 --file | --fil | --fi | --f )
24956 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24957 ac_need_defaults=false;;
24958 --header | --heade | --head | --hea )
24960 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24961 ac_need_defaults=false;;
24962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24966 # This is an error.
24967 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24968 Try \`$0 --help' for more information." >&5
24969 echo "$as_me: error: unrecognized option: $1
24970 Try \`$0 --help' for more information." >&2;}
24971 { (exit 1); exit 1; }; } ;;
24973 *) ac_config_targets="$ac_config_targets $1" ;;
24979 ac_configure_extra_args=
24981 if $ac_cs_silent; then
24983 ac_configure_extra_args="$ac_configure_extra_args --silent"
24987 cat >>$CONFIG_STATUS <<_ACEOF
24988 if \$ac_cs_recheck; then
24989 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24990 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24995 cat >>$CONFIG_STATUS <<_ACEOF
24997 # INIT-COMMANDS section.
25000 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25001 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25002 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25003 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25004 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25005 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25006 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25007 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25008 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25009 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25010 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25011 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25017 cat >>$CONFIG_STATUS <<\_ACEOF
25018 for ac_config_target in $ac_config_targets
25020 case "$ac_config_target" in
25021 # Handling of arguments.
25022 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25023 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25024 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25025 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25026 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25027 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25028 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25029 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25030 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25031 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25032 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25033 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25034 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25035 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25036 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25037 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25038 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25039 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25040 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25041 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25042 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25043 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25044 { (exit 1); exit 1; }; };;
25048 # If the user did not use the arguments to specify the items to instantiate,
25049 # then the envvar interface is used. Set only those that are not.
25050 # We use the long form for the default assignment because of an extremely
25051 # bizarre bug on SunOS 4.1.3.
25052 if $ac_need_defaults; then
25053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25055 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25059 # Have a temporary directory for convenience. Make it in the build tree
25060 # simply because there is no reason to put it here, and in addition,
25061 # creating and moving files from /tmp can sometimes cause problems.
25062 # Create a temporary directory, and hook for its removal unless debugging.
25065 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25066 trap '{ (exit 1); exit 1; }' 1 2 13 15
25069 # Create a (secure) tmp directory for tmp files.
25072 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25073 test -n "$tmp" && test -d "$tmp"
25076 tmp=./confstat$$-$RANDOM
25077 (umask 077 && mkdir $tmp)
25080 echo "$me: cannot create a temporary directory in ." >&2
25081 { (exit 1); exit 1; }
25086 cat >>$CONFIG_STATUS <<_ACEOF
25089 # CONFIG_FILES section.
25092 # No need to generate the scripts if there are no CONFIG_FILES.
25093 # This happens for instance when ./config.status config.h
25094 if test -n "\$CONFIG_FILES"; then
25095 # Protect against being on the right side of a sed subst in config.status.
25096 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25097 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25098 s,@SHELL@,$SHELL,;t t
25099 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25100 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25101 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25102 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25103 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25104 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25105 s,@exec_prefix@,$exec_prefix,;t t
25106 s,@prefix@,$prefix,;t t
25107 s,@program_transform_name@,$program_transform_name,;t t
25108 s,@bindir@,$bindir,;t t
25109 s,@sbindir@,$sbindir,;t t
25110 s,@libexecdir@,$libexecdir,;t t
25111 s,@datadir@,$datadir,;t t
25112 s,@sysconfdir@,$sysconfdir,;t t
25113 s,@sharedstatedir@,$sharedstatedir,;t t
25114 s,@localstatedir@,$localstatedir,;t t
25115 s,@libdir@,$libdir,;t t
25116 s,@includedir@,$includedir,;t t
25117 s,@oldincludedir@,$oldincludedir,;t t
25118 s,@infodir@,$infodir,;t t
25119 s,@mandir@,$mandir,;t t
25120 s,@build_alias@,$build_alias,;t t
25121 s,@host_alias@,$host_alias,;t t
25122 s,@target_alias@,$target_alias,;t t
25123 s,@DEFS@,$DEFS,;t t
25124 s,@ECHO_C@,$ECHO_C,;t t
25125 s,@ECHO_N@,$ECHO_N,;t t
25126 s,@ECHO_T@,$ECHO_T,;t t
25127 s,@LIBS@,$LIBS,;t t
25128 s,@subdirs@,$subdirs,;t t
25129 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25130 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25131 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25132 s,@build@,$build,;t t
25133 s,@build_cpu@,$build_cpu,;t t
25134 s,@build_vendor@,$build_vendor,;t t
25135 s,@build_os@,$build_os,;t t
25136 s,@host@,$host,;t t
25137 s,@host_cpu@,$host_cpu,;t t
25138 s,@host_vendor@,$host_vendor,;t t
25139 s,@host_os@,$host_os,;t t
25140 s,@target@,$target,;t t
25141 s,@target_cpu@,$target_cpu,;t t
25142 s,@target_vendor@,$target_vendor,;t t
25143 s,@target_os@,$target_os,;t t
25145 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25146 s,@ARCH@,$ARCH,;t t
25148 s,@CXXFLAGS@,$CXXFLAGS,;t t
25149 s,@LDFLAGS@,$LDFLAGS,;t t
25150 s,@CPPFLAGS@,$CPPFLAGS,;t t
25151 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25152 s,@EXEEXT@,$EXEEXT,;t t
25153 s,@OBJEXT@,$OBJEXT,;t t
25155 s,@CFLAGS@,$CFLAGS,;t t
25156 s,@ac_ct_CC@,$ac_ct_CC,;t t
25158 s,@ifGNUmake@,$ifGNUmake,;t t
25160 s,@LEXLIB@,$LEXLIB,;t t
25161 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25162 s,@FLEX@,$FLEX,;t t
25163 s,@YACC@,$YACC,;t t
25164 s,@BISON@,$BISON,;t t
25165 s,@EGREP@,$EGREP,;t t
25166 s,@LN_S@,$LN_S,;t t
25167 s,@ECHO@,$ECHO,;t t
25169 s,@ac_ct_AR@,$ac_ct_AR,;t t
25170 s,@RANLIB@,$RANLIB,;t t
25171 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25172 s,@STRIP@,$STRIP,;t t
25173 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25174 s,@CXXCPP@,$CXXCPP,;t t
25176 s,@FFLAGS@,$FFLAGS,;t t
25177 s,@ac_ct_F77@,$ac_ct_F77,;t t
25178 s,@LIBTOOL@,$LIBTOOL,;t t
25180 s,@ETAGS@,$ETAGS,;t t
25181 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25182 s,@PYTHON@,$PYTHON,;t t
25183 s,@QMTEST@,$QMTEST,;t t
25184 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25185 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25186 s,@ENDIAN@,$ENDIAN,;t t
25187 s,@ALLOCA@,$ALLOCA,;t t
25188 s,@MMAP_FILE@,$MMAP_FILE,;t t
25189 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25191 s,@LLVMCC1@,$LLVMCC1,;t t
25192 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25193 s,@SHLIBEXT@,$SHLIBEXT,;t t
25194 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25195 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25196 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25197 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25198 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25199 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25200 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25201 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25202 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25203 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25204 s,@LIBOBJS@,$LIBOBJS,;t t
25205 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25210 cat >>$CONFIG_STATUS <<\_ACEOF
25211 # Split the substitutions into bite-sized pieces for seds with
25212 # small command number limits, like on Digital OSF/1 and HP-UX.
25213 ac_max_sed_lines=48
25214 ac_sed_frag=1 # Number of current file.
25215 ac_beg=1 # First line for current file.
25216 ac_end=$ac_max_sed_lines # Line after last line for current file.
25219 while $ac_more_lines; do
25220 if test $ac_beg -gt 1; then
25221 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25223 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25225 if test ! -s $tmp/subs.frag; then
25226 ac_more_lines=false
25228 # The purpose of the label and of the branching condition is to
25229 # speed up the sed processing (if there are no `@' at all, there
25230 # is no need to browse any of the substitutions).
25231 # These are the two extra sed commands mentioned above.
25233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25234 if test -z "$ac_sed_cmds"; then
25235 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25237 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25239 ac_sed_frag=`expr $ac_sed_frag + 1`
25241 ac_end=`expr $ac_end + $ac_max_sed_lines`
25244 if test -z "$ac_sed_cmds"; then
25247 fi # test -n "$CONFIG_FILES"
25250 cat >>$CONFIG_STATUS <<\_ACEOF
25251 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25254 - | *:- | *:-:* ) # input from stdin
25256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25260 * ) ac_file_in=$ac_file.in ;;
25263 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25264 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266 X"$ac_file" : 'X\(//\)[^/]' \| \
25267 X"$ac_file" : 'X\(//\)$' \| \
25268 X"$ac_file" : 'X\(/\)' \| \
25269 . : '\(.\)' 2>/dev/null ||
25271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25273 /^X\(\/\/\)$/{ s//\1/; q; }
25274 /^X\(\/\).*/{ s//\1/; q; }
25276 { if $as_mkdir_p; then
25281 while test ! -d "$as_dir"; do
25282 as_dirs="$as_dir $as_dirs"
25283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25285 X"$as_dir" : 'X\(//\)[^/]' \| \
25286 X"$as_dir" : 'X\(//\)$' \| \
25287 X"$as_dir" : 'X\(/\)' \| \
25288 . : '\(.\)' 2>/dev/null ||
25290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25292 /^X\(\/\/\)$/{ s//\1/; q; }
25293 /^X\(\/\).*/{ s//\1/; q; }
25296 test ! -n "$as_dirs" || mkdir $as_dirs
25297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25299 { (exit 1); exit 1; }; }; }
25303 if test "$ac_dir" != .; then
25304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25305 # A "../" for each directory in $ac_dir_suffix.
25306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25308 ac_dir_suffix= ac_top_builddir=
25312 .) # No --srcdir option. We are building in place.
25314 if test -z "$ac_top_builddir"; then
25317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25319 [\\/]* | ?:[\\/]* ) # Absolute path.
25320 ac_srcdir=$srcdir$ac_dir_suffix;
25321 ac_top_srcdir=$srcdir ;;
25322 *) # Relative path.
25323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25324 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25327 # Do not use `cd foo && pwd` to compute absolute paths, because
25328 # the directories may not exist.
25330 .) ac_abs_builddir="$ac_dir";;
25333 .) ac_abs_builddir=`pwd`;;
25334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25335 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25338 case $ac_abs_builddir in
25339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25341 case ${ac_top_builddir}. in
25342 .) ac_abs_top_builddir=$ac_abs_builddir;;
25343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25347 case $ac_abs_builddir in
25348 .) ac_abs_srcdir=$ac_srcdir;;
25351 .) ac_abs_srcdir=$ac_abs_builddir;;
25352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25356 case $ac_abs_builddir in
25357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25359 case $ac_top_srcdir in
25360 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25369 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25372 if test x"$ac_file" != x-; then
25373 { echo "$as_me:$LINENO: creating $ac_file" >&5
25374 echo "$as_me: creating $ac_file" >&6;}
25377 # Let's still pretend it is `configure' which instantiates (i.e., don't
25378 # use $as_me), people would be surprised to read:
25379 # /* config.h. Generated by config.status. */
25380 if test x"$ac_file" = x-; then
25383 configure_input="$ac_file. "
25385 configure_input=$configure_input"Generated from `echo $ac_file_in |
25386 sed 's,.*/,,'` by configure."
25388 # First look for the input files in the build tree, otherwise in the
25390 ac_file_inputs=`IFS=:
25391 for f in $ac_file_in; do
25393 -) echo $tmp/stdin ;;
25395 # Absolute (can't be DOS-style, as IFS=:)
25396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25397 echo "$as_me: error: cannot find input file: $f" >&2;}
25398 { (exit 1); exit 1; }; }
25401 if test -f "$f"; then
25404 elif test -f "$srcdir/$f"; then
25409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25410 echo "$as_me: error: cannot find input file: $f" >&2;}
25411 { (exit 1); exit 1; }; }
25414 done` || { (exit 1); exit 1; }
25416 cat >>$CONFIG_STATUS <<_ACEOF
25420 cat >>$CONFIG_STATUS <<\_ACEOF
25422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25423 s,@configure_input@,$configure_input,;t t
25424 s,@srcdir@,$ac_srcdir,;t t
25425 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25426 s,@top_srcdir@,$ac_top_srcdir,;t t
25427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25428 s,@builddir@,$ac_builddir,;t t
25429 s,@abs_builddir@,$ac_abs_builddir,;t t
25430 s,@top_builddir@,$ac_top_builddir,;t t
25431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25432 s,@INSTALL@,$ac_INSTALL,;t t
25433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25435 if test x"$ac_file" != x-; then
25436 mv $tmp/out $ac_file
25444 cat >>$CONFIG_STATUS <<\_ACEOF
25447 # CONFIG_HEADER section.
25450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25453 # ac_d sets the value in "#define NAME VALUE" lines.
25454 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25455 ac_dB='[ ].*$,\1#\2'
25458 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25459 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25460 ac_uB='$,\1#\2define\3'
25464 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25467 - | *:- | *:-:* ) # input from stdin
25469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25473 * ) ac_file_in=$ac_file.in ;;
25476 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25477 echo "$as_me: creating $ac_file" >&6;}
25479 # First look for the input files in the build tree, otherwise in the
25481 ac_file_inputs=`IFS=:
25482 for f in $ac_file_in; do
25484 -) echo $tmp/stdin ;;
25486 # Absolute (can't be DOS-style, as IFS=:)
25487 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25488 echo "$as_me: error: cannot find input file: $f" >&2;}
25489 { (exit 1); exit 1; }; }
25490 # Do quote $f, to prevent DOS paths from being IFS'd.
25493 if test -f "$f"; then
25496 elif test -f "$srcdir/$f"; then
25501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25502 echo "$as_me: error: cannot find input file: $f" >&2;}
25503 { (exit 1); exit 1; }; }
25506 done` || { (exit 1); exit 1; }
25507 # Remove the trailing spaces.
25508 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25512 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25513 # `conftest.undefs', that substitutes the proper values into
25514 # config.h.in to produce config.h. The first handles `#define'
25515 # templates, and the second `#undef' templates.
25516 # And first: Protect against being on the right side of a sed subst in
25517 # config.status. Protect against being in an unquoted here document
25518 # in config.status.
25519 rm -f conftest.defines conftest.undefs
25520 # Using a here document instead of a string reduces the quoting nightmare.
25521 # Putting comments in sed scripts is not portable.
25523 # `end' is used to avoid that the second main sed command (meant for
25524 # 0-ary CPP macros) applies to n-ary macro definitions.
25525 # See the Autoconf documentation for `clear'.
25526 cat >confdef2sed.sed <<\_ACEOF
25531 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25533 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25536 # If some macros were called several times there might be several times
25537 # the same #defines, which is useless. Nevertheless, we may not want to
25538 # sort them, since we want the *last* AC-DEFINE to be honored.
25539 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25540 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25541 rm -f confdef2sed.sed
25543 # This sed command replaces #undef with comments. This is necessary, for
25544 # example, in the case of _POSIX_SOURCE, which is predefined and required
25545 # on some systems where configure will not decide to define it.
25546 cat >>conftest.undefs <<\_ACEOF
25547 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25550 # Break up conftest.defines because some shells have a limit on the size
25551 # of here documents, and old seds have small limits too (100 cmds).
25552 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25553 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25554 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25555 echo ' :' >>$CONFIG_STATUS
25556 rm -f conftest.tail
25557 while grep . conftest.defines >/dev/null
25559 # Write a limited-size here document to $tmp/defines.sed.
25560 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25561 # Speed up: don't consider the non `#define' lines.
25562 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25563 # Work around the forget-to-reset-the-flag bug.
25564 echo 't clr' >>$CONFIG_STATUS
25565 echo ': clr' >>$CONFIG_STATUS
25566 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25568 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25570 mv $tmp/out $tmp/in
25572 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25573 rm -f conftest.defines
25574 mv conftest.tail conftest.defines
25576 rm -f conftest.defines
25577 echo ' fi # grep' >>$CONFIG_STATUS
25578 echo >>$CONFIG_STATUS
25580 # Break up conftest.undefs because some shells have a limit on the size
25581 # of here documents, and old seds have small limits too (100 cmds).
25582 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25583 rm -f conftest.tail
25584 while grep . conftest.undefs >/dev/null
25586 # Write a limited-size here document to $tmp/undefs.sed.
25587 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25588 # Speed up: don't consider the non `#undef'
25589 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25590 # Work around the forget-to-reset-the-flag bug.
25591 echo 't clr' >>$CONFIG_STATUS
25592 echo ': clr' >>$CONFIG_STATUS
25593 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25595 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25597 mv $tmp/out $tmp/in
25599 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25600 rm -f conftest.undefs
25601 mv conftest.tail conftest.undefs
25603 rm -f conftest.undefs
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25606 # Let's still pretend it is `configure' which instantiates (i.e., don't
25607 # use $as_me), people would be surprised to read:
25608 # /* config.h. Generated by config.status. */
25609 if test x"$ac_file" = x-; then
25610 echo "/* Generated by configure. */" >$tmp/config.h
25612 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25614 cat $tmp/in >>$tmp/config.h
25616 if test x"$ac_file" != x-; then
25617 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25619 echo "$as_me: $ac_file is unchanged" >&6;}
25621 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25623 X"$ac_file" : 'X\(//\)[^/]' \| \
25624 X"$ac_file" : 'X\(//\)$' \| \
25625 X"$ac_file" : 'X\(/\)' \| \
25626 . : '\(.\)' 2>/dev/null ||
25628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25630 /^X\(\/\/\)$/{ s//\1/; q; }
25631 /^X\(\/\).*/{ s//\1/; q; }
25633 { if $as_mkdir_p; then
25638 while test ! -d "$as_dir"; do
25639 as_dirs="$as_dir $as_dirs"
25640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25642 X"$as_dir" : 'X\(//\)[^/]' \| \
25643 X"$as_dir" : 'X\(//\)$' \| \
25644 X"$as_dir" : 'X\(/\)' \| \
25645 . : '\(.\)' 2>/dev/null ||
25647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25649 /^X\(\/\/\)$/{ s//\1/; q; }
25650 /^X\(\/\).*/{ s//\1/; q; }
25653 test ! -n "$as_dirs" || mkdir $as_dirs
25654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25656 { (exit 1); exit 1; }; }; }
25659 mv $tmp/config.h $ac_file
25663 rm -f $tmp/config.h
25667 cat >>$CONFIG_STATUS <<\_ACEOF
25670 # CONFIG_LINKS section.
25673 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25674 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25675 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25677 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25678 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25680 if test ! -r $srcdir/$ac_source; then
25681 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25682 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25683 { (exit 1); exit 1; }; }
25687 # Make relative symlinks.
25688 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25689 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25690 X"$ac_dest" : 'X\(//\)[^/]' \| \
25691 X"$ac_dest" : 'X\(//\)$' \| \
25692 X"$ac_dest" : 'X\(/\)' \| \
25693 . : '\(.\)' 2>/dev/null ||
25695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25697 /^X\(\/\/\)$/{ s//\1/; q; }
25698 /^X\(\/\).*/{ s//\1/; q; }
25700 { if $as_mkdir_p; then
25701 mkdir -p "$ac_dest_dir"
25703 as_dir="$ac_dest_dir"
25705 while test ! -d "$as_dir"; do
25706 as_dirs="$as_dir $as_dirs"
25707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25709 X"$as_dir" : 'X\(//\)[^/]' \| \
25710 X"$as_dir" : 'X\(//\)$' \| \
25711 X"$as_dir" : 'X\(/\)' \| \
25712 . : '\(.\)' 2>/dev/null ||
25714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25716 /^X\(\/\/\)$/{ s//\1/; q; }
25717 /^X\(\/\).*/{ s//\1/; q; }
25720 test ! -n "$as_dirs" || mkdir $as_dirs
25721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25722 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25723 { (exit 1); exit 1; }; }; }
25727 if test "$ac_dest_dir" != .; then
25728 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25729 # A "../" for each directory in $ac_dir_suffix.
25730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25732 ac_dir_suffix= ac_top_builddir=
25736 .) # No --srcdir option. We are building in place.
25738 if test -z "$ac_top_builddir"; then
25741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25743 [\\/]* | ?:[\\/]* ) # Absolute path.
25744 ac_srcdir=$srcdir$ac_dir_suffix;
25745 ac_top_srcdir=$srcdir ;;
25746 *) # Relative path.
25747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25751 # Do not use `cd foo && pwd` to compute absolute paths, because
25752 # the directories may not exist.
25754 .) ac_abs_builddir="$ac_dest_dir";;
25756 case "$ac_dest_dir" in
25757 .) ac_abs_builddir=`pwd`;;
25758 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25759 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25762 case $ac_abs_builddir in
25763 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25765 case ${ac_top_builddir}. in
25766 .) ac_abs_top_builddir=$ac_abs_builddir;;
25767 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25768 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25771 case $ac_abs_builddir in
25772 .) ac_abs_srcdir=$ac_srcdir;;
25775 .) ac_abs_srcdir=$ac_abs_builddir;;
25776 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25777 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25780 case $ac_abs_builddir in
25781 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25783 case $ac_top_srcdir in
25784 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25785 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25786 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25792 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25793 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25796 # Try a symlink, then a hard link, then a copy.
25797 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25798 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25799 cp -p $srcdir/$ac_source $ac_dest ||
25800 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25801 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25802 { (exit 1); exit 1; }; }
25805 cat >>$CONFIG_STATUS <<\_ACEOF
25808 # CONFIG_COMMANDS section.
25810 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25811 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25812 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25813 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25814 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25815 X"$ac_dest" : 'X\(//\)[^/]' \| \
25816 X"$ac_dest" : 'X\(//\)$' \| \
25817 X"$ac_dest" : 'X\(/\)' \| \
25818 . : '\(.\)' 2>/dev/null ||
25820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25822 /^X\(\/\/\)$/{ s//\1/; q; }
25823 /^X\(\/\).*/{ s//\1/; q; }
25825 { if $as_mkdir_p; then
25830 while test ! -d "$as_dir"; do
25831 as_dirs="$as_dir $as_dirs"
25832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25834 X"$as_dir" : 'X\(//\)[^/]' \| \
25835 X"$as_dir" : 'X\(//\)$' \| \
25836 X"$as_dir" : 'X\(/\)' \| \
25837 . : '\(.\)' 2>/dev/null ||
25839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25841 /^X\(\/\/\)$/{ s//\1/; q; }
25842 /^X\(\/\).*/{ s//\1/; q; }
25845 test ! -n "$as_dirs" || mkdir $as_dirs
25846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25848 { (exit 1); exit 1; }; }; }
25852 if test "$ac_dir" != .; then
25853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25854 # A "../" for each directory in $ac_dir_suffix.
25855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25857 ac_dir_suffix= ac_top_builddir=
25861 .) # No --srcdir option. We are building in place.
25863 if test -z "$ac_top_builddir"; then
25866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25868 [\\/]* | ?:[\\/]* ) # Absolute path.
25869 ac_srcdir=$srcdir$ac_dir_suffix;
25870 ac_top_srcdir=$srcdir ;;
25871 *) # Relative path.
25872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25876 # Do not use `cd foo && pwd` to compute absolute paths, because
25877 # the directories may not exist.
25879 .) ac_abs_builddir="$ac_dir";;
25882 .) ac_abs_builddir=`pwd`;;
25883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25887 case $ac_abs_builddir in
25888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25890 case ${ac_top_builddir}. in
25891 .) ac_abs_top_builddir=$ac_abs_builddir;;
25892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25896 case $ac_abs_builddir in
25897 .) ac_abs_srcdir=$ac_srcdir;;
25900 .) ac_abs_srcdir=$ac_abs_builddir;;
25901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25905 case $ac_abs_builddir in
25906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25908 case $ac_top_srcdir in
25909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25916 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25917 echo "$as_me: executing $ac_dest commands" >&6;}
25919 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25920 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25921 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25922 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25923 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25924 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25925 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25926 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25927 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25928 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25929 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25930 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25935 cat >>$CONFIG_STATUS <<\_ACEOF
25937 { (exit 0); exit 0; }
25939 chmod +x $CONFIG_STATUS
25940 ac_clean_files=$ac_clean_files_save
25943 # configure is writing to config.log, and then calls config.status.
25944 # config.status does its own redirection, appending to config.log.
25945 # Unfortunately, on DOS this fails, as config.log is still kept open
25946 # by configure, so config.status won't be able to write to it; its
25947 # output is simply discarded. So we exec the FD to /dev/null,
25948 # effectively closing config.log, so it can be properly (re)opened and
25949 # appended to by config.status. When coming back to configure, we
25950 # need to make the FD available again.
25951 if test "$no_create" != yes; then
25953 ac_config_status_args=
25954 test "$silent" = yes &&
25955 ac_config_status_args="$ac_config_status_args --quiet"
25957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25960 # would make configure fail if this is the last instruction.
25961 $ac_cs_success || { (exit 1); exit 1; }
25965 # CONFIG_SUBDIRS section.
25967 if test "$no_recursion" != yes; then
25969 # Remove --cache-file and --srcdir arguments so they do not pile up.
25970 ac_sub_configure_args=
25972 for ac_arg in $ac_configure_args; do
25973 if test -n "$ac_prev"; then
25978 -cache-file | --cache-file | --cache-fil | --cache-fi \
25979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25980 ac_prev=cache_file ;;
25981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25985 --config-cache | -C)
25987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25995 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25999 # Always prepend --prefix to ensure using the same prefix
26000 # in subdir configurations.
26001 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26004 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26006 # Do not complain, so a configure script can configure whichever
26007 # parts of a large source tree are present.
26008 test -d $srcdir/$ac_dir || continue
26010 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26011 echo "$as_me: configuring in $ac_dir" >&6;}
26012 { if $as_mkdir_p; then
26017 while test ! -d "$as_dir"; do
26018 as_dirs="$as_dir $as_dirs"
26019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26021 X"$as_dir" : 'X\(//\)[^/]' \| \
26022 X"$as_dir" : 'X\(//\)$' \| \
26023 X"$as_dir" : 'X\(/\)' \| \
26024 . : '\(.\)' 2>/dev/null ||
26026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26028 /^X\(\/\/\)$/{ s//\1/; q; }
26029 /^X\(\/\).*/{ s//\1/; q; }
26032 test ! -n "$as_dirs" || mkdir $as_dirs
26033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26035 { (exit 1); exit 1; }; }; }
26039 if test "$ac_dir" != .; then
26040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26041 # A "../" for each directory in $ac_dir_suffix.
26042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26044 ac_dir_suffix= ac_top_builddir=
26048 .) # No --srcdir option. We are building in place.
26050 if test -z "$ac_top_builddir"; then
26053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26055 [\\/]* | ?:[\\/]* ) # Absolute path.
26056 ac_srcdir=$srcdir$ac_dir_suffix;
26057 ac_top_srcdir=$srcdir ;;
26058 *) # Relative path.
26059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26063 # Do not use `cd foo && pwd` to compute absolute paths, because
26064 # the directories may not exist.
26066 .) ac_abs_builddir="$ac_dir";;
26069 .) ac_abs_builddir=`pwd`;;
26070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26074 case $ac_abs_builddir in
26075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26077 case ${ac_top_builddir}. in
26078 .) ac_abs_top_builddir=$ac_abs_builddir;;
26079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26083 case $ac_abs_builddir in
26084 .) ac_abs_srcdir=$ac_srcdir;;
26087 .) ac_abs_srcdir=$ac_abs_builddir;;
26088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26092 case $ac_abs_builddir in
26093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26095 case $ac_top_srcdir in
26096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26105 # Check for guested configure; otherwise get Cygnus style configure.
26106 if test -f $ac_srcdir/configure.gnu; then
26107 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26108 elif test -f $ac_srcdir/configure; then
26109 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26110 elif test -f $ac_srcdir/configure.in; then
26111 ac_sub_configure=$ac_configure
26113 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26114 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26118 # The recursion is here.
26119 if test -n "$ac_sub_configure"; then
26120 # Make the cache file name correct relative to the subdirectory.
26121 case $cache_file in
26122 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26123 *) # Relative path.
26124 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26127 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26128 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26129 # The eval makes quoting arguments work.
26130 eval $ac_sub_configure $ac_sub_configure_args \
26131 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26132 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26133 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26134 { (exit 1); exit 1; }; }
26142 if test $bzip2_found -ne 1 ; then
26143 if test $zlib_found -ne 1 ; then
26144 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26145 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26146 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26147 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26149 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26153 if test $llvmgccwarn = yes
26155 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26156 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26157 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26158 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26159 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26160 echo "$as_me: WARNING: ***** " >&2;}
26161 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26162 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26163 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26164 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26165 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26166 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}