2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.1]'
426 PACKAGE_STRING='[LLVM] [1.1]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 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 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 ENDIAN HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC SPEC95_ROOT USE_SPEC95 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1017 if test -n "$ac_init_help"; then
1018 case $ac_init_help in
1019 short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO)
1035 --enable-spec95 Compile SPEC 95 benchmarks (default is NO)
1036 --enable-povray Compile Povray benchmark (default is NO)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
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 ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1134 [LLVM] configure [1.1]
1135 generated by GNU Autoconf 2.57
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by [LLVM] $as_me [1.1], which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 if test ${srcdir} != "."
1514 if test -f ${srcdir}/include/Config/config.h
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
1522 for i in `ls ${srcdir}/projects`
1524 if test ${i} != "CVS"
1526 if test -f ${srcdir}/projects/${i}/configure
1530 subdirs="$subdirs projects/${i}"
1536 ac_config_headers="$ac_config_headers include/Config/config.h"
1538 ac_config_commands="$ac_config_commands Makefile"
1541 ac_config_commands="$ac_config_commands Makefile.common"
1544 ac_config_commands="$ac_config_commands lib/Makefile"
1547 ac_config_commands="$ac_config_commands runtime/Makefile"
1550 ac_config_commands="$ac_config_commands test/Makefile"
1553 ac_config_commands="$ac_config_commands test/Makefile.tests"
1556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1568 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1571 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1574 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1607 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1673 ac_config_commands="$ac_config_commands tools/Makefile"
1676 ac_config_commands="$ac_config_commands utils/Makefile"
1679 ac_config_commands="$ac_config_commands projects/Makefile"
1683 # Find a good install program. We prefer a C program (faster),
1684 # so one script is as good as another. But avoid the broken or
1685 # incompatible versions:
1686 # SysV /etc/install, /usr/sbin/install
1687 # SunOS /usr/etc/install
1688 # IRIX /sbin/install
1690 # AmigaOS /C/install, which installs bootblocks on floppy discs
1691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1694 # ./install, which can be erroneously created by make from ./install.sh.
1695 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1696 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1697 if test -z "$INSTALL"; then
1698 if test "${ac_cv_path_install+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 # Account for people who put trailing slashes in PATH elements.
1708 ./ | .// | /cC/* | \
1709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1712 # OSF1 and SCO ODT 3.0 have their own names for install.
1713 # Don't use installbsd from OSF since it installs stuff as root
1715 for ac_prog in ginstall scoinst install; do
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1718 if test $ac_prog = install &&
1719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # AIX install. It has an incompatible calling convention.
1722 elif test $ac_prog = install &&
1723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1724 # program-specific install script used by HP pwplus--don't use.
1727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739 if test "${ac_cv_path_install+set}" = set; then
1740 INSTALL=$ac_cv_path_install
1742 # As a last resort, use the slow shell script. We don't cache a
1743 # path for INSTALL within a source directory, because that will
1744 # break other packages using the cache if that directory is
1745 # removed, or if the path is relative.
1746 INSTALL=$ac_install_sh
1749 echo "$as_me:$LINENO: result: $INSTALL" >&5
1750 echo "${ECHO_T}$INSTALL" >&6
1752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1753 # It thinks the first close brace ends the variable substitution.
1754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1761 # Make sure we can run config.sub.
1762 $ac_config_sub sun4 >/dev/null 2>&1 ||
1763 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1764 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1765 { (exit 1); exit 1; }; }
1767 echo "$as_me:$LINENO: checking build system type" >&5
1768 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1769 if test "${ac_cv_build+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 ac_cv_build_alias=$build_alias
1773 test -z "$ac_cv_build_alias" &&
1774 ac_cv_build_alias=`$ac_config_guess`
1775 test -z "$ac_cv_build_alias" &&
1776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1777 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1778 { (exit 1); exit 1; }; }
1779 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1781 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1785 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1786 echo "${ECHO_T}$ac_cv_build" >&6
1788 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793 echo "$as_me:$LINENO: checking host system type" >&5
1794 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1795 if test "${ac_cv_host+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 ac_cv_host_alias=$host_alias
1799 test -z "$ac_cv_host_alias" &&
1800 ac_cv_host_alias=$ac_cv_build_alias
1801 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1803 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1807 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1808 echo "${ECHO_T}$ac_cv_host" >&6
1810 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1815 echo "$as_me:$LINENO: checking target system type" >&5
1816 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1817 if test "${ac_cv_target+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 ac_cv_target_alias=$target_alias
1821 test "x$ac_cv_target_alias" = "x" &&
1822 ac_cv_target_alias=$ac_cv_host_alias
1823 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1824 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1825 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1826 { (exit 1); exit 1; }; }
1829 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1830 echo "${ECHO_T}$ac_cv_target" >&6
1831 target=$ac_cv_target
1832 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1833 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1834 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1837 # The aliases save the names the user supplied, while $host etc.
1838 # will get canonicalized.
1839 test -n "$target_alias" &&
1840 test "$program_prefix$program_suffix$program_transform_name" = \
1842 program_prefix=${target_alias}-
1848 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1850 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1858 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1860 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1876 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1885 sparc*-*) ARCH=Sparc
1888 powerpc*-*) ARCH=PowerPC
1897 ac_cpp='$CXXCPP $CPPFLAGS'
1898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1901 if test -n "$ac_tool_prefix"; then
1902 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CXX+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$CXX"; then
1912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 if test -n "$CXX"; then
1932 echo "$as_me:$LINENO: result: $CXX" >&5
1933 echo "${ECHO_T}$CXX" >&6
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1939 test -n "$CXX" && break
1942 if test -z "$CXX"; then
1944 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 if test -n "$ac_ct_CXX"; then
1954 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CXX="$ac_prog"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1973 if test -n "$ac_ct_CXX"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1975 echo "${ECHO_T}$ac_ct_CXX" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1981 test -n "$ac_ct_CXX" && break
1983 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1989 # Provide some information about the compiler.
1990 echo "$as_me:$LINENO:" \
1991 "checking for C++ compiler version" >&5
1992 ac_compiler=`set X $ac_compile; echo $2`
1993 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1994 (eval $ac_compiler --version </dev/null >&5) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1999 (eval $ac_compiler -v </dev/null >&5) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2004 (eval $ac_compiler -V </dev/null >&5) 2>&5
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line $LINENO "configure"
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 ac_clean_files_save=$ac_clean_files
2026 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027 # Try to create an executable without -o first, disregard a.out.
2028 # It will help us diagnose broken compilers, and finding out an intuition
2030 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2031 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2032 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034 (eval $ac_link_default) 2>&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; then
2038 # Find the output, starting from the most likely. This scheme is
2039 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2042 # Be careful to initialize this variable, since it used to be cached.
2043 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2045 # b.out is created by i960 compilers.
2046 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2048 test -f "$ac_file" || continue
2050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2053 # This is the source file.
2056 # We found the default executable, but exeext='' is most
2060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061 # FIXME: I believe we export ac_cv_exeext for Libtool,
2062 # but it would be cool to find out if it's true. Does anybody
2063 # maintain Libtool? --akim.
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: C++ compiler cannot create executables
2077 See \`config.log' for more details." >&2;}
2078 { (exit 77); exit 77; }; }
2081 ac_exeext=$ac_cv_exeext
2082 echo "$as_me:$LINENO: result: $ac_file" >&5
2083 echo "${ECHO_T}$ac_file" >&6
2085 # Check the compiler produces executables we can run. If not, either
2086 # the compiler is broken, or we cross compile.
2087 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2088 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2089 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090 # If not cross compiling, check that we can run a simple program.
2091 if test "$cross_compiling" != yes; then
2092 if { ac_try='./$ac_file'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 if test "$cross_compiling" = maybe; then
2103 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2104 If you meant to cross compile, use \`--host'.
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: cannot run C++ compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2113 echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6
2116 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2117 ac_clean_files=$ac_clean_files_save
2118 # Check the compiler produces executables we can run. If not, either
2119 # the compiler is broken, or we cross compile.
2120 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123 echo "${ECHO_T}$cross_compiling" >&6
2125 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128 (eval $ac_link) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; then
2132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2134 # work properly (i.e., refer to `conftest.exe'), while it won't with
2136 for ac_file in conftest.exe conftest conftest.*; do
2137 test -f "$ac_file" || continue
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2154 rm -f conftest$ac_cv_exeext
2155 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156 echo "${ECHO_T}$ac_cv_exeext" >&6
2158 rm -f conftest.$ac_ext
2159 EXEEXT=$ac_cv_exeext
2161 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163 if test "${ac_cv_objext+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 cat >conftest.$ac_ext <<_ACEOF
2167 #line $LINENO "configure"
2170 cat confdefs.h >>conftest.$ac_ext
2171 cat >>conftest.$ac_ext <<_ACEOF
2172 /* end confdefs.h. */
2182 rm -f conftest.o conftest.obj
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&2;}
2203 { (exit 1); exit 1; }; }
2206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2208 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209 echo "${ECHO_T}$ac_cv_objext" >&6
2210 OBJEXT=$ac_cv_objext
2212 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2213 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2255 rm -f conftest.$ac_objext conftest.$ac_ext
2256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2259 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2261 GXX=`test $ac_compiler_gnu = yes && echo yes`
2262 ac_test_CXXFLAGS=${CXXFLAGS+set}
2263 ac_save_CXXFLAGS=$CXXFLAGS
2265 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2266 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2267 if test "${ac_cv_prog_cxx_g+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cxx_g=yes
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2305 rm -f conftest.$ac_objext conftest.$ac_ext
2307 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2308 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2309 if test "$ac_test_CXXFLAGS" = set; then
2310 CXXFLAGS=$ac_save_CXXFLAGS
2311 elif test $ac_cv_prog_cxx_g = yes; then
2312 if test "$GXX" = yes; then
2318 if test "$GXX" = yes; then
2324 for ac_declaration in \
2326 '#include <stdlib.h>' \
2327 'extern "C" void std::exit (int) throw (); using std::exit;' \
2328 'extern "C" void std::exit (int); using std::exit;' \
2329 'extern "C" void exit (int) throw ();' \
2330 'extern "C" void exit (int);' \
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2369 rm -f conftest.$ac_objext conftest.$ac_ext
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line $LINENO "configure"
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2407 if test -n "$ac_declaration"; then
2408 echo '#ifdef __cplusplus' >>confdefs.h
2409 echo $ac_declaration >>confdefs.h
2410 echo '#endif' >>confdefs.h
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$CC"; then
2455 echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6
2458 echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2462 test -n "$CC" && break
2465 if test -z "$CC"; then
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_ac_ct_CC="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6
2500 echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6
2504 test -n "$ac_ct_CC" && break
2511 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: no acceptable C compiler found in \$PATH
2514 See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2517 # Provide some information about the compiler.
2518 echo "$as_me:$LINENO:" \
2519 "checking for C compiler version" >&5
2520 ac_compiler=`set X $ac_compile; echo $2`
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2522 (eval $ac_compiler --version </dev/null >&5) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2527 (eval $ac_compiler -v </dev/null >&5) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2532 (eval $ac_compiler -V </dev/null >&5) 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2537 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line $LINENO "configure"
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f conftest.$ac_objext conftest.$ac_ext
2581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586 GCC=`test $ac_compiler_gnu = yes && echo yes`
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2590 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592 if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #line $LINENO "configure"
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2630 rm -f conftest.$ac_objext conftest.$ac_ext
2632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2634 if test "$ac_test_CFLAGS" = set; then
2635 CFLAGS=$ac_save_CFLAGS
2636 elif test $ac_cv_prog_cc_g = yes; then
2637 if test "$GCC" = yes; then
2643 if test "$GCC" = yes; then
2649 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2650 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2651 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 ac_cv_prog_cc_stdc=no
2656 cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 #include <sys/types.h>
2666 #include <sys/stat.h>
2667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2668 struct buf { int x; };
2669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670 static char *e (p, i)
2676 static char *f (char * (*g) (char **, int), char **p, ...)
2681 s = g (p, va_arg (v,int));
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 # Don't try gcc -ansi; that turns off useful extensions and
2700 # breaks some systems' header files.
2701 # AIX -qlanglvl=ansi
2702 # Ultrix and OSF/1 -std1
2703 # HP-UX 10.20 and later -Ae
2704 # HP-UX older versions -Aa -D_HPUX_SOURCE
2705 # SVR4 -Xc -D__EXTENSIONS__
2706 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 CC="$ac_save_CC $ac_arg"
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711 (eval $ac_compile) 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 ac_cv_prog_cc_stdc=$ac_arg
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f conftest.$ac_objext
2730 rm -f conftest.$ac_ext conftest.$ac_objext
2735 case "x$ac_cv_prog_cc_stdc" in
2737 echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6 ;;
2740 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2741 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2742 CC="$CC $ac_cv_prog_cc_stdc" ;;
2745 # Some people use a C++ compiler to compile C. Since we use `exit',
2746 # in C++ we need to declare it. In case someone uses the same compiler
2747 # for both compiling C and C++ we need to have the C++ compiler decide
2748 # the declaration of exit, since it's the most demanding environment.
2749 cat >conftest.$ac_ext <<_ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 for ac_declaration in \
2768 '#include <stdlib.h>' \
2769 'extern "C" void std::exit (int) throw (); using std::exit;' \
2770 'extern "C" void std::exit (int); using std::exit;' \
2771 'extern "C" void exit (int) throw ();' \
2772 'extern "C" void exit (int);' \
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2811 rm -f conftest.$ac_objext conftest.$ac_ext
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2849 if test -n "$ac_declaration"; then
2850 echo '#ifdef __cplusplus' >>confdefs.h
2851 echo $ac_declaration >>confdefs.h
2852 echo '#endif' >>confdefs.h
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.$ac_objext conftest.$ac_ext
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2873 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2874 # On Suns, sometimes $CPP names a directory.
2875 if test -n "$CPP" && test -d "$CPP"; then
2878 if test -z "$CPP"; then
2879 if test "${ac_cv_prog_CPP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 # Double quotes because CPP needs to be expanded
2883 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2886 for ac_c_preproc_warn_flag in '' yes
2888 # Use a header file that comes with gcc, so configuring glibc
2889 # with a fresh cross-compiler works.
2890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891 # <limits.h> exists even on freestanding compilers.
2892 # On the NeXT, cc -E runs the code through the compiler's parser,
2893 # not just through cpp. "Syntax error" is here to catch this case.
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #line $LINENO "configure"
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2902 # include <limits.h>
2904 # include <assert.h>
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1 >conftest.err
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_c_preproc_warn_flag
2924 if test -z "$ac_cpp_err"; then
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2930 # Broken: fails on valid input.
2933 rm -f conftest.err conftest.$ac_ext
2935 # OK, works on sane cases. Now check whether non-existent headers
2936 # can be detected and how.
2937 cat >conftest.$ac_ext <<_ACEOF
2938 #line $LINENO "configure"
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944 #include <ac_nonexistent.h>
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2962 if test -z "$ac_cpp_err"; then
2963 # Broken: success on invalid input.
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 # Passes both tests.
2973 rm -f conftest.err conftest.$ac_ext
2976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2977 rm -f conftest.err conftest.$ac_ext
2978 if $ac_preproc_ok; then
2990 echo "$as_me:$LINENO: result: $CPP" >&5
2991 echo "${ECHO_T}$CPP" >&6
2993 for ac_c_preproc_warn_flag in '' yes
2995 # Use a header file that comes with gcc, so configuring glibc
2996 # with a fresh cross-compiler works.
2997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998 # <limits.h> exists even on freestanding compilers.
2999 # On the NeXT, cc -E runs the code through the compiler's parser,
3000 # not just through cpp. "Syntax error" is here to catch this case.
3001 cat >conftest.$ac_ext <<_ACEOF
3002 #line $LINENO "configure"
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3009 # include <limits.h>
3011 # include <assert.h>
3015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018 grep -v '^ *+' conftest.er1 >conftest.err
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } >/dev/null; then
3023 if test -s conftest.err; then
3024 ac_cpp_err=$ac_c_preproc_warn_flag
3031 if test -z "$ac_cpp_err"; then
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Broken: fails on valid input.
3040 rm -f conftest.err conftest.$ac_ext
3042 # OK, works on sane cases. Now check whether non-existent headers
3043 # can be detected and how.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3051 #include <ac_nonexistent.h>
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056 grep -v '^ *+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } >/dev/null; then
3061 if test -s conftest.err; then
3062 ac_cpp_err=$ac_c_preproc_warn_flag
3069 if test -z "$ac_cpp_err"; then
3070 # Broken: success on invalid input.
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 # Passes both tests.
3080 rm -f conftest.err conftest.$ac_ext
3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084 rm -f conftest.err conftest.$ac_ext
3085 if $ac_preproc_ok; then
3088 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3091 See \`config.log' for more details." >&2;}
3092 { (exit 1); exit 1; }; }
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 if test "$GCC" != "yes"
3104 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3105 echo "$as_me: error: gcc required but not found" >&2;}
3106 { (exit 1); exit 1; }; }
3108 if test "$GXX" != "yes"
3110 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3111 echo "$as_me: error: g++ required but not found" >&2;}
3112 { (exit 1); exit 1; }; }
3115 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3116 if test "$gccmajor" -lt "3"
3118 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3119 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3120 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: checking for GNU make" >&5
3124 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3125 if test "${_cv_gnu_make_command+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 _cv_gnu_make_command='' ;
3129 for a in "$MAKE" make gmake gnumake ; do
3130 if test -z "$a" ; then continue ; fi ;
3131 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3132 _cv_gnu_make_command=$a ;
3138 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3139 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3140 if test "x$_cv_gnu_make_command" != "x" ; then
3144 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3145 echo "${ECHO_T}\"Not found\"" >&6;
3149 if test -z "$_cv_gnu_make_command"
3151 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3152 echo "$as_me: error: GNU Make required but not found" >&2;}
3153 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: checking " >&5
3158 echo $ECHO_N "checking ... $ECHO_C" >&6
3159 if test "${ac_cv_has_flex+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 for ac_prog in flex lex
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_LEX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$LEX"; then
3172 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_LEX="$ac_prog"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$LEX"; then
3192 echo "$as_me:$LINENO: result: $LEX" >&5
3193 echo "${ECHO_T}$LEX" >&6
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3199 test -n "$LEX" && break
3201 test -n "$LEX" || LEX=":"
3203 if test -z "$LEXLIB"
3205 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3206 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 ac_check_lib_save_LIBS=$LIBS
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_lib_fl_yywrap=yes
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_lib_fl_yywrap=no
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3258 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3259 if test $ac_cv_lib_fl_yywrap = yes; then
3262 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3263 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3264 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_check_lib_save_LIBS=$LIBS
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line $LINENO "configure"
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3277 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3292 rm -f conftest.$ac_objext conftest$ac_exeext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3294 (eval $ac_link) 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest$ac_exeext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_lib_l_yywrap=yes
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 ac_cv_lib_l_yywrap=no
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3314 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3324 if test "x$LEX" != "x:"; then
3325 echo "$as_me:$LINENO: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 cat >conftest.l <<_ACEOF
3336 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3337 (eval $LEX conftest.l) 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }
3341 if test -f lex.yy.c; then
3342 ac_cv_prog_lex_root=lex.yy
3343 elif test -f lexyy.c; then
3344 ac_cv_prog_lex_root=lexyy
3346 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3347 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3348 { (exit 1); exit 1; }; }
3351 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3352 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3354 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3356 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3357 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3358 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 # POSIX says lex can declare yytext either as a pointer or an array; the
3362 # default is implementation-dependent. Figure out which it is, since
3363 # not all implementations provide the %pointer and %array declarations.
3364 ac_cv_prog_lex_yytext_pointer=no
3365 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3367 LIBS="$LIBS $LEXLIB"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 `cat $LEX_OUTPUT_ROOT.c`
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_prog_lex_yytext_pointer=yes
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3391 rm -f "${LEX_OUTPUT_ROOT}.c"
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3395 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3396 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3398 cat >>confdefs.h <<\_ACEOF
3399 #define YYTEXT_POINTER 1
3407 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3408 echo "${ECHO_T}$ac_cv_has_flex" >&6
3409 if test "$LEX" != "flex"; then
3410 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3411 echo "$as_me: error: flex not found but required" >&2;}
3412 { (exit 1); exit 1; }; }
3415 echo "$as_me:$LINENO: checking " >&5
3416 echo $ECHO_N "checking ... $ECHO_C" >&6
3417 if test "${ac_cv_has_bison+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 for ac_prog in 'bison -y' byacc
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_YACC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -n "$YACC"; then
3430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_YACC="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 YACC=$ac_cv_prog_YACC
3449 if test -n "$YACC"; then
3450 echo "$as_me:$LINENO: result: $YACC" >&5
3451 echo "${ECHO_T}$YACC" >&6
3453 echo "$as_me:$LINENO: result: no" >&5
3454 echo "${ECHO_T}no" >&6
3457 test -n "$YACC" && break
3459 test -n "$YACC" || YACC="yacc"
3463 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3464 echo "${ECHO_T}$ac_cv_has_bison" >&6
3465 if test "$YACC" != "bison -y"; then
3466 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3467 echo "$as_me: error: bison not found but required" >&2;}
3468 { (exit 1); exit 1; }; }
3474 # Check whether --enable-shared or --disable-shared was given.
3475 if test "${enable_shared+set}" = set; then
3476 enableval="$enable_shared"
3477 p=${PACKAGE-default}
3479 yes) enable_shared=yes ;;
3480 no) enable_shared=no ;;
3483 # Look at the argument we got. We use all the common list separators.
3484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3485 for pkg in $enableval; do
3487 if test "X$pkg" = "X$p"; then
3498 # Check whether --enable-static or --disable-static was given.
3499 if test "${enable_static+set}" = set; then
3500 enableval="$enable_static"
3501 p=${PACKAGE-default}
3503 yes) enable_static=yes ;;
3504 no) enable_static=no ;;
3507 # Look at the argument we got. We use all the common list separators.
3508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3509 for pkg in $enableval; do
3511 if test "X$pkg" = "X$p"; then
3522 # Check whether --enable-fast-install or --disable-fast-install was given.
3523 if test "${enable_fast_install+set}" = set; then
3524 enableval="$enable_fast_install"
3525 p=${PACKAGE-default}
3527 yes) enable_fast_install=yes ;;
3528 no) enable_fast_install=no ;;
3530 enable_fast_install=no
3531 # Look at the argument we got. We use all the common list separators.
3532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533 for pkg in $enableval; do
3535 if test "X$pkg" = "X$p"; then
3536 enable_fast_install=yes
3543 enable_fast_install=yes
3546 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3547 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3548 if test "${lt_cv_path_SED+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 # Loop through the user's path and test for sed and gsed.
3552 # Then use that list of sed's as ones to test for truncation.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for lt_ac_prog in sed gsed; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3561 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3568 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3569 # along with /bin/sed that truncates output.
3570 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3571 test ! -f $lt_ac_sed && break
3572 cat /dev/null > conftest.in
3574 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3575 # Check for GNU sed and select it if it is found.
3576 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3577 lt_cv_path_SED=$lt_ac_sed
3581 cat conftest.in conftest.in >conftest.tmp
3582 mv conftest.tmp conftest.in
3583 cp conftest.in conftest.nl
3585 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3586 cmp -s conftest.out conftest.nl || break
3587 # 10000 chars as input seems more than enough
3588 test $lt_ac_count -gt 10 && break
3589 lt_ac_count=`expr $lt_ac_count + 1`
3590 if test $lt_ac_count -gt $lt_ac_max; then
3591 lt_ac_max=$lt_ac_count
3592 lt_cv_path_SED=$lt_ac_sed
3600 echo "$as_me:$LINENO: result: $SED" >&5
3601 echo "${ECHO_T}$SED" >&6
3603 echo "$as_me:$LINENO: checking for egrep" >&5
3604 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3605 if test "${ac_cv_prog_egrep+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3609 then ac_cv_prog_egrep='grep -E'
3610 else ac_cv_prog_egrep='egrep'
3613 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3614 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3615 EGREP=$ac_cv_prog_egrep
3619 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3620 if test "${with_gnu_ld+set}" = set; then
3621 withval="$with_gnu_ld"
3622 test "$withval" = no || with_gnu_ld=yes
3627 if test "$GCC" = yes; then
3628 # Check if gcc -print-prog-name=ld gives a path.
3629 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3630 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3633 # gcc leaves a trailing carriage return which upsets mingw
3634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3639 # Accept absolute paths.
3641 re_direlt='/[^/][^/]*/\.\./'
3642 # Canonicalize the path of ld
3643 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3644 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3645 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3647 test -z "$LD" && LD="$ac_prog"
3650 # If it fails, then pretend we aren't using GCC.
3654 # If it is relative, then search for the first ld in PATH.
3658 elif test "$with_gnu_ld" = yes; then
3659 echo "$as_me:$LINENO: checking for GNU ld" >&5
3660 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3663 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3665 if test "${lt_cv_path_LD+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 if test -z "$LD"; then
3669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3670 for ac_dir in $PATH; do
3672 test -z "$ac_dir" && ac_dir=.
3673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3674 lt_cv_path_LD="$ac_dir/$ac_prog"
3675 # Check to see if the program is GNU ld. I'd rather use --version,
3676 # but apparently some GNU ld's only accept -v.
3677 # Break only if it was the GNU/non-GNU ld that we prefer.
3678 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3679 *GNU* | *'with BFD'*)
3680 test "$with_gnu_ld" != no && break
3683 test "$with_gnu_ld" != yes && break
3690 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3695 if test -n "$LD"; then
3696 echo "$as_me:$LINENO: result: $LD" >&5
3697 echo "${ECHO_T}$LD" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3702 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3703 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3704 { (exit 1); exit 1; }; }
3705 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3706 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3707 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3711 case `"$LD" -v 2>&1 </dev/null` in
3712 *GNU* | *'with BFD'*)
3713 lt_cv_prog_gnu_ld=yes
3716 lt_cv_prog_gnu_ld=no
3720 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3721 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3722 with_gnu_ld=$lt_cv_prog_gnu_ld
3725 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3726 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3727 if test "${lt_cv_ld_reload_flag+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 lt_cv_ld_reload_flag='-r'
3732 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3733 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3734 reload_flag=$lt_cv_ld_reload_flag
3735 case $reload_flag in
3737 *) reload_flag=" $reload_flag" ;;
3739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3741 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3742 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3743 if test "${lt_cv_path_NM+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 if test -n "$NM"; then
3747 # Let the user override the test.
3750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3751 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3753 test -z "$ac_dir" && ac_dir=.
3754 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3755 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3756 # Check to see if the nm accepts a BSD-compat flag.
3757 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3758 # nm: unknown option "B" ignored
3759 # Tru64's nm complains that /dev/null is an invalid object file
3760 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3761 */dev/null* | *'Invalid file or object type'*)
3762 lt_cv_path_NM="$tmp_nm -B"
3766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3768 lt_cv_path_NM="$tmp_nm -p"
3772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3773 continue # so that we can try to find one that supports BSD flags
3780 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3783 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3784 echo "${ECHO_T}$lt_cv_path_NM" >&6
3787 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3788 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3790 if test "$LN_S" = "ln -s"; then
3791 echo "$as_me:$LINENO: result: yes" >&5
3792 echo "${ECHO_T}yes" >&6
3794 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3795 echo "${ECHO_T}no, using $LN_S" >&6
3798 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3799 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3800 if test "${lt_cv_deplibs_check_method+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 lt_cv_file_magic_cmd='$MAGIC_CMD'
3804 lt_cv_file_magic_test_file=
3805 lt_cv_deplibs_check_method='unknown'
3806 # Need to set the preceding variable on all platforms that support
3807 # interlibrary dependencies.
3808 # 'none' -- dependencies not supported.
3809 # `unknown' -- same as none, but documents that we really don't know.
3810 # 'pass_all' -- all dependencies passed with no checks.
3811 # 'test_compile' -- check by making test program.
3812 # 'file_magic [[regex]]' -- check by looking for files in library path
3813 # which responds to the $file_magic_cmd with a given extended regex.
3814 # If you have `file' or equivalent on your system and you're not sure
3815 # whether `pass_all' will *always* work, you probably want this one.
3819 lt_cv_deplibs_check_method=pass_all
3823 lt_cv_deplibs_check_method=pass_all
3827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3828 lt_cv_file_magic_cmd='/usr/bin/file -L'
3829 lt_cv_file_magic_test_file=/shlib/libc.so
3832 cygwin* | mingw* | pw32*)
3833 # win32_libid is a shell function defined in ltmain.sh
3834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3835 lt_cv_file_magic_cmd='win32_libid'
3838 darwin* | rhapsody*)
3839 # this will be overwritten by pass_all, but leave it in just in case
3840 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3841 lt_cv_file_magic_cmd='/usr/bin/file -L'
3843 rhapsody* | darwin1.[012])
3844 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3847 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3850 lt_cv_deplibs_check_method=pass_all
3854 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3857 # Not sure whether the presence of OpenBSD here was a mistake.
3858 # Let's accept both of them until this is cleared up.
3859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3860 lt_cv_file_magic_cmd=/usr/bin/file
3861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3865 lt_cv_deplibs_check_method=pass_all
3870 lt_cv_deplibs_check_method=pass_all
3873 hpux10.20* | hpux11*)
3874 lt_cv_file_magic_cmd=/usr/bin/file
3877 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3878 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3881 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]'
3882 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3886 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3891 irix5* | irix6* | nonstopux*)
3893 irix5* | nonstopux*)
3894 # this will be overridden with pass_all, but let us keep it just in case
3895 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3899 *-32|*"-32 ") libmagic=32-bit;;
3900 *-n32|*"-n32 ") libmagic=N32;;
3901 *-64|*"-64 ") libmagic=64-bit;;
3902 *) libmagic=never-match;;
3904 # this will be overridden with pass_all, but let us keep it just in case
3905 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3908 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3909 lt_cv_deplibs_check_method=pass_all
3912 # This must be Linux ELF.
3915 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3916 lt_cv_deplibs_check_method=pass_all ;;
3918 # glibc up to 2.1.1 does not perform some relocations on ARM
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3921 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3925 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934 lt_cv_file_magic_cmd=/usr/bin/file
3935 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3939 lt_cv_deplibs_check_method=unknown
3943 lt_cv_file_magic_cmd=/usr/bin/file
3944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3948 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3952 osf3* | osf4* | osf5*)
3953 # this will be overridden with pass_all, but let us keep it just in case
3954 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3955 lt_cv_file_magic_test_file=/shlib/libc.so
3956 lt_cv_deplibs_check_method=pass_all
3960 lt_cv_deplibs_check_method=pass_all
3964 lt_cv_deplibs_check_method=pass_all
3965 lt_cv_file_magic_test_file=/lib/libc.so
3968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3969 case $host_vendor in
3971 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]'
3972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3975 lt_cv_deplibs_check_method=pass_all
3978 lt_cv_file_magic_cmd='/bin/file'
3979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3982 lt_cv_file_magic_cmd='/bin/file'
3983 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3984 lt_cv_file_magic_test_file=/lib/libc.so
3987 lt_cv_deplibs_check_method=pass_all
3992 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3993 lt_cv_deplibs_check_method=pass_all
3998 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3999 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4000 file_magic_cmd=$lt_cv_file_magic_cmd
4001 deplibs_check_method=$lt_cv_deplibs_check_method
4002 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4007 # If no C compiler was specified, use CC.
4010 # Allow CC to be a program name with arguments.
4013 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014 if test "${enable_libtool_lock+set}" = set; then
4015 enableval="$enable_libtool_lock"
4018 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4020 # Some flags need to be propagated to the compiler or linker for good
4024 # Find out which ABI we are using.
4025 echo 'int i;' > conftest.$ac_ext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; then
4031 case `/usr/bin/file conftest.$ac_objext` in
4043 # Find out which ABI we are using.
4044 echo '#line 4044 "configure"' > conftest.$ac_ext
4045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4046 (eval $ac_compile) 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; then
4050 if test "$lt_cv_prog_gnu_ld" = yes; then
4051 case `/usr/bin/file conftest.$ac_objext` in
4053 LD="${LD-ld} -melf32bsmip"
4056 LD="${LD-ld} -melf32bmipn32"
4059 LD="${LD-ld} -melf64bmip"
4063 case `/usr/bin/file conftest.$ac_objext` in
4079 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4080 # Find out which ABI we are using.
4081 echo 'int i;' > conftest.$ac_ext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; then
4087 case "`/usr/bin/file conftest.o`" in
4091 LD="${LD-ld} -m elf_i386"
4094 LD="${LD-ld} -m elf32ppclinux"
4097 LD="${LD-ld} -m elf_s390"
4100 LD="${LD-ld} -m elf32_sparc"
4107 LD="${LD-ld} -m elf_x86_64"
4109 ppc*-*linux*|powerpc*-*linux*)
4110 LD="${LD-ld} -m elf64ppc"
4113 LD="${LD-ld} -m elf64_s390"
4116 LD="${LD-ld} -m elf64_sparc"
4126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4127 SAVE_CFLAGS="$CFLAGS"
4128 CFLAGS="$CFLAGS -belf"
4129 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4130 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4131 if test "${lt_cv_cc_needs_belf+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 cat >conftest.$ac_ext <<_ACEOF
4141 #line $LINENO "configure"
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4156 rm -f conftest.$ac_objext conftest$ac_exeext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158 (eval $ac_link) 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 lt_cv_cc_needs_belf=yes
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 lt_cv_cc_needs_belf=no
4175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4184 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4185 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4186 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4187 CFLAGS="$SAVE_CFLAGS"
4193 need_locks="$enable_libtool_lock"
4197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4199 if test "${ac_cv_header_stdc+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 cat >conftest.$ac_ext <<_ACEOF
4203 #line $LINENO "configure"
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224 (eval $ac_compile) 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -s conftest.$ac_objext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_header_stdc=yes
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ac_cv_header_stdc=no
4241 rm -f conftest.$ac_objext conftest.$ac_ext
4243 if test $ac_cv_header_stdc = yes; then
4244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4245 cat >conftest.$ac_ext <<_ACEOF
4246 #line $LINENO "configure"
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev/null 2>&1; then
4259 ac_cv_header_stdc=no
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line $LINENO "configure"
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "free" >/dev/null 2>&1; then
4281 ac_cv_header_stdc=no
4287 if test $ac_cv_header_stdc = yes; then
4288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289 if test "$cross_compiling" = yes; then
4292 cat >conftest.$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4300 #if ((' ' & 0x0FF) == 0x020)
4301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4304 # define ISLOWER(c) \
4305 (('a' <= (c) && (c) <= 'i') \
4306 || ('j' <= (c) && (c) <= 'r') \
4307 || ('s' <= (c) && (c) <= 'z'))
4308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4316 for (i = 0; i < 256; i++)
4317 if (XOR (islower (i), ISLOWER (i))
4318 || toupper (i) != TOUPPER (i))
4323 rm -f conftest$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_cv_header_stdc=no
4343 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4349 if test $ac_cv_header_stdc = yes; then
4351 cat >>confdefs.h <<\_ACEOF
4352 #define STDC_HEADERS 1
4357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368 inttypes.h stdint.h unistd.h
4370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371 echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 cat >conftest.$ac_ext <<_ACEOF
4377 #line $LINENO "configure"
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 $ac_includes_default
4385 #include <$ac_header>
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389 (eval $ac_compile) 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 eval "$as_ac_Header=yes"
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 eval "$as_ac_Header=no"
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411 cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 for ac_header in dlfcn.h
4423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo "$as_me:$LINENO: checking for $ac_header" >&5
4426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 # Is the header compilable?
4434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4444 #include <$ac_header>
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_header_compiler=yes
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_header_compiler=no
4465 rm -f conftest.$ac_objext conftest.$ac_ext
4466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4467 echo "${ECHO_T}$ac_header_compiler" >&6
4469 # Is the header present?
4470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4473 #line $LINENO "configure"
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 #include <$ac_header>
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null; then
4489 if test -s conftest.err; then
4490 ac_cpp_err=$ac_c_preproc_warn_flag
4497 if test -z "$ac_cpp_err"; then
4498 ac_header_preproc=yes
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 ac_header_preproc=no
4505 rm -f conftest.err conftest.$ac_ext
4506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4507 echo "${ECHO_T}$ac_header_preproc" >&6
4509 # So? What about this header?
4510 case $ac_header_compiler:$ac_header_preproc in
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4518 ## ------------------------------------ ##
4519 ## Report this to bug-autoconf@gnu.org. ##
4520 ## ------------------------------------ ##
4523 sed "s/^/$as_me: WARNING: /" >&2
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4534 ## ------------------------------------ ##
4535 ## Report this to bug-autoconf@gnu.org. ##
4536 ## ------------------------------------ ##
4539 sed "s/^/$as_me: WARNING: /" >&2
4542 echo "$as_me:$LINENO: checking for $ac_header" >&5
4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 eval "$as_ac_Header=$ac_header_preproc"
4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4554 cat >>confdefs.h <<_ACEOF
4555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4563 ac_cpp='$CXXCPP $CPPFLAGS'
4564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4568 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4569 if test -z "$CXXCPP"; then
4570 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 # Double quotes because CXXCPP needs to be expanded
4574 for CXXCPP in "$CXX -E" "/lib/cpp"
4577 for ac_cxx_preproc_warn_flag in '' yes
4579 # Use a header file that comes with gcc, so configuring glibc
4580 # with a fresh cross-compiler works.
4581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4582 # <limits.h> exists even on freestanding compilers.
4583 # On the NeXT, cc -E runs the code through the compiler's parser,
4584 # not just through cpp. "Syntax error" is here to catch this case.
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line $LINENO "configure"
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4593 # include <limits.h>
4595 # include <assert.h>
4599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_cxx_preproc_warn_flag
4615 if test -z "$ac_cpp_err"; then
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 # Broken: fails on valid input.
4624 rm -f conftest.err conftest.$ac_ext
4626 # OK, works on sane cases. Now check whether non-existent headers
4627 # can be detected and how.
4628 cat >conftest.$ac_ext <<_ACEOF
4629 #line $LINENO "configure"
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } >/dev/null; then
4645 if test -s conftest.err; then
4646 ac_cpp_err=$ac_cxx_preproc_warn_flag
4653 if test -z "$ac_cpp_err"; then
4654 # Broken: success on invalid input.
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 # Passes both tests.
4664 rm -f conftest.err conftest.$ac_ext
4667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4668 rm -f conftest.err conftest.$ac_ext
4669 if $ac_preproc_ok; then
4674 ac_cv_prog_CXXCPP=$CXXCPP
4677 CXXCPP=$ac_cv_prog_CXXCPP
4679 ac_cv_prog_CXXCPP=$CXXCPP
4681 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4682 echo "${ECHO_T}$CXXCPP" >&6
4684 for ac_cxx_preproc_warn_flag in '' yes
4686 # Use a header file that comes with gcc, so configuring glibc
4687 # with a fresh cross-compiler works.
4688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689 # <limits.h> exists even on freestanding compilers.
4690 # On the NeXT, cc -E runs the code through the compiler's parser,
4691 # not just through cpp. "Syntax error" is here to catch this case.
4692 cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4700 # include <limits.h>
4702 # include <assert.h>
4706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } >/dev/null; then
4714 if test -s conftest.err; then
4715 ac_cpp_err=$ac_cxx_preproc_warn_flag
4722 if test -z "$ac_cpp_err"; then
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 # Broken: fails on valid input.
4731 rm -f conftest.err conftest.$ac_ext
4733 # OK, works on sane cases. Now check whether non-existent headers
4734 # can be detected and how.
4735 cat >conftest.$ac_ext <<_ACEOF
4736 #line $LINENO "configure"
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <ac_nonexistent.h>
4744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747 grep -v '^ *+' conftest.er1 >conftest.err
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null; then
4752 if test -s conftest.err; then
4753 ac_cpp_err=$ac_cxx_preproc_warn_flag
4760 if test -z "$ac_cpp_err"; then
4761 # Broken: success on invalid input.
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 # Passes both tests.
4771 rm -f conftest.err conftest.$ac_ext
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.err conftest.$ac_ext
4776 if $ac_preproc_ok; then
4779 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4780 See \`config.log' for more details." >&5
4781 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4782 See \`config.log' for more details." >&2;}
4783 { (exit 1); exit 1; }; }
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4794 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4795 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4797 if test -n "$ac_tool_prefix"; then
4798 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_F77+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 if test -n "$F77"; then
4808 ac_cv_prog_F77="$F77" # Let the user override the test.
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 if test -n "$F77"; then
4828 echo "$as_me:$LINENO: result: $F77" >&5
4829 echo "${ECHO_T}$F77" >&6
4831 echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4835 test -n "$F77" && break
4838 if test -z "$F77"; then
4840 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$ac_ct_F77"; then
4850 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_F77="$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4869 if test -n "$ac_ct_F77"; then
4870 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4871 echo "${ECHO_T}$ac_ct_F77" >&6
4873 echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4877 test -n "$ac_ct_F77" && break
4884 # Provide some information about the compiler.
4885 echo "$as_me:4885:" \
4886 "checking for Fortran 77 compiler version" >&5
4887 ac_compiler=`set X $ac_compile; echo $2`
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4889 (eval $ac_compiler --version </dev/null >&5) 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4894 (eval $ac_compiler -v </dev/null >&5) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4899 (eval $ac_compiler -V </dev/null >&5) 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4904 # If we don't use `.F' as extension, the preprocessor is not run on the
4908 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4909 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4910 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 cat >conftest.$ac_ext <<_ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4940 rm -f conftest.$ac_objext conftest.$ac_ext
4941 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4944 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4945 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4947 G77=`test $ac_compiler_gnu = yes && echo yes`
4948 ac_test_FFLAGS=${FFLAGS+set}
4949 ac_save_FFLAGS=$FFLAGS
4951 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4952 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4953 if test "${ac_cv_prog_f77_g+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 cat >conftest.$ac_ext <<_ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_cv_prog_f77_g=yes
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4981 rm -f conftest.$ac_objext conftest.$ac_ext
4984 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4985 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4986 if test "$ac_test_FFLAGS" = set; then
4987 FFLAGS=$ac_save_FFLAGS
4988 elif test $ac_cv_prog_f77_g = yes; then
4989 if test "$G77" = yes; then
4995 if test "$G77" = yes; then
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5011 # find the maximum length of command line arguments
5012 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5013 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5014 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 # On DJGPP, this test can blow up pretty badly due to problems in libc
5023 # (any single argument exceeding 2000 bytes causes a buffer overrun
5024 # during glob expansion). Even if it were fixed, the result of this
5025 # check would be larger than it should be.
5026 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5030 # Under GNU Hurd, this test is not required because there is
5031 # no limit to the length of command line arguments.
5032 # Libtool will interpret -1 as no limit whatsoever
5033 lt_cv_sys_max_cmd_len=-1;
5037 # On Win9x/ME, this test blows up -- it succeeds, but takes
5038 # about 5 minutes as the teststring grows exponentially.
5039 # Worse, since 9x/ME are not pre-emptively multitasking,
5040 # you end up with a "frozen" computer, even though with patience
5041 # the test eventually succeeds (with a max line length of 256k).
5042 # Instead, let's just punt: use the minimum linelength reported by
5043 # all of the supported platforms: 8192 (on NT/2K/XP).
5044 lt_cv_sys_max_cmd_len=8192;
5048 # If test is not a shell built-in, we'll probably end up computing a
5049 # maximum length that is only half of the actual maximum length, but
5051 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5052 = "XX$testring") >/dev/null 2>&1 &&
5053 new_result=`expr "X$testring" : ".*" 2>&1` &&
5054 lt_cv_sys_max_cmd_len=$new_result &&
5055 test $i != 17 # 1/2 MB should be enough
5058 testring=$testring$testring
5061 # Add a significant safety factor because C++ compilers can tack on massive
5062 # amounts of additional arguments before passing them to the linker.
5063 # It appears as though 1/2 is a usable value.
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5070 if test -n $lt_cv_sys_max_cmd_len ; then
5071 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5072 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5074 echo "$as_me:$LINENO: result: none" >&5
5075 echo "${ECHO_T}none" >&6
5081 # Check for command to grab the raw symbol name followed by C symbol from nm.
5082 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5083 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5084 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 # These are sane defaults that work on at least a few old systems.
5089 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5091 # Character class describing NM global symbol codes.
5092 symcode='[BCDEGRST]'
5094 # Regexp to match symbols that can be accessed directly from C.
5095 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5097 # Transform the above into a raw symbol and a C symbol.
5098 symxfrm='\1 \2\3 \3'
5100 # Transform an extracted symbol line into a proper C declaration
5101 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5103 # Transform an extracted symbol line into symbol name and symbol address
5104 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'"
5106 # Define system-specific variables.
5111 cygwin* | mingw* | pw32*)
5112 symcode='[ABCDGISTW]'
5114 hpux*) # Its linker distinguishes data from code symbols
5115 if test "$host_cpu" = ia64; then
5116 symcode='[ABCDEGRST]'
5118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5119 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'"
5122 symcode='[BCDEGRST]'
5125 symcode='[BCDEGQRST]'
5135 # Handle CRLF in mingw tool chain
5139 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5143 # If we're using GNU nm, then use its standard symbol codes.
5144 case `$NM -V 2>&1` in
5145 *GNU* | *'with BFD'*)
5146 symcode='[ABCDGISTW]' ;;
5149 # Try without a prefix undercore, then with it.
5150 for ac_symprfx in "" "_"; do
5152 # Write the raw and C identifiers.
5153 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5155 # Check to see that the pipe works correctly.
5159 cat > conftest.$ac_ext <<EOF
5164 void nm_test_func(){}
5168 int main(){nm_test_var='a';nm_test_func();return(0);}
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; then
5176 # Now try to grab the symbols.
5178 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5179 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && test -s "$nlist"; then
5183 # Try sorting and uniquifying the output.
5184 if sort "$nlist" | uniq > "$nlist"T; then
5185 mv -f "$nlist"T "$nlist"
5190 # Make sure that we snagged all the symbols we need.
5191 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5192 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5193 cat <<EOF > conftest.$ac_ext
5199 # Now generate the symbol file.
5200 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5202 cat <<EOF >> conftest.$ac_ext
5203 #if defined (__STDC__) && __STDC__
5204 # define lt_ptr_t void *
5206 # define lt_ptr_t char *
5210 /* The mapping between symbol names and symbols. */
5215 lt_preloaded_symbols[] =
5218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5219 cat <<\EOF >> conftest.$ac_ext
5227 # Now try linking the two files.
5228 mv conftest.$ac_objext conftstm.$ac_objext
5229 lt_save_LIBS="$LIBS"
5230 lt_save_CFLAGS="$CFLAGS"
5231 LIBS="conftstm.$ac_objext"
5232 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5240 LIBS="$lt_save_LIBS"
5241 CFLAGS="$lt_save_CFLAGS"
5243 echo "cannot find nm_test_func in $nlist" >&5
5246 echo "cannot find nm_test_var in $nlist" >&5
5249 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5252 echo "$progname: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 rm -f conftest* conftst*
5257 # Do not use the global_symbol_pipe unless it works.
5258 if test "$pipe_works" = yes; then
5261 lt_cv_sys_global_symbol_pipe=
5267 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5268 lt_cv_sys_global_symbol_to_cdecl=
5270 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5271 echo "$as_me:$LINENO: result: failed" >&5
5272 echo "${ECHO_T}failed" >&6
5274 echo "$as_me:$LINENO: result: ok" >&5
5275 echo "${ECHO_T}ok" >&6
5278 echo "$as_me:$LINENO: checking for objdir" >&5
5279 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5280 if test "${lt_cv_objdir+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 rm -f .libs 2>/dev/null
5284 mkdir .libs 2>/dev/null
5285 if test -d .libs; then
5288 # MS-DOS does not allow filenames that begin with a dot.
5291 rmdir .libs 2>/dev/null
5293 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5294 echo "${ECHO_T}$lt_cv_objdir" >&6
5295 objdir=$lt_cv_objdir
5303 # AIX sometimes has problems with the GCC collect2 program. For some
5304 # reason, if we set the COLLECT_NAMES environment variable, the problems
5305 # vanish in a puff of smoke.
5306 if test "X${COLLECT_NAMES+set}" != Xset; then
5308 export COLLECT_NAMES
5313 # Sed substitution that helps us do robust quoting. It backslashifies
5314 # metacharacters that are still active within double-quoted strings.
5315 Xsed='sed -e s/^X//'
5316 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5318 # Same as above, but do not quote variable references.
5319 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5321 # Sed substitution to delay expansion of an escaped shell variable in a
5322 # double_quote_subst'ed string.
5323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5325 # Sed substitution to avoid accidental globbing in evaled expressions
5326 no_glob_subst='s/\*/\\\*/g'
5333 can_build_shared=yes
5335 # All known linkers require a `.a' archive for static linking (except M$VC,
5336 # which needs '.lib').
5338 ltmain="$ac_aux_dir/ltmain.sh"
5339 ofile="$default_ofile"
5340 with_gnu_ld="$lt_cv_prog_gnu_ld"
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}ar; ac_word=$2
5345 echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347 if test "${ac_cv_prog_AR+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 if test -n "$AR"; then
5351 ac_cv_prog_AR="$AR" # Let the user override the test.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_AR="${ac_tool_prefix}ar"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 if test -n "$AR"; then
5371 echo "$as_me:$LINENO: result: $AR" >&5
5372 echo "${ECHO_T}$AR" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5379 if test -z "$ac_cv_prog_AR"; then
5381 # Extract the first word of "ar", so it can be a program name with args.
5382 set dummy ar; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 if test -n "$ac_ct_AR"; then
5389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ac_ct_AR="ar"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5409 if test -n "$ac_ct_AR"; then
5410 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5411 echo "${ECHO_T}$ac_ct_AR" >&6
5413 echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5422 if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_prog_RANLIB+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 if test -n "$RANLIB"; then
5431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 RANLIB=$ac_cv_prog_RANLIB
5450 if test -n "$RANLIB"; then
5451 echo "$as_me:$LINENO: result: $RANLIB" >&5
5452 echo "${ECHO_T}$RANLIB" >&6
5454 echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5459 if test -z "$ac_cv_prog_RANLIB"; then
5460 ac_ct_RANLIB=$RANLIB
5461 # Extract the first word of "ranlib", so it can be a program name with args.
5462 set dummy ranlib; ac_word=$2
5463 echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 if test -n "$ac_ct_RANLIB"; then
5469 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_RANLIB="ranlib"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5489 if test -n "$ac_ct_RANLIB"; then
5490 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5491 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5493 echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6
5497 RANLIB=$ac_ct_RANLIB
5499 RANLIB="$ac_cv_prog_RANLIB"
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5504 set dummy ${ac_tool_prefix}strip; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_STRIP+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$STRIP"; then
5511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 STRIP=$ac_cv_prog_STRIP
5530 if test -n "$STRIP"; then
5531 echo "$as_me:$LINENO: result: $STRIP" >&5
5532 echo "${ECHO_T}$STRIP" >&6
5534 echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6
5539 if test -z "$ac_cv_prog_STRIP"; then
5541 # Extract the first word of "strip", so it can be a program name with args.
5542 set dummy strip; ac_word=$2
5543 echo "$as_me:$LINENO: checking for $ac_word" >&5
5544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 if test -n "$ac_ct_STRIP"; then
5549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_STRIP="strip"
5559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5569 if test -n "$ac_ct_STRIP"; then
5570 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5571 echo "${ECHO_T}$ac_ct_STRIP" >&6
5573 echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5579 STRIP="$ac_cv_prog_STRIP"
5584 old_CFLAGS="$CFLAGS"
5586 # Set sane defaults for various variables
5587 test -z "$AR" && AR=ar
5588 test -z "$AR_FLAGS" && AR_FLAGS=cru
5589 test -z "$AS" && AS=as
5590 test -z "$CC" && CC=cc
5591 test -z "$LTCC" && LTCC=$CC
5592 test -z "$DLLTOOL" && DLLTOOL=dlltool
5593 test -z "$LD" && LD=ld
5594 test -z "$LN_S" && LN_S="ln -s"
5595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5596 test -z "$NM" && NM=nm
5597 test -z "$SED" && SED=sed
5598 test -z "$OBJDUMP" && OBJDUMP=objdump
5599 test -z "$RANLIB" && RANLIB=:
5600 test -z "$STRIP" && STRIP=:
5601 test -z "$ac_objext" && ac_objext=o
5603 # Determine commands to create old-style static archives.
5604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5605 old_postinstall_cmds='chmod 644 $oldlib'
5606 old_postuninstall_cmds=
5608 if test -n "$RANLIB"; then
5611 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5614 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5620 # Only perform the check for file, if the check method requires it
5621 case $deplibs_check_method in
5623 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5624 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5625 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5626 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5634 lt_save_MAGIC_CMD="$MAGIC_CMD"
5635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5637 for ac_dir in $ac_dummy; do
5639 test -z "$ac_dir" && ac_dir=.
5640 if test -f $ac_dir/${ac_tool_prefix}file; then
5641 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5642 if test -n "$file_magic_test_file"; then
5643 case $deplibs_check_method in
5645 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5648 $EGREP "$file_magic_regex" > /dev/null; then
5653 *** Warning: the command libtool uses to detect shared libraries,
5654 *** $file_magic_cmd, produces output that libtool cannot recognize.
5655 *** The result is that libtool may fail to recognize shared libraries
5656 *** as such. This will affect the creation of libtool libraries that
5657 *** depend on shared libraries, but programs linked with such libtool
5658 *** libraries will work regardless of this problem. Nevertheless, you
5659 *** may want to report the problem to your system manager and/or to
5660 *** bug-libtool@gnu.org
5670 MAGIC_CMD="$lt_save_MAGIC_CMD"
5675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5676 if test -n "$MAGIC_CMD"; then
5677 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5678 echo "${ECHO_T}$MAGIC_CMD" >&6
5680 echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5684 if test -z "$lt_cv_path_MAGIC_CMD"; then
5685 if test -n "$ac_tool_prefix"; then
5686 echo "$as_me:$LINENO: checking for file" >&5
5687 echo $ECHO_N "checking for file... $ECHO_C" >&6
5688 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5696 lt_save_MAGIC_CMD="$MAGIC_CMD"
5697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5699 for ac_dir in $ac_dummy; do
5701 test -z "$ac_dir" && ac_dir=.
5702 if test -f $ac_dir/file; then
5703 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5704 if test -n "$file_magic_test_file"; then
5705 case $deplibs_check_method in
5707 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5710 $EGREP "$file_magic_regex" > /dev/null; then
5715 *** Warning: the command libtool uses to detect shared libraries,
5716 *** $file_magic_cmd, produces output that libtool cannot recognize.
5717 *** The result is that libtool may fail to recognize shared libraries
5718 *** as such. This will affect the creation of libtool libraries that
5719 *** depend on shared libraries, but programs linked with such libtool
5720 *** libraries will work regardless of this problem. Nevertheless, you
5721 *** may want to report the problem to your system manager and/or to
5722 *** bug-libtool@gnu.org
5732 MAGIC_CMD="$lt_save_MAGIC_CMD"
5737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5738 if test -n "$MAGIC_CMD"; then
5739 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5740 echo "${ECHO_T}$MAGIC_CMD" >&6
5742 echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6
5758 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5759 if test "${enable_libtool_lock+set}" = set; then
5760 enableval="$enable_libtool_lock"
5763 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5766 # Check whether --with-pic or --without-pic was given.
5767 if test "${with_pic+set}" = set; then
5773 test -z "$pic_mode" && pic_mode=default
5775 # Use C for the default configuration in the libtool script
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 # Source file extension for C test sources.
5788 # Object file extension for compiled C test sources.
5792 # Code to be used in simple compile tests
5793 lt_simple_compile_test_code="int some_variable = 0;\n"
5795 # Code to be used in simple link tests
5796 lt_simple_link_test_code='int main(){return(0);}\n'
5799 # If no C compiler was specified, use CC.
5802 # Allow CC to be a program name with arguments.
5807 # Check for any special shared library compilation flags.
5810 if test "$GCC" = no; then
5813 lt_prog_cc_shlib='-belf'
5817 if test -n "$lt_prog_cc_shlib"; then
5818 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5819 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5820 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5822 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5823 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5824 lt_cv_prog_cc_can_build_shared=no
5830 # Check to make sure the static flag actually works.
5832 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5833 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5834 if test "${lt_prog_compiler_static_works+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 lt_prog_compiler_static_works=no
5838 save_LDFLAGS="$LDFLAGS"
5839 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5840 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5842 # The compiler can only warn and ignore the option if not recognized
5843 # So say no if there are warnings
5844 if test -s conftest.err; then
5845 # Append any errors to the config.log.
5846 cat conftest.err 1>&5
5848 lt_prog_compiler_static_works=yes
5852 LDFLAGS="$save_LDFLAGS"
5855 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5856 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5858 if test x"$lt_prog_compiler_static_works" = xyes; then
5861 lt_prog_compiler_static=
5867 lt_prog_compiler_no_builtin_flag=
5869 if test "$GCC" = yes; then
5870 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5872 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5873 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5874 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 lt_cv_prog_compiler_rtti_exceptions=no
5878 ac_outfile=conftest.$ac_objext
5879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5880 lt_compiler_flag="-fno-rtti -fno-exceptions"
5881 # Insert the option either (1) after the last *FLAGS variable, or
5882 # (2) before a word containing "conftest.", or (3) at the end.
5883 # Note that $ac_compile itself does not contain backslashes and begins
5884 # with a dollar sign (not a hyphen), so the echo should work correctly.
5885 # The option is referenced via a variable to avoid confusing sed.
5886 lt_compile=`echo "$ac_compile" | $SED \
5887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5889 -e 's:$: $lt_compiler_flag:'`
5890 (eval echo "\"\$as_me:5890: $lt_compile\"" >&5)
5891 (eval "$lt_compile" 2>conftest.err)
5893 cat conftest.err >&5
5894 echo "$as_me:5894: \$? = $ac_status" >&5
5895 if (exit $ac_status) && test -s "$ac_outfile"; then
5896 # The compiler can only warn and ignore the option if not recognized
5897 # So say no if there are warnings
5898 if test ! -s conftest.err; then
5899 lt_cv_prog_compiler_rtti_exceptions=yes
5905 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5906 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5916 lt_prog_compiler_wl=
5917 lt_prog_compiler_pic=
5918 lt_prog_compiler_static=
5920 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5921 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5923 if test "$GCC" = yes; then
5924 lt_prog_compiler_wl='-Wl,'
5925 lt_prog_compiler_static='-static'
5929 # All AIX code is PIC.
5930 if test "$host_cpu" = ia64; then
5931 # AIX 5 now supports IA64 processor
5932 lt_prog_compiler_static='-Bstatic'
5937 # FIXME: we need at least 68020 code to build shared libraries, but
5938 # adding the `-m68020' flag to GCC prevents building anything better,
5940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5943 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5944 # PIC is the default for these OSes.
5947 mingw* | pw32* | os2*)
5948 # This hack is so that the source file can tell whether it is being
5949 # built for inclusion in a dll (and should export symbols for example).
5950 lt_prog_compiler_pic='-DDLL_EXPORT'
5953 darwin* | rhapsody*)
5954 # PIC is the default on this platform
5955 # Common symbols not allowed in MH_DYLIB files
5956 lt_prog_compiler_pic='-fno-common'
5960 # Just because we use GCC doesn't mean we suddenly get shared libraries
5961 # on systems that don't support them.
5962 lt_prog_compiler_can_build_shared=no
5967 if test -d /usr/nec; then
5968 lt_prog_compiler_pic=-Kconform_pic
5973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5980 lt_prog_compiler_pic='-fPIC'
5986 lt_prog_compiler_pic='-fPIC'
5990 # PORTME Check for flag to pass linker flags through the system compiler.
5993 lt_prog_compiler_wl='-Wl,'
5994 if test "$host_cpu" = ia64; then
5995 # AIX 5 now supports IA64 processor
5996 lt_prog_compiler_static='-Bstatic'
5998 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6002 mingw* | pw32* | os2*)
6003 # This hack is so that the source file can tell whether it is being
6004 # built for inclusion in a dll (and should export symbols for example).
6005 lt_prog_compiler_pic='-DDLL_EXPORT'
6008 hpux9* | hpux10* | hpux11*)
6009 lt_prog_compiler_wl='-Wl,'
6010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6017 lt_prog_compiler_pic='+Z'
6020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6021 lt_prog_compiler_static='${wl}-a ${wl}archive'
6024 irix5* | irix6* | nonstopux*)
6025 lt_prog_compiler_wl='-Wl,'
6026 # PIC (with -KPIC) is the default.
6027 lt_prog_compiler_static='-non_shared'
6031 lt_prog_compiler_pic='-KPIC'
6032 lt_prog_compiler_static='-Bstatic'
6038 lt_prog_compiler_wl='-Wl,'
6039 lt_prog_compiler_pic='-KPIC'
6040 lt_prog_compiler_static='-static'
6043 lt_prog_compiler_wl='-Wl,'
6044 # All Alpha code is PIC.
6045 lt_prog_compiler_static='-non_shared'
6050 osf3* | osf4* | osf5*)
6051 lt_prog_compiler_wl='-Wl,'
6052 # All OSF/1 code is PIC.
6053 lt_prog_compiler_static='-non_shared'
6057 lt_prog_compiler_pic='-Kpic'
6058 lt_prog_compiler_static='-dn'
6062 lt_prog_compiler_wl='-Wl,'
6063 lt_prog_compiler_pic='-KPIC'
6064 lt_prog_compiler_static='-Bstatic'
6068 lt_prog_compiler_wl='-Qoption ld '
6069 lt_prog_compiler_pic='-PIC'
6070 lt_prog_compiler_static='-Bstatic'
6073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6074 lt_prog_compiler_wl='-Wl,'
6075 lt_prog_compiler_pic='-KPIC'
6076 lt_prog_compiler_static='-Bstatic'
6080 if test -d /usr/nec ;then
6081 lt_prog_compiler_pic='-Kconform_pic'
6082 lt_prog_compiler_static='-Bstatic'
6087 lt_prog_compiler_pic='-pic'
6088 lt_prog_compiler_static='-Bstatic'
6092 lt_prog_compiler_can_build_shared=no
6097 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6098 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6101 # Check to make sure the PIC flag actually works.
6103 if test -n "$lt_prog_compiler_pic"; then
6104 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6106 if test "${lt_prog_compiler_pic_works+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 lt_prog_compiler_pic_works=no
6110 ac_outfile=conftest.$ac_objext
6111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6113 # Insert the option either (1) after the last *FLAGS variable, or
6114 # (2) before a word containing "conftest.", or (3) at the end.
6115 # Note that $ac_compile itself does not contain backslashes and begins
6116 # with a dollar sign (not a hyphen), so the echo should work correctly.
6117 # The option is referenced via a variable to avoid confusing sed.
6118 lt_compile=`echo "$ac_compile" | $SED \
6119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121 -e 's:$: $lt_compiler_flag:'`
6122 (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
6123 (eval "$lt_compile" 2>conftest.err)
6125 cat conftest.err >&5
6126 echo "$as_me:6126: \$? = $ac_status" >&5
6127 if (exit $ac_status) && test -s "$ac_outfile"; then
6128 # The compiler can only warn and ignore the option if not recognized
6129 # So say no if there are warnings
6130 if test ! -s conftest.err; then
6131 lt_prog_compiler_pic_works=yes
6137 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6138 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6140 if test x"$lt_prog_compiler_pic_works" = xyes; then
6141 case $lt_prog_compiler_pic in
6143 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6146 lt_prog_compiler_pic=
6147 lt_prog_compiler_can_build_shared=no
6152 # For platforms which do not support PIC, -DPIC is meaningless:
6154 lt_prog_compiler_pic=
6157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6161 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6162 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6163 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 lt_cv_prog_compiler_c_o=no
6167 $rm -r conftest 2>/dev/null
6171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6173 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6174 # that will create temporary files in the current directory regardless of
6175 # the output directory. Thus, making CWD read-only will cause this test
6176 # to fail, enabling locking or at least warning the user not to do parallel
6180 lt_compiler_flag="-o out/conftest2.$ac_objext"
6181 # Insert the option either (1) after the last *FLAGS variable, or
6182 # (2) before a word containing "conftest.", or (3) at the end.
6183 # Note that $ac_compile itself does not contain backslashes and begins
6184 # with a dollar sign (not a hyphen), so the echo should work correctly.
6185 lt_compile=`echo "$ac_compile" | $SED \
6186 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6188 -e 's:$: $lt_compiler_flag:'`
6189 (eval echo "\"\$as_me:6189: $lt_compile\"" >&5)
6190 (eval "$lt_compile" 2>out/conftest.err)
6192 cat out/conftest.err >&5
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6196 # The compiler can only warn and ignore the option if not recognized
6197 # So say no if there are warnings
6198 if test ! -s out/conftest.err; then
6199 lt_cv_prog_compiler_c_o=yes
6210 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6214 hard_links="nottested"
6215 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6216 # do not overwrite the value of need_locks provided by the user
6217 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6218 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6223 ln conftest.a conftest.b 2>&5 || hard_links=no
6224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6225 echo "$as_me:$LINENO: result: $hard_links" >&5
6226 echo "${ECHO_T}$hard_links" >&6
6227 if test "$hard_links" = no; then
6228 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6229 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6236 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6240 allow_undefined_flag=
6241 enable_shared_with_static_runtimes=no
6243 archive_expsym_cmds=
6244 old_archive_From_new_cmds=
6245 old_archive_from_expsyms_cmds=
6246 export_dynamic_flag_spec=
6247 whole_archive_flag_spec=
6248 thread_safe_flag_spec=
6249 hardcode_libdir_flag_spec=
6250 hardcode_libdir_flag_spec_ld=
6251 hardcode_libdir_separator=
6254 hardcode_shlibpath_var=unsupported
6255 link_all_deplibs=unknown
6256 hardcode_automatic=no
6259 always_export_symbols=no
6260 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6261 # include_expsyms should be a list of space-separated symbols to be *always*
6262 # included in the symbol list
6264 # exclude_expsyms can be an extended regexp of symbols to exclude
6265 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6266 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6267 # as well as any symbol that contains `d'.
6268 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6269 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6270 # platforms (ab)use it in PIC code, but their linkers get confused if
6271 # the symbol is explicitly referenced. Since portable code cannot
6272 # rely on this symbol name, it's probably fine to never include it in
6273 # preloaded symbol tables.
6274 extract_expsyms_cmds=
6277 cygwin* | mingw* | pw32*)
6278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6279 # When not using gcc, we currently assume that we are using
6280 # Microsoft Visual C++.
6281 if test "$GCC" != yes; then
6291 if test "$with_gnu_ld" = yes; then
6292 # If archive_cmds runs LD, not CC, wlarc should be empty
6295 # See if GNU ld supports shared libraries.
6297 aix3* | aix4* | aix5*)
6298 # On AIX/PPC, the GNU linker is very broken
6299 if test "$host_cpu" != ia64; then
6303 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6304 *** to be unable to reliably create shared libraries on AIX.
6305 *** Therefore, libtool is disabling shared libraries support. If you
6306 *** really care for shared libraries, you may want to modify your PATH
6307 *** so that a non-GNU linker is found, and then restart.
6314 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)'
6315 hardcode_libdir_flag_spec='-L$libdir'
6316 hardcode_minus_L=yes
6318 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6319 # that the semantics of dynamic libraries on AmigaOS, at least up
6320 # to version 4, is to share data among multiple programs linked
6321 # with the same dynamic library. Since this doesn't match the
6322 # behavior of shared libraries on other platforms, we can't use
6328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6329 allow_undefined_flag=unsupported
6330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6331 # support --undefined. This deserves some investigation. FIXME
6332 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6338 cygwin* | mingw* | pw32*)
6339 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6340 # as there is no search path for DLLs.
6341 hardcode_libdir_flag_spec='-L$libdir'
6342 allow_undefined_flag=unsupported
6343 always_export_symbols=no
6344 enable_shared_with_static_runtimes=yes
6345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6347 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6349 # If the export-symbols file already is a .def file (1st line
6350 # is EXPORTS), use it as is; otherwise, prepend...
6351 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6352 cp $export_symbols $output_objdir/$soname.def;
6354 echo EXPORTS > $output_objdir/$soname.def;
6355 cat $export_symbols >> $output_objdir/$soname.def;
6357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6374 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6379 *** create shared libraries on Solaris systems. Therefore, libtool
6380 *** is disabling shared libraries support. We urge you to upgrade GNU
6381 *** binutils to release 2.9.1 or newer. Another option is to modify
6382 *** your PATH or compiler configuration so that the native linker is
6383 *** used, and then restart.
6386 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6395 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6398 hardcode_shlibpath_var=no
6402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6411 if test "$ld_shlibs" = yes; then
6412 runpath_var=LD_RUN_PATH
6413 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6414 export_dynamic_flag_spec='${wl}--export-dynamic'
6415 # ancient GNU ld didn't support --whole-archive et. al.
6416 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6419 whole_archive_flag_spec=
6423 # PORTME fill in a description of your system's linker (not GNU ld)
6426 allow_undefined_flag=unsupported
6427 always_export_symbols=yes
6428 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'
6429 # Note: this linker hardcodes the directories in LIBPATH if there
6430 # are no directories specified by -L.
6431 hardcode_minus_L=yes
6432 if test "$GCC" = yes && test -z "$link_static_flag"; then
6433 # Neither direct hardcoding nor static linking is supported with a
6435 hardcode_direct=unsupported
6440 if test "$host_cpu" = ia64; then
6441 # On IA64, the linker does run time linking by default, so we don't
6442 # have to do anything special.
6443 aix_use_runtimelinking=no
6444 exp_sym_flag='-Bexport'
6447 # If we're using GNU nm, then we don't want the "-C" option.
6448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6449 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6450 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'
6452 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'
6454 aix_use_runtimelinking=no
6456 # Test if we are trying to use run time linking or normal
6457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6458 # need to do runtime linking.
6459 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6460 for ld_flag in $LDFLAGS; do
6461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6462 aix_use_runtimelinking=yes
6468 exp_sym_flag='-bexport'
6469 no_entry_flag='-bnoentry'
6472 # When large executables or shared objects are built, AIX ld can
6473 # have problems creating the table of contents. If linking a library
6474 # or program results in "error TOC overflow" add -mminimal-toc to
6475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6480 hardcode_libdir_separator=':'
6481 link_all_deplibs=yes
6483 if test "$GCC" = yes; then
6484 case $host_os in aix4.012|aix4.012.*)
6485 # We only want to do this on AIX 4.2 and lower, the check
6486 # below for broken collect2 doesn't work under 4.3+
6487 collect2name=`${CC} -print-prog-name=collect2`
6488 if test -f "$collect2name" && \
6489 strings "$collect2name" | grep resolve_lib_name >/dev/null
6491 # We have reworked collect2
6494 # We have old collect2
6495 hardcode_direct=unsupported
6496 # It fails to find uninstalled libraries when the uninstalled
6497 # path is not listed in the libpath. Setting hardcode_minus_L
6498 # to unsupported forces relinking
6499 hardcode_minus_L=yes
6500 hardcode_libdir_flag_spec='-L$libdir'
6501 hardcode_libdir_separator=
6504 shared_flag='-shared'
6507 if test "$host_cpu" = ia64; then
6508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6509 # chokes on -Wl,-G. The following line is correct:
6512 if test "$aix_use_runtimelinking" = yes; then
6513 shared_flag='${wl}-G'
6515 shared_flag='${wl}-bM:SRE'
6520 # It seems that -bexpall does not export symbols beginning with
6521 # underscore (_), so it is better to generate a list of symbols to export.
6522 always_export_symbols=yes
6523 if test "$aix_use_runtimelinking" = yes; then
6524 # Warning - without using the other runtime loading flags (-brtl),
6525 # -berok will link without error, but may produce a broken library.
6526 allow_undefined_flag='-berok'
6527 # Determine the default libpath from the value encoded in an empty executable.
6528 cat >conftest.$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -s conftest$ac_exeext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6559 # Check for a 64-bit object if we didn't find anything.
6560 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; }
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6571 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"
6573 if test "$host_cpu" = ia64; then
6574 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6575 allow_undefined_flag="-z nodefs"
6576 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"
6578 # Determine the default libpath from the value encoded in an empty executable.
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line $LINENO "configure"
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6610 # Check for a 64-bit object if we didn't find anything.
6611 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; }
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6621 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6622 # Warning - without using the other run time loading flags,
6623 # -berok will link without error, but may produce a broken library.
6624 no_undefined_flag=' ${wl}-bernotok'
6625 allow_undefined_flag=' ${wl}-berok'
6626 # -bexpall does not export symbols beginning with underscore (_)
6627 always_export_symbols=yes
6628 # Exported symbols can be pulled into shared objects from archives
6629 whole_archive_flag_spec=' '
6630 archive_cmds_need_lc=yes
6631 # This is similar to how AIX traditionally builds it's shared libraries.
6632 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'
6638 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)'
6639 hardcode_libdir_flag_spec='-L$libdir'
6640 hardcode_minus_L=yes
6641 # see comment about different semantics on the GNU ld section
6646 export_dynamic_flag_spec=-rdynamic
6649 cygwin* | mingw* | pw32*)
6650 # When not using gcc, we currently assume that we are using
6651 # Microsoft Visual C++.
6652 # hardcode_libdir_flag_spec is actually meaningless, as there is
6653 # no search path for DLLs.
6654 hardcode_libdir_flag_spec=' '
6655 allow_undefined_flag=unsupported
6656 # Tell ltmain to make .lib files, not .a files.
6658 # Tell ltmain to make .dll files, not .so files.
6660 # FIXME: Setting linknames here is a bad hack.
6661 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6662 # The linker will automatically build a .lib file if we build a DLL.
6663 old_archive_From_new_cmds='true'
6664 # FIXME: Should let the user specify the lib program.
6665 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6666 fix_srcfile_path='`cygpath -w "$srcfile"`'
6667 enable_shared_with_static_runtimes=yes
6670 darwin* | rhapsody*)
6671 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6672 archive_cmds_need_lc=no
6674 rhapsody* | darwin1.[012])
6675 allow_undefined_flag='-undefined suppress'
6678 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6681 # FIXME: Relying on posixy $() will cause problems for
6682 # cross-compilation, but unfortunately the echo tests do not
6683 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6684 # `"' quotes if we put them in here... so don't!
6685 lt_int_apple_cc_single_mod=no
6686 output_verbose_link_cmd='echo'
6687 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6688 lt_int_apple_cc_single_mod=yes
6690 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6691 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6693 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6695 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698 archive_expsym_cmds='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}'
6700 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6702 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6704 hardcode_automatic=yes
6705 hardcode_shlibpath_var=unsupported
6706 whole_archive_flag_spec='-all_load $convenience'
6707 link_all_deplibs=yes
6712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6713 hardcode_libdir_flag_spec='-L$libdir'
6714 hardcode_shlibpath_var=no
6721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6722 # support. Future versions do this automatically, but an explicit c++rt0.o
6723 # does not break anything, and helps significantly (at the cost of a little
6726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6727 hardcode_libdir_flag_spec='-R$libdir'
6729 hardcode_shlibpath_var=no
6732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6736 hardcode_minus_L=yes
6737 hardcode_shlibpath_var=no
6740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6742 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6743 hardcode_libdir_flag_spec='-R$libdir'
6745 hardcode_shlibpath_var=no
6749 if test "$GCC" = yes; then
6750 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'
6752 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'
6754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6755 hardcode_libdir_separator=:
6758 # hardcode_minus_L: Not really in the search PATH,
6759 # but as the default location of the library.
6760 hardcode_minus_L=yes
6761 export_dynamic_flag_spec='${wl}-E'
6765 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6768 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6777 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6780 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6784 if test "$with_gnu_ld" = no; then
6787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6788 hardcode_libdir_flag_spec_ld='+b $libdir'
6789 hardcode_libdir_separator=:
6791 hardcode_shlibpath_var=no
6794 hardcode_libdir_flag_spec='-L$libdir'
6796 hardcode_shlibpath_var=no
6798 # hardcode_minus_L: Not really in the search PATH,
6799 # but as the default location of the library.
6800 hardcode_minus_L=yes
6803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6804 hardcode_libdir_separator=:
6806 export_dynamic_flag_spec='${wl}-E'
6808 # hardcode_minus_L: Not really in the search PATH,
6809 # but as the default location of the library.
6810 hardcode_minus_L=yes
6816 irix5* | irix6* | nonstopux*)
6817 if test "$GCC" = yes; then
6818 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'
6820 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'
6821 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6824 hardcode_libdir_separator=:
6825 link_all_deplibs=yes
6829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6834 hardcode_libdir_flag_spec='-R$libdir'
6836 hardcode_shlibpath_var=no
6840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6843 hardcode_libdir_separator=:
6844 hardcode_shlibpath_var=no
6849 hardcode_shlibpath_var=no
6850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6853 export_dynamic_flag_spec='${wl}-E'
6856 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6858 hardcode_libdir_flag_spec='-R$libdir'
6861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6869 hardcode_libdir_flag_spec='-L$libdir'
6870 hardcode_minus_L=yes
6871 allow_undefined_flag=unsupported
6872 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'
6873 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6877 if test "$GCC" = yes; then
6878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6879 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'
6881 allow_undefined_flag=' -expect_unresolved \*'
6882 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'
6884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6885 hardcode_libdir_separator=:
6888 osf4* | osf5*) # as osf3* with the addition of -msym flag
6889 if test "$GCC" = yes; then
6890 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6891 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'
6892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6894 allow_undefined_flag=' -expect_unresolved \*'
6895 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'
6896 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6897 $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'
6899 # Both c and cxx compiler support -rpath directly
6900 hardcode_libdir_flag_spec='-rpath $libdir'
6902 hardcode_libdir_separator=:
6906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907 hardcode_shlibpath_var=no
6908 export_dynamic_flag_spec='${wl}-Bexport'
6909 runpath_var=LD_RUN_PATH
6910 hardcode_runpath_var=yes
6914 no_undefined_flag=' -z text'
6915 if test "$GCC" = yes; then
6916 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6917 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6918 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6920 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6924 hardcode_libdir_flag_spec='-R$libdir'
6925 hardcode_shlibpath_var=no
6927 solaris2.[0-5] | solaris2.[0-5].*) ;;
6928 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6931 link_all_deplibs=yes
6935 if test "x$host_vendor" = xsequent; then
6936 # Use $CC to link under sequent, because it throws in some extra .o
6937 # files that make .init and .fini sections work.
6938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6942 hardcode_libdir_flag_spec='-L$libdir'
6944 hardcode_minus_L=yes
6945 hardcode_shlibpath_var=no
6949 case $host_vendor in
6951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6952 hardcode_direct=yes # is this really true???
6955 ## LD is ld it makes a PLAMLIB
6956 ## CC just makes a GrossModule.
6957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6958 reload_cmds='$CC -r -o $output$reload_objs'
6962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6966 runpath_var='LD_RUN_PATH'
6967 hardcode_shlibpath_var=no
6971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972 hardcode_shlibpath_var=no
6973 export_dynamic_flag_spec='-Bexport'
6977 if test -d /usr/nec; then
6978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_shlibpath_var=no
6980 runpath_var=LD_RUN_PATH
6981 hardcode_runpath_var=yes
6987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6990 hardcode_shlibpath_var=no
6991 hardcode_runpath_var=yes
6992 runpath_var=LD_RUN_PATH
6995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6996 no_undefined_flag='${wl}-z ${wl}text'
6997 if test "$GCC" = yes; then
6998 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7000 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7002 runpath_var='LD_RUN_PATH'
7003 hardcode_shlibpath_var=no
7007 no_undefined_flag=' -z text'
7008 # $CC -shared without GNU ld will not create a library from C++
7009 # object files and a static libstdc++, better avoid it by now
7010 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7011 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7012 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7013 hardcode_libdir_flag_spec=
7014 hardcode_shlibpath_var=no
7015 runpath_var='LD_RUN_PATH'
7019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020 hardcode_libdir_flag_spec='-L$libdir'
7021 hardcode_shlibpath_var=no
7030 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7031 echo "${ECHO_T}$ld_shlibs" >&6
7032 test "$ld_shlibs" = no && can_build_shared=no
7034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7035 if test "$GCC" = yes; then
7036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7040 # Do we need to explicitly link libc?
7042 case "x$archive_cmds_need_lc" in
7044 # Assume -lc should be added
7045 archive_cmds_need_lc=yes
7047 if test "$enable_shared" = yes && test "$GCC" = yes; then
7048 case $archive_cmds in
7050 # FIXME: we may have to deal with multi-command sequences.
7053 # Test whether the compiler implicitly links with -lc since on some
7054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7055 # to ld, don't add -lc before -lgcc.
7056 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7057 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7062 (eval $ac_compile) 2>&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } 2>conftest.err; then
7068 libobjs=conftest.$ac_objext
7070 wl=$lt_prog_compiler_wl
7076 lt_save_allow_undefined_flag=$allow_undefined_flag
7077 allow_undefined_flag=
7078 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7079 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }
7084 archive_cmds_need_lc=no
7086 archive_cmds_need_lc=yes
7088 allow_undefined_flag=$lt_save_allow_undefined_flag
7090 cat conftest.err 1>&5
7093 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7094 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7101 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7104 if test -n "$hardcode_libdir_flag_spec" || \
7105 test -n "$runpath_var " || \
7106 test "X$hardcode_automatic"="Xyes" ; then
7108 # We can hardcode non-existant directories.
7109 if test "$hardcode_direct" != no &&
7110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7111 # have to relink, otherwise we might link with an installed library
7112 # when we should be linking with a yet-to-be-installed one
7113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7114 test "$hardcode_minus_L" != no; then
7115 # Linking always hardcodes the temporary library directory.
7116 hardcode_action=relink
7118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7119 hardcode_action=immediate
7122 # We cannot hardcode anything, or else we can only hardcode existing
7124 hardcode_action=unsupported
7126 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7127 echo "${ECHO_T}$hardcode_action" >&6
7129 if test "$hardcode_action" = relink; then
7130 # Fast installation is not supported
7131 enable_fast_install=no
7132 elif test "$shlibpath_overrides_runpath" = yes ||
7133 test "$enable_shared" = no; then
7134 # Fast installation is not necessary
7135 enable_fast_install=needless
7140 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7141 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7142 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7143 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7144 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7145 echo "$as_me:$LINENO: result: yes" >&5
7146 echo "${ECHO_T}yes" >&6
7148 # FIXME - insert some real tests, host_os isn't really good enough
7151 if test -n "$STRIP" ; then
7152 striplib="$STRIP -x"
7153 echo "$as_me:$LINENO: result: yes" >&5
7154 echo "${ECHO_T}yes" >&6
7156 echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7161 echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7167 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7168 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7170 libname_spec='lib$name'
7178 shlibpath_overrides_runpath=unknown
7180 dynamic_linker="$host_os ld.so"
7181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7182 if test "$GCC" = yes; then
7183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7184 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7185 # if the path contains ";" then we assume it to be the separator
7186 # otherwise default to the standard path separator (i.e. ":") - it is
7187 # assumed that no part of a normal pathname contains ";" but that should
7188 # okay in the real world where ";" in dirpaths is itself problematic.
7189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7196 need_lib_prefix=unknown
7197 hardcode_into_libs=no
7199 # when you set need_version to no, make sure it does not cause -set_version
7200 # flags to be left without arguments
7201 need_version=unknown
7206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7207 shlibpath_var=LIBPATH
7209 # AIX 3 has no versioning support, so we append a major version to the name.
7210 soname_spec='${libname}${release}${shared_ext}$major'
7217 hardcode_into_libs=yes
7218 if test "$host_cpu" = ia64; then
7219 # AIX 5 supports IA64
7220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7221 shlibpath_var=LD_LIBRARY_PATH
7223 # With GCC up to 2.95.x, collect2 would create an import file
7224 # for dependence libraries. The import file would start with
7225 # the line `#! .'. This would cause the generated library to
7226 # depend on `.', always an invalid library. This was fixed in
7227 # development snapshots of GCC prior to 3.0.
7229 aix4 | aix4.[01] | aix4.[01].*)
7230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7232 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7240 # soname into executable. Probably we can add versioning support to
7241 # collect2, so additional links can be useful in future.
7242 if test "$aix_use_runtimelinking" = yes; then
7243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7244 # instead of lib<name>.a to let people know that these are not
7245 # typical AIX shared libraries.
7246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7248 # We preserve .a as extension for shared libraries through AIX4.2
7249 # and later when we are not doing run time linking.
7250 library_names_spec='${libname}${release}.a $libname.a'
7251 soname_spec='${libname}${release}${shared_ext}$major'
7253 shlibpath_var=LIBPATH
7258 library_names_spec='$libname.ixlibrary $libname.a'
7259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7260 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'
7264 library_names_spec='${libname}${shared_ext}'
7265 dynamic_linker="$host_os ld.so"
7266 shlibpath_var=LIBRARY_PATH
7272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7273 soname_spec='${libname}${release}${shared_ext}$major'
7274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7275 shlibpath_var=LD_LIBRARY_PATH
7276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7278 # the default ld.so.conf also contains /usr/contrib/lib and
7279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7280 # libtool to hard-code these into programs
7283 cygwin* | mingw* | pw32*)
7284 version_type=windows
7289 case $GCC,$host_os in
7290 yes,cygwin* | yes,mingw* | yes,pw32*)
7291 library_names_spec='$libname.dll.a'
7292 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7293 postinstall_cmds='base_file=`basename \${file}`~
7294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7295 dldir=$destdir/`dirname \$dlpath`~
7296 test -d \$dldir || mkdir -p \$dldir~
7297 $install_prog $dir/$dlname \$dldir/$dlname'
7298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7299 dlpath=$dir/\$dldll~
7301 shlibpath_overrides_runpath=yes
7305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7310 # MinGW DLLs use traditional 'lib' prefix
7311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7314 # It is most probably a Windows format PATH printed by
7315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7316 # path with ; separators, and with drive letters. We can handle the
7317 # drive letters (cygwin fileutils understands them), so leave them,
7318 # especially as we might pass files found there to a mingw objdump,
7319 # which wouldn't understand a cygwinified path. Ahh.
7320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7326 # pw32 DLLs use 'pw' prefix rather than 'lib'
7327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7336 dynamic_linker='Win32 ld.exe'
7337 # FIXME: first we should search . and the directory the executable is in
7341 darwin* | rhapsody*)
7342 dynamic_linker="$host_os dyld"
7346 # FIXME: Relying on posixy $() will cause problems for
7347 # cross-compilation, but unfortunately the echo tests do not
7348 # yet detect zsh echo's removal of \ escapes.
7349 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7350 soname_spec='${libname}${release}${major}$shared_ext'
7351 shlibpath_overrides_runpath=yes
7352 shlibpath_var=DYLD_LIBRARY_PATH
7353 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7354 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7355 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7356 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"`
7358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7366 soname_spec='${libname}${release}${shared_ext}$major'
7367 shlibpath_var=LD_LIBRARY_PATH
7375 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7376 version_type=freebsd-$objformat
7377 case $version_type in
7379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7388 shlibpath_var=LD_LIBRARY_PATH
7391 shlibpath_overrides_runpath=yes
7393 freebsd3.01* | freebsdelf3.01*)
7394 shlibpath_overrides_runpath=yes
7395 hardcode_into_libs=yes
7398 shlibpath_overrides_runpath=no
7399 hardcode_into_libs=yes
7408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7409 soname_spec='${libname}${release}${shared_ext}$major'
7410 shlibpath_var=LD_LIBRARY_PATH
7411 hardcode_into_libs=yes
7414 hpux9* | hpux10* | hpux11*)
7415 # Give a soname corresponding to the major version so that dld.sl refuses to
7416 # link against other versions.
7423 hardcode_into_libs=yes
7424 dynamic_linker="$host_os dld.so"
7425 shlibpath_var=LD_LIBRARY_PATH
7426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428 soname_spec='${libname}${release}${shared_ext}$major'
7429 if test "X$HPUX_IA64_MODE" = X32; then
7430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7438 hardcode_into_libs=yes
7439 dynamic_linker="$host_os dld.sl"
7440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443 soname_spec='${libname}${release}${shared_ext}$major'
7444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7449 dynamic_linker="$host_os dld.sl"
7450 shlibpath_var=SHLIB_PATH
7451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7453 soname_spec='${libname}${release}${shared_ext}$major'
7456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7457 postinstall_cmds='chmod 555 $lib'
7460 irix5* | irix6* | nonstopux*)
7462 nonstopux*) version_type=nonstopux ;;
7464 if test "$lt_cv_prog_gnu_ld" = yes; then
7472 soname_spec='${libname}${release}${shared_ext}$major'
7473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7475 irix5* | nonstopux*)
7479 case $LD in # libtool.m4 will add one of these switches to LD
7480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7481 libsuff= shlibsuff= libmagic=32-bit;;
7482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7483 libsuff=32 shlibsuff=N32 libmagic=N32;;
7484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7486 *) libsuff= shlibsuff= libmagic=never-match;;
7490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7491 shlibpath_overrides_runpath=no
7492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7494 hardcode_into_libs=yes
7497 # No shared lib support for Linux oldld, aout, or coff.
7498 linux*oldld* | linux*aout* | linux*coff*)
7502 # This must be Linux ELF.
7507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7508 soname_spec='${libname}${release}${shared_ext}$major'
7509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7510 shlibpath_var=LD_LIBRARY_PATH
7511 shlibpath_overrides_runpath=no
7512 # This implies no fast_install, which is unacceptable.
7513 # Some rework will be needed to allow for fast_install
7514 # before this can be enabled.
7515 hardcode_into_libs=yes
7517 # We used to test for /lib/ld.so.1 and disable shared libraries on
7518 # powerpc, because MkLinux only supported shared libraries with the
7519 # GNU dynamic linker. Since this was broken with cross compilers,
7520 # most powerpc-linux boxes support dynamic linking these days and
7521 # people can always --disable-shared, the test was removed, and we
7522 # assume the GNU/Linux dynamic linker is in use.
7523 dynamic_linker='GNU/Linux ld.so'
7530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7533 dynamic_linker='NetBSD (a.out) ld.so'
7535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7536 soname_spec='${libname}${release}${shared_ext}$major'
7537 dynamic_linker='NetBSD ld.elf_so'
7539 shlibpath_var=LD_LIBRARY_PATH
7540 shlibpath_overrides_runpath=yes
7541 hardcode_into_libs=yes
7546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7547 shlibpath_var=LD_LIBRARY_PATH
7548 shlibpath_overrides_runpath=yes
7555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556 soname_spec='${libname}${release}${shared_ext}$major'
7557 shlibpath_var=LD_LIBRARY_PATH
7558 shlibpath_overrides_runpath=yes
7565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7567 shlibpath_var=LD_LIBRARY_PATH
7568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7570 openbsd2.[89] | openbsd2.[89].*)
7571 shlibpath_overrides_runpath=no
7574 shlibpath_overrides_runpath=yes
7578 shlibpath_overrides_runpath=yes
7583 libname_spec='$name'
7586 library_names_spec='$libname${shared_ext} $libname.a'
7587 dynamic_linker='OS/2 ld.exe'
7588 shlibpath_var=LIBPATH
7591 osf3* | osf4* | osf5*)
7595 soname_spec='${libname}${release}${shared_ext}$major'
7596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7597 shlibpath_var=LD_LIBRARY_PATH
7598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7604 soname_spec='${libname}${release}${shared_ext}$major'
7605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7606 shlibpath_var=LD_LIBRARY_PATH
7613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7614 soname_spec='${libname}${release}${shared_ext}$major'
7615 shlibpath_var=LD_LIBRARY_PATH
7616 shlibpath_overrides_runpath=yes
7617 hardcode_into_libs=yes
7618 # ldd complains unless libraries are executable
7619 postinstall_cmds='chmod +x $lib'
7624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7626 shlibpath_var=LD_LIBRARY_PATH
7627 shlibpath_overrides_runpath=yes
7628 if test "$with_gnu_ld" = yes; then
7634 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7637 soname_spec='${libname}${release}${shared_ext}$major'
7638 shlibpath_var=LD_LIBRARY_PATH
7639 case $host_vendor in
7641 shlibpath_overrides_runpath=no
7643 export_dynamic_flag_spec='${wl}-Blargedynsym'
7644 runpath_var=LD_RUN_PATH
7652 shlibpath_overrides_runpath=no
7653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7659 if test -d /usr/nec ;then
7661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7662 soname_spec='$libname${shared_ext}.$major'
7663 shlibpath_var=LD_LIBRARY_PATH
7669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670 soname_spec='${libname}${release}${shared_ext}$major'
7671 shlibpath_var=LD_LIBRARY_PATH
7678 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7679 echo "${ECHO_T}$dynamic_linker" >&6
7680 test "$dynamic_linker" = no && can_build_shared=no
7682 if test "x$enable_dlopen" != xyes; then
7683 enable_dlopen=unknown
7684 enable_dlopen_self=unknown
7685 enable_dlopen_self_static=unknown
7692 lt_cv_dlopen="load_add_on"
7694 lt_cv_dlopen_self=yes
7698 lt_cv_dlopen="LoadLibrary"
7703 lt_cv_dlopen="dlopen"
7708 # if libdl is installed we need to link against it
7709 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_check_lib_save_LIBS=$LIBS
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7724 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_lib_dl_dlopen=yes
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 ac_cv_lib_dl_dlopen=no
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7761 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7762 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7763 if test $ac_cv_lib_dl_dlopen = yes; then
7764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7769 lt_cv_dlopen_self=yes
7776 echo "$as_me:$LINENO: checking for shl_load" >&5
7777 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7778 if test "${ac_cv_func_shl_load+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 cat >conftest.$ac_ext <<_ACEOF
7782 #line $LINENO "configure"
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 /* System header to define __stub macros and hopefully few prototypes,
7789 which can conflict with char shl_load (); below.
7790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 <limits.h> exists even on freestanding compilers. */
7793 # include <limits.h>
7795 # include <assert.h>
7797 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7805 /* The GNU C library defines this for functions which it implements
7806 to always fail with ENOSYS. Some functions are actually named
7807 something starting with __ and the normal name is an alias. */
7808 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7811 char (*f) () = shl_load;
7820 return f != shl_load;
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -s conftest$ac_exeext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7837 ac_cv_func_shl_load=yes
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ac_cv_func_shl_load=no
7844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7848 if test $ac_cv_func_shl_load = yes; then
7849 lt_cv_dlopen="shl_load"
7851 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_check_lib_save_LIBS=$LIBS
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7866 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_lib_dld_shl_load=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_lib_dld_shl_load=no
7900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7905 if test $ac_cv_lib_dld_shl_load = yes; then
7906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7908 echo "$as_me:$LINENO: checking for dlopen" >&5
7909 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7910 if test "${ac_cv_func_dlopen+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7914 #line $LINENO "configure"
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 /* System header to define __stub macros and hopefully few prototypes,
7921 which can conflict with char dlopen (); below.
7922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7923 <limits.h> exists even on freestanding compilers. */
7925 # include <limits.h>
7927 # include <assert.h>
7929 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7937 /* The GNU C library defines this for functions which it implements
7938 to always fail with ENOSYS. Some functions are actually named
7939 something starting with __ and the normal name is an alias. */
7940 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7943 char (*f) () = dlopen;
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_func_dlopen=yes
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_cv_func_dlopen=no
7976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7978 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7979 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7980 if test $ac_cv_func_dlopen = yes; then
7981 lt_cv_dlopen="dlopen"
7983 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 ac_check_lib_save_LIBS=$LIBS
7990 cat >conftest.$ac_ext <<_ACEOF
7991 #line $LINENO "configure"
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7998 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -s conftest$ac_exeext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_lib_dl_dlopen=yes
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_cv_lib_dl_dlopen=no
8032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8035 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8037 if test $ac_cv_lib_dl_dlopen = yes; then
8038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8040 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8041 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 ac_check_lib_save_LIBS=$LIBS
8047 cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8055 /* Override any gcc2 internal prototype to avoid an error. */
8059 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8070 rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072 (eval $ac_link) 2>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_lib_svld_dlopen=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_cv_lib_svld_dlopen=no
8089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094 if test $ac_cv_lib_svld_dlopen = yes; then
8095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8097 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8098 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8099 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 ac_check_lib_save_LIBS=$LIBS
8104 cat >conftest.$ac_ext <<_ACEOF
8105 #line $LINENO "configure"
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8112 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_lib_dld_dld_link=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_lib_dld_dld_link=no
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147 LIBS=$ac_check_lib_save_LIBS
8149 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8151 if test $ac_cv_lib_dld_dld_link = yes; then
8152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8173 if test "x$lt_cv_dlopen" != xno; then
8179 case $lt_cv_dlopen in
8181 save_CPPFLAGS="$CPPFLAGS"
8182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8184 save_LDFLAGS="$LDFLAGS"
8185 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8188 LIBS="$lt_cv_dlopen_libs $LIBS"
8190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8192 if test "${lt_cv_dlopen_self+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 if test "$cross_compiling" = yes; then :
8196 lt_cv_dlopen_self=cross
8198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8199 lt_status=$lt_dlunknown
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8211 # define LT_DLGLOBAL RTLD_GLOBAL
8214 # define LT_DLGLOBAL DL_GLOBAL
8216 # define LT_DLGLOBAL 0
8220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8221 find out it does not work in some platform. */
8222 #ifndef LT_DLLAZY_OR_NOW
8224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8227 # define LT_DLLAZY_OR_NOW DL_LAZY
8230 # define LT_DLLAZY_OR_NOW RTLD_NOW
8233 # define LT_DLLAZY_OR_NOW DL_NOW
8235 # define LT_DLLAZY_OR_NOW 0
8243 extern "C" void exit (int);
8246 void fnord() { int i=42;}
8249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8250 int status = $lt_dlunknown;
8254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8256 /* dlclose (self); */
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8267 (./conftest; exit; ) 2>/dev/null
8270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8272 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8275 # compilation failed
8276 lt_cv_dlopen_self=no
8283 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8284 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8286 if test "x$lt_cv_dlopen_self" = xyes; then
8287 LDFLAGS="$LDFLAGS $link_static_flag"
8288 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8289 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8290 if test "${lt_cv_dlopen_self_static+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 if test "$cross_compiling" = yes; then :
8294 lt_cv_dlopen_self_static=cross
8296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8297 lt_status=$lt_dlunknown
8298 cat > conftest.$ac_ext <<EOF
8299 #line 8299 "configure"
8300 #include "confdefs.h"
8309 # define LT_DLGLOBAL RTLD_GLOBAL
8312 # define LT_DLGLOBAL DL_GLOBAL
8314 # define LT_DLGLOBAL 0
8318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8319 find out it does not work in some platform. */
8320 #ifndef LT_DLLAZY_OR_NOW
8322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8325 # define LT_DLLAZY_OR_NOW DL_LAZY
8328 # define LT_DLLAZY_OR_NOW RTLD_NOW
8331 # define LT_DLLAZY_OR_NOW DL_NOW
8333 # define LT_DLLAZY_OR_NOW 0
8341 extern "C" void exit (int);
8344 void fnord() { int i=42;}
8347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8348 int status = $lt_dlunknown;
8352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8354 /* dlclose (self); */
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8365 (./conftest; exit; ) 2>/dev/null
8368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8370 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8373 # compilation failed
8374 lt_cv_dlopen_self_static=no
8381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8382 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8385 CPPFLAGS="$save_CPPFLAGS"
8386 LDFLAGS="$save_LDFLAGS"
8391 case $lt_cv_dlopen_self in
8392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8393 *) enable_dlopen_self=unknown ;;
8396 case $lt_cv_dlopen_self_static in
8397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8398 *) enable_dlopen_self_static=unknown ;;
8403 # Report which librarie types wil actually be built
8404 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8405 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8406 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8407 echo "${ECHO_T}$can_build_shared" >&6
8409 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8410 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8411 test "$can_build_shared" = "no" && enable_shared=no
8413 # On AIX, shared libraries and static libraries use the same namespace, and
8414 # are all built from PIC.
8417 test "$enable_shared" = yes && enable_static=no
8418 if test -n "$RANLIB"; then
8419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8420 postinstall_cmds='$RANLIB $lib'
8425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8426 test "$enable_shared" = yes && enable_static=no
8429 darwin* | rhapsody*)
8430 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8431 archive_cmds_need_lc=no
8433 rhapsody* | darwin1.[012])
8434 allow_undefined_flag='-undefined suppress'
8437 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8440 # FIXME: Relying on posixy $() will cause problems for
8441 # cross-compilation, but unfortunately the echo tests do not
8442 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8443 # `"' quotes if we put them in here... so don't!
8444 output_verbose_link_cmd='echo'
8445 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8446 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8448 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}'
8449 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8451 hardcode_automatic=yes
8452 hardcode_shlibpath_var=unsupported
8453 whole_archive_flag_spec='-all_load $convenience'
8454 link_all_deplibs=yes
8458 echo "$as_me:$LINENO: result: $enable_shared" >&5
8459 echo "${ECHO_T}$enable_shared" >&6
8461 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8462 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8463 # Make sure either enable_shared or enable_static is yes.
8464 test "$enable_shared" = yes || enable_static=yes
8465 echo "$as_me:$LINENO: result: $enable_static" >&5
8466 echo "${ECHO_T}$enable_static" >&6
8468 # The else clause should only fire when bootstrapping the
8469 # libtool distribution, otherwise you forgot to ship ltmain.sh
8470 # with your package, and you will get complaints that there are
8471 # no rules to generate ltmain.sh.
8472 if test -f "$ltmain"; then
8473 # See if we are running on zsh, and set the options which allow our commands through
8474 # without removal of \ escapes.
8475 if test -n "${ZSH_VERSION+set}" ; then
8476 setopt NO_GLOB_SUBST
8478 # Now quote all the things that may contain metacharacters while being
8479 # careful not to overquote the AC_SUBSTed values. We take copies of the
8480 # variables and quote the copies for generation of the libtool script.
8481 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8482 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8483 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8484 deplibs_check_method reload_flag reload_cmds need_locks \
8485 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8486 lt_cv_sys_global_symbol_to_c_name_address \
8487 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8488 old_postinstall_cmds old_postuninstall_cmds \
8492 lt_prog_compiler_wl \
8493 lt_prog_compiler_pic \
8494 lt_prog_compiler_static \
8495 lt_prog_compiler_no_builtin_flag \
8496 export_dynamic_flag_spec \
8497 thread_safe_flag_spec \
8498 whole_archive_flag_spec \
8499 enable_shared_with_static_runtimes \
8501 old_archive_from_new_cmds \
8506 compiler_lib_search_path \
8508 archive_expsym_cmds \
8510 postuninstall_cmds \
8511 old_archive_from_expsyms_cmds \
8512 allow_undefined_flag \
8514 export_symbols_cmds \
8515 hardcode_libdir_flag_spec \
8516 hardcode_libdir_flag_spec_ld \
8517 hardcode_libdir_separator \
8518 hardcode_automatic \
8520 module_expsym_cmds \
8521 lt_cv_prog_compiler_c_o \
8526 old_archive_cmds | \
8527 old_archive_from_new_cmds | \
8529 archive_expsym_cmds | \
8531 module_expsym_cmds | \
8532 old_archive_from_expsyms_cmds | \
8533 export_symbols_cmds | \
8534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8535 postinstall_cmds | postuninstall_cmds | \
8536 old_postinstall_cmds | old_postuninstall_cmds | \
8537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8538 # Double-quote double-evaled strings.
8539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8548 *'\$0 --fallback-echo"')
8549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8554 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8556 { echo "$as_me:$LINENO: creating $ofile" >&5
8557 echo "$as_me: creating $ofile" >&6;}
8559 cat <<__EOF__ >> "$cfgfile"
8562 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8563 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8564 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8566 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8567 # Free Software Foundation, Inc.
8569 # This file is part of GNU Libtool:
8570 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8572 # This program is free software; you can redistribute it and/or modify
8573 # it under the terms of the GNU General Public License as published by
8574 # the Free Software Foundation; either version 2 of the License, or
8575 # (at your option) any later version.
8577 # This program is distributed in the hope that it will be useful, but
8578 # WITHOUT ANY WARRANTY; without even the implied warranty of
8579 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8580 # General Public License for more details.
8582 # You should have received a copy of the GNU General Public License
8583 # along with this program; if not, write to the Free Software
8584 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8586 # As a special exception to the GNU General Public License, if you
8587 # distribute this file as part of a program that contains a
8588 # configuration script generated by Autoconf, you may include it under
8589 # the same distribution terms that you use for the rest of that program.
8591 # A sed program that does not truncate output.
8594 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8595 Xsed="$SED -e s/^X//"
8597 # The HP-UX ksh and POSIX shell print the target directory to stdout
8599 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8601 # The names of the tagged configurations supported by this script.
8604 # ### BEGIN LIBTOOL CONFIG
8606 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8608 # Shell to use when invoking shell scripts.
8611 # Whether or not to build shared libraries.
8612 build_libtool_libs=$enable_shared
8614 # Whether or not to build static libraries.
8615 build_old_libs=$enable_static
8617 # Whether or not to add -lc for building shared libraries.
8618 build_libtool_need_lc=$archive_cmds_need_lc
8620 # Whether or not to disallow shared libs when runtime libs are static
8621 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8623 # Whether or not to optimize for fast installation.
8624 fast_install=$enable_fast_install
8627 host_alias=$host_alias
8630 # An echo program that does not interpret backslashes.
8635 AR_FLAGS=$lt_AR_FLAGS
8640 # A language-specific compiler.
8643 # Is the compiler the GNU C compiler?
8649 # The linker used to build libraries.
8652 # Whether we need hard or soft links.
8655 # A BSD-compatible nm program.
8658 # A symbol stripping program
8661 # Used to examine libraries when file_magic_cmd begins "file"
8662 MAGIC_CMD=$MAGIC_CMD
8664 # Used on cygwin: DLL creation program.
8667 # Used on cygwin: object dumper.
8670 # Used on cygwin: assembler.
8673 # The name of the directory that contains temporary libtool files.
8676 # How to create reloadable object files.
8677 reload_flag=$lt_reload_flag
8678 reload_cmds=$lt_reload_cmds
8680 # How to pass a linker flag through the compiler.
8681 wl=$lt_lt_prog_compiler_wl
8683 # Object file suffix (normally "o").
8686 # Old archive suffix (normally "a").
8689 # Shared library suffix (normally ".so").
8692 # Executable file suffix (normally "").
8695 # Additional compiler flags for building library objects.
8696 pic_flag=$lt_lt_prog_compiler_pic
8699 # What is the maximum length of a command?
8700 max_cmd_len=$lt_cv_sys_max_cmd_len
8702 # Does compiler simultaneously support -c and -o options?
8703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8705 # Must we lock files when doing compilation ?
8706 need_locks=$lt_need_locks
8708 # Do we need the lib prefix for modules?
8709 need_lib_prefix=$need_lib_prefix
8711 # Do we need a version for libraries?
8712 need_version=$need_version
8714 # Whether dlopen is supported.
8715 dlopen_support=$enable_dlopen
8717 # Whether dlopen of programs is supported.
8718 dlopen_self=$enable_dlopen_self
8720 # Whether dlopen of statically linked programs is supported.
8721 dlopen_self_static=$enable_dlopen_self_static
8723 # Compiler flag to prevent dynamic linking.
8724 link_static_flag=$lt_lt_prog_compiler_static
8726 # Compiler flag to turn off builtin functions.
8727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8729 # Compiler flag to allow reflexive dlopens.
8730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8732 # Compiler flag to generate shared objects directly from archives.
8733 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8735 # Compiler flag to generate thread-safe objects.
8736 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8738 # Library versioning type.
8739 version_type=$version_type
8741 # Format of library name prefix.
8742 libname_spec=$lt_libname_spec
8744 # List of archive names. First name is the real one, the rest are links.
8745 # The last name is the one that the linker finds with -lNAME.
8746 library_names_spec=$lt_library_names_spec
8748 # The coded name of the library, if different from the real name.
8749 soname_spec=$lt_soname_spec
8751 # Commands used to build and install an old-style archive.
8753 old_archive_cmds=$lt_old_archive_cmds
8754 old_postinstall_cmds=$lt_old_postinstall_cmds
8755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8757 # Create an old-style archive from a shared archive.
8758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8760 # Create a temporary old-style archive to link instead of a shared archive.
8761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8763 # Commands used to build and install a shared archive.
8764 archive_cmds=$lt_archive_cmds
8765 archive_expsym_cmds=$lt_archive_expsym_cmds
8766 postinstall_cmds=$lt_postinstall_cmds
8767 postuninstall_cmds=$lt_postuninstall_cmds
8769 # Commands used to build a loadable module (assumed same as above if empty)
8770 module_cmds=$lt_module_cmds
8771 module_expsym_cmds=$lt_module_expsym_cmds
8773 # Commands to strip libraries.
8774 old_striplib=$lt_old_striplib
8775 striplib=$lt_striplib
8777 # Dependencies to place before the objects being linked to create a
8779 predep_objects=$lt_predep_objects
8781 # Dependencies to place after the objects being linked to create a
8783 postdep_objects=$lt_postdep_objects
8785 # Dependencies to place before the objects being linked to create a
8789 # Dependencies to place after the objects being linked to create a
8791 postdeps=$lt_postdeps
8793 # The library search path used internally by the compiler when linking
8795 compiler_lib_search_path=$lt_compiler_lib_search_path
8797 # Method to check whether dependent libraries are shared objects.
8798 deplibs_check_method=$lt_deplibs_check_method
8800 # Command to use when deplibs_check_method == file_magic.
8801 file_magic_cmd=$lt_file_magic_cmd
8803 # Flag that allows shared libraries with undefined symbols to be built.
8804 allow_undefined_flag=$lt_allow_undefined_flag
8806 # Flag that forces no undefined symbols.
8807 no_undefined_flag=$lt_no_undefined_flag
8809 # Commands used to finish a libtool library installation in a directory.
8810 finish_cmds=$lt_finish_cmds
8812 # Same as above, but a single script fragment to be evaled but not shown.
8813 finish_eval=$lt_finish_eval
8815 # Take the output of nm and produce a listing of raw symbols and C names.
8816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8818 # Transform the output of nm in a proper C declaration
8819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8821 # Transform the output of nm in a C name address pair
8822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8824 # This is the shared library runtime path variable.
8825 runpath_var=$runpath_var
8827 # This is the shared library path variable.
8828 shlibpath_var=$shlibpath_var
8830 # Is shlibpath searched before the hard-coded library search path?
8831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8833 # How to hardcode a shared library path into an executable.
8834 hardcode_action=$hardcode_action
8836 # Whether we should hardcode library paths into libraries.
8837 hardcode_into_libs=$hardcode_into_libs
8839 # Flag to hardcode \$libdir into a binary during linking.
8840 # This must work even if \$libdir does not exist.
8841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8843 # If ld is used when linking, flag to hardcode \$libdir into
8844 # a binary during linking. This must work even if \$libdir does
8846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8848 # Whether we need a single -rpath flag with a separated argument.
8849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8853 hardcode_direct=$hardcode_direct
8855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8857 hardcode_minus_L=$hardcode_minus_L
8859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8860 # the resulting binary.
8861 hardcode_shlibpath_var=$hardcode_shlibpath_var
8863 # Set to yes if building a shared library automatically hardcodes DIR into the library
8864 # and all subsequent libraries and executables linked against it.
8865 hardcode_automatic=$hardcode_automatic
8867 # Variables whose values should be saved in libtool wrapper scripts and
8868 # restored at relink time.
8869 variables_saved_for_relink="$variables_saved_for_relink"
8871 # Whether libtool must link a program against all its dependency libraries.
8872 link_all_deplibs=$link_all_deplibs
8874 # Compile-time system search path for libraries
8875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8877 # Run-time system search path for libraries
8878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8880 # Fix the shell variable \$srcfile for the compiler.
8881 fix_srcfile_path="$fix_srcfile_path"
8883 # Set to yes if exported symbols are required.
8884 always_export_symbols=$always_export_symbols
8886 # The commands to list exported symbols.
8887 export_symbols_cmds=$lt_export_symbols_cmds
8889 # The commands to extract the exported symbol list from a shared archive.
8890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8892 # Symbols that should not be listed in the preloaded symbols.
8893 exclude_expsyms=$lt_exclude_expsyms
8895 # Symbols that must always be exported.
8896 include_expsyms=$lt_include_expsyms
8898 # ### END LIBTOOL CONFIG
8905 cat <<\EOF >> "$cfgfile"
8907 # AIX sometimes has problems with the GCC collect2 program. For some
8908 # reason, if we set the COLLECT_NAMES environment variable, the problems
8909 # vanish in a puff of smoke.
8910 if test "X${COLLECT_NAMES+set}" != Xset; then
8912 export COLLECT_NAMES
8918 # We use sed instead of cat because bash on DJGPP gets confused if
8919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8920 # text mode, it properly converts lines to CR/LF. This bash problem
8921 # is reportedly fixed, but why not run on old versions too?
8922 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8924 mv -f "$cfgfile" "$ofile" || \
8925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8929 # If there is no Makefile yet, we rely on a make rule to execute
8930 # `config.status --recheck' to rerun these tests and create the
8931 # libtool script then.
8932 test -f Makefile && make "$ltmain"
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8945 # Check whether --with-tags or --without-tags was given.
8946 if test "${with_tags+set}" = set; then
8947 withval="$with_tags"
8951 if test -f "$ltmain" && test -n "$tagnames"; then
8952 if test ! -f "${ofile}"; then
8953 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8954 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8957 if test -z "$LTCC"; then
8958 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8959 if test -z "$LTCC"; then
8960 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8961 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8964 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8968 # Extract list of available tagged configurations in $ofile.
8969 # Note that this assumes the entire list is on one line.
8970 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8973 for tagname in $tagnames; do
8975 # Check whether tagname contains only valid characters
8976 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8978 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8979 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8980 { (exit 1); exit 1; }; }
8984 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8986 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8987 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8988 { (exit 1); exit 1; }; }
8991 # Update the list of available tags.
8992 if test -n "$tagname"; then
8993 echo appending configuration tag \"$tagname\" to $ofile
8997 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8999 ac_cpp='$CXXCPP $CPPFLAGS'
9000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9007 archive_cmds_need_lc_CXX=no
9008 allow_undefined_flag_CXX=
9009 always_export_symbols_CXX=no
9010 archive_expsym_cmds_CXX=
9011 export_dynamic_flag_spec_CXX=
9012 hardcode_direct_CXX=no
9013 hardcode_libdir_flag_spec_CXX=
9014 hardcode_libdir_flag_spec_ld_CXX=
9015 hardcode_libdir_separator_CXX=
9016 hardcode_minus_L_CXX=no
9017 hardcode_automatic_CXX=no
9019 module_expsym_cmds_CXX=
9020 link_all_deplibs_CXX=unknown
9021 old_archive_cmds_CXX=$old_archive_cmds
9022 no_undefined_flag_CXX=
9023 whole_archive_flag_spec_CXX=
9024 enable_shared_with_static_runtimes_CXX=no
9026 # Dependencies to place before and after the object being linked:
9028 postdep_objects_CXX=
9031 compiler_lib_search_path_CXX=
9033 # Source file extension for C++ test sources.
9036 # Object file extension for compiled C++ test sources.
9040 # Code to be used in simple compile tests
9041 lt_simple_compile_test_code="int some_variable = 0;\n"
9043 # Code to be used in simple link tests
9044 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9046 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9048 # If no C compiler was specified, use CC.
9051 # Allow CC to be a program name with arguments.
9055 # Allow CC to be a program name with arguments.
9060 lt_save_with_gnu_ld=$with_gnu_ld
9061 lt_save_path_LD=$lt_cv_path_LD
9062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9065 unset lt_cv_prog_gnu_ld
9067 if test -n "${lt_cv_path_LDCXX+set}"; then
9068 lt_cv_path_LD=$lt_cv_path_LDCXX
9072 test -z "${LDCXX+set}" || LD=$LDCXX
9076 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9078 # We don't want -fno-exception wen compiling C++ code, so set the
9079 # no_builtin_flag separately
9080 if test "$GXX" = yes; then
9081 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9083 lt_prog_compiler_no_builtin_flag_CXX=
9086 if test "$GXX" = yes; then
9087 # Set up default GNU C++ configuration
9090 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9091 if test "${with_gnu_ld+set}" = set; then
9092 withval="$with_gnu_ld"
9093 test "$withval" = no || with_gnu_ld=yes
9098 if test "$GCC" = yes; then
9099 # Check if gcc -print-prog-name=ld gives a path.
9100 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9101 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9104 # gcc leaves a trailing carriage return which upsets mingw
9105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9110 # Accept absolute paths.
9112 re_direlt='/[^/][^/]*/\.\./'
9113 # Canonicalize the path of ld
9114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9118 test -z "$LD" && LD="$ac_prog"
9121 # If it fails, then pretend we aren't using GCC.
9125 # If it is relative, then search for the first ld in PATH.
9129 elif test "$with_gnu_ld" = yes; then
9130 echo "$as_me:$LINENO: checking for GNU ld" >&5
9131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9133 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9136 if test "${lt_cv_path_LD+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 if test -z "$LD"; then
9140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9141 for ac_dir in $PATH; do
9143 test -z "$ac_dir" && ac_dir=.
9144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9145 lt_cv_path_LD="$ac_dir/$ac_prog"
9146 # Check to see if the program is GNU ld. I'd rather use --version,
9147 # but apparently some GNU ld's only accept -v.
9148 # Break only if it was the GNU/non-GNU ld that we prefer.
9149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9150 *GNU* | *'with BFD'*)
9151 test "$with_gnu_ld" != no && break
9154 test "$with_gnu_ld" != yes && break
9161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9166 if test -n "$LD"; then
9167 echo "$as_me:$LINENO: result: $LD" >&5
9168 echo "${ECHO_T}$LD" >&6
9170 echo "$as_me:$LINENO: result: no" >&5
9171 echo "${ECHO_T}no" >&6
9173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9175 { (exit 1); exit 1; }; }
9176 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9178 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9182 case `"$LD" -v 2>&1 </dev/null` in
9183 *GNU* | *'with BFD'*)
9184 lt_cv_prog_gnu_ld=yes
9187 lt_cv_prog_gnu_ld=no
9191 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9192 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9193 with_gnu_ld=$lt_cv_prog_gnu_ld
9197 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9198 # archiving commands below assume that GNU ld is being used.
9199 if test "$with_gnu_ld" = yes; then
9200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 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'
9203 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9206 # If archive_cmds runs LD, not CC, wlarc should be empty
9207 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9208 # investigate it a little bit more. (MM)
9211 # ancient GNU ld didn't support --whole-archive et. al.
9212 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9213 grep 'no-whole-archive' > /dev/null; then
9214 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9216 whole_archive_flag_spec_CXX=
9222 # A generic and very simple default shared library creation
9223 # command for GNU C++ for the case where it uses the native
9224 # linker, instead of GNU ld. If possible, this setting should
9225 # overridden to take advantage of the native linker features on
9226 # the platform it is being used on.
9227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9230 # Commands to make compiler produce verbose output that lists
9231 # what "hidden" libraries, object files and flags are used when
9232 # linking a shared library.
9233 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9241 # PORTME: fill in a description of your system's C++ link characteristics
9242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9247 # FIXME: insert proper C++ library support
9251 if test "$host_cpu" = ia64; then
9252 # On IA64, the linker does run time linking by default, so we don't
9253 # have to do anything special.
9254 aix_use_runtimelinking=no
9255 exp_sym_flag='-Bexport'
9258 aix_use_runtimelinking=no
9260 # Test if we are trying to use run time linking or normal
9261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9262 # need to do runtime linking.
9263 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9264 for ld_flag in $LDFLAGS; do
9267 aix_use_runtimelinking=yes
9274 exp_sym_flag='-bexport'
9275 no_entry_flag='-bnoentry'
9278 # When large executables or shared objects are built, AIX ld can
9279 # have problems creating the table of contents. If linking a library
9280 # or program results in "error TOC overflow" add -mminimal-toc to
9281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9285 hardcode_direct_CXX=yes
9286 hardcode_libdir_separator_CXX=':'
9287 link_all_deplibs_CXX=yes
9289 if test "$GXX" = yes; then
9290 case $host_os in aix4.012|aix4.012.*)
9291 # We only want to do this on AIX 4.2 and lower, the check
9292 # below for broken collect2 doesn't work under 4.3+
9293 collect2name=`${CC} -print-prog-name=collect2`
9294 if test -f "$collect2name" && \
9295 strings "$collect2name" | grep resolve_lib_name >/dev/null
9297 # We have reworked collect2
9298 hardcode_direct_CXX=yes
9300 # We have old collect2
9301 hardcode_direct_CXX=unsupported
9302 # It fails to find uninstalled libraries when the uninstalled
9303 # path is not listed in the libpath. Setting hardcode_minus_L
9304 # to unsupported forces relinking
9305 hardcode_minus_L_CXX=yes
9306 hardcode_libdir_flag_spec_CXX='-L$libdir'
9307 hardcode_libdir_separator_CXX=
9310 shared_flag='-shared'
9313 if test "$host_cpu" = ia64; then
9314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315 # chokes on -Wl,-G. The following line is correct:
9318 if test "$aix_use_runtimelinking" = yes; then
9319 shared_flag='${wl}-G'
9321 shared_flag='${wl}-bM:SRE'
9326 # It seems that -bexpall does not export symbols beginning with
9327 # underscore (_), so it is better to generate a list of symbols to export.
9328 always_export_symbols_CXX=yes
9329 if test "$aix_use_runtimelinking" = yes; then
9330 # Warning - without using the other runtime loading flags (-brtl),
9331 # -berok will link without error, but may produce a broken library.
9332 allow_undefined_flag_CXX='-berok'
9333 # Determine the default libpath from the value encoded in an empty executable.
9334 cat >conftest.$ac_ext <<_ACEOF
9335 #line $LINENO "configure"
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -s conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9363 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9365 # Check for a 64-bit object if we didn't find anything.
9366 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; }
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9376 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9378 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"
9380 if test "$host_cpu" = ia64; then
9381 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9382 allow_undefined_flag_CXX="-z nodefs"
9383 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"
9385 # Determine the default libpath from the value encoded in an empty executable.
9386 cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9417 # Check for a 64-bit object if we didn't find anything.
9418 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; }
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9429 # Warning - without using the other run time loading flags,
9430 # -berok will link without error, but may produce a broken library.
9431 no_undefined_flag_CXX=' ${wl}-bernotok'
9432 allow_undefined_flag_CXX=' ${wl}-berok'
9433 # -bexpall does not export symbols beginning with underscore (_)
9434 always_export_symbols_CXX=yes
9435 # Exported symbols can be pulled into shared objects from archives
9436 whole_archive_flag_spec_CXX=' '
9437 archive_cmds_need_lc_CXX=yes
9438 # This is similar to how AIX traditionally builds it's shared libraries.
9439 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'
9444 case $cc_basename in
9446 # FIXME: insert proper C++ library support
9452 cygwin* | mingw* | pw32*)
9453 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9454 # as there is no search path for DLLs.
9455 hardcode_libdir_flag_spec_CXX='-L$libdir'
9456 allow_undefined_flag_CXX=unsupported
9457 always_export_symbols_CXX=no
9458 enable_shared_with_static_runtimes_CXX=yes
9460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9461 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'
9462 # If the export-symbols file already is a .def file (1st line
9463 # is EXPORTS), use it as is; otherwise, prepend...
9464 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9465 cp $export_symbols $output_objdir/$soname.def;
9467 echo EXPORTS > $output_objdir/$soname.def;
9468 cat $export_symbols >> $output_objdir/$soname.def;
9470 $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'
9476 darwin* | rhapsody*)
9477 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9478 archive_cmds_need_lc_CXX=no
9480 rhapsody* | darwin1.[012])
9481 allow_undefined_flag_CXX='-undefined suppress'
9484 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9487 lt_int_apple_cc_single_mod=no
9488 output_verbose_link_cmd='echo'
9489 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9490 lt_int_apple_cc_single_mod=yes
9492 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9493 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9495 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9497 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9500 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9501 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}'
9503 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9505 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9506 hardcode_direct_CXX=no
9507 hardcode_automatic_CXX=yes
9508 hardcode_shlibpath_var_CXX=unsupported
9509 whole_archive_flag_spec_CXX='-all_load $convenience'
9510 link_all_deplibs_CXX=yes
9515 case $cc_basename in
9517 # FIXME: insert proper C++ library support
9521 # Green Hills C++ Compiler
9522 # FIXME: insert proper C++ library support
9526 # FIXME: insert proper C++ library support
9532 # C++ shared libraries reported to be fairly broken before switch to ELF
9536 archive_cmds_need_lc_CXX=no
9539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9546 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9547 hardcode_libdir_separator_CXX=:
9548 export_dynamic_flag_spec_CXX='${wl}-E'
9549 hardcode_direct_CXX=yes
9550 hardcode_minus_L_CXX=yes # Not in the search PATH,
9551 # but as the default
9552 # location of the library.
9554 case $cc_basename in
9556 # FIXME: insert proper C++ library support
9560 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'
9561 # Commands to make compiler produce verbose output that lists
9562 # what "hidden" libraries, object files and flags are used when
9563 # linking a shared library.
9565 # There doesn't appear to be a way to prevent this compiler from
9566 # explicitly linking system object files so we need to strip them
9567 # from the output so that they don't get included in the library
9569 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9572 if test "$GXX" = yes; then
9573 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'
9575 # FIXME: insert proper C++ library support
9582 if test $with_gnu_ld = no; then
9585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9586 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9587 hardcode_libdir_separator_CXX=:
9590 hardcode_libdir_flag_spec_CXX='-L$libdir'
9593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9594 hardcode_libdir_separator_CXX=:
9595 export_dynamic_flag_spec_CXX='${wl}-E'
9601 hardcode_direct_CXX=no
9602 hardcode_shlibpath_var_CXX=no
9605 hardcode_direct_CXX=no
9606 hardcode_shlibpath_var_CXX=no
9607 hardcode_minus_L_CXX=yes # Not in the search PATH,
9608 # but as the default
9609 # location of the library.
9612 hardcode_direct_CXX=yes
9613 hardcode_minus_L_CXX=yes # Not in the search PATH,
9614 # but as the default
9615 # location of the library.
9619 case $cc_basename in
9621 # FIXME: insert proper C++ library support
9627 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9633 # Commands to make compiler produce verbose output that lists
9634 # what "hidden" libraries, object files and flags are used when
9635 # linking a shared library.
9637 # There doesn't appear to be a way to prevent this compiler from
9638 # explicitly linking system object files so we need to strip them
9639 # from the output so that they don't get included in the library
9641 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'
9644 if test "$GXX" = yes; then
9645 if test $with_gnu_ld = no; then
9648 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9651 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'
9656 # FIXME: insert proper C++ library support
9663 case $cc_basename in
9666 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'
9668 # Archives containing C++ object files must be created using
9669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9670 # necessary to make sure instantiated templates are included
9672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9675 if test "$GXX" = yes; then
9676 if test "$with_gnu_ld" = no; then
9677 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'
9679 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'
9682 link_all_deplibs_CXX=yes
9685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9686 hardcode_libdir_separator_CXX=:
9689 case $cc_basename in
9691 # Kuck and Associates, Inc. (KAI) C++ Compiler
9693 # KCC will only create a shared library if the output file
9694 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9695 # to its proper name (with version) after linking.
9696 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'
9697 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'
9698 # Commands to make compiler produce verbose output that lists
9699 # what "hidden" libraries, object files and flags are used when
9700 # linking a shared library.
9702 # There doesn't appear to be a way to prevent this compiler from
9703 # explicitly linking system object files so we need to strip them
9704 # from the output so that they don't get included in the library
9706 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'
9708 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9711 # Archives containing C++ object files must be created using
9712 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9713 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9718 archive_cmds_need_lc_CXX=no
9719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720 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'
9721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9723 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9727 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728 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'
9730 runpath_var=LD_RUN_PATH
9731 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9732 hardcode_libdir_separator_CXX=:
9734 # Commands to make compiler produce verbose output that lists
9735 # what "hidden" libraries, object files and flags are used when
9736 # linking a shared library.
9738 # There doesn't appear to be a way to prevent this compiler from
9739 # explicitly linking system object files so we need to strip them
9740 # from the output so that they don't get included in the library
9742 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'
9747 # FIXME: insert proper C++ library support
9751 # FIXME: insert proper C++ library support
9755 case $cc_basename in
9757 # FIXME: insert proper C++ library support
9761 # FIXME: insert proper C++ library support
9767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9768 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9770 hardcode_libdir_flag_spec_CXX='-R$libdir'
9771 hardcode_direct_CXX=yes
9772 hardcode_shlibpath_var_CXX=no
9774 # Workaround some broken pre-1.5 toolchains
9775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9778 case $cc_basename in
9780 # Kuck and Associates, Inc. (KAI) C++ Compiler
9782 # KCC will only create a shared library if the output file
9783 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9784 # to its proper name (with version) after linking.
9785 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'
9787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9788 hardcode_libdir_separator_CXX=:
9790 # Archives containing C++ object files must be created using
9791 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9792 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9796 # Rational C++ 2.4.1
9797 # FIXME: insert proper C++ library support
9801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9802 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'
9804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9805 hardcode_libdir_separator_CXX=:
9807 # Commands to make compiler produce verbose output that lists
9808 # what "hidden" libraries, object files and flags are used when
9809 # linking a shared library.
9811 # There doesn't appear to be a way to prevent this compiler from
9812 # explicitly linking system object files so we need to strip them
9813 # from the output so that they don't get included in the library
9815 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'
9818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9820 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'
9822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9823 hardcode_libdir_separator_CXX=:
9825 # Commands to make compiler produce verbose output that lists
9826 # what "hidden" libraries, object files and flags are used when
9827 # linking a shared library.
9828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9831 # FIXME: insert proper C++ library support
9838 case $cc_basename in
9840 # Kuck and Associates, Inc. (KAI) C++ Compiler
9842 # KCC will only create a shared library if the output file
9843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9844 # to its proper name (with version) after linking.
9845 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'
9847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9848 hardcode_libdir_separator_CXX=:
9850 # Archives containing C++ object files must be created using
9851 # the KAI C++ compiler.
9852 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9855 # Rational C++ 2.4.1
9856 # FIXME: insert proper C++ library support
9860 allow_undefined_flag_CXX=' -expect_unresolved \*'
9861 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'
9862 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9863 echo "-hidden">> $lib.exp~
9864 $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~
9867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9868 hardcode_libdir_separator_CXX=:
9870 # Commands to make compiler produce verbose output that lists
9871 # what "hidden" libraries, object files and flags are used when
9872 # linking a shared library.
9874 # There doesn't appear to be a way to prevent this compiler from
9875 # explicitly linking system object files so we need to strip them
9876 # from the output so that they don't get included in the library
9878 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'
9881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9883 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'
9885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator_CXX=:
9888 # Commands to make compiler produce verbose output that lists
9889 # what "hidden" libraries, object files and flags are used when
9890 # linking a shared library.
9891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9894 # FIXME: insert proper C++ library support
9901 # FIXME: insert proper C++ library support
9905 archive_cmds_need_lc_CXX=no
9906 case $cc_basename in
9908 # FIXME: insert proper C++ library support
9912 # FIXME: insert proper C++ library support
9918 case $cc_basename in
9921 # FIXME: insert proper C++ library support
9926 # FIXME: insert proper C++ library support
9930 # FIXME: insert proper C++ library support
9936 case $cc_basename in
9938 # Sun C++ 4.2, 5.x and Centerline C++
9939 no_undefined_flag_CXX=' -zdefs'
9940 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9941 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9942 $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'
9944 hardcode_libdir_flag_spec_CXX='-R$libdir'
9945 hardcode_shlibpath_var_CXX=no
9947 solaris2.0-5 | solaris2.0-5.*) ;;
9949 # The C++ compiler is used as linker so we must use $wl
9950 # flag to pass the commands to the underlying system
9952 # Supported since Solaris 2.6 (maybe 2.5.1?)
9953 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9956 link_all_deplibs_CXX=yes
9958 # Commands to make compiler produce verbose output that lists
9959 # what "hidden" libraries, object files and flags are used when
9960 # linking a shared library.
9962 # There doesn't appear to be a way to prevent this compiler from
9963 # explicitly linking system object files so we need to strip them
9964 # from the output so that they don't get included in the library
9966 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'
9968 # Archives containing C++ object files must be created using
9969 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9970 # necessary to make sure instantiated templates are included
9972 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9975 # Green Hills C++ Compiler
9976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9978 # The C++ compiler must be used to create the archive.
9979 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9982 # GNU C++ compiler with Solaris linker
9983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9984 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9985 if $CC --version | grep -v '^2\.7' > /dev/null; then
9986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9987 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9990 # Commands to make compiler produce verbose output that lists
9991 # what "hidden" libraries, object files and flags are used when
9992 # linking a shared library.
9993 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9995 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10001 # Commands to make compiler produce verbose output that lists
10002 # what "hidden" libraries, object files and flags are used when
10003 # linking a shared library.
10004 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10007 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10012 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10013 archive_cmds_need_lc_CXX=no
10016 case $cc_basename in
10018 # NonStop-UX NCC 3.20
10019 # FIXME: insert proper C++ library support
10023 # FIXME: insert proper C++ library support
10029 # FIXME: insert proper C++ library support
10033 # FIXME: insert proper C++ library support
10037 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10038 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10039 test "$ld_shlibs_CXX" = no && can_build_shared=no
10045 cat > conftest.$ac_ext <<EOF
10049 Foo (void) { a = 0; }
10055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056 (eval $ac_compile) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; then
10060 # Parse the compiler output and extract the necessary
10061 # objects, libraries and library flags.
10063 # Sentinel used to keep track of whether or not we are before
10064 # the conftest object file.
10065 pre_test_object_deps_done=no
10067 # The `*' in the case matches for architectures that use `case' in
10068 # $output_verbose_cmd can trigger glob expansion during the loop
10069 # eval without this substitution.
10070 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10072 for p in `eval $output_verbose_link_cmd`; do
10076 # Some compilers place space between "-{L,R}" and the path.
10077 # Remove the space.
10078 if test $p = "-L" \
10079 || test $p = "-R"; then
10086 if test "$pre_test_object_deps_done" = no; then
10089 # Internal compiler library paths should come after those
10090 # provided the user. The postdeps already come after the
10091 # user supplied libs so there is no need to process them.
10092 if test -z "$compiler_lib_search_path_CXX"; then
10093 compiler_lib_search_path_CXX="${prev}${p}"
10095 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10098 # The "-l" case would never come before the object being
10099 # linked, so don't bother handling this case.
10102 if test -z "$postdeps_CXX"; then
10103 postdeps_CXX="${prev}${p}"
10105 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10111 # This assumes that the test object file only shows up
10112 # once in the compiler output.
10113 if test "$p" = "conftest.$objext"; then
10114 pre_test_object_deps_done=yes
10118 if test "$pre_test_object_deps_done" = no; then
10119 if test -z "$predep_objects_CXX"; then
10120 predep_objects_CXX="$p"
10122 predep_objects_CXX="$predep_objects_CXX $p"
10125 if test -z "$postdep_objects_CXX"; then
10126 postdep_objects_CXX="$p"
10128 postdep_objects_CXX="$postdep_objects_CXX $p"
10133 *) ;; # Ignore the rest.
10141 echo "libtool.m4: error: problem compiling CXX test program"
10144 $rm -f confest.$objext
10146 case " $postdeps_CXX " in
10147 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10150 lt_prog_compiler_wl_CXX=
10151 lt_prog_compiler_pic_CXX=
10152 lt_prog_compiler_static_CXX=
10154 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10155 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10157 # C++ specific cases for pic, static, wl, etc.
10158 if test "$GXX" = yes; then
10159 lt_prog_compiler_wl_CXX='-Wl,'
10160 lt_prog_compiler_static_CXX='-static'
10164 # All AIX code is PIC.
10165 if test "$host_cpu" = ia64; then
10166 # AIX 5 now supports IA64 processor
10167 lt_prog_compiler_static_CXX='-Bstatic'
10171 # FIXME: we need at least 68020 code to build shared libraries, but
10172 # adding the `-m68020' flag to GCC prevents building anything better,
10174 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10176 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10177 # PIC is the default for these OSes.
10179 mingw* | os2* | pw32*)
10180 # This hack is so that the source file can tell whether it is being
10181 # built for inclusion in a dll (and should export symbols for example).
10182 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10184 darwin* | rhapsody*)
10185 # PIC is the default on this platform
10186 # Common symbols not allowed in MH_DYLIB files
10187 lt_prog_compiler_pic_CXX='-fno-common'
10190 # DJGPP does not support shared libraries at all
10191 lt_prog_compiler_pic_CXX=
10194 if test -d /usr/nec; then
10195 lt_prog_compiler_pic_CXX=-Kconform_pic
10199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10200 # not for PA HP-UX.
10201 case "$host_cpu" in
10205 lt_prog_compiler_pic_CXX='-fPIC'
10210 lt_prog_compiler_pic_CXX='-fPIC'
10216 # All AIX code is PIC.
10217 if test "$host_cpu" = ia64; then
10218 # AIX 5 now supports IA64 processor
10219 lt_prog_compiler_static_CXX='-Bstatic'
10221 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10225 case $cc_basename in
10227 # Green Hills C++ Compiler
10228 # _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"
10233 case $cc_basename in
10235 lt_prog_compiler_pic_CXX='-KPIC'
10238 # Green Hills C++ Compiler
10239 lt_prog_compiler_pic_CXX='-pic'
10246 # FreeBSD uses GNU C++
10248 hpux9* | hpux10* | hpux11*)
10249 case $cc_basename in
10251 lt_prog_compiler_wl_CXX='-Wl,'
10252 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10253 if test "$host_cpu" != ia64; then
10254 lt_prog_compiler_pic_CXX='+Z'
10258 lt_prog_compiler_wl_CXX='-Wl,'
10259 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10260 case "$host_cpu" in
10265 lt_prog_compiler_pic_CXX='+Z'
10273 irix5* | irix6* | nonstopux*)
10274 case $cc_basename in
10276 lt_prog_compiler_wl_CXX='-Wl,'
10277 lt_prog_compiler_static_CXX='-non_shared'
10278 # CC pic flag -KPIC is the default.
10285 case $cc_basename in
10288 lt_prog_compiler_wl_CXX='--backend -Wl,'
10289 lt_prog_compiler_pic_CXX='-fPIC'
10293 lt_prog_compiler_wl_CXX='-Wl,'
10294 lt_prog_compiler_pic_CXX='-KPIC'
10295 lt_prog_compiler_static_CXX='-static'
10299 # Make sure the PIC flag is empty. It appears that all Alpha
10300 # Linux and Compaq Tru64 Unix objects are PIC.
10301 lt_prog_compiler_pic_CXX=
10302 lt_prog_compiler_static_CXX='-non_shared'
10313 case $cc_basename in
10315 lt_prog_compiler_pic_CXX='-W c,exportall'
10323 osf3* | osf4* | osf5*)
10324 case $cc_basename in
10326 lt_prog_compiler_wl_CXX='--backend -Wl,'
10329 # Rational C++ 2.4.1
10330 lt_prog_compiler_pic_CXX='-pic'
10333 # Digital/Compaq C++
10334 lt_prog_compiler_wl_CXX='-Wl,'
10335 # Make sure the PIC flag is empty. It appears that all Alpha
10336 # Linux and Compaq Tru64 Unix objects are PIC.
10337 lt_prog_compiler_pic_CXX=
10338 lt_prog_compiler_static_CXX='-non_shared'
10347 case $cc_basename in
10349 lt_prog_compiler_pic_CXX='-fPIC'
10356 case $cc_basename in
10358 # Sun C++ 4.2, 5.x and Centerline C++
10359 lt_prog_compiler_pic_CXX='-KPIC'
10360 lt_prog_compiler_static_CXX='-Bstatic'
10361 lt_prog_compiler_wl_CXX='-Qoption ld '
10364 # Green Hills C++ Compiler
10365 lt_prog_compiler_pic_CXX='-PIC'
10372 case $cc_basename in
10375 lt_prog_compiler_pic_CXX='-pic'
10376 lt_prog_compiler_static_CXX='-Bstatic'
10380 lt_prog_compiler_pic_CXX='-pic'
10387 case $cc_basename in
10389 # NonStop-UX NCC 3.20
10390 lt_prog_compiler_pic_CXX='-KPIC'
10401 lt_prog_compiler_can_build_shared_CXX=no
10406 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10407 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10410 # Check to make sure the PIC flag actually works.
10412 if test -n "$lt_prog_compiler_pic_CXX"; then
10413 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10414 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10415 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 lt_prog_compiler_pic_works_CXX=no
10419 ac_outfile=conftest.$ac_objext
10420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10421 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10422 # Insert the option either (1) after the last *FLAGS variable, or
10423 # (2) before a word containing "conftest.", or (3) at the end.
10424 # Note that $ac_compile itself does not contain backslashes and begins
10425 # with a dollar sign (not a hyphen), so the echo should work correctly.
10426 # The option is referenced via a variable to avoid confusing sed.
10427 lt_compile=`echo "$ac_compile" | $SED \
10428 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10430 -e 's:$: $lt_compiler_flag:'`
10431 (eval echo "\"\$as_me:10431: $lt_compile\"" >&5)
10432 (eval "$lt_compile" 2>conftest.err)
10434 cat conftest.err >&5
10435 echo "$as_me:10435: \$? = $ac_status" >&5
10436 if (exit $ac_status) && test -s "$ac_outfile"; then
10437 # The compiler can only warn and ignore the option if not recognized
10438 # So say no if there are warnings
10439 if test ! -s conftest.err; then
10440 lt_prog_compiler_pic_works_CXX=yes
10446 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10447 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10449 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10450 case $lt_prog_compiler_pic_CXX in
10452 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10455 lt_prog_compiler_pic_CXX=
10456 lt_prog_compiler_can_build_shared_CXX=no
10461 # For platforms which do not support PIC, -DPIC is meaningless:
10463 lt_prog_compiler_pic_CXX=
10466 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10470 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10471 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10472 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 lt_cv_prog_compiler_c_o_CXX=no
10476 $rm -r conftest 2>/dev/null
10480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10482 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10483 # that will create temporary files in the current directory regardless of
10484 # the output directory. Thus, making CWD read-only will cause this test
10485 # to fail, enabling locking or at least warning the user not to do parallel
10489 lt_compiler_flag="-o out/conftest2.$ac_objext"
10490 # Insert the option either (1) after the last *FLAGS variable, or
10491 # (2) before a word containing "conftest.", or (3) at the end.
10492 # Note that $ac_compile itself does not contain backslashes and begins
10493 # with a dollar sign (not a hyphen), so the echo should work correctly.
10494 lt_compile=`echo "$ac_compile" | $SED \
10495 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10497 -e 's:$: $lt_compiler_flag:'`
10498 (eval echo "\"\$as_me:10498: $lt_compile\"" >&5)
10499 (eval "$lt_compile" 2>out/conftest.err)
10501 cat out/conftest.err >&5
10502 echo "$as_me:10502: \$? = $ac_status" >&5
10503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10505 # The compiler can only warn and ignore the option if not recognized
10506 # So say no if there are warnings
10507 if test ! -s out/conftest.err; then
10508 lt_cv_prog_compiler_c_o_CXX=yes
10512 $rm conftest* out/*
10519 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10520 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10523 hard_links="nottested"
10524 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10525 # do not overwrite the value of need_locks provided by the user
10526 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10527 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10532 ln conftest.a conftest.b 2>&5 || hard_links=no
10533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10534 echo "$as_me:$LINENO: result: $hard_links" >&5
10535 echo "${ECHO_T}$hard_links" >&6
10536 if test "$hard_links" = no; then
10537 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10538 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10545 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10546 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10551 # If we're using GNU nm, then we don't want the "-C" option.
10552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10553 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10554 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'
10556 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'
10560 export_symbols_cmds_CXX="$ltdll_cmds"
10563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10570 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10571 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10572 test "$ld_shlibs_CXX" = no && can_build_shared=no
10574 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10575 if test "$GCC" = yes; then
10576 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10580 # Do we need to explicitly link libc?
10582 case "x$archive_cmds_need_lc_CXX" in
10584 # Assume -lc should be added
10585 archive_cmds_need_lc_CXX=yes
10587 if test "$enable_shared" = yes && test "$GCC" = yes; then
10588 case $archive_cmds_CXX in
10590 # FIXME: we may have to deal with multi-command sequences.
10593 # Test whether the compiler implicitly links with -lc since on some
10594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10595 # to ld, don't add -lc before -lgcc.
10596 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10597 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602 (eval $ac_compile) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } 2>conftest.err; then
10608 libobjs=conftest.$ac_objext
10610 wl=$lt_prog_compiler_wl_CXX
10616 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10617 allow_undefined_flag_CXX=
10618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10619 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }
10624 archive_cmds_need_lc_CXX=no
10626 archive_cmds_need_lc_CXX=yes
10628 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10630 cat conftest.err 1>&5
10633 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10634 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10641 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10643 hardcode_action_CXX=
10644 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10645 test -n "$runpath_var CXX" || \
10646 test "X$hardcode_automatic_CXX"="Xyes" ; then
10648 # We can hardcode non-existant directories.
10649 if test "$hardcode_direct_CXX" != no &&
10650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651 # have to relink, otherwise we might link with an installed library
10652 # when we should be linking with a yet-to-be-installed one
10653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10654 test "$hardcode_minus_L_CXX" != no; then
10655 # Linking always hardcodes the temporary library directory.
10656 hardcode_action_CXX=relink
10658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659 hardcode_action_CXX=immediate
10662 # We cannot hardcode anything, or else we can only hardcode existing
10664 hardcode_action_CXX=unsupported
10666 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10667 echo "${ECHO_T}$hardcode_action_CXX" >&6
10669 if test "$hardcode_action_CXX" = relink; then
10670 # Fast installation is not supported
10671 enable_fast_install=no
10672 elif test "$shlibpath_overrides_runpath" = yes ||
10673 test "$enable_shared" = no; then
10674 # Fast installation is not necessary
10675 enable_fast_install=needless
10680 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10681 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10682 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10683 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10684 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10685 echo "$as_me:$LINENO: result: yes" >&5
10686 echo "${ECHO_T}yes" >&6
10688 # FIXME - insert some real tests, host_os isn't really good enough
10691 if test -n "$STRIP" ; then
10692 striplib="$STRIP -x"
10693 echo "$as_me:$LINENO: result: yes" >&5
10694 echo "${ECHO_T}yes" >&6
10696 echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10701 echo "$as_me:$LINENO: result: no" >&5
10702 echo "${ECHO_T}no" >&6
10707 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10708 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10709 library_names_spec=
10710 libname_spec='lib$name'
10714 postuninstall_cmds=
10718 shlibpath_overrides_runpath=unknown
10720 dynamic_linker="$host_os ld.so"
10721 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10722 if test "$GCC" = yes; then
10723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10724 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10725 # if the path contains ";" then we assume it to be the separator
10726 # otherwise default to the standard path separator (i.e. ":") - it is
10727 # assumed that no part of a normal pathname contains ";" but that should
10728 # okay in the real world where ";" in dirpaths is itself problematic.
10729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10736 need_lib_prefix=unknown
10737 hardcode_into_libs=no
10739 # when you set need_version to no, make sure it does not cause -set_version
10740 # flags to be left without arguments
10741 need_version=unknown
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10747 shlibpath_var=LIBPATH
10749 # AIX 3 has no versioning support, so we append a major version to the name.
10750 soname_spec='${libname}${release}${shared_ext}$major'
10757 hardcode_into_libs=yes
10758 if test "$host_cpu" = ia64; then
10759 # AIX 5 supports IA64
10760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10761 shlibpath_var=LD_LIBRARY_PATH
10763 # With GCC up to 2.95.x, collect2 would create an import file
10764 # for dependence libraries. The import file would start with
10765 # the line `#! .'. This would cause the generated library to
10766 # depend on `.', always an invalid library. This was fixed in
10767 # development snapshots of GCC prior to 3.0.
10769 aix4 | aix4.[01] | aix4.[01].*)
10770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10772 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10775 can_build_shared=no
10779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10780 # soname into executable. Probably we can add versioning support to
10781 # collect2, so additional links can be useful in future.
10782 if test "$aix_use_runtimelinking" = yes; then
10783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10784 # instead of lib<name>.a to let people know that these are not
10785 # typical AIX shared libraries.
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 # We preserve .a as extension for shared libraries through AIX4.2
10789 # and later when we are not doing run time linking.
10790 library_names_spec='${libname}${release}.a $libname.a'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10793 shlibpath_var=LIBPATH
10798 library_names_spec='$libname.ixlibrary $libname.a'
10799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10800 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'
10804 library_names_spec='${libname}${shared_ext}'
10805 dynamic_linker="$host_os ld.so"
10806 shlibpath_var=LIBRARY_PATH
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10818 # the default ld.so.conf also contains /usr/contrib/lib and
10819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10820 # libtool to hard-code these into programs
10823 cygwin* | mingw* | pw32*)
10824 version_type=windows
10829 case $GCC,$host_os in
10830 yes,cygwin* | yes,mingw* | yes,pw32*)
10831 library_names_spec='$libname.dll.a'
10832 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10833 postinstall_cmds='base_file=`basename \${file}`~
10834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10835 dldir=$destdir/`dirname \$dlpath`~
10836 test -d \$dldir || mkdir -p \$dldir~
10837 $install_prog $dir/$dlname \$dldir/$dlname'
10838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839 dlpath=$dir/\$dldll~
10841 shlibpath_overrides_runpath=yes
10845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10850 # MinGW DLLs use traditional 'lib' prefix
10851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10854 # It is most probably a Windows format PATH printed by
10855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856 # path with ; separators, and with drive letters. We can handle the
10857 # drive letters (cygwin fileutils understands them), so leave them,
10858 # especially as we might pass files found there to a mingw objdump,
10859 # which wouldn't understand a cygwinified path. Ahh.
10860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10866 # pw32 DLLs use 'pw' prefix rather than 'lib'
10867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10876 dynamic_linker='Win32 ld.exe'
10877 # FIXME: first we should search . and the directory the executable is in
10881 darwin* | rhapsody*)
10882 dynamic_linker="$host_os dyld"
10883 version_type=darwin
10886 # FIXME: Relying on posixy $() will cause problems for
10887 # cross-compilation, but unfortunately the echo tests do not
10888 # yet detect zsh echo's removal of \ escapes.
10889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10890 soname_spec='${libname}${release}${major}$shared_ext'
10891 shlibpath_overrides_runpath=yes
10892 shlibpath_var=DYLD_LIBRARY_PATH
10893 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10895 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10896 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"`
10898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10915 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10916 version_type=freebsd-$objformat
10917 case $version_type in
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10928 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10933 freebsd3.01* | freebsdelf3.01*)
10934 shlibpath_overrides_runpath=yes
10935 hardcode_into_libs=yes
10938 shlibpath_overrides_runpath=no
10939 hardcode_into_libs=yes
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 hardcode_into_libs=yes
10954 hpux9* | hpux10* | hpux11*)
10955 # Give a soname corresponding to the major version so that dld.sl refuses to
10956 # link against other versions.
10960 case "$host_cpu" in
10963 hardcode_into_libs=yes
10964 dynamic_linker="$host_os dld.so"
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 if test "X$HPUX_IA64_MODE" = X32; then
10970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10978 hardcode_into_libs=yes
10979 dynamic_linker="$host_os dld.sl"
10980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10989 dynamic_linker="$host_os dld.sl"
10990 shlibpath_var=SHLIB_PATH
10991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10996 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10997 postinstall_cmds='chmod 555 $lib'
11000 irix5* | irix6* | nonstopux*)
11002 nonstopux*) version_type=nonstopux ;;
11004 if test "$lt_cv_prog_gnu_ld" = yes; then
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11015 irix5* | nonstopux*)
11016 libsuff= shlibsuff=
11019 case $LD in # libtool.m4 will add one of these switches to LD
11020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11021 libsuff= shlibsuff= libmagic=32-bit;;
11022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11023 libsuff=32 shlibsuff=N32 libmagic=N32;;
11024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026 *) libsuff= shlibsuff= libmagic=never-match;;
11030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031 shlibpath_overrides_runpath=no
11032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034 hardcode_into_libs=yes
11037 # No shared lib support for Linux oldld, aout, or coff.
11038 linux*oldld* | linux*aout* | linux*coff*)
11042 # This must be Linux ELF.
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=no
11052 # This implies no fast_install, which is unacceptable.
11053 # Some rework will be needed to allow for fast_install
11054 # before this can be enabled.
11055 hardcode_into_libs=yes
11057 # We used to test for /lib/ld.so.1 and disable shared libraries on
11058 # powerpc, because MkLinux only supported shared libraries with the
11059 # GNU dynamic linker. Since this was broken with cross compilers,
11060 # most powerpc-linux boxes support dynamic linking these days and
11061 # people can always --disable-shared, the test was removed, and we
11062 # assume the GNU/Linux dynamic linker is in use.
11063 dynamic_linker='GNU/Linux ld.so'
11070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073 dynamic_linker='NetBSD (a.out) ld.so'
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 dynamic_linker='NetBSD ld.elf_so'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=yes
11081 hardcode_into_libs=yes
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath=yes
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11110 openbsd2.[89] | openbsd2.[89].*)
11111 shlibpath_overrides_runpath=no
11114 shlibpath_overrides_runpath=yes
11118 shlibpath_overrides_runpath=yes
11123 libname_spec='$name'
11126 library_names_spec='$libname${shared_ext} $libname.a'
11127 dynamic_linker='OS/2 ld.exe'
11128 shlibpath_var=LIBPATH
11131 osf3* | osf4* | osf5*)
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11157 hardcode_into_libs=yes
11158 # ldd complains unless libraries are executable
11159 postinstall_cmds='chmod +x $lib'
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 if test "$with_gnu_ld" = yes; then
11174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 case $host_vendor in
11181 shlibpath_overrides_runpath=no
11183 export_dynamic_flag_spec='${wl}-Blargedynsym'
11184 runpath_var=LD_RUN_PATH
11192 shlibpath_overrides_runpath=no
11193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11199 if test -d /usr/nec ;then
11201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11202 soname_spec='$libname${shared_ext}.$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11218 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11219 echo "${ECHO_T}$dynamic_linker" >&6
11220 test "$dynamic_linker" = no && can_build_shared=no
11222 if test "x$enable_dlopen" != xyes; then
11223 enable_dlopen=unknown
11224 enable_dlopen_self=unknown
11225 enable_dlopen_self_static=unknown
11232 lt_cv_dlopen="load_add_on"
11234 lt_cv_dlopen_self=yes
11238 lt_cv_dlopen="LoadLibrary"
11243 lt_cv_dlopen="dlopen"
11248 # if libdl is installed we need to link against it
11249 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 ac_check_lib_save_LIBS=$LIBS
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11264 /* Override any gcc2 internal prototype to avoid an error. */
11268 /* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_lib_dl_dlopen=yes
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ac_cv_lib_dl_dlopen=no
11298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11303 if test $ac_cv_lib_dl_dlopen = yes; then
11304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11307 lt_cv_dlopen="dyld"
11309 lt_cv_dlopen_self=yes
11316 echo "$as_me:$LINENO: checking for shl_load" >&5
11317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11318 if test "${ac_cv_func_shl_load+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* System header to define __stub macros and hopefully few prototypes,
11329 which can conflict with char shl_load (); below.
11330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331 <limits.h> exists even on freestanding compilers. */
11333 # include <limits.h>
11335 # include <assert.h>
11337 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11345 /* The GNU C library defines this for functions which it implements
11346 to always fail with ENOSYS. Some functions are actually named
11347 something starting with __ and the normal name is an alias. */
11348 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11351 char (*f) () = shl_load;
11360 return f != shl_load;
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367 (eval $ac_link) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try='test -s conftest$ac_exeext'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_cv_func_shl_load=yes
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 ac_cv_func_shl_load=no
11384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11387 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11388 if test $ac_cv_func_shl_load = yes; then
11389 lt_cv_dlopen="shl_load"
11391 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11392 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 ac_check_lib_save_LIBS=$LIBS
11398 cat >conftest.$ac_ext <<_ACEOF
11399 #line $LINENO "configure"
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11406 /* Override any gcc2 internal prototype to avoid an error. */
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423 (eval $ac_link) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -s conftest$ac_exeext'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 ac_cv_lib_dld_shl_load=yes
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_cv_lib_dld_shl_load=no
11440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11443 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11444 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11445 if test $ac_cv_lib_dld_shl_load = yes; then
11446 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11448 echo "$as_me:$LINENO: checking for dlopen" >&5
11449 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11450 if test "${ac_cv_func_dlopen+set}" = set; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 cat >conftest.$ac_ext <<_ACEOF
11454 #line $LINENO "configure"
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 /* System header to define __stub macros and hopefully few prototypes,
11461 which can conflict with char dlopen (); below.
11462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11463 <limits.h> exists even on freestanding compilers. */
11465 # include <limits.h>
11467 # include <assert.h>
11469 /* Override any gcc2 internal prototype to avoid an error. */
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11477 /* The GNU C library defines this for functions which it implements
11478 to always fail with ENOSYS. Some functions are actually named
11479 something starting with __ and the normal name is an alias. */
11480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11483 char (*f) () = dlopen;
11492 return f != dlopen;
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_func_dlopen=yes
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_func_dlopen=no
11516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11519 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11520 if test $ac_cv_func_dlopen = yes; then
11521 lt_cv_dlopen="dlopen"
11523 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11524 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11528 ac_check_lib_save_LIBS=$LIBS
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11538 /* Override any gcc2 internal prototype to avoid an error. */
11542 /* We use char because int might match the return type of a gcc2
11543 builtin and then its argument prototype would still apply. */
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_lib_dl_dlopen=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_cv_lib_dl_dlopen=no
11572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11575 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11577 if test $ac_cv_lib_dl_dlopen = yes; then
11578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11580 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11581 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11582 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-lsvld $LIBS"
11587 cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11595 /* Override any gcc2 internal prototype to avoid an error. */
11599 /* We use char because int might match the return type of a gcc2
11600 builtin and then its argument prototype would still apply. */
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_lib_svld_dlopen=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_cv_lib_svld_dlopen=no
11629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11632 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11633 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11634 if test $ac_cv_lib_svld_dlopen = yes; then
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11637 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11638 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 ac_check_lib_save_LIBS=$LIBS
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11652 /* Override any gcc2 internal prototype to avoid an error. */
11656 /* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_lib_dld_dld_link=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_cv_lib_dld_dld_link=no
11686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_lib_save_LIBS
11689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11690 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11691 if test $ac_cv_lib_dld_dld_link = yes; then
11692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11713 if test "x$lt_cv_dlopen" != xno; then
11719 case $lt_cv_dlopen in
11721 save_CPPFLAGS="$CPPFLAGS"
11722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11724 save_LDFLAGS="$LDFLAGS"
11725 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11728 LIBS="$lt_cv_dlopen_libs $LIBS"
11730 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11731 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11732 if test "${lt_cv_dlopen_self+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self=cross
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<EOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11751 # define LT_DLGLOBAL RTLD_GLOBAL
11754 # define LT_DLGLOBAL DL_GLOBAL
11756 # define LT_DLGLOBAL 0
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11767 # define LT_DLLAZY_OR_NOW DL_LAZY
11770 # define LT_DLLAZY_OR_NOW RTLD_NOW
11773 # define LT_DLLAZY_OR_NOW DL_NOW
11775 # define LT_DLLAZY_OR_NOW 0
11783 extern "C" void exit (int);
11786 void fnord() { int i=42;}
11789 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11790 int status = $lt_dlunknown;
11794 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11795 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796 /* dlclose (self); */
11802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803 (eval $ac_link) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11807 (./conftest; exit; ) 2>/dev/null
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11815 # compilation failed
11816 lt_cv_dlopen_self=no
11823 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11824 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11826 if test "x$lt_cv_dlopen_self" = xyes; then
11827 LDFLAGS="$LDFLAGS $link_static_flag"
11828 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11829 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11830 if test "${lt_cv_dlopen_self_static+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 if test "$cross_compiling" = yes; then :
11834 lt_cv_dlopen_self_static=cross
11836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837 lt_status=$lt_dlunknown
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11839 "configure"
11840 #include "confdefs.h"
11849 # define LT_DLGLOBAL RTLD_GLOBAL
11852 # define LT_DLGLOBAL DL_GLOBAL
11854 # define LT_DLGLOBAL 0
11858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859 find out it does not work in some platform. */
11860 #ifndef LT_DLLAZY_OR_NOW
11862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11865 # define LT_DLLAZY_OR_NOW DL_LAZY
11868 # define LT_DLLAZY_OR_NOW RTLD_NOW
11871 # define LT_DLLAZY_OR_NOW DL_NOW
11873 # define LT_DLLAZY_OR_NOW 0
11881 extern "C" void exit (int);
11884 void fnord() { int i=42;}
11887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888 int status = $lt_dlunknown;
11892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11893 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11894 /* dlclose (self); */
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901 (eval $ac_link) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11905 (./conftest; exit; ) 2>/dev/null
11907 case x$lt_status in
11908 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11913 # compilation failed
11914 lt_cv_dlopen_self_static=no
11921 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11922 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11925 CPPFLAGS="$save_CPPFLAGS"
11926 LDFLAGS="$save_LDFLAGS"
11931 case $lt_cv_dlopen_self in
11932 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933 *) enable_dlopen_self=unknown ;;
11936 case $lt_cv_dlopen_self_static in
11937 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938 *) enable_dlopen_self_static=unknown ;;
11943 # The else clause should only fire when bootstrapping the
11944 # libtool distribution, otherwise you forgot to ship ltmain.sh
11945 # with your package, and you will get complaints that there are
11946 # no rules to generate ltmain.sh.
11947 if test -f "$ltmain"; then
11948 # See if we are running on zsh, and set the options which allow our commands through
11949 # without removal of \ escapes.
11950 if test -n "${ZSH_VERSION+set}" ; then
11951 setopt NO_GLOB_SUBST
11953 # Now quote all the things that may contain metacharacters while being
11954 # careful not to overquote the AC_SUBSTed values. We take copies of the
11955 # variables and quote the copies for generation of the libtool script.
11956 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11957 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11958 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11959 deplibs_check_method reload_flag reload_cmds need_locks \
11960 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11961 lt_cv_sys_global_symbol_to_c_name_address \
11962 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11963 old_postinstall_cmds old_postuninstall_cmds \
11967 lt_prog_compiler_wl_CXX \
11968 lt_prog_compiler_pic_CXX \
11969 lt_prog_compiler_static_CXX \
11970 lt_prog_compiler_no_builtin_flag_CXX \
11971 export_dynamic_flag_spec_CXX \
11972 thread_safe_flag_spec_CXX \
11973 whole_archive_flag_spec_CXX \
11974 enable_shared_with_static_runtimes_CXX \
11975 old_archive_cmds_CXX \
11976 old_archive_from_new_cmds_CXX \
11977 predep_objects_CXX \
11978 postdep_objects_CXX \
11981 compiler_lib_search_path_CXX \
11983 archive_expsym_cmds_CXX \
11984 postinstall_cmds_CXX \
11985 postuninstall_cmds_CXX \
11986 old_archive_from_expsyms_cmds_CXX \
11987 allow_undefined_flag_CXX \
11988 no_undefined_flag_CXX \
11989 export_symbols_cmds_CXX \
11990 hardcode_libdir_flag_spec_CXX \
11991 hardcode_libdir_flag_spec_ld_CXX \
11992 hardcode_libdir_separator_CXX \
11993 hardcode_automatic_CXX \
11995 module_expsym_cmds_CXX \
11996 lt_cv_prog_compiler_c_o_CXX \
11997 exclude_expsyms_CXX \
11998 include_expsyms_CXX; do
12001 old_archive_cmds_CXX | \
12002 old_archive_from_new_cmds_CXX | \
12003 archive_cmds_CXX | \
12004 archive_expsym_cmds_CXX | \
12005 module_cmds_CXX | \
12006 module_expsym_cmds_CXX | \
12007 old_archive_from_expsyms_cmds_CXX | \
12008 export_symbols_cmds_CXX | \
12009 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12010 postinstall_cmds | postuninstall_cmds | \
12011 old_postinstall_cmds | old_postuninstall_cmds | \
12012 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12013 # Double-quote double-evaled strings.
12014 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12023 *'\$0 --fallback-echo"')
12024 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12030 cat <<__EOF__ >> "$cfgfile"
12031 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12033 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12035 # Shell to use when invoking shell scripts.
12038 # Whether or not to build shared libraries.
12039 build_libtool_libs=$enable_shared
12041 # Whether or not to build static libraries.
12042 build_old_libs=$enable_static
12044 # Whether or not to add -lc for building shared libraries.
12045 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12047 # Whether or not to disallow shared libs when runtime libs are static
12048 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12050 # Whether or not to optimize for fast installation.
12051 fast_install=$enable_fast_install
12054 host_alias=$host_alias
12057 # An echo program that does not interpret backslashes.
12062 AR_FLAGS=$lt_AR_FLAGS
12067 # A language-specific compiler.
12068 CC=$lt_compiler_CXX
12070 # Is the compiler the GNU C compiler?
12076 # The linker used to build libraries.
12079 # Whether we need hard or soft links.
12082 # A BSD-compatible nm program.
12085 # A symbol stripping program
12088 # Used to examine libraries when file_magic_cmd begins "file"
12089 MAGIC_CMD=$MAGIC_CMD
12091 # Used on cygwin: DLL creation program.
12094 # Used on cygwin: object dumper.
12097 # Used on cygwin: assembler.
12100 # The name of the directory that contains temporary libtool files.
12103 # How to create reloadable object files.
12104 reload_flag=$lt_reload_flag
12105 reload_cmds=$lt_reload_cmds
12107 # How to pass a linker flag through the compiler.
12108 wl=$lt_lt_prog_compiler_wl_CXX
12110 # Object file suffix (normally "o").
12111 objext="$ac_objext"
12113 # Old archive suffix (normally "a").
12116 # Shared library suffix (normally ".so").
12119 # Executable file suffix (normally "").
12122 # Additional compiler flags for building library objects.
12123 pic_flag=$lt_lt_prog_compiler_pic_CXX
12126 # What is the maximum length of a command?
12127 max_cmd_len=$lt_cv_sys_max_cmd_len
12129 # Does compiler simultaneously support -c and -o options?
12130 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12132 # Must we lock files when doing compilation ?
12133 need_locks=$lt_need_locks
12135 # Do we need the lib prefix for modules?
12136 need_lib_prefix=$need_lib_prefix
12138 # Do we need a version for libraries?
12139 need_version=$need_version
12141 # Whether dlopen is supported.
12142 dlopen_support=$enable_dlopen
12144 # Whether dlopen of programs is supported.
12145 dlopen_self=$enable_dlopen_self
12147 # Whether dlopen of statically linked programs is supported.
12148 dlopen_self_static=$enable_dlopen_self_static
12150 # Compiler flag to prevent dynamic linking.
12151 link_static_flag=$lt_lt_prog_compiler_static_CXX
12153 # Compiler flag to turn off builtin functions.
12154 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12156 # Compiler flag to allow reflexive dlopens.
12157 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12159 # Compiler flag to generate shared objects directly from archives.
12160 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12162 # Compiler flag to generate thread-safe objects.
12163 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12165 # Library versioning type.
12166 version_type=$version_type
12168 # Format of library name prefix.
12169 libname_spec=$lt_libname_spec
12171 # List of archive names. First name is the real one, the rest are links.
12172 # The last name is the one that the linker finds with -lNAME.
12173 library_names_spec=$lt_library_names_spec
12175 # The coded name of the library, if different from the real name.
12176 soname_spec=$lt_soname_spec
12178 # Commands used to build and install an old-style archive.
12180 old_archive_cmds=$lt_old_archive_cmds_CXX
12181 old_postinstall_cmds=$lt_old_postinstall_cmds
12182 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12184 # Create an old-style archive from a shared archive.
12185 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12187 # Create a temporary old-style archive to link instead of a shared archive.
12188 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12190 # Commands used to build and install a shared archive.
12191 archive_cmds=$lt_archive_cmds_CXX
12192 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12193 postinstall_cmds=$lt_postinstall_cmds
12194 postuninstall_cmds=$lt_postuninstall_cmds
12196 # Commands used to build a loadable module (assumed same as above if empty)
12197 module_cmds=$lt_module_cmds_CXX
12198 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12200 # Commands to strip libraries.
12201 old_striplib=$lt_old_striplib
12202 striplib=$lt_striplib
12204 # Dependencies to place before the objects being linked to create a
12206 predep_objects=$lt_predep_objects_CXX
12208 # Dependencies to place after the objects being linked to create a
12210 postdep_objects=$lt_postdep_objects_CXX
12212 # Dependencies to place before the objects being linked to create a
12214 predeps=$lt_predeps_CXX
12216 # Dependencies to place after the objects being linked to create a
12218 postdeps=$lt_postdeps_CXX
12220 # The library search path used internally by the compiler when linking
12221 # a shared library.
12222 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12224 # Method to check whether dependent libraries are shared objects.
12225 deplibs_check_method=$lt_deplibs_check_method
12227 # Command to use when deplibs_check_method == file_magic.
12228 file_magic_cmd=$lt_file_magic_cmd
12230 # Flag that allows shared libraries with undefined symbols to be built.
12231 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12233 # Flag that forces no undefined symbols.
12234 no_undefined_flag=$lt_no_undefined_flag_CXX
12236 # Commands used to finish a libtool library installation in a directory.
12237 finish_cmds=$lt_finish_cmds
12239 # Same as above, but a single script fragment to be evaled but not shown.
12240 finish_eval=$lt_finish_eval
12242 # Take the output of nm and produce a listing of raw symbols and C names.
12243 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12245 # Transform the output of nm in a proper C declaration
12246 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12248 # Transform the output of nm in a C name address pair
12249 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12251 # This is the shared library runtime path variable.
12252 runpath_var=$runpath_var
12254 # This is the shared library path variable.
12255 shlibpath_var=$shlibpath_var
12257 # Is shlibpath searched before the hard-coded library search path?
12258 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12260 # How to hardcode a shared library path into an executable.
12261 hardcode_action=$hardcode_action_CXX
12263 # Whether we should hardcode library paths into libraries.
12264 hardcode_into_libs=$hardcode_into_libs
12266 # Flag to hardcode \$libdir into a binary during linking.
12267 # This must work even if \$libdir does not exist.
12268 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12270 # If ld is used when linking, flag to hardcode \$libdir into
12271 # a binary during linking. This must work even if \$libdir does
12273 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12275 # Whether we need a single -rpath flag with a separated argument.
12276 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12278 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_direct=$hardcode_direct_CXX
12282 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12283 # resulting binary.
12284 hardcode_minus_L=$hardcode_minus_L_CXX
12286 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12287 # the resulting binary.
12288 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12290 # Set to yes if building a shared library automatically hardcodes DIR into the library
12291 # and all subsequent libraries and executables linked against it.
12292 hardcode_automatic=$hardcode_automatic_CXX
12294 # Variables whose values should be saved in libtool wrapper scripts and
12295 # restored at relink time.
12296 variables_saved_for_relink="$variables_saved_for_relink"
12298 # Whether libtool must link a program against all its dependency libraries.
12299 link_all_deplibs=$link_all_deplibs_CXX
12301 # Compile-time system search path for libraries
12302 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12304 # Run-time system search path for libraries
12305 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12307 # Fix the shell variable \$srcfile for the compiler.
12308 fix_srcfile_path="$fix_srcfile_path_CXX"
12310 # Set to yes if exported symbols are required.
12311 always_export_symbols=$always_export_symbols_CXX
12313 # The commands to list exported symbols.
12314 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12316 # The commands to extract the exported symbol list from a shared archive.
12317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12319 # Symbols that should not be listed in the preloaded symbols.
12320 exclude_expsyms=$lt_exclude_expsyms_CXX
12322 # Symbols that must always be exported.
12323 include_expsyms=$lt_include_expsyms_CXX
12325 # ### END LIBTOOL TAG CONFIG: $tagname
12331 # If there is no Makefile yet, we rely on a make rule to execute
12332 # `config.status --recheck' to rerun these tests and create the
12333 # libtool script then.
12334 test -f Makefile && make "$ltmain"
12339 ac_cpp='$CPP $CPPFLAGS'
12340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12348 with_gnu_ldcxx=$with_gnu_ld
12349 with_gnu_ld=$lt_save_with_gnu_ld
12350 lt_cv_path_LDCXX=$lt_cv_path_LD
12351 lt_cv_path_LD=$lt_save_path_LD
12352 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12353 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12361 if test -n "$F77" && test "X$F77" != "Xno"; then
12364 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12365 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12369 archive_cmds_need_lc_F77=no
12370 allow_undefined_flag_F77=
12371 always_export_symbols_F77=no
12372 archive_expsym_cmds_F77=
12373 export_dynamic_flag_spec_F77=
12374 hardcode_direct_F77=no
12375 hardcode_libdir_flag_spec_F77=
12376 hardcode_libdir_flag_spec_ld_F77=
12377 hardcode_libdir_separator_F77=
12378 hardcode_minus_L_F77=no
12379 hardcode_automatic_F77=no
12381 module_expsym_cmds_F77=
12382 link_all_deplibs_F77=unknown
12383 old_archive_cmds_F77=$old_archive_cmds
12384 no_undefined_flag_F77=
12385 whole_archive_flag_spec_F77=
12386 enable_shared_with_static_runtimes_F77=no
12388 # Source file extension for f77 test sources.
12391 # Object file extension for compiled f77 test sources.
12395 # Code to be used in simple compile tests
12396 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12398 # Code to be used in simple link tests
12399 lt_simple_link_test_code=" program t\n end\n"
12401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12403 # If no C compiler was specified, use CC.
12406 # Allow CC to be a program name with arguments.
12410 # Allow CC to be a program name with arguments.
12415 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12417 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12418 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12419 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12420 echo "${ECHO_T}$can_build_shared" >&6
12422 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12423 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12424 test "$can_build_shared" = "no" && enable_shared=no
12426 # On AIX, shared libraries and static libraries use the same namespace, and
12427 # are all built from PIC.
12430 test "$enable_shared" = yes && enable_static=no
12431 if test -n "$RANLIB"; then
12432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12433 postinstall_cmds='$RANLIB $lib'
12437 test "$enable_shared" = yes && enable_static=no
12440 echo "$as_me:$LINENO: result: $enable_shared" >&5
12441 echo "${ECHO_T}$enable_shared" >&6
12443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12445 # Make sure either enable_shared or enable_static is yes.
12446 test "$enable_shared" = yes || enable_static=yes
12447 echo "$as_me:$LINENO: result: $enable_static" >&5
12448 echo "${ECHO_T}$enable_static" >&6
12450 test "$ld_shlibs_F77" = no && can_build_shared=no
12455 lt_prog_compiler_wl_F77=
12456 lt_prog_compiler_pic_F77=
12457 lt_prog_compiler_static_F77=
12459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12462 if test "$GCC" = yes; then
12463 lt_prog_compiler_wl_F77='-Wl,'
12464 lt_prog_compiler_static_F77='-static'
12468 # All AIX code is PIC.
12469 if test "$host_cpu" = ia64; then
12470 # AIX 5 now supports IA64 processor
12471 lt_prog_compiler_static_F77='-Bstatic'
12476 # FIXME: we need at least 68020 code to build shared libraries, but
12477 # adding the `-m68020' flag to GCC prevents building anything better,
12479 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12483 # PIC is the default for these OSes.
12486 mingw* | pw32* | os2*)
12487 # This hack is so that the source file can tell whether it is being
12488 # built for inclusion in a dll (and should export symbols for example).
12489 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12492 darwin* | rhapsody*)
12493 # PIC is the default on this platform
12494 # Common symbols not allowed in MH_DYLIB files
12495 lt_prog_compiler_pic_F77='-fno-common'
12499 # Just because we use GCC doesn't mean we suddenly get shared libraries
12500 # on systems that don't support them.
12501 lt_prog_compiler_can_build_shared_F77=no
12506 if test -d /usr/nec; then
12507 lt_prog_compiler_pic_F77=-Kconform_pic
12512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12513 # not for PA HP-UX.
12514 case "$host_cpu" in
12519 lt_prog_compiler_pic_F77='-fPIC'
12525 lt_prog_compiler_pic_F77='-fPIC'
12529 # PORTME Check for flag to pass linker flags through the system compiler.
12532 lt_prog_compiler_wl_F77='-Wl,'
12533 if test "$host_cpu" = ia64; then
12534 # AIX 5 now supports IA64 processor
12535 lt_prog_compiler_static_F77='-Bstatic'
12537 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12541 mingw* | pw32* | os2*)
12542 # This hack is so that the source file can tell whether it is being
12543 # built for inclusion in a dll (and should export symbols for example).
12544 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12547 hpux9* | hpux10* | hpux11*)
12548 lt_prog_compiler_wl_F77='-Wl,'
12549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12550 # not for PA HP-UX.
12551 case "$host_cpu" in
12556 lt_prog_compiler_pic_F77='+Z'
12559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12560 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12563 irix5* | irix6* | nonstopux*)
12564 lt_prog_compiler_wl_F77='-Wl,'
12565 # PIC (with -KPIC) is the default.
12566 lt_prog_compiler_static_F77='-non_shared'
12570 lt_prog_compiler_pic_F77='-KPIC'
12571 lt_prog_compiler_static_F77='-Bstatic'
12577 lt_prog_compiler_wl_F77='-Wl,'
12578 lt_prog_compiler_pic_F77='-KPIC'
12579 lt_prog_compiler_static_F77='-static'
12582 lt_prog_compiler_wl_F77='-Wl,'
12583 # All Alpha code is PIC.
12584 lt_prog_compiler_static_F77='-non_shared'
12589 osf3* | osf4* | osf5*)
12590 lt_prog_compiler_wl_F77='-Wl,'
12591 # All OSF/1 code is PIC.
12592 lt_prog_compiler_static_F77='-non_shared'
12596 lt_prog_compiler_pic_F77='-Kpic'
12597 lt_prog_compiler_static_F77='-dn'
12601 lt_prog_compiler_wl_F77='-Wl,'
12602 lt_prog_compiler_pic_F77='-KPIC'
12603 lt_prog_compiler_static_F77='-Bstatic'
12607 lt_prog_compiler_wl_F77='-Qoption ld '
12608 lt_prog_compiler_pic_F77='-PIC'
12609 lt_prog_compiler_static_F77='-Bstatic'
12612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12613 lt_prog_compiler_wl_F77='-Wl,'
12614 lt_prog_compiler_pic_F77='-KPIC'
12615 lt_prog_compiler_static_F77='-Bstatic'
12619 if test -d /usr/nec ;then
12620 lt_prog_compiler_pic_F77='-Kconform_pic'
12621 lt_prog_compiler_static_F77='-Bstatic'
12626 lt_prog_compiler_pic_F77='-pic'
12627 lt_prog_compiler_static_F77='-Bstatic'
12631 lt_prog_compiler_can_build_shared_F77=no
12636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12637 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12640 # Check to make sure the PIC flag actually works.
12642 if test -n "$lt_prog_compiler_pic_F77"; then
12643 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12644 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12645 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 lt_prog_compiler_pic_works_F77=no
12649 ac_outfile=conftest.$ac_objext
12650 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12652 # Insert the option either (1) after the last *FLAGS variable, or
12653 # (2) before a word containing "conftest.", or (3) at the end.
12654 # Note that $ac_compile itself does not contain backslashes and begins
12655 # with a dollar sign (not a hyphen), so the echo should work correctly.
12656 # The option is referenced via a variable to avoid confusing sed.
12657 lt_compile=`echo "$ac_compile" | $SED \
12658 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12660 -e 's:$: $lt_compiler_flag:'`
12661 (eval echo "\"\$as_me:12661: $lt_compile\"" >&5)
12662 (eval "$lt_compile" 2>conftest.err)
12664 cat conftest.err >&5
12665 echo "$as_me:12665: \$? = $ac_status" >&5
12666 if (exit $ac_status) && test -s "$ac_outfile"; then
12667 # The compiler can only warn and ignore the option if not recognized
12668 # So say no if there are warnings
12669 if test ! -s conftest.err; then
12670 lt_prog_compiler_pic_works_F77=yes
12676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12677 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12679 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12680 case $lt_prog_compiler_pic_F77 in
12682 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12685 lt_prog_compiler_pic_F77=
12686 lt_prog_compiler_can_build_shared_F77=no
12691 # For platforms which do not support PIC, -DPIC is meaningless:
12693 lt_prog_compiler_pic_F77=
12696 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12700 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12701 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12702 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 lt_cv_prog_compiler_c_o_F77=no
12706 $rm -r conftest 2>/dev/null
12710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12712 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12713 # that will create temporary files in the current directory regardless of
12714 # the output directory. Thus, making CWD read-only will cause this test
12715 # to fail, enabling locking or at least warning the user not to do parallel
12719 lt_compiler_flag="-o out/conftest2.$ac_objext"
12720 # Insert the option either (1) after the last *FLAGS variable, or
12721 # (2) before a word containing "conftest.", or (3) at the end.
12722 # Note that $ac_compile itself does not contain backslashes and begins
12723 # with a dollar sign (not a hyphen), so the echo should work correctly.
12724 lt_compile=`echo "$ac_compile" | $SED \
12725 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12727 -e 's:$: $lt_compiler_flag:'`
12728 (eval echo "\"\$as_me:12728: $lt_compile\"" >&5)
12729 (eval "$lt_compile" 2>out/conftest.err)
12731 cat out/conftest.err >&5
12732 echo "$as_me:12732: \$? = $ac_status" >&5
12733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12735 # The compiler can only warn and ignore the option if not recognized
12736 # So say no if there are warnings
12737 if test ! -s out/conftest.err; then
12738 lt_cv_prog_compiler_c_o_F77=yes
12742 $rm conftest* out/*
12749 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12753 hard_links="nottested"
12754 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12755 # do not overwrite the value of need_locks provided by the user
12756 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12762 ln conftest.a conftest.b 2>&5 || hard_links=no
12763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12764 echo "$as_me:$LINENO: result: $hard_links" >&5
12765 echo "${ECHO_T}$hard_links" >&6
12766 if test "$hard_links" = no; then
12767 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12775 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12779 allow_undefined_flag_F77=
12780 enable_shared_with_static_runtimes_F77=no
12782 archive_expsym_cmds_F77=
12783 old_archive_From_new_cmds_F77=
12784 old_archive_from_expsyms_cmds_F77=
12785 export_dynamic_flag_spec_F77=
12786 whole_archive_flag_spec_F77=
12787 thread_safe_flag_spec_F77=
12788 hardcode_libdir_flag_spec_F77=
12789 hardcode_libdir_flag_spec_ld_F77=
12790 hardcode_libdir_separator_F77=
12791 hardcode_direct_F77=no
12792 hardcode_minus_L_F77=no
12793 hardcode_shlibpath_var_F77=unsupported
12794 link_all_deplibs_F77=unknown
12795 hardcode_automatic_F77=no
12797 module_expsym_cmds_F77=
12798 always_export_symbols_F77=no
12799 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12800 # include_expsyms should be a list of space-separated symbols to be *always*
12801 # included in the symbol list
12802 include_expsyms_F77=
12803 # exclude_expsyms can be an extended regexp of symbols to exclude
12804 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12805 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12806 # as well as any symbol that contains `d'.
12807 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12808 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12809 # platforms (ab)use it in PIC code, but their linkers get confused if
12810 # the symbol is explicitly referenced. Since portable code cannot
12811 # rely on this symbol name, it's probably fine to never include it in
12812 # preloaded symbol tables.
12813 extract_expsyms_cmds=
12816 cygwin* | mingw* | pw32*)
12817 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12818 # When not using gcc, we currently assume that we are using
12819 # Microsoft Visual C++.
12820 if test "$GCC" != yes; then
12830 if test "$with_gnu_ld" = yes; then
12831 # If archive_cmds runs LD, not CC, wlarc should be empty
12834 # See if GNU ld supports shared libraries.
12836 aix3* | aix4* | aix5*)
12837 # On AIX/PPC, the GNU linker is very broken
12838 if test "$host_cpu" != ia64; then
12842 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12843 *** to be unable to reliably create shared libraries on AIX.
12844 *** Therefore, libtool is disabling shared libraries support. If you
12845 *** really care for shared libraries, you may want to modify your PATH
12846 *** so that a non-GNU linker is found, and then restart.
12853 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)'
12854 hardcode_libdir_flag_spec_F77='-L$libdir'
12855 hardcode_minus_L_F77=yes
12857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12858 # that the semantics of dynamic libraries on AmigaOS, at least up
12859 # to version 4, is to share data among multiple programs linked
12860 # with the same dynamic library. Since this doesn't match the
12861 # behavior of shared libraries on other platforms, we can't use
12867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12868 allow_undefined_flag_F77=unsupported
12869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12870 # support --undefined. This deserves some investigation. FIXME
12871 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12877 cygwin* | mingw* | pw32*)
12878 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12879 # as there is no search path for DLLs.
12880 hardcode_libdir_flag_spec_F77='-L$libdir'
12881 allow_undefined_flag_F77=unsupported
12882 always_export_symbols_F77=no
12883 enable_shared_with_static_runtimes_F77=yes
12884 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12886 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12888 # If the export-symbols file already is a .def file (1st line
12889 # is EXPORTS), use it as is; otherwise, prepend...
12890 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12891 cp $export_symbols $output_objdir/$soname.def;
12893 echo EXPORTS > $output_objdir/$soname.def;
12894 cat $export_symbols >> $output_objdir/$soname.def;
12896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12904 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12907 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12913 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12918 *** create shared libraries on Solaris systems. Therefore, libtool
12919 *** is disabling shared libraries support. We urge you to upgrade GNU
12920 *** binutils to release 2.9.1 or newer. Another option is to modify
12921 *** your PATH or compiler configuration so that the native linker is
12922 *** used, and then restart.
12925 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12926 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12934 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_direct_F77=yes
12937 hardcode_shlibpath_var_F77=no
12941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12942 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950 if test "$ld_shlibs_F77" = yes; then
12951 runpath_var=LD_RUN_PATH
12952 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12953 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12954 # ancient GNU ld didn't support --whole-archive et. al.
12955 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12956 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12958 whole_archive_flag_spec_F77=
12962 # PORTME fill in a description of your system's linker (not GNU ld)
12965 allow_undefined_flag_F77=unsupported
12966 always_export_symbols_F77=yes
12967 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'
12968 # Note: this linker hardcodes the directories in LIBPATH if there
12969 # are no directories specified by -L.
12970 hardcode_minus_L_F77=yes
12971 if test "$GCC" = yes && test -z "$link_static_flag"; then
12972 # Neither direct hardcoding nor static linking is supported with a
12974 hardcode_direct_F77=unsupported
12979 if test "$host_cpu" = ia64; then
12980 # On IA64, the linker does run time linking by default, so we don't
12981 # have to do anything special.
12982 aix_use_runtimelinking=no
12983 exp_sym_flag='-Bexport'
12986 # If we're using GNU nm, then we don't want the "-C" option.
12987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12988 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12989 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'
12991 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'
12993 aix_use_runtimelinking=no
12995 # Test if we are trying to use run time linking or normal
12996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12997 # need to do runtime linking.
12998 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12999 for ld_flag in $LDFLAGS; do
13000 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13001 aix_use_runtimelinking=yes
13007 exp_sym_flag='-bexport'
13008 no_entry_flag='-bnoentry'
13011 # When large executables or shared objects are built, AIX ld can
13012 # have problems creating the table of contents. If linking a library
13013 # or program results in "error TOC overflow" add -mminimal-toc to
13014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13017 archive_cmds_F77=''
13018 hardcode_direct_F77=yes
13019 hardcode_libdir_separator_F77=':'
13020 link_all_deplibs_F77=yes
13022 if test "$GCC" = yes; then
13023 case $host_os in aix4.012|aix4.012.*)
13024 # We only want to do this on AIX 4.2 and lower, the check
13025 # below for broken collect2 doesn't work under 4.3+
13026 collect2name=`${CC} -print-prog-name=collect2`
13027 if test -f "$collect2name" && \
13028 strings "$collect2name" | grep resolve_lib_name >/dev/null
13030 # We have reworked collect2
13031 hardcode_direct_F77=yes
13033 # We have old collect2
13034 hardcode_direct_F77=unsupported
13035 # It fails to find uninstalled libraries when the uninstalled
13036 # path is not listed in the libpath. Setting hardcode_minus_L
13037 # to unsupported forces relinking
13038 hardcode_minus_L_F77=yes
13039 hardcode_libdir_flag_spec_F77='-L$libdir'
13040 hardcode_libdir_separator_F77=
13043 shared_flag='-shared'
13046 if test "$host_cpu" = ia64; then
13047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13048 # chokes on -Wl,-G. The following line is correct:
13051 if test "$aix_use_runtimelinking" = yes; then
13052 shared_flag='${wl}-G'
13054 shared_flag='${wl}-bM:SRE'
13059 # It seems that -bexpall does not export symbols beginning with
13060 # underscore (_), so it is better to generate a list of symbols to export.
13061 always_export_symbols_F77=yes
13062 if test "$aix_use_runtimelinking" = yes; then
13063 # Warning - without using the other runtime loading flags (-brtl),
13064 # -berok will link without error, but may produce a broken library.
13065 allow_undefined_flag_F77='-berok'
13066 # Determine the default libpath from the value encoded in an empty executable.
13067 cat >conftest.$ac_ext <<_ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074 (eval $ac_link) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13087 # Check for a 64-bit object if we didn't find anything.
13088 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; }
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13098 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099 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"
13101 if test "$host_cpu" = ia64; then
13102 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13103 allow_undefined_flag_F77="-z nodefs"
13104 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"
13106 # Determine the default libpath from the value encoded in an empty executable.
13107 cat >conftest.$ac_ext <<_ACEOF
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114 (eval $ac_link) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13127 # Check for a 64-bit object if we didn't find anything.
13128 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; }
13131 echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13138 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13139 # Warning - without using the other run time loading flags,
13140 # -berok will link without error, but may produce a broken library.
13141 no_undefined_flag_F77=' ${wl}-bernotok'
13142 allow_undefined_flag_F77=' ${wl}-berok'
13143 # -bexpall does not export symbols beginning with underscore (_)
13144 always_export_symbols_F77=yes
13145 # Exported symbols can be pulled into shared objects from archives
13146 whole_archive_flag_spec_F77=' '
13147 archive_cmds_need_lc_F77=yes
13148 # This is similar to how AIX traditionally builds it's shared libraries.
13149 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'
13155 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)'
13156 hardcode_libdir_flag_spec_F77='-L$libdir'
13157 hardcode_minus_L_F77=yes
13158 # see comment about different semantics on the GNU ld section
13163 export_dynamic_flag_spec_F77=-rdynamic
13166 cygwin* | mingw* | pw32*)
13167 # When not using gcc, we currently assume that we are using
13168 # Microsoft Visual C++.
13169 # hardcode_libdir_flag_spec is actually meaningless, as there is
13170 # no search path for DLLs.
13171 hardcode_libdir_flag_spec_F77=' '
13172 allow_undefined_flag_F77=unsupported
13173 # Tell ltmain to make .lib files, not .a files.
13175 # Tell ltmain to make .dll files, not .so files.
13177 # FIXME: Setting linknames here is a bad hack.
13178 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13179 # The linker will automatically build a .lib file if we build a DLL.
13180 old_archive_From_new_cmds_F77='true'
13181 # FIXME: Should let the user specify the lib program.
13182 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13183 fix_srcfile_path='`cygpath -w "$srcfile"`'
13184 enable_shared_with_static_runtimes_F77=yes
13187 darwin* | rhapsody*)
13188 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13189 archive_cmds_need_lc_F77=no
13191 rhapsody* | darwin1.[012])
13192 allow_undefined_flag_F77='-undefined suppress'
13195 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13198 # FIXME: Relying on posixy $() will cause problems for
13199 # cross-compilation, but unfortunately the echo tests do not
13200 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13201 # `"' quotes if we put them in here... so don't!
13202 lt_int_apple_cc_single_mod=no
13203 output_verbose_link_cmd='echo'
13204 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13205 lt_int_apple_cc_single_mod=yes
13207 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13208 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13210 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13212 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13214 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13215 archive_expsym_cmds_F77='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}'
13217 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13219 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13220 hardcode_direct_F77=no
13221 hardcode_automatic_F77=yes
13222 hardcode_shlibpath_var_F77=unsupported
13223 whole_archive_flag_spec_F77='-all_load $convenience'
13224 link_all_deplibs_F77=yes
13229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13230 hardcode_libdir_flag_spec_F77='-L$libdir'
13231 hardcode_shlibpath_var_F77=no
13238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13239 # support. Future versions do this automatically, but an explicit c++rt0.o
13240 # does not break anything, and helps significantly (at the cost of a little
13243 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13244 hardcode_libdir_flag_spec_F77='-R$libdir'
13245 hardcode_direct_F77=yes
13246 hardcode_shlibpath_var_F77=no
13249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13252 hardcode_direct_F77=yes
13253 hardcode_minus_L_F77=yes
13254 hardcode_shlibpath_var_F77=no
13257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13259 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13260 hardcode_libdir_flag_spec_F77='-R$libdir'
13261 hardcode_direct_F77=yes
13262 hardcode_shlibpath_var_F77=no
13266 if test "$GCC" = yes; then
13267 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'
13269 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'
13271 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13272 hardcode_libdir_separator_F77=:
13273 hardcode_direct_F77=yes
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_F77=yes
13278 export_dynamic_flag_spec_F77='${wl}-E'
13282 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13283 case "$host_cpu" in
13285 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13292 case "$host_cpu" in
13294 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13297 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13301 if test "$with_gnu_ld" = no; then
13302 case "$host_cpu" in
13304 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13305 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13306 hardcode_libdir_separator_F77=:
13307 hardcode_direct_F77=no
13308 hardcode_shlibpath_var_F77=no
13311 hardcode_libdir_flag_spec_F77='-L$libdir'
13312 hardcode_direct_F77=no
13313 hardcode_shlibpath_var_F77=no
13315 # hardcode_minus_L: Not really in the search PATH,
13316 # but as the default location of the library.
13317 hardcode_minus_L_F77=yes
13320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13321 hardcode_libdir_separator_F77=:
13322 hardcode_direct_F77=yes
13323 export_dynamic_flag_spec_F77='${wl}-E'
13325 # hardcode_minus_L: Not really in the search PATH,
13326 # but as the default location of the library.
13327 hardcode_minus_L_F77=yes
13333 irix5* | irix6* | nonstopux*)
13334 if test "$GCC" = yes; then
13335 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'
13337 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'
13338 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13340 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13341 hardcode_libdir_separator_F77=:
13342 link_all_deplibs_F77=yes
13346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13349 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13351 hardcode_libdir_flag_spec_F77='-R$libdir'
13352 hardcode_direct_F77=yes
13353 hardcode_shlibpath_var_F77=no
13357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13358 hardcode_direct_F77=yes
13359 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13360 hardcode_libdir_separator_F77=:
13361 hardcode_shlibpath_var_F77=no
13365 hardcode_direct_F77=yes
13366 hardcode_shlibpath_var_F77=no
13367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13368 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13369 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13370 export_dynamic_flag_spec_F77='${wl}-E'
13373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13374 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13375 hardcode_libdir_flag_spec_F77='-R$libdir'
13378 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13379 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13386 hardcode_libdir_flag_spec_F77='-L$libdir'
13387 hardcode_minus_L_F77=yes
13388 allow_undefined_flag_F77=unsupported
13389 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'
13390 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13394 if test "$GCC" = yes; then
13395 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13396 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'
13398 allow_undefined_flag_F77=' -expect_unresolved \*'
13399 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'
13401 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13402 hardcode_libdir_separator_F77=:
13405 osf4* | osf5*) # as osf3* with the addition of -msym flag
13406 if test "$GCC" = yes; then
13407 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13408 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'
13409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13411 allow_undefined_flag_F77=' -expect_unresolved \*'
13412 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'
13413 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~
13414 $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'
13416 # Both c and cxx compiler support -rpath directly
13417 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13419 hardcode_libdir_separator_F77=:
13423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_shlibpath_var_F77=no
13425 export_dynamic_flag_spec_F77='${wl}-Bexport'
13426 runpath_var=LD_RUN_PATH
13427 hardcode_runpath_var=yes
13431 no_undefined_flag_F77=' -z text'
13432 if test "$GCC" = yes; then
13433 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13434 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13435 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13437 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13441 hardcode_libdir_flag_spec_F77='-R$libdir'
13442 hardcode_shlibpath_var_F77=no
13444 solaris2.[0-5] | solaris2.[0-5].*) ;;
13445 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13446 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13448 link_all_deplibs_F77=yes
13452 if test "x$host_vendor" = xsequent; then
13453 # Use $CC to link under sequent, because it throws in some extra .o
13454 # files that make .init and .fini sections work.
13455 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13457 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13459 hardcode_libdir_flag_spec_F77='-L$libdir'
13460 hardcode_direct_F77=yes
13461 hardcode_minus_L_F77=yes
13462 hardcode_shlibpath_var_F77=no
13466 case $host_vendor in
13468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_direct_F77=yes # is this really true???
13472 ## LD is ld it makes a PLAMLIB
13473 ## CC just makes a GrossModule.
13474 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13475 reload_cmds_F77='$CC -r -o $output$reload_objs'
13476 hardcode_direct_F77=no
13479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13483 runpath_var='LD_RUN_PATH'
13484 hardcode_shlibpath_var_F77=no
13488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_shlibpath_var_F77=no
13490 export_dynamic_flag_spec_F77='-Bexport'
13494 if test -d /usr/nec; then
13495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_shlibpath_var_F77=no
13497 runpath_var=LD_RUN_PATH
13498 hardcode_runpath_var=yes
13504 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_direct_F77=yes
13506 hardcode_minus_L_F77=no
13507 hardcode_shlibpath_var_F77=no
13508 hardcode_runpath_var=yes
13509 runpath_var=LD_RUN_PATH
13512 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13513 no_undefined_flag_F77='${wl}-z ${wl}text'
13514 if test "$GCC" = yes; then
13515 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13519 runpath_var='LD_RUN_PATH'
13520 hardcode_shlibpath_var_F77=no
13524 no_undefined_flag_F77=' -z text'
13525 # $CC -shared without GNU ld will not create a library from C++
13526 # object files and a static libstdc++, better avoid it by now
13527 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13529 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13530 hardcode_libdir_flag_spec_F77=
13531 hardcode_shlibpath_var_F77=no
13532 runpath_var='LD_RUN_PATH'
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_libdir_flag_spec_F77='-L$libdir'
13538 hardcode_shlibpath_var_F77=no
13547 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13548 echo "${ECHO_T}$ld_shlibs_F77" >&6
13549 test "$ld_shlibs_F77" = no && can_build_shared=no
13551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13552 if test "$GCC" = yes; then
13553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13557 # Do we need to explicitly link libc?
13559 case "x$archive_cmds_need_lc_F77" in
13561 # Assume -lc should be added
13562 archive_cmds_need_lc_F77=yes
13564 if test "$enable_shared" = yes && test "$GCC" = yes; then
13565 case $archive_cmds_F77 in
13567 # FIXME: we may have to deal with multi-command sequences.
13570 # Test whether the compiler implicitly links with -lc since on some
13571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13572 # to ld, don't add -lc before -lgcc.
13573 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13574 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } 2>conftest.err; then
13585 libobjs=conftest.$ac_objext
13587 wl=$lt_prog_compiler_wl_F77
13593 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13594 allow_undefined_flag_F77=
13595 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13596 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }
13601 archive_cmds_need_lc_F77=no
13603 archive_cmds_need_lc_F77=yes
13605 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13607 cat conftest.err 1>&5
13610 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13611 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13618 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13619 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13620 hardcode_action_F77=
13621 if test -n "$hardcode_libdir_flag_spec_F77" || \
13622 test -n "$runpath_var F77" || \
13623 test "X$hardcode_automatic_F77"="Xyes" ; then
13625 # We can hardcode non-existant directories.
13626 if test "$hardcode_direct_F77" != no &&
13627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13628 # have to relink, otherwise we might link with an installed library
13629 # when we should be linking with a yet-to-be-installed one
13630 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13631 test "$hardcode_minus_L_F77" != no; then
13632 # Linking always hardcodes the temporary library directory.
13633 hardcode_action_F77=relink
13635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13636 hardcode_action_F77=immediate
13639 # We cannot hardcode anything, or else we can only hardcode existing
13641 hardcode_action_F77=unsupported
13643 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13644 echo "${ECHO_T}$hardcode_action_F77" >&6
13646 if test "$hardcode_action_F77" = relink; then
13647 # Fast installation is not supported
13648 enable_fast_install=no
13649 elif test "$shlibpath_overrides_runpath" = yes ||
13650 test "$enable_shared" = no; then
13651 # Fast installation is not necessary
13652 enable_fast_install=needless
13657 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13658 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13659 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13660 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13661 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13662 echo "$as_me:$LINENO: result: yes" >&5
13663 echo "${ECHO_T}yes" >&6
13665 # FIXME - insert some real tests, host_os isn't really good enough
13668 if test -n "$STRIP" ; then
13669 striplib="$STRIP -x"
13670 echo "$as_me:$LINENO: result: yes" >&5
13671 echo "${ECHO_T}yes" >&6
13673 echo "$as_me:$LINENO: result: no" >&5
13674 echo "${ECHO_T}no" >&6
13678 echo "$as_me:$LINENO: result: no" >&5
13679 echo "${ECHO_T}no" >&6
13684 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13686 library_names_spec=
13687 libname_spec='lib$name'
13691 postuninstall_cmds=
13695 shlibpath_overrides_runpath=unknown
13697 dynamic_linker="$host_os ld.so"
13698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13699 if test "$GCC" = yes; then
13700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13701 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13702 # if the path contains ";" then we assume it to be the separator
13703 # otherwise default to the standard path separator (i.e. ":") - it is
13704 # assumed that no part of a normal pathname contains ";" but that should
13705 # okay in the real world where ";" in dirpaths is itself problematic.
13706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13711 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13713 need_lib_prefix=unknown
13714 hardcode_into_libs=no
13716 # when you set need_version to no, make sure it does not cause -set_version
13717 # flags to be left without arguments
13718 need_version=unknown
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13724 shlibpath_var=LIBPATH
13726 # AIX 3 has no versioning support, so we append a major version to the name.
13727 soname_spec='${libname}${release}${shared_ext}$major'
13734 hardcode_into_libs=yes
13735 if test "$host_cpu" = ia64; then
13736 # AIX 5 supports IA64
13737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13738 shlibpath_var=LD_LIBRARY_PATH
13740 # With GCC up to 2.95.x, collect2 would create an import file
13741 # for dependence libraries. The import file would start with
13742 # the line `#! .'. This would cause the generated library to
13743 # depend on `.', always an invalid library. This was fixed in
13744 # development snapshots of GCC prior to 3.0.
13746 aix4 | aix4.[01] | aix4.[01].*)
13747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13749 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13752 can_build_shared=no
13756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13757 # soname into executable. Probably we can add versioning support to
13758 # collect2, so additional links can be useful in future.
13759 if test "$aix_use_runtimelinking" = yes; then
13760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13761 # instead of lib<name>.a to let people know that these are not
13762 # typical AIX shared libraries.
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 # We preserve .a as extension for shared libraries through AIX4.2
13766 # and later when we are not doing run time linking.
13767 library_names_spec='${libname}${release}.a $libname.a'
13768 soname_spec='${libname}${release}${shared_ext}$major'
13770 shlibpath_var=LIBPATH
13775 library_names_spec='$libname.ixlibrary $libname.a'
13776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13777 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'
13781 library_names_spec='${libname}${shared_ext}'
13782 dynamic_linker="$host_os ld.so"
13783 shlibpath_var=LIBRARY_PATH
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 soname_spec='${libname}${release}${shared_ext}$major'
13791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13795 # the default ld.so.conf also contains /usr/contrib/lib and
13796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13797 # libtool to hard-code these into programs
13800 cygwin* | mingw* | pw32*)
13801 version_type=windows
13806 case $GCC,$host_os in
13807 yes,cygwin* | yes,mingw* | yes,pw32*)
13808 library_names_spec='$libname.dll.a'
13809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13810 postinstall_cmds='base_file=`basename \${file}`~
13811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13812 dldir=$destdir/`dirname \$dlpath`~
13813 test -d \$dldir || mkdir -p \$dldir~
13814 $install_prog $dir/$dlname \$dldir/$dlname'
13815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13816 dlpath=$dir/\$dldll~
13818 shlibpath_overrides_runpath=yes
13822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13827 # MinGW DLLs use traditional 'lib' prefix
13828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13831 # It is most probably a Windows format PATH printed by
13832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13833 # path with ; separators, and with drive letters. We can handle the
13834 # drive letters (cygwin fileutils understands them), so leave them,
13835 # especially as we might pass files found there to a mingw objdump,
13836 # which wouldn't understand a cygwinified path. Ahh.
13837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13843 # pw32 DLLs use 'pw' prefix rather than 'lib'
13844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13853 dynamic_linker='Win32 ld.exe'
13854 # FIXME: first we should search . and the directory the executable is in
13858 darwin* | rhapsody*)
13859 dynamic_linker="$host_os dyld"
13860 version_type=darwin
13863 # FIXME: Relying on posixy $() will cause problems for
13864 # cross-compilation, but unfortunately the echo tests do not
13865 # yet detect zsh echo's removal of \ escapes.
13866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13867 soname_spec='${libname}${release}${major}$shared_ext'
13868 shlibpath_overrides_runpath=yes
13869 shlibpath_var=DYLD_LIBRARY_PATH
13870 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13872 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13873 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"`
13875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 shlibpath_var=LD_LIBRARY_PATH
13892 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13893 version_type=freebsd-$objformat
13894 case $version_type in
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13905 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=yes
13910 freebsd3.01* | freebsdelf3.01*)
13911 shlibpath_overrides_runpath=yes
13912 hardcode_into_libs=yes
13915 shlibpath_overrides_runpath=no
13916 hardcode_into_libs=yes
13925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13926 soname_spec='${libname}${release}${shared_ext}$major'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 hardcode_into_libs=yes
13931 hpux9* | hpux10* | hpux11*)
13932 # Give a soname corresponding to the major version so that dld.sl refuses to
13933 # link against other versions.
13937 case "$host_cpu" in
13940 hardcode_into_libs=yes
13941 dynamic_linker="$host_os dld.so"
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 soname_spec='${libname}${release}${shared_ext}$major'
13946 if test "X$HPUX_IA64_MODE" = X32; then
13947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13955 hardcode_into_libs=yes
13956 dynamic_linker="$host_os dld.sl"
13957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13966 dynamic_linker="$host_os dld.sl"
13967 shlibpath_var=SHLIB_PATH
13968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970 soname_spec='${libname}${release}${shared_ext}$major'
13973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13974 postinstall_cmds='chmod 555 $lib'
13977 irix5* | irix6* | nonstopux*)
13979 nonstopux*) version_type=nonstopux ;;
13981 if test "$lt_cv_prog_gnu_ld" = yes; then
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13992 irix5* | nonstopux*)
13993 libsuff= shlibsuff=
13996 case $LD in # libtool.m4 will add one of these switches to LD
13997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13998 libsuff= shlibsuff= libmagic=32-bit;;
13999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14000 libsuff=32 shlibsuff=N32 libmagic=N32;;
14001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14003 *) libsuff= shlibsuff= libmagic=never-match;;
14007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14008 shlibpath_overrides_runpath=no
14009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14011 hardcode_into_libs=yes
14014 # No shared lib support for Linux oldld, aout, or coff.
14015 linux*oldld* | linux*aout* | linux*coff*)
14019 # This must be Linux ELF.
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=no
14029 # This implies no fast_install, which is unacceptable.
14030 # Some rework will be needed to allow for fast_install
14031 # before this can be enabled.
14032 hardcode_into_libs=yes
14034 # We used to test for /lib/ld.so.1 and disable shared libraries on
14035 # powerpc, because MkLinux only supported shared libraries with the
14036 # GNU dynamic linker. Since this was broken with cross compilers,
14037 # most powerpc-linux boxes support dynamic linking these days and
14038 # people can always --disable-shared, the test was removed, and we
14039 # assume the GNU/Linux dynamic linker is in use.
14040 dynamic_linker='GNU/Linux ld.so'
14047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14050 dynamic_linker='NetBSD (a.out) ld.so'
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14053 soname_spec='${libname}${release}${shared_ext}$major'
14054 dynamic_linker='NetBSD ld.elf_so'
14056 shlibpath_var=LD_LIBRARY_PATH
14057 shlibpath_overrides_runpath=yes
14058 hardcode_into_libs=yes
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087 openbsd2.[89] | openbsd2.[89].*)
14088 shlibpath_overrides_runpath=no
14091 shlibpath_overrides_runpath=yes
14095 shlibpath_overrides_runpath=yes
14100 libname_spec='$name'
14103 library_names_spec='$libname${shared_ext} $libname.a'
14104 dynamic_linker='OS/2 ld.exe'
14105 shlibpath_var=LIBPATH
14108 osf3* | osf4* | osf5*)
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 shlibpath_var=LD_LIBRARY_PATH
14115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 shlibpath_var=LD_LIBRARY_PATH
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 shlibpath_overrides_runpath=yes
14134 hardcode_into_libs=yes
14135 # ldd complains unless libraries are executable
14136 postinstall_cmds='chmod +x $lib'
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 if test "$with_gnu_ld" = yes; then
14151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154 soname_spec='${libname}${release}${shared_ext}$major'
14155 shlibpath_var=LD_LIBRARY_PATH
14156 case $host_vendor in
14158 shlibpath_overrides_runpath=no
14160 export_dynamic_flag_spec='${wl}-Blargedynsym'
14161 runpath_var=LD_RUN_PATH
14169 shlibpath_overrides_runpath=no
14170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14176 if test -d /usr/nec ;then
14178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14179 soname_spec='$libname${shared_ext}.$major'
14180 shlibpath_var=LD_LIBRARY_PATH
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14195 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14196 echo "${ECHO_T}$dynamic_linker" >&6
14197 test "$dynamic_linker" = no && can_build_shared=no
14200 # The else clause should only fire when bootstrapping the
14201 # libtool distribution, otherwise you forgot to ship ltmain.sh
14202 # with your package, and you will get complaints that there are
14203 # no rules to generate ltmain.sh.
14204 if test -f "$ltmain"; then
14205 # See if we are running on zsh, and set the options which allow our commands through
14206 # without removal of \ escapes.
14207 if test -n "${ZSH_VERSION+set}" ; then
14208 setopt NO_GLOB_SUBST
14210 # Now quote all the things that may contain metacharacters while being
14211 # careful not to overquote the AC_SUBSTed values. We take copies of the
14212 # variables and quote the copies for generation of the libtool script.
14213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14216 deplibs_check_method reload_flag reload_cmds need_locks \
14217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14218 lt_cv_sys_global_symbol_to_c_name_address \
14219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14220 old_postinstall_cmds old_postuninstall_cmds \
14224 lt_prog_compiler_wl_F77 \
14225 lt_prog_compiler_pic_F77 \
14226 lt_prog_compiler_static_F77 \
14227 lt_prog_compiler_no_builtin_flag_F77 \
14228 export_dynamic_flag_spec_F77 \
14229 thread_safe_flag_spec_F77 \
14230 whole_archive_flag_spec_F77 \
14231 enable_shared_with_static_runtimes_F77 \
14232 old_archive_cmds_F77 \
14233 old_archive_from_new_cmds_F77 \
14234 predep_objects_F77 \
14235 postdep_objects_F77 \
14238 compiler_lib_search_path_F77 \
14240 archive_expsym_cmds_F77 \
14241 postinstall_cmds_F77 \
14242 postuninstall_cmds_F77 \
14243 old_archive_from_expsyms_cmds_F77 \
14244 allow_undefined_flag_F77 \
14245 no_undefined_flag_F77 \
14246 export_symbols_cmds_F77 \
14247 hardcode_libdir_flag_spec_F77 \
14248 hardcode_libdir_flag_spec_ld_F77 \
14249 hardcode_libdir_separator_F77 \
14250 hardcode_automatic_F77 \
14252 module_expsym_cmds_F77 \
14253 lt_cv_prog_compiler_c_o_F77 \
14254 exclude_expsyms_F77 \
14255 include_expsyms_F77; do
14258 old_archive_cmds_F77 | \
14259 old_archive_from_new_cmds_F77 | \
14260 archive_cmds_F77 | \
14261 archive_expsym_cmds_F77 | \
14262 module_cmds_F77 | \
14263 module_expsym_cmds_F77 | \
14264 old_archive_from_expsyms_cmds_F77 | \
14265 export_symbols_cmds_F77 | \
14266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14267 postinstall_cmds | postuninstall_cmds | \
14268 old_postinstall_cmds | old_postuninstall_cmds | \
14269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14270 # Double-quote double-evaled strings.
14271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14280 *'\$0 --fallback-echo"')
14281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14287 cat <<__EOF__ >> "$cfgfile"
14288 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14292 # Shell to use when invoking shell scripts.
14295 # Whether or not to build shared libraries.
14296 build_libtool_libs=$enable_shared
14298 # Whether or not to build static libraries.
14299 build_old_libs=$enable_static
14301 # Whether or not to add -lc for building shared libraries.
14302 build_libtool_need_lc=$archive_cmds_need_lc_F77
14304 # Whether or not to disallow shared libs when runtime libs are static
14305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14307 # Whether or not to optimize for fast installation.
14308 fast_install=$enable_fast_install
14311 host_alias=$host_alias
14314 # An echo program that does not interpret backslashes.
14319 AR_FLAGS=$lt_AR_FLAGS
14324 # A language-specific compiler.
14325 CC=$lt_compiler_F77
14327 # Is the compiler the GNU C compiler?
14333 # The linker used to build libraries.
14336 # Whether we need hard or soft links.
14339 # A BSD-compatible nm program.
14342 # A symbol stripping program
14345 # Used to examine libraries when file_magic_cmd begins "file"
14346 MAGIC_CMD=$MAGIC_CMD
14348 # Used on cygwin: DLL creation program.
14351 # Used on cygwin: object dumper.
14354 # Used on cygwin: assembler.
14357 # The name of the directory that contains temporary libtool files.
14360 # How to create reloadable object files.
14361 reload_flag=$lt_reload_flag
14362 reload_cmds=$lt_reload_cmds
14364 # How to pass a linker flag through the compiler.
14365 wl=$lt_lt_prog_compiler_wl_F77
14367 # Object file suffix (normally "o").
14368 objext="$ac_objext"
14370 # Old archive suffix (normally "a").
14373 # Shared library suffix (normally ".so").
14376 # Executable file suffix (normally "").
14379 # Additional compiler flags for building library objects.
14380 pic_flag=$lt_lt_prog_compiler_pic_F77
14383 # What is the maximum length of a command?
14384 max_cmd_len=$lt_cv_sys_max_cmd_len
14386 # Does compiler simultaneously support -c and -o options?
14387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14389 # Must we lock files when doing compilation ?
14390 need_locks=$lt_need_locks
14392 # Do we need the lib prefix for modules?
14393 need_lib_prefix=$need_lib_prefix
14395 # Do we need a version for libraries?
14396 need_version=$need_version
14398 # Whether dlopen is supported.
14399 dlopen_support=$enable_dlopen
14401 # Whether dlopen of programs is supported.
14402 dlopen_self=$enable_dlopen_self
14404 # Whether dlopen of statically linked programs is supported.
14405 dlopen_self_static=$enable_dlopen_self_static
14407 # Compiler flag to prevent dynamic linking.
14408 link_static_flag=$lt_lt_prog_compiler_static_F77
14410 # Compiler flag to turn off builtin functions.
14411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14413 # Compiler flag to allow reflexive dlopens.
14414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14416 # Compiler flag to generate shared objects directly from archives.
14417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14419 # Compiler flag to generate thread-safe objects.
14420 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14422 # Library versioning type.
14423 version_type=$version_type
14425 # Format of library name prefix.
14426 libname_spec=$lt_libname_spec
14428 # List of archive names. First name is the real one, the rest are links.
14429 # The last name is the one that the linker finds with -lNAME.
14430 library_names_spec=$lt_library_names_spec
14432 # The coded name of the library, if different from the real name.
14433 soname_spec=$lt_soname_spec
14435 # Commands used to build and install an old-style archive.
14437 old_archive_cmds=$lt_old_archive_cmds_F77
14438 old_postinstall_cmds=$lt_old_postinstall_cmds
14439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14441 # Create an old-style archive from a shared archive.
14442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14444 # Create a temporary old-style archive to link instead of a shared archive.
14445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14447 # Commands used to build and install a shared archive.
14448 archive_cmds=$lt_archive_cmds_F77
14449 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14450 postinstall_cmds=$lt_postinstall_cmds
14451 postuninstall_cmds=$lt_postuninstall_cmds
14453 # Commands used to build a loadable module (assumed same as above if empty)
14454 module_cmds=$lt_module_cmds_F77
14455 module_expsym_cmds=$lt_module_expsym_cmds_F77
14457 # Commands to strip libraries.
14458 old_striplib=$lt_old_striplib
14459 striplib=$lt_striplib
14461 # Dependencies to place before the objects being linked to create a
14463 predep_objects=$lt_predep_objects_F77
14465 # Dependencies to place after the objects being linked to create a
14467 postdep_objects=$lt_postdep_objects_F77
14469 # Dependencies to place before the objects being linked to create a
14471 predeps=$lt_predeps_F77
14473 # Dependencies to place after the objects being linked to create a
14475 postdeps=$lt_postdeps_F77
14477 # The library search path used internally by the compiler when linking
14478 # a shared library.
14479 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14481 # Method to check whether dependent libraries are shared objects.
14482 deplibs_check_method=$lt_deplibs_check_method
14484 # Command to use when deplibs_check_method == file_magic.
14485 file_magic_cmd=$lt_file_magic_cmd
14487 # Flag that allows shared libraries with undefined symbols to be built.
14488 allow_undefined_flag=$lt_allow_undefined_flag_F77
14490 # Flag that forces no undefined symbols.
14491 no_undefined_flag=$lt_no_undefined_flag_F77
14493 # Commands used to finish a libtool library installation in a directory.
14494 finish_cmds=$lt_finish_cmds
14496 # Same as above, but a single script fragment to be evaled but not shown.
14497 finish_eval=$lt_finish_eval
14499 # Take the output of nm and produce a listing of raw symbols and C names.
14500 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14502 # Transform the output of nm in a proper C declaration
14503 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14505 # Transform the output of nm in a C name address pair
14506 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14508 # This is the shared library runtime path variable.
14509 runpath_var=$runpath_var
14511 # This is the shared library path variable.
14512 shlibpath_var=$shlibpath_var
14514 # Is shlibpath searched before the hard-coded library search path?
14515 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14517 # How to hardcode a shared library path into an executable.
14518 hardcode_action=$hardcode_action_F77
14520 # Whether we should hardcode library paths into libraries.
14521 hardcode_into_libs=$hardcode_into_libs
14523 # Flag to hardcode \$libdir into a binary during linking.
14524 # This must work even if \$libdir does not exist.
14525 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14527 # If ld is used when linking, flag to hardcode \$libdir into
14528 # a binary during linking. This must work even if \$libdir does
14530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14532 # Whether we need a single -rpath flag with a separated argument.
14533 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14535 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14536 # resulting binary.
14537 hardcode_direct=$hardcode_direct_F77
14539 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14540 # resulting binary.
14541 hardcode_minus_L=$hardcode_minus_L_F77
14543 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14544 # the resulting binary.
14545 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14547 # Set to yes if building a shared library automatically hardcodes DIR into the library
14548 # and all subsequent libraries and executables linked against it.
14549 hardcode_automatic=$hardcode_automatic_F77
14551 # Variables whose values should be saved in libtool wrapper scripts and
14552 # restored at relink time.
14553 variables_saved_for_relink="$variables_saved_for_relink"
14555 # Whether libtool must link a program against all its dependency libraries.
14556 link_all_deplibs=$link_all_deplibs_F77
14558 # Compile-time system search path for libraries
14559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14561 # Run-time system search path for libraries
14562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14564 # Fix the shell variable \$srcfile for the compiler.
14565 fix_srcfile_path="$fix_srcfile_path_F77"
14567 # Set to yes if exported symbols are required.
14568 always_export_symbols=$always_export_symbols_F77
14570 # The commands to list exported symbols.
14571 export_symbols_cmds=$lt_export_symbols_cmds_F77
14573 # The commands to extract the exported symbol list from a shared archive.
14574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14576 # Symbols that should not be listed in the preloaded symbols.
14577 exclude_expsyms=$lt_exclude_expsyms_F77
14579 # Symbols that must always be exported.
14580 include_expsyms=$lt_include_expsyms_F77
14582 # ### END LIBTOOL TAG CONFIG: $tagname
14588 # If there is no Makefile yet, we rely on a make rule to execute
14589 # `config.status --recheck' to rerun these tests and create the
14590 # libtool script then.
14591 test -f Makefile && make "$ltmain"
14596 ac_cpp='$CPP $CPPFLAGS'
14597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14609 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14613 # Source file extension for Java test sources.
14616 # Object file extension for compiled Java test sources.
14620 # Code to be used in simple compile tests
14621 lt_simple_compile_test_code="class foo {}\n"
14623 # Code to be used in simple link tests
14624 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14628 # If no C compiler was specified, use CC.
14631 # Allow CC to be a program name with arguments.
14635 # Allow CC to be a program name with arguments.
14641 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14642 archive_cmds_need_lc_GCJ=no
14645 lt_prog_compiler_no_builtin_flag_GCJ=
14647 if test "$GCC" = yes; then
14648 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14650 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14651 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 lt_cv_prog_compiler_rtti_exceptions=no
14656 ac_outfile=conftest.$ac_objext
14657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14658 lt_compiler_flag="-fno-rtti -fno-exceptions"
14659 # Insert the option either (1) after the last *FLAGS variable, or
14660 # (2) before a word containing "conftest.", or (3) at the end.
14661 # Note that $ac_compile itself does not contain backslashes and begins
14662 # with a dollar sign (not a hyphen), so the echo should work correctly.
14663 # The option is referenced via a variable to avoid confusing sed.
14664 lt_compile=`echo "$ac_compile" | $SED \
14665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14667 -e 's:$: $lt_compiler_flag:'`
14668 (eval echo "\"\$as_me:14668: $lt_compile\"" >&5)
14669 (eval "$lt_compile" 2>conftest.err)
14671 cat conftest.err >&5
14672 echo "$as_me:14672: \$? = $ac_status" >&5
14673 if (exit $ac_status) && test -s "$ac_outfile"; then
14674 # The compiler can only warn and ignore the option if not recognized
14675 # So say no if there are warnings
14676 if test ! -s conftest.err; then
14677 lt_cv_prog_compiler_rtti_exceptions=yes
14683 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14684 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14687 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14694 lt_prog_compiler_wl_GCJ=
14695 lt_prog_compiler_pic_GCJ=
14696 lt_prog_compiler_static_GCJ=
14698 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14699 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14701 if test "$GCC" = yes; then
14702 lt_prog_compiler_wl_GCJ='-Wl,'
14703 lt_prog_compiler_static_GCJ='-static'
14707 # All AIX code is PIC.
14708 if test "$host_cpu" = ia64; then
14709 # AIX 5 now supports IA64 processor
14710 lt_prog_compiler_static_GCJ='-Bstatic'
14715 # FIXME: we need at least 68020 code to build shared libraries, but
14716 # adding the `-m68020' flag to GCC prevents building anything better,
14718 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14721 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14722 # PIC is the default for these OSes.
14725 mingw* | pw32* | os2*)
14726 # This hack is so that the source file can tell whether it is being
14727 # built for inclusion in a dll (and should export symbols for example).
14728 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14731 darwin* | rhapsody*)
14732 # PIC is the default on this platform
14733 # Common symbols not allowed in MH_DYLIB files
14734 lt_prog_compiler_pic_GCJ='-fno-common'
14738 # Just because we use GCC doesn't mean we suddenly get shared libraries
14739 # on systems that don't support them.
14740 lt_prog_compiler_can_build_shared_GCJ=no
14745 if test -d /usr/nec; then
14746 lt_prog_compiler_pic_GCJ=-Kconform_pic
14751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14752 # not for PA HP-UX.
14753 case "$host_cpu" in
14758 lt_prog_compiler_pic_GCJ='-fPIC'
14764 lt_prog_compiler_pic_GCJ='-fPIC'
14768 # PORTME Check for flag to pass linker flags through the system compiler.
14771 lt_prog_compiler_wl_GCJ='-Wl,'
14772 if test "$host_cpu" = ia64; then
14773 # AIX 5 now supports IA64 processor
14774 lt_prog_compiler_static_GCJ='-Bstatic'
14776 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14780 mingw* | pw32* | os2*)
14781 # This hack is so that the source file can tell whether it is being
14782 # built for inclusion in a dll (and should export symbols for example).
14783 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14786 hpux9* | hpux10* | hpux11*)
14787 lt_prog_compiler_wl_GCJ='-Wl,'
14788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14789 # not for PA HP-UX.
14790 case "$host_cpu" in
14795 lt_prog_compiler_pic_GCJ='+Z'
14798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14799 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14802 irix5* | irix6* | nonstopux*)
14803 lt_prog_compiler_wl_GCJ='-Wl,'
14804 # PIC (with -KPIC) is the default.
14805 lt_prog_compiler_static_GCJ='-non_shared'
14809 lt_prog_compiler_pic_GCJ='-KPIC'
14810 lt_prog_compiler_static_GCJ='-Bstatic'
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 lt_prog_compiler_pic_GCJ='-KPIC'
14818 lt_prog_compiler_static_GCJ='-static'
14821 lt_prog_compiler_wl_GCJ='-Wl,'
14822 # All Alpha code is PIC.
14823 lt_prog_compiler_static_GCJ='-non_shared'
14828 osf3* | osf4* | osf5*)
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 # All OSF/1 code is PIC.
14831 lt_prog_compiler_static_GCJ='-non_shared'
14835 lt_prog_compiler_pic_GCJ='-Kpic'
14836 lt_prog_compiler_static_GCJ='-dn'
14840 lt_prog_compiler_wl_GCJ='-Wl,'
14841 lt_prog_compiler_pic_GCJ='-KPIC'
14842 lt_prog_compiler_static_GCJ='-Bstatic'
14846 lt_prog_compiler_wl_GCJ='-Qoption ld '
14847 lt_prog_compiler_pic_GCJ='-PIC'
14848 lt_prog_compiler_static_GCJ='-Bstatic'
14851 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14852 lt_prog_compiler_wl_GCJ='-Wl,'
14853 lt_prog_compiler_pic_GCJ='-KPIC'
14854 lt_prog_compiler_static_GCJ='-Bstatic'
14858 if test -d /usr/nec ;then
14859 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14860 lt_prog_compiler_static_GCJ='-Bstatic'
14865 lt_prog_compiler_pic_GCJ='-pic'
14866 lt_prog_compiler_static_GCJ='-Bstatic'
14870 lt_prog_compiler_can_build_shared_GCJ=no
14875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14876 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14879 # Check to make sure the PIC flag actually works.
14881 if test -n "$lt_prog_compiler_pic_GCJ"; then
14882 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14884 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 lt_prog_compiler_pic_works_GCJ=no
14888 ac_outfile=conftest.$ac_objext
14889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14890 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14891 # Insert the option either (1) after the last *FLAGS variable, or
14892 # (2) before a word containing "conftest.", or (3) at the end.
14893 # Note that $ac_compile itself does not contain backslashes and begins
14894 # with a dollar sign (not a hyphen), so the echo should work correctly.
14895 # The option is referenced via a variable to avoid confusing sed.
14896 lt_compile=`echo "$ac_compile" | $SED \
14897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899 -e 's:$: $lt_compiler_flag:'`
14900 (eval echo "\"\$as_me:14900: $lt_compile\"" >&5)
14901 (eval "$lt_compile" 2>conftest.err)
14903 cat conftest.err >&5
14904 echo "$as_me:14904: \$? = $ac_status" >&5
14905 if (exit $ac_status) && test -s "$ac_outfile"; then
14906 # The compiler can only warn and ignore the option if not recognized
14907 # So say no if there are warnings
14908 if test ! -s conftest.err; then
14909 lt_prog_compiler_pic_works_GCJ=yes
14915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14916 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14918 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14919 case $lt_prog_compiler_pic_GCJ in
14921 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14924 lt_prog_compiler_pic_GCJ=
14925 lt_prog_compiler_can_build_shared_GCJ=no
14930 # For platforms which do not support PIC, -DPIC is meaningless:
14932 lt_prog_compiler_pic_GCJ=
14935 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14939 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14940 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14941 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 lt_cv_prog_compiler_c_o_GCJ=no
14945 $rm -r conftest 2>/dev/null
14949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14951 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14952 # that will create temporary files in the current directory regardless of
14953 # the output directory. Thus, making CWD read-only will cause this test
14954 # to fail, enabling locking or at least warning the user not to do parallel
14958 lt_compiler_flag="-o out/conftest2.$ac_objext"
14959 # Insert the option either (1) after the last *FLAGS variable, or
14960 # (2) before a word containing "conftest.", or (3) at the end.
14961 # Note that $ac_compile itself does not contain backslashes and begins
14962 # with a dollar sign (not a hyphen), so the echo should work correctly.
14963 lt_compile=`echo "$ac_compile" | $SED \
14964 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14966 -e 's:$: $lt_compiler_flag:'`
14967 (eval echo "\"\$as_me:14967: $lt_compile\"" >&5)
14968 (eval "$lt_compile" 2>out/conftest.err)
14970 cat out/conftest.err >&5
14971 echo "$as_me:14971: \$? = $ac_status" >&5
14972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14974 # The compiler can only warn and ignore the option if not recognized
14975 # So say no if there are warnings
14976 if test ! -s out/conftest.err; then
14977 lt_cv_prog_compiler_c_o_GCJ=yes
14981 $rm conftest* out/*
14988 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14989 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14992 hard_links="nottested"
14993 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14994 # do not overwrite the value of need_locks provided by the user
14995 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14996 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15001 ln conftest.a conftest.b 2>&5 || hard_links=no
15002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003 echo "$as_me:$LINENO: result: $hard_links" >&5
15004 echo "${ECHO_T}$hard_links" >&6
15005 if test "$hard_links" = no; then
15006 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15007 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15014 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15015 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15018 allow_undefined_flag_GCJ=
15019 enable_shared_with_static_runtimes_GCJ=no
15021 archive_expsym_cmds_GCJ=
15022 old_archive_From_new_cmds_GCJ=
15023 old_archive_from_expsyms_cmds_GCJ=
15024 export_dynamic_flag_spec_GCJ=
15025 whole_archive_flag_spec_GCJ=
15026 thread_safe_flag_spec_GCJ=
15027 hardcode_libdir_flag_spec_GCJ=
15028 hardcode_libdir_flag_spec_ld_GCJ=
15029 hardcode_libdir_separator_GCJ=
15030 hardcode_direct_GCJ=no
15031 hardcode_minus_L_GCJ=no
15032 hardcode_shlibpath_var_GCJ=unsupported
15033 link_all_deplibs_GCJ=unknown
15034 hardcode_automatic_GCJ=no
15036 module_expsym_cmds_GCJ=
15037 always_export_symbols_GCJ=no
15038 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15039 # include_expsyms should be a list of space-separated symbols to be *always*
15040 # included in the symbol list
15041 include_expsyms_GCJ=
15042 # exclude_expsyms can be an extended regexp of symbols to exclude
15043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15045 # as well as any symbol that contains `d'.
15046 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15048 # platforms (ab)use it in PIC code, but their linkers get confused if
15049 # the symbol is explicitly referenced. Since portable code cannot
15050 # rely on this symbol name, it's probably fine to never include it in
15051 # preloaded symbol tables.
15052 extract_expsyms_cmds=
15055 cygwin* | mingw* | pw32*)
15056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15057 # When not using gcc, we currently assume that we are using
15058 # Microsoft Visual C++.
15059 if test "$GCC" != yes; then
15069 if test "$with_gnu_ld" = yes; then
15070 # If archive_cmds runs LD, not CC, wlarc should be empty
15073 # See if GNU ld supports shared libraries.
15075 aix3* | aix4* | aix5*)
15076 # On AIX/PPC, the GNU linker is very broken
15077 if test "$host_cpu" != ia64; then
15081 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15082 *** to be unable to reliably create shared libraries on AIX.
15083 *** Therefore, libtool is disabling shared libraries support. If you
15084 *** really care for shared libraries, you may want to modify your PATH
15085 *** so that a non-GNU linker is found, and then restart.
15092 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)'
15093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15094 hardcode_minus_L_GCJ=yes
15096 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15097 # that the semantics of dynamic libraries on AmigaOS, at least up
15098 # to version 4, is to share data among multiple programs linked
15099 # with the same dynamic library. Since this doesn't match the
15100 # behavior of shared libraries on other platforms, we can't use
15106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107 allow_undefined_flag_GCJ=unsupported
15108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15109 # support --undefined. This deserves some investigation. FIXME
15110 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15116 cygwin* | mingw* | pw32*)
15117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15118 # as there is no search path for DLLs.
15119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15120 allow_undefined_flag_GCJ=unsupported
15121 always_export_symbols_GCJ=no
15122 enable_shared_with_static_runtimes_GCJ=yes
15123 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15125 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15126 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15127 # If the export-symbols file already is a .def file (1st line
15128 # is EXPORTS), use it as is; otherwise, prepend...
15129 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15130 cp $export_symbols $output_objdir/$soname.def;
15132 echo EXPORTS > $output_objdir/$soname.def;
15133 cat $export_symbols >> $output_objdir/$soname.def;
15135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15143 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15152 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15157 *** create shared libraries on Solaris systems. Therefore, libtool
15158 *** is disabling shared libraries support. We urge you to upgrade GNU
15159 *** binutils to release 2.9.1 or newer. Another option is to modify
15160 *** your PATH or compiler configuration so that the native linker is
15161 *** used, and then restart.
15164 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_direct_GCJ=yes
15176 hardcode_shlibpath_var_GCJ=no
15180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15189 if test "$ld_shlibs_GCJ" = yes; then
15190 runpath_var=LD_RUN_PATH
15191 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15192 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15193 # ancient GNU ld didn't support --whole-archive et. al.
15194 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15195 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15197 whole_archive_flag_spec_GCJ=
15201 # PORTME fill in a description of your system's linker (not GNU ld)
15204 allow_undefined_flag_GCJ=unsupported
15205 always_export_symbols_GCJ=yes
15206 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'
15207 # Note: this linker hardcodes the directories in LIBPATH if there
15208 # are no directories specified by -L.
15209 hardcode_minus_L_GCJ=yes
15210 if test "$GCC" = yes && test -z "$link_static_flag"; then
15211 # Neither direct hardcoding nor static linking is supported with a
15213 hardcode_direct_GCJ=unsupported
15218 if test "$host_cpu" = ia64; then
15219 # On IA64, the linker does run time linking by default, so we don't
15220 # have to do anything special.
15221 aix_use_runtimelinking=no
15222 exp_sym_flag='-Bexport'
15225 # If we're using GNU nm, then we don't want the "-C" option.
15226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15228 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'
15230 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'
15232 aix_use_runtimelinking=no
15234 # Test if we are trying to use run time linking or normal
15235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236 # need to do runtime linking.
15237 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15238 for ld_flag in $LDFLAGS; do
15239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240 aix_use_runtimelinking=yes
15246 exp_sym_flag='-bexport'
15247 no_entry_flag='-bnoentry'
15250 # When large executables or shared objects are built, AIX ld can
15251 # have problems creating the table of contents. If linking a library
15252 # or program results in "error TOC overflow" add -mminimal-toc to
15253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15256 archive_cmds_GCJ=''
15257 hardcode_direct_GCJ=yes
15258 hardcode_libdir_separator_GCJ=':'
15259 link_all_deplibs_GCJ=yes
15261 if test "$GCC" = yes; then
15262 case $host_os in aix4.012|aix4.012.*)
15263 # We only want to do this on AIX 4.2 and lower, the check
15264 # below for broken collect2 doesn't work under 4.3+
15265 collect2name=`${CC} -print-prog-name=collect2`
15266 if test -f "$collect2name" && \
15267 strings "$collect2name" | grep resolve_lib_name >/dev/null
15269 # We have reworked collect2
15270 hardcode_direct_GCJ=yes
15272 # We have old collect2
15273 hardcode_direct_GCJ=unsupported
15274 # It fails to find uninstalled libraries when the uninstalled
15275 # path is not listed in the libpath. Setting hardcode_minus_L
15276 # to unsupported forces relinking
15277 hardcode_minus_L_GCJ=yes
15278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15279 hardcode_libdir_separator_GCJ=
15282 shared_flag='-shared'
15285 if test "$host_cpu" = ia64; then
15286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287 # chokes on -Wl,-G. The following line is correct:
15290 if test "$aix_use_runtimelinking" = yes; then
15291 shared_flag='${wl}-G'
15293 shared_flag='${wl}-bM:SRE'
15298 # It seems that -bexpall does not export symbols beginning with
15299 # underscore (_), so it is better to generate a list of symbols to export.
15300 always_export_symbols_GCJ=yes
15301 if test "$aix_use_runtimelinking" = yes; then
15302 # Warning - without using the other runtime loading flags (-brtl),
15303 # -berok will link without error, but may produce a broken library.
15304 allow_undefined_flag_GCJ='-berok'
15305 # Determine the default libpath from the value encoded in an empty executable.
15306 cat >conftest.$ac_ext <<_ACEOF
15307 #line $LINENO "configure"
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15337 # Check for a 64-bit object if we didn't find anything.
15338 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15348 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15349 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"
15351 if test "$host_cpu" = ia64; then
15352 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15353 allow_undefined_flag_GCJ="-z nodefs"
15354 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"
15356 # Determine the default libpath from the value encoded in an empty executable.
15357 cat >conftest.$ac_ext <<_ACEOF
15358 #line $LINENO "configure"
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15388 # Check for a 64-bit object if we didn't find anything.
15389 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; }
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15399 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15400 # Warning - without using the other run time loading flags,
15401 # -berok will link without error, but may produce a broken library.
15402 no_undefined_flag_GCJ=' ${wl}-bernotok'
15403 allow_undefined_flag_GCJ=' ${wl}-berok'
15404 # -bexpall does not export symbols beginning with underscore (_)
15405 always_export_symbols_GCJ=yes
15406 # Exported symbols can be pulled into shared objects from archives
15407 whole_archive_flag_spec_GCJ=' '
15408 archive_cmds_need_lc_GCJ=yes
15409 # This is similar to how AIX traditionally builds it's shared libraries.
15410 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'
15416 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)'
15417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15418 hardcode_minus_L_GCJ=yes
15419 # see comment about different semantics on the GNU ld section
15424 export_dynamic_flag_spec_GCJ=-rdynamic
15427 cygwin* | mingw* | pw32*)
15428 # When not using gcc, we currently assume that we are using
15429 # Microsoft Visual C++.
15430 # hardcode_libdir_flag_spec is actually meaningless, as there is
15431 # no search path for DLLs.
15432 hardcode_libdir_flag_spec_GCJ=' '
15433 allow_undefined_flag_GCJ=unsupported
15434 # Tell ltmain to make .lib files, not .a files.
15436 # Tell ltmain to make .dll files, not .so files.
15438 # FIXME: Setting linknames here is a bad hack.
15439 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15440 # The linker will automatically build a .lib file if we build a DLL.
15441 old_archive_From_new_cmds_GCJ='true'
15442 # FIXME: Should let the user specify the lib program.
15443 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15444 fix_srcfile_path='`cygpath -w "$srcfile"`'
15445 enable_shared_with_static_runtimes_GCJ=yes
15448 darwin* | rhapsody*)
15449 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15450 archive_cmds_need_lc_GCJ=no
15452 rhapsody* | darwin1.[012])
15453 allow_undefined_flag_GCJ='-undefined suppress'
15456 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15459 # FIXME: Relying on posixy $() will cause problems for
15460 # cross-compilation, but unfortunately the echo tests do not
15461 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15462 # `"' quotes if we put them in here... so don't!
15463 lt_int_apple_cc_single_mod=no
15464 output_verbose_link_cmd='echo'
15465 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15466 lt_int_apple_cc_single_mod=yes
15468 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15469 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15471 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15473 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15474 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15475 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15476 archive_expsym_cmds_GCJ='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}'
15478 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15480 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15481 hardcode_direct_GCJ=no
15482 hardcode_automatic_GCJ=yes
15483 hardcode_shlibpath_var_GCJ=unsupported
15484 whole_archive_flag_spec_GCJ='-all_load $convenience'
15485 link_all_deplibs_GCJ=yes
15490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15492 hardcode_shlibpath_var_GCJ=no
15499 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15500 # support. Future versions do this automatically, but an explicit c++rt0.o
15501 # does not break anything, and helps significantly (at the cost of a little
15504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15505 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506 hardcode_direct_GCJ=yes
15507 hardcode_shlibpath_var_GCJ=no
15510 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15512 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_direct_GCJ=yes
15514 hardcode_minus_L_GCJ=yes
15515 hardcode_shlibpath_var_GCJ=no
15518 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15520 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15521 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15522 hardcode_direct_GCJ=yes
15523 hardcode_shlibpath_var_GCJ=no
15527 if test "$GCC" = yes; then
15528 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'
15530 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'
15532 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15533 hardcode_libdir_separator_GCJ=:
15534 hardcode_direct_GCJ=yes
15536 # hardcode_minus_L: Not really in the search PATH,
15537 # but as the default location of the library.
15538 hardcode_minus_L_GCJ=yes
15539 export_dynamic_flag_spec_GCJ='${wl}-E'
15543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544 case "$host_cpu" in
15546 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553 case "$host_cpu" in
15555 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15558 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562 if test "$with_gnu_ld" = no; then
15563 case "$host_cpu" in
15565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15567 hardcode_libdir_separator_GCJ=:
15568 hardcode_direct_GCJ=no
15569 hardcode_shlibpath_var_GCJ=no
15572 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15573 hardcode_direct_GCJ=no
15574 hardcode_shlibpath_var_GCJ=no
15576 # hardcode_minus_L: Not really in the search PATH,
15577 # but as the default location of the library.
15578 hardcode_minus_L_GCJ=yes
15581 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15582 hardcode_libdir_separator_GCJ=:
15583 hardcode_direct_GCJ=yes
15584 export_dynamic_flag_spec_GCJ='${wl}-E'
15586 # hardcode_minus_L: Not really in the search PATH,
15587 # but as the default location of the library.
15588 hardcode_minus_L_GCJ=yes
15594 irix5* | irix6* | nonstopux*)
15595 if test "$GCC" = yes; then
15596 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'
15598 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'
15599 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15602 hardcode_libdir_separator_GCJ=:
15603 link_all_deplibs_GCJ=yes
15607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15608 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15610 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15612 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15613 hardcode_direct_GCJ=yes
15614 hardcode_shlibpath_var_GCJ=no
15618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619 hardcode_direct_GCJ=yes
15620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15621 hardcode_libdir_separator_GCJ=:
15622 hardcode_shlibpath_var_GCJ=no
15626 hardcode_direct_GCJ=yes
15627 hardcode_shlibpath_var_GCJ=no
15628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15629 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15630 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15631 export_dynamic_flag_spec_GCJ='${wl}-E'
15634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15636 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15639 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15648 hardcode_minus_L_GCJ=yes
15649 allow_undefined_flag_GCJ=unsupported
15650 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'
15651 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15655 if test "$GCC" = yes; then
15656 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15657 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'
15659 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15660 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'
15662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663 hardcode_libdir_separator_GCJ=:
15666 osf4* | osf5*) # as osf3* with the addition of -msym flag
15667 if test "$GCC" = yes; then
15668 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15669 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'
15670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15672 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15673 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'
15674 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~
15675 $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'
15677 # Both c and cxx compiler support -rpath directly
15678 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15680 hardcode_libdir_separator_GCJ=:
15684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_shlibpath_var_GCJ=no
15686 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15687 runpath_var=LD_RUN_PATH
15688 hardcode_runpath_var=yes
15692 no_undefined_flag_GCJ=' -z text'
15693 if test "$GCC" = yes; then
15694 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15696 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15698 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15699 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15702 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15703 hardcode_shlibpath_var_GCJ=no
15705 solaris2.[0-5] | solaris2.[0-5].*) ;;
15706 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15707 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15709 link_all_deplibs_GCJ=yes
15713 if test "x$host_vendor" = xsequent; then
15714 # Use $CC to link under sequent, because it throws in some extra .o
15715 # files that make .init and .fini sections work.
15716 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15718 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15721 hardcode_direct_GCJ=yes
15722 hardcode_minus_L_GCJ=yes
15723 hardcode_shlibpath_var_GCJ=no
15727 case $host_vendor in
15729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15730 hardcode_direct_GCJ=yes # is this really true???
15733 ## LD is ld it makes a PLAMLIB
15734 ## CC just makes a GrossModule.
15735 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15736 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15737 hardcode_direct_GCJ=no
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15744 runpath_var='LD_RUN_PATH'
15745 hardcode_shlibpath_var_GCJ=no
15749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_shlibpath_var_GCJ=no
15751 export_dynamic_flag_spec_GCJ='-Bexport'
15755 if test -d /usr/nec; then
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_shlibpath_var_GCJ=no
15758 runpath_var=LD_RUN_PATH
15759 hardcode_runpath_var=yes
15765 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15766 hardcode_direct_GCJ=yes
15767 hardcode_minus_L_GCJ=no
15768 hardcode_shlibpath_var_GCJ=no
15769 hardcode_runpath_var=yes
15770 runpath_var=LD_RUN_PATH
15773 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15774 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15775 if test "$GCC" = yes; then
15776 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15780 runpath_var='LD_RUN_PATH'
15781 hardcode_shlibpath_var_GCJ=no
15785 no_undefined_flag_GCJ=' -z text'
15786 # $CC -shared without GNU ld will not create a library from C++
15787 # object files and a static libstdc++, better avoid it by now
15788 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15791 hardcode_libdir_flag_spec_GCJ=
15792 hardcode_shlibpath_var_GCJ=no
15793 runpath_var='LD_RUN_PATH'
15797 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799 hardcode_shlibpath_var_GCJ=no
15808 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15809 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15810 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15813 if test "$GCC" = yes; then
15814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15818 # Do we need to explicitly link libc?
15820 case "x$archive_cmds_need_lc_GCJ" in
15822 # Assume -lc should be added
15823 archive_cmds_need_lc_GCJ=yes
15825 if test "$enable_shared" = yes && test "$GCC" = yes; then
15826 case $archive_cmds_GCJ in
15828 # FIXME: we may have to deal with multi-command sequences.
15831 # Test whether the compiler implicitly links with -lc since on some
15832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15833 # to ld, don't add -lc before -lgcc.
15834 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15835 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } 2>conftest.err; then
15846 libobjs=conftest.$ac_objext
15848 wl=$lt_prog_compiler_wl_GCJ
15854 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15855 allow_undefined_flag_GCJ=
15856 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15857 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }
15862 archive_cmds_need_lc_GCJ=no
15864 archive_cmds_need_lc_GCJ=yes
15866 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15868 cat conftest.err 1>&5
15871 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15872 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15879 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15880 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15881 hardcode_action_GCJ=
15882 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15883 test -n "$runpath_var GCJ" || \
15884 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15886 # We can hardcode non-existant directories.
15887 if test "$hardcode_direct_GCJ" != no &&
15888 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15889 # have to relink, otherwise we might link with an installed library
15890 # when we should be linking with a yet-to-be-installed one
15891 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15892 test "$hardcode_minus_L_GCJ" != no; then
15893 # Linking always hardcodes the temporary library directory.
15894 hardcode_action_GCJ=relink
15896 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15897 hardcode_action_GCJ=immediate
15900 # We cannot hardcode anything, or else we can only hardcode existing
15902 hardcode_action_GCJ=unsupported
15904 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15905 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15907 if test "$hardcode_action_GCJ" = relink; then
15908 # Fast installation is not supported
15909 enable_fast_install=no
15910 elif test "$shlibpath_overrides_runpath" = yes ||
15911 test "$enable_shared" = no; then
15912 # Fast installation is not necessary
15913 enable_fast_install=needless
15918 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15919 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15920 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15921 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15922 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15923 echo "$as_me:$LINENO: result: yes" >&5
15924 echo "${ECHO_T}yes" >&6
15926 # FIXME - insert some real tests, host_os isn't really good enough
15929 if test -n "$STRIP" ; then
15930 striplib="$STRIP -x"
15931 echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15934 echo "$as_me:$LINENO: result: no" >&5
15935 echo "${ECHO_T}no" >&6
15939 echo "$as_me:$LINENO: result: no" >&5
15940 echo "${ECHO_T}no" >&6
15945 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15947 library_names_spec=
15948 libname_spec='lib$name'
15952 postuninstall_cmds=
15956 shlibpath_overrides_runpath=unknown
15958 dynamic_linker="$host_os ld.so"
15959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15960 if test "$GCC" = yes; then
15961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15962 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15963 # if the path contains ";" then we assume it to be the separator
15964 # otherwise default to the standard path separator (i.e. ":") - it is
15965 # assumed that no part of a normal pathname contains ";" but that should
15966 # okay in the real world where ";" in dirpaths is itself problematic.
15967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15974 need_lib_prefix=unknown
15975 hardcode_into_libs=no
15977 # when you set need_version to no, make sure it does not cause -set_version
15978 # flags to be left without arguments
15979 need_version=unknown
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15985 shlibpath_var=LIBPATH
15987 # AIX 3 has no versioning support, so we append a major version to the name.
15988 soname_spec='${libname}${release}${shared_ext}$major'
15995 hardcode_into_libs=yes
15996 if test "$host_cpu" = ia64; then
15997 # AIX 5 supports IA64
15998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15999 shlibpath_var=LD_LIBRARY_PATH
16001 # With GCC up to 2.95.x, collect2 would create an import file
16002 # for dependence libraries. The import file would start with
16003 # the line `#! .'. This would cause the generated library to
16004 # depend on `.', always an invalid library. This was fixed in
16005 # development snapshots of GCC prior to 3.0.
16007 aix4 | aix4.[01] | aix4.[01].*)
16008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16010 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16013 can_build_shared=no
16017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16018 # soname into executable. Probably we can add versioning support to
16019 # collect2, so additional links can be useful in future.
16020 if test "$aix_use_runtimelinking" = yes; then
16021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16022 # instead of lib<name>.a to let people know that these are not
16023 # typical AIX shared libraries.
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026 # We preserve .a as extension for shared libraries through AIX4.2
16027 # and later when we are not doing run time linking.
16028 library_names_spec='${libname}${release}.a $libname.a'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16031 shlibpath_var=LIBPATH
16036 library_names_spec='$libname.ixlibrary $libname.a'
16037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16038 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'
16042 library_names_spec='${libname}${shared_ext}'
16043 dynamic_linker="$host_os ld.so"
16044 shlibpath_var=LIBRARY_PATH
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16053 shlibpath_var=LD_LIBRARY_PATH
16054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16056 # the default ld.so.conf also contains /usr/contrib/lib and
16057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16058 # libtool to hard-code these into programs
16061 cygwin* | mingw* | pw32*)
16062 version_type=windows
16067 case $GCC,$host_os in
16068 yes,cygwin* | yes,mingw* | yes,pw32*)
16069 library_names_spec='$libname.dll.a'
16070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16071 postinstall_cmds='base_file=`basename \${file}`~
16072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16073 dldir=$destdir/`dirname \$dlpath`~
16074 test -d \$dldir || mkdir -p \$dldir~
16075 $install_prog $dir/$dlname \$dldir/$dlname'
16076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077 dlpath=$dir/\$dldll~
16079 shlibpath_overrides_runpath=yes
16083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16088 # MinGW DLLs use traditional 'lib' prefix
16089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092 # It is most probably a Windows format PATH printed by
16093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16094 # path with ; separators, and with drive letters. We can handle the
16095 # drive letters (cygwin fileutils understands them), so leave them,
16096 # especially as we might pass files found there to a mingw objdump,
16097 # which wouldn't understand a cygwinified path. Ahh.
16098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16104 # pw32 DLLs use 'pw' prefix rather than 'lib'
16105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16114 dynamic_linker='Win32 ld.exe'
16115 # FIXME: first we should search . and the directory the executable is in
16119 darwin* | rhapsody*)
16120 dynamic_linker="$host_os dyld"
16121 version_type=darwin
16124 # FIXME: Relying on posixy $() will cause problems for
16125 # cross-compilation, but unfortunately the echo tests do not
16126 # yet detect zsh echo's removal of \ escapes.
16127 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16128 soname_spec='${libname}${release}${major}$shared_ext'
16129 shlibpath_overrides_runpath=yes
16130 shlibpath_var=DYLD_LIBRARY_PATH
16131 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16132 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16133 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16134 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"`
16136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 shlibpath_var=LD_LIBRARY_PATH
16153 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16154 version_type=freebsd-$objformat
16155 case $version_type in
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16166 shlibpath_var=LD_LIBRARY_PATH
16169 shlibpath_overrides_runpath=yes
16171 freebsd3.01* | freebsdelf3.01*)
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16176 shlibpath_overrides_runpath=no
16177 hardcode_into_libs=yes
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 hardcode_into_libs=yes
16192 hpux9* | hpux10* | hpux11*)
16193 # Give a soname corresponding to the major version so that dld.sl refuses to
16194 # link against other versions.
16198 case "$host_cpu" in
16201 hardcode_into_libs=yes
16202 dynamic_linker="$host_os dld.so"
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 if test "X$HPUX_IA64_MODE" = X32; then
16208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216 hardcode_into_libs=yes
16217 dynamic_linker="$host_os dld.sl"
16218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16227 dynamic_linker="$host_os dld.sl"
16228 shlibpath_var=SHLIB_PATH
16229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16235 postinstall_cmds='chmod 555 $lib'
16238 irix5* | irix6* | nonstopux*)
16240 nonstopux*) version_type=nonstopux ;;
16242 if test "$lt_cv_prog_gnu_ld" = yes; then
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16253 irix5* | nonstopux*)
16254 libsuff= shlibsuff=
16257 case $LD in # libtool.m4 will add one of these switches to LD
16258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16259 libsuff= shlibsuff= libmagic=32-bit;;
16260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16261 libsuff=32 shlibsuff=N32 libmagic=N32;;
16262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16264 *) libsuff= shlibsuff= libmagic=never-match;;
16268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16269 shlibpath_overrides_runpath=no
16270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16272 hardcode_into_libs=yes
16275 # No shared lib support for Linux oldld, aout, or coff.
16276 linux*oldld* | linux*aout* | linux*coff*)
16280 # This must be Linux ELF.
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=no
16290 # This implies no fast_install, which is unacceptable.
16291 # Some rework will be needed to allow for fast_install
16292 # before this can be enabled.
16293 hardcode_into_libs=yes
16295 # We used to test for /lib/ld.so.1 and disable shared libraries on
16296 # powerpc, because MkLinux only supported shared libraries with the
16297 # GNU dynamic linker. Since this was broken with cross compilers,
16298 # most powerpc-linux boxes support dynamic linking these days and
16299 # people can always --disable-shared, the test was removed, and we
16300 # assume the GNU/Linux dynamic linker is in use.
16301 dynamic_linker='GNU/Linux ld.so'
16308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16311 dynamic_linker='NetBSD (a.out) ld.so'
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 dynamic_linker='NetBSD ld.elf_so'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=yes
16319 hardcode_into_libs=yes
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=yes
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=yes
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16348 openbsd2.[89] | openbsd2.[89].*)
16349 shlibpath_overrides_runpath=no
16352 shlibpath_overrides_runpath=yes
16356 shlibpath_overrides_runpath=yes
16361 libname_spec='$name'
16364 library_names_spec='$libname${shared_ext} $libname.a'
16365 dynamic_linker='OS/2 ld.exe'
16366 shlibpath_var=LIBPATH
16369 osf3* | osf4* | osf5*)
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16382 soname_spec='${libname}${release}${shared_ext}$major'
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=yes
16395 hardcode_into_libs=yes
16396 # ldd complains unless libraries are executable
16397 postinstall_cmds='chmod +x $lib'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 if test "$with_gnu_ld" = yes; then
16412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 case $host_vendor in
16419 shlibpath_overrides_runpath=no
16421 export_dynamic_flag_spec='${wl}-Blargedynsym'
16422 runpath_var=LD_RUN_PATH
16430 shlibpath_overrides_runpath=no
16431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16437 if test -d /usr/nec ;then
16439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16440 soname_spec='$libname${shared_ext}.$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16456 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16457 echo "${ECHO_T}$dynamic_linker" >&6
16458 test "$dynamic_linker" = no && can_build_shared=no
16460 if test "x$enable_dlopen" != xyes; then
16461 enable_dlopen=unknown
16462 enable_dlopen_self=unknown
16463 enable_dlopen_self_static=unknown
16470 lt_cv_dlopen="load_add_on"
16472 lt_cv_dlopen_self=yes
16476 lt_cv_dlopen="LoadLibrary"
16481 lt_cv_dlopen="dlopen"
16486 # if libdl is installed we need to link against it
16487 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16488 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 ac_check_lib_save_LIBS=$LIBS
16494 cat >conftest.$ac_ext <<_ACEOF
16495 #line $LINENO "configure"
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16502 /* Override any gcc2 internal prototype to avoid an error. */
16506 /* We use char because int might match the return type of a gcc2
16507 builtin and then its argument prototype would still apply. */
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519 (eval $ac_link) 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -s conftest$ac_exeext'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 ac_cv_lib_dl_dlopen=yes
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_lib_dl_dlopen=no
16536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16539 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16541 if test $ac_cv_lib_dl_dlopen = yes; then
16542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16545 lt_cv_dlopen="dyld"
16547 lt_cv_dlopen_self=yes
16554 echo "$as_me:$LINENO: checking for shl_load" >&5
16555 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16556 if test "${ac_cv_func_shl_load+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 /* System header to define __stub macros and hopefully few prototypes,
16567 which can conflict with char shl_load (); below.
16568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569 <limits.h> exists even on freestanding compilers. */
16571 # include <limits.h>
16573 # include <assert.h>
16575 /* Override any gcc2 internal prototype to avoid an error. */
16580 /* We use char because int might match the return type of a gcc2
16581 builtin and then its argument prototype would still apply. */
16583 /* The GNU C library defines this for functions which it implements
16584 to always fail with ENOSYS. Some functions are actually named
16585 something starting with __ and the normal name is an alias. */
16586 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16589 char (*f) () = shl_load;
16598 return f != shl_load;
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605 (eval $ac_link) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -s conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_func_shl_load=yes
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_cv_func_shl_load=no
16622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16624 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16625 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16626 if test $ac_cv_func_shl_load = yes; then
16627 lt_cv_dlopen="shl_load"
16629 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16630 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16631 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 ac_check_lib_save_LIBS=$LIBS
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16644 /* Override any gcc2 internal prototype to avoid an error. */
16648 /* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661 (eval $ac_link) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 ac_cv_lib_dld_shl_load=yes
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_lib_dld_shl_load=no
16678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16681 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16682 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16683 if test $ac_cv_lib_dld_shl_load = yes; then
16684 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16686 echo "$as_me:$LINENO: checking for dlopen" >&5
16687 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16688 if test "${ac_cv_func_dlopen+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 cat >conftest.$ac_ext <<_ACEOF
16692 #line $LINENO "configure"
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 /* System header to define __stub macros and hopefully few prototypes,
16699 which can conflict with char dlopen (); below.
16700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16701 <limits.h> exists even on freestanding compilers. */
16703 # include <limits.h>
16705 # include <assert.h>
16707 /* Override any gcc2 internal prototype to avoid an error. */
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16721 char (*f) () = dlopen;
16730 return f != dlopen;
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_func_dlopen=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_func_dlopen=no
16754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16758 if test $ac_cv_func_dlopen = yes; then
16759 lt_cv_dlopen="dlopen"
16761 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 ac_check_lib_save_LIBS=$LIBS
16768 cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16776 /* Override any gcc2 internal prototype to avoid an error. */
16780 /* We use char because int might match the return type of a gcc2
16781 builtin and then its argument prototype would still apply. */
16791 rm -f conftest.$ac_objext conftest$ac_exeext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16793 (eval $ac_link) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -s conftest$ac_exeext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_lib_dl_dlopen=yes
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_cv_lib_dl_dlopen=no
16810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811 LIBS=$ac_check_lib_save_LIBS
16813 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16814 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16815 if test $ac_cv_lib_dl_dlopen = yes; then
16816 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16818 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16819 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16820 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 ac_check_lib_save_LIBS=$LIBS
16824 LIBS="-lsvld $LIBS"
16825 cat >conftest.$ac_ext <<_ACEOF
16826 #line $LINENO "configure"
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16833 /* Override any gcc2 internal prototype to avoid an error. */
16837 /* We use char because int might match the return type of a gcc2
16838 builtin and then its argument prototype would still apply. */
16848 rm -f conftest.$ac_objext conftest$ac_exeext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850 (eval $ac_link) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -s conftest$ac_exeext'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_lib_svld_dlopen=yes
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_lib_svld_dlopen=no
16867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16868 LIBS=$ac_check_lib_save_LIBS
16870 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16871 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16872 if test $ac_cv_lib_svld_dlopen = yes; then
16873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16875 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16876 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16877 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 ac_check_lib_save_LIBS=$LIBS
16882 cat >conftest.$ac_ext <<_ACEOF
16883 #line $LINENO "configure"
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16890 /* Override any gcc2 internal prototype to avoid an error. */
16894 /* We use char because int might match the return type of a gcc2
16895 builtin and then its argument prototype would still apply. */
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907 (eval $ac_link) 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_lib_dld_dld_link=yes
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 ac_cv_lib_dld_dld_link=no
16924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16925 LIBS=$ac_check_lib_save_LIBS
16927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16928 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16929 if test $ac_cv_lib_dld_dld_link = yes; then
16930 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16951 if test "x$lt_cv_dlopen" != xno; then
16957 case $lt_cv_dlopen in
16959 save_CPPFLAGS="$CPPFLAGS"
16960 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16962 save_LDFLAGS="$LDFLAGS"
16963 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16966 LIBS="$lt_cv_dlopen_libs $LIBS"
16968 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16969 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16970 if test "${lt_cv_dlopen_self+set}" = set; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16973 if test "$cross_compiling" = yes; then :
16974 lt_cv_dlopen_self=cross
16976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16977 lt_status=$lt_dlunknown
16978 cat > conftest.$ac_ext <<EOF
16979 #line 16979 "configure"
16980 #include "confdefs.h"
16989 # define LT_DLGLOBAL RTLD_GLOBAL
16992 # define LT_DLGLOBAL DL_GLOBAL
16994 # define LT_DLGLOBAL 0
16998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16999 find out it does not work in some platform. */
17000 #ifndef LT_DLLAZY_OR_NOW
17002 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17005 # define LT_DLLAZY_OR_NOW DL_LAZY
17008 # define LT_DLLAZY_OR_NOW RTLD_NOW
17011 # define LT_DLLAZY_OR_NOW DL_NOW
17013 # define LT_DLLAZY_OR_NOW 0
17021 extern "C" void exit (int);
17024 void fnord() { int i=42;}
17027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17028 int status = $lt_dlunknown;
17032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17033 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17034 /* dlclose (self); */
17040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17045 (./conftest; exit; ) 2>/dev/null
17047 case x$lt_status in
17048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17050 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17053 # compilation failed
17054 lt_cv_dlopen_self=no
17061 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17062 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17064 if test "x$lt_cv_dlopen_self" = xyes; then
17065 LDFLAGS="$LDFLAGS $link_static_flag"
17066 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17067 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17068 if test "${lt_cv_dlopen_self_static+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 if test "$cross_compiling" = yes; then :
17072 lt_cv_dlopen_self_static=cross
17074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17075 lt_status=$lt_dlunknown
17076 cat > conftest.$ac_ext <<EOF
17077 #line 17077 "configure"
17078 #include "confdefs.h"
17087 # define LT_DLGLOBAL RTLD_GLOBAL
17090 # define LT_DLGLOBAL DL_GLOBAL
17092 # define LT_DLGLOBAL 0
17096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17097 find out it does not work in some platform. */
17098 #ifndef LT_DLLAZY_OR_NOW
17100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17103 # define LT_DLLAZY_OR_NOW DL_LAZY
17106 # define LT_DLLAZY_OR_NOW RTLD_NOW
17109 # define LT_DLLAZY_OR_NOW DL_NOW
17111 # define LT_DLLAZY_OR_NOW 0
17119 extern "C" void exit (int);
17122 void fnord() { int i=42;}
17125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17126 int status = $lt_dlunknown;
17130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17132 /* dlclose (self); */
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17143 (./conftest; exit; ) 2>/dev/null
17145 case x$lt_status in
17146 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17147 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17148 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17151 # compilation failed
17152 lt_cv_dlopen_self_static=no
17159 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17160 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17163 CPPFLAGS="$save_CPPFLAGS"
17164 LDFLAGS="$save_LDFLAGS"
17169 case $lt_cv_dlopen_self in
17170 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17171 *) enable_dlopen_self=unknown ;;
17174 case $lt_cv_dlopen_self_static in
17175 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17176 *) enable_dlopen_self_static=unknown ;;
17181 # The else clause should only fire when bootstrapping the
17182 # libtool distribution, otherwise you forgot to ship ltmain.sh
17183 # with your package, and you will get complaints that there are
17184 # no rules to generate ltmain.sh.
17185 if test -f "$ltmain"; then
17186 # See if we are running on zsh, and set the options which allow our commands through
17187 # without removal of \ escapes.
17188 if test -n "${ZSH_VERSION+set}" ; then
17189 setopt NO_GLOB_SUBST
17191 # Now quote all the things that may contain metacharacters while being
17192 # careful not to overquote the AC_SUBSTed values. We take copies of the
17193 # variables and quote the copies for generation of the libtool script.
17194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17197 deplibs_check_method reload_flag reload_cmds need_locks \
17198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17199 lt_cv_sys_global_symbol_to_c_name_address \
17200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17201 old_postinstall_cmds old_postuninstall_cmds \
17205 lt_prog_compiler_wl_GCJ \
17206 lt_prog_compiler_pic_GCJ \
17207 lt_prog_compiler_static_GCJ \
17208 lt_prog_compiler_no_builtin_flag_GCJ \
17209 export_dynamic_flag_spec_GCJ \
17210 thread_safe_flag_spec_GCJ \
17211 whole_archive_flag_spec_GCJ \
17212 enable_shared_with_static_runtimes_GCJ \
17213 old_archive_cmds_GCJ \
17214 old_archive_from_new_cmds_GCJ \
17215 predep_objects_GCJ \
17216 postdep_objects_GCJ \
17219 compiler_lib_search_path_GCJ \
17221 archive_expsym_cmds_GCJ \
17222 postinstall_cmds_GCJ \
17223 postuninstall_cmds_GCJ \
17224 old_archive_from_expsyms_cmds_GCJ \
17225 allow_undefined_flag_GCJ \
17226 no_undefined_flag_GCJ \
17227 export_symbols_cmds_GCJ \
17228 hardcode_libdir_flag_spec_GCJ \
17229 hardcode_libdir_flag_spec_ld_GCJ \
17230 hardcode_libdir_separator_GCJ \
17231 hardcode_automatic_GCJ \
17233 module_expsym_cmds_GCJ \
17234 lt_cv_prog_compiler_c_o_GCJ \
17235 exclude_expsyms_GCJ \
17236 include_expsyms_GCJ; do
17239 old_archive_cmds_GCJ | \
17240 old_archive_from_new_cmds_GCJ | \
17241 archive_cmds_GCJ | \
17242 archive_expsym_cmds_GCJ | \
17243 module_cmds_GCJ | \
17244 module_expsym_cmds_GCJ | \
17245 old_archive_from_expsyms_cmds_GCJ | \
17246 export_symbols_cmds_GCJ | \
17247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17248 postinstall_cmds | postuninstall_cmds | \
17249 old_postinstall_cmds | old_postuninstall_cmds | \
17250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17251 # Double-quote double-evaled strings.
17252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17261 *'\$0 --fallback-echo"')
17262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17268 cat <<__EOF__ >> "$cfgfile"
17269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17273 # Shell to use when invoking shell scripts.
17276 # Whether or not to build shared libraries.
17277 build_libtool_libs=$enable_shared
17279 # Whether or not to build static libraries.
17280 build_old_libs=$enable_static
17282 # Whether or not to add -lc for building shared libraries.
17283 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17285 # Whether or not to disallow shared libs when runtime libs are static
17286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17288 # Whether or not to optimize for fast installation.
17289 fast_install=$enable_fast_install
17292 host_alias=$host_alias
17295 # An echo program that does not interpret backslashes.
17300 AR_FLAGS=$lt_AR_FLAGS
17305 # A language-specific compiler.
17306 CC=$lt_compiler_GCJ
17308 # Is the compiler the GNU C compiler?
17314 # The linker used to build libraries.
17317 # Whether we need hard or soft links.
17320 # A BSD-compatible nm program.
17323 # A symbol stripping program
17326 # Used to examine libraries when file_magic_cmd begins "file"
17327 MAGIC_CMD=$MAGIC_CMD
17329 # Used on cygwin: DLL creation program.
17332 # Used on cygwin: object dumper.
17335 # Used on cygwin: assembler.
17338 # The name of the directory that contains temporary libtool files.
17341 # How to create reloadable object files.
17342 reload_flag=$lt_reload_flag
17343 reload_cmds=$lt_reload_cmds
17345 # How to pass a linker flag through the compiler.
17346 wl=$lt_lt_prog_compiler_wl_GCJ
17348 # Object file suffix (normally "o").
17349 objext="$ac_objext"
17351 # Old archive suffix (normally "a").
17354 # Shared library suffix (normally ".so").
17357 # Executable file suffix (normally "").
17360 # Additional compiler flags for building library objects.
17361 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17364 # What is the maximum length of a command?
17365 max_cmd_len=$lt_cv_sys_max_cmd_len
17367 # Does compiler simultaneously support -c and -o options?
17368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17370 # Must we lock files when doing compilation ?
17371 need_locks=$lt_need_locks
17373 # Do we need the lib prefix for modules?
17374 need_lib_prefix=$need_lib_prefix
17376 # Do we need a version for libraries?
17377 need_version=$need_version
17379 # Whether dlopen is supported.
17380 dlopen_support=$enable_dlopen
17382 # Whether dlopen of programs is supported.
17383 dlopen_self=$enable_dlopen_self
17385 # Whether dlopen of statically linked programs is supported.
17386 dlopen_self_static=$enable_dlopen_self_static
17388 # Compiler flag to prevent dynamic linking.
17389 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17391 # Compiler flag to turn off builtin functions.
17392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17394 # Compiler flag to allow reflexive dlopens.
17395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17397 # Compiler flag to generate shared objects directly from archives.
17398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17400 # Compiler flag to generate thread-safe objects.
17401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17403 # Library versioning type.
17404 version_type=$version_type
17406 # Format of library name prefix.
17407 libname_spec=$lt_libname_spec
17409 # List of archive names. First name is the real one, the rest are links.
17410 # The last name is the one that the linker finds with -lNAME.
17411 library_names_spec=$lt_library_names_spec
17413 # The coded name of the library, if different from the real name.
17414 soname_spec=$lt_soname_spec
17416 # Commands used to build and install an old-style archive.
17418 old_archive_cmds=$lt_old_archive_cmds_GCJ
17419 old_postinstall_cmds=$lt_old_postinstall_cmds
17420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17422 # Create an old-style archive from a shared archive.
17423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17425 # Create a temporary old-style archive to link instead of a shared archive.
17426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17428 # Commands used to build and install a shared archive.
17429 archive_cmds=$lt_archive_cmds_GCJ
17430 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17431 postinstall_cmds=$lt_postinstall_cmds
17432 postuninstall_cmds=$lt_postuninstall_cmds
17434 # Commands used to build a loadable module (assumed same as above if empty)
17435 module_cmds=$lt_module_cmds_GCJ
17436 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17438 # Commands to strip libraries.
17439 old_striplib=$lt_old_striplib
17440 striplib=$lt_striplib
17442 # Dependencies to place before the objects being linked to create a
17444 predep_objects=$lt_predep_objects_GCJ
17446 # Dependencies to place after the objects being linked to create a
17448 postdep_objects=$lt_postdep_objects_GCJ
17450 # Dependencies to place before the objects being linked to create a
17452 predeps=$lt_predeps_GCJ
17454 # Dependencies to place after the objects being linked to create a
17456 postdeps=$lt_postdeps_GCJ
17458 # The library search path used internally by the compiler when linking
17459 # a shared library.
17460 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17462 # Method to check whether dependent libraries are shared objects.
17463 deplibs_check_method=$lt_deplibs_check_method
17465 # Command to use when deplibs_check_method == file_magic.
17466 file_magic_cmd=$lt_file_magic_cmd
17468 # Flag that allows shared libraries with undefined symbols to be built.
17469 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17471 # Flag that forces no undefined symbols.
17472 no_undefined_flag=$lt_no_undefined_flag_GCJ
17474 # Commands used to finish a libtool library installation in a directory.
17475 finish_cmds=$lt_finish_cmds
17477 # Same as above, but a single script fragment to be evaled but not shown.
17478 finish_eval=$lt_finish_eval
17480 # Take the output of nm and produce a listing of raw symbols and C names.
17481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17483 # Transform the output of nm in a proper C declaration
17484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17486 # Transform the output of nm in a C name address pair
17487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17489 # This is the shared library runtime path variable.
17490 runpath_var=$runpath_var
17492 # This is the shared library path variable.
17493 shlibpath_var=$shlibpath_var
17495 # Is shlibpath searched before the hard-coded library search path?
17496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17498 # How to hardcode a shared library path into an executable.
17499 hardcode_action=$hardcode_action_GCJ
17501 # Whether we should hardcode library paths into libraries.
17502 hardcode_into_libs=$hardcode_into_libs
17504 # Flag to hardcode \$libdir into a binary during linking.
17505 # This must work even if \$libdir does not exist.
17506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17508 # If ld is used when linking, flag to hardcode \$libdir into
17509 # a binary during linking. This must work even if \$libdir does
17511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17513 # Whether we need a single -rpath flag with a separated argument.
17514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17517 # resulting binary.
17518 hardcode_direct=$hardcode_direct_GCJ
17520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17521 # resulting binary.
17522 hardcode_minus_L=$hardcode_minus_L_GCJ
17524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17525 # the resulting binary.
17526 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17528 # Set to yes if building a shared library automatically hardcodes DIR into the library
17529 # and all subsequent libraries and executables linked against it.
17530 hardcode_automatic=$hardcode_automatic_GCJ
17532 # Variables whose values should be saved in libtool wrapper scripts and
17533 # restored at relink time.
17534 variables_saved_for_relink="$variables_saved_for_relink"
17536 # Whether libtool must link a program against all its dependency libraries.
17537 link_all_deplibs=$link_all_deplibs_GCJ
17539 # Compile-time system search path for libraries
17540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17542 # Run-time system search path for libraries
17543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17545 # Fix the shell variable \$srcfile for the compiler.
17546 fix_srcfile_path="$fix_srcfile_path_GCJ"
17548 # Set to yes if exported symbols are required.
17549 always_export_symbols=$always_export_symbols_GCJ
17551 # The commands to list exported symbols.
17552 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17554 # The commands to extract the exported symbol list from a shared archive.
17555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17557 # Symbols that should not be listed in the preloaded symbols.
17558 exclude_expsyms=$lt_exclude_expsyms_GCJ
17560 # Symbols that must always be exported.
17561 include_expsyms=$lt_include_expsyms_GCJ
17563 # ### END LIBTOOL TAG CONFIG: $tagname
17569 # If there is no Makefile yet, we rely on a make rule to execute
17570 # `config.status --recheck' to rerun these tests and create the
17571 # libtool script then.
17572 test -f Makefile && make "$ltmain"
17577 ac_cpp='$CPP $CPPFLAGS'
17578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17593 # Source file extension for RC test sources.
17596 # Object file extension for compiled RC test sources.
17600 # Code to be used in simple compile tests
17601 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17603 # Code to be used in simple link tests
17604 lt_simple_link_test_code="$lt_simple_compile_test_code"
17606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17608 # If no C compiler was specified, use CC.
17611 # Allow CC to be a program name with arguments.
17615 # Allow CC to be a program name with arguments.
17620 lt_cv_prog_compiler_c_o_RC=yes
17622 # The else clause should only fire when bootstrapping the
17623 # libtool distribution, otherwise you forgot to ship ltmain.sh
17624 # with your package, and you will get complaints that there are
17625 # no rules to generate ltmain.sh.
17626 if test -f "$ltmain"; then
17627 # See if we are running on zsh, and set the options which allow our commands through
17628 # without removal of \ escapes.
17629 if test -n "${ZSH_VERSION+set}" ; then
17630 setopt NO_GLOB_SUBST
17632 # Now quote all the things that may contain metacharacters while being
17633 # careful not to overquote the AC_SUBSTed values. We take copies of the
17634 # variables and quote the copies for generation of the libtool script.
17635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17636 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17637 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17638 deplibs_check_method reload_flag reload_cmds need_locks \
17639 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17640 lt_cv_sys_global_symbol_to_c_name_address \
17641 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17642 old_postinstall_cmds old_postuninstall_cmds \
17646 lt_prog_compiler_wl_RC \
17647 lt_prog_compiler_pic_RC \
17648 lt_prog_compiler_static_RC \
17649 lt_prog_compiler_no_builtin_flag_RC \
17650 export_dynamic_flag_spec_RC \
17651 thread_safe_flag_spec_RC \
17652 whole_archive_flag_spec_RC \
17653 enable_shared_with_static_runtimes_RC \
17654 old_archive_cmds_RC \
17655 old_archive_from_new_cmds_RC \
17656 predep_objects_RC \
17657 postdep_objects_RC \
17660 compiler_lib_search_path_RC \
17662 archive_expsym_cmds_RC \
17663 postinstall_cmds_RC \
17664 postuninstall_cmds_RC \
17665 old_archive_from_expsyms_cmds_RC \
17666 allow_undefined_flag_RC \
17667 no_undefined_flag_RC \
17668 export_symbols_cmds_RC \
17669 hardcode_libdir_flag_spec_RC \
17670 hardcode_libdir_flag_spec_ld_RC \
17671 hardcode_libdir_separator_RC \
17672 hardcode_automatic_RC \
17674 module_expsym_cmds_RC \
17675 lt_cv_prog_compiler_c_o_RC \
17676 exclude_expsyms_RC \
17677 include_expsyms_RC; do
17680 old_archive_cmds_RC | \
17681 old_archive_from_new_cmds_RC | \
17682 archive_cmds_RC | \
17683 archive_expsym_cmds_RC | \
17685 module_expsym_cmds_RC | \
17686 old_archive_from_expsyms_cmds_RC | \
17687 export_symbols_cmds_RC | \
17688 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17689 postinstall_cmds | postuninstall_cmds | \
17690 old_postinstall_cmds | old_postuninstall_cmds | \
17691 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17692 # Double-quote double-evaled strings.
17693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17702 *'\$0 --fallback-echo"')
17703 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17709 cat <<__EOF__ >> "$cfgfile"
17710 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17714 # Shell to use when invoking shell scripts.
17717 # Whether or not to build shared libraries.
17718 build_libtool_libs=$enable_shared
17720 # Whether or not to build static libraries.
17721 build_old_libs=$enable_static
17723 # Whether or not to add -lc for building shared libraries.
17724 build_libtool_need_lc=$archive_cmds_need_lc_RC
17726 # Whether or not to disallow shared libs when runtime libs are static
17727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17729 # Whether or not to optimize for fast installation.
17730 fast_install=$enable_fast_install
17733 host_alias=$host_alias
17736 # An echo program that does not interpret backslashes.
17741 AR_FLAGS=$lt_AR_FLAGS
17746 # A language-specific compiler.
17749 # Is the compiler the GNU C compiler?
17755 # The linker used to build libraries.
17758 # Whether we need hard or soft links.
17761 # A BSD-compatible nm program.
17764 # A symbol stripping program
17767 # Used to examine libraries when file_magic_cmd begins "file"
17768 MAGIC_CMD=$MAGIC_CMD
17770 # Used on cygwin: DLL creation program.
17773 # Used on cygwin: object dumper.
17776 # Used on cygwin: assembler.
17779 # The name of the directory that contains temporary libtool files.
17782 # How to create reloadable object files.
17783 reload_flag=$lt_reload_flag
17784 reload_cmds=$lt_reload_cmds
17786 # How to pass a linker flag through the compiler.
17787 wl=$lt_lt_prog_compiler_wl_RC
17789 # Object file suffix (normally "o").
17790 objext="$ac_objext"
17792 # Old archive suffix (normally "a").
17795 # Shared library suffix (normally ".so").
17798 # Executable file suffix (normally "").
17801 # Additional compiler flags for building library objects.
17802 pic_flag=$lt_lt_prog_compiler_pic_RC
17805 # What is the maximum length of a command?
17806 max_cmd_len=$lt_cv_sys_max_cmd_len
17808 # Does compiler simultaneously support -c and -o options?
17809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17811 # Must we lock files when doing compilation ?
17812 need_locks=$lt_need_locks
17814 # Do we need the lib prefix for modules?
17815 need_lib_prefix=$need_lib_prefix
17817 # Do we need a version for libraries?
17818 need_version=$need_version
17820 # Whether dlopen is supported.
17821 dlopen_support=$enable_dlopen
17823 # Whether dlopen of programs is supported.
17824 dlopen_self=$enable_dlopen_self
17826 # Whether dlopen of statically linked programs is supported.
17827 dlopen_self_static=$enable_dlopen_self_static
17829 # Compiler flag to prevent dynamic linking.
17830 link_static_flag=$lt_lt_prog_compiler_static_RC
17832 # Compiler flag to turn off builtin functions.
17833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17835 # Compiler flag to allow reflexive dlopens.
17836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17838 # Compiler flag to generate shared objects directly from archives.
17839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17841 # Compiler flag to generate thread-safe objects.
17842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17844 # Library versioning type.
17845 version_type=$version_type
17847 # Format of library name prefix.
17848 libname_spec=$lt_libname_spec
17850 # List of archive names. First name is the real one, the rest are links.
17851 # The last name is the one that the linker finds with -lNAME.
17852 library_names_spec=$lt_library_names_spec
17854 # The coded name of the library, if different from the real name.
17855 soname_spec=$lt_soname_spec
17857 # Commands used to build and install an old-style archive.
17859 old_archive_cmds=$lt_old_archive_cmds_RC
17860 old_postinstall_cmds=$lt_old_postinstall_cmds
17861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863 # Create an old-style archive from a shared archive.
17864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17866 # Create a temporary old-style archive to link instead of a shared archive.
17867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17869 # Commands used to build and install a shared archive.
17870 archive_cmds=$lt_archive_cmds_RC
17871 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17872 postinstall_cmds=$lt_postinstall_cmds
17873 postuninstall_cmds=$lt_postuninstall_cmds
17875 # Commands used to build a loadable module (assumed same as above if empty)
17876 module_cmds=$lt_module_cmds_RC
17877 module_expsym_cmds=$lt_module_expsym_cmds_RC
17879 # Commands to strip libraries.
17880 old_striplib=$lt_old_striplib
17881 striplib=$lt_striplib
17883 # Dependencies to place before the objects being linked to create a
17885 predep_objects=$lt_predep_objects_RC
17887 # Dependencies to place after the objects being linked to create a
17889 postdep_objects=$lt_postdep_objects_RC
17891 # Dependencies to place before the objects being linked to create a
17893 predeps=$lt_predeps_RC
17895 # Dependencies to place after the objects being linked to create a
17897 postdeps=$lt_postdeps_RC
17899 # The library search path used internally by the compiler when linking
17900 # a shared library.
17901 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17903 # Method to check whether dependent libraries are shared objects.
17904 deplibs_check_method=$lt_deplibs_check_method
17906 # Command to use when deplibs_check_method == file_magic.
17907 file_magic_cmd=$lt_file_magic_cmd
17909 # Flag that allows shared libraries with undefined symbols to be built.
17910 allow_undefined_flag=$lt_allow_undefined_flag_RC
17912 # Flag that forces no undefined symbols.
17913 no_undefined_flag=$lt_no_undefined_flag_RC
17915 # Commands used to finish a libtool library installation in a directory.
17916 finish_cmds=$lt_finish_cmds
17918 # Same as above, but a single script fragment to be evaled but not shown.
17919 finish_eval=$lt_finish_eval
17921 # Take the output of nm and produce a listing of raw symbols and C names.
17922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17924 # Transform the output of nm in a proper C declaration
17925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17927 # Transform the output of nm in a C name address pair
17928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17930 # This is the shared library runtime path variable.
17931 runpath_var=$runpath_var
17933 # This is the shared library path variable.
17934 shlibpath_var=$shlibpath_var
17936 # Is shlibpath searched before the hard-coded library search path?
17937 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939 # How to hardcode a shared library path into an executable.
17940 hardcode_action=$hardcode_action_RC
17942 # Whether we should hardcode library paths into libraries.
17943 hardcode_into_libs=$hardcode_into_libs
17945 # Flag to hardcode \$libdir into a binary during linking.
17946 # This must work even if \$libdir does not exist.
17947 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17949 # If ld is used when linking, flag to hardcode \$libdir into
17950 # a binary during linking. This must work even if \$libdir does
17952 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17954 # Whether we need a single -rpath flag with a separated argument.
17955 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17957 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17958 # resulting binary.
17959 hardcode_direct=$hardcode_direct_RC
17961 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17962 # resulting binary.
17963 hardcode_minus_L=$hardcode_minus_L_RC
17965 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17966 # the resulting binary.
17967 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17969 # Set to yes if building a shared library automatically hardcodes DIR into the library
17970 # and all subsequent libraries and executables linked against it.
17971 hardcode_automatic=$hardcode_automatic_RC
17973 # Variables whose values should be saved in libtool wrapper scripts and
17974 # restored at relink time.
17975 variables_saved_for_relink="$variables_saved_for_relink"
17977 # Whether libtool must link a program against all its dependency libraries.
17978 link_all_deplibs=$link_all_deplibs_RC
17980 # Compile-time system search path for libraries
17981 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983 # Run-time system search path for libraries
17984 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986 # Fix the shell variable \$srcfile for the compiler.
17987 fix_srcfile_path="$fix_srcfile_path_RC"
17989 # Set to yes if exported symbols are required.
17990 always_export_symbols=$always_export_symbols_RC
17992 # The commands to list exported symbols.
17993 export_symbols_cmds=$lt_export_symbols_cmds_RC
17995 # The commands to extract the exported symbol list from a shared archive.
17996 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998 # Symbols that should not be listed in the preloaded symbols.
17999 exclude_expsyms=$lt_exclude_expsyms_RC
18001 # Symbols that must always be exported.
18002 include_expsyms=$lt_include_expsyms_RC
18004 # ### END LIBTOOL TAG CONFIG: $tagname
18010 # If there is no Makefile yet, we rely on a make rule to execute
18011 # `config.status --recheck' to rerun these tests and create the
18012 # libtool script then.
18013 test -f Makefile && make "$ltmain"
18018 ac_cpp='$CPP $CPPFLAGS'
18019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18028 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18030 { (exit 1); exit 1; }; }
18034 # Append the new tag name to the list of available tags.
18035 if test -n "$tagname" ; then
18036 available_tags="$available_tags $tagname"
18042 # Now substitute the updated list of available tags.
18043 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18044 mv "${ofile}T" "$ofile"
18048 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18050 { (exit 1); exit 1; }; }
18056 # This can be used to rebuild libtool when needed
18057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18059 # Always use our own libtool.
18060 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18062 # Prevent multiple expansion
18084 # Extract the first word of "dot", so it can be a program name with args.
18085 set dummy dot; ac_word=$2
18086 echo "$as_me:$LINENO: checking for $ac_word" >&5
18087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18088 if test "${ac_cv_path_DOT+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18100 test -z "$as_dir" && as_dir=.
18101 for ac_exec_ext in '' $ac_executable_extensions; do
18102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18110 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18114 DOT=$ac_cv_path_DOT
18116 if test -n "$DOT"; then
18117 echo "$as_me:$LINENO: result: $DOT" >&5
18118 echo "${ECHO_T}$DOT" >&6
18120 echo "$as_me:$LINENO: result: no" >&5
18121 echo "${ECHO_T}no" >&6
18124 # Extract the first word of "etags", so it can be a program name with args.
18125 set dummy etags; ac_word=$2
18126 echo "$as_me:$LINENO: checking for $ac_word" >&5
18127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18128 if test "${ac_cv_path_ETAGS+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18137 for as_dir in $PATH
18140 test -z "$as_dir" && as_dir=.
18141 for ac_exec_ext in '' $ac_executable_extensions; do
18142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18143 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18150 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18154 ETAGS=$ac_cv_path_ETAGS
18156 if test -n "$ETAGS"; then
18157 echo "$as_me:$LINENO: result: $ETAGS" >&5
18158 echo "${ECHO_T}$ETAGS" >&6
18160 echo "$as_me:$LINENO: result: no" >&5
18161 echo "${ECHO_T}no" >&6
18164 etags_version=`$ETAGS --version 2>&1`
18165 case "$etags_version" in
18166 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18167 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18168 *) ETAGSFLAGS="" ;;
18170 ETAGSFLAGS=$ETAGSFLAGS
18172 # Extract the first word of "python", so it can be a program name with args.
18173 set dummy python; ac_word=$2
18174 echo "$as_me:$LINENO: checking for $ac_word" >&5
18175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18176 if test "${ac_cv_path_PYTHON+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18198 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18202 PYTHON=$ac_cv_path_PYTHON
18204 if test -n "$PYTHON"; then
18205 echo "$as_me:$LINENO: result: $PYTHON" >&5
18206 echo "${ECHO_T}$PYTHON" >&6
18208 echo "$as_me:$LINENO: result: no" >&5
18209 echo "${ECHO_T}no" >&6
18212 if test "$PYTHON" = "false"
18214 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18215 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18217 # Extract the first word of "qmtest", so it can be a program name with args.
18218 set dummy qmtest; ac_word=$2
18219 echo "$as_me:$LINENO: checking for $ac_word" >&5
18220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18221 if test "${ac_cv_path_QMTEST+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18230 for as_dir in $PATH
18233 test -z "$as_dir" && as_dir=.
18234 for ac_exec_ext in '' $ac_executable_extensions; do
18235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18236 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18243 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18247 QMTEST=$ac_cv_path_QMTEST
18249 if test -n "$QMTEST"; then
18250 echo "$as_me:$LINENO: result: $QMTEST" >&5
18251 echo "${ECHO_T}$QMTEST" >&6
18253 echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6
18257 if test "$QMTEST" = "false"
18259 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18260 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18263 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18264 pymajor=`echo $pyversion | cut -d. -f1`
18265 pyminor=`echo $pyversion | cut -d. -f2`
18267 if test "$pymajor" -ge "2"
18269 if test "$pymajor" -eq "2"
18271 if test "$pyminor" -lt "2"
18273 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18274 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18279 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18285 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18286 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18287 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 ac_check_lib_save_LIBS=$LIBS
18292 cat >conftest.$ac_ext <<_ACEOF
18293 #line $LINENO "configure"
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18300 /* Override any gcc2 internal prototype to avoid an error. */
18304 /* We use char because int might match the return type of a gcc2
18305 builtin and then its argument prototype would still apply. */
18315 rm -f conftest.$ac_objext conftest$ac_exeext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317 (eval $ac_link) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -s conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_lib_elf_elf_begin=yes
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18332 ac_cv_lib_elf_elf_begin=no
18334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18335 LIBS=$ac_check_lib_save_LIBS
18337 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18338 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18339 if test $ac_cv_lib_elf_elf_begin = yes; then
18340 cat >>confdefs.h <<_ACEOF
18341 #define HAVE_LIBELF 1
18349 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18350 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18351 if test "${ac_cv_search_dlopen+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 ac_func_search_save_LIBS=$LIBS
18355 ac_cv_search_dlopen=no
18356 cat >conftest.$ac_ext <<_ACEOF
18357 #line $LINENO "configure"
18360 cat confdefs.h >>conftest.$ac_ext
18361 cat >>conftest.$ac_ext <<_ACEOF
18362 /* end confdefs.h. */
18364 /* Override any gcc2 internal prototype to avoid an error. */
18368 /* We use char because int might match the return type of a gcc2
18369 builtin and then its argument prototype would still apply. */
18379 rm -f conftest.$ac_objext conftest$ac_exeext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381 (eval $ac_link) 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
18385 { ac_try='test -s conftest$ac_exeext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_search_dlopen="none required"
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18398 if test "$ac_cv_search_dlopen" = no; then
18399 for ac_lib in dl; do
18400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18401 cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18409 /* Override any gcc2 internal prototype to avoid an error. */
18413 /* We use char because int might match the return type of a gcc2
18414 builtin and then its argument prototype would still apply. */
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18426 (eval $ac_link) 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 ac_cv_search_dlopen="-l$ac_lib"
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18446 LIBS=$ac_func_search_save_LIBS
18448 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18449 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18450 if test "$ac_cv_search_dlopen" != no; then
18451 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18453 cat >>confdefs.h <<\_ACEOF
18454 #define HAVE_DLOPEN 1
18458 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18459 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18463 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18464 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18465 if test "${ac_cv_search_mallinfo+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 ac_func_search_save_LIBS=$LIBS
18469 ac_cv_search_mallinfo=no
18470 cat >conftest.$ac_ext <<_ACEOF
18471 #line $LINENO "configure"
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18478 /* Override any gcc2 internal prototype to avoid an error. */
18482 /* We use char because int might match the return type of a gcc2
18483 builtin and then its argument prototype would still apply. */
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18495 (eval $ac_link) 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -s conftest$ac_exeext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_cv_search_mallinfo="none required"
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18512 if test "$ac_cv_search_mallinfo" = no; then
18513 for ac_lib in malloc; do
18514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18516 #line $LINENO "configure"
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18523 /* Override any gcc2 internal prototype to avoid an error. */
18527 /* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -s conftest$ac_exeext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_cv_search_mallinfo="-l$ac_lib"
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18560 LIBS=$ac_func_search_save_LIBS
18562 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18563 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18564 if test "$ac_cv_search_mallinfo" != no; then
18565 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE_MALLINFO 1
18574 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18575 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18576 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 ac_func_search_save_LIBS=$LIBS
18580 ac_cv_search_pthread_mutex_lock=no
18581 cat >conftest.$ac_ext <<_ACEOF
18582 #line $LINENO "configure"
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18589 /* Override any gcc2 internal prototype to avoid an error. */
18593 /* We use char because int might match the return type of a gcc2
18594 builtin and then its argument prototype would still apply. */
18595 char pthread_mutex_lock ();
18599 pthread_mutex_lock ();
18604 rm -f conftest.$ac_objext conftest$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606 (eval $ac_link) 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -s conftest$ac_exeext'
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 ac_cv_search_pthread_mutex_lock="none required"
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18623 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18624 for ac_lib in pthread; do
18625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18626 cat >conftest.$ac_ext <<_ACEOF
18627 #line $LINENO "configure"
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18634 /* Override any gcc2 internal prototype to avoid an error. */
18638 /* We use char because int might match the return type of a gcc2
18639 builtin and then its argument prototype would still apply. */
18640 char pthread_mutex_lock ();
18644 pthread_mutex_lock ();
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651 (eval $ac_link) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -s conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18671 LIBS=$ac_func_search_save_LIBS
18673 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18674 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18675 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18676 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18678 cat >>confdefs.h <<\_ACEOF
18679 #define HAVE_PTHREAD_MUTEX_LOCK 1
18685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18687 if test "${ac_cv_header_stdc+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 cat >conftest.$ac_ext <<_ACEOF
18691 #line $LINENO "configure"
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 #include <stdlib.h>
18698 #include <stdarg.h>
18699 #include <string.h>
18710 rm -f conftest.$ac_objext
18711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -s conftest.$ac_objext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_header_stdc=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_cv_header_stdc=no
18729 rm -f conftest.$ac_objext conftest.$ac_ext
18731 if test $ac_cv_header_stdc = yes; then
18732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18733 cat >conftest.$ac_ext <<_ACEOF
18734 #line $LINENO "configure"
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 #include <string.h>
18743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18744 $EGREP "memchr" >/dev/null 2>&1; then
18747 ac_cv_header_stdc=no
18753 if test $ac_cv_header_stdc = yes; then
18754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18755 cat >conftest.$ac_ext <<_ACEOF
18756 #line $LINENO "configure"
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 #include <stdlib.h>
18765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18766 $EGREP "free" >/dev/null 2>&1; then
18769 ac_cv_header_stdc=no
18775 if test $ac_cv_header_stdc = yes; then
18776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18777 if test "$cross_compiling" = yes; then
18780 cat >conftest.$ac_ext <<_ACEOF
18781 #line $LINENO "configure"
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18788 #if ((' ' & 0x0FF) == 0x020)
18789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18792 # define ISLOWER(c) \
18793 (('a' <= (c) && (c) <= 'i') \
18794 || ('j' <= (c) && (c) <= 'r') \
18795 || ('s' <= (c) && (c) <= 'z'))
18796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18804 for (i = 0; i < 256; i++)
18805 if (XOR (islower (i), ISLOWER (i))
18806 || toupper (i) != TOUPPER (i))
18811 rm -f conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; }; then
18824 echo "$as_me: program exited with status $ac_status" >&5
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 ( exit $ac_status )
18829 ac_cv_header_stdc=no
18831 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18837 if test $ac_cv_header_stdc = yes; then
18839 cat >>confdefs.h <<\_ACEOF
18840 #define STDC_HEADERS 1
18845 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18846 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18847 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18850 cat >conftest.$ac_ext <<_ACEOF
18851 #line $LINENO "configure"
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18857 #include <sys/types.h>
18858 #include <sys/wait.h>
18859 #ifndef WEXITSTATUS
18860 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18863 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18871 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18876 rm -f conftest.$ac_objext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878 (eval $ac_compile) 2>&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -s conftest.$ac_objext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_header_sys_wait_h=yes
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_cv_header_sys_wait_h=no
18895 rm -f conftest.$ac_objext conftest.$ac_ext
18897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18899 if test $ac_cv_header_sys_wait_h = yes; then
18901 cat >>confdefs.h <<\_ACEOF
18902 #define HAVE_SYS_WAIT_H 1
18918 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
18920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18922 echo "$as_me:$LINENO: checking for $ac_header" >&5
18923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18930 # Is the header compilable?
18931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18933 cat >conftest.$ac_ext <<_ACEOF
18934 #line $LINENO "configure"
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18941 #include <$ac_header>
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_header_compiler=yes
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_header_compiler=no
18962 rm -f conftest.$ac_objext conftest.$ac_ext
18963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18964 echo "${ECHO_T}$ac_header_compiler" >&6
18966 # Is the header present?
18967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18970 #line $LINENO "configure"
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 #include <$ac_header>
18978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } >/dev/null; then
18986 if test -s conftest.err; then
18987 ac_cpp_err=$ac_c_preproc_warn_flag
18994 if test -z "$ac_cpp_err"; then
18995 ac_header_preproc=yes
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_header_preproc=no
19002 rm -f conftest.err conftest.$ac_ext
19003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19004 echo "${ECHO_T}$ac_header_preproc" >&6
19006 # So? What about this header?
19007 case $ac_header_compiler:$ac_header_preproc in
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19015 ## ------------------------------------ ##
19016 ## Report this to bug-autoconf@gnu.org. ##
19017 ## ------------------------------------ ##
19020 sed "s/^/$as_me: WARNING: /" >&2
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031 ## ------------------------------------ ##
19032 ## Report this to bug-autoconf@gnu.org. ##
19033 ## ------------------------------------ ##
19036 sed "s/^/$as_me: WARNING: /" >&2
19039 echo "$as_me:$LINENO: checking for $ac_header" >&5
19040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 eval "$as_ac_Header=$ac_header_preproc"
19046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19060 echo "$as_me:$LINENO: checking for pid_t" >&5
19061 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19062 if test "${ac_cv_type_pid_t+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19066 #line $LINENO "configure"
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 $ac_includes_default
19078 if (sizeof (pid_t))
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086 (eval $ac_compile) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_cv_type_pid_t=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_cv_type_pid_t=no
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19105 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19106 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19107 if test $ac_cv_type_pid_t = yes; then
19111 cat >>confdefs.h <<_ACEOF
19117 echo "$as_me:$LINENO: checking for size_t" >&5
19118 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19119 if test "${ac_cv_type_size_t+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 cat >conftest.$ac_ext <<_ACEOF
19123 #line $LINENO "configure"
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 $ac_includes_default
19135 if (sizeof (size_t))
19141 rm -f conftest.$ac_objext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143 (eval $ac_compile) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -s conftest.$ac_objext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_type_size_t=yes
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_cv_type_size_t=no
19160 rm -f conftest.$ac_objext conftest.$ac_ext
19162 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19163 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19164 if test $ac_cv_type_size_t = yes; then
19168 cat >>confdefs.h <<_ACEOF
19169 #define size_t unsigned
19174 echo "$as_me:$LINENO: checking for int64_t" >&5
19175 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19176 if test "${ac_cv_type_int64_t+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19180 #line $LINENO "configure"
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 $ac_includes_default
19192 if (sizeof (int64_t))
19198 rm -f conftest.$ac_objext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19200 (eval $ac_compile) 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_type_int64_t=yes
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ac_cv_type_int64_t=no
19217 rm -f conftest.$ac_objext conftest.$ac_ext
19219 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19220 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19221 if test $ac_cv_type_int64_t = yes; then
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_INT64_T 1
19229 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19230 echo "$as_me: error: Type int64_t required but not found" >&2;}
19231 { (exit 1); exit 1; }; }
19234 echo "$as_me:$LINENO: checking for uint64_t" >&5
19235 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19236 if test "${ac_cv_type_uint64_t+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19240 #line $LINENO "configure"
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 $ac_includes_default
19250 if ((uint64_t *) 0)
19252 if (sizeof (uint64_t))
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260 (eval $ac_compile) 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -s conftest.$ac_objext'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_type_uint64_t=yes
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 ac_cv_type_uint64_t=no
19277 rm -f conftest.$ac_objext conftest.$ac_ext
19279 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19280 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19281 if test $ac_cv_type_uint64_t = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_UINT64_T 1
19289 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19290 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19291 { (exit 1); exit 1; }; }
19294 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19295 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19296 if test "${ac_cv_header_time+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 cat >conftest.$ac_ext <<_ACEOF
19300 #line $LINENO "configure"
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 #include <sys/types.h>
19307 #include <sys/time.h>
19313 if ((struct tm *) 0)
19319 rm -f conftest.$ac_objext
19320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321 (eval $ac_compile) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_header_time=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_header_time=no
19338 rm -f conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19341 echo "${ECHO_T}$ac_cv_header_time" >&6
19342 if test $ac_cv_header_time = yes; then
19344 cat >>confdefs.h <<\_ACEOF
19345 #define TIME_WITH_SYS_TIME 1
19350 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19351 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19352 if test "${ac_cv_struct_tm+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 cat >conftest.$ac_ext <<_ACEOF
19356 #line $LINENO "configure"
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 #include <sys/types.h>
19368 struct tm *tp; tp->tm_sec;
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_struct_tm=time.h
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_struct_tm=sys/time.h
19392 rm -f conftest.$ac_objext conftest.$ac_ext
19394 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19395 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19396 if test $ac_cv_struct_tm = sys/time.h; then
19398 cat >>confdefs.h <<\_ACEOF
19399 #define TM_IN_SYS_TIME 1
19409 ac_cpp='$CPP $CPPFLAGS'
19410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19414 if test "$cross_compiling" = yes; then
19415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19416 See \`config.log' for more details." >&5
19417 echo "$as_me: error: cannot run test program while cross compiling
19418 See \`config.log' for more details." >&2;}
19419 { (exit 1); exit 1; }; }
19421 cat >conftest.$ac_ext <<_ACEOF
19422 #line $LINENO "configure"
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 #include <stdlib.h>
19434 volatile double A, B;
19438 sprintf(Buffer, "%a", A);
19442 if (A != 0x1.999999999999ap-4)
19449 rm -f conftest$ac_exeext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19451 (eval $ac_link) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19462 echo "$as_me: program exited with status $ac_status" >&5
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ( exit $ac_status )
19469 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19477 if test "$ac_c_printf_a" = "yes"; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_PRINTF_A 1
19486 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19487 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19488 if test "${ac_cv_c_bigendian+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 # See if sys/param.h defines the BYTE_ORDER macro.
19492 cat >conftest.$ac_ext <<_ACEOF
19493 #line $LINENO "configure"
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 #include <sys/types.h>
19500 #include <sys/param.h>
19505 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19506 bogus endian macros
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 # It does; now see whether it defined to BIG_ENDIAN or not.
19526 cat >conftest.$ac_ext <<_ACEOF
19527 #line $LINENO "configure"
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <sys/types.h>
19534 #include <sys/param.h>
19539 #if BYTE_ORDER != BIG_ENDIAN
19547 rm -f conftest.$ac_objext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549 (eval $ac_compile) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19559 ac_cv_c_bigendian=yes
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_cv_c_bigendian=no
19566 rm -f conftest.$ac_objext conftest.$ac_ext
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 # It does not; compile a test program.
19572 if test "$cross_compiling" = yes; then
19573 # try to guess the endianness by grepping values into an object file
19574 ac_cv_c_bigendian=unknown
19575 cat >conftest.$ac_ext <<_ACEOF
19576 #line $LINENO "configure"
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19583 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19584 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19585 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19586 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19587 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19591 _ascii (); _ebcdic ();
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19609 ac_cv_c_bigendian=yes
19611 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19612 if test "$ac_cv_c_bigendian" = unknown; then
19613 ac_cv_c_bigendian=no
19615 # finding both strings is unlikely to happen, but who knows?
19616 ac_cv_c_bigendian=unknown
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19624 rm -f conftest.$ac_objext conftest.$ac_ext
19626 cat >conftest.$ac_ext <<_ACEOF
19627 #line $LINENO "configure"
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19636 /* Are we little or big endian? From Harbison&Steele. */
19640 char c[sizeof (long)];
19643 exit (u.c[sizeof (long) - 1] == 1);
19646 rm -f conftest$ac_exeext
19647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648 (eval $ac_link) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_cv_c_bigendian=no
19659 echo "$as_me: program exited with status $ac_status" >&5
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ( exit $ac_status )
19664 ac_cv_c_bigendian=yes
19666 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19669 rm -f conftest.$ac_objext conftest.$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19672 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19673 case $ac_cv_c_bigendian in
19681 { { echo "$as_me:$LINENO: error: unknown endianness
19682 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19683 echo "$as_me: error: unknown endianness
19684 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19685 { (exit 1); exit 1; }; } ;;
19689 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19690 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19691 if test "${ac_cv_cxx_namespaces+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 ac_cpp='$CXXCPP $CPPFLAGS'
19698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19702 cat >conftest.$ac_ext <<_ACEOF
19703 #line $LINENO "configure"
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 namespace Outer { namespace Inner { int i = 0; }}
19713 using namespace Outer::Inner; return i;
19718 rm -f conftest.$ac_objext
19719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19720 (eval $ac_compile) 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -s conftest.$ac_objext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_cv_cxx_namespaces=yes
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_cv_cxx_namespaces=no
19737 rm -f conftest.$ac_objext conftest.$ac_ext
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19746 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19747 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19748 if test "$ac_cv_cxx_namespaces" = yes; then
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_NAMESPACES
19756 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19757 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19758 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 ac_cpp='$CXXCPP $CPPFLAGS'
19766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19770 cat >conftest.$ac_ext <<_ACEOF
19771 #line $LINENO "configure"
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 #include <ext/hash_map>
19778 #ifdef HAVE_NAMESPACES
19779 using namespace std;
19784 hash_map<int, int> t;
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -s conftest.$ac_objext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_cxx_have_std_ext_hash_map=yes
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_cxx_have_std_ext_hash_map=no
19808 rm -f conftest.$ac_objext conftest.$ac_ext
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19816 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19817 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19818 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_STD_EXT_HASH_MAP
19825 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19826 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19827 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 ac_cpp='$CXXCPP $CPPFLAGS'
19835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19839 cat >conftest.$ac_ext <<_ACEOF
19840 #line $LINENO "configure"
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <ext/hash_map>
19847 #ifdef HAVE_NAMESPACES
19848 using namespace __gnu_cxx;
19853 hash_map<int,int> t;
19858 rm -f conftest.$ac_objext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -s conftest.$ac_objext'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
19870 ac_cv_cxx_have_gnu_ext_hash_map=yes
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_cv_cxx_have_gnu_ext_hash_map=no
19877 rm -f conftest.$ac_objext conftest.$ac_ext
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19885 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19886 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19887 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE_GNU_EXT_HASH_MAP
19894 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19895 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19896 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 ac_cpp='$CXXCPP $CPPFLAGS'
19904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19908 cat >conftest.$ac_ext <<_ACEOF
19909 #line $LINENO "configure"
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 #include <hash_map>
19919 hash_map<int,int> t;
19924 rm -f conftest.$ac_objext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_cv_cxx_have_global_hash_map=yes
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_cv_cxx_have_global_hash_map=no
19943 rm -f conftest.$ac_objext conftest.$ac_ext
19945 ac_cpp='$CPP $CPPFLAGS'
19946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19951 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19952 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19953 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19955 cat >>confdefs.h <<\_ACEOF
19956 #define HAVE_GLOBAL_HASH_MAP
19960 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19961 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19962 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 ac_cpp='$CXXCPP $CPPFLAGS'
19970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19974 cat >conftest.$ac_ext <<_ACEOF
19975 #line $LINENO "configure"
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #include <ext/hash_set>
19982 #ifdef HAVE_NAMESPACES
19983 using namespace std;
19993 rm -f conftest.$ac_objext
19994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
19999 { ac_try='test -s conftest.$ac_objext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_cv_cxx_have_std_ext_hash_set=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_cv_cxx_have_std_ext_hash_set=no
20012 rm -f conftest.$ac_objext conftest.$ac_ext
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20020 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20021 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20022 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20024 cat >>confdefs.h <<\_ACEOF
20025 #define HAVE_STD_EXT_HASH_SET
20029 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20030 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20031 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20043 cat >conftest.$ac_ext <<_ACEOF
20044 #line $LINENO "configure"
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <ext/hash_set>
20051 #ifdef HAVE_NAMESPACES
20052 using namespace __gnu_cxx;
20062 rm -f conftest.$ac_objext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_cxx_have_gnu_ext_hash_set=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_cxx_have_gnu_ext_hash_set=no
20081 rm -f conftest.$ac_objext conftest.$ac_ext
20083 ac_cpp='$CPP $CPPFLAGS'
20084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20089 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20090 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20091 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE_GNU_EXT_HASH_SET
20098 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20099 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20100 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 ac_cpp='$CXXCPP $CPPFLAGS'
20108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20112 cat >conftest.$ac_ext <<_ACEOF
20113 #line $LINENO "configure"
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 #include <hash_set>
20123 hash_set<int> t; return 0;
20128 rm -f conftest.$ac_objext
20129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20130 (eval $ac_compile) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -s conftest.$ac_objext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_cxx_have_global_hash_set=yes
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_cxx_have_global_hash_set=no
20147 rm -f conftest.$ac_objext conftest.$ac_ext
20149 ac_cpp='$CPP $CPPFLAGS'
20150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20155 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20156 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20157 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20159 cat >>confdefs.h <<\_ACEOF
20160 #define HAVE_GLOBAL_HASH_SET
20164 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20165 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20166 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 ac_cpp='$CXXCPP $CPPFLAGS'
20174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20178 cat >conftest.$ac_ext <<_ACEOF
20179 #line $LINENO "configure"
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 #include <ext/slist>
20186 #ifdef HAVE_NAMESPACES
20187 using namespace std;
20192 slist<int> s; return 0;
20197 rm -f conftest.$ac_objext
20198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_cxx_have_ext_slist=std
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_cxx_have_ext_slist=no
20216 rm -f conftest.$ac_objext conftest.$ac_ext
20217 cat >conftest.$ac_ext <<_ACEOF
20218 #line $LINENO "configure"
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 #include <ext/slist>
20225 #ifdef HAVE_NAMESPACES
20226 using namespace __gnu_cxx;
20231 slist<int> s; return 0;
20236 rm -f conftest.$ac_objext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238 (eval $ac_compile) 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -s conftest.$ac_objext'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_cxx_have_ext_slist=gnu
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_cv_cxx_have_ext_slist=no
20255 rm -f conftest.$ac_objext conftest.$ac_ext
20258 ac_cpp='$CPP $CPPFLAGS'
20259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20265 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20266 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20267 if test "$ac_cv_cxx_have_ext_slist" = std; then
20269 cat >>confdefs.h <<\_ACEOF
20270 #define HAVE_EXT_SLIST std
20274 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_EXT_SLIST gnu
20282 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20283 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20284 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 ac_cpp='$CXXCPP $CPPFLAGS'
20292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20296 cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 #include <iterator>
20304 #ifdef HAVE_NAMESPACES
20305 using namespace std;
20310 iterator<int,int,int> t; return 0;
20315 rm -f conftest.$ac_objext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317 (eval $ac_compile) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_cxx_have_std_iterator=yes
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_cv_cxx_have_std_iterator=no
20334 rm -f conftest.$ac_objext conftest.$ac_ext
20336 ac_cpp='$CPP $CPPFLAGS'
20337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20343 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20344 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20345 HAVE_STD_ITERATOR=0
20346 if test "$ac_cv_cxx_have_std_iterator" = yes
20348 HAVE_STD_ITERATOR=1
20352 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20353 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20354 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 ac_cpp='$CXXCPP $CPPFLAGS'
20362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20366 cat >conftest.$ac_ext <<_ACEOF
20367 #line $LINENO "configure"
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 #include <iterator>
20374 #ifdef HAVE_NAMESPACES
20375 using namespace std;
20380 bidirectional_iterator<int,int> t; return 0;
20385 rm -f conftest.$ac_objext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20387 (eval $ac_compile) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } &&
20391 { ac_try='test -s conftest.$ac_objext'
20392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393 (eval $ac_try) 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 ac_cv_cxx_have_bi_iterator=yes
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_cv_cxx_have_bi_iterator=no
20404 rm -f conftest.$ac_objext conftest.$ac_ext
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20414 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20416 if test "$ac_cv_cxx_have_bi_iterator" = yes
20422 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20423 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20424 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 ac_cpp='$CXXCPP $CPPFLAGS'
20432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20436 cat >conftest.$ac_ext <<_ACEOF
20437 #line $LINENO "configure"
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <iterator>
20444 #ifdef HAVE_NAMESPACES
20445 using namespace std;
20450 forward_iterator<int,int> t; return 0;
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -s conftest.$ac_objext'
20462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463 (eval $ac_try) 2>&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 ac_cv_cxx_have_fwd_iterator=yes
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 ac_cv_cxx_have_fwd_iterator=no
20474 rm -f conftest.$ac_objext conftest.$ac_ext
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20483 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20484 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20485 HAVE_FWD_ITERATOR=0
20486 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20488 HAVE_FWD_ITERATOR=1
20493 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20494 # for constant arguments. Useless!
20495 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20496 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20497 if test "${ac_cv_working_alloca_h+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20500 cat >conftest.$ac_ext <<_ACEOF
20501 #line $LINENO "configure"
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h. */
20507 #include <alloca.h>
20511 char *p = (char *) alloca (2 * sizeof (int));
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20518 (eval $ac_link) 2>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -s conftest$ac_exeext'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
20528 ac_cv_working_alloca_h=yes
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 ac_cv_working_alloca_h=no
20535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20537 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20538 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20539 if test $ac_cv_working_alloca_h = yes; then
20541 cat >>confdefs.h <<\_ACEOF
20542 #define HAVE_ALLOCA_H 1
20547 echo "$as_me:$LINENO: checking for alloca" >&5
20548 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20549 if test "${ac_cv_func_alloca_works+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20553 #line $LINENO "configure"
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20560 # define alloca __builtin_alloca
20563 # include <malloc.h>
20564 # define alloca _alloca
20567 # include <alloca.h>
20572 # ifndef alloca /* predefined by HP cc +Olibcalls */
20583 char *p = (char *) alloca (1);
20588 rm -f conftest.$ac_objext conftest$ac_exeext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20590 (eval $ac_link) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -s conftest$ac_exeext'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_cv_func_alloca_works=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_cv_func_alloca_works=no
20607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20610 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20612 if test $ac_cv_func_alloca_works = yes; then
20614 cat >>confdefs.h <<\_ACEOF
20615 #define HAVE_ALLOCA 1
20619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20620 # that cause trouble. Some versions do not even contain alloca or
20621 # contain a buggy version. If you still want to use their alloca,
20622 # use ar to extract alloca.o from them instead of compiling alloca.c.
20624 ALLOCA=alloca.$ac_objext
20626 cat >>confdefs.h <<\_ACEOF
20631 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20632 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20633 if test "${ac_cv_os_cray+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20637 #line $LINENO "configure"
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 #if defined(CRAY) && ! defined(CRAY2)
20650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20651 $EGREP "webecray" >/dev/null 2>&1; then
20659 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20660 echo "${ECHO_T}$ac_cv_os_cray" >&6
20661 if test $ac_cv_os_cray = yes; then
20662 for ac_func in _getb67 GETB67 getb67; do
20663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20664 echo "$as_me:$LINENO: checking for $ac_func" >&5
20665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20666 if eval "test \"\${$as_ac_var+set}\" = set"; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 cat >conftest.$ac_ext <<_ACEOF
20670 #line $LINENO "configure"
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 /* System header to define __stub macros and hopefully few prototypes,
20677 which can conflict with char $ac_func (); below.
20678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20679 <limits.h> exists even on freestanding compilers. */
20681 # include <limits.h>
20683 # include <assert.h>
20685 /* Override any gcc2 internal prototype to avoid an error. */
20690 /* We use char because int might match the return type of a gcc2
20691 builtin and then its argument prototype would still apply. */
20693 /* The GNU C library defines this for functions which it implements
20694 to always fail with ENOSYS. Some functions are actually named
20695 something starting with __ and the normal name is an alias. */
20696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20699 char (*f) () = $ac_func;
20708 return f != $ac_func;
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715 (eval $ac_link) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } &&
20719 { ac_try='test -s conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 eval "$as_ac_var=yes"
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 eval "$as_ac_var=no"
20732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20736 if test `eval echo '${'$as_ac_var'}'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define CRAY_STACKSEG_END $ac_func
20748 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20749 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20750 if test "${ac_cv_c_stack_direction+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 if test "$cross_compiling" = yes; then
20754 ac_cv_c_stack_direction=0
20756 cat >conftest.$ac_ext <<_ACEOF
20757 #line $LINENO "configure"
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20764 find_stack_direction ()
20766 static char *addr = 0;
20771 return find_stack_direction ();
20774 return (&dummy > addr) ? 1 : -1;
20780 exit (find_stack_direction () < 0);
20783 rm -f conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_c_stack_direction=1
20796 echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ( exit $ac_status )
20801 ac_cv_c_stack_direction=-1
20803 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20806 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20807 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20809 cat >>confdefs.h <<_ACEOF
20810 #define STACK_DIRECTION $ac_cv_c_stack_direction
20818 for ac_header in stdlib.h unistd.h
20820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20822 echo "$as_me:$LINENO: checking for $ac_header" >&5
20823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20830 # Is the header compilable?
20831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20833 cat >conftest.$ac_ext <<_ACEOF
20834 #line $LINENO "configure"
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 $ac_includes_default
20841 #include <$ac_header>
20843 rm -f conftest.$ac_objext
20844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20845 (eval $ac_compile) 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } &&
20849 { ac_try='test -s conftest.$ac_objext'
20850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 ac_header_compiler=yes
20857 echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20860 ac_header_compiler=no
20862 rm -f conftest.$ac_objext conftest.$ac_ext
20863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20864 echo "${ECHO_T}$ac_header_compiler" >&6
20866 # Is the header present?
20867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20869 cat >conftest.$ac_ext <<_ACEOF
20870 #line $LINENO "configure"
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20876 #include <$ac_header>
20878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } >/dev/null; then
20886 if test -s conftest.err; then
20887 ac_cpp_err=$ac_c_preproc_warn_flag
20894 if test -z "$ac_cpp_err"; then
20895 ac_header_preproc=yes
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_header_preproc=no
20902 rm -f conftest.err conftest.$ac_ext
20903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20904 echo "${ECHO_T}$ac_header_preproc" >&6
20906 # So? What about this header?
20907 case $ac_header_compiler:$ac_header_preproc in
20909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20915 ## ------------------------------------ ##
20916 ## Report this to bug-autoconf@gnu.org. ##
20917 ## ------------------------------------ ##
20920 sed "s/^/$as_me: WARNING: /" >&2
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20931 ## ------------------------------------ ##
20932 ## Report this to bug-autoconf@gnu.org. ##
20933 ## ------------------------------------ ##
20936 sed "s/^/$as_me: WARNING: /" >&2
20939 echo "$as_me:$LINENO: checking for $ac_header" >&5
20940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 eval "$as_ac_Header=$ac_header_preproc"
20946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20951 cat >>confdefs.h <<_ACEOF
20952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20960 for ac_func in getpagesize
20962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20963 echo "$as_me:$LINENO: checking for $ac_func" >&5
20964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20965 if eval "test \"\${$as_ac_var+set}\" = set"; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20969 #line $LINENO "configure"
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 /* System header to define __stub macros and hopefully few prototypes,
20976 which can conflict with char $ac_func (); below.
20977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20978 <limits.h> exists even on freestanding compilers. */
20980 # include <limits.h>
20982 # include <assert.h>
20984 /* Override any gcc2 internal prototype to avoid an error. */
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20998 char (*f) () = $ac_func;
21007 return f != $ac_func;
21012 rm -f conftest.$ac_objext conftest$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014 (eval $ac_link) 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } &&
21018 { ac_try='test -s conftest$ac_exeext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 eval "$as_ac_var=yes"
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 eval "$as_ac_var=no"
21031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21035 if test `eval echo '${'$as_ac_var'}'` = yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21043 echo "$as_me:$LINENO: checking for working mmap" >&5
21044 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21045 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 if test "$cross_compiling" = yes; then
21049 ac_cv_func_mmap_fixed_mapped=no
21051 cat >conftest.$ac_ext <<_ACEOF
21052 #line $LINENO "configure"
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 /* malloc might have been renamed as rpl_malloc. */
21062 /* Thanks to Mike Haertel and Jim Avera for this test.
21063 Here is a matrix of mmap possibilities:
21064 mmap private not fixed
21065 mmap private fixed at somewhere currently unmapped
21066 mmap private fixed at somewhere already mapped
21067 mmap shared not fixed
21068 mmap shared fixed at somewhere currently unmapped
21069 mmap shared fixed at somewhere already mapped
21070 For private mappings, we should verify that changes cannot be read()
21071 back from the file, nor mmap's back from the file at a different
21072 address. (There have been systems where private was not correctly
21073 implemented like the infamous i386 svr4.0, and systems where the
21074 VM page cache was not coherent with the file system buffer cache
21075 like early versions of FreeBSD and possibly contemporary NetBSD.)
21076 For shared mappings, we should conversely verify that changes get
21077 propagated back to all the places they're supposed to be.
21079 Grep wants private fixed already mapped.
21080 The main things grep needs to know about mmap are:
21081 * does it exist and is it safe to write into the mmap'd area
21082 * how to use it (BSD variants) */
21085 #include <sys/mman.h>
21087 #if !STDC_HEADERS && !HAVE_STDLIB_H
21091 /* This mess was copied from the GNU getpagesize.h. */
21092 #if !HAVE_GETPAGESIZE
21093 /* Assume that all systems that can run configure have sys/param.h. */
21094 # if !HAVE_SYS_PARAM_H
21095 # define HAVE_SYS_PARAM_H 1
21098 # ifdef _SC_PAGESIZE
21099 # define getpagesize() sysconf(_SC_PAGESIZE)
21100 # else /* no _SC_PAGESIZE */
21101 # if HAVE_SYS_PARAM_H
21102 # include <sys/param.h>
21103 # ifdef EXEC_PAGESIZE
21104 # define getpagesize() EXEC_PAGESIZE
21105 # else /* no EXEC_PAGESIZE */
21107 # define getpagesize() NBPG * CLSIZE
21110 # endif /* no CLSIZE */
21111 # else /* no NBPG */
21113 # define getpagesize() NBPC
21114 # else /* no NBPC */
21116 # define getpagesize() PAGESIZE
21117 # endif /* PAGESIZE */
21118 # endif /* no NBPC */
21119 # endif /* no NBPG */
21120 # endif /* no EXEC_PAGESIZE */
21121 # else /* no HAVE_SYS_PARAM_H */
21122 # define getpagesize() 8192 /* punt totally */
21123 # endif /* no HAVE_SYS_PARAM_H */
21124 # endif /* no _SC_PAGESIZE */
21126 #endif /* no HAVE_GETPAGESIZE */
21131 char *data, *data2, *data3;
21135 pagesize = getpagesize ();
21137 /* First, make a file with some known garbage in it. */
21138 data = (char *) malloc (pagesize);
21141 for (i = 0; i < pagesize; ++i)
21142 *(data + i) = rand ();
21144 fd = creat ("conftest.mmap", 0600);
21147 if (write (fd, data, pagesize) != pagesize)
21151 /* Next, try to mmap the file at a fixed address which already has
21152 something else allocated at it. If we can, also make sure that
21153 we see the same garbage. */
21154 fd = open ("conftest.mmap", O_RDWR);
21157 data2 = (char *) malloc (2 * pagesize);
21160 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21161 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21162 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21164 for (i = 0; i < pagesize; ++i)
21165 if (*(data + i) != *(data2 + i))
21168 /* Finally, make sure that changes to the mapped area do not
21169 percolate back to the file as seen by read(). (This is a bug on
21170 some variants of i386 svr4.0.) */
21171 for (i = 0; i < pagesize; ++i)
21172 *(data2 + i) = *(data2 + i) + 1;
21173 data3 = (char *) malloc (pagesize);
21176 if (read (fd, data3, pagesize) != pagesize)
21178 for (i = 0; i < pagesize; ++i)
21179 if (*(data + i) != *(data3 + i))
21185 rm -f conftest$ac_exeext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187 (eval $ac_link) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_func_mmap_fixed_mapped=yes
21198 echo "$as_me: program exited with status $ac_status" >&5
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ( exit $ac_status )
21203 ac_cv_func_mmap_fixed_mapped=no
21205 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21212 cat >>confdefs.h <<\_ACEOF
21213 #define HAVE_MMAP 1
21217 rm -f conftest.mmap
21219 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21221 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21222 echo "$as_me: error: mmap() required but not found" >&2;}
21223 { (exit 1); exit 1; }; }
21225 echo "$as_me:$LINENO: checking for mmap of files" >&5
21226 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21227 if test "${ac_cv_func_mmap_file+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 ac_cpp='$CPP $CPPFLAGS'
21234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21238 if test "$cross_compiling" = yes; then
21239 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21240 See \`config.log' for more details." >&5
21241 echo "$as_me: error: cannot run test program while cross compiling
21242 See \`config.log' for more details." >&2;}
21243 { (exit 1); exit 1; }; }
21245 cat >conftest.$ac_ext <<_ACEOF
21246 #line $LINENO "configure"
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21253 #ifdef HAVE_SYS_TYPES_H
21254 #include <sys/types.h>
21257 #ifdef HAVE_SYS_MMAN_H
21258 #include <sys/mman.h>
21261 #ifdef HAVE_FCNTL_H
21267 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21269 rm -f conftest$ac_exeext
21270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21271 (eval $ac_link) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_cv_func_mmap_file=yes
21282 echo "$as_me: program exited with status $ac_status" >&5
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ( exit $ac_status )
21287 ac_cv_func_mmap_file=no
21289 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21292 ac_cpp='$CPP $CPPFLAGS'
21293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21300 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21301 if test "$ac_cv_func_mmap_file" = yes; then
21303 cat >>confdefs.h <<\_ACEOF
21304 #define HAVE_MMAP_FILE
21311 if test "$ac_cv_func_mmap_file" = "no"
21313 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21314 echo "$as_me: error: mmap() of files required but not found" >&2;}
21315 { (exit 1); exit 1; }; }
21317 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21318 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21319 if test "${ac_cv_header_mmap_anon+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_cpp='$CPP $CPPFLAGS'
21326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21330 cat >conftest.$ac_ext <<_ACEOF
21331 #line $LINENO "configure"
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <sys/mman.h>
21338 #include <unistd.h>
21343 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21348 rm -f conftest.$ac_objext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -s conftest.$ac_objext'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; }; then
21360 ac_cv_header_mmap_anon=yes
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 ac_cv_header_mmap_anon=no
21367 rm -f conftest.$ac_objext conftest.$ac_ext
21369 ac_cpp='$CPP $CPPFLAGS'
21370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21376 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21377 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21378 if test "$ac_cv_header_mmap_anon" = yes; then
21380 cat >>confdefs.h <<\_ACEOF
21381 #define HAVE_MMAP_ANONYMOUS
21386 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21387 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21388 if test "${ac_cv_type_signal+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 cat >conftest.$ac_ext <<_ACEOF
21392 #line $LINENO "configure"
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <sys/types.h>
21399 #include <signal.h>
21404 extern "C" void (*signal (int, void (*)(int)))(int);
21406 void (*signal ()) ();
21417 rm -f conftest.$ac_objext
21418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21419 (eval $ac_compile) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -s conftest.$ac_objext'
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; }; then
21429 ac_cv_type_signal=void
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ac_cv_type_signal=int
21436 rm -f conftest.$ac_objext conftest.$ac_ext
21438 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21439 echo "${ECHO_T}$ac_cv_type_signal" >&6
21441 cat >>confdefs.h <<_ACEOF
21442 #define RETSIGTYPE $ac_cv_type_signal
21452 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace
21454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21455 echo "$as_me:$LINENO: checking for $ac_func" >&5
21456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21457 if eval "test \"\${$as_ac_var+set}\" = set"; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 cat >conftest.$ac_ext <<_ACEOF
21461 #line $LINENO "configure"
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 /* System header to define __stub macros and hopefully few prototypes,
21468 which can conflict with char $ac_func (); below.
21469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21470 <limits.h> exists even on freestanding compilers. */
21472 # include <limits.h>
21474 # include <assert.h>
21476 /* Override any gcc2 internal prototype to avoid an error. */
21481 /* We use char because int might match the return type of a gcc2
21482 builtin and then its argument prototype would still apply. */
21484 /* The GNU C library defines this for functions which it implements
21485 to always fail with ENOSYS. Some functions are actually named
21486 something starting with __ and the normal name is an alias. */
21487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21490 char (*f) () = $ac_func;
21499 return f != $ac_func;
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -s conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 eval "$as_ac_var=yes"
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 eval "$as_ac_var=no"
21523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21527 if test `eval echo '${'$as_ac_var'}'` = yes; then
21528 cat >>confdefs.h <<_ACEOF
21529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21535 echo "$as_me:$LINENO: checking for mprotect" >&5
21536 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21537 if test "${ac_cv_func_mprotect+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 cat >conftest.$ac_ext <<_ACEOF
21541 #line $LINENO "configure"
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 /* System header to define __stub macros and hopefully few prototypes,
21548 which can conflict with char mprotect (); below.
21549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21550 <limits.h> exists even on freestanding compilers. */
21552 # include <limits.h>
21554 # include <assert.h>
21556 /* Override any gcc2 internal prototype to avoid an error. */
21561 /* We use char because int might match the return type of a gcc2
21562 builtin and then its argument prototype would still apply. */
21564 /* The GNU C library defines this for functions which it implements
21565 to always fail with ENOSYS. Some functions are actually named
21566 something starting with __ and the normal name is an alias. */
21567 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21570 char (*f) () = mprotect;
21579 return f != mprotect;
21584 rm -f conftest.$ac_objext conftest$ac_exeext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
21590 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21596 ac_cv_func_mprotect=yes
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ac_cv_func_mprotect=no
21603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21605 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21606 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21607 if test $ac_cv_func_mprotect = yes; then
21610 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21611 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21612 { (exit 1); exit 1; }; }
21620 ac_cpp='$CPP $CPPFLAGS'
21621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21625 oldcflags="$CFLAGS"
21626 CFLAGS="$CFLAGS -Wl,-R."
21627 cat >conftest.$ac_ext <<_ACEOF
21628 int main() { return 0; }
21630 rm -f conftest.$ac_objext conftest$ac_exeext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try='test -s conftest$ac_exeext'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ac_cv_link_use_r=yes
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ac_cv_link_use_r=no
21649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21650 CFLAGS="$oldcflags"
21652 ac_cpp='$CPP $CPPFLAGS'
21653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21657 if test "$ac_cv_link_use_r" = yes
21660 cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_LINK_R 1
21667 # Check whether --enable-optimized or --disable-optimized was given.
21668 if test "${enable_optimized+set}" = set; then
21669 enableval="$enable_optimized"
21674 if test ${enableval} = "no"
21679 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21683 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21684 if test "${enable_spec2000+set}" = set; then
21685 enableval="$enable_spec2000"
21690 if test ${enableval} = "no"
21692 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21694 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21696 USE_SPEC=USE_SPEC=1
21704 if test ${enableval} = ""
21706 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21709 SPEC_ROOT=${enableval}
21712 USE_SPEC=USE_SPEC=1
21716 # Check whether --enable-spec95 or --disable-spec95 was given.
21717 if test "${enable_spec95+set}" = set; then
21718 enableval="$enable_spec95"
21723 if test ${enableval} = "no"
21725 if test -d /home/vadve/shared/benchmarks/spec95/benchspec
21727 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21729 USE_SPEC95=USE_SPEC95=1
21737 if test ${enableval} = ""
21739 SPEC95_ROOT=/home/vadve/shared/benchmarks/spec95/benchspec
21742 SPEC95_ROOT=${enableval}
21745 USE_SPEC95=USE_SPEC95=1
21749 # Check whether --enable-povray or --disable-povray was given.
21750 if test "${enable_povray+set}" = set; then
21751 enableval="$enable_povray"
21756 if test ${enableval} = "no"
21758 if test -d /home/vadve/criswell/Downloads/povray-3.50c
21760 POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21762 USE_POVRAY=USE_POVRAY=1
21770 if test ${enableval} = ""
21772 POVRAY_ROOT=/home/vadve/criswell/Downloads/povray-3.50c
21775 POVRAY_ROOT=${enableval}
21778 USE_POVRAY=USE_POVRAY=1
21783 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21784 if test "${enable_precompiled_bytecode+set}" = set; then
21785 enableval="$enable_precompiled_bytecode"
21790 if test ${enableval} = "no"
21795 UPB=USE_PRECOMPILED_BYTECODE=1
21799 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21800 if test "${enable_llc_diffs+set}" = set; then
21801 enableval="$enable_llc_diffs"
21806 if test ${enableval} = "no"
21808 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
21815 # Check whether --enable-jit or --disable-jit was given.
21816 if test "${enable_jit+set}" = set; then
21817 enableval="$enable_jit"
21822 if test ${enableval} = "no"
21829 JIT=TARGET_HAS_JIT=1
21833 JIT=TARGET_HAS_JIT=1
21844 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21845 if test "${with_llvmgccdir+set}" = set; then
21846 withval="$with_llvmgccdir"
21847 LLVMGCCDIR=$withval
21850 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21851 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21853 if test -d "$LLVMGCCDIR"
21855 if test -x "$LLVMGCCDIR/bin/gcc"
21857 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21861 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21862 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21863 if test "$LLVM_GCC_CHECK" = "no"
21867 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21868 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21870 if test -x "$LLVM_GCC_CHECK"
21872 cp /dev/null conftest.c
21873 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21879 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
21880 LLVMCC1=$llvmcc1path
21882 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
21883 LLVMCC1PLUS=$llvmcc1pluspath
21886 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21887 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21888 if test "$LLVM_GCC_SANE" = "no"
21894 # Check whether --with-bcrepos or --without-bcrepos was given.
21895 if test "${with_bcrepos+set}" = set; then
21896 withval="$with_bcrepos"
21900 BCR=/home/vadve/lattner/LLVMPrograms
21905 # Check whether --with-papi or --without-papi was given.
21906 if test "${with_papi+set}" = set; then
21907 withval="$with_papi"
21911 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
21915 echo "$as_me:$LINENO: checking for shared library suffix" >&5
21916 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21917 eval "SHLIBEXT=$shrext"
21918 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21919 echo "${ECHO_T}$SHLIBEXT" >&6
21923 cat >>confdefs.h <<_ACEOF
21924 #define SHLIBEXT "$SHLIBEXT"
21928 ac_config_files="$ac_config_files Makefile.config include/Support/iterator"
21929 cat >confcache <<\_ACEOF
21930 # This file is a shell script that caches the results of configure
21931 # tests run on this system so they can be shared between configure
21932 # scripts and configure runs, see configure's option --config-cache.
21933 # It is not useful on other systems. If it contains results you don't
21934 # want to keep, you may remove or edit it.
21936 # config.status only pays attention to the cache file if you give it
21937 # the --recheck option to rerun configure.
21939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21941 # following values.
21945 # The following way of writing the cache mishandles newlines in values,
21946 # but we know of no workaround that is simple, portable, and efficient.
21947 # So, don't put newlines in cache variables' values.
21948 # Ultrix sh set writes to stderr and can't be redirected directly,
21949 # and sets the high bit in the cache file unless we assign to the vars.
21952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21954 # `set' does not quote correctly, so add quotes (double-quote
21955 # substitution turns \\\\ into \\, and sed turns \\ into \).
21958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21961 # `set' quotes correctly as required by POSIX, so do not add quotes.
21963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21974 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21975 if test -w $cache_file; then
21976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21977 cat confcache >$cache_file
21979 echo "not updating unwritable cache $cache_file"
21984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21985 # Let make expand exec_prefix.
21986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21990 # trailing colons and then remove the whole line if VPATH becomes empty
21991 # (actually we leave an empty line to preserve line numbers).
21992 if test "x$srcdir" = x.; then
21993 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21994 s/:*\$(srcdir):*/:/;
21995 s/:*\${srcdir}:*/:/;
21997 s/^\([^=]*=[ ]*\):*/\1/;
22003 DEFS=-DHAVE_CONFIG_H
22007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22008 # 1. Remove the extension, and $U if already installed.
22009 ac_i=`echo "$ac_i" |
22010 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22012 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22013 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22015 LIBOBJS=$ac_libobjs
22017 LTLIBOBJS=$ac_ltlibobjs
22021 : ${CONFIG_STATUS=./config.status}
22022 ac_clean_files_save=$ac_clean_files
22023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22026 cat >$CONFIG_STATUS <<_ACEOF
22028 # Generated by $as_me.
22029 # Run this file to recreate the current configuration.
22030 # Compiler output produced by configure, useful for debugging
22031 # configure, is in config.log if it exists.
22034 ac_cs_recheck=false
22036 SHELL=\${CONFIG_SHELL-$SHELL}
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 ## --------------------- ##
22041 ## M4sh Initialization. ##
22042 ## --------------------- ##
22044 # Be Bourne compatible
22045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22049 # is contrary to our usage. Disable this feature.
22050 alias -g '${1+"$@"}'='"$@"'
22051 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22055 # Support unset when possible.
22056 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22063 # Work around bugs in pre-3.0 UWIN ksh.
22064 $as_unset ENV MAIL MAILPATH
22071 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22072 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22073 LC_TELEPHONE LC_TIME
22075 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22076 eval $as_var=C; export $as_var
22082 # Required to use basename.
22083 if expr a : '\(a\)' >/dev/null 2>&1; then
22089 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22090 as_basename=basename
22096 # Name of the executable.
22097 as_me=`$as_basename "$0" ||
22098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22099 X"$0" : 'X\(//\)$' \| \
22100 X"$0" : 'X\(/\)$' \| \
22101 . : '\(.\)' 2>/dev/null ||
22103 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22104 /^X\/\(\/\/\)$/{ s//\1/; q; }
22105 /^X\/\(\/\).*/{ s//\1/; q; }
22109 # PATH needs CR, and LINENO needs CR and PATH.
22110 # Avoid depending upon Character Ranges.
22111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22114 as_cr_digits='0123456789'
22115 as_cr_alnum=$as_cr_Letters$as_cr_digits
22117 # The user is always right.
22118 if test "${PATH_SEPARATOR+set}" != set; then
22119 echo "#! /bin/sh" >conf$$.sh
22120 echo "exit 0" >>conf$$.sh
22122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22131 as_lineno_1=$LINENO
22132 as_lineno_2=$LINENO
22133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22134 test "x$as_lineno_1" != "x$as_lineno_2" &&
22135 test "x$as_lineno_3" = "x$as_lineno_2" || {
22136 # Find who we are. Look in the path if we contain no path at all
22139 *[\\/]* ) as_myself=$0 ;;
22140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22141 for as_dir in $PATH
22144 test -z "$as_dir" && as_dir=.
22145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22150 # We did not find ourselves, most probably we were run as `sh COMMAND'
22151 # in which case we are not to be found in the path.
22152 if test "x$as_myself" = x; then
22155 if test ! -f "$as_myself"; then
22156 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22157 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22158 { (exit 1); exit 1; }; }
22160 case $CONFIG_SHELL in
22162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22163 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22166 test -z "$as_dir" && as_dir=.
22167 for as_base in sh bash ksh sh5; do
22170 if ("$as_dir/$as_base" -c '
22171 as_lineno_1=$LINENO
22172 as_lineno_2=$LINENO
22173 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22174 test "x$as_lineno_1" != "x$as_lineno_2" &&
22175 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22176 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22177 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22178 CONFIG_SHELL=$as_dir/$as_base
22179 export CONFIG_SHELL
22180 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22188 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22189 # uniformly replaced by the line number. The first 'sed' inserts a
22190 # line-number line before each line; the second 'sed' does the real
22191 # work. The second script uses 'N' to pair each line-number line
22192 # with the numbered line, and appends trailing '-' during
22193 # substitution so that $LINENO is not a special case at line end.
22194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22195 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22196 sed '=' <$as_myself |
22201 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22204 s,^['$as_cr_digits']*\n,,
22205 ' >$as_me.lineno &&
22206 chmod +x $as_me.lineno ||
22207 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22208 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22209 { (exit 1); exit 1; }; }
22211 # Don't try to exec as it changes $[0], causing all sort of problems
22212 # (the dirname of $[0] is not the place where we might find the
22213 # original and so on. Autoconf is especially sensible to this).
22215 # Exit status is that of the last command.
22220 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22221 *c*,-n*) ECHO_N= ECHO_C='
22223 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22224 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22227 if expr a : '\(a\)' >/dev/null 2>&1; then
22233 rm -f conf$$ conf$$.exe conf$$.file
22235 if ln -s conf$$.file conf$$ 2>/dev/null; then
22236 # We could just check for DJGPP; but this test a) works b) is more generic
22237 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22238 if test -f conf$$.exe; then
22239 # Don't use ln at all; we don't have any links
22244 elif ln conf$$.file conf$$ 2>/dev/null; then
22249 rm -f conf$$ conf$$.exe conf$$.file
22251 if mkdir -p . 2>/dev/null; then
22257 as_executable_p="test -f"
22259 # Sed expression to map a string onto a valid CPP name.
22260 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22262 # Sed expression to map a string onto a valid variable name.
22263 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22267 # We need space, tab and new line, in precisely that order.
22277 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22278 # report actual input values of CONFIG_FILES etc. instead of their
22279 # values after options handling. Logging --version etc. is OK.
22283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22284 ## Running $as_me. ##
22289 This file was extended by [LLVM] $as_me [1.1], which was
22290 generated by GNU Autoconf 2.57. Invocation command line was
22292 CONFIG_FILES = $CONFIG_FILES
22293 CONFIG_HEADERS = $CONFIG_HEADERS
22294 CONFIG_LINKS = $CONFIG_LINKS
22295 CONFIG_COMMANDS = $CONFIG_COMMANDS
22299 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22303 # Files that config.status was made for.
22304 if test -n "$ac_config_files"; then
22305 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22308 if test -n "$ac_config_headers"; then
22309 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22312 if test -n "$ac_config_links"; then
22313 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22316 if test -n "$ac_config_commands"; then
22317 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22320 cat >>$CONFIG_STATUS <<\_ACEOF
22323 \`$as_me' instantiates files from templates according to the
22324 current configuration.
22326 Usage: $0 [OPTIONS] [FILE]...
22328 -h, --help print this help, then exit
22329 -V, --version print version number, then exit
22330 -q, --quiet do not print progress messages
22331 -d, --debug don't remove temporary files
22332 --recheck update $as_me by reconfiguring in the same conditions
22333 --file=FILE[:TEMPLATE]
22334 instantiate the configuration file FILE
22335 --header=FILE[:TEMPLATE]
22336 instantiate the configuration header FILE
22338 Configuration files:
22341 Configuration headers:
22344 Configuration commands:
22347 Report bugs to <bug-autoconf@gnu.org>."
22350 cat >>$CONFIG_STATUS <<_ACEOF
22352 [LLVM] config.status [1.1]
22353 configured by $0, generated by GNU Autoconf 2.57,
22354 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22356 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22357 Free Software Foundation, Inc.
22358 This config.status script is free software; the Free Software Foundation
22359 gives unlimited permission to copy, distribute and modify it."
22364 cat >>$CONFIG_STATUS <<\_ACEOF
22365 # If no file are specified by the user, then we need to provide default
22366 # value. By we need to know if files were specified by the user.
22372 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22373 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22381 *) # This is not an option, so the user has probably given explicit
22384 ac_need_defaults=false;;
22388 # Handling of the options.
22390 cat >>$CONFIG_STATUS <<\_ACEOF
22391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22393 --version | --vers* | -V )
22394 echo "$ac_cs_version"; exit 0 ;;
22396 # Conflict between --help and --header
22397 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22398 Try \`$0 --help' for more information." >&5
22399 echo "$as_me: error: ambiguous option: $1
22400 Try \`$0 --help' for more information." >&2;}
22401 { (exit 1); exit 1; }; };;
22402 --help | --hel | -h )
22403 echo "$ac_cs_usage"; exit 0 ;;
22404 --debug | --d* | -d )
22406 --file | --fil | --fi | --f )
22408 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22409 ac_need_defaults=false;;
22410 --header | --heade | --head | --hea )
22412 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22413 ac_need_defaults=false;;
22414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22415 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22418 # This is an error.
22419 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22420 Try \`$0 --help' for more information." >&5
22421 echo "$as_me: error: unrecognized option: $1
22422 Try \`$0 --help' for more information." >&2;}
22423 { (exit 1); exit 1; }; } ;;
22425 *) ac_config_targets="$ac_config_targets $1" ;;
22431 ac_configure_extra_args=
22433 if $ac_cs_silent; then
22435 ac_configure_extra_args="$ac_configure_extra_args --silent"
22439 cat >>$CONFIG_STATUS <<_ACEOF
22440 if \$ac_cs_recheck; then
22441 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22442 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22447 cat >>$CONFIG_STATUS <<_ACEOF
22449 # INIT-COMMANDS section.
22452 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22453 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22454 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22455 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22458 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22459 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22477 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22478 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22479 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22480 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22481 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22482 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22483 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22484 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22485 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22486 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22487 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22488 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22489 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22490 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22491 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22492 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22493 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22494 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22495 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22496 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22497 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22498 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22499 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22505 cat >>$CONFIG_STATUS <<\_ACEOF
22506 for ac_config_target in $ac_config_targets
22508 case "$ac_config_target" in
22509 # Handling of arguments.
22510 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22511 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22512 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22513 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22514 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22515 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22516 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22517 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22518 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22519 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22520 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22521 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22522 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22523 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22524 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22525 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22526 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22527 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22528 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22529 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22530 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22531 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22532 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22533 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22534 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22535 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22536 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22537 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22538 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22539 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22540 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22541 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22542 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22543 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22544 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22545 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22546 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22547 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22548 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22549 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22550 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22551 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22552 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22553 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22554 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22555 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22556 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22557 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22558 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22559 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22560 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22563 { (exit 1); exit 1; }; };;
22567 # If the user did not use the arguments to specify the items to instantiate,
22568 # then the envvar interface is used. Set only those that are not.
22569 # We use the long form for the default assignment because of an extremely
22570 # bizarre bug on SunOS 4.1.3.
22571 if $ac_need_defaults; then
22572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22577 # Have a temporary directory for convenience. Make it in the build tree
22578 # simply because there is no reason to put it here, and in addition,
22579 # creating and moving files from /tmp can sometimes cause problems.
22580 # Create a temporary directory, and hook for its removal unless debugging.
22583 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22584 trap '{ (exit 1); exit 1; }' 1 2 13 15
22587 # Create a (secure) tmp directory for tmp files.
22590 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22591 test -n "$tmp" && test -d "$tmp"
22594 tmp=./confstat$$-$RANDOM
22595 (umask 077 && mkdir $tmp)
22598 echo "$me: cannot create a temporary directory in ." >&2
22599 { (exit 1); exit 1; }
22604 cat >>$CONFIG_STATUS <<_ACEOF
22607 # CONFIG_FILES section.
22610 # No need to generate the scripts if there are no CONFIG_FILES.
22611 # This happens for instance when ./config.status config.h
22612 if test -n "\$CONFIG_FILES"; then
22613 # Protect against being on the right side of a sed subst in config.status.
22614 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22615 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22616 s,@SHELL@,$SHELL,;t t
22617 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22618 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22619 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22620 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22621 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22622 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22623 s,@exec_prefix@,$exec_prefix,;t t
22624 s,@prefix@,$prefix,;t t
22625 s,@program_transform_name@,$program_transform_name,;t t
22626 s,@bindir@,$bindir,;t t
22627 s,@sbindir@,$sbindir,;t t
22628 s,@libexecdir@,$libexecdir,;t t
22629 s,@datadir@,$datadir,;t t
22630 s,@sysconfdir@,$sysconfdir,;t t
22631 s,@sharedstatedir@,$sharedstatedir,;t t
22632 s,@localstatedir@,$localstatedir,;t t
22633 s,@libdir@,$libdir,;t t
22634 s,@includedir@,$includedir,;t t
22635 s,@oldincludedir@,$oldincludedir,;t t
22636 s,@infodir@,$infodir,;t t
22637 s,@mandir@,$mandir,;t t
22638 s,@build_alias@,$build_alias,;t t
22639 s,@host_alias@,$host_alias,;t t
22640 s,@target_alias@,$target_alias,;t t
22641 s,@DEFS@,$DEFS,;t t
22642 s,@ECHO_C@,$ECHO_C,;t t
22643 s,@ECHO_N@,$ECHO_N,;t t
22644 s,@ECHO_T@,$ECHO_T,;t t
22645 s,@LIBS@,$LIBS,;t t
22646 s,@subdirs@,$subdirs,;t t
22647 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22648 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22649 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22650 s,@build@,$build,;t t
22651 s,@build_cpu@,$build_cpu,;t t
22652 s,@build_vendor@,$build_vendor,;t t
22653 s,@build_os@,$build_os,;t t
22654 s,@host@,$host,;t t
22655 s,@host_cpu@,$host_cpu,;t t
22656 s,@host_vendor@,$host_vendor,;t t
22657 s,@host_os@,$host_os,;t t
22658 s,@target@,$target,;t t
22659 s,@target_cpu@,$target_cpu,;t t
22660 s,@target_vendor@,$target_vendor,;t t
22661 s,@target_os@,$target_os,;t t
22663 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22664 s,@ARCH@,$ARCH,;t t
22666 s,@CXXFLAGS@,$CXXFLAGS,;t t
22667 s,@LDFLAGS@,$LDFLAGS,;t t
22668 s,@CPPFLAGS@,$CPPFLAGS,;t t
22669 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22670 s,@EXEEXT@,$EXEEXT,;t t
22671 s,@OBJEXT@,$OBJEXT,;t t
22673 s,@CFLAGS@,$CFLAGS,;t t
22674 s,@ac_ct_CC@,$ac_ct_CC,;t t
22676 s,@ifGNUmake@,$ifGNUmake,;t t
22678 s,@LEXLIB@,$LEXLIB,;t t
22679 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22680 s,@YACC@,$YACC,;t t
22681 s,@BISON@,$BISON,;t t
22682 s,@EGREP@,$EGREP,;t t
22683 s,@LN_S@,$LN_S,;t t
22684 s,@ECHO@,$ECHO,;t t
22686 s,@ac_ct_AR@,$ac_ct_AR,;t t
22687 s,@RANLIB@,$RANLIB,;t t
22688 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22689 s,@STRIP@,$STRIP,;t t
22690 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22691 s,@CXXCPP@,$CXXCPP,;t t
22693 s,@FFLAGS@,$FFLAGS,;t t
22694 s,@ac_ct_F77@,$ac_ct_F77,;t t
22695 s,@LIBTOOL@,$LIBTOOL,;t t
22697 s,@ETAGS@,$ETAGS,;t t
22698 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22699 s,@PYTHON@,$PYTHON,;t t
22700 s,@QMTEST@,$QMTEST,;t t
22701 s,@ENDIAN@,$ENDIAN,;t t
22702 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22703 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22704 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22705 s,@ALLOCA@,$ALLOCA,;t t
22706 s,@MMAP_FILE@,$MMAP_FILE,;t t
22707 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22708 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22709 s,@USE_SPEC@,$USE_SPEC,;t t
22710 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22711 s,@USE_SPEC95@,$USE_SPEC95,;t t
22712 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22713 s,@USE_POVRAY@,$USE_POVRAY,;t t
22715 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22717 s,@LLVMCC1@,$LLVMCC1,;t t
22718 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22720 s,@PAPIDIR@,$PAPIDIR,;t t
22721 s,@SHLIBEXT@,$SHLIBEXT,;t t
22722 s,@LIBOBJS@,$LIBOBJS,;t t
22723 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22728 cat >>$CONFIG_STATUS <<\_ACEOF
22729 # Split the substitutions into bite-sized pieces for seds with
22730 # small command number limits, like on Digital OSF/1 and HP-UX.
22731 ac_max_sed_lines=48
22732 ac_sed_frag=1 # Number of current file.
22733 ac_beg=1 # First line for current file.
22734 ac_end=$ac_max_sed_lines # Line after last line for current file.
22737 while $ac_more_lines; do
22738 if test $ac_beg -gt 1; then
22739 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22741 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22743 if test ! -s $tmp/subs.frag; then
22744 ac_more_lines=false
22746 # The purpose of the label and of the branching condition is to
22747 # speed up the sed processing (if there are no `@' at all, there
22748 # is no need to browse any of the substitutions).
22749 # These are the two extra sed commands mentioned above.
22751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22752 if test -z "$ac_sed_cmds"; then
22753 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22755 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22757 ac_sed_frag=`expr $ac_sed_frag + 1`
22759 ac_end=`expr $ac_end + $ac_max_sed_lines`
22762 if test -z "$ac_sed_cmds"; then
22765 fi # test -n "$CONFIG_FILES"
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22772 - | *:- | *:-:* ) # input from stdin
22774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22778 * ) ac_file_in=$ac_file.in ;;
22781 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22782 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22784 X"$ac_file" : 'X\(//\)[^/]' \| \
22785 X"$ac_file" : 'X\(//\)$' \| \
22786 X"$ac_file" : 'X\(/\)' \| \
22787 . : '\(.\)' 2>/dev/null ||
22789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22791 /^X\(\/\/\)$/{ s//\1/; q; }
22792 /^X\(\/\).*/{ s//\1/; q; }
22794 { if $as_mkdir_p; then
22799 while test ! -d "$as_dir"; do
22800 as_dirs="$as_dir $as_dirs"
22801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22803 X"$as_dir" : 'X\(//\)[^/]' \| \
22804 X"$as_dir" : 'X\(//\)$' \| \
22805 X"$as_dir" : 'X\(/\)' \| \
22806 . : '\(.\)' 2>/dev/null ||
22808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22810 /^X\(\/\/\)$/{ s//\1/; q; }
22811 /^X\(\/\).*/{ s//\1/; q; }
22814 test ! -n "$as_dirs" || mkdir $as_dirs
22815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22817 { (exit 1); exit 1; }; }; }
22821 if test "$ac_dir" != .; then
22822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22823 # A "../" for each directory in $ac_dir_suffix.
22824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22826 ac_dir_suffix= ac_top_builddir=
22830 .) # No --srcdir option. We are building in place.
22832 if test -z "$ac_top_builddir"; then
22835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22837 [\\/]* | ?:[\\/]* ) # Absolute path.
22838 ac_srcdir=$srcdir$ac_dir_suffix;
22839 ac_top_srcdir=$srcdir ;;
22840 *) # Relative path.
22841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22844 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22846 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22847 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22848 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22849 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22854 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22857 if test x"$ac_file" != x-; then
22858 { echo "$as_me:$LINENO: creating $ac_file" >&5
22859 echo "$as_me: creating $ac_file" >&6;}
22862 # Let's still pretend it is `configure' which instantiates (i.e., don't
22863 # use $as_me), people would be surprised to read:
22864 # /* config.h. Generated by config.status. */
22865 if test x"$ac_file" = x-; then
22868 configure_input="$ac_file. "
22870 configure_input=$configure_input"Generated from `echo $ac_file_in |
22871 sed 's,.*/,,'` by configure."
22873 # First look for the input files in the build tree, otherwise in the
22875 ac_file_inputs=`IFS=:
22876 for f in $ac_file_in; do
22878 -) echo $tmp/stdin ;;
22880 # Absolute (can't be DOS-style, as IFS=:)
22881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22882 echo "$as_me: error: cannot find input file: $f" >&2;}
22883 { (exit 1); exit 1; }; }
22886 if test -f "$f"; then
22889 elif test -f "$srcdir/$f"; then
22894 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22895 echo "$as_me: error: cannot find input file: $f" >&2;}
22896 { (exit 1); exit 1; }; }
22899 done` || { (exit 1); exit 1; }
22901 cat >>$CONFIG_STATUS <<_ACEOF
22905 cat >>$CONFIG_STATUS <<\_ACEOF
22907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22908 s,@configure_input@,$configure_input,;t t
22909 s,@srcdir@,$ac_srcdir,;t t
22910 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22911 s,@top_srcdir@,$ac_top_srcdir,;t t
22912 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22913 s,@builddir@,$ac_builddir,;t t
22914 s,@abs_builddir@,$ac_abs_builddir,;t t
22915 s,@top_builddir@,$ac_top_builddir,;t t
22916 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22917 s,@INSTALL@,$ac_INSTALL,;t t
22918 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22920 if test x"$ac_file" != x-; then
22921 mv $tmp/out $ac_file
22929 cat >>$CONFIG_STATUS <<\_ACEOF
22932 # CONFIG_HEADER section.
22935 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22936 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22938 # ac_d sets the value in "#define NAME VALUE" lines.
22939 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22940 ac_dB='[ ].*$,\1#\2'
22943 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22944 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22945 ac_uB='$,\1#\2define\3'
22949 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22952 - | *:- | *:-:* ) # input from stdin
22954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22958 * ) ac_file_in=$ac_file.in ;;
22961 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22962 echo "$as_me: creating $ac_file" >&6;}
22964 # First look for the input files in the build tree, otherwise in the
22966 ac_file_inputs=`IFS=:
22967 for f in $ac_file_in; do
22969 -) echo $tmp/stdin ;;
22971 # Absolute (can't be DOS-style, as IFS=:)
22972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22973 echo "$as_me: error: cannot find input file: $f" >&2;}
22974 { (exit 1); exit 1; }; }
22977 if test -f "$f"; then
22980 elif test -f "$srcdir/$f"; then
22985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22986 echo "$as_me: error: cannot find input file: $f" >&2;}
22987 { (exit 1); exit 1; }; }
22990 done` || { (exit 1); exit 1; }
22991 # Remove the trailing spaces.
22992 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22996 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22997 # `conftest.undefs', that substitutes the proper values into
22998 # config.h.in to produce config.h. The first handles `#define'
22999 # templates, and the second `#undef' templates.
23000 # And first: Protect against being on the right side of a sed subst in
23001 # config.status. Protect against being in an unquoted here document
23002 # in config.status.
23003 rm -f conftest.defines conftest.undefs
23004 # Using a here document instead of a string reduces the quoting nightmare.
23005 # Putting comments in sed scripts is not portable.
23007 # `end' is used to avoid that the second main sed command (meant for
23008 # 0-ary CPP macros) applies to n-ary macro definitions.
23009 # See the Autoconf documentation for `clear'.
23010 cat >confdef2sed.sed <<\_ACEOF
23015 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23017 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23020 # If some macros were called several times there might be several times
23021 # the same #defines, which is useless. Nevertheless, we may not want to
23022 # sort them, since we want the *last* AC-DEFINE to be honored.
23023 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23024 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23025 rm -f confdef2sed.sed
23027 # This sed command replaces #undef with comments. This is necessary, for
23028 # example, in the case of _POSIX_SOURCE, which is predefined and required
23029 # on some systems where configure will not decide to define it.
23030 cat >>conftest.undefs <<\_ACEOF
23031 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23034 # Break up conftest.defines because some shells have a limit on the size
23035 # of here documents, and old seds have small limits too (100 cmds).
23036 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23037 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23038 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23039 echo ' :' >>$CONFIG_STATUS
23040 rm -f conftest.tail
23041 while grep . conftest.defines >/dev/null
23043 # Write a limited-size here document to $tmp/defines.sed.
23044 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23045 # Speed up: don't consider the non `#define' lines.
23046 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23047 # Work around the forget-to-reset-the-flag bug.
23048 echo 't clr' >>$CONFIG_STATUS
23049 echo ': clr' >>$CONFIG_STATUS
23050 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23052 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23054 mv $tmp/out $tmp/in
23056 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23057 rm -f conftest.defines
23058 mv conftest.tail conftest.defines
23060 rm -f conftest.defines
23061 echo ' fi # grep' >>$CONFIG_STATUS
23062 echo >>$CONFIG_STATUS
23064 # Break up conftest.undefs because some shells have a limit on the size
23065 # of here documents, and old seds have small limits too (100 cmds).
23066 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23067 rm -f conftest.tail
23068 while grep . conftest.undefs >/dev/null
23070 # Write a limited-size here document to $tmp/undefs.sed.
23071 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23072 # Speed up: don't consider the non `#undef'
23073 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23074 # Work around the forget-to-reset-the-flag bug.
23075 echo 't clr' >>$CONFIG_STATUS
23076 echo ': clr' >>$CONFIG_STATUS
23077 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23079 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23081 mv $tmp/out $tmp/in
23083 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23084 rm -f conftest.undefs
23085 mv conftest.tail conftest.undefs
23087 rm -f conftest.undefs
23089 cat >>$CONFIG_STATUS <<\_ACEOF
23090 # Let's still pretend it is `configure' which instantiates (i.e., don't
23091 # use $as_me), people would be surprised to read:
23092 # /* config.h. Generated by config.status. */
23093 if test x"$ac_file" = x-; then
23094 echo "/* Generated by configure. */" >$tmp/config.h
23096 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23098 cat $tmp/in >>$tmp/config.h
23100 if test x"$ac_file" != x-; then
23101 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23102 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23103 echo "$as_me: $ac_file is unchanged" >&6;}
23105 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23107 X"$ac_file" : 'X\(//\)[^/]' \| \
23108 X"$ac_file" : 'X\(//\)$' \| \
23109 X"$ac_file" : 'X\(/\)' \| \
23110 . : '\(.\)' 2>/dev/null ||
23112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23114 /^X\(\/\/\)$/{ s//\1/; q; }
23115 /^X\(\/\).*/{ s//\1/; q; }
23117 { if $as_mkdir_p; then
23122 while test ! -d "$as_dir"; do
23123 as_dirs="$as_dir $as_dirs"
23124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23126 X"$as_dir" : 'X\(//\)[^/]' \| \
23127 X"$as_dir" : 'X\(//\)$' \| \
23128 X"$as_dir" : 'X\(/\)' \| \
23129 . : '\(.\)' 2>/dev/null ||
23131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23133 /^X\(\/\/\)$/{ s//\1/; q; }
23134 /^X\(\/\).*/{ s//\1/; q; }
23137 test ! -n "$as_dirs" || mkdir $as_dirs
23138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23140 { (exit 1); exit 1; }; }; }
23143 mv $tmp/config.h $ac_file
23147 rm -f $tmp/config.h
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23154 # CONFIG_COMMANDS section.
23156 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23157 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23158 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23159 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23160 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23161 X"$ac_dest" : 'X\(//\)[^/]' \| \
23162 X"$ac_dest" : 'X\(//\)$' \| \
23163 X"$ac_dest" : 'X\(/\)' \| \
23164 . : '\(.\)' 2>/dev/null ||
23166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23168 /^X\(\/\/\)$/{ s//\1/; q; }
23169 /^X\(\/\).*/{ s//\1/; q; }
23173 if test "$ac_dir" != .; then
23174 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23175 # A "../" for each directory in $ac_dir_suffix.
23176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23178 ac_dir_suffix= ac_top_builddir=
23182 .) # No --srcdir option. We are building in place.
23184 if test -z "$ac_top_builddir"; then
23187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23189 [\\/]* | ?:[\\/]* ) # Absolute path.
23190 ac_srcdir=$srcdir$ac_dir_suffix;
23191 ac_top_srcdir=$srcdir ;;
23192 *) # Relative path.
23193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23196 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23198 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23199 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23200 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23201 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23204 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23205 echo "$as_me: executing $ac_dest commands" >&6;}
23207 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23208 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23209 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23210 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23211 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23212 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23213 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23214 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23215 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23216 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23217 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23218 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23219 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23220 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23221 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23222 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23223 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23224 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23225 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23226 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23227 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23228 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23229 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23230 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23231 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23232 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23233 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
23234 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
23235 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23236 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23237 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
23238 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
23239 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
23240 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
23241 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
23242 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
23243 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
23244 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
23245 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
23246 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
23247 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
23248 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
23249 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
23250 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23251 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23252 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23253 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23254 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23259 cat >>$CONFIG_STATUS <<\_ACEOF
23261 { (exit 0); exit 0; }
23263 chmod +x $CONFIG_STATUS
23264 ac_clean_files=$ac_clean_files_save
23267 # configure is writing to config.log, and then calls config.status.
23268 # config.status does its own redirection, appending to config.log.
23269 # Unfortunately, on DOS this fails, as config.log is still kept open
23270 # by configure, so config.status won't be able to write to it; its
23271 # output is simply discarded. So we exec the FD to /dev/null,
23272 # effectively closing config.log, so it can be properly (re)opened and
23273 # appended to by config.status. When coming back to configure, we
23274 # need to make the FD available again.
23275 if test "$no_create" != yes; then
23277 ac_config_status_args=
23278 test "$silent" = yes &&
23279 ac_config_status_args="$ac_config_status_args --quiet"
23281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23284 # would make configure fail if this is the last instruction.
23285 $ac_cs_success || { (exit 1); exit 1; }
23289 # CONFIG_SUBDIRS section.
23291 if test "$no_recursion" != yes; then
23293 # Remove --cache-file and --srcdir arguments so they do not pile up.
23294 ac_sub_configure_args=
23296 for ac_arg in $ac_configure_args; do
23297 if test -n "$ac_prev"; then
23302 -cache-file | --cache-file | --cache-fil | --cache-fi \
23303 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23304 ac_prev=cache_file ;;
23305 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23306 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23309 --config-cache | -C)
23311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23319 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23323 # Always prepend --prefix to ensure using the same prefix
23324 # in subdir configurations.
23325 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23328 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23330 # Do not complain, so a configure script can configure whichever
23331 # parts of a large source tree are present.
23332 test -d $srcdir/$ac_dir || continue
23334 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23335 echo "$as_me: configuring in $ac_dir" >&6;}
23336 { if $as_mkdir_p; then
23341 while test ! -d "$as_dir"; do
23342 as_dirs="$as_dir $as_dirs"
23343 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23345 X"$as_dir" : 'X\(//\)[^/]' \| \
23346 X"$as_dir" : 'X\(//\)$' \| \
23347 X"$as_dir" : 'X\(/\)' \| \
23348 . : '\(.\)' 2>/dev/null ||
23350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23352 /^X\(\/\/\)$/{ s//\1/; q; }
23353 /^X\(\/\).*/{ s//\1/; q; }
23356 test ! -n "$as_dirs" || mkdir $as_dirs
23357 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23358 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23359 { (exit 1); exit 1; }; }; }
23363 if test "$ac_dir" != .; then
23364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23365 # A "../" for each directory in $ac_dir_suffix.
23366 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23368 ac_dir_suffix= ac_top_builddir=
23372 .) # No --srcdir option. We are building in place.
23374 if test -z "$ac_top_builddir"; then
23377 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23379 [\\/]* | ?:[\\/]* ) # Absolute path.
23380 ac_srcdir=$srcdir$ac_dir_suffix;
23381 ac_top_srcdir=$srcdir ;;
23382 *) # Relative path.
23383 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23384 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23386 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23388 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23389 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23390 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23391 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23396 # Check for guested configure; otherwise get Cygnus style configure.
23397 if test -f $ac_srcdir/configure.gnu; then
23398 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23399 elif test -f $ac_srcdir/configure; then
23400 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23401 elif test -f $ac_srcdir/configure.in; then
23402 ac_sub_configure=$ac_configure
23404 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23405 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23409 # The recursion is here.
23410 if test -n "$ac_sub_configure"; then
23411 # Make the cache file name correct relative to the subdirectory.
23412 case $cache_file in
23413 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23414 *) # Relative path.
23415 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23418 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23419 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23420 # The eval makes quoting arguments work.
23421 eval $ac_sub_configure $ac_sub_configure_args \
23422 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23423 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23424 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23425 { (exit 1); exit 1; }; }
23433 if test $llvmgccwarn = yes
23435 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23436 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23437 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23438 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23439 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23440 echo "$as_me: WARNING: ***** " >&2;}
23441 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23442 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23443 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23444 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23445 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23446 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}