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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY 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-purify Compile with purify (default is NO)
1034 --enable-optimized Compile with optimizations enabled (default is NO)
1035 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO)
1036 --enable-precompiled_bytecode
1037 Use pre-compiled bytecode (default is NO)
1038 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1039 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1048 include additional configurations [automatic]
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
1052 --with-purify Location of purify program
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/MultiSource/Makefile"
1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1664 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1670 ac_config_commands="$ac_config_commands tools/Makefile"
1673 ac_config_commands="$ac_config_commands utils/Makefile"
1676 ac_config_commands="$ac_config_commands projects/Makefile"
1681 # Find a good install program. We prefer a C program (faster),
1682 # so one script is as good as another. But avoid the broken or
1683 # incompatible versions:
1684 # SysV /etc/install, /usr/sbin/install
1685 # SunOS /usr/etc/install
1686 # IRIX /sbin/install
1688 # AmigaOS /C/install, which installs bootblocks on floppy discs
1689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1692 # ./install, which can be erroneously created by make from ./install.sh.
1693 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1695 if test -z "$INSTALL"; then
1696 if test "${ac_cv_path_install+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 # Account for people who put trailing slashes in PATH elements.
1706 ./ | .// | /cC/* | \
1707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710 # OSF1 and SCO ODT 3.0 have their own names for install.
1711 # Don't use installbsd from OSF since it installs stuff as root
1713 for ac_prog in ginstall scoinst install; do
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1716 if test $ac_prog = install &&
1717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1718 # AIX install. It has an incompatible calling convention.
1720 elif test $ac_prog = install &&
1721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722 # program-specific install script used by HP pwplus--don't use.
1725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1737 if test "${ac_cv_path_install+set}" = set; then
1738 INSTALL=$ac_cv_path_install
1740 # As a last resort, use the slow shell script. We don't cache a
1741 # path for INSTALL within a source directory, because that will
1742 # break other packages using the cache if that directory is
1743 # removed, or if the path is relative.
1744 INSTALL=$ac_install_sh
1747 echo "$as_me:$LINENO: result: $INSTALL" >&5
1748 echo "${ECHO_T}$INSTALL" >&6
1750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1751 # It thinks the first close brace ends the variable substitution.
1752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1759 # Make sure we can run config.sub.
1760 $ac_config_sub sun4 >/dev/null 2>&1 ||
1761 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1762 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1763 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1767 if test "${ac_cv_build+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 ac_cv_build_alias=$build_alias
1771 test -z "$ac_cv_build_alias" &&
1772 ac_cv_build_alias=`$ac_config_guess`
1773 test -z "$ac_cv_build_alias" &&
1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776 { (exit 1); exit 1; }; }
1777 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1779 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6
1786 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791 echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1793 if test "${ac_cv_host+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 ac_cv_host_alias=$host_alias
1797 test -z "$ac_cv_host_alias" &&
1798 ac_cv_host_alias=$ac_cv_build_alias
1799 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1800 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1801 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1802 { (exit 1); exit 1; }; }
1805 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1806 echo "${ECHO_T}$ac_cv_host" >&6
1808 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1809 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1810 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813 echo "$as_me:$LINENO: checking target system type" >&5
1814 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1815 if test "${ac_cv_target+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 ac_cv_target_alias=$target_alias
1819 test "x$ac_cv_target_alias" = "x" &&
1820 ac_cv_target_alias=$ac_cv_host_alias
1821 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1822 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1823 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1827 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1828 echo "${ECHO_T}$ac_cv_target" >&6
1829 target=$ac_cv_target
1830 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1831 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1832 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1835 # The aliases save the names the user supplied, while $host etc.
1836 # will get canonicalized.
1837 test -n "$target_alias" &&
1838 test "$program_prefix$program_suffix$program_transform_name" = \
1840 program_prefix=${target_alias}-
1846 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1848 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1856 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1858 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1874 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1883 sparc*-*) ARCH=Sparc
1886 powerpc*-*) ARCH=PowerPC
1896 ac_cpp='$CXXCPP $CPPFLAGS'
1897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1900 if test -n "$ac_tool_prefix"; then
1901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CXX+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CXX"; then
1911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 if test -n "$CXX"; then
1931 echo "$as_me:$LINENO: result: $CXX" >&5
1932 echo "${ECHO_T}$CXX" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1938 test -n "$CXX" && break
1941 if test -z "$CXX"; then
1943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1945 # Extract the first word of "$ac_prog", so it can be a program name with args.
1946 set dummy $ac_prog; ac_word=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CXX"; then
1953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CXX="$ac_prog"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1972 if test -n "$ac_ct_CXX"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1974 echo "${ECHO_T}$ac_ct_CXX" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1980 test -n "$ac_ct_CXX" && break
1982 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1988 # Provide some information about the compiler.
1989 echo "$as_me:$LINENO:" \
1990 "checking for C++ compiler version" >&5
1991 ac_compiler=`set X $ac_compile; echo $2`
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993 (eval $ac_compiler --version </dev/null >&5) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998 (eval $ac_compiler -v </dev/null >&5) 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003 (eval $ac_compiler -V </dev/null >&5) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 ac_clean_files_save=$ac_clean_files
2025 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2026 # Try to create an executable without -o first, disregard a.out.
2027 # It will help us diagnose broken compilers, and finding out an intuition
2029 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2030 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2031 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2032 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2033 (eval $ac_link_default) 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; then
2037 # Find the output, starting from the most likely. This scheme is
2038 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2041 # Be careful to initialize this variable, since it used to be cached.
2042 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044 # b.out is created by i960 compilers.
2045 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047 test -f "$ac_file" || continue
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2052 # This is the source file.
2055 # We found the default executable, but exeext='' is most
2059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060 # FIXME: I believe we export ac_cv_exeext for Libtool,
2061 # but it would be cool to find out if it's true. Does anybody
2062 # maintain Libtool? --akim.
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: C++ compiler cannot create executables
2076 See \`config.log' for more details." >&2;}
2077 { (exit 77); exit 77; }; }
2080 ac_exeext=$ac_cv_exeext
2081 echo "$as_me:$LINENO: result: $ac_file" >&5
2082 echo "${ECHO_T}$ac_file" >&6
2084 # Check the compiler produces executables we can run. If not, either
2085 # the compiler is broken, or we cross compile.
2086 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2087 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2088 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2089 # If not cross compiling, check that we can run a simple program.
2090 if test "$cross_compiling" != yes; then
2091 if { ac_try='./$ac_file'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2099 if test "$cross_compiling" = maybe; then
2102 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: cannot run C++ compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2112 echo "$as_me:$LINENO: result: yes" >&5
2113 echo "${ECHO_T}yes" >&6
2115 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2116 ac_clean_files=$ac_clean_files_save
2117 # Check the compiler produces executables we can run. If not, either
2118 # the compiler is broken, or we cross compile.
2119 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2120 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2121 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2122 echo "${ECHO_T}$cross_compiling" >&6
2124 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2125 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2127 (eval $ac_link) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; then
2131 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2132 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2133 # work properly (i.e., refer to `conftest.exe'), while it won't with
2135 for ac_file in conftest.exe conftest conftest.*; do
2136 test -f "$ac_file" || continue
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2153 rm -f conftest$ac_cv_exeext
2154 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2155 echo "${ECHO_T}$ac_cv_exeext" >&6
2157 rm -f conftest.$ac_ext
2158 EXEEXT=$ac_cv_exeext
2160 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2162 if test "${ac_cv_objext+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 cat >conftest.$ac_ext <<_ACEOF
2166 #line $LINENO "configure"
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201 See \`config.log' for more details." >&2;}
2202 { (exit 1); exit 1; }; }
2205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2207 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208 echo "${ECHO_T}$ac_cv_objext" >&6
2209 OBJEXT=$ac_cv_objext
2211 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2212 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2213 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #line $LINENO "configure"
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 rm -f conftest.$ac_objext conftest.$ac_ext
2255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2258 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2259 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2260 GXX=`test $ac_compiler_gnu = yes && echo yes`
2261 ac_test_CXXFLAGS=${CXXFLAGS+set}
2262 ac_save_CXXFLAGS=$CXXFLAGS
2264 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2266 if test "${ac_cv_prog_cxx_g+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cxx_g=yes
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2304 rm -f conftest.$ac_objext conftest.$ac_ext
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2308 if test "$ac_test_CXXFLAGS" = set; then
2309 CXXFLAGS=$ac_save_CXXFLAGS
2310 elif test $ac_cv_prog_cxx_g = yes; then
2311 if test "$GXX" = yes; then
2317 if test "$GXX" = yes; then
2323 for ac_declaration in \
2325 '#include <stdlib.h>' \
2326 'extern "C" void std::exit (int) throw (); using std::exit;' \
2327 'extern "C" void std::exit (int); using std::exit;' \
2328 'extern "C" void exit (int) throw ();' \
2329 'extern "C" void exit (int);' \
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2368 rm -f conftest.$ac_objext conftest.$ac_ext
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext conftest.$ac_ext
2406 if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 if test -n "$CC"; then
2454 echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2461 test -n "$CC" && break
2464 if test -z "$CC"; then
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_ac_ct_CC="$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$ac_ct_CC" && break
2510 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2516 # Provide some information about the compiler.
2517 echo "$as_me:$LINENO:" \
2518 "checking for C compiler version" >&5
2519 ac_compiler=`set X $ac_compile; echo $2`
2520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2521 (eval $ac_compiler --version </dev/null >&5) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2526 (eval $ac_compiler -v </dev/null >&5) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2531 (eval $ac_compiler -V </dev/null >&5) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2536 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2584 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2585 GCC=`test $ac_compiler_gnu = yes && echo yes`
2586 ac_test_CFLAGS=${CFLAGS+set}
2587 ac_save_CFLAGS=$CFLAGS
2589 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #line $LINENO "configure"
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.$ac_objext conftest.$ac_ext
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2642 if test "$GCC" = yes; then
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 ac_cv_prog_cc_stdc=no
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2680 s = g (p, va_arg (v,int));
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2698 # Don't try gcc -ansi; that turns off useful extensions and
2699 # breaks some systems' header files.
2700 # AIX -qlanglvl=ansi
2701 # Ultrix and OSF/1 -std1
2702 # HP-UX 10.20 and later -Ae
2703 # HP-UX older versions -Aa -D_HPUX_SOURCE
2704 # SVR4 -Xc -D__EXTENSIONS__
2705 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_stdc=$ac_arg
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.$ac_objext
2729 rm -f conftest.$ac_ext conftest.$ac_objext
2734 case "x$ac_cv_prog_cc_stdc" in
2736 echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6 ;;
2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2740 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2741 CC="$CC $ac_cv_prog_cc_stdc" ;;
2744 # Some people use a C++ compiler to compile C. Since we use `exit',
2745 # in C++ we need to declare it. In case someone uses the same compiler
2746 # for both compiling C and C++ we need to have the C++ compiler decide
2747 # the declaration of exit, since it's the most demanding environment.
2748 cat >conftest.$ac_ext <<_ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration in \
2767 '#include <stdlib.h>' \
2768 'extern "C" void std::exit (int) throw (); using std::exit;' \
2769 'extern "C" void std::exit (int); using std::exit;' \
2770 'extern "C" void exit (int) throw ();' \
2771 'extern "C" void exit (int);' \
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.$ac_objext conftest.$ac_ext
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2845 rm -f conftest.$ac_objext conftest.$ac_ext
2848 if test -n "$ac_declaration"; then
2849 echo '#ifdef __cplusplus' >>confdefs.h
2850 echo $ac_declaration >>confdefs.h
2851 echo '#endif' >>confdefs.h
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.$ac_objext conftest.$ac_ext
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873 # On Suns, sometimes $CPP names a directory.
2874 if test -n "$CPP" && test -d "$CPP"; then
2877 if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2885 for ac_c_preproc_warn_flag in '' yes
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
2889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
2891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2901 # include <limits.h>
2903 # include <assert.h>
2907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null; then
2915 if test -s conftest.err; then
2916 ac_cpp_err=$ac_c_preproc_warn_flag
2923 if test -z "$ac_cpp_err"; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 # Broken: fails on valid input.
2932 rm -f conftest.err conftest.$ac_ext
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 #include <ac_nonexistent.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Passes both tests.
2972 rm -f conftest.err conftest.$ac_ext
2975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976 rm -f conftest.err conftest.$ac_ext
2977 if $ac_preproc_ok; then
2989 echo "$as_me:$LINENO: result: $CPP" >&5
2990 echo "${ECHO_T}$CPP" >&6
2992 for ac_c_preproc_warn_flag in '' yes
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3008 # include <limits.h>
3010 # include <assert.h>
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null; then
3022 if test -s conftest.err; then
3023 ac_cpp_err=$ac_c_preproc_warn_flag
3030 if test -z "$ac_cpp_err"; then
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Broken: fails on valid input.
3039 rm -f conftest.err conftest.$ac_ext
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 #line $LINENO "configure"
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #include <ac_nonexistent.h>
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3068 if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 if test "$GCC" != "yes"
3103 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3104 echo "$as_me: error: gcc required but not found" >&2;}
3105 { (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" >&5
3119 echo "$as_me: error: gcc 3.x required" >&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; }; }
3475 # Check whether --enable-shared or --disable-shared was given.
3476 if test "${enable_shared+set}" = set; then
3477 enableval="$enable_shared"
3478 p=${PACKAGE-default}
3480 yes) enable_shared=yes ;;
3481 no) enable_shared=no ;;
3484 # Look at the argument we got. We use all the common list separators.
3485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3486 for pkg in $enableval; do
3488 if test "X$pkg" = "X$p"; then
3499 # Check whether --enable-static or --disable-static was given.
3500 if test "${enable_static+set}" = set; then
3501 enableval="$enable_static"
3502 p=${PACKAGE-default}
3504 yes) enable_static=yes ;;
3505 no) enable_static=no ;;
3508 # Look at the argument we got. We use all the common list separators.
3509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3510 for pkg in $enableval; do
3512 if test "X$pkg" = "X$p"; then
3523 # Check whether --enable-fast-install or --disable-fast-install was given.
3524 if test "${enable_fast_install+set}" = set; then
3525 enableval="$enable_fast_install"
3526 p=${PACKAGE-default}
3528 yes) enable_fast_install=yes ;;
3529 no) enable_fast_install=no ;;
3531 enable_fast_install=no
3532 # Look at the argument we got. We use all the common list separators.
3533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3534 for pkg in $enableval; do
3536 if test "X$pkg" = "X$p"; then
3537 enable_fast_install=yes
3544 enable_fast_install=yes
3547 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3548 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3549 if test "${lt_cv_path_SED+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 # Loop through the user's path and test for sed and gsed.
3553 # Then use that list of sed's as ones to test for truncation.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for lt_ac_prog in sed gsed; do
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3562 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3569 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3570 # along with /bin/sed that truncates output.
3571 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3572 test ! -f $lt_ac_sed && break
3573 cat /dev/null > conftest.in
3575 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3576 # Check for GNU sed and select it if it is found.
3577 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3578 lt_cv_path_SED=$lt_ac_sed
3582 cat conftest.in conftest.in >conftest.tmp
3583 mv conftest.tmp conftest.in
3584 cp conftest.in conftest.nl
3586 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3587 cmp -s conftest.out conftest.nl || break
3588 # 10000 chars as input seems more than enough
3589 test $lt_ac_count -gt 10 && break
3590 lt_ac_count=`expr $lt_ac_count + 1`
3591 if test $lt_ac_count -gt $lt_ac_max; then
3592 lt_ac_max=$lt_ac_count
3593 lt_cv_path_SED=$lt_ac_sed
3601 echo "$as_me:$LINENO: result: $SED" >&5
3602 echo "${ECHO_T}$SED" >&6
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610 then ac_cv_prog_egrep='grep -E'
3611 else ac_cv_prog_egrep='egrep'
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616 EGREP=$ac_cv_prog_egrep
3620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then
3622 withval="$with_gnu_ld"
3623 test "$withval" = no || with_gnu_ld=yes
3628 if test "$GCC" = yes; then
3629 # Check if gcc -print-prog-name=ld gives a path.
3630 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3634 # gcc leaves a trailing carriage return which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3640 # Accept absolute paths.
3642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the path of ld
3644 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3645 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3648 test -z "$LD" && LD="$ac_prog"
3651 # If it fails, then pretend we aren't using GCC.
3655 # If it is relative, then search for the first ld in PATH.
3659 elif test "$with_gnu_ld" = yes; then
3660 echo "$as_me:$LINENO: checking for GNU ld" >&5
3661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3663 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3666 if test "${lt_cv_path_LD+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 if test -z "$LD"; then
3670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH; do
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD="$ac_dir/$ac_prog"
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some GNU ld's only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
3681 test "$with_gnu_ld" != no && break
3684 test "$with_gnu_ld" != yes && break
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3696 if test -n "$LD"; then
3697 echo "$as_me:$LINENO: result: $LD" >&5
3698 echo "${ECHO_T}$LD" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705 { (exit 1); exit 1; }; }
3706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712 case `"$LD" -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714 lt_cv_prog_gnu_ld=yes
3717 lt_cv_prog_gnu_ld=no
3721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3726 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3727 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3728 if test "${lt_cv_ld_reload_flag+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 lt_cv_ld_reload_flag='-r'
3733 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3734 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3735 reload_flag=$lt_cv_ld_reload_flag
3736 case $reload_flag in
3738 *) reload_flag=" $reload_flag" ;;
3740 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3742 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3743 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3744 if test "${lt_cv_path_NM+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test -n "$NM"; then
3748 # Let the user override the test.
3751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3754 test -z "$ac_dir" && ac_dir=.
3755 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3757 # Check to see if the nm accepts a BSD-compat flag.
3758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3759 # nm: unknown option "B" ignored
3760 # Tru64's nm complains that /dev/null is an invalid object file
3761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3762 */dev/null* | *'Invalid file or object type'*)
3763 lt_cv_path_NM="$tmp_nm -B"
3767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3769 lt_cv_path_NM="$tmp_nm -p"
3773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3774 continue # so that we can try to find one that supports BSD flags
3781 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3784 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3785 echo "${ECHO_T}$lt_cv_path_NM" >&6
3788 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3791 if test "$LN_S" = "ln -s"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3796 echo "${ECHO_T}no, using $LN_S" >&6
3799 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3800 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3801 if test "${lt_cv_deplibs_check_method+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 lt_cv_file_magic_cmd='$MAGIC_CMD'
3805 lt_cv_file_magic_test_file=
3806 lt_cv_deplibs_check_method='unknown'
3807 # Need to set the preceding variable on all platforms that support
3808 # interlibrary dependencies.
3809 # 'none' -- dependencies not supported.
3810 # `unknown' -- same as none, but documents that we really don't know.
3811 # 'pass_all' -- all dependencies passed with no checks.
3812 # 'test_compile' -- check by making test program.
3813 # 'file_magic [[regex]]' -- check by looking for files in library path
3814 # which responds to the $file_magic_cmd with a given extended regex.
3815 # If you have `file' or equivalent on your system and you're not sure
3816 # whether `pass_all' will *always* work, you probably want this one.
3820 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_deplibs_check_method=pass_all
3828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3829 lt_cv_file_magic_cmd='/usr/bin/file -L'
3830 lt_cv_file_magic_test_file=/shlib/libc.so
3833 cygwin* | mingw* | pw32*)
3834 # win32_libid is a shell function defined in ltmain.sh
3835 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3836 lt_cv_file_magic_cmd='win32_libid'
3839 darwin* | rhapsody*)
3840 # this will be overwritten by pass_all, but leave it in just in case
3841 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3842 lt_cv_file_magic_cmd='/usr/bin/file -L'
3844 rhapsody* | darwin1.[012])
3845 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3848 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3851 lt_cv_deplibs_check_method=pass_all
3855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3858 # Not sure whether the presence of OpenBSD here was a mistake.
3859 # Let's accept both of them until this is cleared up.
3860 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3861 lt_cv_file_magic_cmd=/usr/bin/file
3862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3866 lt_cv_deplibs_check_method=pass_all
3871 lt_cv_deplibs_check_method=pass_all
3874 hpux10.20* | hpux11*)
3875 lt_cv_file_magic_cmd=/usr/bin/file
3878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3882 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]'
3883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3892 irix5* | irix6* | nonstopux*)
3894 irix5* | nonstopux*)
3895 # this will be overridden with pass_all, but let us keep it just in case
3896 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3900 *-32|*"-32 ") libmagic=32-bit;;
3901 *-n32|*"-n32 ") libmagic=N32;;
3902 *-64|*"-64 ") libmagic=64-bit;;
3903 *) libmagic=never-match;;
3905 # this will be overridden with pass_all, but let us keep it just in case
3906 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3909 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3910 lt_cv_deplibs_check_method=pass_all
3913 # This must be Linux ELF.
3916 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3917 lt_cv_deplibs_check_method=pass_all ;;
3919 # glibc up to 2.1.1 does not perform some relocations on ARM
3920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3922 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3935 lt_cv_file_magic_cmd=/usr/bin/file
3936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3940 lt_cv_deplibs_check_method=unknown
3944 lt_cv_file_magic_cmd=/usr/bin/file
3945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3946 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3949 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3953 osf3* | osf4* | osf5*)
3954 # this will be overridden with pass_all, but let us keep it just in case
3955 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3956 lt_cv_file_magic_test_file=/shlib/libc.so
3957 lt_cv_deplibs_check_method=pass_all
3961 lt_cv_deplibs_check_method=pass_all
3965 lt_cv_deplibs_check_method=pass_all
3966 lt_cv_file_magic_test_file=/lib/libc.so
3969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3970 case $host_vendor in
3972 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]'
3973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3976 lt_cv_deplibs_check_method=pass_all
3979 lt_cv_file_magic_cmd='/bin/file'
3980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3983 lt_cv_file_magic_cmd='/bin/file'
3984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3985 lt_cv_file_magic_test_file=/lib/libc.so
3988 lt_cv_deplibs_check_method=pass_all
3993 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3994 lt_cv_deplibs_check_method=pass_all
3999 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4000 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4001 file_magic_cmd=$lt_cv_file_magic_cmd
4002 deplibs_check_method=$lt_cv_deplibs_check_method
4003 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4008 # If no C compiler was specified, use CC.
4011 # Allow CC to be a program name with arguments.
4014 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4015 if test "${enable_libtool_lock+set}" = set; then
4016 enableval="$enable_libtool_lock"
4019 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4021 # Some flags need to be propagated to the compiler or linker for good
4025 # Find out which ABI we are using.
4026 echo 'int i;' > conftest.$ac_ext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
4032 case `/usr/bin/file conftest.$ac_objext` in
4044 # Find out which ABI we are using.
4045 echo '#line 4045 "configure"' > conftest.$ac_ext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; then
4051 if test "$lt_cv_prog_gnu_ld" = yes; then
4052 case `/usr/bin/file conftest.$ac_objext` in
4054 LD="${LD-ld} -melf32bsmip"
4057 LD="${LD-ld} -melf32bmipn32"
4060 LD="${LD-ld} -melf64bmip"
4064 case `/usr/bin/file conftest.$ac_objext` in
4080 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4081 # Find out which ABI we are using.
4082 echo 'int i;' > conftest.$ac_ext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; then
4088 case "`/usr/bin/file conftest.o`" in
4092 LD="${LD-ld} -m elf_i386"
4095 LD="${LD-ld} -m elf32ppclinux"
4098 LD="${LD-ld} -m elf_s390"
4101 LD="${LD-ld} -m elf32_sparc"
4108 LD="${LD-ld} -m elf_x86_64"
4110 ppc*-*linux*|powerpc*-*linux*)
4111 LD="${LD-ld} -m elf64ppc"
4114 LD="${LD-ld} -m elf64_s390"
4117 LD="${LD-ld} -m elf64_sparc"
4127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4128 SAVE_CFLAGS="$CFLAGS"
4129 CFLAGS="$CFLAGS -belf"
4130 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4131 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4132 if test "${lt_cv_cc_needs_belf+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 lt_cv_cc_needs_belf=yes
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 lt_cv_cc_needs_belf=no
4176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4185 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4188 CFLAGS="$SAVE_CFLAGS"
4194 need_locks="$enable_libtool_lock"
4198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4200 if test "${ac_cv_header_stdc+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4204 #line $LINENO "configure"
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_cv_header_stdc=yes
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ac_cv_header_stdc=no
4242 rm -f conftest.$ac_objext conftest.$ac_ext
4244 if test $ac_cv_header_stdc = yes; then
4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "memchr" >/dev/null 2>&1; then
4260 ac_cv_header_stdc=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4268 cat >conftest.$ac_ext <<_ACEOF
4269 #line $LINENO "configure"
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "free" >/dev/null 2>&1; then
4282 ac_cv_header_stdc=no
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4293 cat >conftest.$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4301 #if ((' ' & 0x0FF) == 0x020)
4302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305 # define ISLOWER(c) \
4306 (('a' <= (c) && (c) <= 'i') \
4307 || ('j' <= (c) && (c) <= 'r') \
4308 || ('s' <= (c) && (c) <= 'z'))
4309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4317 for (i = 0; i < 256; i++)
4318 if (XOR (islower (i), ISLOWER (i))
4319 || toupper (i) != TOUPPER (i))
4324 rm -f conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326 (eval $ac_link) 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_header_stdc=no
4344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4350 if test $ac_cv_header_stdc = yes; then
4352 cat >>confdefs.h <<\_ACEOF
4353 #define STDC_HEADERS 1
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369 inttypes.h stdint.h unistd.h
4371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4386 #include <$ac_header>
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 eval "$as_ac_Header=yes"
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 eval "$as_ac_Header=no"
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 for ac_header in dlfcn.h
4424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4434 # Is the header compilable?
4435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 #include <$ac_header>
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_header_compiler=yes
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 ac_header_compiler=no
4466 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4468 echo "${ECHO_T}$ac_header_compiler" >&6
4470 # Is the header present?
4471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4473 cat >conftest.$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <$ac_header>
4482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null; then
4490 if test -s conftest.err; then
4491 ac_cpp_err=$ac_c_preproc_warn_flag
4498 if test -z "$ac_cpp_err"; then
4499 ac_header_preproc=yes
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_header_preproc=no
4506 rm -f conftest.err conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4508 echo "${ECHO_T}$ac_header_preproc" >&6
4510 # So? What about this header?
4511 case $ac_header_compiler:$ac_header_preproc in
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4519 ## ------------------------------------ ##
4520 ## Report this to bug-autoconf@gnu.org. ##
4521 ## ------------------------------------ ##
4524 sed "s/^/$as_me: WARNING: /" >&2
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4535 ## ------------------------------------ ##
4536 ## Report this to bug-autoconf@gnu.org. ##
4537 ## ------------------------------------ ##
4540 sed "s/^/$as_me: WARNING: /" >&2
4543 echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 eval "$as_ac_Header=$ac_header_preproc"
4550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4555 cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 ac_cpp='$CXXCPP $CPPFLAGS'
4565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4569 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4570 if test -z "$CXXCPP"; then
4571 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 # Double quotes because CXXCPP needs to be expanded
4575 for CXXCPP in "$CXX -E" "/lib/cpp"
4578 for ac_cxx_preproc_warn_flag in '' yes
4580 # Use a header file that comes with gcc, so configuring glibc
4581 # with a fresh cross-compiler works.
4582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 # <limits.h> exists even on freestanding compilers.
4584 # On the NeXT, cc -E runs the code through the compiler's parser,
4585 # not just through cpp. "Syntax error" is here to catch this case.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4594 # include <limits.h>
4596 # include <assert.h>
4600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } >/dev/null; then
4608 if test -s conftest.err; then
4609 ac_cpp_err=$ac_cxx_preproc_warn_flag
4616 if test -z "$ac_cpp_err"; then
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 # Broken: fails on valid input.
4625 rm -f conftest.err conftest.$ac_ext
4627 # OK, works on sane cases. Now check whether non-existent headers
4628 # can be detected and how.
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <ac_nonexistent.h>
4638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null; then
4646 if test -s conftest.err; then
4647 ac_cpp_err=$ac_cxx_preproc_warn_flag
4654 if test -z "$ac_cpp_err"; then
4655 # Broken: success on invalid input.
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 # Passes both tests.
4665 rm -f conftest.err conftest.$ac_ext
4668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4669 rm -f conftest.err conftest.$ac_ext
4670 if $ac_preproc_ok; then
4675 ac_cv_prog_CXXCPP=$CXXCPP
4678 CXXCPP=$ac_cv_prog_CXXCPP
4680 ac_cv_prog_CXXCPP=$CXXCPP
4682 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4683 echo "${ECHO_T}$CXXCPP" >&6
4685 for ac_cxx_preproc_warn_flag in '' yes
4687 # Use a header file that comes with gcc, so configuring glibc
4688 # with a fresh cross-compiler works.
4689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4690 # <limits.h> exists even on freestanding compilers.
4691 # On the NeXT, cc -E runs the code through the compiler's parser,
4692 # not just through cpp. "Syntax error" is here to catch this case.
4693 cat >conftest.$ac_ext <<_ACEOF
4694 #line $LINENO "configure"
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4701 # include <limits.h>
4703 # include <assert.h>
4707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null; then
4715 if test -s conftest.err; then
4716 ac_cpp_err=$ac_cxx_preproc_warn_flag
4723 if test -z "$ac_cpp_err"; then
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 # Broken: fails on valid input.
4732 rm -f conftest.err conftest.$ac_ext
4734 # OK, works on sane cases. Now check whether non-existent headers
4735 # can be detected and how.
4736 cat >conftest.$ac_ext <<_ACEOF
4737 #line $LINENO "configure"
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <ac_nonexistent.h>
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_cxx_preproc_warn_flag
4761 if test -z "$ac_cpp_err"; then
4762 # Broken: success on invalid input.
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 # Passes both tests.
4772 rm -f conftest.err conftest.$ac_ext
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then
4780 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783 See \`config.log' for more details." >&2;}
4784 { (exit 1); exit 1; }; }
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798 if test -n "$ac_tool_prefix"; then
4799 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4805 if test "${ac_cv_prog_F77+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 if test -n "$F77"; then
4809 ac_cv_prog_F77="$F77" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 if test -n "$F77"; then
4829 echo "$as_me:$LINENO: result: $F77" >&5
4830 echo "${ECHO_T}$F77" >&6
4832 echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4836 test -n "$F77" && break
4839 if test -z "$F77"; then
4841 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 if test -n "$ac_ct_F77"; then
4851 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_F77="$ac_prog"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4870 if test -n "$ac_ct_F77"; then
4871 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4872 echo "${ECHO_T}$ac_ct_F77" >&6
4874 echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6
4878 test -n "$ac_ct_F77" && break
4885 # Provide some information about the compiler.
4886 echo "$as_me:4886:" \
4887 "checking for Fortran 77 compiler version" >&5
4888 ac_compiler=`set X $ac_compile; echo $2`
4889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4890 (eval $ac_compiler --version </dev/null >&5) 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }
4894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4895 (eval $ac_compiler -v </dev/null >&5) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }
4899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4900 (eval $ac_compiler -V </dev/null >&5) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4905 # If we don't use `.F' as extension, the preprocessor is not run on the
4909 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4910 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4911 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat >conftest.$ac_ext <<_ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4945 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4946 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4948 G77=`test $ac_compiler_gnu = yes && echo yes`
4949 ac_test_FFLAGS=${FFLAGS+set}
4950 ac_save_FFLAGS=$FFLAGS
4952 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4953 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4954 if test "${ac_cv_prog_f77_g+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965 (eval $ac_compile) 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -s conftest.$ac_objext'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; }; then
4975 ac_cv_prog_f77_g=yes
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f conftest.$ac_objext conftest.$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4986 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4987 if test "$ac_test_FFLAGS" = set; then
4988 FFLAGS=$ac_save_FFLAGS
4989 elif test $ac_cv_prog_f77_g = yes; then
4990 if test "$G77" = yes; then
4996 if test "$G77" = yes; then
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5012 # find the maximum length of command line arguments
5013 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 # On DJGPP, this test can blow up pretty badly due to problems in libc
5024 # (any single argument exceeding 2000 bytes causes a buffer overrun
5025 # during glob expansion). Even if it were fixed, the result of this
5026 # check would be larger than it should be.
5027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5031 # Under GNU Hurd, this test is not required because there is
5032 # no limit to the length of command line arguments.
5033 # Libtool will interpret -1 as no limit whatsoever
5034 lt_cv_sys_max_cmd_len=-1;
5038 # On Win9x/ME, this test blows up -- it succeeds, but takes
5039 # about 5 minutes as the teststring grows exponentially.
5040 # Worse, since 9x/ME are not pre-emptively multitasking,
5041 # you end up with a "frozen" computer, even though with patience
5042 # the test eventually succeeds (with a max line length of 256k).
5043 # Instead, let's just punt: use the minimum linelength reported by
5044 # all of the supported platforms: 8192 (on NT/2K/XP).
5045 lt_cv_sys_max_cmd_len=8192;
5049 # If test is not a shell built-in, we'll probably end up computing a
5050 # maximum length that is only half of the actual maximum length, but
5052 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5053 = "XX$testring") >/dev/null 2>&1 &&
5054 new_result=`expr "X$testring" : ".*" 2>&1` &&
5055 lt_cv_sys_max_cmd_len=$new_result &&
5056 test $i != 17 # 1/2 MB should be enough
5059 testring=$testring$testring
5062 # Add a significant safety factor because C++ compilers can tack on massive
5063 # amounts of additional arguments before passing them to the linker.
5064 # It appears as though 1/2 is a usable value.
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5071 if test -n $lt_cv_sys_max_cmd_len ; then
5072 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5073 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5075 echo "$as_me:$LINENO: result: none" >&5
5076 echo "${ECHO_T}none" >&6
5082 # Check for command to grab the raw symbol name followed by C symbol from nm.
5083 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5084 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5085 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 # These are sane defaults that work on at least a few old systems.
5090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5092 # Character class describing NM global symbol codes.
5093 symcode='[BCDEGRST]'
5095 # Regexp to match symbols that can be accessed directly from C.
5096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5098 # Transform the above into a raw symbol and a C symbol.
5099 symxfrm='\1 \2\3 \3'
5101 # Transform an extracted symbol line into a proper C declaration
5102 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5104 # Transform an extracted symbol line into symbol name and symbol address
5105 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'"
5107 # Define system-specific variables.
5112 cygwin* | mingw* | pw32*)
5113 symcode='[ABCDGISTW]'
5115 hpux*) # Its linker distinguishes data from code symbols
5116 if test "$host_cpu" = ia64; then
5117 symcode='[ABCDEGRST]'
5119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5120 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'"
5123 symcode='[BCDEGRST]'
5126 symcode='[BCDEGQRST]'
5136 # Handle CRLF in mingw tool chain
5140 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5144 # If we're using GNU nm, then use its standard symbol codes.
5145 case `$NM -V 2>&1` in
5146 *GNU* | *'with BFD'*)
5147 symcode='[ABCDGISTW]' ;;
5150 # Try without a prefix undercore, then with it.
5151 for ac_symprfx in "" "_"; do
5153 # Write the raw and C identifiers.
5154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5156 # Check to see that the pipe works correctly.
5160 cat > conftest.$ac_ext <<EOF
5165 void nm_test_func(){}
5169 int main(){nm_test_var='a';nm_test_func();return(0);}
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173 (eval $ac_compile) 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; then
5177 # Now try to grab the symbols.
5179 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5180 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && test -s "$nlist"; then
5184 # Try sorting and uniquifying the output.
5185 if sort "$nlist" | uniq > "$nlist"T; then
5186 mv -f "$nlist"T "$nlist"
5191 # Make sure that we snagged all the symbols we need.
5192 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5193 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5194 cat <<EOF > conftest.$ac_ext
5200 # Now generate the symbol file.
5201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5203 cat <<EOF >> conftest.$ac_ext
5204 #if defined (__STDC__) && __STDC__
5205 # define lt_ptr_t void *
5207 # define lt_ptr_t char *
5211 /* The mapping between symbol names and symbols. */
5216 lt_preloaded_symbols[] =
5219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5220 cat <<\EOF >> conftest.$ac_ext
5228 # Now try linking the two files.
5229 mv conftest.$ac_objext conftstm.$ac_objext
5230 lt_save_LIBS="$LIBS"
5231 lt_save_CFLAGS="$CFLAGS"
5232 LIBS="conftstm.$ac_objext"
5233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5241 LIBS="$lt_save_LIBS"
5242 CFLAGS="$lt_save_CFLAGS"
5244 echo "cannot find nm_test_func in $nlist" >&5
5247 echo "cannot find nm_test_var in $nlist" >&5
5250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5253 echo "$progname: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 rm -f conftest* conftst*
5258 # Do not use the global_symbol_pipe unless it works.
5259 if test "$pipe_works" = yes; then
5262 lt_cv_sys_global_symbol_pipe=
5268 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5269 lt_cv_sys_global_symbol_to_cdecl=
5271 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5272 echo "$as_me:$LINENO: result: failed" >&5
5273 echo "${ECHO_T}failed" >&6
5275 echo "$as_me:$LINENO: result: ok" >&5
5276 echo "${ECHO_T}ok" >&6
5279 echo "$as_me:$LINENO: checking for objdir" >&5
5280 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5281 if test "${lt_cv_objdir+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 rm -f .libs 2>/dev/null
5285 mkdir .libs 2>/dev/null
5286 if test -d .libs; then
5289 # MS-DOS does not allow filenames that begin with a dot.
5292 rmdir .libs 2>/dev/null
5294 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5295 echo "${ECHO_T}$lt_cv_objdir" >&6
5296 objdir=$lt_cv_objdir
5304 # AIX sometimes has problems with the GCC collect2 program. For some
5305 # reason, if we set the COLLECT_NAMES environment variable, the problems
5306 # vanish in a puff of smoke.
5307 if test "X${COLLECT_NAMES+set}" != Xset; then
5309 export COLLECT_NAMES
5314 # Sed substitution that helps us do robust quoting. It backslashifies
5315 # metacharacters that are still active within double-quoted strings.
5316 Xsed='sed -e s/^X//'
5317 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5319 # Same as above, but do not quote variable references.
5320 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5322 # Sed substitution to delay expansion of an escaped shell variable in a
5323 # double_quote_subst'ed string.
5324 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5326 # Sed substitution to avoid accidental globbing in evaled expressions
5327 no_glob_subst='s/\*/\\\*/g'
5334 can_build_shared=yes
5336 # All known linkers require a `.a' archive for static linking (except M$VC,
5337 # which needs '.lib').
5339 ltmain="$ac_aux_dir/ltmain.sh"
5340 ofile="$default_ofile"
5341 with_gnu_ld="$lt_cv_prog_gnu_ld"
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}ar; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_prog_AR+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -n "$AR"; then
5352 ac_cv_prog_AR="$AR" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_AR="${ac_tool_prefix}ar"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 if test -n "$AR"; then
5372 echo "$as_me:$LINENO: result: $AR" >&5
5373 echo "${ECHO_T}$AR" >&6
5375 echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5380 if test -z "$ac_cv_prog_AR"; then
5382 # Extract the first word of "ar", so it can be a program name with args.
5383 set dummy ar; ac_word=$2
5384 echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5386 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 if test -n "$ac_ct_AR"; then
5390 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399 ac_cv_prog_ac_ct_AR="ar"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5409 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5410 if test -n "$ac_ct_AR"; then
5411 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5412 echo "${ECHO_T}$ac_ct_AR" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_prog_RANLIB+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 if test -n "$RANLIB"; then
5432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 RANLIB=$ac_cv_prog_RANLIB
5451 if test -n "$RANLIB"; then
5452 echo "$as_me:$LINENO: result: $RANLIB" >&5
5453 echo "${ECHO_T}$RANLIB" >&6
5455 echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5460 if test -z "$ac_cv_prog_RANLIB"; then
5461 ac_ct_RANLIB=$RANLIB
5462 # Extract the first word of "ranlib", so it can be a program name with args.
5463 set dummy ranlib; ac_word=$2
5464 echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 if test -n "$ac_ct_RANLIB"; then
5470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_ac_ct_RANLIB="ranlib"
5480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5490 if test -n "$ac_ct_RANLIB"; then
5491 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5492 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5498 RANLIB=$ac_ct_RANLIB
5500 RANLIB="$ac_cv_prog_RANLIB"
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}strip; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_prog_STRIP+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 if test -n "$STRIP"; then
5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 STRIP=$ac_cv_prog_STRIP
5531 if test -n "$STRIP"; then
5532 echo "$as_me:$LINENO: result: $STRIP" >&5
5533 echo "${ECHO_T}$STRIP" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5540 if test -z "$ac_cv_prog_STRIP"; then
5542 # Extract the first word of "strip", so it can be a program name with args.
5543 set dummy strip; ac_word=$2
5544 echo "$as_me:$LINENO: checking for $ac_word" >&5
5545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 if test -n "$ac_ct_STRIP"; then
5550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_ac_ct_STRIP="strip"
5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570 if test -n "$ac_ct_STRIP"; then
5571 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5572 echo "${ECHO_T}$ac_ct_STRIP" >&6
5574 echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5580 STRIP="$ac_cv_prog_STRIP"
5585 old_CFLAGS="$CFLAGS"
5587 # Set sane defaults for various variables
5588 test -z "$AR" && AR=ar
5589 test -z "$AR_FLAGS" && AR_FLAGS=cru
5590 test -z "$AS" && AS=as
5591 test -z "$CC" && CC=cc
5592 test -z "$LTCC" && LTCC=$CC
5593 test -z "$DLLTOOL" && DLLTOOL=dlltool
5594 test -z "$LD" && LD=ld
5595 test -z "$LN_S" && LN_S="ln -s"
5596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5597 test -z "$NM" && NM=nm
5598 test -z "$SED" && SED=sed
5599 test -z "$OBJDUMP" && OBJDUMP=objdump
5600 test -z "$RANLIB" && RANLIB=:
5601 test -z "$STRIP" && STRIP=:
5602 test -z "$ac_objext" && ac_objext=o
5604 # Determine commands to create old-style static archives.
5605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5606 old_postinstall_cmds='chmod 644 $oldlib'
5607 old_postuninstall_cmds=
5609 if test -n "$RANLIB"; then
5612 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5615 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5621 # Only perform the check for file, if the check method requires it
5622 case $deplibs_check_method in
5624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5625 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5635 lt_save_MAGIC_CMD="$MAGIC_CMD"
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5638 for ac_dir in $ac_dummy; do
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f $ac_dir/${ac_tool_prefix}file; then
5642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5643 if test -n "$file_magic_test_file"; then
5644 case $deplibs_check_method in
5646 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5649 $EGREP "$file_magic_regex" > /dev/null; then
5654 *** Warning: the command libtool uses to detect shared libraries,
5655 *** $file_magic_cmd, produces output that libtool cannot recognize.
5656 *** The result is that libtool may fail to recognize shared libraries
5657 *** as such. This will affect the creation of libtool libraries that
5658 *** depend on shared libraries, but programs linked with such libtool
5659 *** libraries will work regardless of this problem. Nevertheless, you
5660 *** may want to report the problem to your system manager and/or to
5661 *** bug-libtool@gnu.org
5671 MAGIC_CMD="$lt_save_MAGIC_CMD"
5676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5677 if test -n "$MAGIC_CMD"; then
5678 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5679 echo "${ECHO_T}$MAGIC_CMD" >&6
5681 echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5685 if test -z "$lt_cv_path_MAGIC_CMD"; then
5686 if test -n "$ac_tool_prefix"; then
5687 echo "$as_me:$LINENO: checking for file" >&5
5688 echo $ECHO_N "checking for file... $ECHO_C" >&6
5689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5697 lt_save_MAGIC_CMD="$MAGIC_CMD"
5698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5700 for ac_dir in $ac_dummy; do
5702 test -z "$ac_dir" && ac_dir=.
5703 if test -f $ac_dir/file; then
5704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5705 if test -n "$file_magic_test_file"; then
5706 case $deplibs_check_method in
5708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5711 $EGREP "$file_magic_regex" > /dev/null; then
5716 *** Warning: the command libtool uses to detect shared libraries,
5717 *** $file_magic_cmd, produces output that libtool cannot recognize.
5718 *** The result is that libtool may fail to recognize shared libraries
5719 *** as such. This will affect the creation of libtool libraries that
5720 *** depend on shared libraries, but programs linked with such libtool
5721 *** libraries will work regardless of this problem. Nevertheless, you
5722 *** may want to report the problem to your system manager and/or to
5723 *** bug-libtool@gnu.org
5733 MAGIC_CMD="$lt_save_MAGIC_CMD"
5738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5739 if test -n "$MAGIC_CMD"; then
5740 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5741 echo "${ECHO_T}$MAGIC_CMD" >&6
5743 echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5760 if test "${enable_libtool_lock+set}" = set; then
5761 enableval="$enable_libtool_lock"
5764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5767 # Check whether --with-pic or --without-pic was given.
5768 if test "${with_pic+set}" = set; then
5774 test -z "$pic_mode" && pic_mode=default
5776 # Use C for the default configuration in the libtool script
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 # Source file extension for C test sources.
5789 # Object file extension for compiled C test sources.
5793 # Code to be used in simple compile tests
5794 lt_simple_compile_test_code="int some_variable = 0;\n"
5796 # Code to be used in simple link tests
5797 lt_simple_link_test_code='int main(){return(0);}\n'
5800 # If no C compiler was specified, use CC.
5803 # Allow CC to be a program name with arguments.
5808 # Check for any special shared library compilation flags.
5811 if test "$GCC" = no; then
5814 lt_prog_cc_shlib='-belf'
5818 if test -n "$lt_prog_cc_shlib"; then
5819 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5821 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5823 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5825 lt_cv_prog_cc_can_build_shared=no
5831 # Check to make sure the static flag actually works.
5833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5835 if test "${lt_prog_compiler_static_works+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 lt_prog_compiler_static_works=no
5839 save_LDFLAGS="$LDFLAGS"
5840 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5843 # The compiler can only warn and ignore the option if not recognized
5844 # So say no if there are warnings
5845 if test -s conftest.err; then
5846 # Append any errors to the config.log.
5847 cat conftest.err 1>&5
5849 lt_prog_compiler_static_works=yes
5853 LDFLAGS="$save_LDFLAGS"
5856 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5859 if test x"$lt_prog_compiler_static_works" = xyes; then
5862 lt_prog_compiler_static=
5868 lt_prog_compiler_no_builtin_flag=
5870 if test "$GCC" = yes; then
5871 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5873 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5874 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5875 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 lt_cv_prog_compiler_rtti_exceptions=no
5879 ac_outfile=conftest.$ac_objext
5880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5881 lt_compiler_flag="-fno-rtti -fno-exceptions"
5882 # Insert the option either (1) after the last *FLAGS variable, or
5883 # (2) before a word containing "conftest.", or (3) at the end.
5884 # Note that $ac_compile itself does not contain backslashes and begins
5885 # with a dollar sign (not a hyphen), so the echo should work correctly.
5886 # The option is referenced via a variable to avoid confusing sed.
5887 lt_compile=`echo "$ac_compile" | $SED \
5888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5890 -e 's:$: $lt_compiler_flag:'`
5891 (eval echo "\"\$as_me:5891: $lt_compile\"" >&5)
5892 (eval "$lt_compile" 2>conftest.err)
5894 cat conftest.err >&5
5895 echo "$as_me:5895: \$? = $ac_status" >&5
5896 if (exit $ac_status) && test -s "$ac_outfile"; then
5897 # The compiler can only warn and ignore the option if not recognized
5898 # So say no if there are warnings
5899 if test ! -s conftest.err; then
5900 lt_cv_prog_compiler_rtti_exceptions=yes
5906 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5907 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5917 lt_prog_compiler_wl=
5918 lt_prog_compiler_pic=
5919 lt_prog_compiler_static=
5921 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5922 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5924 if test "$GCC" = yes; then
5925 lt_prog_compiler_wl='-Wl,'
5926 lt_prog_compiler_static='-static'
5930 # All AIX code is PIC.
5931 if test "$host_cpu" = ia64; then
5932 # AIX 5 now supports IA64 processor
5933 lt_prog_compiler_static='-Bstatic'
5938 # FIXME: we need at least 68020 code to build shared libraries, but
5939 # adding the `-m68020' flag to GCC prevents building anything better,
5941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5945 # PIC is the default for these OSes.
5948 mingw* | pw32* | os2*)
5949 # This hack is so that the source file can tell whether it is being
5950 # built for inclusion in a dll (and should export symbols for example).
5951 lt_prog_compiler_pic='-DDLL_EXPORT'
5954 darwin* | rhapsody*)
5955 # PIC is the default on this platform
5956 # Common symbols not allowed in MH_DYLIB files
5957 lt_prog_compiler_pic='-fno-common'
5961 # Just because we use GCC doesn't mean we suddenly get shared libraries
5962 # on systems that don't support them.
5963 lt_prog_compiler_can_build_shared=no
5968 if test -d /usr/nec; then
5969 lt_prog_compiler_pic=-Kconform_pic
5974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5981 lt_prog_compiler_pic='-fPIC'
5987 lt_prog_compiler_pic='-fPIC'
5991 # PORTME Check for flag to pass linker flags through the system compiler.
5994 lt_prog_compiler_wl='-Wl,'
5995 if test "$host_cpu" = ia64; then
5996 # AIX 5 now supports IA64 processor
5997 lt_prog_compiler_static='-Bstatic'
5999 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6003 mingw* | pw32* | os2*)
6004 # This hack is so that the source file can tell whether it is being
6005 # built for inclusion in a dll (and should export symbols for example).
6006 lt_prog_compiler_pic='-DDLL_EXPORT'
6009 hpux9* | hpux10* | hpux11*)
6010 lt_prog_compiler_wl='-Wl,'
6011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6018 lt_prog_compiler_pic='+Z'
6021 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6022 lt_prog_compiler_static='${wl}-a ${wl}archive'
6025 irix5* | irix6* | nonstopux*)
6026 lt_prog_compiler_wl='-Wl,'
6027 # PIC (with -KPIC) is the default.
6028 lt_prog_compiler_static='-non_shared'
6032 lt_prog_compiler_pic='-KPIC'
6033 lt_prog_compiler_static='-Bstatic'
6039 lt_prog_compiler_wl='-Wl,'
6040 lt_prog_compiler_pic='-KPIC'
6041 lt_prog_compiler_static='-static'
6044 lt_prog_compiler_wl='-Wl,'
6045 # All Alpha code is PIC.
6046 lt_prog_compiler_static='-non_shared'
6051 osf3* | osf4* | osf5*)
6052 lt_prog_compiler_wl='-Wl,'
6053 # All OSF/1 code is PIC.
6054 lt_prog_compiler_static='-non_shared'
6058 lt_prog_compiler_pic='-Kpic'
6059 lt_prog_compiler_static='-dn'
6063 lt_prog_compiler_wl='-Wl,'
6064 lt_prog_compiler_pic='-KPIC'
6065 lt_prog_compiler_static='-Bstatic'
6069 lt_prog_compiler_wl='-Qoption ld '
6070 lt_prog_compiler_pic='-PIC'
6071 lt_prog_compiler_static='-Bstatic'
6074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6075 lt_prog_compiler_wl='-Wl,'
6076 lt_prog_compiler_pic='-KPIC'
6077 lt_prog_compiler_static='-Bstatic'
6081 if test -d /usr/nec ;then
6082 lt_prog_compiler_pic='-Kconform_pic'
6083 lt_prog_compiler_static='-Bstatic'
6088 lt_prog_compiler_pic='-pic'
6089 lt_prog_compiler_static='-Bstatic'
6093 lt_prog_compiler_can_build_shared=no
6098 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6099 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6102 # Check to make sure the PIC flag actually works.
6104 if test -n "$lt_prog_compiler_pic"; then
6105 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6107 if test "${lt_prog_compiler_pic_works+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 lt_prog_compiler_pic_works=no
6111 ac_outfile=conftest.$ac_objext
6112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6114 # Insert the option either (1) after the last *FLAGS variable, or
6115 # (2) before a word containing "conftest.", or (3) at the end.
6116 # Note that $ac_compile itself does not contain backslashes and begins
6117 # with a dollar sign (not a hyphen), so the echo should work correctly.
6118 # The option is referenced via a variable to avoid confusing sed.
6119 lt_compile=`echo "$ac_compile" | $SED \
6120 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6122 -e 's:$: $lt_compiler_flag:'`
6123 (eval echo "\"\$as_me:6123: $lt_compile\"" >&5)
6124 (eval "$lt_compile" 2>conftest.err)
6126 cat conftest.err >&5
6127 echo "$as_me:6127: \$? = $ac_status" >&5
6128 if (exit $ac_status) && test -s "$ac_outfile"; then
6129 # The compiler can only warn and ignore the option if not recognized
6130 # So say no if there are warnings
6131 if test ! -s conftest.err; then
6132 lt_prog_compiler_pic_works=yes
6138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6139 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6141 if test x"$lt_prog_compiler_pic_works" = xyes; then
6142 case $lt_prog_compiler_pic in
6144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6147 lt_prog_compiler_pic=
6148 lt_prog_compiler_can_build_shared=no
6153 # For platforms which do not support PIC, -DPIC is meaningless:
6155 lt_prog_compiler_pic=
6158 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 lt_cv_prog_compiler_c_o=no
6168 $rm -r conftest 2>/dev/null
6172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6174 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6175 # that will create temporary files in the current directory regardless of
6176 # the output directory. Thus, making CWD read-only will cause this test
6177 # to fail, enabling locking or at least warning the user not to do parallel
6181 lt_compiler_flag="-o out/conftest2.$ac_objext"
6182 # Insert the option either (1) after the last *FLAGS variable, or
6183 # (2) before a word containing "conftest.", or (3) at the end.
6184 # Note that $ac_compile itself does not contain backslashes and begins
6185 # with a dollar sign (not a hyphen), so the echo should work correctly.
6186 lt_compile=`echo "$ac_compile" | $SED \
6187 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6189 -e 's:$: $lt_compiler_flag:'`
6190 (eval echo "\"\$as_me:6190: $lt_compile\"" >&5)
6191 (eval "$lt_compile" 2>out/conftest.err)
6193 cat out/conftest.err >&5
6194 echo "$as_me:6194: \$? = $ac_status" >&5
6195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6197 # The compiler can only warn and ignore the option if not recognized
6198 # So say no if there are warnings
6199 if test ! -s out/conftest.err; then
6200 lt_cv_prog_compiler_c_o=yes
6211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6215 hard_links="nottested"
6216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6217 # do not overwrite the value of need_locks provided by the user
6218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6224 ln conftest.a conftest.b 2>&5 || hard_links=no
6225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6226 echo "$as_me:$LINENO: result: $hard_links" >&5
6227 echo "${ECHO_T}$hard_links" >&6
6228 if test "$hard_links" = no; then
6229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6237 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6241 allow_undefined_flag=
6242 enable_shared_with_static_runtimes=no
6244 archive_expsym_cmds=
6245 old_archive_From_new_cmds=
6246 old_archive_from_expsyms_cmds=
6247 export_dynamic_flag_spec=
6248 whole_archive_flag_spec=
6249 thread_safe_flag_spec=
6250 hardcode_libdir_flag_spec=
6251 hardcode_libdir_flag_spec_ld=
6252 hardcode_libdir_separator=
6255 hardcode_shlibpath_var=unsupported
6256 link_all_deplibs=unknown
6257 hardcode_automatic=no
6260 always_export_symbols=no
6261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6262 # include_expsyms should be a list of space-separated symbols to be *always*
6263 # included in the symbol list
6265 # exclude_expsyms can be an extended regexp of symbols to exclude
6266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6268 # as well as any symbol that contains `d'.
6269 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6271 # platforms (ab)use it in PIC code, but their linkers get confused if
6272 # the symbol is explicitly referenced. Since portable code cannot
6273 # rely on this symbol name, it's probably fine to never include it in
6274 # preloaded symbol tables.
6275 extract_expsyms_cmds=
6278 cygwin* | mingw* | pw32*)
6279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6280 # When not using gcc, we currently assume that we are using
6281 # Microsoft Visual C++.
6282 if test "$GCC" != yes; then
6292 if test "$with_gnu_ld" = yes; then
6293 # If archive_cmds runs LD, not CC, wlarc should be empty
6296 # See if GNU ld supports shared libraries.
6298 aix3* | aix4* | aix5*)
6299 # On AIX/PPC, the GNU linker is very broken
6300 if test "$host_cpu" != ia64; then
6304 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6305 *** to be unable to reliably create shared libraries on AIX.
6306 *** Therefore, libtool is disabling shared libraries support. If you
6307 *** really care for shared libraries, you may want to modify your PATH
6308 *** so that a non-GNU linker is found, and then restart.
6315 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)'
6316 hardcode_libdir_flag_spec='-L$libdir'
6317 hardcode_minus_L=yes
6319 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6320 # that the semantics of dynamic libraries on AmigaOS, at least up
6321 # to version 4, is to share data among multiple programs linked
6322 # with the same dynamic library. Since this doesn't match the
6323 # behavior of shared libraries on other platforms, we can't use
6329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6330 allow_undefined_flag=unsupported
6331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6332 # support --undefined. This deserves some investigation. FIXME
6333 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6339 cygwin* | mingw* | pw32*)
6340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6341 # as there is no search path for DLLs.
6342 hardcode_libdir_flag_spec='-L$libdir'
6343 allow_undefined_flag=unsupported
6344 always_export_symbols=no
6345 enable_shared_with_static_runtimes=yes
6346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6348 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6350 # If the export-symbols file already is a .def file (1st line
6351 # is EXPORTS), use it as is; otherwise, prepend...
6352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6353 cp $export_symbols $output_objdir/$soname.def;
6355 echo EXPORTS > $output_objdir/$soname.def;
6356 cat $export_symbols >> $output_objdir/$soname.def;
6358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6366 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6375 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6380 *** create shared libraries on Solaris systems. Therefore, libtool
6381 *** is disabling shared libraries support. We urge you to upgrade GNU
6382 *** binutils to release 2.9.1 or newer. Another option is to modify
6383 *** your PATH or compiler configuration so that the native linker is
6384 *** used, and then restart.
6387 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6399 hardcode_shlibpath_var=no
6403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6412 if test "$ld_shlibs" = yes; then
6413 runpath_var=LD_RUN_PATH
6414 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6415 export_dynamic_flag_spec='${wl}--export-dynamic'
6416 # ancient GNU ld didn't support --whole-archive et. al.
6417 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6420 whole_archive_flag_spec=
6424 # PORTME fill in a description of your system's linker (not GNU ld)
6427 allow_undefined_flag=unsupported
6428 always_export_symbols=yes
6429 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'
6430 # Note: this linker hardcodes the directories in LIBPATH if there
6431 # are no directories specified by -L.
6432 hardcode_minus_L=yes
6433 if test "$GCC" = yes && test -z "$link_static_flag"; then
6434 # Neither direct hardcoding nor static linking is supported with a
6436 hardcode_direct=unsupported
6441 if test "$host_cpu" = ia64; then
6442 # On IA64, the linker does run time linking by default, so we don't
6443 # have to do anything special.
6444 aix_use_runtimelinking=no
6445 exp_sym_flag='-Bexport'
6448 # If we're using GNU nm, then we don't want the "-C" option.
6449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6450 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6451 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'
6453 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'
6455 aix_use_runtimelinking=no
6457 # Test if we are trying to use run time linking or normal
6458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6459 # need to do runtime linking.
6460 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6461 for ld_flag in $LDFLAGS; do
6462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6463 aix_use_runtimelinking=yes
6469 exp_sym_flag='-bexport'
6470 no_entry_flag='-bnoentry'
6473 # When large executables or shared objects are built, AIX ld can
6474 # have problems creating the table of contents. If linking a library
6475 # or program results in "error TOC overflow" add -mminimal-toc to
6476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6481 hardcode_libdir_separator=':'
6482 link_all_deplibs=yes
6484 if test "$GCC" = yes; then
6485 case $host_os in aix4.012|aix4.012.*)
6486 # We only want to do this on AIX 4.2 and lower, the check
6487 # below for broken collect2 doesn't work under 4.3+
6488 collect2name=`${CC} -print-prog-name=collect2`
6489 if test -f "$collect2name" && \
6490 strings "$collect2name" | grep resolve_lib_name >/dev/null
6492 # We have reworked collect2
6495 # We have old collect2
6496 hardcode_direct=unsupported
6497 # It fails to find uninstalled libraries when the uninstalled
6498 # path is not listed in the libpath. Setting hardcode_minus_L
6499 # to unsupported forces relinking
6500 hardcode_minus_L=yes
6501 hardcode_libdir_flag_spec='-L$libdir'
6502 hardcode_libdir_separator=
6505 shared_flag='-shared'
6508 if test "$host_cpu" = ia64; then
6509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6510 # chokes on -Wl,-G. The following line is correct:
6513 if test "$aix_use_runtimelinking" = yes; then
6514 shared_flag='${wl}-G'
6516 shared_flag='${wl}-bM:SRE'
6521 # It seems that -bexpall does not export symbols beginning with
6522 # underscore (_), so it is better to generate a list of symbols to export.
6523 always_export_symbols=yes
6524 if test "$aix_use_runtimelinking" = yes; then
6525 # Warning - without using the other runtime loading flags (-brtl),
6526 # -berok will link without error, but may produce a broken library.
6527 allow_undefined_flag='-berok'
6528 # Determine the default libpath from the value encoded in an empty executable.
6529 cat >conftest.$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest$ac_exeext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6560 # Check for a 64-bit object if we didn't find anything.
6561 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; }
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6572 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"
6574 if test "$host_cpu" = ia64; then
6575 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6576 allow_undefined_flag="-z nodefs"
6577 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"
6579 # Determine the default libpath from the value encoded in an empty executable.
6580 cat >conftest.$ac_ext <<_ACEOF
6581 #line $LINENO "configure"
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6611 # Check for a 64-bit object if we didn't find anything.
6612 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; }
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6623 # Warning - without using the other run time loading flags,
6624 # -berok will link without error, but may produce a broken library.
6625 no_undefined_flag=' ${wl}-bernotok'
6626 allow_undefined_flag=' ${wl}-berok'
6627 # -bexpall does not export symbols beginning with underscore (_)
6628 always_export_symbols=yes
6629 # Exported symbols can be pulled into shared objects from archives
6630 whole_archive_flag_spec=' '
6631 archive_cmds_need_lc=yes
6632 # This is similar to how AIX traditionally builds it's shared libraries.
6633 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'
6639 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)'
6640 hardcode_libdir_flag_spec='-L$libdir'
6641 hardcode_minus_L=yes
6642 # see comment about different semantics on the GNU ld section
6647 export_dynamic_flag_spec=-rdynamic
6650 cygwin* | mingw* | pw32*)
6651 # When not using gcc, we currently assume that we are using
6652 # Microsoft Visual C++.
6653 # hardcode_libdir_flag_spec is actually meaningless, as there is
6654 # no search path for DLLs.
6655 hardcode_libdir_flag_spec=' '
6656 allow_undefined_flag=unsupported
6657 # Tell ltmain to make .lib files, not .a files.
6659 # Tell ltmain to make .dll files, not .so files.
6661 # FIXME: Setting linknames here is a bad hack.
6662 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6663 # The linker will automatically build a .lib file if we build a DLL.
6664 old_archive_From_new_cmds='true'
6665 # FIXME: Should let the user specify the lib program.
6666 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6667 fix_srcfile_path='`cygpath -w "$srcfile"`'
6668 enable_shared_with_static_runtimes=yes
6671 darwin* | rhapsody*)
6672 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6673 archive_cmds_need_lc=no
6675 rhapsody* | darwin1.[012])
6676 allow_undefined_flag='-undefined suppress'
6679 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6682 # FIXME: Relying on posixy $() will cause problems for
6683 # cross-compilation, but unfortunately the echo tests do not
6684 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6685 # `"' quotes if we put them in here... so don't!
6686 lt_int_apple_cc_single_mod=no
6687 output_verbose_link_cmd='echo'
6688 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6689 lt_int_apple_cc_single_mod=yes
6691 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6692 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6694 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'
6696 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6699 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}'
6701 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}'
6703 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}'
6705 hardcode_automatic=yes
6706 hardcode_shlibpath_var=unsupported
6707 whole_archive_flag_spec='-all_load $convenience'
6708 link_all_deplibs=yes
6713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714 hardcode_libdir_flag_spec='-L$libdir'
6715 hardcode_shlibpath_var=no
6722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6723 # support. Future versions do this automatically, but an explicit c++rt0.o
6724 # does not break anything, and helps significantly (at the cost of a little
6727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6728 hardcode_libdir_flag_spec='-R$libdir'
6730 hardcode_shlibpath_var=no
6733 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6737 hardcode_minus_L=yes
6738 hardcode_shlibpath_var=no
6741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6743 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6744 hardcode_libdir_flag_spec='-R$libdir'
6746 hardcode_shlibpath_var=no
6750 if test "$GCC" = yes; then
6751 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'
6753 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'
6755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6756 hardcode_libdir_separator=:
6759 # hardcode_minus_L: Not really in the search PATH,
6760 # but as the default location of the library.
6761 hardcode_minus_L=yes
6762 export_dynamic_flag_spec='${wl}-E'
6766 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6769 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6772 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6778 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6785 if test "$with_gnu_ld" = no; then
6788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6789 hardcode_libdir_flag_spec_ld='+b $libdir'
6790 hardcode_libdir_separator=:
6792 hardcode_shlibpath_var=no
6795 hardcode_libdir_flag_spec='-L$libdir'
6797 hardcode_shlibpath_var=no
6799 # hardcode_minus_L: Not really in the search PATH,
6800 # but as the default location of the library.
6801 hardcode_minus_L=yes
6804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6805 hardcode_libdir_separator=:
6807 export_dynamic_flag_spec='${wl}-E'
6809 # hardcode_minus_L: Not really in the search PATH,
6810 # but as the default location of the library.
6811 hardcode_minus_L=yes
6817 irix5* | irix6* | nonstopux*)
6818 if test "$GCC" = yes; then
6819 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'
6821 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'
6822 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6825 hardcode_libdir_separator=:
6826 link_all_deplibs=yes
6830 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6835 hardcode_libdir_flag_spec='-R$libdir'
6837 hardcode_shlibpath_var=no
6841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6844 hardcode_libdir_separator=:
6845 hardcode_shlibpath_var=no
6850 hardcode_shlibpath_var=no
6851 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6854 export_dynamic_flag_spec='${wl}-E'
6857 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6859 hardcode_libdir_flag_spec='-R$libdir'
6862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6870 hardcode_libdir_flag_spec='-L$libdir'
6871 hardcode_minus_L=yes
6872 allow_undefined_flag=unsupported
6873 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'
6874 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6878 if test "$GCC" = yes; then
6879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6880 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'
6882 allow_undefined_flag=' -expect_unresolved \*'
6883 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'
6885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6886 hardcode_libdir_separator=:
6889 osf4* | osf5*) # as osf3* with the addition of -msym flag
6890 if test "$GCC" = yes; then
6891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6892 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'
6893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6895 allow_undefined_flag=' -expect_unresolved \*'
6896 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'
6897 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6898 $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'
6900 # Both c and cxx compiler support -rpath directly
6901 hardcode_libdir_flag_spec='-rpath $libdir'
6903 hardcode_libdir_separator=:
6907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6908 hardcode_shlibpath_var=no
6909 export_dynamic_flag_spec='${wl}-Bexport'
6910 runpath_var=LD_RUN_PATH
6911 hardcode_runpath_var=yes
6915 no_undefined_flag=' -z text'
6916 if test "$GCC" = yes; then
6917 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6918 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6919 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6925 hardcode_libdir_flag_spec='-R$libdir'
6926 hardcode_shlibpath_var=no
6928 solaris2.[0-5] | solaris2.[0-5].*) ;;
6929 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6930 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6932 link_all_deplibs=yes
6936 if test "x$host_vendor" = xsequent; then
6937 # Use $CC to link under sequent, because it throws in some extra .o
6938 # files that make .init and .fini sections work.
6939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6943 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_minus_L=yes
6946 hardcode_shlibpath_var=no
6950 case $host_vendor in
6952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6953 hardcode_direct=yes # is this really true???
6956 ## LD is ld it makes a PLAMLIB
6957 ## CC just makes a GrossModule.
6958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6959 reload_cmds='$CC -r -o $output$reload_objs'
6963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6967 runpath_var='LD_RUN_PATH'
6968 hardcode_shlibpath_var=no
6972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6973 hardcode_shlibpath_var=no
6974 export_dynamic_flag_spec='-Bexport'
6978 if test -d /usr/nec; then
6979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980 hardcode_shlibpath_var=no
6981 runpath_var=LD_RUN_PATH
6982 hardcode_runpath_var=yes
6988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6991 hardcode_shlibpath_var=no
6992 hardcode_runpath_var=yes
6993 runpath_var=LD_RUN_PATH
6996 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6997 no_undefined_flag='${wl}-z ${wl}text'
6998 if test "$GCC" = yes; then
6999 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7003 runpath_var='LD_RUN_PATH'
7004 hardcode_shlibpath_var=no
7008 no_undefined_flag=' -z text'
7009 # $CC -shared without GNU ld will not create a library from C++
7010 # object files and a static libstdc++, better avoid it by now
7011 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7012 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7013 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7014 hardcode_libdir_flag_spec=
7015 hardcode_shlibpath_var=no
7016 runpath_var='LD_RUN_PATH'
7020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7021 hardcode_libdir_flag_spec='-L$libdir'
7022 hardcode_shlibpath_var=no
7031 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7032 echo "${ECHO_T}$ld_shlibs" >&6
7033 test "$ld_shlibs" = no && can_build_shared=no
7035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7036 if test "$GCC" = yes; then
7037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7041 # Do we need to explicitly link libc?
7043 case "x$archive_cmds_need_lc" in
7045 # Assume -lc should be added
7046 archive_cmds_need_lc=yes
7048 if test "$enable_shared" = yes && test "$GCC" = yes; then
7049 case $archive_cmds in
7051 # FIXME: we may have to deal with multi-command sequences.
7054 # Test whether the compiler implicitly links with -lc since on some
7055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7056 # to ld, don't add -lc before -lgcc.
7057 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } 2>conftest.err; then
7069 libobjs=conftest.$ac_objext
7071 wl=$lt_prog_compiler_wl
7077 lt_save_allow_undefined_flag=$allow_undefined_flag
7078 allow_undefined_flag=
7079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7080 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }
7085 archive_cmds_need_lc=no
7087 archive_cmds_need_lc=yes
7089 allow_undefined_flag=$lt_save_allow_undefined_flag
7091 cat conftest.err 1>&5
7094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7095 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7105 if test -n "$hardcode_libdir_flag_spec" || \
7106 test -n "$runpath_var " || \
7107 test "X$hardcode_automatic"="Xyes" ; then
7109 # We can hardcode non-existant directories.
7110 if test "$hardcode_direct" != no &&
7111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7112 # have to relink, otherwise we might link with an installed library
7113 # when we should be linking with a yet-to-be-installed one
7114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7115 test "$hardcode_minus_L" != no; then
7116 # Linking always hardcodes the temporary library directory.
7117 hardcode_action=relink
7119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7120 hardcode_action=immediate
7123 # We cannot hardcode anything, or else we can only hardcode existing
7125 hardcode_action=unsupported
7127 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7128 echo "${ECHO_T}$hardcode_action" >&6
7130 if test "$hardcode_action" = relink; then
7131 # Fast installation is not supported
7132 enable_fast_install=no
7133 elif test "$shlibpath_overrides_runpath" = yes ||
7134 test "$enable_shared" = no; then
7135 # Fast installation is not necessary
7136 enable_fast_install=needless
7141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7146 echo "$as_me:$LINENO: result: yes" >&5
7147 echo "${ECHO_T}yes" >&6
7149 # FIXME - insert some real tests, host_os isn't really good enough
7152 if test -n "$STRIP" ; then
7153 striplib="$STRIP -x"
7154 echo "$as_me:$LINENO: result: yes" >&5
7155 echo "${ECHO_T}yes" >&6
7157 echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6
7162 echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7168 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7169 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7171 libname_spec='lib$name'
7179 shlibpath_overrides_runpath=unknown
7181 dynamic_linker="$host_os ld.so"
7182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7183 if test "$GCC" = yes; then
7184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7185 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7186 # if the path contains ";" then we assume it to be the separator
7187 # otherwise default to the standard path separator (i.e. ":") - it is
7188 # assumed that no part of a normal pathname contains ";" but that should
7189 # okay in the real world where ";" in dirpaths is itself problematic.
7190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7197 need_lib_prefix=unknown
7198 hardcode_into_libs=no
7200 # when you set need_version to no, make sure it does not cause -set_version
7201 # flags to be left without arguments
7202 need_version=unknown
7207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7208 shlibpath_var=LIBPATH
7210 # AIX 3 has no versioning support, so we append a major version to the name.
7211 soname_spec='${libname}${release}${shared_ext}$major'
7218 hardcode_into_libs=yes
7219 if test "$host_cpu" = ia64; then
7220 # AIX 5 supports IA64
7221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7222 shlibpath_var=LD_LIBRARY_PATH
7224 # With GCC up to 2.95.x, collect2 would create an import file
7225 # for dependence libraries. The import file would start with
7226 # the line `#! .'. This would cause the generated library to
7227 # depend on `.', always an invalid library. This was fixed in
7228 # development snapshots of GCC prior to 3.0.
7230 aix4 | aix4.[01] | aix4.[01].*)
7231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7233 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7241 # soname into executable. Probably we can add versioning support to
7242 # collect2, so additional links can be useful in future.
7243 if test "$aix_use_runtimelinking" = yes; then
7244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7245 # instead of lib<name>.a to let people know that these are not
7246 # typical AIX shared libraries.
7247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7249 # We preserve .a as extension for shared libraries through AIX4.2
7250 # and later when we are not doing run time linking.
7251 library_names_spec='${libname}${release}.a $libname.a'
7252 soname_spec='${libname}${release}${shared_ext}$major'
7254 shlibpath_var=LIBPATH
7259 library_names_spec='$libname.ixlibrary $libname.a'
7260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7261 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'
7265 library_names_spec='${libname}${shared_ext}'
7266 dynamic_linker="$host_os ld.so"
7267 shlibpath_var=LIBRARY_PATH
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7274 soname_spec='${libname}${release}${shared_ext}$major'
7275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7276 shlibpath_var=LD_LIBRARY_PATH
7277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7279 # the default ld.so.conf also contains /usr/contrib/lib and
7280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7281 # libtool to hard-code these into programs
7284 cygwin* | mingw* | pw32*)
7285 version_type=windows
7290 case $GCC,$host_os in
7291 yes,cygwin* | yes,mingw* | yes,pw32*)
7292 library_names_spec='$libname.dll.a'
7293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7294 postinstall_cmds='base_file=`basename \${file}`~
7295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7296 dldir=$destdir/`dirname \$dlpath`~
7297 test -d \$dldir || mkdir -p \$dldir~
7298 $install_prog $dir/$dlname \$dldir/$dlname'
7299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7300 dlpath=$dir/\$dldll~
7302 shlibpath_overrides_runpath=yes
7306 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7308 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7311 # MinGW DLLs use traditional 'lib' prefix
7312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7314 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7315 # It is most probably a Windows format PATH printed by
7316 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7317 # path with ; separators, and with drive letters. We can handle the
7318 # drive letters (cygwin fileutils understands them), so leave them,
7319 # especially as we might pass files found there to a mingw objdump,
7320 # which wouldn't understand a cygwinified path. Ahh.
7321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7327 # pw32 DLLs use 'pw' prefix rather than 'lib'
7328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7334 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7337 dynamic_linker='Win32 ld.exe'
7338 # FIXME: first we should search . and the directory the executable is in
7342 darwin* | rhapsody*)
7343 dynamic_linker="$host_os dyld"
7347 # FIXME: Relying on posixy $() will cause problems for
7348 # cross-compilation, but unfortunately the echo tests do not
7349 # yet detect zsh echo's removal of \ escapes.
7350 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7351 soname_spec='${libname}${release}${major}$shared_ext'
7352 shlibpath_overrides_runpath=yes
7353 shlibpath_var=DYLD_LIBRARY_PATH
7354 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7355 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7356 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7357 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"`
7359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7367 soname_spec='${libname}${release}${shared_ext}$major'
7368 shlibpath_var=LD_LIBRARY_PATH
7376 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7377 version_type=freebsd-$objformat
7378 case $version_type in
7380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7389 shlibpath_var=LD_LIBRARY_PATH
7392 shlibpath_overrides_runpath=yes
7394 freebsd3.01* | freebsdelf3.01*)
7395 shlibpath_overrides_runpath=yes
7396 hardcode_into_libs=yes
7399 shlibpath_overrides_runpath=no
7400 hardcode_into_libs=yes
7409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7410 soname_spec='${libname}${release}${shared_ext}$major'
7411 shlibpath_var=LD_LIBRARY_PATH
7412 hardcode_into_libs=yes
7415 hpux9* | hpux10* | hpux11*)
7416 # Give a soname corresponding to the major version so that dld.sl refuses to
7417 # link against other versions.
7424 hardcode_into_libs=yes
7425 dynamic_linker="$host_os dld.so"
7426 shlibpath_var=LD_LIBRARY_PATH
7427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7429 soname_spec='${libname}${release}${shared_ext}$major'
7430 if test "X$HPUX_IA64_MODE" = X32; then
7431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7439 hardcode_into_libs=yes
7440 dynamic_linker="$host_os dld.sl"
7441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7444 soname_spec='${libname}${release}${shared_ext}$major'
7445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7450 dynamic_linker="$host_os dld.sl"
7451 shlibpath_var=SHLIB_PATH
7452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7454 soname_spec='${libname}${release}${shared_ext}$major'
7457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7458 postinstall_cmds='chmod 555 $lib'
7461 irix5* | irix6* | nonstopux*)
7463 nonstopux*) version_type=nonstopux ;;
7465 if test "$lt_cv_prog_gnu_ld" = yes; then
7473 soname_spec='${libname}${release}${shared_ext}$major'
7474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7476 irix5* | nonstopux*)
7480 case $LD in # libtool.m4 will add one of these switches to LD
7481 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7482 libsuff= shlibsuff= libmagic=32-bit;;
7483 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7484 libsuff=32 shlibsuff=N32 libmagic=N32;;
7485 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7486 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7487 *) libsuff= shlibsuff= libmagic=never-match;;
7491 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7492 shlibpath_overrides_runpath=no
7493 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7494 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7495 hardcode_into_libs=yes
7498 # No shared lib support for Linux oldld, aout, or coff.
7499 linux*oldld* | linux*aout* | linux*coff*)
7503 # This must be Linux ELF.
7508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7509 soname_spec='${libname}${release}${shared_ext}$major'
7510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7511 shlibpath_var=LD_LIBRARY_PATH
7512 shlibpath_overrides_runpath=no
7513 # This implies no fast_install, which is unacceptable.
7514 # Some rework will be needed to allow for fast_install
7515 # before this can be enabled.
7516 hardcode_into_libs=yes
7518 # We used to test for /lib/ld.so.1 and disable shared libraries on
7519 # powerpc, because MkLinux only supported shared libraries with the
7520 # GNU dynamic linker. Since this was broken with cross compilers,
7521 # most powerpc-linux boxes support dynamic linking these days and
7522 # people can always --disable-shared, the test was removed, and we
7523 # assume the GNU/Linux dynamic linker is in use.
7524 dynamic_linker='GNU/Linux ld.so'
7531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7534 dynamic_linker='NetBSD (a.out) ld.so'
7536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7537 soname_spec='${libname}${release}${shared_ext}$major'
7538 dynamic_linker='NetBSD ld.elf_so'
7540 shlibpath_var=LD_LIBRARY_PATH
7541 shlibpath_overrides_runpath=yes
7542 hardcode_into_libs=yes
7547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7548 shlibpath_var=LD_LIBRARY_PATH
7549 shlibpath_overrides_runpath=yes
7556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7557 soname_spec='${libname}${release}${shared_ext}$major'
7558 shlibpath_var=LD_LIBRARY_PATH
7559 shlibpath_overrides_runpath=yes
7566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7568 shlibpath_var=LD_LIBRARY_PATH
7569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7571 openbsd2.[89] | openbsd2.[89].*)
7572 shlibpath_overrides_runpath=no
7575 shlibpath_overrides_runpath=yes
7579 shlibpath_overrides_runpath=yes
7584 libname_spec='$name'
7587 library_names_spec='$libname${shared_ext} $libname.a'
7588 dynamic_linker='OS/2 ld.exe'
7589 shlibpath_var=LIBPATH
7592 osf3* | osf4* | osf5*)
7596 soname_spec='${libname}${release}${shared_ext}$major'
7597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7598 shlibpath_var=LD_LIBRARY_PATH
7599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7605 soname_spec='${libname}${release}${shared_ext}$major'
7606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7607 shlibpath_var=LD_LIBRARY_PATH
7614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7615 soname_spec='${libname}${release}${shared_ext}$major'
7616 shlibpath_var=LD_LIBRARY_PATH
7617 shlibpath_overrides_runpath=yes
7618 hardcode_into_libs=yes
7619 # ldd complains unless libraries are executable
7620 postinstall_cmds='chmod +x $lib'
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7627 shlibpath_var=LD_LIBRARY_PATH
7628 shlibpath_overrides_runpath=yes
7629 if test "$with_gnu_ld" = yes; then
7635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7638 soname_spec='${libname}${release}${shared_ext}$major'
7639 shlibpath_var=LD_LIBRARY_PATH
7640 case $host_vendor in
7642 shlibpath_overrides_runpath=no
7644 export_dynamic_flag_spec='${wl}-Blargedynsym'
7645 runpath_var=LD_RUN_PATH
7653 shlibpath_overrides_runpath=no
7654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7660 if test -d /usr/nec ;then
7662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7663 soname_spec='$libname${shared_ext}.$major'
7664 shlibpath_var=LD_LIBRARY_PATH
7670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7671 soname_spec='${libname}${release}${shared_ext}$major'
7672 shlibpath_var=LD_LIBRARY_PATH
7679 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7680 echo "${ECHO_T}$dynamic_linker" >&6
7681 test "$dynamic_linker" = no && can_build_shared=no
7683 if test "x$enable_dlopen" != xyes; then
7684 enable_dlopen=unknown
7685 enable_dlopen_self=unknown
7686 enable_dlopen_self_static=unknown
7693 lt_cv_dlopen="load_add_on"
7695 lt_cv_dlopen_self=yes
7699 lt_cv_dlopen="LoadLibrary"
7704 lt_cv_dlopen="dlopen"
7709 # if libdl is installed we need to link against it
7710 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7711 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_check_lib_save_LIBS=$LIBS
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7725 /* Override any gcc2 internal prototype to avoid an error. */
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_lib_dl_dlopen=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_dl_dlopen=no
7759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7764 if test $ac_cv_lib_dl_dlopen = yes; then
7765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7770 lt_cv_dlopen_self=yes
7777 echo "$as_me:$LINENO: checking for shl_load" >&5
7778 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7779 if test "${ac_cv_func_shl_load+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.$ac_ext <<_ACEOF
7783 #line $LINENO "configure"
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 /* System header to define __stub macros and hopefully few prototypes,
7790 which can conflict with char shl_load (); below.
7791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792 <limits.h> exists even on freestanding compilers. */
7794 # include <limits.h>
7796 # include <assert.h>
7798 /* Override any gcc2 internal prototype to avoid an error. */
7803 /* We use char because int might match the return type of a gcc2
7804 builtin and then its argument prototype would still apply. */
7806 /* The GNU C library defines this for functions which it implements
7807 to always fail with ENOSYS. Some functions are actually named
7808 something starting with __ and the normal name is an alias. */
7809 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7812 char (*f) () = shl_load;
7821 return f != shl_load;
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_func_shl_load=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_func_shl_load=no
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7849 if test $ac_cv_func_shl_load = yes; then
7850 lt_cv_dlopen="shl_load"
7852 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7853 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7854 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_check_lib_save_LIBS=$LIBS
7859 cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7867 /* Override any gcc2 internal prototype to avoid an error. */
7871 /* We use char because int might match the return type of a gcc2
7872 builtin and then its argument prototype would still apply. */
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7884 (eval $ac_link) 2>&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -s conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_lib_dld_shl_load=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_lib_dld_shl_load=no
7901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7904 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7905 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7906 if test $ac_cv_lib_dld_shl_load = yes; then
7907 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7909 echo "$as_me:$LINENO: checking for dlopen" >&5
7910 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7911 if test "${ac_cv_func_dlopen+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 /* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char dlopen (); below.
7923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924 <limits.h> exists even on freestanding compilers. */
7926 # include <limits.h>
7928 # include <assert.h>
7930 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7938 /* The GNU C library defines this for functions which it implements
7939 to always fail with ENOSYS. Some functions are actually named
7940 something starting with __ and the normal name is an alias. */
7941 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7944 char (*f) () = dlopen;
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_func_dlopen=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_func_dlopen=no
7977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7979 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7980 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7981 if test $ac_cv_func_dlopen = yes; then
7982 lt_cv_dlopen="dlopen"
7984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7985 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 ac_check_lib_save_LIBS=$LIBS
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7999 /* Override any gcc2 internal prototype to avoid an error. */
8003 /* We use char because int might match the return type of a gcc2
8004 builtin and then its argument prototype would still apply. */
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016 (eval $ac_link) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dl_dlopen=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_lib_dl_dlopen=no
8033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8036 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8037 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8038 if test $ac_cv_lib_dl_dlopen = yes; then
8039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8041 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8042 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8043 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 ac_check_lib_save_LIBS=$LIBS
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line $LINENO "configure"
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8056 /* Override any gcc2 internal prototype to avoid an error. */
8060 /* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8073 (eval $ac_link) 2>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -s conftest$ac_exeext'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_cv_lib_svld_dlopen=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_lib_svld_dlopen=no
8090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091 LIBS=$ac_check_lib_save_LIBS
8093 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8095 if test $ac_cv_lib_svld_dlopen = yes; then
8096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8098 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 ac_check_lib_save_LIBS=$LIBS
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8113 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_lib_dld_dld_link=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ac_cv_lib_dld_dld_link=no
8147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 LIBS=$ac_check_lib_save_LIBS
8150 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8151 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8152 if test $ac_cv_lib_dld_dld_link = yes; then
8153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8174 if test "x$lt_cv_dlopen" != xno; then
8180 case $lt_cv_dlopen in
8182 save_CPPFLAGS="$CPPFLAGS"
8183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8185 save_LDFLAGS="$LDFLAGS"
8186 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8189 LIBS="$lt_cv_dlopen_libs $LIBS"
8191 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8192 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8193 if test "${lt_cv_dlopen_self+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 if test "$cross_compiling" = yes; then :
8197 lt_cv_dlopen_self=cross
8199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8200 lt_status=$lt_dlunknown
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8202 "configure"
8203 #include "confdefs.h"
8212 # define LT_DLGLOBAL RTLD_GLOBAL
8215 # define LT_DLGLOBAL DL_GLOBAL
8217 # define LT_DLGLOBAL 0
8221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8222 find out it does not work in some platform. */
8223 #ifndef LT_DLLAZY_OR_NOW
8225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8228 # define LT_DLLAZY_OR_NOW DL_LAZY
8231 # define LT_DLLAZY_OR_NOW RTLD_NOW
8234 # define LT_DLLAZY_OR_NOW DL_NOW
8236 # define LT_DLLAZY_OR_NOW 0
8244 extern "C" void exit (int);
8247 void fnord() { int i=42;}
8250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8251 int status = $lt_dlunknown;
8255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8257 /* dlclose (self); */
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8268 (./conftest; exit; ) 2>/dev/null
8271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8273 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8276 # compilation failed
8277 lt_cv_dlopen_self=no
8284 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8287 if test "x$lt_cv_dlopen_self" = xyes; then
8288 LDFLAGS="$LDFLAGS $link_static_flag"
8289 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8291 if test "${lt_cv_dlopen_self_static+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 if test "$cross_compiling" = yes; then :
8295 lt_cv_dlopen_self_static=cross
8297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8298 lt_status=$lt_dlunknown
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8300 "configure"
8301 #include "confdefs.h"
8310 # define LT_DLGLOBAL RTLD_GLOBAL
8313 # define LT_DLGLOBAL DL_GLOBAL
8315 # define LT_DLGLOBAL 0
8319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8320 find out it does not work in some platform. */
8321 #ifndef LT_DLLAZY_OR_NOW
8323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8326 # define LT_DLLAZY_OR_NOW DL_LAZY
8329 # define LT_DLLAZY_OR_NOW RTLD_NOW
8332 # define LT_DLLAZY_OR_NOW DL_NOW
8334 # define LT_DLLAZY_OR_NOW 0
8342 extern "C" void exit (int);
8345 void fnord() { int i=42;}
8348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8349 int status = $lt_dlunknown;
8353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8355 /* dlclose (self); */
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8366 (./conftest; exit; ) 2>/dev/null
8369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8371 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8374 # compilation failed
8375 lt_cv_dlopen_self_static=no
8382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8383 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8386 CPPFLAGS="$save_CPPFLAGS"
8387 LDFLAGS="$save_LDFLAGS"
8392 case $lt_cv_dlopen_self in
8393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8394 *) enable_dlopen_self=unknown ;;
8397 case $lt_cv_dlopen_self_static in
8398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8399 *) enable_dlopen_self_static=unknown ;;
8404 # Report which librarie types wil actually be built
8405 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8406 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8407 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8408 echo "${ECHO_T}$can_build_shared" >&6
8410 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8411 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8412 test "$can_build_shared" = "no" && enable_shared=no
8414 # On AIX, shared libraries and static libraries use the same namespace, and
8415 # are all built from PIC.
8418 test "$enable_shared" = yes && enable_static=no
8419 if test -n "$RANLIB"; then
8420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8421 postinstall_cmds='$RANLIB $lib'
8426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8427 test "$enable_shared" = yes && enable_static=no
8430 darwin* | rhapsody*)
8431 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8432 archive_cmds_need_lc=no
8434 rhapsody* | darwin1.[012])
8435 allow_undefined_flag='-undefined suppress'
8438 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8441 # FIXME: Relying on posixy $() will cause problems for
8442 # cross-compilation, but unfortunately the echo tests do not
8443 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8444 # `"' quotes if we put them in here... so don't!
8445 output_verbose_link_cmd='echo'
8446 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8447 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8448 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8449 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}'
8450 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}'
8452 hardcode_automatic=yes
8453 hardcode_shlibpath_var=unsupported
8454 whole_archive_flag_spec='-all_load $convenience'
8455 link_all_deplibs=yes
8459 echo "$as_me:$LINENO: result: $enable_shared" >&5
8460 echo "${ECHO_T}$enable_shared" >&6
8462 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8463 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8464 # Make sure either enable_shared or enable_static is yes.
8465 test "$enable_shared" = yes || enable_static=yes
8466 echo "$as_me:$LINENO: result: $enable_static" >&5
8467 echo "${ECHO_T}$enable_static" >&6
8469 # The else clause should only fire when bootstrapping the
8470 # libtool distribution, otherwise you forgot to ship ltmain.sh
8471 # with your package, and you will get complaints that there are
8472 # no rules to generate ltmain.sh.
8473 if test -f "$ltmain"; then
8474 # See if we are running on zsh, and set the options which allow our commands through
8475 # without removal of \ escapes.
8476 if test -n "${ZSH_VERSION+set}" ; then
8477 setopt NO_GLOB_SUBST
8479 # Now quote all the things that may contain metacharacters while being
8480 # careful not to overquote the AC_SUBSTed values. We take copies of the
8481 # variables and quote the copies for generation of the libtool script.
8482 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8483 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8484 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8485 deplibs_check_method reload_flag reload_cmds need_locks \
8486 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8487 lt_cv_sys_global_symbol_to_c_name_address \
8488 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8489 old_postinstall_cmds old_postuninstall_cmds \
8493 lt_prog_compiler_wl \
8494 lt_prog_compiler_pic \
8495 lt_prog_compiler_static \
8496 lt_prog_compiler_no_builtin_flag \
8497 export_dynamic_flag_spec \
8498 thread_safe_flag_spec \
8499 whole_archive_flag_spec \
8500 enable_shared_with_static_runtimes \
8502 old_archive_from_new_cmds \
8507 compiler_lib_search_path \
8509 archive_expsym_cmds \
8511 postuninstall_cmds \
8512 old_archive_from_expsyms_cmds \
8513 allow_undefined_flag \
8515 export_symbols_cmds \
8516 hardcode_libdir_flag_spec \
8517 hardcode_libdir_flag_spec_ld \
8518 hardcode_libdir_separator \
8519 hardcode_automatic \
8521 module_expsym_cmds \
8522 lt_cv_prog_compiler_c_o \
8527 old_archive_cmds | \
8528 old_archive_from_new_cmds | \
8530 archive_expsym_cmds | \
8532 module_expsym_cmds | \
8533 old_archive_from_expsyms_cmds | \
8534 export_symbols_cmds | \
8535 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8536 postinstall_cmds | postuninstall_cmds | \
8537 old_postinstall_cmds | old_postuninstall_cmds | \
8538 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8539 # Double-quote double-evaled strings.
8540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8549 *'\$0 --fallback-echo"')
8550 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8555 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8557 { echo "$as_me:$LINENO: creating $ofile" >&5
8558 echo "$as_me: creating $ofile" >&6;}
8560 cat <<__EOF__ >> "$cfgfile"
8563 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8564 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8565 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8567 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8568 # Free Software Foundation, Inc.
8570 # This file is part of GNU Libtool:
8571 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8573 # This program is free software; you can redistribute it and/or modify
8574 # it under the terms of the GNU General Public License as published by
8575 # the Free Software Foundation; either version 2 of the License, or
8576 # (at your option) any later version.
8578 # This program is distributed in the hope that it will be useful, but
8579 # WITHOUT ANY WARRANTY; without even the implied warranty of
8580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8581 # General Public License for more details.
8583 # You should have received a copy of the GNU General Public License
8584 # along with this program; if not, write to the Free Software
8585 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8587 # As a special exception to the GNU General Public License, if you
8588 # distribute this file as part of a program that contains a
8589 # configuration script generated by Autoconf, you may include it under
8590 # the same distribution terms that you use for the rest of that program.
8592 # A sed program that does not truncate output.
8595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8596 Xsed="$SED -e s/^X//"
8598 # The HP-UX ksh and POSIX shell print the target directory to stdout
8600 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8602 # The names of the tagged configurations supported by this script.
8605 # ### BEGIN LIBTOOL CONFIG
8607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8609 # Shell to use when invoking shell scripts.
8612 # Whether or not to build shared libraries.
8613 build_libtool_libs=$enable_shared
8615 # Whether or not to build static libraries.
8616 build_old_libs=$enable_static
8618 # Whether or not to add -lc for building shared libraries.
8619 build_libtool_need_lc=$archive_cmds_need_lc
8621 # Whether or not to disallow shared libs when runtime libs are static
8622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8624 # Whether or not to optimize for fast installation.
8625 fast_install=$enable_fast_install
8628 host_alias=$host_alias
8631 # An echo program that does not interpret backslashes.
8636 AR_FLAGS=$lt_AR_FLAGS
8641 # A language-specific compiler.
8644 # Is the compiler the GNU C compiler?
8650 # The linker used to build libraries.
8653 # Whether we need hard or soft links.
8656 # A BSD-compatible nm program.
8659 # A symbol stripping program
8662 # Used to examine libraries when file_magic_cmd begins "file"
8663 MAGIC_CMD=$MAGIC_CMD
8665 # Used on cygwin: DLL creation program.
8668 # Used on cygwin: object dumper.
8671 # Used on cygwin: assembler.
8674 # The name of the directory that contains temporary libtool files.
8677 # How to create reloadable object files.
8678 reload_flag=$lt_reload_flag
8679 reload_cmds=$lt_reload_cmds
8681 # How to pass a linker flag through the compiler.
8682 wl=$lt_lt_prog_compiler_wl
8684 # Object file suffix (normally "o").
8687 # Old archive suffix (normally "a").
8690 # Shared library suffix (normally ".so").
8693 # Executable file suffix (normally "").
8696 # Additional compiler flags for building library objects.
8697 pic_flag=$lt_lt_prog_compiler_pic
8700 # What is the maximum length of a command?
8701 max_cmd_len=$lt_cv_sys_max_cmd_len
8703 # Does compiler simultaneously support -c and -o options?
8704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8706 # Must we lock files when doing compilation ?
8707 need_locks=$lt_need_locks
8709 # Do we need the lib prefix for modules?
8710 need_lib_prefix=$need_lib_prefix
8712 # Do we need a version for libraries?
8713 need_version=$need_version
8715 # Whether dlopen is supported.
8716 dlopen_support=$enable_dlopen
8718 # Whether dlopen of programs is supported.
8719 dlopen_self=$enable_dlopen_self
8721 # Whether dlopen of statically linked programs is supported.
8722 dlopen_self_static=$enable_dlopen_self_static
8724 # Compiler flag to prevent dynamic linking.
8725 link_static_flag=$lt_lt_prog_compiler_static
8727 # Compiler flag to turn off builtin functions.
8728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8730 # Compiler flag to allow reflexive dlopens.
8731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8733 # Compiler flag to generate shared objects directly from archives.
8734 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8736 # Compiler flag to generate thread-safe objects.
8737 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8739 # Library versioning type.
8740 version_type=$version_type
8742 # Format of library name prefix.
8743 libname_spec=$lt_libname_spec
8745 # List of archive names. First name is the real one, the rest are links.
8746 # The last name is the one that the linker finds with -lNAME.
8747 library_names_spec=$lt_library_names_spec
8749 # The coded name of the library, if different from the real name.
8750 soname_spec=$lt_soname_spec
8752 # Commands used to build and install an old-style archive.
8754 old_archive_cmds=$lt_old_archive_cmds
8755 old_postinstall_cmds=$lt_old_postinstall_cmds
8756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8758 # Create an old-style archive from a shared archive.
8759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8761 # Create a temporary old-style archive to link instead of a shared archive.
8762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8764 # Commands used to build and install a shared archive.
8765 archive_cmds=$lt_archive_cmds
8766 archive_expsym_cmds=$lt_archive_expsym_cmds
8767 postinstall_cmds=$lt_postinstall_cmds
8768 postuninstall_cmds=$lt_postuninstall_cmds
8770 # Commands used to build a loadable module (assumed same as above if empty)
8771 module_cmds=$lt_module_cmds
8772 module_expsym_cmds=$lt_module_expsym_cmds
8774 # Commands to strip libraries.
8775 old_striplib=$lt_old_striplib
8776 striplib=$lt_striplib
8778 # Dependencies to place before the objects being linked to create a
8780 predep_objects=$lt_predep_objects
8782 # Dependencies to place after the objects being linked to create a
8784 postdep_objects=$lt_postdep_objects
8786 # Dependencies to place before the objects being linked to create a
8790 # Dependencies to place after the objects being linked to create a
8792 postdeps=$lt_postdeps
8794 # The library search path used internally by the compiler when linking
8796 compiler_lib_search_path=$lt_compiler_lib_search_path
8798 # Method to check whether dependent libraries are shared objects.
8799 deplibs_check_method=$lt_deplibs_check_method
8801 # Command to use when deplibs_check_method == file_magic.
8802 file_magic_cmd=$lt_file_magic_cmd
8804 # Flag that allows shared libraries with undefined symbols to be built.
8805 allow_undefined_flag=$lt_allow_undefined_flag
8807 # Flag that forces no undefined symbols.
8808 no_undefined_flag=$lt_no_undefined_flag
8810 # Commands used to finish a libtool library installation in a directory.
8811 finish_cmds=$lt_finish_cmds
8813 # Same as above, but a single script fragment to be evaled but not shown.
8814 finish_eval=$lt_finish_eval
8816 # Take the output of nm and produce a listing of raw symbols and C names.
8817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8819 # Transform the output of nm in a proper C declaration
8820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8822 # Transform the output of nm in a C name address pair
8823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8825 # This is the shared library runtime path variable.
8826 runpath_var=$runpath_var
8828 # This is the shared library path variable.
8829 shlibpath_var=$shlibpath_var
8831 # Is shlibpath searched before the hard-coded library search path?
8832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8834 # How to hardcode a shared library path into an executable.
8835 hardcode_action=$hardcode_action
8837 # Whether we should hardcode library paths into libraries.
8838 hardcode_into_libs=$hardcode_into_libs
8840 # Flag to hardcode \$libdir into a binary during linking.
8841 # This must work even if \$libdir does not exist.
8842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8844 # If ld is used when linking, flag to hardcode \$libdir into
8845 # a binary during linking. This must work even if \$libdir does
8847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8849 # Whether we need a single -rpath flag with a separated argument.
8850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8854 hardcode_direct=$hardcode_direct
8856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8858 hardcode_minus_L=$hardcode_minus_L
8860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8861 # the resulting binary.
8862 hardcode_shlibpath_var=$hardcode_shlibpath_var
8864 # Set to yes if building a shared library automatically hardcodes DIR into the library
8865 # and all subsequent libraries and executables linked against it.
8866 hardcode_automatic=$hardcode_automatic
8868 # Variables whose values should be saved in libtool wrapper scripts and
8869 # restored at relink time.
8870 variables_saved_for_relink="$variables_saved_for_relink"
8872 # Whether libtool must link a program against all its dependency libraries.
8873 link_all_deplibs=$link_all_deplibs
8875 # Compile-time system search path for libraries
8876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8878 # Run-time system search path for libraries
8879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8881 # Fix the shell variable \$srcfile for the compiler.
8882 fix_srcfile_path="$fix_srcfile_path"
8884 # Set to yes if exported symbols are required.
8885 always_export_symbols=$always_export_symbols
8887 # The commands to list exported symbols.
8888 export_symbols_cmds=$lt_export_symbols_cmds
8890 # The commands to extract the exported symbol list from a shared archive.
8891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8893 # Symbols that should not be listed in the preloaded symbols.
8894 exclude_expsyms=$lt_exclude_expsyms
8896 # Symbols that must always be exported.
8897 include_expsyms=$lt_include_expsyms
8899 # ### END LIBTOOL CONFIG
8906 cat <<\EOF >> "$cfgfile"
8908 # AIX sometimes has problems with the GCC collect2 program. For some
8909 # reason, if we set the COLLECT_NAMES environment variable, the problems
8910 # vanish in a puff of smoke.
8911 if test "X${COLLECT_NAMES+set}" != Xset; then
8913 export COLLECT_NAMES
8919 # We use sed instead of cat because bash on DJGPP gets confused if
8920 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8921 # text mode, it properly converts lines to CR/LF. This bash problem
8922 # is reportedly fixed, but why not run on old versions too?
8923 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8925 mv -f "$cfgfile" "$ofile" || \
8926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8930 # If there is no Makefile yet, we rely on a make rule to execute
8931 # `config.status --recheck' to rerun these tests and create the
8932 # libtool script then.
8933 test -f Makefile && make "$ltmain"
8938 ac_cpp='$CPP $CPPFLAGS'
8939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946 # Check whether --with-tags or --without-tags was given.
8947 if test "${with_tags+set}" = set; then
8948 withval="$with_tags"
8952 if test -f "$ltmain" && test -n "$tagnames"; then
8953 if test ! -f "${ofile}"; then
8954 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8955 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8958 if test -z "$LTCC"; then
8959 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8960 if test -z "$LTCC"; then
8961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8962 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8965 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8969 # Extract list of available tagged configurations in $ofile.
8970 # Note that this assumes the entire list is on one line.
8971 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8974 for tagname in $tagnames; do
8976 # Check whether tagname contains only valid characters
8977 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8979 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8980 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8981 { (exit 1); exit 1; }; }
8985 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8987 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8988 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8989 { (exit 1); exit 1; }; }
8992 # Update the list of available tags.
8993 if test -n "$tagname"; then
8994 echo appending configuration tag \"$tagname\" to $ofile
8998 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9000 ac_cpp='$CXXCPP $CPPFLAGS'
9001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9008 archive_cmds_need_lc_CXX=no
9009 allow_undefined_flag_CXX=
9010 always_export_symbols_CXX=no
9011 archive_expsym_cmds_CXX=
9012 export_dynamic_flag_spec_CXX=
9013 hardcode_direct_CXX=no
9014 hardcode_libdir_flag_spec_CXX=
9015 hardcode_libdir_flag_spec_ld_CXX=
9016 hardcode_libdir_separator_CXX=
9017 hardcode_minus_L_CXX=no
9018 hardcode_automatic_CXX=no
9020 module_expsym_cmds_CXX=
9021 link_all_deplibs_CXX=unknown
9022 old_archive_cmds_CXX=$old_archive_cmds
9023 no_undefined_flag_CXX=
9024 whole_archive_flag_spec_CXX=
9025 enable_shared_with_static_runtimes_CXX=no
9027 # Dependencies to place before and after the object being linked:
9029 postdep_objects_CXX=
9032 compiler_lib_search_path_CXX=
9034 # Source file extension for C++ test sources.
9037 # Object file extension for compiled C++ test sources.
9041 # Code to be used in simple compile tests
9042 lt_simple_compile_test_code="int some_variable = 0;\n"
9044 # Code to be used in simple link tests
9045 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9047 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9049 # If no C compiler was specified, use CC.
9052 # Allow CC to be a program name with arguments.
9056 # Allow CC to be a program name with arguments.
9061 lt_save_with_gnu_ld=$with_gnu_ld
9062 lt_save_path_LD=$lt_cv_path_LD
9063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9066 unset lt_cv_prog_gnu_ld
9068 if test -n "${lt_cv_path_LDCXX+set}"; then
9069 lt_cv_path_LD=$lt_cv_path_LDCXX
9073 test -z "${LDCXX+set}" || LD=$LDCXX
9077 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9079 # We don't want -fno-exception wen compiling C++ code, so set the
9080 # no_builtin_flag separately
9081 if test "$GXX" = yes; then
9082 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9084 lt_prog_compiler_no_builtin_flag_CXX=
9087 if test "$GXX" = yes; then
9088 # Set up default GNU C++ configuration
9091 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9092 if test "${with_gnu_ld+set}" = set; then
9093 withval="$with_gnu_ld"
9094 test "$withval" = no || with_gnu_ld=yes
9099 if test "$GCC" = yes; then
9100 # Check if gcc -print-prog-name=ld gives a path.
9101 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9102 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9105 # gcc leaves a trailing carriage return which upsets mingw
9106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9111 # Accept absolute paths.
9113 re_direlt='/[^/][^/]*/\.\./'
9114 # Canonicalize the path of ld
9115 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9117 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9119 test -z "$LD" && LD="$ac_prog"
9122 # If it fails, then pretend we aren't using GCC.
9126 # If it is relative, then search for the first ld in PATH.
9130 elif test "$with_gnu_ld" = yes; then
9131 echo "$as_me:$LINENO: checking for GNU ld" >&5
9132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9134 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9137 if test "${lt_cv_path_LD+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 if test -z "$LD"; then
9141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9142 for ac_dir in $PATH; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9146 lt_cv_path_LD="$ac_dir/$ac_prog"
9147 # Check to see if the program is GNU ld. I'd rather use --version,
9148 # but apparently some GNU ld's only accept -v.
9149 # Break only if it was the GNU/non-GNU ld that we prefer.
9150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9151 *GNU* | *'with BFD'*)
9152 test "$with_gnu_ld" != no && break
9155 test "$with_gnu_ld" != yes && break
9162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9167 if test -n "$LD"; then
9168 echo "$as_me:$LINENO: result: $LD" >&5
9169 echo "${ECHO_T}$LD" >&6
9171 echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9174 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9175 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9176 { (exit 1); exit 1; }; }
9177 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9178 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9179 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9183 case `"$LD" -v 2>&1 </dev/null` in
9184 *GNU* | *'with BFD'*)
9185 lt_cv_prog_gnu_ld=yes
9188 lt_cv_prog_gnu_ld=no
9192 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9193 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9194 with_gnu_ld=$lt_cv_prog_gnu_ld
9198 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9199 # archiving commands below assume that GNU ld is being used.
9200 if test "$with_gnu_ld" = yes; then
9201 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 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'
9204 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9207 # If archive_cmds runs LD, not CC, wlarc should be empty
9208 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9209 # investigate it a little bit more. (MM)
9212 # ancient GNU ld didn't support --whole-archive et. al.
9213 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9214 grep 'no-whole-archive' > /dev/null; then
9215 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9217 whole_archive_flag_spec_CXX=
9223 # A generic and very simple default shared library creation
9224 # command for GNU C++ for the case where it uses the native
9225 # linker, instead of GNU ld. If possible, this setting should
9226 # overridden to take advantage of the native linker features on
9227 # the platform it is being used on.
9228 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9231 # Commands to make compiler produce verbose output that lists
9232 # what "hidden" libraries, object files and flags are used when
9233 # linking a shared library.
9234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9242 # PORTME: fill in a description of your system's C++ link characteristics
9243 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9248 # FIXME: insert proper C++ library support
9252 if test "$host_cpu" = ia64; then
9253 # On IA64, the linker does run time linking by default, so we don't
9254 # have to do anything special.
9255 aix_use_runtimelinking=no
9256 exp_sym_flag='-Bexport'
9259 aix_use_runtimelinking=no
9261 # Test if we are trying to use run time linking or normal
9262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9263 # need to do runtime linking.
9264 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9265 for ld_flag in $LDFLAGS; do
9268 aix_use_runtimelinking=yes
9275 exp_sym_flag='-bexport'
9276 no_entry_flag='-bnoentry'
9279 # When large executables or shared objects are built, AIX ld can
9280 # have problems creating the table of contents. If linking a library
9281 # or program results in "error TOC overflow" add -mminimal-toc to
9282 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9283 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9286 hardcode_direct_CXX=yes
9287 hardcode_libdir_separator_CXX=':'
9288 link_all_deplibs_CXX=yes
9290 if test "$GXX" = yes; then
9291 case $host_os in aix4.012|aix4.012.*)
9292 # We only want to do this on AIX 4.2 and lower, the check
9293 # below for broken collect2 doesn't work under 4.3+
9294 collect2name=`${CC} -print-prog-name=collect2`
9295 if test -f "$collect2name" && \
9296 strings "$collect2name" | grep resolve_lib_name >/dev/null
9298 # We have reworked collect2
9299 hardcode_direct_CXX=yes
9301 # We have old collect2
9302 hardcode_direct_CXX=unsupported
9303 # It fails to find uninstalled libraries when the uninstalled
9304 # path is not listed in the libpath. Setting hardcode_minus_L
9305 # to unsupported forces relinking
9306 hardcode_minus_L_CXX=yes
9307 hardcode_libdir_flag_spec_CXX='-L$libdir'
9308 hardcode_libdir_separator_CXX=
9311 shared_flag='-shared'
9314 if test "$host_cpu" = ia64; then
9315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9316 # chokes on -Wl,-G. The following line is correct:
9319 if test "$aix_use_runtimelinking" = yes; then
9320 shared_flag='${wl}-G'
9322 shared_flag='${wl}-bM:SRE'
9327 # It seems that -bexpall does not export symbols beginning with
9328 # underscore (_), so it is better to generate a list of symbols to export.
9329 always_export_symbols_CXX=yes
9330 if test "$aix_use_runtimelinking" = yes; then
9331 # Warning - without using the other runtime loading flags (-brtl),
9332 # -berok will link without error, but may produce a broken library.
9333 allow_undefined_flag_CXX='-berok'
9334 # Determine the default libpath from the value encoded in an empty executable.
9335 cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9366 # Check for a 64-bit object if we didn't find anything.
9367 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; }
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9377 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9379 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"
9381 if test "$host_cpu" = ia64; then
9382 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9383 allow_undefined_flag_CXX="-z nodefs"
9384 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"
9386 # Determine the default libpath from the value encoded in an empty executable.
9387 cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9418 # Check for a 64-bit object if we didn't find anything.
9419 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; }
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9430 # Warning - without using the other run time loading flags,
9431 # -berok will link without error, but may produce a broken library.
9432 no_undefined_flag_CXX=' ${wl}-bernotok'
9433 allow_undefined_flag_CXX=' ${wl}-berok'
9434 # -bexpall does not export symbols beginning with underscore (_)
9435 always_export_symbols_CXX=yes
9436 # Exported symbols can be pulled into shared objects from archives
9437 whole_archive_flag_spec_CXX=' '
9438 archive_cmds_need_lc_CXX=yes
9439 # This is similar to how AIX traditionally builds it's shared libraries.
9440 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'
9445 case $cc_basename in
9447 # FIXME: insert proper C++ library support
9453 cygwin* | mingw* | pw32*)
9454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9455 # as there is no search path for DLLs.
9456 hardcode_libdir_flag_spec_CXX='-L$libdir'
9457 allow_undefined_flag_CXX=unsupported
9458 always_export_symbols_CXX=no
9459 enable_shared_with_static_runtimes_CXX=yes
9461 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9462 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'
9463 # If the export-symbols file already is a .def file (1st line
9464 # is EXPORTS), use it as is; otherwise, prepend...
9465 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9466 cp $export_symbols $output_objdir/$soname.def;
9468 echo EXPORTS > $output_objdir/$soname.def;
9469 cat $export_symbols >> $output_objdir/$soname.def;
9471 $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'
9477 darwin* | rhapsody*)
9478 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9479 archive_cmds_need_lc_CXX=no
9481 rhapsody* | darwin1.[012])
9482 allow_undefined_flag_CXX='-undefined suppress'
9485 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9488 lt_int_apple_cc_single_mod=no
9489 output_verbose_link_cmd='echo'
9490 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9491 lt_int_apple_cc_single_mod=yes
9493 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9494 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9496 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'
9498 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9501 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9502 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}'
9504 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}'
9506 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}'
9507 hardcode_direct_CXX=no
9508 hardcode_automatic_CXX=yes
9509 hardcode_shlibpath_var_CXX=unsupported
9510 whole_archive_flag_spec_CXX='-all_load $convenience'
9511 link_all_deplibs_CXX=yes
9516 case $cc_basename in
9518 # FIXME: insert proper C++ library support
9522 # Green Hills C++ Compiler
9523 # FIXME: insert proper C++ library support
9527 # FIXME: insert proper C++ library support
9533 # C++ shared libraries reported to be fairly broken before switch to ELF
9537 archive_cmds_need_lc_CXX=no
9540 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9547 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9548 hardcode_libdir_separator_CXX=:
9549 export_dynamic_flag_spec_CXX='${wl}-E'
9550 hardcode_direct_CXX=yes
9551 hardcode_minus_L_CXX=yes # Not in the search PATH,
9552 # but as the default
9553 # location of the library.
9555 case $cc_basename in
9557 # FIXME: insert proper C++ library support
9561 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'
9562 # Commands to make compiler produce verbose output that lists
9563 # what "hidden" libraries, object files and flags are used when
9564 # linking a shared library.
9566 # There doesn't appear to be a way to prevent this compiler from
9567 # explicitly linking system object files so we need to strip them
9568 # from the output so that they don't get included in the library
9570 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'
9573 if test "$GXX" = yes; then
9574 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'
9576 # FIXME: insert proper C++ library support
9583 if test $with_gnu_ld = no; then
9586 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9587 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9588 hardcode_libdir_separator_CXX=:
9591 hardcode_libdir_flag_spec_CXX='-L$libdir'
9594 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9595 hardcode_libdir_separator_CXX=:
9596 export_dynamic_flag_spec_CXX='${wl}-E'
9602 hardcode_direct_CXX=no
9603 hardcode_shlibpath_var_CXX=no
9606 hardcode_direct_CXX=no
9607 hardcode_shlibpath_var_CXX=no
9608 hardcode_minus_L_CXX=yes # Not in the search PATH,
9609 # but as the default
9610 # location of the library.
9613 hardcode_direct_CXX=yes
9614 hardcode_minus_L_CXX=yes # Not in the search PATH,
9615 # but as the default
9616 # location of the library.
9620 case $cc_basename in
9622 # FIXME: insert proper C++ library support
9628 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9634 # Commands to make compiler produce verbose output that lists
9635 # what "hidden" libraries, object files and flags are used when
9636 # linking a shared library.
9638 # There doesn't appear to be a way to prevent this compiler from
9639 # explicitly linking system object files so we need to strip them
9640 # from the output so that they don't get included in the library
9642 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'
9645 if test "$GXX" = yes; then
9646 if test $with_gnu_ld = no; then
9649 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9652 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'
9657 # FIXME: insert proper C++ library support
9664 case $cc_basename in
9667 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'
9669 # Archives containing C++ object files must be created using
9670 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9671 # necessary to make sure instantiated templates are included
9673 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9676 if test "$GXX" = yes; then
9677 if test "$with_gnu_ld" = no; then
9678 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'
9680 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'
9683 link_all_deplibs_CXX=yes
9686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9687 hardcode_libdir_separator_CXX=:
9690 case $cc_basename in
9692 # Kuck and Associates, Inc. (KAI) C++ Compiler
9694 # KCC will only create a shared library if the output file
9695 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9696 # to its proper name (with version) after linking.
9697 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'
9698 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'
9699 # Commands to make compiler produce verbose output that lists
9700 # what "hidden" libraries, object files and flags are used when
9701 # linking a shared library.
9703 # There doesn't appear to be a way to prevent this compiler from
9704 # explicitly linking system object files so we need to strip them
9705 # from the output so that they don't get included in the library
9707 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'
9709 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9712 # Archives containing C++ object files must be created using
9713 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9719 archive_cmds_need_lc_CXX=no
9720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9721 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'
9722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9724 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729 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'
9731 runpath_var=LD_RUN_PATH
9732 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9733 hardcode_libdir_separator_CXX=:
9735 # Commands to make compiler produce verbose output that lists
9736 # what "hidden" libraries, object files and flags are used when
9737 # linking a shared library.
9739 # There doesn't appear to be a way to prevent this compiler from
9740 # explicitly linking system object files so we need to strip them
9741 # from the output so that they don't get included in the library
9743 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'
9748 # FIXME: insert proper C++ library support
9752 # FIXME: insert proper C++ library support
9756 case $cc_basename in
9758 # FIXME: insert proper C++ library support
9762 # FIXME: insert proper C++ library support
9768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9769 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9771 hardcode_libdir_flag_spec_CXX='-R$libdir'
9772 hardcode_direct_CXX=yes
9773 hardcode_shlibpath_var_CXX=no
9775 # Workaround some broken pre-1.5 toolchains
9776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9779 case $cc_basename in
9781 # Kuck and Associates, Inc. (KAI) C++ Compiler
9783 # KCC will only create a shared library if the output file
9784 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9785 # to its proper name (with version) after linking.
9786 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'
9788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9789 hardcode_libdir_separator_CXX=:
9791 # Archives containing C++ object files must be created using
9792 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9793 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9797 # Rational C++ 2.4.1
9798 # FIXME: insert proper C++ library support
9802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9803 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'
9805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9806 hardcode_libdir_separator_CXX=:
9808 # Commands to make compiler produce verbose output that lists
9809 # what "hidden" libraries, object files and flags are used when
9810 # linking a shared library.
9812 # There doesn't appear to be a way to prevent this compiler from
9813 # explicitly linking system object files so we need to strip them
9814 # from the output so that they don't get included in the library
9816 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'
9819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9821 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'
9823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9824 hardcode_libdir_separator_CXX=:
9826 # Commands to make compiler produce verbose output that lists
9827 # what "hidden" libraries, object files and flags are used when
9828 # linking a shared library.
9829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9832 # FIXME: insert proper C++ library support
9839 case $cc_basename in
9841 # Kuck and Associates, Inc. (KAI) C++ Compiler
9843 # KCC will only create a shared library if the output file
9844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9845 # to its proper name (with version) after linking.
9846 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'
9848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9849 hardcode_libdir_separator_CXX=:
9851 # Archives containing C++ object files must be created using
9852 # the KAI C++ compiler.
9853 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9856 # Rational C++ 2.4.1
9857 # FIXME: insert proper C++ library support
9861 allow_undefined_flag_CXX=' -expect_unresolved \*'
9862 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'
9863 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9864 echo "-hidden">> $lib.exp~
9865 $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~
9868 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9869 hardcode_libdir_separator_CXX=:
9871 # Commands to make compiler produce verbose output that lists
9872 # what "hidden" libraries, object files and flags are used when
9873 # linking a shared library.
9875 # There doesn't appear to be a way to prevent this compiler from
9876 # explicitly linking system object files so we need to strip them
9877 # from the output so that they don't get included in the library
9879 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'
9882 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9883 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9884 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'
9886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9887 hardcode_libdir_separator_CXX=:
9889 # Commands to make compiler produce verbose output that lists
9890 # what "hidden" libraries, object files and flags are used when
9891 # linking a shared library.
9892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9895 # FIXME: insert proper C++ library support
9902 # FIXME: insert proper C++ library support
9906 archive_cmds_need_lc_CXX=no
9907 case $cc_basename in
9909 # FIXME: insert proper C++ library support
9913 # FIXME: insert proper C++ library support
9919 case $cc_basename in
9922 # FIXME: insert proper C++ library support
9927 # FIXME: insert proper C++ library support
9931 # FIXME: insert proper C++ library support
9937 case $cc_basename in
9939 # Sun C++ 4.2, 5.x and Centerline C++
9940 no_undefined_flag_CXX=' -zdefs'
9941 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9942 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9943 $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'
9945 hardcode_libdir_flag_spec_CXX='-R$libdir'
9946 hardcode_shlibpath_var_CXX=no
9948 solaris2.0-5 | solaris2.0-5.*) ;;
9950 # The C++ compiler is used as linker so we must use $wl
9951 # flag to pass the commands to the underlying system
9953 # Supported since Solaris 2.6 (maybe 2.5.1?)
9954 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9957 link_all_deplibs_CXX=yes
9959 # Commands to make compiler produce verbose output that lists
9960 # what "hidden" libraries, object files and flags are used when
9961 # linking a shared library.
9963 # There doesn't appear to be a way to prevent this compiler from
9964 # explicitly linking system object files so we need to strip them
9965 # from the output so that they don't get included in the library
9967 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'
9969 # Archives containing C++ object files must be created using
9970 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9971 # necessary to make sure instantiated templates are included
9973 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9976 # Green Hills C++ Compiler
9977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9979 # The C++ compiler must be used to create the archive.
9980 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9983 # GNU C++ compiler with Solaris linker
9984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9985 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9986 if $CC --version | grep -v '^2\.7' > /dev/null; then
9987 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9988 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9989 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9991 # Commands to make compiler produce verbose output that lists
9992 # what "hidden" libraries, object files and flags are used when
9993 # linking a shared library.
9994 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9996 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9998 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9999 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10000 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10002 # Commands to make compiler produce verbose output that lists
10003 # what "hidden" libraries, object files and flags are used when
10004 # linking a shared library.
10005 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10008 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10013 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10014 archive_cmds_need_lc_CXX=no
10017 case $cc_basename in
10019 # NonStop-UX NCC 3.20
10020 # FIXME: insert proper C++ library support
10024 # FIXME: insert proper C++ library support
10030 # FIXME: insert proper C++ library support
10034 # FIXME: insert proper C++ library support
10038 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10039 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10040 test "$ld_shlibs_CXX" = no && can_build_shared=no
10046 cat > conftest.$ac_ext <<EOF
10050 Foo (void) { a = 0; }
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057 (eval $ac_compile) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; then
10061 # Parse the compiler output and extract the necessary
10062 # objects, libraries and library flags.
10064 # Sentinel used to keep track of whether or not we are before
10065 # the conftest object file.
10066 pre_test_object_deps_done=no
10068 # The `*' in the case matches for architectures that use `case' in
10069 # $output_verbose_cmd can trigger glob expansion during the loop
10070 # eval without this substitution.
10071 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10073 for p in `eval $output_verbose_link_cmd`; do
10077 # Some compilers place space between "-{L,R}" and the path.
10078 # Remove the space.
10079 if test $p = "-L" \
10080 || test $p = "-R"; then
10087 if test "$pre_test_object_deps_done" = no; then
10090 # Internal compiler library paths should come after those
10091 # provided the user. The postdeps already come after the
10092 # user supplied libs so there is no need to process them.
10093 if test -z "$compiler_lib_search_path_CXX"; then
10094 compiler_lib_search_path_CXX="${prev}${p}"
10096 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10099 # The "-l" case would never come before the object being
10100 # linked, so don't bother handling this case.
10103 if test -z "$postdeps_CXX"; then
10104 postdeps_CXX="${prev}${p}"
10106 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10112 # This assumes that the test object file only shows up
10113 # once in the compiler output.
10114 if test "$p" = "conftest.$objext"; then
10115 pre_test_object_deps_done=yes
10119 if test "$pre_test_object_deps_done" = no; then
10120 if test -z "$predep_objects_CXX"; then
10121 predep_objects_CXX="$p"
10123 predep_objects_CXX="$predep_objects_CXX $p"
10126 if test -z "$postdep_objects_CXX"; then
10127 postdep_objects_CXX="$p"
10129 postdep_objects_CXX="$postdep_objects_CXX $p"
10134 *) ;; # Ignore the rest.
10142 echo "libtool.m4: error: problem compiling CXX test program"
10145 $rm -f confest.$objext
10147 case " $postdeps_CXX " in
10148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10151 lt_prog_compiler_wl_CXX=
10152 lt_prog_compiler_pic_CXX=
10153 lt_prog_compiler_static_CXX=
10155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10158 # C++ specific cases for pic, static, wl, etc.
10159 if test "$GXX" = yes; then
10160 lt_prog_compiler_wl_CXX='-Wl,'
10161 lt_prog_compiler_static_CXX='-static'
10165 # All AIX code is PIC.
10166 if test "$host_cpu" = ia64; then
10167 # AIX 5 now supports IA64 processor
10168 lt_prog_compiler_static_CXX='-Bstatic'
10172 # FIXME: we need at least 68020 code to build shared libraries, but
10173 # adding the `-m68020' flag to GCC prevents building anything better,
10175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10178 # PIC is the default for these OSes.
10180 mingw* | os2* | pw32*)
10181 # This hack is so that the source file can tell whether it is being
10182 # built for inclusion in a dll (and should export symbols for example).
10183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10185 darwin* | rhapsody*)
10186 # PIC is the default on this platform
10187 # Common symbols not allowed in MH_DYLIB files
10188 lt_prog_compiler_pic_CXX='-fno-common'
10191 # DJGPP does not support shared libraries at all
10192 lt_prog_compiler_pic_CXX=
10195 if test -d /usr/nec; then
10196 lt_prog_compiler_pic_CXX=-Kconform_pic
10200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10201 # not for PA HP-UX.
10202 case "$host_cpu" in
10206 lt_prog_compiler_pic_CXX='-fPIC'
10211 lt_prog_compiler_pic_CXX='-fPIC'
10217 # All AIX code is PIC.
10218 if test "$host_cpu" = ia64; then
10219 # AIX 5 now supports IA64 processor
10220 lt_prog_compiler_static_CXX='-Bstatic'
10222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10226 case $cc_basename in
10228 # Green Hills C++ Compiler
10229 # _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"
10234 case $cc_basename in
10236 lt_prog_compiler_pic_CXX='-KPIC'
10239 # Green Hills C++ Compiler
10240 lt_prog_compiler_pic_CXX='-pic'
10247 # FreeBSD uses GNU C++
10249 hpux9* | hpux10* | hpux11*)
10250 case $cc_basename in
10252 lt_prog_compiler_wl_CXX='-Wl,'
10253 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10254 if test "$host_cpu" != ia64; then
10255 lt_prog_compiler_pic_CXX='+Z'
10259 lt_prog_compiler_wl_CXX='-Wl,'
10260 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10261 case "$host_cpu" in
10266 lt_prog_compiler_pic_CXX='+Z'
10274 irix5* | irix6* | nonstopux*)
10275 case $cc_basename in
10277 lt_prog_compiler_wl_CXX='-Wl,'
10278 lt_prog_compiler_static_CXX='-non_shared'
10279 # CC pic flag -KPIC is the default.
10286 case $cc_basename in
10289 lt_prog_compiler_wl_CXX='--backend -Wl,'
10290 lt_prog_compiler_pic_CXX='-fPIC'
10294 lt_prog_compiler_wl_CXX='-Wl,'
10295 lt_prog_compiler_pic_CXX='-KPIC'
10296 lt_prog_compiler_static_CXX='-static'
10300 # Make sure the PIC flag is empty. It appears that all Alpha
10301 # Linux and Compaq Tru64 Unix objects are PIC.
10302 lt_prog_compiler_pic_CXX=
10303 lt_prog_compiler_static_CXX='-non_shared'
10314 case $cc_basename in
10316 lt_prog_compiler_pic_CXX='-W c,exportall'
10324 osf3* | osf4* | osf5*)
10325 case $cc_basename in
10327 lt_prog_compiler_wl_CXX='--backend -Wl,'
10330 # Rational C++ 2.4.1
10331 lt_prog_compiler_pic_CXX='-pic'
10334 # Digital/Compaq C++
10335 lt_prog_compiler_wl_CXX='-Wl,'
10336 # Make sure the PIC flag is empty. It appears that all Alpha
10337 # Linux and Compaq Tru64 Unix objects are PIC.
10338 lt_prog_compiler_pic_CXX=
10339 lt_prog_compiler_static_CXX='-non_shared'
10348 case $cc_basename in
10350 lt_prog_compiler_pic_CXX='-fPIC'
10357 case $cc_basename in
10359 # Sun C++ 4.2, 5.x and Centerline C++
10360 lt_prog_compiler_pic_CXX='-KPIC'
10361 lt_prog_compiler_static_CXX='-Bstatic'
10362 lt_prog_compiler_wl_CXX='-Qoption ld '
10365 # Green Hills C++ Compiler
10366 lt_prog_compiler_pic_CXX='-PIC'
10373 case $cc_basename in
10376 lt_prog_compiler_pic_CXX='-pic'
10377 lt_prog_compiler_static_CXX='-Bstatic'
10381 lt_prog_compiler_pic_CXX='-pic'
10388 case $cc_basename in
10390 # NonStop-UX NCC 3.20
10391 lt_prog_compiler_pic_CXX='-KPIC'
10402 lt_prog_compiler_can_build_shared_CXX=no
10407 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10408 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10411 # Check to make sure the PIC flag actually works.
10413 if test -n "$lt_prog_compiler_pic_CXX"; then
10414 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10416 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 lt_prog_compiler_pic_works_CXX=no
10420 ac_outfile=conftest.$ac_objext
10421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10422 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10423 # Insert the option either (1) after the last *FLAGS variable, or
10424 # (2) before a word containing "conftest.", or (3) at the end.
10425 # Note that $ac_compile itself does not contain backslashes and begins
10426 # with a dollar sign (not a hyphen), so the echo should work correctly.
10427 # The option is referenced via a variable to avoid confusing sed.
10428 lt_compile=`echo "$ac_compile" | $SED \
10429 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10431 -e 's:$: $lt_compiler_flag:'`
10432 (eval echo "\"\$as_me:10432: $lt_compile\"" >&5)
10433 (eval "$lt_compile" 2>conftest.err)
10435 cat conftest.err >&5
10436 echo "$as_me:10436: \$? = $ac_status" >&5
10437 if (exit $ac_status) && test -s "$ac_outfile"; then
10438 # The compiler can only warn and ignore the option if not recognized
10439 # So say no if there are warnings
10440 if test ! -s conftest.err; then
10441 lt_prog_compiler_pic_works_CXX=yes
10447 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10448 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10450 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10451 case $lt_prog_compiler_pic_CXX in
10453 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10456 lt_prog_compiler_pic_CXX=
10457 lt_prog_compiler_can_build_shared_CXX=no
10462 # For platforms which do not support PIC, -DPIC is meaningless:
10464 lt_prog_compiler_pic_CXX=
10467 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10471 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10472 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10473 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 lt_cv_prog_compiler_c_o_CXX=no
10477 $rm -r conftest 2>/dev/null
10481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10483 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10484 # that will create temporary files in the current directory regardless of
10485 # the output directory. Thus, making CWD read-only will cause this test
10486 # to fail, enabling locking or at least warning the user not to do parallel
10490 lt_compiler_flag="-o out/conftest2.$ac_objext"
10491 # Insert the option either (1) after the last *FLAGS variable, or
10492 # (2) before a word containing "conftest.", or (3) at the end.
10493 # Note that $ac_compile itself does not contain backslashes and begins
10494 # with a dollar sign (not a hyphen), so the echo should work correctly.
10495 lt_compile=`echo "$ac_compile" | $SED \
10496 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10498 -e 's:$: $lt_compiler_flag:'`
10499 (eval echo "\"\$as_me:10499: $lt_compile\"" >&5)
10500 (eval "$lt_compile" 2>out/conftest.err)
10502 cat out/conftest.err >&5
10503 echo "$as_me:10503: \$? = $ac_status" >&5
10504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10506 # The compiler can only warn and ignore the option if not recognized
10507 # So say no if there are warnings
10508 if test ! -s out/conftest.err; then
10509 lt_cv_prog_compiler_c_o_CXX=yes
10513 $rm conftest* out/*
10520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10521 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10524 hard_links="nottested"
10525 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10526 # do not overwrite the value of need_locks provided by the user
10527 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10528 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533 ln conftest.a conftest.b 2>&5 || hard_links=no
10534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10535 echo "$as_me:$LINENO: result: $hard_links" >&5
10536 echo "${ECHO_T}$hard_links" >&6
10537 if test "$hard_links" = no; then
10538 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10539 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10546 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10547 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10552 # If we're using GNU nm, then we don't want the "-C" option.
10553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10554 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10555 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'
10557 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'
10561 export_symbols_cmds_CXX="$ltdll_cmds"
10564 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10567 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10571 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10572 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10573 test "$ld_shlibs_CXX" = no && can_build_shared=no
10575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10576 if test "$GCC" = yes; then
10577 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10581 # Do we need to explicitly link libc?
10583 case "x$archive_cmds_need_lc_CXX" in
10585 # Assume -lc should be added
10586 archive_cmds_need_lc_CXX=yes
10588 if test "$enable_shared" = yes && test "$GCC" = yes; then
10589 case $archive_cmds_CXX in
10591 # FIXME: we may have to deal with multi-command sequences.
10594 # Test whether the compiler implicitly links with -lc since on some
10595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10596 # to ld, don't add -lc before -lgcc.
10597 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10598 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603 (eval $ac_compile) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } 2>conftest.err; then
10609 libobjs=conftest.$ac_objext
10611 wl=$lt_prog_compiler_wl_CXX
10617 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10618 allow_undefined_flag_CXX=
10619 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10620 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }
10625 archive_cmds_need_lc_CXX=no
10627 archive_cmds_need_lc_CXX=yes
10629 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10631 cat conftest.err 1>&5
10634 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10635 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10642 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10643 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10644 hardcode_action_CXX=
10645 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10646 test -n "$runpath_var CXX" || \
10647 test "X$hardcode_automatic_CXX"="Xyes" ; then
10649 # We can hardcode non-existant directories.
10650 if test "$hardcode_direct_CXX" != no &&
10651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10652 # have to relink, otherwise we might link with an installed library
10653 # when we should be linking with a yet-to-be-installed one
10654 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10655 test "$hardcode_minus_L_CXX" != no; then
10656 # Linking always hardcodes the temporary library directory.
10657 hardcode_action_CXX=relink
10659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660 hardcode_action_CXX=immediate
10663 # We cannot hardcode anything, or else we can only hardcode existing
10665 hardcode_action_CXX=unsupported
10667 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10668 echo "${ECHO_T}$hardcode_action_CXX" >&6
10670 if test "$hardcode_action_CXX" = relink; then
10671 # Fast installation is not supported
10672 enable_fast_install=no
10673 elif test "$shlibpath_overrides_runpath" = yes ||
10674 test "$enable_shared" = no; then
10675 # Fast installation is not necessary
10676 enable_fast_install=needless
10681 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10682 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10683 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10684 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10685 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10686 echo "$as_me:$LINENO: result: yes" >&5
10687 echo "${ECHO_T}yes" >&6
10689 # FIXME - insert some real tests, host_os isn't really good enough
10692 if test -n "$STRIP" ; then
10693 striplib="$STRIP -x"
10694 echo "$as_me:$LINENO: result: yes" >&5
10695 echo "${ECHO_T}yes" >&6
10697 echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6
10702 echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6
10708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10710 library_names_spec=
10711 libname_spec='lib$name'
10715 postuninstall_cmds=
10719 shlibpath_overrides_runpath=unknown
10721 dynamic_linker="$host_os ld.so"
10722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10723 if test "$GCC" = yes; then
10724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10726 # if the path contains ";" then we assume it to be the separator
10727 # otherwise default to the standard path separator (i.e. ":") - it is
10728 # assumed that no part of a normal pathname contains ";" but that should
10729 # okay in the real world where ";" in dirpaths is itself problematic.
10730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10737 need_lib_prefix=unknown
10738 hardcode_into_libs=no
10740 # when you set need_version to no, make sure it does not cause -set_version
10741 # flags to be left without arguments
10742 need_version=unknown
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10748 shlibpath_var=LIBPATH
10750 # AIX 3 has no versioning support, so we append a major version to the name.
10751 soname_spec='${libname}${release}${shared_ext}$major'
10758 hardcode_into_libs=yes
10759 if test "$host_cpu" = ia64; then
10760 # AIX 5 supports IA64
10761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10762 shlibpath_var=LD_LIBRARY_PATH
10764 # With GCC up to 2.95.x, collect2 would create an import file
10765 # for dependence libraries. The import file would start with
10766 # the line `#! .'. This would cause the generated library to
10767 # depend on `.', always an invalid library. This was fixed in
10768 # development snapshots of GCC prior to 3.0.
10770 aix4 | aix4.[01] | aix4.[01].*)
10771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10776 can_build_shared=no
10780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10781 # soname into executable. Probably we can add versioning support to
10782 # collect2, so additional links can be useful in future.
10783 if test "$aix_use_runtimelinking" = yes; then
10784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10785 # instead of lib<name>.a to let people know that these are not
10786 # typical AIX shared libraries.
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 # We preserve .a as extension for shared libraries through AIX4.2
10790 # and later when we are not doing run time linking.
10791 library_names_spec='${libname}${release}.a $libname.a'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10794 shlibpath_var=LIBPATH
10799 library_names_spec='$libname.ixlibrary $libname.a'
10800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10801 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'
10805 library_names_spec='${libname}${shared_ext}'
10806 dynamic_linker="$host_os ld.so"
10807 shlibpath_var=LIBRARY_PATH
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10819 # the default ld.so.conf also contains /usr/contrib/lib and
10820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10821 # libtool to hard-code these into programs
10824 cygwin* | mingw* | pw32*)
10825 version_type=windows
10830 case $GCC,$host_os in
10831 yes,cygwin* | yes,mingw* | yes,pw32*)
10832 library_names_spec='$libname.dll.a'
10833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10834 postinstall_cmds='base_file=`basename \${file}`~
10835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10836 dldir=$destdir/`dirname \$dlpath`~
10837 test -d \$dldir || mkdir -p \$dldir~
10838 $install_prog $dir/$dlname \$dldir/$dlname'
10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10840 dlpath=$dir/\$dldll~
10842 shlibpath_overrides_runpath=yes
10846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10848 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10851 # MinGW DLLs use traditional 'lib' prefix
10852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10855 # It is most probably a Windows format PATH printed by
10856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10857 # path with ; separators, and with drive letters. We can handle the
10858 # drive letters (cygwin fileutils understands them), so leave them,
10859 # especially as we might pass files found there to a mingw objdump,
10860 # which wouldn't understand a cygwinified path. Ahh.
10861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10867 # pw32 DLLs use 'pw' prefix rather than 'lib'
10868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10877 dynamic_linker='Win32 ld.exe'
10878 # FIXME: first we should search . and the directory the executable is in
10882 darwin* | rhapsody*)
10883 dynamic_linker="$host_os dyld"
10884 version_type=darwin
10887 # FIXME: Relying on posixy $() will cause problems for
10888 # cross-compilation, but unfortunately the echo tests do not
10889 # yet detect zsh echo's removal of \ escapes.
10890 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10891 soname_spec='${libname}${release}${major}$shared_ext'
10892 shlibpath_overrides_runpath=yes
10893 shlibpath_var=DYLD_LIBRARY_PATH
10894 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10895 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10896 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10897 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"`
10899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10916 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10917 version_type=freebsd-$objformat
10918 case $version_type in
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10929 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10934 freebsd3.01* | freebsdelf3.01*)
10935 shlibpath_overrides_runpath=yes
10936 hardcode_into_libs=yes
10939 shlibpath_overrides_runpath=no
10940 hardcode_into_libs=yes
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 hardcode_into_libs=yes
10955 hpux9* | hpux10* | hpux11*)
10956 # Give a soname corresponding to the major version so that dld.sl refuses to
10957 # link against other versions.
10961 case "$host_cpu" in
10964 hardcode_into_libs=yes
10965 dynamic_linker="$host_os dld.so"
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 if test "X$HPUX_IA64_MODE" = X32; then
10971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10979 hardcode_into_libs=yes
10980 dynamic_linker="$host_os dld.sl"
10981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10990 dynamic_linker="$host_os dld.sl"
10991 shlibpath_var=SHLIB_PATH
10992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10998 postinstall_cmds='chmod 555 $lib'
11001 irix5* | irix6* | nonstopux*)
11003 nonstopux*) version_type=nonstopux ;;
11005 if test "$lt_cv_prog_gnu_ld" = yes; then
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11016 irix5* | nonstopux*)
11017 libsuff= shlibsuff=
11020 case $LD in # libtool.m4 will add one of these switches to LD
11021 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11022 libsuff= shlibsuff= libmagic=32-bit;;
11023 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11024 libsuff=32 shlibsuff=N32 libmagic=N32;;
11025 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11026 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11027 *) libsuff= shlibsuff= libmagic=never-match;;
11031 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11032 shlibpath_overrides_runpath=no
11033 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11034 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11035 hardcode_into_libs=yes
11038 # No shared lib support for Linux oldld, aout, or coff.
11039 linux*oldld* | linux*aout* | linux*coff*)
11043 # This must be Linux ELF.
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=no
11053 # This implies no fast_install, which is unacceptable.
11054 # Some rework will be needed to allow for fast_install
11055 # before this can be enabled.
11056 hardcode_into_libs=yes
11058 # We used to test for /lib/ld.so.1 and disable shared libraries on
11059 # powerpc, because MkLinux only supported shared libraries with the
11060 # GNU dynamic linker. Since this was broken with cross compilers,
11061 # most powerpc-linux boxes support dynamic linking these days and
11062 # people can always --disable-shared, the test was removed, and we
11063 # assume the GNU/Linux dynamic linker is in use.
11064 dynamic_linker='GNU/Linux ld.so'
11071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074 dynamic_linker='NetBSD (a.out) ld.so'
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 dynamic_linker='NetBSD ld.elf_so'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=yes
11082 hardcode_into_libs=yes
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11111 openbsd2.[89] | openbsd2.[89].*)
11112 shlibpath_overrides_runpath=no
11115 shlibpath_overrides_runpath=yes
11119 shlibpath_overrides_runpath=yes
11124 libname_spec='$name'
11127 library_names_spec='$libname${shared_ext} $libname.a'
11128 dynamic_linker='OS/2 ld.exe'
11129 shlibpath_var=LIBPATH
11132 osf3* | osf4* | osf5*)
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 shlibpath_var=LD_LIBRARY_PATH
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 hardcode_into_libs=yes
11159 # ldd complains unless libraries are executable
11160 postinstall_cmds='chmod +x $lib'
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=yes
11169 if test "$with_gnu_ld" = yes; then
11175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 case $host_vendor in
11182 shlibpath_overrides_runpath=no
11184 export_dynamic_flag_spec='${wl}-Blargedynsym'
11185 runpath_var=LD_RUN_PATH
11193 shlibpath_overrides_runpath=no
11194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11200 if test -d /usr/nec ;then
11202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11203 soname_spec='$libname${shared_ext}.$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11219 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11220 echo "${ECHO_T}$dynamic_linker" >&6
11221 test "$dynamic_linker" = no && can_build_shared=no
11223 if test "x$enable_dlopen" != xyes; then
11224 enable_dlopen=unknown
11225 enable_dlopen_self=unknown
11226 enable_dlopen_self_static=unknown
11233 lt_cv_dlopen="load_add_on"
11235 lt_cv_dlopen_self=yes
11239 lt_cv_dlopen="LoadLibrary"
11244 lt_cv_dlopen="dlopen"
11249 # if libdl is installed we need to link against it
11250 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11251 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_check_lib_save_LIBS=$LIBS
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11265 /* Override any gcc2 internal prototype to avoid an error. */
11269 /* We use char because int might match the return type of a gcc2
11270 builtin and then its argument prototype would still apply. */
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282 (eval $ac_link) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_cv_lib_dl_dlopen=yes
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_cv_lib_dl_dlopen=no
11299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11302 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11303 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11304 if test $ac_cv_lib_dl_dlopen = yes; then
11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11308 lt_cv_dlopen="dyld"
11310 lt_cv_dlopen_self=yes
11317 echo "$as_me:$LINENO: checking for shl_load" >&5
11318 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11319 if test "${ac_cv_func_shl_load+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 cat >conftest.$ac_ext <<_ACEOF
11323 #line $LINENO "configure"
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 /* System header to define __stub macros and hopefully few prototypes,
11330 which can conflict with char shl_load (); below.
11331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11332 <limits.h> exists even on freestanding compilers. */
11334 # include <limits.h>
11336 # include <assert.h>
11338 /* Override any gcc2 internal prototype to avoid an error. */
11343 /* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11346 /* The GNU C library defines this for functions which it implements
11347 to always fail with ENOSYS. Some functions are actually named
11348 something starting with __ and the normal name is an alias. */
11349 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11352 char (*f) () = shl_load;
11361 return f != shl_load;
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -s conftest$ac_exeext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_func_shl_load=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_cv_func_shl_load=no
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11389 if test $ac_cv_func_shl_load = yes; then
11390 lt_cv_dlopen="shl_load"
11392 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 ac_check_lib_save_LIBS=$LIBS
11399 cat >conftest.$ac_ext <<_ACEOF
11400 #line $LINENO "configure"
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11407 /* Override any gcc2 internal prototype to avoid an error. */
11411 /* We use char because int might match the return type of a gcc2
11412 builtin and then its argument prototype would still apply. */
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424 (eval $ac_link) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_cv_lib_dld_shl_load=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_cv_lib_dld_shl_load=no
11441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11444 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11445 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11446 if test $ac_cv_lib_dld_shl_load = yes; then
11447 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11449 echo "$as_me:$LINENO: checking for dlopen" >&5
11450 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11451 if test "${ac_cv_func_dlopen+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char dlopen (); below.
11463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464 <limits.h> exists even on freestanding compilers. */
11466 # include <limits.h>
11468 # include <assert.h>
11470 /* Override any gcc2 internal prototype to avoid an error. */
11475 /* We use char because int might match the return type of a gcc2
11476 builtin and then its argument prototype would still apply. */
11478 /* The GNU C library defines this for functions which it implements
11479 to always fail with ENOSYS. Some functions are actually named
11480 something starting with __ and the normal name is an alias. */
11481 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11484 char (*f) () = dlopen;
11493 return f != dlopen;
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500 (eval $ac_link) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_func_dlopen=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_cv_func_dlopen=no
11517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11520 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11521 if test $ac_cv_func_dlopen = yes; then
11522 lt_cv_dlopen="dlopen"
11524 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 ac_check_lib_save_LIBS=$LIBS
11531 cat >conftest.$ac_ext <<_ACEOF
11532 #line $LINENO "configure"
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 /* Override any gcc2 internal prototype to avoid an error. */
11543 /* We use char because int might match the return type of a gcc2
11544 builtin and then its argument prototype would still apply. */
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -s conftest$ac_exeext'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_cv_lib_dl_dlopen=yes
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_cv_lib_dl_dlopen=no
11573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11578 if test $ac_cv_lib_dl_dlopen = yes; then
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11581 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11582 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-lsvld $LIBS"
11588 cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11596 /* Override any gcc2 internal prototype to avoid an error. */
11600 /* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_lib_svld_dlopen=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_cv_lib_svld_dlopen=no
11630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11633 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11634 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11635 if test $ac_cv_lib_svld_dlopen = yes; then
11636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11638 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11639 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11640 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 ac_check_lib_save_LIBS=$LIBS
11645 cat >conftest.$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11653 /* Override any gcc2 internal prototype to avoid an error. */
11657 /* We use char because int might match the return type of a gcc2
11658 builtin and then its argument prototype would still apply. */
11668 rm -f conftest.$ac_objext conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_dld_dld_link=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_cv_lib_dld_dld_link=no
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11690 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11692 if test $ac_cv_lib_dld_dld_link = yes; then
11693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11714 if test "x$lt_cv_dlopen" != xno; then
11720 case $lt_cv_dlopen in
11722 save_CPPFLAGS="$CPPFLAGS"
11723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11725 save_LDFLAGS="$LDFLAGS"
11726 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11729 LIBS="$lt_cv_dlopen_libs $LIBS"
11731 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11732 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11733 if test "${lt_cv_dlopen_self+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 if test "$cross_compiling" = yes; then :
11737 lt_cv_dlopen_self=cross
11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740 lt_status=$lt_dlunknown
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11752 # define LT_DLGLOBAL RTLD_GLOBAL
11755 # define LT_DLGLOBAL DL_GLOBAL
11757 # define LT_DLGLOBAL 0
11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762 find out it does not work in some platform. */
11763 #ifndef LT_DLLAZY_OR_NOW
11765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11768 # define LT_DLLAZY_OR_NOW DL_LAZY
11771 # define LT_DLLAZY_OR_NOW RTLD_NOW
11774 # define LT_DLLAZY_OR_NOW DL_NOW
11776 # define LT_DLLAZY_OR_NOW 0
11784 extern "C" void exit (int);
11787 void fnord() { int i=42;}
11790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791 int status = $lt_dlunknown;
11795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11797 /* dlclose (self); */
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11808 (./conftest; exit; ) 2>/dev/null
11810 case x$lt_status in
11811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11813 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11816 # compilation failed
11817 lt_cv_dlopen_self=no
11824 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11825 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11827 if test "x$lt_cv_dlopen_self" = xyes; then
11828 LDFLAGS="$LDFLAGS $link_static_flag"
11829 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11830 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11831 if test "${lt_cv_dlopen_self_static+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 if test "$cross_compiling" = yes; then :
11835 lt_cv_dlopen_self_static=cross
11837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11838 lt_status=$lt_dlunknown
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11840 "configure"
11841 #include "confdefs.h"
11850 # define LT_DLGLOBAL RTLD_GLOBAL
11853 # define LT_DLGLOBAL DL_GLOBAL
11855 # define LT_DLGLOBAL 0
11859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11860 find out it does not work in some platform. */
11861 #ifndef LT_DLLAZY_OR_NOW
11863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11866 # define LT_DLLAZY_OR_NOW DL_LAZY
11869 # define LT_DLLAZY_OR_NOW RTLD_NOW
11872 # define LT_DLLAZY_OR_NOW DL_NOW
11874 # define LT_DLLAZY_OR_NOW 0
11882 extern "C" void exit (int);
11885 void fnord() { int i=42;}
11888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889 int status = $lt_dlunknown;
11893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895 /* dlclose (self); */
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11906 (./conftest; exit; ) 2>/dev/null
11908 case x$lt_status in
11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11914 # compilation failed
11915 lt_cv_dlopen_self_static=no
11922 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11923 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11926 CPPFLAGS="$save_CPPFLAGS"
11927 LDFLAGS="$save_LDFLAGS"
11932 case $lt_cv_dlopen_self in
11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934 *) enable_dlopen_self=unknown ;;
11937 case $lt_cv_dlopen_self_static in
11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939 *) enable_dlopen_self_static=unknown ;;
11944 # The else clause should only fire when bootstrapping the
11945 # libtool distribution, otherwise you forgot to ship ltmain.sh
11946 # with your package, and you will get complaints that there are
11947 # no rules to generate ltmain.sh.
11948 if test -f "$ltmain"; then
11949 # See if we are running on zsh, and set the options which allow our commands through
11950 # without removal of \ escapes.
11951 if test -n "${ZSH_VERSION+set}" ; then
11952 setopt NO_GLOB_SUBST
11954 # Now quote all the things that may contain metacharacters while being
11955 # careful not to overquote the AC_SUBSTed values. We take copies of the
11956 # variables and quote the copies for generation of the libtool script.
11957 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11958 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11959 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11960 deplibs_check_method reload_flag reload_cmds need_locks \
11961 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11962 lt_cv_sys_global_symbol_to_c_name_address \
11963 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11964 old_postinstall_cmds old_postuninstall_cmds \
11968 lt_prog_compiler_wl_CXX \
11969 lt_prog_compiler_pic_CXX \
11970 lt_prog_compiler_static_CXX \
11971 lt_prog_compiler_no_builtin_flag_CXX \
11972 export_dynamic_flag_spec_CXX \
11973 thread_safe_flag_spec_CXX \
11974 whole_archive_flag_spec_CXX \
11975 enable_shared_with_static_runtimes_CXX \
11976 old_archive_cmds_CXX \
11977 old_archive_from_new_cmds_CXX \
11978 predep_objects_CXX \
11979 postdep_objects_CXX \
11982 compiler_lib_search_path_CXX \
11984 archive_expsym_cmds_CXX \
11985 postinstall_cmds_CXX \
11986 postuninstall_cmds_CXX \
11987 old_archive_from_expsyms_cmds_CXX \
11988 allow_undefined_flag_CXX \
11989 no_undefined_flag_CXX \
11990 export_symbols_cmds_CXX \
11991 hardcode_libdir_flag_spec_CXX \
11992 hardcode_libdir_flag_spec_ld_CXX \
11993 hardcode_libdir_separator_CXX \
11994 hardcode_automatic_CXX \
11996 module_expsym_cmds_CXX \
11997 lt_cv_prog_compiler_c_o_CXX \
11998 exclude_expsyms_CXX \
11999 include_expsyms_CXX; do
12002 old_archive_cmds_CXX | \
12003 old_archive_from_new_cmds_CXX | \
12004 archive_cmds_CXX | \
12005 archive_expsym_cmds_CXX | \
12006 module_cmds_CXX | \
12007 module_expsym_cmds_CXX | \
12008 old_archive_from_expsyms_cmds_CXX | \
12009 export_symbols_cmds_CXX | \
12010 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12011 postinstall_cmds | postuninstall_cmds | \
12012 old_postinstall_cmds | old_postuninstall_cmds | \
12013 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12014 # Double-quote double-evaled strings.
12015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12024 *'\$0 --fallback-echo"')
12025 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12031 cat <<__EOF__ >> "$cfgfile"
12032 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12034 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12036 # Shell to use when invoking shell scripts.
12039 # Whether or not to build shared libraries.
12040 build_libtool_libs=$enable_shared
12042 # Whether or not to build static libraries.
12043 build_old_libs=$enable_static
12045 # Whether or not to add -lc for building shared libraries.
12046 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12048 # Whether or not to disallow shared libs when runtime libs are static
12049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12051 # Whether or not to optimize for fast installation.
12052 fast_install=$enable_fast_install
12055 host_alias=$host_alias
12058 # An echo program that does not interpret backslashes.
12063 AR_FLAGS=$lt_AR_FLAGS
12068 # A language-specific compiler.
12069 CC=$lt_compiler_CXX
12071 # Is the compiler the GNU C compiler?
12077 # The linker used to build libraries.
12080 # Whether we need hard or soft links.
12083 # A BSD-compatible nm program.
12086 # A symbol stripping program
12089 # Used to examine libraries when file_magic_cmd begins "file"
12090 MAGIC_CMD=$MAGIC_CMD
12092 # Used on cygwin: DLL creation program.
12095 # Used on cygwin: object dumper.
12098 # Used on cygwin: assembler.
12101 # The name of the directory that contains temporary libtool files.
12104 # How to create reloadable object files.
12105 reload_flag=$lt_reload_flag
12106 reload_cmds=$lt_reload_cmds
12108 # How to pass a linker flag through the compiler.
12109 wl=$lt_lt_prog_compiler_wl_CXX
12111 # Object file suffix (normally "o").
12112 objext="$ac_objext"
12114 # Old archive suffix (normally "a").
12117 # Shared library suffix (normally ".so").
12120 # Executable file suffix (normally "").
12123 # Additional compiler flags for building library objects.
12124 pic_flag=$lt_lt_prog_compiler_pic_CXX
12127 # What is the maximum length of a command?
12128 max_cmd_len=$lt_cv_sys_max_cmd_len
12130 # Does compiler simultaneously support -c and -o options?
12131 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12133 # Must we lock files when doing compilation ?
12134 need_locks=$lt_need_locks
12136 # Do we need the lib prefix for modules?
12137 need_lib_prefix=$need_lib_prefix
12139 # Do we need a version for libraries?
12140 need_version=$need_version
12142 # Whether dlopen is supported.
12143 dlopen_support=$enable_dlopen
12145 # Whether dlopen of programs is supported.
12146 dlopen_self=$enable_dlopen_self
12148 # Whether dlopen of statically linked programs is supported.
12149 dlopen_self_static=$enable_dlopen_self_static
12151 # Compiler flag to prevent dynamic linking.
12152 link_static_flag=$lt_lt_prog_compiler_static_CXX
12154 # Compiler flag to turn off builtin functions.
12155 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12157 # Compiler flag to allow reflexive dlopens.
12158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12160 # Compiler flag to generate shared objects directly from archives.
12161 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12163 # Compiler flag to generate thread-safe objects.
12164 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12166 # Library versioning type.
12167 version_type=$version_type
12169 # Format of library name prefix.
12170 libname_spec=$lt_libname_spec
12172 # List of archive names. First name is the real one, the rest are links.
12173 # The last name is the one that the linker finds with -lNAME.
12174 library_names_spec=$lt_library_names_spec
12176 # The coded name of the library, if different from the real name.
12177 soname_spec=$lt_soname_spec
12179 # Commands used to build and install an old-style archive.
12181 old_archive_cmds=$lt_old_archive_cmds_CXX
12182 old_postinstall_cmds=$lt_old_postinstall_cmds
12183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12185 # Create an old-style archive from a shared archive.
12186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12188 # Create a temporary old-style archive to link instead of a shared archive.
12189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12191 # Commands used to build and install a shared archive.
12192 archive_cmds=$lt_archive_cmds_CXX
12193 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12194 postinstall_cmds=$lt_postinstall_cmds
12195 postuninstall_cmds=$lt_postuninstall_cmds
12197 # Commands used to build a loadable module (assumed same as above if empty)
12198 module_cmds=$lt_module_cmds_CXX
12199 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12201 # Commands to strip libraries.
12202 old_striplib=$lt_old_striplib
12203 striplib=$lt_striplib
12205 # Dependencies to place before the objects being linked to create a
12207 predep_objects=$lt_predep_objects_CXX
12209 # Dependencies to place after the objects being linked to create a
12211 postdep_objects=$lt_postdep_objects_CXX
12213 # Dependencies to place before the objects being linked to create a
12215 predeps=$lt_predeps_CXX
12217 # Dependencies to place after the objects being linked to create a
12219 postdeps=$lt_postdeps_CXX
12221 # The library search path used internally by the compiler when linking
12222 # a shared library.
12223 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12225 # Method to check whether dependent libraries are shared objects.
12226 deplibs_check_method=$lt_deplibs_check_method
12228 # Command to use when deplibs_check_method == file_magic.
12229 file_magic_cmd=$lt_file_magic_cmd
12231 # Flag that allows shared libraries with undefined symbols to be built.
12232 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12234 # Flag that forces no undefined symbols.
12235 no_undefined_flag=$lt_no_undefined_flag_CXX
12237 # Commands used to finish a libtool library installation in a directory.
12238 finish_cmds=$lt_finish_cmds
12240 # Same as above, but a single script fragment to be evaled but not shown.
12241 finish_eval=$lt_finish_eval
12243 # Take the output of nm and produce a listing of raw symbols and C names.
12244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12246 # Transform the output of nm in a proper C declaration
12247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12249 # Transform the output of nm in a C name address pair
12250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12252 # This is the shared library runtime path variable.
12253 runpath_var=$runpath_var
12255 # This is the shared library path variable.
12256 shlibpath_var=$shlibpath_var
12258 # Is shlibpath searched before the hard-coded library search path?
12259 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12261 # How to hardcode a shared library path into an executable.
12262 hardcode_action=$hardcode_action_CXX
12264 # Whether we should hardcode library paths into libraries.
12265 hardcode_into_libs=$hardcode_into_libs
12267 # Flag to hardcode \$libdir into a binary during linking.
12268 # This must work even if \$libdir does not exist.
12269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12271 # If ld is used when linking, flag to hardcode \$libdir into
12272 # a binary during linking. This must work even if \$libdir does
12274 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12276 # Whether we need a single -rpath flag with a separated argument.
12277 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12279 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12280 # resulting binary.
12281 hardcode_direct=$hardcode_direct_CXX
12283 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12284 # resulting binary.
12285 hardcode_minus_L=$hardcode_minus_L_CXX
12287 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12288 # the resulting binary.
12289 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12291 # Set to yes if building a shared library automatically hardcodes DIR into the library
12292 # and all subsequent libraries and executables linked against it.
12293 hardcode_automatic=$hardcode_automatic_CXX
12295 # Variables whose values should be saved in libtool wrapper scripts and
12296 # restored at relink time.
12297 variables_saved_for_relink="$variables_saved_for_relink"
12299 # Whether libtool must link a program against all its dependency libraries.
12300 link_all_deplibs=$link_all_deplibs_CXX
12302 # Compile-time system search path for libraries
12303 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12305 # Run-time system search path for libraries
12306 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12308 # Fix the shell variable \$srcfile for the compiler.
12309 fix_srcfile_path="$fix_srcfile_path_CXX"
12311 # Set to yes if exported symbols are required.
12312 always_export_symbols=$always_export_symbols_CXX
12314 # The commands to list exported symbols.
12315 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12317 # The commands to extract the exported symbol list from a shared archive.
12318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12320 # Symbols that should not be listed in the preloaded symbols.
12321 exclude_expsyms=$lt_exclude_expsyms_CXX
12323 # Symbols that must always be exported.
12324 include_expsyms=$lt_include_expsyms_CXX
12326 # ### END LIBTOOL TAG CONFIG: $tagname
12332 # If there is no Makefile yet, we rely on a make rule to execute
12333 # `config.status --recheck' to rerun these tests and create the
12334 # libtool script then.
12335 test -f Makefile && make "$ltmain"
12340 ac_cpp='$CPP $CPPFLAGS'
12341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12349 with_gnu_ldcxx=$with_gnu_ld
12350 with_gnu_ld=$lt_save_with_gnu_ld
12351 lt_cv_path_LDCXX=$lt_cv_path_LD
12352 lt_cv_path_LD=$lt_save_path_LD
12353 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12354 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12362 if test -n "$F77" && test "X$F77" != "Xno"; then
12365 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12366 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12367 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12370 archive_cmds_need_lc_F77=no
12371 allow_undefined_flag_F77=
12372 always_export_symbols_F77=no
12373 archive_expsym_cmds_F77=
12374 export_dynamic_flag_spec_F77=
12375 hardcode_direct_F77=no
12376 hardcode_libdir_flag_spec_F77=
12377 hardcode_libdir_flag_spec_ld_F77=
12378 hardcode_libdir_separator_F77=
12379 hardcode_minus_L_F77=no
12380 hardcode_automatic_F77=no
12382 module_expsym_cmds_F77=
12383 link_all_deplibs_F77=unknown
12384 old_archive_cmds_F77=$old_archive_cmds
12385 no_undefined_flag_F77=
12386 whole_archive_flag_spec_F77=
12387 enable_shared_with_static_runtimes_F77=no
12389 # Source file extension for f77 test sources.
12392 # Object file extension for compiled f77 test sources.
12396 # Code to be used in simple compile tests
12397 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12399 # Code to be used in simple link tests
12400 lt_simple_link_test_code=" program t\n end\n"
12402 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12404 # If no C compiler was specified, use CC.
12407 # Allow CC to be a program name with arguments.
12411 # Allow CC to be a program name with arguments.
12416 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12418 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12419 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12420 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12421 echo "${ECHO_T}$can_build_shared" >&6
12423 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12424 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12425 test "$can_build_shared" = "no" && enable_shared=no
12427 # On AIX, shared libraries and static libraries use the same namespace, and
12428 # are all built from PIC.
12431 test "$enable_shared" = yes && enable_static=no
12432 if test -n "$RANLIB"; then
12433 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12434 postinstall_cmds='$RANLIB $lib'
12438 test "$enable_shared" = yes && enable_static=no
12441 echo "$as_me:$LINENO: result: $enable_shared" >&5
12442 echo "${ECHO_T}$enable_shared" >&6
12444 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12445 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12446 # Make sure either enable_shared or enable_static is yes.
12447 test "$enable_shared" = yes || enable_static=yes
12448 echo "$as_me:$LINENO: result: $enable_static" >&5
12449 echo "${ECHO_T}$enable_static" >&6
12451 test "$ld_shlibs_F77" = no && can_build_shared=no
12456 lt_prog_compiler_wl_F77=
12457 lt_prog_compiler_pic_F77=
12458 lt_prog_compiler_static_F77=
12460 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12463 if test "$GCC" = yes; then
12464 lt_prog_compiler_wl_F77='-Wl,'
12465 lt_prog_compiler_static_F77='-static'
12469 # All AIX code is PIC.
12470 if test "$host_cpu" = ia64; then
12471 # AIX 5 now supports IA64 processor
12472 lt_prog_compiler_static_F77='-Bstatic'
12477 # FIXME: we need at least 68020 code to build shared libraries, but
12478 # adding the `-m68020' flag to GCC prevents building anything better,
12480 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12483 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12484 # PIC is the default for these OSes.
12487 mingw* | pw32* | os2*)
12488 # This hack is so that the source file can tell whether it is being
12489 # built for inclusion in a dll (and should export symbols for example).
12490 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12493 darwin* | rhapsody*)
12494 # PIC is the default on this platform
12495 # Common symbols not allowed in MH_DYLIB files
12496 lt_prog_compiler_pic_F77='-fno-common'
12500 # Just because we use GCC doesn't mean we suddenly get shared libraries
12501 # on systems that don't support them.
12502 lt_prog_compiler_can_build_shared_F77=no
12507 if test -d /usr/nec; then
12508 lt_prog_compiler_pic_F77=-Kconform_pic
12513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12514 # not for PA HP-UX.
12515 case "$host_cpu" in
12520 lt_prog_compiler_pic_F77='-fPIC'
12526 lt_prog_compiler_pic_F77='-fPIC'
12530 # PORTME Check for flag to pass linker flags through the system compiler.
12533 lt_prog_compiler_wl_F77='-Wl,'
12534 if test "$host_cpu" = ia64; then
12535 # AIX 5 now supports IA64 processor
12536 lt_prog_compiler_static_F77='-Bstatic'
12538 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12542 mingw* | pw32* | os2*)
12543 # This hack is so that the source file can tell whether it is being
12544 # built for inclusion in a dll (and should export symbols for example).
12545 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12548 hpux9* | hpux10* | hpux11*)
12549 lt_prog_compiler_wl_F77='-Wl,'
12550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12551 # not for PA HP-UX.
12552 case "$host_cpu" in
12557 lt_prog_compiler_pic_F77='+Z'
12560 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12561 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12564 irix5* | irix6* | nonstopux*)
12565 lt_prog_compiler_wl_F77='-Wl,'
12566 # PIC (with -KPIC) is the default.
12567 lt_prog_compiler_static_F77='-non_shared'
12571 lt_prog_compiler_pic_F77='-KPIC'
12572 lt_prog_compiler_static_F77='-Bstatic'
12578 lt_prog_compiler_wl_F77='-Wl,'
12579 lt_prog_compiler_pic_F77='-KPIC'
12580 lt_prog_compiler_static_F77='-static'
12583 lt_prog_compiler_wl_F77='-Wl,'
12584 # All Alpha code is PIC.
12585 lt_prog_compiler_static_F77='-non_shared'
12590 osf3* | osf4* | osf5*)
12591 lt_prog_compiler_wl_F77='-Wl,'
12592 # All OSF/1 code is PIC.
12593 lt_prog_compiler_static_F77='-non_shared'
12597 lt_prog_compiler_pic_F77='-Kpic'
12598 lt_prog_compiler_static_F77='-dn'
12602 lt_prog_compiler_wl_F77='-Wl,'
12603 lt_prog_compiler_pic_F77='-KPIC'
12604 lt_prog_compiler_static_F77='-Bstatic'
12608 lt_prog_compiler_wl_F77='-Qoption ld '
12609 lt_prog_compiler_pic_F77='-PIC'
12610 lt_prog_compiler_static_F77='-Bstatic'
12613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12614 lt_prog_compiler_wl_F77='-Wl,'
12615 lt_prog_compiler_pic_F77='-KPIC'
12616 lt_prog_compiler_static_F77='-Bstatic'
12620 if test -d /usr/nec ;then
12621 lt_prog_compiler_pic_F77='-Kconform_pic'
12622 lt_prog_compiler_static_F77='-Bstatic'
12627 lt_prog_compiler_pic_F77='-pic'
12628 lt_prog_compiler_static_F77='-Bstatic'
12632 lt_prog_compiler_can_build_shared_F77=no
12637 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12638 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12641 # Check to make sure the PIC flag actually works.
12643 if test -n "$lt_prog_compiler_pic_F77"; then
12644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12646 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 lt_prog_compiler_pic_works_F77=no
12650 ac_outfile=conftest.$ac_objext
12651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12652 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12653 # Insert the option either (1) after the last *FLAGS variable, or
12654 # (2) before a word containing "conftest.", or (3) at the end.
12655 # Note that $ac_compile itself does not contain backslashes and begins
12656 # with a dollar sign (not a hyphen), so the echo should work correctly.
12657 # The option is referenced via a variable to avoid confusing sed.
12658 lt_compile=`echo "$ac_compile" | $SED \
12659 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12661 -e 's:$: $lt_compiler_flag:'`
12662 (eval echo "\"\$as_me:12662: $lt_compile\"" >&5)
12663 (eval "$lt_compile" 2>conftest.err)
12665 cat conftest.err >&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 if (exit $ac_status) && test -s "$ac_outfile"; then
12668 # The compiler can only warn and ignore the option if not recognized
12669 # So say no if there are warnings
12670 if test ! -s conftest.err; then
12671 lt_prog_compiler_pic_works_F77=yes
12677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12680 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12681 case $lt_prog_compiler_pic_F77 in
12683 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12686 lt_prog_compiler_pic_F77=
12687 lt_prog_compiler_can_build_shared_F77=no
12692 # For platforms which do not support PIC, -DPIC is meaningless:
12694 lt_prog_compiler_pic_F77=
12697 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12701 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12702 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12703 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 lt_cv_prog_compiler_c_o_F77=no
12707 $rm -r conftest 2>/dev/null
12711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12713 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12714 # that will create temporary files in the current directory regardless of
12715 # the output directory. Thus, making CWD read-only will cause this test
12716 # to fail, enabling locking or at least warning the user not to do parallel
12720 lt_compiler_flag="-o out/conftest2.$ac_objext"
12721 # Insert the option either (1) after the last *FLAGS variable, or
12722 # (2) before a word containing "conftest.", or (3) at the end.
12723 # Note that $ac_compile itself does not contain backslashes and begins
12724 # with a dollar sign (not a hyphen), so the echo should work correctly.
12725 lt_compile=`echo "$ac_compile" | $SED \
12726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728 -e 's:$: $lt_compiler_flag:'`
12729 (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730 (eval "$lt_compile" 2>out/conftest.err)
12732 cat out/conftest.err >&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12736 # The compiler can only warn and ignore the option if not recognized
12737 # So say no if there are warnings
12738 if test ! -s out/conftest.err; then
12739 lt_cv_prog_compiler_c_o_F77=yes
12743 $rm conftest* out/*
12750 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12754 hard_links="nottested"
12755 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12756 # do not overwrite the value of need_locks provided by the user
12757 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12758 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12763 ln conftest.a conftest.b 2>&5 || hard_links=no
12764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12765 echo "$as_me:$LINENO: result: $hard_links" >&5
12766 echo "${ECHO_T}$hard_links" >&6
12767 if test "$hard_links" = no; then
12768 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12769 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12776 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12777 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12780 allow_undefined_flag_F77=
12781 enable_shared_with_static_runtimes_F77=no
12783 archive_expsym_cmds_F77=
12784 old_archive_From_new_cmds_F77=
12785 old_archive_from_expsyms_cmds_F77=
12786 export_dynamic_flag_spec_F77=
12787 whole_archive_flag_spec_F77=
12788 thread_safe_flag_spec_F77=
12789 hardcode_libdir_flag_spec_F77=
12790 hardcode_libdir_flag_spec_ld_F77=
12791 hardcode_libdir_separator_F77=
12792 hardcode_direct_F77=no
12793 hardcode_minus_L_F77=no
12794 hardcode_shlibpath_var_F77=unsupported
12795 link_all_deplibs_F77=unknown
12796 hardcode_automatic_F77=no
12798 module_expsym_cmds_F77=
12799 always_export_symbols_F77=no
12800 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12801 # include_expsyms should be a list of space-separated symbols to be *always*
12802 # included in the symbol list
12803 include_expsyms_F77=
12804 # exclude_expsyms can be an extended regexp of symbols to exclude
12805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12807 # as well as any symbol that contains `d'.
12808 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12810 # platforms (ab)use it in PIC code, but their linkers get confused if
12811 # the symbol is explicitly referenced. Since portable code cannot
12812 # rely on this symbol name, it's probably fine to never include it in
12813 # preloaded symbol tables.
12814 extract_expsyms_cmds=
12817 cygwin* | mingw* | pw32*)
12818 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12819 # When not using gcc, we currently assume that we are using
12820 # Microsoft Visual C++.
12821 if test "$GCC" != yes; then
12831 if test "$with_gnu_ld" = yes; then
12832 # If archive_cmds runs LD, not CC, wlarc should be empty
12835 # See if GNU ld supports shared libraries.
12837 aix3* | aix4* | aix5*)
12838 # On AIX/PPC, the GNU linker is very broken
12839 if test "$host_cpu" != ia64; then
12843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12844 *** to be unable to reliably create shared libraries on AIX.
12845 *** Therefore, libtool is disabling shared libraries support. If you
12846 *** really care for shared libraries, you may want to modify your PATH
12847 *** so that a non-GNU linker is found, and then restart.
12854 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)'
12855 hardcode_libdir_flag_spec_F77='-L$libdir'
12856 hardcode_minus_L_F77=yes
12858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12859 # that the semantics of dynamic libraries on AmigaOS, at least up
12860 # to version 4, is to share data among multiple programs linked
12861 # with the same dynamic library. Since this doesn't match the
12862 # behavior of shared libraries on other platforms, we can't use
12868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12869 allow_undefined_flag_F77=unsupported
12870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12871 # support --undefined. This deserves some investigation. FIXME
12872 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12878 cygwin* | mingw* | pw32*)
12879 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12880 # as there is no search path for DLLs.
12881 hardcode_libdir_flag_spec_F77='-L$libdir'
12882 allow_undefined_flag_F77=unsupported
12883 always_export_symbols_F77=no
12884 enable_shared_with_static_runtimes_F77=yes
12885 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12887 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12888 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12889 # If the export-symbols file already is a .def file (1st line
12890 # is EXPORTS), use it as is; otherwise, prepend...
12891 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12892 cp $export_symbols $output_objdir/$soname.def;
12894 echo EXPORTS > $output_objdir/$soname.def;
12895 cat $export_symbols >> $output_objdir/$soname.def;
12897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12905 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12909 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12914 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12919 *** create shared libraries on Solaris systems. Therefore, libtool
12920 *** is disabling shared libraries support. We urge you to upgrade GNU
12921 *** binutils to release 2.9.1 or newer. Another option is to modify
12922 *** your PATH or compiler configuration so that the native linker is
12923 *** used, and then restart.
12926 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12927 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12935 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12937 hardcode_direct_F77=yes
12938 hardcode_shlibpath_var_F77=no
12942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12951 if test "$ld_shlibs_F77" = yes; then
12952 runpath_var=LD_RUN_PATH
12953 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12954 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12955 # ancient GNU ld didn't support --whole-archive et. al.
12956 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12957 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12959 whole_archive_flag_spec_F77=
12963 # PORTME fill in a description of your system's linker (not GNU ld)
12966 allow_undefined_flag_F77=unsupported
12967 always_export_symbols_F77=yes
12968 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'
12969 # Note: this linker hardcodes the directories in LIBPATH if there
12970 # are no directories specified by -L.
12971 hardcode_minus_L_F77=yes
12972 if test "$GCC" = yes && test -z "$link_static_flag"; then
12973 # Neither direct hardcoding nor static linking is supported with a
12975 hardcode_direct_F77=unsupported
12980 if test "$host_cpu" = ia64; then
12981 # On IA64, the linker does run time linking by default, so we don't
12982 # have to do anything special.
12983 aix_use_runtimelinking=no
12984 exp_sym_flag='-Bexport'
12987 # If we're using GNU nm, then we don't want the "-C" option.
12988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12989 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12990 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'
12992 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'
12994 aix_use_runtimelinking=no
12996 # Test if we are trying to use run time linking or normal
12997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998 # need to do runtime linking.
12999 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13000 for ld_flag in $LDFLAGS; do
13001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13002 aix_use_runtimelinking=yes
13008 exp_sym_flag='-bexport'
13009 no_entry_flag='-bnoentry'
13012 # When large executables or shared objects are built, AIX ld can
13013 # have problems creating the table of contents. If linking a library
13014 # or program results in "error TOC overflow" add -mminimal-toc to
13015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13018 archive_cmds_F77=''
13019 hardcode_direct_F77=yes
13020 hardcode_libdir_separator_F77=':'
13021 link_all_deplibs_F77=yes
13023 if test "$GCC" = yes; then
13024 case $host_os in aix4.012|aix4.012.*)
13025 # We only want to do this on AIX 4.2 and lower, the check
13026 # below for broken collect2 doesn't work under 4.3+
13027 collect2name=`${CC} -print-prog-name=collect2`
13028 if test -f "$collect2name" && \
13029 strings "$collect2name" | grep resolve_lib_name >/dev/null
13031 # We have reworked collect2
13032 hardcode_direct_F77=yes
13034 # We have old collect2
13035 hardcode_direct_F77=unsupported
13036 # It fails to find uninstalled libraries when the uninstalled
13037 # path is not listed in the libpath. Setting hardcode_minus_L
13038 # to unsupported forces relinking
13039 hardcode_minus_L_F77=yes
13040 hardcode_libdir_flag_spec_F77='-L$libdir'
13041 hardcode_libdir_separator_F77=
13044 shared_flag='-shared'
13047 if test "$host_cpu" = ia64; then
13048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13049 # chokes on -Wl,-G. The following line is correct:
13052 if test "$aix_use_runtimelinking" = yes; then
13053 shared_flag='${wl}-G'
13055 shared_flag='${wl}-bM:SRE'
13060 # It seems that -bexpall does not export symbols beginning with
13061 # underscore (_), so it is better to generate a list of symbols to export.
13062 always_export_symbols_F77=yes
13063 if test "$aix_use_runtimelinking" = yes; then
13064 # Warning - without using the other runtime loading flags (-brtl),
13065 # -berok will link without error, but may produce a broken library.
13066 allow_undefined_flag_F77='-berok'
13067 # Determine the default libpath from the value encoded in an empty executable.
13068 cat >conftest.$ac_ext <<_ACEOF
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13088 # Check for a 64-bit object if we didn't find anything.
13089 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; }
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13099 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13100 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"
13102 if test "$host_cpu" = ia64; then
13103 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13104 allow_undefined_flag_F77="-z nodefs"
13105 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"
13107 # Determine the default libpath from the value encoded in an empty executable.
13108 cat >conftest.$ac_ext <<_ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13128 # Check for a 64-bit object if we didn't find anything.
13129 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; }
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13140 # Warning - without using the other run time loading flags,
13141 # -berok will link without error, but may produce a broken library.
13142 no_undefined_flag_F77=' ${wl}-bernotok'
13143 allow_undefined_flag_F77=' ${wl}-berok'
13144 # -bexpall does not export symbols beginning with underscore (_)
13145 always_export_symbols_F77=yes
13146 # Exported symbols can be pulled into shared objects from archives
13147 whole_archive_flag_spec_F77=' '
13148 archive_cmds_need_lc_F77=yes
13149 # This is similar to how AIX traditionally builds it's shared libraries.
13150 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'
13156 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)'
13157 hardcode_libdir_flag_spec_F77='-L$libdir'
13158 hardcode_minus_L_F77=yes
13159 # see comment about different semantics on the GNU ld section
13164 export_dynamic_flag_spec_F77=-rdynamic
13167 cygwin* | mingw* | pw32*)
13168 # When not using gcc, we currently assume that we are using
13169 # Microsoft Visual C++.
13170 # hardcode_libdir_flag_spec is actually meaningless, as there is
13171 # no search path for DLLs.
13172 hardcode_libdir_flag_spec_F77=' '
13173 allow_undefined_flag_F77=unsupported
13174 # Tell ltmain to make .lib files, not .a files.
13176 # Tell ltmain to make .dll files, not .so files.
13178 # FIXME: Setting linknames here is a bad hack.
13179 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13180 # The linker will automatically build a .lib file if we build a DLL.
13181 old_archive_From_new_cmds_F77='true'
13182 # FIXME: Should let the user specify the lib program.
13183 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13184 fix_srcfile_path='`cygpath -w "$srcfile"`'
13185 enable_shared_with_static_runtimes_F77=yes
13188 darwin* | rhapsody*)
13189 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13190 archive_cmds_need_lc_F77=no
13192 rhapsody* | darwin1.[012])
13193 allow_undefined_flag_F77='-undefined suppress'
13196 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13199 # FIXME: Relying on posixy $() will cause problems for
13200 # cross-compilation, but unfortunately the echo tests do not
13201 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13202 # `"' quotes if we put them in here... so don't!
13203 lt_int_apple_cc_single_mod=no
13204 output_verbose_link_cmd='echo'
13205 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13206 lt_int_apple_cc_single_mod=yes
13208 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13209 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13211 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'
13213 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13216 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}'
13218 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}'
13220 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}'
13221 hardcode_direct_F77=no
13222 hardcode_automatic_F77=yes
13223 hardcode_shlibpath_var_F77=unsupported
13224 whole_archive_flag_spec_F77='-all_load $convenience'
13225 link_all_deplibs_F77=yes
13230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231 hardcode_libdir_flag_spec_F77='-L$libdir'
13232 hardcode_shlibpath_var_F77=no
13239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13240 # support. Future versions do this automatically, but an explicit c++rt0.o
13241 # does not break anything, and helps significantly (at the cost of a little
13244 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13245 hardcode_libdir_flag_spec_F77='-R$libdir'
13246 hardcode_direct_F77=yes
13247 hardcode_shlibpath_var_F77=no
13250 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13252 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13253 hardcode_direct_F77=yes
13254 hardcode_minus_L_F77=yes
13255 hardcode_shlibpath_var_F77=no
13258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13260 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13261 hardcode_libdir_flag_spec_F77='-R$libdir'
13262 hardcode_direct_F77=yes
13263 hardcode_shlibpath_var_F77=no
13267 if test "$GCC" = yes; then
13268 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'
13270 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'
13272 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13273 hardcode_libdir_separator_F77=:
13274 hardcode_direct_F77=yes
13276 # hardcode_minus_L: Not really in the search PATH,
13277 # but as the default location of the library.
13278 hardcode_minus_L_F77=yes
13279 export_dynamic_flag_spec_F77='${wl}-E'
13283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13284 case "$host_cpu" in
13286 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13289 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13293 case "$host_cpu" in
13295 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13298 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13302 if test "$with_gnu_ld" = no; then
13303 case "$host_cpu" in
13305 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13306 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13307 hardcode_libdir_separator_F77=:
13308 hardcode_direct_F77=no
13309 hardcode_shlibpath_var_F77=no
13312 hardcode_libdir_flag_spec_F77='-L$libdir'
13313 hardcode_direct_F77=no
13314 hardcode_shlibpath_var_F77=no
13316 # hardcode_minus_L: Not really in the search PATH,
13317 # but as the default location of the library.
13318 hardcode_minus_L_F77=yes
13321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13322 hardcode_libdir_separator_F77=:
13323 hardcode_direct_F77=yes
13324 export_dynamic_flag_spec_F77='${wl}-E'
13326 # hardcode_minus_L: Not really in the search PATH,
13327 # but as the default location of the library.
13328 hardcode_minus_L_F77=yes
13334 irix5* | irix6* | nonstopux*)
13335 if test "$GCC" = yes; then
13336 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'
13338 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'
13339 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13341 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator_F77=:
13343 link_all_deplibs_F77=yes
13347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13348 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13350 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13352 hardcode_libdir_flag_spec_F77='-R$libdir'
13353 hardcode_direct_F77=yes
13354 hardcode_shlibpath_var_F77=no
13358 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13359 hardcode_direct_F77=yes
13360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13361 hardcode_libdir_separator_F77=:
13362 hardcode_shlibpath_var_F77=no
13366 hardcode_direct_F77=yes
13367 hardcode_shlibpath_var_F77=no
13368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13369 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13370 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13371 export_dynamic_flag_spec_F77='${wl}-E'
13374 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13376 hardcode_libdir_flag_spec_F77='-R$libdir'
13379 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13387 hardcode_libdir_flag_spec_F77='-L$libdir'
13388 hardcode_minus_L_F77=yes
13389 allow_undefined_flag_F77=unsupported
13390 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'
13391 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13395 if test "$GCC" = yes; then
13396 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13397 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'
13399 allow_undefined_flag_F77=' -expect_unresolved \*'
13400 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'
13402 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13403 hardcode_libdir_separator_F77=:
13406 osf4* | osf5*) # as osf3* with the addition of -msym flag
13407 if test "$GCC" = yes; then
13408 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13409 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'
13410 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13412 allow_undefined_flag_F77=' -expect_unresolved \*'
13413 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'
13414 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~
13415 $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'
13417 # Both c and cxx compiler support -rpath directly
13418 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13420 hardcode_libdir_separator_F77=:
13424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13425 hardcode_shlibpath_var_F77=no
13426 export_dynamic_flag_spec_F77='${wl}-Bexport'
13427 runpath_var=LD_RUN_PATH
13428 hardcode_runpath_var=yes
13432 no_undefined_flag_F77=' -z text'
13433 if test "$GCC" = yes; then
13434 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13435 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13438 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13442 hardcode_libdir_flag_spec_F77='-R$libdir'
13443 hardcode_shlibpath_var_F77=no
13445 solaris2.[0-5] | solaris2.[0-5].*) ;;
13446 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13447 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13449 link_all_deplibs_F77=yes
13453 if test "x$host_vendor" = xsequent; then
13454 # Use $CC to link under sequent, because it throws in some extra .o
13455 # files that make .init and .fini sections work.
13456 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13458 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_libdir_flag_spec_F77='-L$libdir'
13461 hardcode_direct_F77=yes
13462 hardcode_minus_L_F77=yes
13463 hardcode_shlibpath_var_F77=no
13467 case $host_vendor in
13469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_direct_F77=yes # is this really true???
13473 ## LD is ld it makes a PLAMLIB
13474 ## CC just makes a GrossModule.
13475 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13476 reload_cmds_F77='$CC -r -o $output$reload_objs'
13477 hardcode_direct_F77=no
13480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13484 runpath_var='LD_RUN_PATH'
13485 hardcode_shlibpath_var_F77=no
13489 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13490 hardcode_shlibpath_var_F77=no
13491 export_dynamic_flag_spec_F77='-Bexport'
13495 if test -d /usr/nec; then
13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 hardcode_shlibpath_var_F77=no
13498 runpath_var=LD_RUN_PATH
13499 hardcode_runpath_var=yes
13505 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13506 hardcode_direct_F77=yes
13507 hardcode_minus_L_F77=no
13508 hardcode_shlibpath_var_F77=no
13509 hardcode_runpath_var=yes
13510 runpath_var=LD_RUN_PATH
13513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13514 no_undefined_flag_F77='${wl}-z ${wl}text'
13515 if test "$GCC" = yes; then
13516 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 runpath_var='LD_RUN_PATH'
13521 hardcode_shlibpath_var_F77=no
13525 no_undefined_flag_F77=' -z text'
13526 # $CC -shared without GNU ld will not create a library from C++
13527 # object files and a static libstdc++, better avoid it by now
13528 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13531 hardcode_libdir_flag_spec_F77=
13532 hardcode_shlibpath_var_F77=no
13533 runpath_var='LD_RUN_PATH'
13537 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538 hardcode_libdir_flag_spec_F77='-L$libdir'
13539 hardcode_shlibpath_var_F77=no
13548 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13549 echo "${ECHO_T}$ld_shlibs_F77" >&6
13550 test "$ld_shlibs_F77" = no && can_build_shared=no
13552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13553 if test "$GCC" = yes; then
13554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13558 # Do we need to explicitly link libc?
13560 case "x$archive_cmds_need_lc_F77" in
13562 # Assume -lc should be added
13563 archive_cmds_need_lc_F77=yes
13565 if test "$enable_shared" = yes && test "$GCC" = yes; then
13566 case $archive_cmds_F77 in
13568 # FIXME: we may have to deal with multi-command sequences.
13571 # Test whether the compiler implicitly links with -lc since on some
13572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13573 # to ld, don't add -lc before -lgcc.
13574 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } 2>conftest.err; then
13586 libobjs=conftest.$ac_objext
13588 wl=$lt_prog_compiler_wl_F77
13594 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13595 allow_undefined_flag_F77=
13596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13597 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }
13602 archive_cmds_need_lc_F77=no
13604 archive_cmds_need_lc_F77=yes
13606 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13608 cat conftest.err 1>&5
13611 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13612 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13619 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13620 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13621 hardcode_action_F77=
13622 if test -n "$hardcode_libdir_flag_spec_F77" || \
13623 test -n "$runpath_var F77" || \
13624 test "X$hardcode_automatic_F77"="Xyes" ; then
13626 # We can hardcode non-existant directories.
13627 if test "$hardcode_direct_F77" != no &&
13628 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13629 # have to relink, otherwise we might link with an installed library
13630 # when we should be linking with a yet-to-be-installed one
13631 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13632 test "$hardcode_minus_L_F77" != no; then
13633 # Linking always hardcodes the temporary library directory.
13634 hardcode_action_F77=relink
13636 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13637 hardcode_action_F77=immediate
13640 # We cannot hardcode anything, or else we can only hardcode existing
13642 hardcode_action_F77=unsupported
13644 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13645 echo "${ECHO_T}$hardcode_action_F77" >&6
13647 if test "$hardcode_action_F77" = relink; then
13648 # Fast installation is not supported
13649 enable_fast_install=no
13650 elif test "$shlibpath_overrides_runpath" = yes ||
13651 test "$enable_shared" = no; then
13652 # Fast installation is not necessary
13653 enable_fast_install=needless
13658 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13659 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13660 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13663 echo "$as_me:$LINENO: result: yes" >&5
13664 echo "${ECHO_T}yes" >&6
13666 # FIXME - insert some real tests, host_os isn't really good enough
13669 if test -n "$STRIP" ; then
13670 striplib="$STRIP -x"
13671 echo "$as_me:$LINENO: result: yes" >&5
13672 echo "${ECHO_T}yes" >&6
13674 echo "$as_me:$LINENO: result: no" >&5
13675 echo "${ECHO_T}no" >&6
13679 echo "$as_me:$LINENO: result: no" >&5
13680 echo "${ECHO_T}no" >&6
13685 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13687 library_names_spec=
13688 libname_spec='lib$name'
13692 postuninstall_cmds=
13696 shlibpath_overrides_runpath=unknown
13698 dynamic_linker="$host_os ld.so"
13699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13700 if test "$GCC" = yes; then
13701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13702 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13703 # if the path contains ";" then we assume it to be the separator
13704 # otherwise default to the standard path separator (i.e. ":") - it is
13705 # assumed that no part of a normal pathname contains ";" but that should
13706 # okay in the real world where ";" in dirpaths is itself problematic.
13707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13714 need_lib_prefix=unknown
13715 hardcode_into_libs=no
13717 # when you set need_version to no, make sure it does not cause -set_version
13718 # flags to be left without arguments
13719 need_version=unknown
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13725 shlibpath_var=LIBPATH
13727 # AIX 3 has no versioning support, so we append a major version to the name.
13728 soname_spec='${libname}${release}${shared_ext}$major'
13735 hardcode_into_libs=yes
13736 if test "$host_cpu" = ia64; then
13737 # AIX 5 supports IA64
13738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13739 shlibpath_var=LD_LIBRARY_PATH
13741 # With GCC up to 2.95.x, collect2 would create an import file
13742 # for dependence libraries. The import file would start with
13743 # the line `#! .'. This would cause the generated library to
13744 # depend on `.', always an invalid library. This was fixed in
13745 # development snapshots of GCC prior to 3.0.
13747 aix4 | aix4.[01] | aix4.[01].*)
13748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13753 can_build_shared=no
13757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13758 # soname into executable. Probably we can add versioning support to
13759 # collect2, so additional links can be useful in future.
13760 if test "$aix_use_runtimelinking" = yes; then
13761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13762 # instead of lib<name>.a to let people know that these are not
13763 # typical AIX shared libraries.
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766 # We preserve .a as extension for shared libraries through AIX4.2
13767 # and later when we are not doing run time linking.
13768 library_names_spec='${libname}${release}.a $libname.a'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13771 shlibpath_var=LIBPATH
13776 library_names_spec='$libname.ixlibrary $libname.a'
13777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13778 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'
13782 library_names_spec='${libname}${shared_ext}'
13783 dynamic_linker="$host_os ld.so"
13784 shlibpath_var=LIBRARY_PATH
13790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13791 soname_spec='${libname}${release}${shared_ext}$major'
13792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13796 # the default ld.so.conf also contains /usr/contrib/lib and
13797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13798 # libtool to hard-code these into programs
13801 cygwin* | mingw* | pw32*)
13802 version_type=windows
13807 case $GCC,$host_os in
13808 yes,cygwin* | yes,mingw* | yes,pw32*)
13809 library_names_spec='$libname.dll.a'
13810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13811 postinstall_cmds='base_file=`basename \${file}`~
13812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13813 dldir=$destdir/`dirname \$dlpath`~
13814 test -d \$dldir || mkdir -p \$dldir~
13815 $install_prog $dir/$dlname \$dldir/$dlname'
13816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13817 dlpath=$dir/\$dldll~
13819 shlibpath_overrides_runpath=yes
13823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13825 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13828 # MinGW DLLs use traditional 'lib' prefix
13829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13831 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13832 # It is most probably a Windows format PATH printed by
13833 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13834 # path with ; separators, and with drive letters. We can handle the
13835 # drive letters (cygwin fileutils understands them), so leave them,
13836 # especially as we might pass files found there to a mingw objdump,
13837 # which wouldn't understand a cygwinified path. Ahh.
13838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13844 # pw32 DLLs use 'pw' prefix rather than 'lib'
13845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13854 dynamic_linker='Win32 ld.exe'
13855 # FIXME: first we should search . and the directory the executable is in
13859 darwin* | rhapsody*)
13860 dynamic_linker="$host_os dyld"
13861 version_type=darwin
13864 # FIXME: Relying on posixy $() will cause problems for
13865 # cross-compilation, but unfortunately the echo tests do not
13866 # yet detect zsh echo's removal of \ escapes.
13867 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13868 soname_spec='${libname}${release}${major}$shared_ext'
13869 shlibpath_overrides_runpath=yes
13870 shlibpath_var=DYLD_LIBRARY_PATH
13871 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13872 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13873 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13874 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"`
13876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 shlibpath_var=LD_LIBRARY_PATH
13893 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13894 version_type=freebsd-$objformat
13895 case $version_type in
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13906 shlibpath_var=LD_LIBRARY_PATH
13909 shlibpath_overrides_runpath=yes
13911 freebsd3.01* | freebsdelf3.01*)
13912 shlibpath_overrides_runpath=yes
13913 hardcode_into_libs=yes
13916 shlibpath_overrides_runpath=no
13917 hardcode_into_libs=yes
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13927 soname_spec='${libname}${release}${shared_ext}$major'
13928 shlibpath_var=LD_LIBRARY_PATH
13929 hardcode_into_libs=yes
13932 hpux9* | hpux10* | hpux11*)
13933 # Give a soname corresponding to the major version so that dld.sl refuses to
13934 # link against other versions.
13938 case "$host_cpu" in
13941 hardcode_into_libs=yes
13942 dynamic_linker="$host_os dld.so"
13943 shlibpath_var=LD_LIBRARY_PATH
13944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 if test "X$HPUX_IA64_MODE" = X32; then
13948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13956 hardcode_into_libs=yes
13957 dynamic_linker="$host_os dld.sl"
13958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13967 dynamic_linker="$host_os dld.sl"
13968 shlibpath_var=SHLIB_PATH
13969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13975 postinstall_cmds='chmod 555 $lib'
13978 irix5* | irix6* | nonstopux*)
13980 nonstopux*) version_type=nonstopux ;;
13982 if test "$lt_cv_prog_gnu_ld" = yes; then
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13993 irix5* | nonstopux*)
13994 libsuff= shlibsuff=
13997 case $LD in # libtool.m4 will add one of these switches to LD
13998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13999 libsuff= shlibsuff= libmagic=32-bit;;
14000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14001 libsuff=32 shlibsuff=N32 libmagic=N32;;
14002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14004 *) libsuff= shlibsuff= libmagic=never-match;;
14008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14009 shlibpath_overrides_runpath=no
14010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14012 hardcode_into_libs=yes
14015 # No shared lib support for Linux oldld, aout, or coff.
14016 linux*oldld* | linux*aout* | linux*coff*)
14020 # This must be Linux ELF.
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026 soname_spec='${libname}${release}${shared_ext}$major'
14027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 shlibpath_overrides_runpath=no
14030 # This implies no fast_install, which is unacceptable.
14031 # Some rework will be needed to allow for fast_install
14032 # before this can be enabled.
14033 hardcode_into_libs=yes
14035 # We used to test for /lib/ld.so.1 and disable shared libraries on
14036 # powerpc, because MkLinux only supported shared libraries with the
14037 # GNU dynamic linker. Since this was broken with cross compilers,
14038 # most powerpc-linux boxes support dynamic linking these days and
14039 # people can always --disable-shared, the test was removed, and we
14040 # assume the GNU/Linux dynamic linker is in use.
14041 dynamic_linker='GNU/Linux ld.so'
14048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14051 dynamic_linker='NetBSD (a.out) ld.so'
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14054 soname_spec='${libname}${release}${shared_ext}$major'
14055 dynamic_linker='NetBSD ld.elf_so'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=yes
14059 hardcode_into_libs=yes
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14065 shlibpath_var=LD_LIBRARY_PATH
14066 shlibpath_overrides_runpath=yes
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 soname_spec='${libname}${release}${shared_ext}$major'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14088 openbsd2.[89] | openbsd2.[89].*)
14089 shlibpath_overrides_runpath=no
14092 shlibpath_overrides_runpath=yes
14096 shlibpath_overrides_runpath=yes
14101 libname_spec='$name'
14104 library_names_spec='$libname${shared_ext} $libname.a'
14105 dynamic_linker='OS/2 ld.exe'
14106 shlibpath_var=LIBPATH
14109 osf3* | osf4* | osf5*)
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14122 soname_spec='${libname}${release}${shared_ext}$major'
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 shlibpath_var=LD_LIBRARY_PATH
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 shlibpath_overrides_runpath=yes
14135 hardcode_into_libs=yes
14136 # ldd complains unless libraries are executable
14137 postinstall_cmds='chmod +x $lib'
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14144 shlibpath_var=LD_LIBRARY_PATH
14145 shlibpath_overrides_runpath=yes
14146 if test "$with_gnu_ld" = yes; then
14152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155 soname_spec='${libname}${release}${shared_ext}$major'
14156 shlibpath_var=LD_LIBRARY_PATH
14157 case $host_vendor in
14159 shlibpath_overrides_runpath=no
14161 export_dynamic_flag_spec='${wl}-Blargedynsym'
14162 runpath_var=LD_RUN_PATH
14170 shlibpath_overrides_runpath=no
14171 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14177 if test -d /usr/nec ;then
14179 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14180 soname_spec='$libname${shared_ext}.$major'
14181 shlibpath_var=LD_LIBRARY_PATH
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14196 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14197 echo "${ECHO_T}$dynamic_linker" >&6
14198 test "$dynamic_linker" = no && can_build_shared=no
14201 # The else clause should only fire when bootstrapping the
14202 # libtool distribution, otherwise you forgot to ship ltmain.sh
14203 # with your package, and you will get complaints that there are
14204 # no rules to generate ltmain.sh.
14205 if test -f "$ltmain"; then
14206 # See if we are running on zsh, and set the options which allow our commands through
14207 # without removal of \ escapes.
14208 if test -n "${ZSH_VERSION+set}" ; then
14209 setopt NO_GLOB_SUBST
14211 # Now quote all the things that may contain metacharacters while being
14212 # careful not to overquote the AC_SUBSTed values. We take copies of the
14213 # variables and quote the copies for generation of the libtool script.
14214 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14217 deplibs_check_method reload_flag reload_cmds need_locks \
14218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14219 lt_cv_sys_global_symbol_to_c_name_address \
14220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14221 old_postinstall_cmds old_postuninstall_cmds \
14225 lt_prog_compiler_wl_F77 \
14226 lt_prog_compiler_pic_F77 \
14227 lt_prog_compiler_static_F77 \
14228 lt_prog_compiler_no_builtin_flag_F77 \
14229 export_dynamic_flag_spec_F77 \
14230 thread_safe_flag_spec_F77 \
14231 whole_archive_flag_spec_F77 \
14232 enable_shared_with_static_runtimes_F77 \
14233 old_archive_cmds_F77 \
14234 old_archive_from_new_cmds_F77 \
14235 predep_objects_F77 \
14236 postdep_objects_F77 \
14239 compiler_lib_search_path_F77 \
14241 archive_expsym_cmds_F77 \
14242 postinstall_cmds_F77 \
14243 postuninstall_cmds_F77 \
14244 old_archive_from_expsyms_cmds_F77 \
14245 allow_undefined_flag_F77 \
14246 no_undefined_flag_F77 \
14247 export_symbols_cmds_F77 \
14248 hardcode_libdir_flag_spec_F77 \
14249 hardcode_libdir_flag_spec_ld_F77 \
14250 hardcode_libdir_separator_F77 \
14251 hardcode_automatic_F77 \
14253 module_expsym_cmds_F77 \
14254 lt_cv_prog_compiler_c_o_F77 \
14255 exclude_expsyms_F77 \
14256 include_expsyms_F77; do
14259 old_archive_cmds_F77 | \
14260 old_archive_from_new_cmds_F77 | \
14261 archive_cmds_F77 | \
14262 archive_expsym_cmds_F77 | \
14263 module_cmds_F77 | \
14264 module_expsym_cmds_F77 | \
14265 old_archive_from_expsyms_cmds_F77 | \
14266 export_symbols_cmds_F77 | \
14267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14268 postinstall_cmds | postuninstall_cmds | \
14269 old_postinstall_cmds | old_postuninstall_cmds | \
14270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14271 # Double-quote double-evaled strings.
14272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14281 *'\$0 --fallback-echo"')
14282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14288 cat <<__EOF__ >> "$cfgfile"
14289 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14293 # Shell to use when invoking shell scripts.
14296 # Whether or not to build shared libraries.
14297 build_libtool_libs=$enable_shared
14299 # Whether or not to build static libraries.
14300 build_old_libs=$enable_static
14302 # Whether or not to add -lc for building shared libraries.
14303 build_libtool_need_lc=$archive_cmds_need_lc_F77
14305 # Whether or not to disallow shared libs when runtime libs are static
14306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14308 # Whether or not to optimize for fast installation.
14309 fast_install=$enable_fast_install
14312 host_alias=$host_alias
14315 # An echo program that does not interpret backslashes.
14320 AR_FLAGS=$lt_AR_FLAGS
14325 # A language-specific compiler.
14326 CC=$lt_compiler_F77
14328 # Is the compiler the GNU C compiler?
14334 # The linker used to build libraries.
14337 # Whether we need hard or soft links.
14340 # A BSD-compatible nm program.
14343 # A symbol stripping program
14346 # Used to examine libraries when file_magic_cmd begins "file"
14347 MAGIC_CMD=$MAGIC_CMD
14349 # Used on cygwin: DLL creation program.
14352 # Used on cygwin: object dumper.
14355 # Used on cygwin: assembler.
14358 # The name of the directory that contains temporary libtool files.
14361 # How to create reloadable object files.
14362 reload_flag=$lt_reload_flag
14363 reload_cmds=$lt_reload_cmds
14365 # How to pass a linker flag through the compiler.
14366 wl=$lt_lt_prog_compiler_wl_F77
14368 # Object file suffix (normally "o").
14369 objext="$ac_objext"
14371 # Old archive suffix (normally "a").
14374 # Shared library suffix (normally ".so").
14377 # Executable file suffix (normally "").
14380 # Additional compiler flags for building library objects.
14381 pic_flag=$lt_lt_prog_compiler_pic_F77
14384 # What is the maximum length of a command?
14385 max_cmd_len=$lt_cv_sys_max_cmd_len
14387 # Does compiler simultaneously support -c and -o options?
14388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14390 # Must we lock files when doing compilation ?
14391 need_locks=$lt_need_locks
14393 # Do we need the lib prefix for modules?
14394 need_lib_prefix=$need_lib_prefix
14396 # Do we need a version for libraries?
14397 need_version=$need_version
14399 # Whether dlopen is supported.
14400 dlopen_support=$enable_dlopen
14402 # Whether dlopen of programs is supported.
14403 dlopen_self=$enable_dlopen_self
14405 # Whether dlopen of statically linked programs is supported.
14406 dlopen_self_static=$enable_dlopen_self_static
14408 # Compiler flag to prevent dynamic linking.
14409 link_static_flag=$lt_lt_prog_compiler_static_F77
14411 # Compiler flag to turn off builtin functions.
14412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14414 # Compiler flag to allow reflexive dlopens.
14415 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14417 # Compiler flag to generate shared objects directly from archives.
14418 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14420 # Compiler flag to generate thread-safe objects.
14421 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14423 # Library versioning type.
14424 version_type=$version_type
14426 # Format of library name prefix.
14427 libname_spec=$lt_libname_spec
14429 # List of archive names. First name is the real one, the rest are links.
14430 # The last name is the one that the linker finds with -lNAME.
14431 library_names_spec=$lt_library_names_spec
14433 # The coded name of the library, if different from the real name.
14434 soname_spec=$lt_soname_spec
14436 # Commands used to build and install an old-style archive.
14438 old_archive_cmds=$lt_old_archive_cmds_F77
14439 old_postinstall_cmds=$lt_old_postinstall_cmds
14440 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14442 # Create an old-style archive from a shared archive.
14443 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14445 # Create a temporary old-style archive to link instead of a shared archive.
14446 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14448 # Commands used to build and install a shared archive.
14449 archive_cmds=$lt_archive_cmds_F77
14450 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14451 postinstall_cmds=$lt_postinstall_cmds
14452 postuninstall_cmds=$lt_postuninstall_cmds
14454 # Commands used to build a loadable module (assumed same as above if empty)
14455 module_cmds=$lt_module_cmds_F77
14456 module_expsym_cmds=$lt_module_expsym_cmds_F77
14458 # Commands to strip libraries.
14459 old_striplib=$lt_old_striplib
14460 striplib=$lt_striplib
14462 # Dependencies to place before the objects being linked to create a
14464 predep_objects=$lt_predep_objects_F77
14466 # Dependencies to place after the objects being linked to create a
14468 postdep_objects=$lt_postdep_objects_F77
14470 # Dependencies to place before the objects being linked to create a
14472 predeps=$lt_predeps_F77
14474 # Dependencies to place after the objects being linked to create a
14476 postdeps=$lt_postdeps_F77
14478 # The library search path used internally by the compiler when linking
14479 # a shared library.
14480 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14482 # Method to check whether dependent libraries are shared objects.
14483 deplibs_check_method=$lt_deplibs_check_method
14485 # Command to use when deplibs_check_method == file_magic.
14486 file_magic_cmd=$lt_file_magic_cmd
14488 # Flag that allows shared libraries with undefined symbols to be built.
14489 allow_undefined_flag=$lt_allow_undefined_flag_F77
14491 # Flag that forces no undefined symbols.
14492 no_undefined_flag=$lt_no_undefined_flag_F77
14494 # Commands used to finish a libtool library installation in a directory.
14495 finish_cmds=$lt_finish_cmds
14497 # Same as above, but a single script fragment to be evaled but not shown.
14498 finish_eval=$lt_finish_eval
14500 # Take the output of nm and produce a listing of raw symbols and C names.
14501 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14503 # Transform the output of nm in a proper C declaration
14504 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14506 # Transform the output of nm in a C name address pair
14507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14509 # This is the shared library runtime path variable.
14510 runpath_var=$runpath_var
14512 # This is the shared library path variable.
14513 shlibpath_var=$shlibpath_var
14515 # Is shlibpath searched before the hard-coded library search path?
14516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14518 # How to hardcode a shared library path into an executable.
14519 hardcode_action=$hardcode_action_F77
14521 # Whether we should hardcode library paths into libraries.
14522 hardcode_into_libs=$hardcode_into_libs
14524 # Flag to hardcode \$libdir into a binary during linking.
14525 # This must work even if \$libdir does not exist.
14526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14528 # If ld is used when linking, flag to hardcode \$libdir into
14529 # a binary during linking. This must work even if \$libdir does
14531 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14533 # Whether we need a single -rpath flag with a separated argument.
14534 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14536 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14537 # resulting binary.
14538 hardcode_direct=$hardcode_direct_F77
14540 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14541 # resulting binary.
14542 hardcode_minus_L=$hardcode_minus_L_F77
14544 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14545 # the resulting binary.
14546 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14548 # Set to yes if building a shared library automatically hardcodes DIR into the library
14549 # and all subsequent libraries and executables linked against it.
14550 hardcode_automatic=$hardcode_automatic_F77
14552 # Variables whose values should be saved in libtool wrapper scripts and
14553 # restored at relink time.
14554 variables_saved_for_relink="$variables_saved_for_relink"
14556 # Whether libtool must link a program against all its dependency libraries.
14557 link_all_deplibs=$link_all_deplibs_F77
14559 # Compile-time system search path for libraries
14560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14562 # Run-time system search path for libraries
14563 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14565 # Fix the shell variable \$srcfile for the compiler.
14566 fix_srcfile_path="$fix_srcfile_path_F77"
14568 # Set to yes if exported symbols are required.
14569 always_export_symbols=$always_export_symbols_F77
14571 # The commands to list exported symbols.
14572 export_symbols_cmds=$lt_export_symbols_cmds_F77
14574 # The commands to extract the exported symbol list from a shared archive.
14575 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14577 # Symbols that should not be listed in the preloaded symbols.
14578 exclude_expsyms=$lt_exclude_expsyms_F77
14580 # Symbols that must always be exported.
14581 include_expsyms=$lt_include_expsyms_F77
14583 # ### END LIBTOOL TAG CONFIG: $tagname
14589 # If there is no Makefile yet, we rely on a make rule to execute
14590 # `config.status --recheck' to rerun these tests and create the
14591 # libtool script then.
14592 test -f Makefile && make "$ltmain"
14597 ac_cpp='$CPP $CPPFLAGS'
14598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14610 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14614 # Source file extension for Java test sources.
14617 # Object file extension for compiled Java test sources.
14621 # Code to be used in simple compile tests
14622 lt_simple_compile_test_code="class foo {}\n"
14624 # Code to be used in simple link tests
14625 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14627 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14629 # If no C compiler was specified, use CC.
14632 # Allow CC to be a program name with arguments.
14636 # Allow CC to be a program name with arguments.
14642 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14643 archive_cmds_need_lc_GCJ=no
14646 lt_prog_compiler_no_builtin_flag_GCJ=
14648 if test "$GCC" = yes; then
14649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 lt_cv_prog_compiler_rtti_exceptions=no
14657 ac_outfile=conftest.$ac_objext
14658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14659 lt_compiler_flag="-fno-rtti -fno-exceptions"
14660 # Insert the option either (1) after the last *FLAGS variable, or
14661 # (2) before a word containing "conftest.", or (3) at the end.
14662 # Note that $ac_compile itself does not contain backslashes and begins
14663 # with a dollar sign (not a hyphen), so the echo should work correctly.
14664 # The option is referenced via a variable to avoid confusing sed.
14665 lt_compile=`echo "$ac_compile" | $SED \
14666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14668 -e 's:$: $lt_compiler_flag:'`
14669 (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
14670 (eval "$lt_compile" 2>conftest.err)
14672 cat conftest.err >&5
14673 echo "$as_me:14673: \$? = $ac_status" >&5
14674 if (exit $ac_status) && test -s "$ac_outfile"; then
14675 # The compiler can only warn and ignore the option if not recognized
14676 # So say no if there are warnings
14677 if test ! -s conftest.err; then
14678 lt_cv_prog_compiler_rtti_exceptions=yes
14684 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14685 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14687 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14688 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14695 lt_prog_compiler_wl_GCJ=
14696 lt_prog_compiler_pic_GCJ=
14697 lt_prog_compiler_static_GCJ=
14699 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14700 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14702 if test "$GCC" = yes; then
14703 lt_prog_compiler_wl_GCJ='-Wl,'
14704 lt_prog_compiler_static_GCJ='-static'
14708 # All AIX code is PIC.
14709 if test "$host_cpu" = ia64; then
14710 # AIX 5 now supports IA64 processor
14711 lt_prog_compiler_static_GCJ='-Bstatic'
14716 # FIXME: we need at least 68020 code to build shared libraries, but
14717 # adding the `-m68020' flag to GCC prevents building anything better,
14719 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14723 # PIC is the default for these OSes.
14726 mingw* | pw32* | os2*)
14727 # This hack is so that the source file can tell whether it is being
14728 # built for inclusion in a dll (and should export symbols for example).
14729 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14732 darwin* | rhapsody*)
14733 # PIC is the default on this platform
14734 # Common symbols not allowed in MH_DYLIB files
14735 lt_prog_compiler_pic_GCJ='-fno-common'
14739 # Just because we use GCC doesn't mean we suddenly get shared libraries
14740 # on systems that don't support them.
14741 lt_prog_compiler_can_build_shared_GCJ=no
14746 if test -d /usr/nec; then
14747 lt_prog_compiler_pic_GCJ=-Kconform_pic
14752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14753 # not for PA HP-UX.
14754 case "$host_cpu" in
14759 lt_prog_compiler_pic_GCJ='-fPIC'
14765 lt_prog_compiler_pic_GCJ='-fPIC'
14769 # PORTME Check for flag to pass linker flags through the system compiler.
14772 lt_prog_compiler_wl_GCJ='-Wl,'
14773 if test "$host_cpu" = ia64; then
14774 # AIX 5 now supports IA64 processor
14775 lt_prog_compiler_static_GCJ='-Bstatic'
14777 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14781 mingw* | pw32* | os2*)
14782 # This hack is so that the source file can tell whether it is being
14783 # built for inclusion in a dll (and should export symbols for example).
14784 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14787 hpux9* | hpux10* | hpux11*)
14788 lt_prog_compiler_wl_GCJ='-Wl,'
14789 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14790 # not for PA HP-UX.
14791 case "$host_cpu" in
14796 lt_prog_compiler_pic_GCJ='+Z'
14799 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14800 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14803 irix5* | irix6* | nonstopux*)
14804 lt_prog_compiler_wl_GCJ='-Wl,'
14805 # PIC (with -KPIC) is the default.
14806 lt_prog_compiler_static_GCJ='-non_shared'
14810 lt_prog_compiler_pic_GCJ='-KPIC'
14811 lt_prog_compiler_static_GCJ='-Bstatic'
14817 lt_prog_compiler_wl_GCJ='-Wl,'
14818 lt_prog_compiler_pic_GCJ='-KPIC'
14819 lt_prog_compiler_static_GCJ='-static'
14822 lt_prog_compiler_wl_GCJ='-Wl,'
14823 # All Alpha code is PIC.
14824 lt_prog_compiler_static_GCJ='-non_shared'
14829 osf3* | osf4* | osf5*)
14830 lt_prog_compiler_wl_GCJ='-Wl,'
14831 # All OSF/1 code is PIC.
14832 lt_prog_compiler_static_GCJ='-non_shared'
14836 lt_prog_compiler_pic_GCJ='-Kpic'
14837 lt_prog_compiler_static_GCJ='-dn'
14841 lt_prog_compiler_wl_GCJ='-Wl,'
14842 lt_prog_compiler_pic_GCJ='-KPIC'
14843 lt_prog_compiler_static_GCJ='-Bstatic'
14847 lt_prog_compiler_wl_GCJ='-Qoption ld '
14848 lt_prog_compiler_pic_GCJ='-PIC'
14849 lt_prog_compiler_static_GCJ='-Bstatic'
14852 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14853 lt_prog_compiler_wl_GCJ='-Wl,'
14854 lt_prog_compiler_pic_GCJ='-KPIC'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14859 if test -d /usr/nec ;then
14860 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14866 lt_prog_compiler_pic_GCJ='-pic'
14867 lt_prog_compiler_static_GCJ='-Bstatic'
14871 lt_prog_compiler_can_build_shared_GCJ=no
14876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14877 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14880 # Check to make sure the PIC flag actually works.
14882 if test -n "$lt_prog_compiler_pic_GCJ"; then
14883 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14884 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14885 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 lt_prog_compiler_pic_works_GCJ=no
14889 ac_outfile=conftest.$ac_objext
14890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14891 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14892 # Insert the option either (1) after the last *FLAGS variable, or
14893 # (2) before a word containing "conftest.", or (3) at the end.
14894 # Note that $ac_compile itself does not contain backslashes and begins
14895 # with a dollar sign (not a hyphen), so the echo should work correctly.
14896 # The option is referenced via a variable to avoid confusing sed.
14897 lt_compile=`echo "$ac_compile" | $SED \
14898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
14901 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902 (eval "$lt_compile" 2>conftest.err)
14904 cat conftest.err >&5
14905 echo "$as_me:14905: \$? = $ac_status" >&5
14906 if (exit $ac_status) && test -s "$ac_outfile"; then
14907 # The compiler can only warn and ignore the option if not recognized
14908 # So say no if there are warnings
14909 if test ! -s conftest.err; then
14910 lt_prog_compiler_pic_works_GCJ=yes
14916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14917 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14919 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14920 case $lt_prog_compiler_pic_GCJ in
14922 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14925 lt_prog_compiler_pic_GCJ=
14926 lt_prog_compiler_can_build_shared_GCJ=no
14931 # For platforms which do not support PIC, -DPIC is meaningless:
14933 lt_prog_compiler_pic_GCJ=
14936 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14940 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14942 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 lt_cv_prog_compiler_c_o_GCJ=no
14946 $rm -r conftest 2>/dev/null
14950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14952 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14953 # that will create temporary files in the current directory regardless of
14954 # the output directory. Thus, making CWD read-only will cause this test
14955 # to fail, enabling locking or at least warning the user not to do parallel
14959 lt_compiler_flag="-o out/conftest2.$ac_objext"
14960 # Insert the option either (1) after the last *FLAGS variable, or
14961 # (2) before a word containing "conftest.", or (3) at the end.
14962 # Note that $ac_compile itself does not contain backslashes and begins
14963 # with a dollar sign (not a hyphen), so the echo should work correctly.
14964 lt_compile=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:14968: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>out/conftest.err)
14971 cat out/conftest.err >&5
14972 echo "$as_me:14972: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14975 # The compiler can only warn and ignore the option if not recognized
14976 # So say no if there are warnings
14977 if test ! -s out/conftest.err; then
14978 lt_cv_prog_compiler_c_o_GCJ=yes
14982 $rm conftest* out/*
14989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14993 hard_links="nottested"
14994 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14995 # do not overwrite the value of need_locks provided by the user
14996 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15002 ln conftest.a conftest.b 2>&5 || hard_links=no
15003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15004 echo "$as_me:$LINENO: result: $hard_links" >&5
15005 echo "${ECHO_T}$hard_links" >&6
15006 if test "$hard_links" = no; then
15007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15019 allow_undefined_flag_GCJ=
15020 enable_shared_with_static_runtimes_GCJ=no
15022 archive_expsym_cmds_GCJ=
15023 old_archive_From_new_cmds_GCJ=
15024 old_archive_from_expsyms_cmds_GCJ=
15025 export_dynamic_flag_spec_GCJ=
15026 whole_archive_flag_spec_GCJ=
15027 thread_safe_flag_spec_GCJ=
15028 hardcode_libdir_flag_spec_GCJ=
15029 hardcode_libdir_flag_spec_ld_GCJ=
15030 hardcode_libdir_separator_GCJ=
15031 hardcode_direct_GCJ=no
15032 hardcode_minus_L_GCJ=no
15033 hardcode_shlibpath_var_GCJ=unsupported
15034 link_all_deplibs_GCJ=unknown
15035 hardcode_automatic_GCJ=no
15037 module_expsym_cmds_GCJ=
15038 always_export_symbols_GCJ=no
15039 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15040 # include_expsyms should be a list of space-separated symbols to be *always*
15041 # included in the symbol list
15042 include_expsyms_GCJ=
15043 # exclude_expsyms can be an extended regexp of symbols to exclude
15044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15046 # as well as any symbol that contains `d'.
15047 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15049 # platforms (ab)use it in PIC code, but their linkers get confused if
15050 # the symbol is explicitly referenced. Since portable code cannot
15051 # rely on this symbol name, it's probably fine to never include it in
15052 # preloaded symbol tables.
15053 extract_expsyms_cmds=
15056 cygwin* | mingw* | pw32*)
15057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15058 # When not using gcc, we currently assume that we are using
15059 # Microsoft Visual C++.
15060 if test "$GCC" != yes; then
15070 if test "$with_gnu_ld" = yes; then
15071 # If archive_cmds runs LD, not CC, wlarc should be empty
15074 # See if GNU ld supports shared libraries.
15076 aix3* | aix4* | aix5*)
15077 # On AIX/PPC, the GNU linker is very broken
15078 if test "$host_cpu" != ia64; then
15082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15083 *** to be unable to reliably create shared libraries on AIX.
15084 *** Therefore, libtool is disabling shared libraries support. If you
15085 *** really care for shared libraries, you may want to modify your PATH
15086 *** so that a non-GNU linker is found, and then restart.
15093 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)'
15094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15095 hardcode_minus_L_GCJ=yes
15097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15098 # that the semantics of dynamic libraries on AmigaOS, at least up
15099 # to version 4, is to share data among multiple programs linked
15100 # with the same dynamic library. Since this doesn't match the
15101 # behavior of shared libraries on other platforms, we can't use
15107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15108 allow_undefined_flag_GCJ=unsupported
15109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15110 # support --undefined. This deserves some investigation. FIXME
15111 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15117 cygwin* | mingw* | pw32*)
15118 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15119 # as there is no search path for DLLs.
15120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15121 allow_undefined_flag_GCJ=unsupported
15122 always_export_symbols_GCJ=no
15123 enable_shared_with_static_runtimes_GCJ=yes
15124 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15126 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15128 # If the export-symbols file already is a .def file (1st line
15129 # is EXPORTS), use it as is; otherwise, prepend...
15130 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15131 cp $export_symbols $output_objdir/$soname.def;
15133 echo EXPORTS > $output_objdir/$soname.def;
15134 cat $export_symbols >> $output_objdir/$soname.def;
15136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15144 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15158 *** create shared libraries on Solaris systems. Therefore, libtool
15159 *** is disabling shared libraries support. We urge you to upgrade GNU
15160 *** binutils to release 2.9.1 or newer. Another option is to modify
15161 *** your PATH or compiler configuration so that the native linker is
15162 *** used, and then restart.
15165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15166 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15167 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15174 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15176 hardcode_direct_GCJ=yes
15177 hardcode_shlibpath_var_GCJ=no
15181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15182 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15190 if test "$ld_shlibs_GCJ" = yes; then
15191 runpath_var=LD_RUN_PATH
15192 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15193 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15194 # ancient GNU ld didn't support --whole-archive et. al.
15195 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15196 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15198 whole_archive_flag_spec_GCJ=
15202 # PORTME fill in a description of your system's linker (not GNU ld)
15205 allow_undefined_flag_GCJ=unsupported
15206 always_export_symbols_GCJ=yes
15207 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'
15208 # Note: this linker hardcodes the directories in LIBPATH if there
15209 # are no directories specified by -L.
15210 hardcode_minus_L_GCJ=yes
15211 if test "$GCC" = yes && test -z "$link_static_flag"; then
15212 # Neither direct hardcoding nor static linking is supported with a
15214 hardcode_direct_GCJ=unsupported
15219 if test "$host_cpu" = ia64; then
15220 # On IA64, the linker does run time linking by default, so we don't
15221 # have to do anything special.
15222 aix_use_runtimelinking=no
15223 exp_sym_flag='-Bexport'
15226 # If we're using GNU nm, then we don't want the "-C" option.
15227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15229 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'
15231 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'
15233 aix_use_runtimelinking=no
15235 # Test if we are trying to use run time linking or normal
15236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15237 # need to do runtime linking.
15238 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15239 for ld_flag in $LDFLAGS; do
15240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15241 aix_use_runtimelinking=yes
15247 exp_sym_flag='-bexport'
15248 no_entry_flag='-bnoentry'
15251 # When large executables or shared objects are built, AIX ld can
15252 # have problems creating the table of contents. If linking a library
15253 # or program results in "error TOC overflow" add -mminimal-toc to
15254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15257 archive_cmds_GCJ=''
15258 hardcode_direct_GCJ=yes
15259 hardcode_libdir_separator_GCJ=':'
15260 link_all_deplibs_GCJ=yes
15262 if test "$GCC" = yes; then
15263 case $host_os in aix4.012|aix4.012.*)
15264 # We only want to do this on AIX 4.2 and lower, the check
15265 # below for broken collect2 doesn't work under 4.3+
15266 collect2name=`${CC} -print-prog-name=collect2`
15267 if test -f "$collect2name" && \
15268 strings "$collect2name" | grep resolve_lib_name >/dev/null
15270 # We have reworked collect2
15271 hardcode_direct_GCJ=yes
15273 # We have old collect2
15274 hardcode_direct_GCJ=unsupported
15275 # It fails to find uninstalled libraries when the uninstalled
15276 # path is not listed in the libpath. Setting hardcode_minus_L
15277 # to unsupported forces relinking
15278 hardcode_minus_L_GCJ=yes
15279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15280 hardcode_libdir_separator_GCJ=
15283 shared_flag='-shared'
15286 if test "$host_cpu" = ia64; then
15287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15288 # chokes on -Wl,-G. The following line is correct:
15291 if test "$aix_use_runtimelinking" = yes; then
15292 shared_flag='${wl}-G'
15294 shared_flag='${wl}-bM:SRE'
15299 # It seems that -bexpall does not export symbols beginning with
15300 # underscore (_), so it is better to generate a list of symbols to export.
15301 always_export_symbols_GCJ=yes
15302 if test "$aix_use_runtimelinking" = yes; then
15303 # Warning - without using the other runtime loading flags (-brtl),
15304 # -berok will link without error, but may produce a broken library.
15305 allow_undefined_flag_GCJ='-berok'
15306 # Determine the default libpath from the value encoded in an empty executable.
15307 cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15325 (eval $ac_link) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -s conftest$ac_exeext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15338 # Check for a 64-bit object if we didn't find anything.
15339 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; }
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15349 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15350 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"
15352 if test "$host_cpu" = ia64; then
15353 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15354 allow_undefined_flag_GCJ="-z nodefs"
15355 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"
15357 # Determine the default libpath from the value encoded in an empty executable.
15358 cat >conftest.$ac_ext <<_ACEOF
15359 #line $LINENO "configure"
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15389 # Check for a 64-bit object if we didn't find anything.
15390 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; }
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15401 # Warning - without using the other run time loading flags,
15402 # -berok will link without error, but may produce a broken library.
15403 no_undefined_flag_GCJ=' ${wl}-bernotok'
15404 allow_undefined_flag_GCJ=' ${wl}-berok'
15405 # -bexpall does not export symbols beginning with underscore (_)
15406 always_export_symbols_GCJ=yes
15407 # Exported symbols can be pulled into shared objects from archives
15408 whole_archive_flag_spec_GCJ=' '
15409 archive_cmds_need_lc_GCJ=yes
15410 # This is similar to how AIX traditionally builds it's shared libraries.
15411 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'
15417 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)'
15418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15419 hardcode_minus_L_GCJ=yes
15420 # see comment about different semantics on the GNU ld section
15425 export_dynamic_flag_spec_GCJ=-rdynamic
15428 cygwin* | mingw* | pw32*)
15429 # When not using gcc, we currently assume that we are using
15430 # Microsoft Visual C++.
15431 # hardcode_libdir_flag_spec is actually meaningless, as there is
15432 # no search path for DLLs.
15433 hardcode_libdir_flag_spec_GCJ=' '
15434 allow_undefined_flag_GCJ=unsupported
15435 # Tell ltmain to make .lib files, not .a files.
15437 # Tell ltmain to make .dll files, not .so files.
15439 # FIXME: Setting linknames here is a bad hack.
15440 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15441 # The linker will automatically build a .lib file if we build a DLL.
15442 old_archive_From_new_cmds_GCJ='true'
15443 # FIXME: Should let the user specify the lib program.
15444 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15445 fix_srcfile_path='`cygpath -w "$srcfile"`'
15446 enable_shared_with_static_runtimes_GCJ=yes
15449 darwin* | rhapsody*)
15450 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15451 archive_cmds_need_lc_GCJ=no
15453 rhapsody* | darwin1.[012])
15454 allow_undefined_flag_GCJ='-undefined suppress'
15457 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15460 # FIXME: Relying on posixy $() will cause problems for
15461 # cross-compilation, but unfortunately the echo tests do not
15462 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15463 # `"' quotes if we put them in here... so don't!
15464 lt_int_apple_cc_single_mod=no
15465 output_verbose_link_cmd='echo'
15466 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15467 lt_int_apple_cc_single_mod=yes
15469 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15470 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15472 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'
15474 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15475 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15476 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15477 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}'
15479 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}'
15481 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}'
15482 hardcode_direct_GCJ=no
15483 hardcode_automatic_GCJ=yes
15484 hardcode_shlibpath_var_GCJ=unsupported
15485 whole_archive_flag_spec_GCJ='-all_load $convenience'
15486 link_all_deplibs_GCJ=yes
15491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15493 hardcode_shlibpath_var_GCJ=no
15500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15501 # support. Future versions do this automatically, but an explicit c++rt0.o
15502 # does not break anything, and helps significantly (at the cost of a little
15505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15507 hardcode_direct_GCJ=yes
15508 hardcode_shlibpath_var_GCJ=no
15511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_direct_GCJ=yes
15515 hardcode_minus_L_GCJ=yes
15516 hardcode_shlibpath_var_GCJ=no
15519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15521 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15522 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15523 hardcode_direct_GCJ=yes
15524 hardcode_shlibpath_var_GCJ=no
15528 if test "$GCC" = yes; then
15529 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'
15531 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'
15533 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15534 hardcode_libdir_separator_GCJ=:
15535 hardcode_direct_GCJ=yes
15537 # hardcode_minus_L: Not really in the search PATH,
15538 # but as the default location of the library.
15539 hardcode_minus_L_GCJ=yes
15540 export_dynamic_flag_spec_GCJ='${wl}-E'
15544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15545 case "$host_cpu" in
15547 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15554 case "$host_cpu" in
15556 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15559 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15563 if test "$with_gnu_ld" = no; then
15564 case "$host_cpu" in
15566 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15567 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15568 hardcode_libdir_separator_GCJ=:
15569 hardcode_direct_GCJ=no
15570 hardcode_shlibpath_var_GCJ=no
15573 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15574 hardcode_direct_GCJ=no
15575 hardcode_shlibpath_var_GCJ=no
15577 # hardcode_minus_L: Not really in the search PATH,
15578 # but as the default location of the library.
15579 hardcode_minus_L_GCJ=yes
15582 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15583 hardcode_libdir_separator_GCJ=:
15584 hardcode_direct_GCJ=yes
15585 export_dynamic_flag_spec_GCJ='${wl}-E'
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L_GCJ=yes
15595 irix5* | irix6* | nonstopux*)
15596 if test "$GCC" = yes; then
15597 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'
15599 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'
15600 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15603 hardcode_libdir_separator_GCJ=:
15604 link_all_deplibs_GCJ=yes
15608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15611 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15614 hardcode_direct_GCJ=yes
15615 hardcode_shlibpath_var_GCJ=no
15619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_direct_GCJ=yes
15621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15622 hardcode_libdir_separator_GCJ=:
15623 hardcode_shlibpath_var_GCJ=no
15627 hardcode_direct_GCJ=yes
15628 hardcode_shlibpath_var_GCJ=no
15629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15630 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15632 export_dynamic_flag_spec_GCJ='${wl}-E'
15635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15636 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15637 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15640 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15649 hardcode_minus_L_GCJ=yes
15650 allow_undefined_flag_GCJ=unsupported
15651 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'
15652 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15656 if test "$GCC" = yes; then
15657 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15658 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'
15660 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15661 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'
15663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15664 hardcode_libdir_separator_GCJ=:
15667 osf4* | osf5*) # as osf3* with the addition of -msym flag
15668 if test "$GCC" = yes; then
15669 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15670 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'
15671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15673 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15674 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'
15675 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~
15676 $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'
15678 # Both c and cxx compiler support -rpath directly
15679 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15681 hardcode_libdir_separator_GCJ=:
15685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686 hardcode_shlibpath_var_GCJ=no
15687 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15688 runpath_var=LD_RUN_PATH
15689 hardcode_runpath_var=yes
15693 no_undefined_flag_GCJ=' -z text'
15694 if test "$GCC" = yes; then
15695 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15697 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15699 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15703 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15704 hardcode_shlibpath_var_GCJ=no
15706 solaris2.[0-5] | solaris2.[0-5].*) ;;
15707 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15708 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15710 link_all_deplibs_GCJ=yes
15714 if test "x$host_vendor" = xsequent; then
15715 # Use $CC to link under sequent, because it throws in some extra .o
15716 # files that make .init and .fini sections work.
15717 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15721 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15722 hardcode_direct_GCJ=yes
15723 hardcode_minus_L_GCJ=yes
15724 hardcode_shlibpath_var_GCJ=no
15728 case $host_vendor in
15730 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_direct_GCJ=yes # is this really true???
15734 ## LD is ld it makes a PLAMLIB
15735 ## CC just makes a GrossModule.
15736 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15737 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15738 hardcode_direct_GCJ=no
15741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15745 runpath_var='LD_RUN_PATH'
15746 hardcode_shlibpath_var_GCJ=no
15750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751 hardcode_shlibpath_var_GCJ=no
15752 export_dynamic_flag_spec_GCJ='-Bexport'
15756 if test -d /usr/nec; then
15757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_shlibpath_var_GCJ=no
15759 runpath_var=LD_RUN_PATH
15760 hardcode_runpath_var=yes
15766 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15767 hardcode_direct_GCJ=yes
15768 hardcode_minus_L_GCJ=no
15769 hardcode_shlibpath_var_GCJ=no
15770 hardcode_runpath_var=yes
15771 runpath_var=LD_RUN_PATH
15774 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15775 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15776 if test "$GCC" = yes; then
15777 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 runpath_var='LD_RUN_PATH'
15782 hardcode_shlibpath_var_GCJ=no
15786 no_undefined_flag_GCJ=' -z text'
15787 # $CC -shared without GNU ld will not create a library from C++
15788 # object files and a static libstdc++, better avoid it by now
15789 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15792 hardcode_libdir_flag_spec_GCJ=
15793 hardcode_shlibpath_var_GCJ=no
15794 runpath_var='LD_RUN_PATH'
15798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800 hardcode_shlibpath_var_GCJ=no
15809 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15810 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15811 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15813 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15814 if test "$GCC" = yes; then
15815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15819 # Do we need to explicitly link libc?
15821 case "x$archive_cmds_need_lc_GCJ" in
15823 # Assume -lc should be added
15824 archive_cmds_need_lc_GCJ=yes
15826 if test "$enable_shared" = yes && test "$GCC" = yes; then
15827 case $archive_cmds_GCJ in
15829 # FIXME: we may have to deal with multi-command sequences.
15832 # Test whether the compiler implicitly links with -lc since on some
15833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15834 # to ld, don't add -lc before -lgcc.
15835 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } 2>conftest.err; then
15847 libobjs=conftest.$ac_objext
15849 wl=$lt_prog_compiler_wl_GCJ
15855 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15856 allow_undefined_flag_GCJ=
15857 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15858 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }
15863 archive_cmds_need_lc_GCJ=no
15865 archive_cmds_need_lc_GCJ=yes
15867 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15869 cat conftest.err 1>&5
15872 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15873 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15882 hardcode_action_GCJ=
15883 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15884 test -n "$runpath_var GCJ" || \
15885 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15887 # We can hardcode non-existant directories.
15888 if test "$hardcode_direct_GCJ" != no &&
15889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15890 # have to relink, otherwise we might link with an installed library
15891 # when we should be linking with a yet-to-be-installed one
15892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15893 test "$hardcode_minus_L_GCJ" != no; then
15894 # Linking always hardcodes the temporary library directory.
15895 hardcode_action_GCJ=relink
15897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15898 hardcode_action_GCJ=immediate
15901 # We cannot hardcode anything, or else we can only hardcode existing
15903 hardcode_action_GCJ=unsupported
15905 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15906 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15908 if test "$hardcode_action_GCJ" = relink; then
15909 # Fast installation is not supported
15910 enable_fast_install=no
15911 elif test "$shlibpath_overrides_runpath" = yes ||
15912 test "$enable_shared" = no; then
15913 # Fast installation is not necessary
15914 enable_fast_install=needless
15919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15924 echo "$as_me:$LINENO: result: yes" >&5
15925 echo "${ECHO_T}yes" >&6
15927 # FIXME - insert some real tests, host_os isn't really good enough
15930 if test -n "$STRIP" ; then
15931 striplib="$STRIP -x"
15932 echo "$as_me:$LINENO: result: yes" >&5
15933 echo "${ECHO_T}yes" >&6
15935 echo "$as_me:$LINENO: result: no" >&5
15936 echo "${ECHO_T}no" >&6
15940 echo "$as_me:$LINENO: result: no" >&5
15941 echo "${ECHO_T}no" >&6
15946 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15948 library_names_spec=
15949 libname_spec='lib$name'
15953 postuninstall_cmds=
15957 shlibpath_overrides_runpath=unknown
15959 dynamic_linker="$host_os ld.so"
15960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15961 if test "$GCC" = yes; then
15962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15964 # if the path contains ";" then we assume it to be the separator
15965 # otherwise default to the standard path separator (i.e. ":") - it is
15966 # assumed that no part of a normal pathname contains ";" but that should
15967 # okay in the real world where ";" in dirpaths is itself problematic.
15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15975 need_lib_prefix=unknown
15976 hardcode_into_libs=no
15978 # when you set need_version to no, make sure it does not cause -set_version
15979 # flags to be left without arguments
15980 need_version=unknown
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15986 shlibpath_var=LIBPATH
15988 # AIX 3 has no versioning support, so we append a major version to the name.
15989 soname_spec='${libname}${release}${shared_ext}$major'
15996 hardcode_into_libs=yes
15997 if test "$host_cpu" = ia64; then
15998 # AIX 5 supports IA64
15999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16000 shlibpath_var=LD_LIBRARY_PATH
16002 # With GCC up to 2.95.x, collect2 would create an import file
16003 # for dependence libraries. The import file would start with
16004 # the line `#! .'. This would cause the generated library to
16005 # depend on `.', always an invalid library. This was fixed in
16006 # development snapshots of GCC prior to 3.0.
16008 aix4 | aix4.[01] | aix4.[01].*)
16009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16014 can_build_shared=no
16018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16019 # soname into executable. Probably we can add versioning support to
16020 # collect2, so additional links can be useful in future.
16021 if test "$aix_use_runtimelinking" = yes; then
16022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16023 # instead of lib<name>.a to let people know that these are not
16024 # typical AIX shared libraries.
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 # We preserve .a as extension for shared libraries through AIX4.2
16028 # and later when we are not doing run time linking.
16029 library_names_spec='${libname}${release}.a $libname.a'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16032 shlibpath_var=LIBPATH
16037 library_names_spec='$libname.ixlibrary $libname.a'
16038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16039 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'
16043 library_names_spec='${libname}${shared_ext}'
16044 dynamic_linker="$host_os ld.so"
16045 shlibpath_var=LIBRARY_PATH
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 soname_spec='${libname}${release}${shared_ext}$major'
16053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16057 # the default ld.so.conf also contains /usr/contrib/lib and
16058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16059 # libtool to hard-code these into programs
16062 cygwin* | mingw* | pw32*)
16063 version_type=windows
16068 case $GCC,$host_os in
16069 yes,cygwin* | yes,mingw* | yes,pw32*)
16070 library_names_spec='$libname.dll.a'
16071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16072 postinstall_cmds='base_file=`basename \${file}`~
16073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16074 dldir=$destdir/`dirname \$dlpath`~
16075 test -d \$dldir || mkdir -p \$dldir~
16076 $install_prog $dir/$dlname \$dldir/$dlname'
16077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16078 dlpath=$dir/\$dldll~
16080 shlibpath_overrides_runpath=yes
16084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16086 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16089 # MinGW DLLs use traditional 'lib' prefix
16090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16093 # It is most probably a Windows format PATH printed by
16094 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16095 # path with ; separators, and with drive letters. We can handle the
16096 # drive letters (cygwin fileutils understands them), so leave them,
16097 # especially as we might pass files found there to a mingw objdump,
16098 # which wouldn't understand a cygwinified path. Ahh.
16099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16105 # pw32 DLLs use 'pw' prefix rather than 'lib'
16106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16115 dynamic_linker='Win32 ld.exe'
16116 # FIXME: first we should search . and the directory the executable is in
16120 darwin* | rhapsody*)
16121 dynamic_linker="$host_os dyld"
16122 version_type=darwin
16125 # FIXME: Relying on posixy $() will cause problems for
16126 # cross-compilation, but unfortunately the echo tests do not
16127 # yet detect zsh echo's removal of \ escapes.
16128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16129 soname_spec='${libname}${release}${major}$shared_ext'
16130 shlibpath_overrides_runpath=yes
16131 shlibpath_var=DYLD_LIBRARY_PATH
16132 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16134 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16135 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"`
16137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 shlibpath_var=LD_LIBRARY_PATH
16154 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16155 version_type=freebsd-$objformat
16156 case $version_type in
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16167 shlibpath_var=LD_LIBRARY_PATH
16170 shlibpath_overrides_runpath=yes
16172 freebsd3.01* | freebsdelf3.01*)
16173 shlibpath_overrides_runpath=yes
16174 hardcode_into_libs=yes
16177 shlibpath_overrides_runpath=no
16178 hardcode_into_libs=yes
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 shlibpath_var=LD_LIBRARY_PATH
16190 hardcode_into_libs=yes
16193 hpux9* | hpux10* | hpux11*)
16194 # Give a soname corresponding to the major version so that dld.sl refuses to
16195 # link against other versions.
16199 case "$host_cpu" in
16202 hardcode_into_libs=yes
16203 dynamic_linker="$host_os dld.so"
16204 shlibpath_var=LD_LIBRARY_PATH
16205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207 soname_spec='${libname}${release}${shared_ext}$major'
16208 if test "X$HPUX_IA64_MODE" = X32; then
16209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16211 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16217 hardcode_into_libs=yes
16218 dynamic_linker="$host_os dld.sl"
16219 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222 soname_spec='${libname}${release}${shared_ext}$major'
16223 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16228 dynamic_linker="$host_os dld.sl"
16229 shlibpath_var=SHLIB_PATH
16230 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16235 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16236 postinstall_cmds='chmod 555 $lib'
16239 irix5* | irix6* | nonstopux*)
16241 nonstopux*) version_type=nonstopux ;;
16243 if test "$lt_cv_prog_gnu_ld" = yes; then
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16254 irix5* | nonstopux*)
16255 libsuff= shlibsuff=
16258 case $LD in # libtool.m4 will add one of these switches to LD
16259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16260 libsuff= shlibsuff= libmagic=32-bit;;
16261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16262 libsuff=32 shlibsuff=N32 libmagic=N32;;
16263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16264 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16265 *) libsuff= shlibsuff= libmagic=never-match;;
16269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16270 shlibpath_overrides_runpath=no
16271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16273 hardcode_into_libs=yes
16276 # No shared lib support for Linux oldld, aout, or coff.
16277 linux*oldld* | linux*aout* | linux*coff*)
16281 # This must be Linux ELF.
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=no
16291 # This implies no fast_install, which is unacceptable.
16292 # Some rework will be needed to allow for fast_install
16293 # before this can be enabled.
16294 hardcode_into_libs=yes
16296 # We used to test for /lib/ld.so.1 and disable shared libraries on
16297 # powerpc, because MkLinux only supported shared libraries with the
16298 # GNU dynamic linker. Since this was broken with cross compilers,
16299 # most powerpc-linux boxes support dynamic linking these days and
16300 # people can always --disable-shared, the test was removed, and we
16301 # assume the GNU/Linux dynamic linker is in use.
16302 dynamic_linker='GNU/Linux ld.so'
16309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16312 dynamic_linker='NetBSD (a.out) ld.so'
16314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16315 soname_spec='${libname}${release}${shared_ext}$major'
16316 dynamic_linker='NetBSD ld.elf_so'
16318 shlibpath_var=LD_LIBRARY_PATH
16319 shlibpath_overrides_runpath=yes
16320 hardcode_into_libs=yes
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 shlibpath_overrides_runpath=yes
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16349 openbsd2.[89] | openbsd2.[89].*)
16350 shlibpath_overrides_runpath=no
16353 shlibpath_overrides_runpath=yes
16357 shlibpath_overrides_runpath=yes
16362 libname_spec='$name'
16365 library_names_spec='$libname${shared_ext} $libname.a'
16366 dynamic_linker='OS/2 ld.exe'
16367 shlibpath_var=LIBPATH
16370 osf3* | osf4* | osf5*)
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385 shlibpath_var=LD_LIBRARY_PATH
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16395 shlibpath_overrides_runpath=yes
16396 hardcode_into_libs=yes
16397 # ldd complains unless libraries are executable
16398 postinstall_cmds='chmod +x $lib'
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16405 shlibpath_var=LD_LIBRARY_PATH
16406 shlibpath_overrides_runpath=yes
16407 if test "$with_gnu_ld" = yes; then
16413 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 case $host_vendor in
16420 shlibpath_overrides_runpath=no
16422 export_dynamic_flag_spec='${wl}-Blargedynsym'
16423 runpath_var=LD_RUN_PATH
16431 shlibpath_overrides_runpath=no
16432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16438 if test -d /usr/nec ;then
16440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16441 soname_spec='$libname${shared_ext}.$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
16457 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16458 echo "${ECHO_T}$dynamic_linker" >&6
16459 test "$dynamic_linker" = no && can_build_shared=no
16461 if test "x$enable_dlopen" != xyes; then
16462 enable_dlopen=unknown
16463 enable_dlopen_self=unknown
16464 enable_dlopen_self_static=unknown
16471 lt_cv_dlopen="load_add_on"
16473 lt_cv_dlopen_self=yes
16477 lt_cv_dlopen="LoadLibrary"
16482 lt_cv_dlopen="dlopen"
16487 # if libdl is installed we need to link against it
16488 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16489 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 ac_check_lib_save_LIBS=$LIBS
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16503 /* Override any gcc2 internal prototype to avoid an error. */
16507 /* We use char because int might match the return type of a gcc2
16508 builtin and then its argument prototype would still apply. */
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520 (eval $ac_link) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_lib_dl_dlopen=yes
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_lib_dl_dlopen=no
16537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16542 if test $ac_cv_lib_dl_dlopen = yes; then
16543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16546 lt_cv_dlopen="dyld"
16548 lt_cv_dlopen_self=yes
16555 echo "$as_me:$LINENO: checking for shl_load" >&5
16556 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16557 if test "${ac_cv_func_shl_load+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 cat >conftest.$ac_ext <<_ACEOF
16561 #line $LINENO "configure"
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 /* System header to define __stub macros and hopefully few prototypes,
16568 which can conflict with char shl_load (); below.
16569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16570 <limits.h> exists even on freestanding compilers. */
16572 # include <limits.h>
16574 # include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16584 /* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
16587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16590 char (*f) () = shl_load;
16599 return f != shl_load;
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -s conftest$ac_exeext'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_func_shl_load=yes
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ac_cv_func_shl_load=no
16623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16625 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16626 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16627 if test $ac_cv_func_shl_load = yes; then
16628 lt_cv_dlopen="shl_load"
16630 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16631 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16632 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 ac_check_lib_save_LIBS=$LIBS
16637 cat >conftest.$ac_ext <<_ACEOF
16638 #line $LINENO "configure"
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16645 /* Override any gcc2 internal prototype to avoid an error. */
16649 /* We use char because int might match the return type of a gcc2
16650 builtin and then its argument prototype would still apply. */
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_lib_dld_shl_load=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_lib_dld_shl_load=no
16679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16683 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16684 if test $ac_cv_lib_dld_shl_load = yes; then
16685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16687 echo "$as_me:$LINENO: checking for dlopen" >&5
16688 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16689 if test "${ac_cv_func_dlopen+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 cat >conftest.$ac_ext <<_ACEOF
16693 #line $LINENO "configure"
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 /* System header to define __stub macros and hopefully few prototypes,
16700 which can conflict with char dlopen (); below.
16701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16702 <limits.h> exists even on freestanding compilers. */
16704 # include <limits.h>
16706 # include <assert.h>
16708 /* Override any gcc2 internal prototype to avoid an error. */
16713 /* We use char because int might match the return type of a gcc2
16714 builtin and then its argument prototype would still apply. */
16716 /* The GNU C library defines this for functions which it implements
16717 to always fail with ENOSYS. Some functions are actually named
16718 something starting with __ and the normal name is an alias. */
16719 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16722 char (*f) () = dlopen;
16731 return f != dlopen;
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_func_dlopen=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_cv_func_dlopen=no
16755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16757 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16758 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16759 if test $ac_cv_func_dlopen = yes; then
16760 lt_cv_dlopen="dlopen"
16762 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16763 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16764 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 ac_check_lib_save_LIBS=$LIBS
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 /* Override any gcc2 internal prototype to avoid an error. */
16781 /* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_lib_dl_dlopen=yes
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_lib_dl_dlopen=no
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16816 if test $ac_cv_lib_dl_dlopen = yes; then
16817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16820 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 ac_check_lib_save_LIBS=$LIBS
16825 LIBS="-lsvld $LIBS"
16826 cat >conftest.$ac_ext <<_ACEOF
16827 #line $LINENO "configure"
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16834 /* Override any gcc2 internal prototype to avoid an error. */
16838 /* We use char because int might match the return type of a gcc2
16839 builtin and then its argument prototype would still apply. */
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851 (eval $ac_link) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -s conftest$ac_exeext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_lib_svld_dlopen=yes
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_lib_svld_dlopen=no
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16872 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16873 if test $ac_cv_lib_svld_dlopen = yes; then
16874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16876 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16877 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16878 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 ac_check_lib_save_LIBS=$LIBS
16883 cat >conftest.$ac_ext <<_ACEOF
16884 #line $LINENO "configure"
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16891 /* Override any gcc2 internal prototype to avoid an error. */
16895 /* We use char because int might match the return type of a gcc2
16896 builtin and then its argument prototype would still apply. */
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -s conftest$ac_exeext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_cv_lib_dld_dld_link=yes
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_cv_lib_dld_dld_link=no
16925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16926 LIBS=$ac_check_lib_save_LIBS
16928 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16929 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16930 if test $ac_cv_lib_dld_dld_link = yes; then
16931 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16952 if test "x$lt_cv_dlopen" != xno; then
16958 case $lt_cv_dlopen in
16960 save_CPPFLAGS="$CPPFLAGS"
16961 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16963 save_LDFLAGS="$LDFLAGS"
16964 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16967 LIBS="$lt_cv_dlopen_libs $LIBS"
16969 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16970 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16971 if test "${lt_cv_dlopen_self+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 if test "$cross_compiling" = yes; then :
16975 lt_cv_dlopen_self=cross
16977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16978 lt_status=$lt_dlunknown
16979 cat > conftest.$ac_ext <<EOF
16980 #line 16980 "configure"
16981 #include "confdefs.h"
16990 # define LT_DLGLOBAL RTLD_GLOBAL
16993 # define LT_DLGLOBAL DL_GLOBAL
16995 # define LT_DLGLOBAL 0
16999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17000 find out it does not work in some platform. */
17001 #ifndef LT_DLLAZY_OR_NOW
17003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17006 # define LT_DLLAZY_OR_NOW DL_LAZY
17009 # define LT_DLLAZY_OR_NOW RTLD_NOW
17012 # define LT_DLLAZY_OR_NOW DL_NOW
17014 # define LT_DLLAZY_OR_NOW 0
17022 extern "C" void exit (int);
17025 void fnord() { int i=42;}
17028 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17029 int status = $lt_dlunknown;
17033 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17034 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17035 /* dlclose (self); */
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17046 (./conftest; exit; ) 2>/dev/null
17048 case x$lt_status in
17049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17051 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17054 # compilation failed
17055 lt_cv_dlopen_self=no
17062 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17063 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17065 if test "x$lt_cv_dlopen_self" = xyes; then
17066 LDFLAGS="$LDFLAGS $link_static_flag"
17067 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17068 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17069 if test "${lt_cv_dlopen_self_static+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 if test "$cross_compiling" = yes; then :
17073 lt_cv_dlopen_self_static=cross
17075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17076 lt_status=$lt_dlunknown
17077 cat > conftest.$ac_ext <<EOF
17078 #line 17078 "configure"
17079 #include "confdefs.h"
17088 # define LT_DLGLOBAL RTLD_GLOBAL
17091 # define LT_DLGLOBAL DL_GLOBAL
17093 # define LT_DLGLOBAL 0
17097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17098 find out it does not work in some platform. */
17099 #ifndef LT_DLLAZY_OR_NOW
17101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17104 # define LT_DLLAZY_OR_NOW DL_LAZY
17107 # define LT_DLLAZY_OR_NOW RTLD_NOW
17110 # define LT_DLLAZY_OR_NOW DL_NOW
17112 # define LT_DLLAZY_OR_NOW 0
17120 extern "C" void exit (int);
17123 void fnord() { int i=42;}
17126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17127 int status = $lt_dlunknown;
17131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17132 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17133 /* dlclose (self); */
17139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140 (eval $ac_link) 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17144 (./conftest; exit; ) 2>/dev/null
17146 case x$lt_status in
17147 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17148 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17149 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17152 # compilation failed
17153 lt_cv_dlopen_self_static=no
17160 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17161 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17164 CPPFLAGS="$save_CPPFLAGS"
17165 LDFLAGS="$save_LDFLAGS"
17170 case $lt_cv_dlopen_self in
17171 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17172 *) enable_dlopen_self=unknown ;;
17175 case $lt_cv_dlopen_self_static in
17176 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17177 *) enable_dlopen_self_static=unknown ;;
17182 # The else clause should only fire when bootstrapping the
17183 # libtool distribution, otherwise you forgot to ship ltmain.sh
17184 # with your package, and you will get complaints that there are
17185 # no rules to generate ltmain.sh.
17186 if test -f "$ltmain"; then
17187 # See if we are running on zsh, and set the options which allow our commands through
17188 # without removal of \ escapes.
17189 if test -n "${ZSH_VERSION+set}" ; then
17190 setopt NO_GLOB_SUBST
17192 # Now quote all the things that may contain metacharacters while being
17193 # careful not to overquote the AC_SUBSTed values. We take copies of the
17194 # variables and quote the copies for generation of the libtool script.
17195 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17198 deplibs_check_method reload_flag reload_cmds need_locks \
17199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17200 lt_cv_sys_global_symbol_to_c_name_address \
17201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17202 old_postinstall_cmds old_postuninstall_cmds \
17206 lt_prog_compiler_wl_GCJ \
17207 lt_prog_compiler_pic_GCJ \
17208 lt_prog_compiler_static_GCJ \
17209 lt_prog_compiler_no_builtin_flag_GCJ \
17210 export_dynamic_flag_spec_GCJ \
17211 thread_safe_flag_spec_GCJ \
17212 whole_archive_flag_spec_GCJ \
17213 enable_shared_with_static_runtimes_GCJ \
17214 old_archive_cmds_GCJ \
17215 old_archive_from_new_cmds_GCJ \
17216 predep_objects_GCJ \
17217 postdep_objects_GCJ \
17220 compiler_lib_search_path_GCJ \
17222 archive_expsym_cmds_GCJ \
17223 postinstall_cmds_GCJ \
17224 postuninstall_cmds_GCJ \
17225 old_archive_from_expsyms_cmds_GCJ \
17226 allow_undefined_flag_GCJ \
17227 no_undefined_flag_GCJ \
17228 export_symbols_cmds_GCJ \
17229 hardcode_libdir_flag_spec_GCJ \
17230 hardcode_libdir_flag_spec_ld_GCJ \
17231 hardcode_libdir_separator_GCJ \
17232 hardcode_automatic_GCJ \
17234 module_expsym_cmds_GCJ \
17235 lt_cv_prog_compiler_c_o_GCJ \
17236 exclude_expsyms_GCJ \
17237 include_expsyms_GCJ; do
17240 old_archive_cmds_GCJ | \
17241 old_archive_from_new_cmds_GCJ | \
17242 archive_cmds_GCJ | \
17243 archive_expsym_cmds_GCJ | \
17244 module_cmds_GCJ | \
17245 module_expsym_cmds_GCJ | \
17246 old_archive_from_expsyms_cmds_GCJ | \
17247 export_symbols_cmds_GCJ | \
17248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17249 postinstall_cmds | postuninstall_cmds | \
17250 old_postinstall_cmds | old_postuninstall_cmds | \
17251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17252 # Double-quote double-evaled strings.
17253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17262 *'\$0 --fallback-echo"')
17263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17269 cat <<__EOF__ >> "$cfgfile"
17270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17274 # Shell to use when invoking shell scripts.
17277 # Whether or not to build shared libraries.
17278 build_libtool_libs=$enable_shared
17280 # Whether or not to build static libraries.
17281 build_old_libs=$enable_static
17283 # Whether or not to add -lc for building shared libraries.
17284 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17286 # Whether or not to disallow shared libs when runtime libs are static
17287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17289 # Whether or not to optimize for fast installation.
17290 fast_install=$enable_fast_install
17293 host_alias=$host_alias
17296 # An echo program that does not interpret backslashes.
17301 AR_FLAGS=$lt_AR_FLAGS
17306 # A language-specific compiler.
17307 CC=$lt_compiler_GCJ
17309 # Is the compiler the GNU C compiler?
17315 # The linker used to build libraries.
17318 # Whether we need hard or soft links.
17321 # A BSD-compatible nm program.
17324 # A symbol stripping program
17327 # Used to examine libraries when file_magic_cmd begins "file"
17328 MAGIC_CMD=$MAGIC_CMD
17330 # Used on cygwin: DLL creation program.
17333 # Used on cygwin: object dumper.
17336 # Used on cygwin: assembler.
17339 # The name of the directory that contains temporary libtool files.
17342 # How to create reloadable object files.
17343 reload_flag=$lt_reload_flag
17344 reload_cmds=$lt_reload_cmds
17346 # How to pass a linker flag through the compiler.
17347 wl=$lt_lt_prog_compiler_wl_GCJ
17349 # Object file suffix (normally "o").
17350 objext="$ac_objext"
17352 # Old archive suffix (normally "a").
17355 # Shared library suffix (normally ".so").
17358 # Executable file suffix (normally "").
17361 # Additional compiler flags for building library objects.
17362 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17365 # What is the maximum length of a command?
17366 max_cmd_len=$lt_cv_sys_max_cmd_len
17368 # Does compiler simultaneously support -c and -o options?
17369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17371 # Must we lock files when doing compilation ?
17372 need_locks=$lt_need_locks
17374 # Do we need the lib prefix for modules?
17375 need_lib_prefix=$need_lib_prefix
17377 # Do we need a version for libraries?
17378 need_version=$need_version
17380 # Whether dlopen is supported.
17381 dlopen_support=$enable_dlopen
17383 # Whether dlopen of programs is supported.
17384 dlopen_self=$enable_dlopen_self
17386 # Whether dlopen of statically linked programs is supported.
17387 dlopen_self_static=$enable_dlopen_self_static
17389 # Compiler flag to prevent dynamic linking.
17390 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17392 # Compiler flag to turn off builtin functions.
17393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17395 # Compiler flag to allow reflexive dlopens.
17396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17398 # Compiler flag to generate shared objects directly from archives.
17399 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17401 # Compiler flag to generate thread-safe objects.
17402 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17404 # Library versioning type.
17405 version_type=$version_type
17407 # Format of library name prefix.
17408 libname_spec=$lt_libname_spec
17410 # List of archive names. First name is the real one, the rest are links.
17411 # The last name is the one that the linker finds with -lNAME.
17412 library_names_spec=$lt_library_names_spec
17414 # The coded name of the library, if different from the real name.
17415 soname_spec=$lt_soname_spec
17417 # Commands used to build and install an old-style archive.
17419 old_archive_cmds=$lt_old_archive_cmds_GCJ
17420 old_postinstall_cmds=$lt_old_postinstall_cmds
17421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17423 # Create an old-style archive from a shared archive.
17424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17426 # Create a temporary old-style archive to link instead of a shared archive.
17427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17429 # Commands used to build and install a shared archive.
17430 archive_cmds=$lt_archive_cmds_GCJ
17431 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17432 postinstall_cmds=$lt_postinstall_cmds
17433 postuninstall_cmds=$lt_postuninstall_cmds
17435 # Commands used to build a loadable module (assumed same as above if empty)
17436 module_cmds=$lt_module_cmds_GCJ
17437 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17439 # Commands to strip libraries.
17440 old_striplib=$lt_old_striplib
17441 striplib=$lt_striplib
17443 # Dependencies to place before the objects being linked to create a
17445 predep_objects=$lt_predep_objects_GCJ
17447 # Dependencies to place after the objects being linked to create a
17449 postdep_objects=$lt_postdep_objects_GCJ
17451 # Dependencies to place before the objects being linked to create a
17453 predeps=$lt_predeps_GCJ
17455 # Dependencies to place after the objects being linked to create a
17457 postdeps=$lt_postdeps_GCJ
17459 # The library search path used internally by the compiler when linking
17460 # a shared library.
17461 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17463 # Method to check whether dependent libraries are shared objects.
17464 deplibs_check_method=$lt_deplibs_check_method
17466 # Command to use when deplibs_check_method == file_magic.
17467 file_magic_cmd=$lt_file_magic_cmd
17469 # Flag that allows shared libraries with undefined symbols to be built.
17470 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17472 # Flag that forces no undefined symbols.
17473 no_undefined_flag=$lt_no_undefined_flag_GCJ
17475 # Commands used to finish a libtool library installation in a directory.
17476 finish_cmds=$lt_finish_cmds
17478 # Same as above, but a single script fragment to be evaled but not shown.
17479 finish_eval=$lt_finish_eval
17481 # Take the output of nm and produce a listing of raw symbols and C names.
17482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17484 # Transform the output of nm in a proper C declaration
17485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17487 # Transform the output of nm in a C name address pair
17488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17490 # This is the shared library runtime path variable.
17491 runpath_var=$runpath_var
17493 # This is the shared library path variable.
17494 shlibpath_var=$shlibpath_var
17496 # Is shlibpath searched before the hard-coded library search path?
17497 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17499 # How to hardcode a shared library path into an executable.
17500 hardcode_action=$hardcode_action_GCJ
17502 # Whether we should hardcode library paths into libraries.
17503 hardcode_into_libs=$hardcode_into_libs
17505 # Flag to hardcode \$libdir into a binary during linking.
17506 # This must work even if \$libdir does not exist.
17507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17509 # If ld is used when linking, flag to hardcode \$libdir into
17510 # a binary during linking. This must work even if \$libdir does
17512 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17514 # Whether we need a single -rpath flag with a separated argument.
17515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17517 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17518 # resulting binary.
17519 hardcode_direct=$hardcode_direct_GCJ
17521 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17522 # resulting binary.
17523 hardcode_minus_L=$hardcode_minus_L_GCJ
17525 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17526 # the resulting binary.
17527 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17529 # Set to yes if building a shared library automatically hardcodes DIR into the library
17530 # and all subsequent libraries and executables linked against it.
17531 hardcode_automatic=$hardcode_automatic_GCJ
17533 # Variables whose values should be saved in libtool wrapper scripts and
17534 # restored at relink time.
17535 variables_saved_for_relink="$variables_saved_for_relink"
17537 # Whether libtool must link a program against all its dependency libraries.
17538 link_all_deplibs=$link_all_deplibs_GCJ
17540 # Compile-time system search path for libraries
17541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17543 # Run-time system search path for libraries
17544 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17546 # Fix the shell variable \$srcfile for the compiler.
17547 fix_srcfile_path="$fix_srcfile_path_GCJ"
17549 # Set to yes if exported symbols are required.
17550 always_export_symbols=$always_export_symbols_GCJ
17552 # The commands to list exported symbols.
17553 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17555 # The commands to extract the exported symbol list from a shared archive.
17556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17558 # Symbols that should not be listed in the preloaded symbols.
17559 exclude_expsyms=$lt_exclude_expsyms_GCJ
17561 # Symbols that must always be exported.
17562 include_expsyms=$lt_include_expsyms_GCJ
17564 # ### END LIBTOOL TAG CONFIG: $tagname
17570 # If there is no Makefile yet, we rely on a make rule to execute
17571 # `config.status --recheck' to rerun these tests and create the
17572 # libtool script then.
17573 test -f Makefile && make "$ltmain"
17578 ac_cpp='$CPP $CPPFLAGS'
17579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594 # Source file extension for RC test sources.
17597 # Object file extension for compiled RC test sources.
17601 # Code to be used in simple compile tests
17602 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17604 # Code to be used in simple link tests
17605 lt_simple_link_test_code="$lt_simple_compile_test_code"
17607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17609 # If no C compiler was specified, use CC.
17612 # Allow CC to be a program name with arguments.
17616 # Allow CC to be a program name with arguments.
17621 lt_cv_prog_compiler_c_o_RC=yes
17623 # The else clause should only fire when bootstrapping the
17624 # libtool distribution, otherwise you forgot to ship ltmain.sh
17625 # with your package, and you will get complaints that there are
17626 # no rules to generate ltmain.sh.
17627 if test -f "$ltmain"; then
17628 # See if we are running on zsh, and set the options which allow our commands through
17629 # without removal of \ escapes.
17630 if test -n "${ZSH_VERSION+set}" ; then
17631 setopt NO_GLOB_SUBST
17633 # Now quote all the things that may contain metacharacters while being
17634 # careful not to overquote the AC_SUBSTed values. We take copies of the
17635 # variables and quote the copies for generation of the libtool script.
17636 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17639 deplibs_check_method reload_flag reload_cmds need_locks \
17640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17641 lt_cv_sys_global_symbol_to_c_name_address \
17642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17643 old_postinstall_cmds old_postuninstall_cmds \
17647 lt_prog_compiler_wl_RC \
17648 lt_prog_compiler_pic_RC \
17649 lt_prog_compiler_static_RC \
17650 lt_prog_compiler_no_builtin_flag_RC \
17651 export_dynamic_flag_spec_RC \
17652 thread_safe_flag_spec_RC \
17653 whole_archive_flag_spec_RC \
17654 enable_shared_with_static_runtimes_RC \
17655 old_archive_cmds_RC \
17656 old_archive_from_new_cmds_RC \
17657 predep_objects_RC \
17658 postdep_objects_RC \
17661 compiler_lib_search_path_RC \
17663 archive_expsym_cmds_RC \
17664 postinstall_cmds_RC \
17665 postuninstall_cmds_RC \
17666 old_archive_from_expsyms_cmds_RC \
17667 allow_undefined_flag_RC \
17668 no_undefined_flag_RC \
17669 export_symbols_cmds_RC \
17670 hardcode_libdir_flag_spec_RC \
17671 hardcode_libdir_flag_spec_ld_RC \
17672 hardcode_libdir_separator_RC \
17673 hardcode_automatic_RC \
17675 module_expsym_cmds_RC \
17676 lt_cv_prog_compiler_c_o_RC \
17677 exclude_expsyms_RC \
17678 include_expsyms_RC; do
17681 old_archive_cmds_RC | \
17682 old_archive_from_new_cmds_RC | \
17683 archive_cmds_RC | \
17684 archive_expsym_cmds_RC | \
17686 module_expsym_cmds_RC | \
17687 old_archive_from_expsyms_cmds_RC | \
17688 export_symbols_cmds_RC | \
17689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17690 postinstall_cmds | postuninstall_cmds | \
17691 old_postinstall_cmds | old_postuninstall_cmds | \
17692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17693 # Double-quote double-evaled strings.
17694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17703 *'\$0 --fallback-echo"')
17704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17710 cat <<__EOF__ >> "$cfgfile"
17711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17715 # Shell to use when invoking shell scripts.
17718 # Whether or not to build shared libraries.
17719 build_libtool_libs=$enable_shared
17721 # Whether or not to build static libraries.
17722 build_old_libs=$enable_static
17724 # Whether or not to add -lc for building shared libraries.
17725 build_libtool_need_lc=$archive_cmds_need_lc_RC
17727 # Whether or not to disallow shared libs when runtime libs are static
17728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17730 # Whether or not to optimize for fast installation.
17731 fast_install=$enable_fast_install
17734 host_alias=$host_alias
17737 # An echo program that does not interpret backslashes.
17742 AR_FLAGS=$lt_AR_FLAGS
17747 # A language-specific compiler.
17750 # Is the compiler the GNU C compiler?
17756 # The linker used to build libraries.
17759 # Whether we need hard or soft links.
17762 # A BSD-compatible nm program.
17765 # A symbol stripping program
17768 # Used to examine libraries when file_magic_cmd begins "file"
17769 MAGIC_CMD=$MAGIC_CMD
17771 # Used on cygwin: DLL creation program.
17774 # Used on cygwin: object dumper.
17777 # Used on cygwin: assembler.
17780 # The name of the directory that contains temporary libtool files.
17783 # How to create reloadable object files.
17784 reload_flag=$lt_reload_flag
17785 reload_cmds=$lt_reload_cmds
17787 # How to pass a linker flag through the compiler.
17788 wl=$lt_lt_prog_compiler_wl_RC
17790 # Object file suffix (normally "o").
17791 objext="$ac_objext"
17793 # Old archive suffix (normally "a").
17796 # Shared library suffix (normally ".so").
17799 # Executable file suffix (normally "").
17802 # Additional compiler flags for building library objects.
17803 pic_flag=$lt_lt_prog_compiler_pic_RC
17806 # What is the maximum length of a command?
17807 max_cmd_len=$lt_cv_sys_max_cmd_len
17809 # Does compiler simultaneously support -c and -o options?
17810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17812 # Must we lock files when doing compilation ?
17813 need_locks=$lt_need_locks
17815 # Do we need the lib prefix for modules?
17816 need_lib_prefix=$need_lib_prefix
17818 # Do we need a version for libraries?
17819 need_version=$need_version
17821 # Whether dlopen is supported.
17822 dlopen_support=$enable_dlopen
17824 # Whether dlopen of programs is supported.
17825 dlopen_self=$enable_dlopen_self
17827 # Whether dlopen of statically linked programs is supported.
17828 dlopen_self_static=$enable_dlopen_self_static
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static_RC
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17836 # Compiler flag to allow reflexive dlopens.
17837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17839 # Compiler flag to generate shared objects directly from archives.
17840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17842 # Compiler flag to generate thread-safe objects.
17843 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17845 # Library versioning type.
17846 version_type=$version_type
17848 # Format of library name prefix.
17849 libname_spec=$lt_libname_spec
17851 # List of archive names. First name is the real one, the rest are links.
17852 # The last name is the one that the linker finds with -lNAME.
17853 library_names_spec=$lt_library_names_spec
17855 # The coded name of the library, if different from the real name.
17856 soname_spec=$lt_soname_spec
17858 # Commands used to build and install an old-style archive.
17860 old_archive_cmds=$lt_old_archive_cmds_RC
17861 old_postinstall_cmds=$lt_old_postinstall_cmds
17862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17870 # Commands used to build and install a shared archive.
17871 archive_cmds=$lt_archive_cmds_RC
17872 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17873 postinstall_cmds=$lt_postinstall_cmds
17874 postuninstall_cmds=$lt_postuninstall_cmds
17876 # Commands used to build a loadable module (assumed same as above if empty)
17877 module_cmds=$lt_module_cmds_RC
17878 module_expsym_cmds=$lt_module_expsym_cmds_RC
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17884 # Dependencies to place before the objects being linked to create a
17886 predep_objects=$lt_predep_objects_RC
17888 # Dependencies to place after the objects being linked to create a
17890 postdep_objects=$lt_postdep_objects_RC
17892 # Dependencies to place before the objects being linked to create a
17894 predeps=$lt_predeps_RC
17896 # Dependencies to place after the objects being linked to create a
17898 postdeps=$lt_postdeps_RC
17900 # The library search path used internally by the compiler when linking
17901 # a shared library.
17902 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17904 # Method to check whether dependent libraries are shared objects.
17905 deplibs_check_method=$lt_deplibs_check_method
17907 # Command to use when deplibs_check_method == file_magic.
17908 file_magic_cmd=$lt_file_magic_cmd
17910 # Flag that allows shared libraries with undefined symbols to be built.
17911 allow_undefined_flag=$lt_allow_undefined_flag_RC
17913 # Flag that forces no undefined symbols.
17914 no_undefined_flag=$lt_no_undefined_flag_RC
17916 # Commands used to finish a libtool library installation in a directory.
17917 finish_cmds=$lt_finish_cmds
17919 # Same as above, but a single script fragment to be evaled but not shown.
17920 finish_eval=$lt_finish_eval
17922 # Take the output of nm and produce a listing of raw symbols and C names.
17923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17925 # Transform the output of nm in a proper C declaration
17926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17928 # Transform the output of nm in a C name address pair
17929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17931 # This is the shared library runtime path variable.
17932 runpath_var=$runpath_var
17934 # This is the shared library path variable.
17935 shlibpath_var=$shlibpath_var
17937 # Is shlibpath searched before the hard-coded library search path?
17938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17940 # How to hardcode a shared library path into an executable.
17941 hardcode_action=$hardcode_action_RC
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17946 # Flag to hardcode \$libdir into a binary during linking.
17947 # This must work even if \$libdir does not exist.
17948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17950 # If ld is used when linking, flag to hardcode \$libdir into
17951 # a binary during linking. This must work even if \$libdir does
17953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17955 # Whether we need a single -rpath flag with a separated argument.
17956 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_direct=$hardcode_direct_RC
17962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963 # resulting binary.
17964 hardcode_minus_L=$hardcode_minus_L_RC
17966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967 # the resulting binary.
17968 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17970 # Set to yes if building a shared library automatically hardcodes DIR into the library
17971 # and all subsequent libraries and executables linked against it.
17972 hardcode_automatic=$hardcode_automatic_RC
17974 # Variables whose values should be saved in libtool wrapper scripts and
17975 # restored at relink time.
17976 variables_saved_for_relink="$variables_saved_for_relink"
17978 # Whether libtool must link a program against all its dependency libraries.
17979 link_all_deplibs=$link_all_deplibs_RC
17981 # Compile-time system search path for libraries
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17984 # Run-time system search path for libraries
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17987 # Fix the shell variable \$srcfile for the compiler.
17988 fix_srcfile_path="$fix_srcfile_path_RC"
17990 # Set to yes if exported symbols are required.
17991 always_export_symbols=$always_export_symbols_RC
17993 # The commands to list exported symbols.
17994 export_symbols_cmds=$lt_export_symbols_cmds_RC
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms_RC
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms_RC
18005 # ### END LIBTOOL TAG CONFIG: $tagname
18011 # If there is no Makefile yet, we rely on a make rule to execute
18012 # `config.status --recheck' to rerun these tests and create the
18013 # libtool script then.
18014 test -f Makefile && make "$ltmain"
18019 ac_cpp='$CPP $CPPFLAGS'
18020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18030 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18031 { (exit 1); exit 1; }; }
18035 # Append the new tag name to the list of available tags.
18036 if test -n "$tagname" ; then
18037 available_tags="$available_tags $tagname"
18043 # Now substitute the updated list of available tags.
18044 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18045 mv "${ofile}T" "$ofile"
18049 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18050 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18051 { (exit 1); exit 1; }; }
18057 # This can be used to rebuild libtool when needed
18058 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18060 # Always use our own libtool.
18061 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18063 # Prevent multiple expansion
18085 # Extract the first word of "pwd", so it can be a program name with args.
18086 set dummy pwd; ac_word=$2
18087 echo "$as_me:$LINENO: checking for $ac_word" >&5
18088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18089 if test "${ac_cv_path_RPWD+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18098 for as_dir in $PATH
18101 test -z "$as_dir" && as_dir=.
18102 for ac_exec_ext in '' $ac_executable_extensions; do
18103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18104 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18111 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
18115 RPWD=$ac_cv_path_RPWD
18117 if test -n "$RPWD"; then
18118 echo "$as_me:$LINENO: result: $RPWD" >&5
18119 echo "${ECHO_T}$RPWD" >&6
18121 echo "$as_me:$LINENO: result: no" >&5
18122 echo "${ECHO_T}no" >&6
18125 if test ${RPWD} = "false"
18127 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18128 echo "$as_me: error: pwd required but not found" >&2;}
18129 { (exit 1); exit 1; }; }
18132 # Extract the first word of "ar", so it can be a program name with args.
18133 set dummy ar; ac_word=$2
18134 echo "$as_me:$LINENO: checking for $ac_word" >&5
18135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18136 if test "${ac_cv_path_AR+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145 for as_dir in $PATH
18148 test -z "$as_dir" && as_dir=.
18149 for ac_exec_ext in '' $ac_executable_extensions; do
18150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18158 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
18164 if test -n "$AR"; then
18165 echo "$as_me:$LINENO: result: $AR" >&5
18166 echo "${ECHO_T}$AR" >&6
18168 echo "$as_me:$LINENO: result: no" >&5
18169 echo "${ECHO_T}no" >&6
18172 if test ${AR} = "false"
18174 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18175 echo "$as_me: error: ar required but not found" >&2;}
18176 { (exit 1); exit 1; }; }
18179 # Extract the first word of "sed", so it can be a program name with args.
18180 set dummy sed; ac_word=$2
18181 echo "$as_me:$LINENO: checking for $ac_word" >&5
18182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183 if test "${ac_cv_path_SED+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192 for as_dir in $PATH
18195 test -z "$as_dir" && as_dir=.
18196 for ac_exec_ext in '' $ac_executable_extensions; do
18197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18205 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
18209 SED=$ac_cv_path_SED
18211 if test -n "$SED"; then
18212 echo "$as_me:$LINENO: result: $SED" >&5
18213 echo "${ECHO_T}$SED" >&6
18215 echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6
18219 if test ${SED} = "false"
18221 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18222 echo "$as_me: error: sed required but not found" >&2;}
18223 { (exit 1); exit 1; }; }
18226 # Extract the first word of "rm", so it can be a program name with args.
18227 set dummy rm; ac_word=$2
18228 echo "$as_me:$LINENO: checking for $ac_word" >&5
18229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18230 if test "${ac_cv_path_RM+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18239 for as_dir in $PATH
18242 test -z "$as_dir" && as_dir=.
18243 for ac_exec_ext in '' $ac_executable_extensions; do
18244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18245 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18252 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
18258 if test -n "$RM"; then
18259 echo "$as_me:$LINENO: result: $RM" >&5
18260 echo "${ECHO_T}$RM" >&6
18262 echo "$as_me:$LINENO: result: no" >&5
18263 echo "${ECHO_T}no" >&6
18266 if test ${RM} = "false"
18268 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18269 echo "$as_me: error: rm required but not found" >&2;}
18270 { (exit 1); exit 1; }; }
18273 # Extract the first word of "echo", so it can be a program name with args.
18274 set dummy echo; ac_word=$2
18275 echo "$as_me:$LINENO: checking for $ac_word" >&5
18276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18277 if test "${ac_cv_path_ECHO+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18286 for as_dir in $PATH
18289 test -z "$as_dir" && as_dir=.
18290 for ac_exec_ext in '' $ac_executable_extensions; do
18291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18292 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18299 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
18303 ECHO=$ac_cv_path_ECHO
18305 if test -n "$ECHO"; then
18306 echo "$as_me:$LINENO: result: $ECHO" >&5
18307 echo "${ECHO_T}$ECHO" >&6
18309 echo "$as_me:$LINENO: result: no" >&5
18310 echo "${ECHO_T}no" >&6
18313 if test ${ECHO} = "false"
18315 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18316 echo "$as_me: error: echo required but not found" >&2;}
18317 { (exit 1); exit 1; }; }
18320 # Extract the first word of "mkdir", so it can be a program name with args.
18321 set dummy mkdir; ac_word=$2
18322 echo "$as_me:$LINENO: checking for $ac_word" >&5
18323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18324 if test "${ac_cv_path_MKDIR+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18336 test -z "$as_dir" && as_dir=.
18337 for ac_exec_ext in '' $ac_executable_extensions; do
18338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18339 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18346 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
18350 MKDIR=$ac_cv_path_MKDIR
18352 if test -n "$MKDIR"; then
18353 echo "$as_me:$LINENO: result: $MKDIR" >&5
18354 echo "${ECHO_T}$MKDIR" >&6
18356 echo "$as_me:$LINENO: result: no" >&5
18357 echo "${ECHO_T}no" >&6
18360 if test ${MKDIR} = "false"
18362 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18363 echo "$as_me: error: mkdir required but not found" >&2;}
18364 { (exit 1); exit 1; }; }
18367 # Extract the first word of "date", so it can be a program name with args.
18368 set dummy date; ac_word=$2
18369 echo "$as_me:$LINENO: checking for $ac_word" >&5
18370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18371 if test "${ac_cv_path_DATE+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18380 for as_dir in $PATH
18383 test -z "$as_dir" && as_dir=.
18384 for ac_exec_ext in '' $ac_executable_extensions; do
18385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18386 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18393 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
18397 DATE=$ac_cv_path_DATE
18399 if test -n "$DATE"; then
18400 echo "$as_me:$LINENO: result: $DATE" >&5
18401 echo "${ECHO_T}$DATE" >&6
18403 echo "$as_me:$LINENO: result: no" >&5
18404 echo "${ECHO_T}no" >&6
18407 if test ${DATE} = "false"
18409 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18410 echo "$as_me: error: date required but not found" >&2;}
18411 { (exit 1); exit 1; }; }
18414 # Extract the first word of "mv", so it can be a program name with args.
18415 set dummy mv; ac_word=$2
18416 echo "$as_me:$LINENO: checking for $ac_word" >&5
18417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18418 if test "${ac_cv_path_MV+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18430 test -z "$as_dir" && as_dir=.
18431 for ac_exec_ext in '' $ac_executable_extensions; do
18432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18433 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18440 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
18446 if test -n "$MV"; then
18447 echo "$as_me:$LINENO: result: $MV" >&5
18448 echo "${ECHO_T}$MV" >&6
18450 echo "$as_me:$LINENO: result: no" >&5
18451 echo "${ECHO_T}no" >&6
18454 if test ${MV} = "false"
18456 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18457 echo "$as_me: error: mv required but not found" >&2;}
18458 { (exit 1); exit 1; }; }
18461 # Extract the first word of "dot", so it can be a program name with args.
18462 set dummy dot; ac_word=$2
18463 echo "$as_me:$LINENO: checking for $ac_word" >&5
18464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18465 if test "${ac_cv_path_DOT+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in $PATH
18477 test -z "$as_dir" && as_dir=.
18478 for ac_exec_ext in '' $ac_executable_extensions; do
18479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18480 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18487 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
18491 DOT=$ac_cv_path_DOT
18493 if test -n "$DOT"; then
18494 echo "$as_me:$LINENO: result: $DOT" >&5
18495 echo "${ECHO_T}$DOT" >&6
18497 echo "$as_me:$LINENO: result: no" >&5
18498 echo "${ECHO_T}no" >&6
18502 # Extract the first word of "etags", so it can be a program name with args.
18503 set dummy etags; ac_word=$2
18504 echo "$as_me:$LINENO: checking for $ac_word" >&5
18505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18506 if test "${ac_cv_path_ETAGS+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18511 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18515 for as_dir in $PATH
18518 test -z "$as_dir" && as_dir=.
18519 for ac_exec_ext in '' $ac_executable_extensions; do
18520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18521 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18528 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
18532 ETAGS=$ac_cv_path_ETAGS
18534 if test -n "$ETAGS"; then
18535 echo "$as_me:$LINENO: result: $ETAGS" >&5
18536 echo "${ECHO_T}$ETAGS" >&6
18538 echo "$as_me:$LINENO: result: no" >&5
18539 echo "${ECHO_T}no" >&6
18543 # Extract the first word of "python", so it can be a program name with args.
18544 set dummy python; ac_word=$2
18545 echo "$as_me:$LINENO: checking for $ac_word" >&5
18546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18547 if test "${ac_cv_path_PYTHON+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18556 for as_dir in $PATH
18559 test -z "$as_dir" && as_dir=.
18560 for ac_exec_ext in '' $ac_executable_extensions; do
18561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18562 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18569 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
18573 PYTHON=$ac_cv_path_PYTHON
18575 if test -n "$PYTHON"; then
18576 echo "$as_me:$LINENO: result: $PYTHON" >&5
18577 echo "${ECHO_T}$PYTHON" >&6
18579 echo "$as_me:$LINENO: result: no" >&5
18580 echo "${ECHO_T}no" >&6
18583 if test ${PYTHON} = "false"
18585 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18586 echo "$as_me: WARNING: python required but not found" >&2;}
18589 # Extract the first word of "qmtest", so it can be a program name with args.
18590 set dummy qmtest; ac_word=$2
18591 echo "$as_me:$LINENO: checking for $ac_word" >&5
18592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18593 if test "${ac_cv_path_QMTEST+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18602 for as_dir in $PATH
18605 test -z "$as_dir" && as_dir=.
18606 for ac_exec_ext in '' $ac_executable_extensions; do
18607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18608 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18615 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
18619 QMTEST=$ac_cv_path_QMTEST
18621 if test -n "$QMTEST"; then
18622 echo "$as_me:$LINENO: result: $QMTEST" >&5
18623 echo "${ECHO_T}$QMTEST" >&6
18625 echo "$as_me:$LINENO: result: no" >&5
18626 echo "${ECHO_T}no" >&6
18629 if test ${QMTEST} = "false"
18631 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
18632 echo "$as_me: WARNING: qmtest required but not found" >&2;}
18635 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18636 pymajor=`echo $pyversion | cut -d. -f1`
18637 pyminor=`echo $pyversion | cut -d. -f2`
18639 if test "$pymajor" -ge "2"
18641 if test "$pymajor" -eq "2"
18643 if test "$pyminor" -lt "2"
18645 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18646 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
18651 echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
18658 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18659 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18660 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 ac_check_lib_save_LIBS=$LIBS
18665 cat >conftest.$ac_ext <<_ACEOF
18666 #line $LINENO "configure"
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -s conftest$ac_exeext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_lib_elf_elf_begin=yes
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_cv_lib_elf_elf_begin=no
18707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18710 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18711 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18712 if test $ac_cv_lib_elf_elf_begin = yes; then
18713 cat >>confdefs.h <<_ACEOF
18714 #define HAVE_LIBELF 1
18722 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18723 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18724 if test "${ac_cv_search_dlopen+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 ac_func_search_save_LIBS=$LIBS
18728 ac_cv_search_dlopen=no
18729 cat >conftest.$ac_ext <<_ACEOF
18730 #line $LINENO "configure"
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18737 /* Override any gcc2 internal prototype to avoid an error. */
18741 /* We use char because int might match the return type of a gcc2
18742 builtin and then its argument prototype would still apply. */
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -s conftest$ac_exeext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_cv_search_dlopen="none required"
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18771 if test "$ac_cv_search_dlopen" = no; then
18772 for ac_lib in dl; do
18773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18774 cat >conftest.$ac_ext <<_ACEOF
18775 #line $LINENO "configure"
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18782 /* Override any gcc2 internal prototype to avoid an error. */
18786 /* We use char because int might match the return type of a gcc2
18787 builtin and then its argument prototype would still apply. */
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799 (eval $ac_link) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_search_dlopen="-l$ac_lib"
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_func_search_save_LIBS
18821 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18822 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18823 if test "$ac_cv_search_dlopen" != no; then
18824 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_DLOPEN 1
18831 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18832 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18836 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18837 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18838 if test "${ac_cv_search_mallinfo+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18841 ac_func_search_save_LIBS=$LIBS
18842 ac_cv_search_mallinfo=no
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18851 /* Override any gcc2 internal prototype to avoid an error. */
18855 /* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868 (eval $ac_link) 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -s conftest$ac_exeext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_cv_search_mallinfo="none required"
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18885 if test "$ac_cv_search_mallinfo" = no; then
18886 for ac_lib in malloc; do
18887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18888 cat >conftest.$ac_ext <<_ACEOF
18889 #line $LINENO "configure"
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18896 /* Override any gcc2 internal prototype to avoid an error. */
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18913 (eval $ac_link) 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -s conftest$ac_exeext'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_search_mallinfo="-l$ac_lib"
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_func_search_save_LIBS
18935 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18936 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18937 if test "$ac_cv_search_mallinfo" != no; then
18938 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_MALLINFO 1
18947 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18948 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18949 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_func_search_save_LIBS=$LIBS
18953 ac_cv_search_pthread_mutex_lock=no
18954 cat >conftest.$ac_ext <<_ACEOF
18955 #line $LINENO "configure"
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18962 /* Override any gcc2 internal prototype to avoid an error. */
18966 /* We use char because int might match the return type of a gcc2
18967 builtin and then its argument prototype would still apply. */
18968 char pthread_mutex_lock ();
18972 pthread_mutex_lock ();
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18979 (eval $ac_link) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_search_pthread_mutex_lock="none required"
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18996 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18997 for ac_lib in pthread; do
18998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18999 cat >conftest.$ac_ext <<_ACEOF
19000 #line $LINENO "configure"
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19007 /* Override any gcc2 internal prototype to avoid an error. */
19011 /* We use char because int might match the return type of a gcc2
19012 builtin and then its argument prototype would still apply. */
19013 char pthread_mutex_lock ();
19017 pthread_mutex_lock ();
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19024 (eval $ac_link) 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_func_search_save_LIBS
19046 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19047 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19048 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19049 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE_PTHREAD_MUTEX_LOCK 1
19059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19061 if test "${ac_cv_header_stdc+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 cat >conftest.$ac_ext <<_ACEOF
19065 #line $LINENO "configure"
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 #include <stdlib.h>
19072 #include <stdarg.h>
19073 #include <string.h>
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_header_stdc=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_cv_header_stdc=no
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19105 if test $ac_cv_header_stdc = yes; then
19106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19107 cat >conftest.$ac_ext <<_ACEOF
19108 #line $LINENO "configure"
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 #include <string.h>
19117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19118 $EGREP "memchr" >/dev/null 2>&1; then
19121 ac_cv_header_stdc=no
19127 if test $ac_cv_header_stdc = yes; then
19128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19129 cat >conftest.$ac_ext <<_ACEOF
19130 #line $LINENO "configure"
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 #include <stdlib.h>
19139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19140 $EGREP "free" >/dev/null 2>&1; then
19143 ac_cv_header_stdc=no
19149 if test $ac_cv_header_stdc = yes; then
19150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19151 if test "$cross_compiling" = yes; then
19154 cat >conftest.$ac_ext <<_ACEOF
19155 #line $LINENO "configure"
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 #if ((' ' & 0x0FF) == 0x020)
19163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19166 # define ISLOWER(c) \
19167 (('a' <= (c) && (c) <= 'i') \
19168 || ('j' <= (c) && (c) <= 'r') \
19169 || ('s' <= (c) && (c) <= 'z'))
19170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19178 for (i = 0; i < 256; i++)
19179 if (XOR (islower (i), ISLOWER (i))
19180 || toupper (i) != TOUPPER (i))
19185 rm -f conftest$ac_exeext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19187 (eval $ac_link) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19198 echo "$as_me: program exited with status $ac_status" >&5
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ( exit $ac_status )
19203 ac_cv_header_stdc=no
19205 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19209 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19210 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19211 if test $ac_cv_header_stdc = yes; then
19213 cat >>confdefs.h <<\_ACEOF
19214 #define STDC_HEADERS 1
19219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225 #line $LINENO "configure"
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19231 #include <sys/types.h>
19232 #include <sys/wait.h>
19233 #ifndef WEXITSTATUS
19234 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19250 rm -f conftest.$ac_objext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19252 (eval $ac_compile) 2>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -s conftest.$ac_objext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 ac_cv_header_sys_wait_h=yes
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_cv_header_sys_wait_h=no
19269 rm -f conftest.$ac_objext conftest.$ac_ext
19271 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19272 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19273 if test $ac_cv_header_sys_wait_h = yes; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_SYS_WAIT_H 1
19290 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294 echo "$as_me:$LINENO: checking for $ac_header" >&5
19295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19302 # Is the header compilable?
19303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19306 #line $LINENO "configure"
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 $ac_includes_default
19313 #include <$ac_header>
19315 rm -f conftest.$ac_objext
19316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19317 (eval $ac_compile) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
19321 { ac_try='test -s conftest.$ac_objext'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 ac_header_compiler=yes
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_header_compiler=no
19334 rm -f conftest.$ac_objext conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19336 echo "${ECHO_T}$ac_header_compiler" >&6
19338 # Is the header present?
19339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19342 #line $LINENO "configure"
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 #include <$ac_header>
19350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19353 grep -v '^ *+' conftest.er1 >conftest.err
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } >/dev/null; then
19358 if test -s conftest.err; then
19359 ac_cpp_err=$ac_c_preproc_warn_flag
19366 if test -z "$ac_cpp_err"; then
19367 ac_header_preproc=yes
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_header_preproc=no
19374 rm -f conftest.err conftest.$ac_ext
19375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19376 echo "${ECHO_T}$ac_header_preproc" >&6
19378 # So? What about this header?
19379 case $ac_header_compiler:$ac_header_preproc in
19381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19387 ## ------------------------------------ ##
19388 ## Report this to bug-autoconf@gnu.org. ##
19389 ## ------------------------------------ ##
19392 sed "s/^/$as_me: WARNING: /" >&2
19395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19403 ## ------------------------------------ ##
19404 ## Report this to bug-autoconf@gnu.org. ##
19405 ## ------------------------------------ ##
19408 sed "s/^/$as_me: WARNING: /" >&2
19411 echo "$as_me:$LINENO: checking for $ac_header" >&5
19412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 eval "$as_ac_Header=$ac_header_preproc"
19418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19423 cat >>confdefs.h <<_ACEOF
19424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19435 for ac_header in malloc.h sys/mman.h sys/resource.h
19437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19439 echo "$as_me:$LINENO: checking for $ac_header" >&5
19440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19447 # Is the header compilable?
19448 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19451 #line $LINENO "configure"
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 #include <$ac_header>
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_header_compiler=yes
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19477 ac_header_compiler=no
19479 rm -f conftest.$ac_objext conftest.$ac_ext
19480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19481 echo "${ECHO_T}$ac_header_compiler" >&6
19483 # Is the header present?
19484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19487 #line $LINENO "configure"
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 #include <$ac_header>
19495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19498 grep -v '^ *+' conftest.er1 >conftest.err
19500 cat conftest.err >&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } >/dev/null; then
19503 if test -s conftest.err; then
19504 ac_cpp_err=$ac_c_preproc_warn_flag
19511 if test -z "$ac_cpp_err"; then
19512 ac_header_preproc=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_header_preproc=no
19519 rm -f conftest.err conftest.$ac_ext
19520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19521 echo "${ECHO_T}$ac_header_preproc" >&6
19523 # So? What about this header?
19524 case $ac_header_compiler:$ac_header_preproc in
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19532 ## ------------------------------------ ##
19533 ## Report this to bug-autoconf@gnu.org. ##
19534 ## ------------------------------------ ##
19537 sed "s/^/$as_me: WARNING: /" >&2
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19548 ## ------------------------------------ ##
19549 ## Report this to bug-autoconf@gnu.org. ##
19550 ## ------------------------------------ ##
19553 sed "s/^/$as_me: WARNING: /" >&2
19556 echo "$as_me:$LINENO: checking for $ac_header" >&5
19557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 eval "$as_ac_Header=$ac_header_preproc"
19563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19568 cat >>confdefs.h <<_ACEOF
19569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19579 for ac_header in dlfcn.h link.h
19581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19583 echo "$as_me:$LINENO: checking for $ac_header" >&5
19584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19591 # Is the header compilable?
19592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19595 #line $LINENO "configure"
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19601 $ac_includes_default
19602 #include <$ac_header>
19604 rm -f conftest.$ac_objext
19605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19606 (eval $ac_compile) 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_header_compiler=yes
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_header_compiler=no
19623 rm -f conftest.$ac_objext conftest.$ac_ext
19624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19625 echo "${ECHO_T}$ac_header_compiler" >&6
19627 # Is the header present?
19628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19631 #line $LINENO "configure"
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 #include <$ac_header>
19639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } >/dev/null; then
19647 if test -s conftest.err; then
19648 ac_cpp_err=$ac_c_preproc_warn_flag
19655 if test -z "$ac_cpp_err"; then
19656 ac_header_preproc=yes
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_header_preproc=no
19663 rm -f conftest.err conftest.$ac_ext
19664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19665 echo "${ECHO_T}$ac_header_preproc" >&6
19667 # So? What about this header?
19668 case $ac_header_compiler:$ac_header_preproc in
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19676 ## ------------------------------------ ##
19677 ## Report this to bug-autoconf@gnu.org. ##
19678 ## ------------------------------------ ##
19681 sed "s/^/$as_me: WARNING: /" >&2
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19692 ## ------------------------------------ ##
19693 ## Report this to bug-autoconf@gnu.org. ##
19694 ## ------------------------------------ ##
19697 sed "s/^/$as_me: WARNING: /" >&2
19700 echo "$as_me:$LINENO: checking for $ac_header" >&5
19701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 eval "$as_ac_Header=$ac_header_preproc"
19707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19712 cat >>confdefs.h <<_ACEOF
19713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19722 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19723 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19724 if test "${ac_cv_c_const+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 cat >conftest.$ac_ext <<_ACEOF
19728 #line $LINENO "configure"
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19738 /* FIXME: Include the comments suggested by Paul. */
19739 #ifndef __cplusplus
19740 /* Ultrix mips cc rejects this. */
19741 typedef int charset[2];
19743 /* SunOS 4.1.1 cc rejects this. */
19744 char const *const *ccp;
19746 /* NEC SVR4.0.2 mips cc rejects this. */
19747 struct point {int x, y;};
19748 static struct point const zero = {0,0};
19749 /* AIX XL C 1.02.0.0 rejects this.
19750 It does not let you subtract one const X* pointer from another in
19751 an arm of an if-expression whose if-part is not a constant
19753 const char *g = "string";
19754 ccp = &g + (g ? g-g : 0);
19755 /* HPUX 7.0 cc rejects these. */
19758 ccp = (char const *const *) p;
19759 { /* SCO 3.2v4 cc rejects this. */
19761 char const *s = 0 ? (char *) 0 : (char const *) 0;
19765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19766 int x[] = {25, 17};
19767 const int *foo = &x[0];
19770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19771 typedef const int *iptr;
19775 { /* AIX XL C 1.02.0.0 rejects this saying
19776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19777 struct s { int j; const int *ap[3]; };
19778 struct s *b; b->j = 5;
19780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19781 const int foo = 10;
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
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19808 rm -f conftest.$ac_objext conftest.$ac_ext
19810 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19811 echo "${ECHO_T}$ac_cv_c_const" >&6
19812 if test $ac_cv_c_const = no; then
19814 cat >>confdefs.h <<\_ACEOF
19820 echo "$as_me:$LINENO: checking for inline" >&5
19821 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19822 if test "${ac_cv_c_inline+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 for ac_kw in inline __inline__ __inline; do
19827 cat >conftest.$ac_ext <<_ACEOF
19828 #line $LINENO "configure"
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 #ifndef __cplusplus
19836 static $ac_kw foo_t static_foo () {return 0; }
19837 $ac_kw foo_t foo () {return 0; }
19841 rm -f conftest.$ac_objext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843 (eval $ac_compile) 2>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_c_inline=$ac_kw; break
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19859 rm -f conftest.$ac_objext conftest.$ac_ext
19863 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19864 echo "${ECHO_T}$ac_cv_c_inline" >&6
19865 case $ac_cv_c_inline in
19868 cat >>confdefs.h <<\_ACEOF
19872 *) cat >>confdefs.h <<_ACEOF
19873 #define inline $ac_cv_c_inline
19879 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19880 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19881 if test "${ac_cv_c_bigendian+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 # See if sys/param.h defines the BYTE_ORDER macro.
19885 cat >conftest.$ac_ext <<_ACEOF
19886 #line $LINENO "configure"
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <sys/types.h>
19893 #include <sys/param.h>
19898 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19899 bogus endian macros
19906 rm -f conftest.$ac_objext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908 (eval $ac_compile) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } &&
19912 { ac_try='test -s conftest.$ac_objext'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19918 # It does; now see whether it defined to BIG_ENDIAN or not.
19919 cat >conftest.$ac_ext <<_ACEOF
19920 #line $LINENO "configure"
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 #include <sys/types.h>
19927 #include <sys/param.h>
19932 #if BYTE_ORDER != BIG_ENDIAN
19940 rm -f conftest.$ac_objext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942 (eval $ac_compile) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -s conftest.$ac_objext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_c_bigendian=yes
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_c_bigendian=no
19959 rm -f conftest.$ac_objext conftest.$ac_ext
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 # It does not; compile a test program.
19965 if test "$cross_compiling" = yes; then
19966 # try to guess the endianness by grepping values into an object file
19967 ac_cv_c_bigendian=unknown
19968 cat >conftest.$ac_ext <<_ACEOF
19969 #line $LINENO "configure"
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19976 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19977 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19978 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19979 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19980 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19984 _ascii (); _ebcdic ();
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991 (eval $ac_compile) 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20002 ac_cv_c_bigendian=yes
20004 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20005 if test "$ac_cv_c_bigendian" = unknown; then
20006 ac_cv_c_bigendian=no
20008 # finding both strings is unlikely to happen, but who knows?
20009 ac_cv_c_bigendian=unknown
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20017 rm -f conftest.$ac_objext conftest.$ac_ext
20019 cat >conftest.$ac_ext <<_ACEOF
20020 #line $LINENO "configure"
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20029 /* Are we little or big endian? From Harbison&Steele. */
20033 char c[sizeof (long)];
20036 exit (u.c[sizeof (long) - 1] == 1);
20039 rm -f conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050 ac_cv_c_bigendian=no
20052 echo "$as_me: program exited with status $ac_status" >&5
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ( exit $ac_status )
20057 ac_cv_c_bigendian=yes
20059 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20062 rm -f conftest.$ac_objext conftest.$ac_ext
20064 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20065 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20066 case $ac_cv_c_bigendian in
20069 cat >>confdefs.h <<\_ACEOF
20075 cat >>confdefs.h <<\_ACEOF
20076 #define ENDIAN_LITTLE
20080 { { echo "$as_me:$LINENO: error: unknown endianness
20081 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20082 echo "$as_me: error: unknown endianness
20083 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20084 { (exit 1); exit 1; }; } ;;
20088 echo "$as_me:$LINENO: checking for pid_t" >&5
20089 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20090 if test "${ac_cv_type_pid_t+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20094 #line $LINENO "configure"
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 $ac_includes_default
20106 if (sizeof (pid_t))
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114 (eval $ac_compile) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_type_pid_t=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_cv_type_pid_t=no
20131 rm -f conftest.$ac_objext conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20134 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20135 if test $ac_cv_type_pid_t = yes; then
20139 cat >>confdefs.h <<_ACEOF
20145 echo "$as_me:$LINENO: checking for size_t" >&5
20146 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20147 if test "${ac_cv_type_size_t+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 cat >conftest.$ac_ext <<_ACEOF
20151 #line $LINENO "configure"
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 $ac_includes_default
20163 if (sizeof (size_t))
20169 rm -f conftest.$ac_objext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20171 (eval $ac_compile) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_cv_type_size_t=yes
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_cv_type_size_t=no
20188 rm -f conftest.$ac_objext conftest.$ac_ext
20190 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20191 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20192 if test $ac_cv_type_size_t = yes; then
20196 cat >>confdefs.h <<_ACEOF
20197 #define size_t unsigned
20202 echo "$as_me:$LINENO: checking for int64_t" >&5
20203 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20204 if test "${ac_cv_type_int64_t+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 cat >conftest.$ac_ext <<_ACEOF
20208 #line $LINENO "configure"
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 $ac_includes_default
20220 if (sizeof (int64_t))
20226 rm -f conftest.$ac_objext
20227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20228 (eval $ac_compile) 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } &&
20232 { ac_try='test -s conftest.$ac_objext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_type_int64_t=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_type_int64_t=no
20245 rm -f conftest.$ac_objext conftest.$ac_ext
20247 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20248 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20249 if test $ac_cv_type_int64_t = yes; then
20251 cat >>confdefs.h <<_ACEOF
20252 #define HAVE_INT64_T 1
20257 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20258 echo "$as_me: error: Type int64_t required but not found" >&2;}
20259 { (exit 1); exit 1; }; }
20262 echo "$as_me:$LINENO: checking for uint64_t" >&5
20263 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20264 if test "${ac_cv_type_uint64_t+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 cat >conftest.$ac_ext <<_ACEOF
20268 #line $LINENO "configure"
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 $ac_includes_default
20278 if ((uint64_t *) 0)
20280 if (sizeof (uint64_t))
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288 (eval $ac_compile) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -s conftest.$ac_objext'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_type_uint64_t=yes
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ac_cv_type_uint64_t=no
20305 rm -f conftest.$ac_objext conftest.$ac_ext
20307 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20308 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20309 if test $ac_cv_type_uint64_t = yes; then
20311 cat >>confdefs.h <<_ACEOF
20312 #define HAVE_UINT64_T 1
20317 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20318 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20319 { (exit 1); exit 1; }; }
20322 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20323 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20324 if test "${ac_cv_header_time+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 cat >conftest.$ac_ext <<_ACEOF
20328 #line $LINENO "configure"
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <sys/types.h>
20335 #include <sys/time.h>
20341 if ((struct tm *) 0)
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -s conftest.$ac_objext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_header_time=yes
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ac_cv_header_time=no
20366 rm -f conftest.$ac_objext conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20369 echo "${ECHO_T}$ac_cv_header_time" >&6
20370 if test $ac_cv_header_time = yes; then
20372 cat >>confdefs.h <<\_ACEOF
20373 #define TIME_WITH_SYS_TIME 1
20378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20380 if test "${ac_cv_struct_tm+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 cat >conftest.$ac_ext <<_ACEOF
20384 #line $LINENO "configure"
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 #include <sys/types.h>
20396 struct tm *tp; tp->tm_sec;
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_struct_tm=time.h
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_cv_struct_tm=sys/time.h
20420 rm -f conftest.$ac_objext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20423 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20424 if test $ac_cv_struct_tm = sys/time.h; then
20426 cat >>confdefs.h <<\_ACEOF
20427 #define TM_IN_SYS_TIME 1
20437 ac_cpp='$CPP $CPPFLAGS'
20438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20442 if test "$cross_compiling" = yes; then
20443 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20444 See \`config.log' for more details." >&5
20445 echo "$as_me: error: cannot run test program while cross compiling
20446 See \`config.log' for more details." >&2;}
20447 { (exit 1); exit 1; }; }
20449 cat >conftest.$ac_ext <<_ACEOF
20450 #line $LINENO "configure"
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20457 #include <stdlib.h>
20462 volatile double A, B;
20466 sprintf(Buffer, "%a", A);
20470 if (A != 0x1.999999999999ap-4)
20477 rm -f conftest$ac_exeext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20479 (eval $ac_link) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20490 echo "$as_me: program exited with status $ac_status" >&5
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ( exit $ac_status )
20497 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20500 ac_cpp='$CPP $CPPFLAGS'
20501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20505 if test "$ac_c_printf_a" = "yes"; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_PRINTF_A 1
20514 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20515 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20516 if test "${ac_cv_cxx_namespaces+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 ac_cpp='$CXXCPP $CPPFLAGS'
20523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20527 cat >conftest.$ac_ext <<_ACEOF
20528 #line $LINENO "configure"
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 namespace Outer { namespace Inner { int i = 0; }}
20538 using namespace Outer::Inner; return i;
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_cxx_namespaces=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_cxx_namespaces=no
20562 rm -f conftest.$ac_objext conftest.$ac_ext
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20572 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20573 if test "$ac_cv_cxx_namespaces" = yes; then
20575 cat >>confdefs.h <<\_ACEOF
20576 #define HAVE_NAMESPACES
20581 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20582 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20583 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 ac_cpp='$CXXCPP $CPPFLAGS'
20591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20595 cat >conftest.$ac_ext <<_ACEOF
20596 #line $LINENO "configure"
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 #include <ext/hash_map>
20603 #ifdef HAVE_NAMESPACES
20604 using namespace std;
20609 hash_map<int, int> t;
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616 (eval $ac_compile) 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -s conftest.$ac_objext'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 ac_cv_cxx_have_std_ext_hash_map=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_cxx_have_std_ext_hash_map=no
20633 rm -f conftest.$ac_objext conftest.$ac_ext
20635 ac_cpp='$CPP $CPPFLAGS'
20636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20641 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20642 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20643 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_STD_EXT_HASH_MAP
20650 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20651 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20652 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 ac_cpp='$CXXCPP $CPPFLAGS'
20660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20664 cat >conftest.$ac_ext <<_ACEOF
20665 #line $LINENO "configure"
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 #include <ext/hash_map>
20672 #ifdef HAVE_NAMESPACES
20673 using namespace __gnu_cxx;
20678 hash_map<int,int> t;
20683 rm -f conftest.$ac_objext
20684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20685 (eval $ac_compile) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -s conftest.$ac_objext'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_cxx_have_gnu_ext_hash_map=yes
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 ac_cv_cxx_have_gnu_ext_hash_map=no
20702 rm -f conftest.$ac_objext conftest.$ac_ext
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20710 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20711 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20712 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
20714 cat >>confdefs.h <<\_ACEOF
20715 #define HAVE_GNU_EXT_HASH_MAP
20719 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20720 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20721 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 ac_cpp='$CXXCPP $CPPFLAGS'
20729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20733 cat >conftest.$ac_ext <<_ACEOF
20734 #line $LINENO "configure"
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <hash_map>
20744 hash_map<int,int> t;
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_cv_cxx_have_global_hash_map=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_cv_cxx_have_global_hash_map=no
20768 rm -f conftest.$ac_objext conftest.$ac_ext
20770 ac_cpp='$CPP $CPPFLAGS'
20771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20776 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20777 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20778 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_GLOBAL_HASH_MAP
20785 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20786 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20787 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 ac_cpp='$CXXCPP $CPPFLAGS'
20795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20799 cat >conftest.$ac_ext <<_ACEOF
20800 #line $LINENO "configure"
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806 #include <ext/hash_set>
20807 #ifdef HAVE_NAMESPACES
20808 using namespace std;
20818 rm -f conftest.$ac_objext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20820 (eval $ac_compile) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
20824 { ac_try='test -s conftest.$ac_objext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_cxx_have_std_ext_hash_set=yes
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_cv_cxx_have_std_ext_hash_set=no
20837 rm -f conftest.$ac_objext conftest.$ac_ext
20839 ac_cpp='$CPP $CPPFLAGS'
20840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20846 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20847 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_STD_EXT_HASH_SET
20854 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20855 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20856 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 ac_cpp='$CXXCPP $CPPFLAGS'
20864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20868 cat >conftest.$ac_ext <<_ACEOF
20869 #line $LINENO "configure"
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 #include <ext/hash_set>
20876 #ifdef HAVE_NAMESPACES
20877 using namespace __gnu_cxx;
20887 rm -f conftest.$ac_objext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20889 (eval $ac_compile) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_cxx_have_gnu_ext_hash_set=yes
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_cxx_have_gnu_ext_hash_set=no
20906 rm -f conftest.$ac_objext conftest.$ac_ext
20908 ac_cpp='$CPP $CPPFLAGS'
20909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20915 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20916 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_GNU_EXT_HASH_SET
20923 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20924 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20925 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 ac_cpp='$CXXCPP $CPPFLAGS'
20933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20937 cat >conftest.$ac_ext <<_ACEOF
20938 #line $LINENO "configure"
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 #include <hash_set>
20948 hash_set<int> t; return 0;
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955 (eval $ac_compile) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -s conftest.$ac_objext'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; }; then
20965 ac_cv_cxx_have_global_hash_set=yes
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_cv_cxx_have_global_hash_set=no
20972 rm -f conftest.$ac_objext conftest.$ac_ext
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20981 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20982 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
20984 cat >>confdefs.h <<\_ACEOF
20985 #define HAVE_GLOBAL_HASH_SET
20989 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20990 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20991 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 ac_cpp='$CXXCPP $CPPFLAGS'
20999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21003 cat >conftest.$ac_ext <<_ACEOF
21004 #line $LINENO "configure"
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 #include <ext/slist>
21011 #ifdef HAVE_NAMESPACES
21012 using namespace std;
21017 slist<int> s; return 0;
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024 (eval $ac_compile) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } &&
21028 { ac_try='test -s conftest.$ac_objext'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 ac_cv_cxx_have_ext_slist=std
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 ac_cv_cxx_have_ext_slist=no
21041 rm -f conftest.$ac_objext conftest.$ac_ext
21042 cat >conftest.$ac_ext <<_ACEOF
21043 #line $LINENO "configure"
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <ext/slist>
21050 #ifdef HAVE_NAMESPACES
21051 using namespace __gnu_cxx;
21056 slist<int> s; return 0;
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -s conftest.$ac_objext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ac_cv_cxx_have_ext_slist=gnu
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ac_cv_cxx_have_ext_slist=no
21080 rm -f conftest.$ac_objext conftest.$ac_ext
21083 ac_cpp='$CPP $CPPFLAGS'
21084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21091 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21092 if test "$ac_cv_cxx_have_ext_slist" = std; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_EXT_SLIST std
21099 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_EXT_SLIST gnu
21107 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21108 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21109 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 ac_cpp='$CXXCPP $CPPFLAGS'
21117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21121 cat >conftest.$ac_ext <<_ACEOF
21122 #line $LINENO "configure"
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <iterator>
21129 #ifdef HAVE_NAMESPACES
21130 using namespace std;
21135 iterator<int,int,int> t; return 0;
21140 rm -f conftest.$ac_objext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21142 (eval $ac_compile) 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } &&
21146 { ac_try='test -s conftest.$ac_objext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 ac_cv_cxx_have_std_iterator=yes
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 ac_cv_cxx_have_std_iterator=no
21159 rm -f conftest.$ac_objext conftest.$ac_ext
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21168 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21169 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21170 if test "$ac_cv_cxx_have_std_iterator" = yes; then
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_STD_ITERATOR
21178 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21179 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21180 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21187 ac_cpp='$CXXCPP $CPPFLAGS'
21188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21192 cat >conftest.$ac_ext <<_ACEOF
21193 #line $LINENO "configure"
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <iterator>
21200 #ifdef HAVE_NAMESPACES
21201 using namespace std;
21206 bidirectional_iterator<int,int> t; return 0;
21211 rm -f conftest.$ac_objext
21212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_cxx_have_bi_iterator=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_cv_cxx_have_bi_iterator=no
21230 rm -f conftest.$ac_objext conftest.$ac_ext
21232 ac_cpp='$CPP $CPPFLAGS'
21233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21239 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21240 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21241 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21243 cat >>confdefs.h <<\_ACEOF
21244 #define HAVE_BI_ITERATOR
21249 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21250 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21251 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 ac_cpp='$CXXCPP $CPPFLAGS'
21259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21263 cat >conftest.$ac_ext <<_ACEOF
21264 #line $LINENO "configure"
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <iterator>
21271 #ifdef HAVE_NAMESPACES
21272 using namespace std;
21277 forward_iterator<int,int> t; return 0;
21282 rm -f conftest.$ac_objext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284 (eval $ac_compile) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_cxx_have_fwd_iterator=yes
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_cv_cxx_have_fwd_iterator=no
21301 rm -f conftest.$ac_objext conftest.$ac_ext
21303 ac_cpp='$CPP $CPPFLAGS'
21304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21310 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21311 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21312 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21314 cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_FWD_ITERATOR
21321 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21322 # for constant arguments. Useless!
21323 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21324 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21325 if test "${ac_cv_working_alloca_h+set}" = set; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 cat >conftest.$ac_ext <<_ACEOF
21329 #line $LINENO "configure"
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 #include <alloca.h>
21339 char *p = (char *) alloca (2 * sizeof (int));
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } &&
21350 { ac_try='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_working_alloca_h=yes
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_working_alloca_h=no
21363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21365 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21366 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21367 if test $ac_cv_working_alloca_h = yes; then
21369 cat >>confdefs.h <<\_ACEOF
21370 #define HAVE_ALLOCA_H 1
21375 echo "$as_me:$LINENO: checking for alloca" >&5
21376 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21377 if test "${ac_cv_func_alloca_works+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 cat >conftest.$ac_ext <<_ACEOF
21381 #line $LINENO "configure"
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21388 # define alloca __builtin_alloca
21391 # include <malloc.h>
21392 # define alloca _alloca
21395 # include <alloca.h>
21400 # ifndef alloca /* predefined by HP cc +Olibcalls */
21411 char *p = (char *) alloca (1);
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21418 (eval $ac_link) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } &&
21422 { ac_try='test -s conftest$ac_exeext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ac_cv_func_alloca_works=yes
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_cv_func_alloca_works=no
21435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21437 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21438 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21440 if test $ac_cv_func_alloca_works = yes; then
21442 cat >>confdefs.h <<\_ACEOF
21443 #define HAVE_ALLOCA 1
21447 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21448 # that cause trouble. Some versions do not even contain alloca or
21449 # contain a buggy version. If you still want to use their alloca,
21450 # use ar to extract alloca.o from them instead of compiling alloca.c.
21452 ALLOCA=alloca.$ac_objext
21454 cat >>confdefs.h <<\_ACEOF
21459 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21460 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21461 if test "${ac_cv_os_cray+set}" = set; then
21462 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 cat >conftest.$ac_ext <<_ACEOF
21465 #line $LINENO "configure"
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21471 #if defined(CRAY) && ! defined(CRAY2)
21478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21479 $EGREP "webecray" >/dev/null 2>&1; then
21487 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21488 echo "${ECHO_T}$ac_cv_os_cray" >&6
21489 if test $ac_cv_os_cray = yes; then
21490 for ac_func in _getb67 GETB67 getb67; do
21491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21492 echo "$as_me:$LINENO: checking for $ac_func" >&5
21493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21494 if eval "test \"\${$as_ac_var+set}\" = set"; then
21495 echo $ECHO_N "(cached) $ECHO_C" >&6
21497 cat >conftest.$ac_ext <<_ACEOF
21498 #line $LINENO "configure"
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 /* System header to define __stub macros and hopefully few prototypes,
21505 which can conflict with char $ac_func (); below.
21506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21507 <limits.h> exists even on freestanding compilers. */
21509 # include <limits.h>
21511 # include <assert.h>
21513 /* Override any gcc2 internal prototype to avoid an error. */
21518 /* We use char because int might match the return type of a gcc2
21519 builtin and then its argument prototype would still apply. */
21521 /* The GNU C library defines this for functions which it implements
21522 to always fail with ENOSYS. Some functions are actually named
21523 something starting with __ and the normal name is an alias. */
21524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21527 char (*f) () = $ac_func;
21536 return f != $ac_func;
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21543 (eval $ac_link) 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -s conftest$ac_exeext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 eval "$as_ac_var=yes"
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 eval "$as_ac_var=no"
21560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21564 if test `eval echo '${'$as_ac_var'}'` = yes; then
21566 cat >>confdefs.h <<_ACEOF
21567 #define CRAY_STACKSEG_END $ac_func
21576 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21577 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21578 if test "${ac_cv_c_stack_direction+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 if test "$cross_compiling" = yes; then
21582 ac_cv_c_stack_direction=0
21584 cat >conftest.$ac_ext <<_ACEOF
21585 #line $LINENO "configure"
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21592 find_stack_direction ()
21594 static char *addr = 0;
21599 return find_stack_direction ();
21602 return (&dummy > addr) ? 1 : -1;
21608 exit (find_stack_direction () < 0);
21611 rm -f conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 (eval $ac_link) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ac_cv_c_stack_direction=1
21624 echo "$as_me: program exited with status $ac_status" >&5
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21628 ( exit $ac_status )
21629 ac_cv_c_stack_direction=-1
21631 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21634 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21635 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21637 cat >>confdefs.h <<_ACEOF
21638 #define STACK_DIRECTION $ac_cv_c_stack_direction
21644 if test $ac_cv_c_compiler_gnu = yes; then
21645 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21646 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21647 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 ac_pattern="Autoconf.*'x'"
21651 cat >conftest.$ac_ext <<_ACEOF
21652 #line $LINENO "configure"
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21662 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21663 ac_cv_prog_gcc_traditional=yes
21665 ac_cv_prog_gcc_traditional=no
21670 if test $ac_cv_prog_gcc_traditional = no; then
21671 cat >conftest.$ac_ext <<_ACEOF
21672 #line $LINENO "configure"
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 #include <termio.h>
21681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21682 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21683 ac_cv_prog_gcc_traditional=yes
21689 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21690 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21691 if test $ac_cv_prog_gcc_traditional = yes; then
21692 CC="$CC -traditional"
21696 echo "$as_me:$LINENO: checking for working memcmp" >&5
21697 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21698 if test "${ac_cv_func_memcmp_working+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 if test "$cross_compiling" = yes; then
21702 ac_cv_func_memcmp_working=no
21704 cat >conftest.$ac_ext <<_ACEOF
21705 #line $LINENO "configure"
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21716 /* Some versions of memcmp are not 8-bit clean. */
21717 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21718 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21721 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21722 or more and with at least one buffer not starting on a 4-byte boundary.
21723 William Lewis provided this test program. */
21728 for (i = 0; i < 4; i++)
21732 strcpy (a, "--------01111111");
21733 strcpy (b, "--------10000000");
21734 if (memcmp (a, b, 16) >= 0)
21744 rm -f conftest$ac_exeext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21746 (eval $ac_link) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_cv_func_memcmp_working=yes
21757 echo "$as_me: program exited with status $ac_status" >&5
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ( exit $ac_status )
21762 ac_cv_func_memcmp_working=no
21764 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21767 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21768 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21769 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21773 for ac_header in stdlib.h unistd.h
21775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21777 echo "$as_me:$LINENO: checking for $ac_header" >&5
21778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21785 # Is the header compilable?
21786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21788 cat >conftest.$ac_ext <<_ACEOF
21789 #line $LINENO "configure"
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 $ac_includes_default
21796 #include <$ac_header>
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800 (eval $ac_compile) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } &&
21804 { ac_try='test -s conftest.$ac_objext'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; }; then
21810 ac_header_compiler=yes
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21815 ac_header_compiler=no
21817 rm -f conftest.$ac_objext conftest.$ac_ext
21818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21819 echo "${ECHO_T}$ac_header_compiler" >&6
21821 # Is the header present?
21822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21825 #line $LINENO "configure"
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 #include <$ac_header>
21833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } >/dev/null; then
21841 if test -s conftest.err; then
21842 ac_cpp_err=$ac_c_preproc_warn_flag
21849 if test -z "$ac_cpp_err"; then
21850 ac_header_preproc=yes
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ac_header_preproc=no
21857 rm -f conftest.err conftest.$ac_ext
21858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21859 echo "${ECHO_T}$ac_header_preproc" >&6
21861 # So? What about this header?
21862 case $ac_header_compiler:$ac_header_preproc in
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21870 ## ------------------------------------ ##
21871 ## Report this to bug-autoconf@gnu.org. ##
21872 ## ------------------------------------ ##
21875 sed "s/^/$as_me: WARNING: /" >&2
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21886 ## ------------------------------------ ##
21887 ## Report this to bug-autoconf@gnu.org. ##
21888 ## ------------------------------------ ##
21891 sed "s/^/$as_me: WARNING: /" >&2
21894 echo "$as_me:$LINENO: checking for $ac_header" >&5
21895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 eval "$as_ac_Header=$ac_header_preproc"
21901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21906 cat >>confdefs.h <<_ACEOF
21907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21915 for ac_func in getpagesize
21917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21918 echo "$as_me:$LINENO: checking for $ac_func" >&5
21919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21920 if eval "test \"\${$as_ac_var+set}\" = set"; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 cat >conftest.$ac_ext <<_ACEOF
21924 #line $LINENO "configure"
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 /* System header to define __stub macros and hopefully few prototypes,
21931 which can conflict with char $ac_func (); below.
21932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21933 <limits.h> exists even on freestanding compilers. */
21935 # include <limits.h>
21937 # include <assert.h>
21939 /* Override any gcc2 internal prototype to avoid an error. */
21944 /* We use char because int might match the return type of a gcc2
21945 builtin and then its argument prototype would still apply. */
21947 /* The GNU C library defines this for functions which it implements
21948 to always fail with ENOSYS. Some functions are actually named
21949 something starting with __ and the normal name is an alias. */
21950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21953 char (*f) () = $ac_func;
21962 return f != $ac_func;
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21969 (eval $ac_link) 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } &&
21973 { ac_try='test -s conftest$ac_exeext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 eval "$as_ac_var=yes"
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 eval "$as_ac_var=no"
21986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21990 if test `eval echo '${'$as_ac_var'}'` = yes; then
21991 cat >>confdefs.h <<_ACEOF
21992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21998 echo "$as_me:$LINENO: checking for working mmap" >&5
21999 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22000 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 if test "$cross_compiling" = yes; then
22004 ac_cv_func_mmap_fixed_mapped=no
22006 cat >conftest.$ac_ext <<_ACEOF
22007 #line $LINENO "configure"
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22013 $ac_includes_default
22014 /* malloc might have been renamed as rpl_malloc. */
22017 /* Thanks to Mike Haertel and Jim Avera for this test.
22018 Here is a matrix of mmap possibilities:
22019 mmap private not fixed
22020 mmap private fixed at somewhere currently unmapped
22021 mmap private fixed at somewhere already mapped
22022 mmap shared not fixed
22023 mmap shared fixed at somewhere currently unmapped
22024 mmap shared fixed at somewhere already mapped
22025 For private mappings, we should verify that changes cannot be read()
22026 back from the file, nor mmap's back from the file at a different
22027 address. (There have been systems where private was not correctly
22028 implemented like the infamous i386 svr4.0, and systems where the
22029 VM page cache was not coherent with the file system buffer cache
22030 like early versions of FreeBSD and possibly contemporary NetBSD.)
22031 For shared mappings, we should conversely verify that changes get
22032 propagated back to all the places they're supposed to be.
22034 Grep wants private fixed already mapped.
22035 The main things grep needs to know about mmap are:
22036 * does it exist and is it safe to write into the mmap'd area
22037 * how to use it (BSD variants) */
22040 #include <sys/mman.h>
22042 #if !STDC_HEADERS && !HAVE_STDLIB_H
22046 /* This mess was copied from the GNU getpagesize.h. */
22047 #if !HAVE_GETPAGESIZE
22048 /* Assume that all systems that can run configure have sys/param.h. */
22049 # if !HAVE_SYS_PARAM_H
22050 # define HAVE_SYS_PARAM_H 1
22053 # ifdef _SC_PAGESIZE
22054 # define getpagesize() sysconf(_SC_PAGESIZE)
22055 # else /* no _SC_PAGESIZE */
22056 # if HAVE_SYS_PARAM_H
22057 # include <sys/param.h>
22058 # ifdef EXEC_PAGESIZE
22059 # define getpagesize() EXEC_PAGESIZE
22060 # else /* no EXEC_PAGESIZE */
22062 # define getpagesize() NBPG * CLSIZE
22065 # endif /* no CLSIZE */
22066 # else /* no NBPG */
22068 # define getpagesize() NBPC
22069 # else /* no NBPC */
22071 # define getpagesize() PAGESIZE
22072 # endif /* PAGESIZE */
22073 # endif /* no NBPC */
22074 # endif /* no NBPG */
22075 # endif /* no EXEC_PAGESIZE */
22076 # else /* no HAVE_SYS_PARAM_H */
22077 # define getpagesize() 8192 /* punt totally */
22078 # endif /* no HAVE_SYS_PARAM_H */
22079 # endif /* no _SC_PAGESIZE */
22081 #endif /* no HAVE_GETPAGESIZE */
22086 char *data, *data2, *data3;
22090 pagesize = getpagesize ();
22092 /* First, make a file with some known garbage in it. */
22093 data = (char *) malloc (pagesize);
22096 for (i = 0; i < pagesize; ++i)
22097 *(data + i) = rand ();
22099 fd = creat ("conftest.mmap", 0600);
22102 if (write (fd, data, pagesize) != pagesize)
22106 /* Next, try to mmap the file at a fixed address which already has
22107 something else allocated at it. If we can, also make sure that
22108 we see the same garbage. */
22109 fd = open ("conftest.mmap", O_RDWR);
22112 data2 = (char *) malloc (2 * pagesize);
22115 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22116 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22119 for (i = 0; i < pagesize; ++i)
22120 if (*(data + i) != *(data2 + i))
22123 /* Finally, make sure that changes to the mapped area do not
22124 percolate back to the file as seen by read(). (This is a bug on
22125 some variants of i386 svr4.0.) */
22126 for (i = 0; i < pagesize; ++i)
22127 *(data2 + i) = *(data2 + i) + 1;
22128 data3 = (char *) malloc (pagesize);
22131 if (read (fd, data3, pagesize) != pagesize)
22133 for (i = 0; i < pagesize; ++i)
22134 if (*(data + i) != *(data3 + i))
22140 rm -f conftest$ac_exeext
22141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22142 (eval $ac_link) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 ac_cv_func_mmap_fixed_mapped=yes
22153 echo "$as_me: program exited with status $ac_status" >&5
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ( exit $ac_status )
22158 ac_cv_func_mmap_fixed_mapped=no
22160 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22163 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22164 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22165 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_MMAP 1
22172 rm -f conftest.mmap
22174 echo "$as_me:$LINENO: checking for mmap of files" >&5
22175 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22176 if test "${ac_cv_func_mmap_file+set}" = set; then
22177 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 ac_cpp='$CPP $CPPFLAGS'
22183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22187 if test "$cross_compiling" = yes; then
22188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22189 See \`config.log' for more details." >&5
22190 echo "$as_me: error: cannot run test program while cross compiling
22191 See \`config.log' for more details." >&2;}
22192 { (exit 1); exit 1; }; }
22194 cat >conftest.$ac_ext <<_ACEOF
22195 #line $LINENO "configure"
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22202 #ifdef HAVE_SYS_TYPES_H
22203 #include <sys/types.h>
22206 #ifdef HAVE_SYS_MMAN_H
22207 #include <sys/mman.h>
22210 #ifdef HAVE_FCNTL_H
22216 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22218 rm -f conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220 (eval $ac_link) 2>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229 ac_cv_func_mmap_file=yes
22231 echo "$as_me: program exited with status $ac_status" >&5
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 ( exit $ac_status )
22236 ac_cv_func_mmap_file=no
22238 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 ac_cpp='$CPP $CPPFLAGS'
22242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22248 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22249 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22250 if test "$ac_cv_func_mmap_file" = yes; then
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_MMAP_FILE
22260 if test ${ac_cv_func_mmap_file} = "no"
22262 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22263 echo "$as_me: error: mmap() of files required but not found" >&2;}
22264 { (exit 1); exit 1; }; }
22266 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22267 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22268 if test "${ac_cv_header_mmap_anon+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22274 ac_cpp='$CPP $CPPFLAGS'
22275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22279 cat >conftest.$ac_ext <<_ACEOF
22280 #line $LINENO "configure"
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 #include <sys/mman.h>
22287 #include <unistd.h>
22292 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22297 rm -f conftest.$ac_objext
22298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299 (eval $ac_compile) 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -s conftest.$ac_objext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_cv_header_mmap_anon=yes
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ac_cv_header_mmap_anon=no
22316 rm -f conftest.$ac_objext conftest.$ac_ext
22318 ac_cpp='$CPP $CPPFLAGS'
22319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22325 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22326 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22327 if test "$ac_cv_header_mmap_anon" = yes; then
22329 cat >>confdefs.h <<\_ACEOF
22330 #define HAVE_MMAP_ANONYMOUS
22335 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22336 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22337 if test "${ac_cv_type_signal+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 cat >conftest.$ac_ext <<_ACEOF
22341 #line $LINENO "configure"
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 #include <sys/types.h>
22348 #include <signal.h>
22353 extern "C" void (*signal (int, void (*)(int)))(int);
22355 void (*signal ()) ();
22366 rm -f conftest.$ac_objext
22367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22368 (eval $ac_compile) 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
22372 { ac_try='test -s conftest.$ac_objext'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_cv_type_signal=void
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_cv_type_signal=int
22385 rm -f conftest.$ac_objext conftest.$ac_ext
22387 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22388 echo "${ECHO_T}$ac_cv_type_signal" >&6
22390 cat >>confdefs.h <<_ACEOF
22391 #define RETSIGTYPE $ac_cv_type_signal
22406 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
22408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22409 echo "$as_me:$LINENO: checking for $ac_func" >&5
22410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22411 if eval "test \"\${$as_ac_var+set}\" = set"; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 cat >conftest.$ac_ext <<_ACEOF
22415 #line $LINENO "configure"
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 /* System header to define __stub macros and hopefully few prototypes,
22422 which can conflict with char $ac_func (); below.
22423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22424 <limits.h> exists even on freestanding compilers. */
22426 # include <limits.h>
22428 # include <assert.h>
22430 /* Override any gcc2 internal prototype to avoid an error. */
22435 /* We use char because int might match the return type of a gcc2
22436 builtin and then its argument prototype would still apply. */
22438 /* The GNU C library defines this for functions which it implements
22439 to always fail with ENOSYS. Some functions are actually named
22440 something starting with __ and the normal name is an alias. */
22441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22444 char (*f) () = $ac_func;
22453 return f != $ac_func;
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22460 (eval $ac_link) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } &&
22464 { ac_try='test -s conftest$ac_exeext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 eval "$as_ac_var=yes"
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 eval "$as_ac_var=no"
22477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22481 if test `eval echo '${'$as_ac_var'}'` = yes; then
22482 cat >>confdefs.h <<_ACEOF
22483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22491 echo "$as_me:$LINENO: checking for mmap" >&5
22492 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22493 if test "${ac_cv_func_mmap+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 cat >conftest.$ac_ext <<_ACEOF
22497 #line $LINENO "configure"
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 /* System header to define __stub macros and hopefully few prototypes,
22504 which can conflict with char mmap (); below.
22505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22506 <limits.h> exists even on freestanding compilers. */
22508 # include <limits.h>
22510 # include <assert.h>
22512 /* Override any gcc2 internal prototype to avoid an error. */
22517 /* We use char because int might match the return type of a gcc2
22518 builtin and then its argument prototype would still apply. */
22520 /* The GNU C library defines this for functions which it implements
22521 to always fail with ENOSYS. Some functions are actually named
22522 something starting with __ and the normal name is an alias. */
22523 #if defined (__stub_mmap) || defined (__stub___mmap)
22526 char (*f) () = mmap;
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542 (eval $ac_link) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } &&
22546 { ac_try='test -s conftest$ac_exeext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ac_cv_func_mmap=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22561 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22562 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22563 if test $ac_cv_func_mmap = yes; then
22566 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22567 echo "$as_me: error: Function mmap() required but not found" >&2;}
22568 { (exit 1); exit 1; }; }
22571 echo "$as_me:$LINENO: checking for mprotect" >&5
22572 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22573 if test "${ac_cv_func_mprotect+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 cat >conftest.$ac_ext <<_ACEOF
22577 #line $LINENO "configure"
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 /* System header to define __stub macros and hopefully few prototypes,
22584 which can conflict with char mprotect (); below.
22585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22586 <limits.h> exists even on freestanding compilers. */
22588 # include <limits.h>
22590 # include <assert.h>
22592 /* Override any gcc2 internal prototype to avoid an error. */
22597 /* We use char because int might match the return type of a gcc2
22598 builtin and then its argument prototype would still apply. */
22600 /* The GNU C library defines this for functions which it implements
22601 to always fail with ENOSYS. Some functions are actually named
22602 something starting with __ and the normal name is an alias. */
22603 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22606 char (*f) () = mprotect;
22615 return f != mprotect;
22620 rm -f conftest.$ac_objext conftest$ac_exeext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22622 (eval $ac_link) 2>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
22626 { ac_try='test -s conftest$ac_exeext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 ac_cv_func_mprotect=yes
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 ac_cv_func_mprotect=no
22639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22641 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22642 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22643 if test $ac_cv_func_mprotect = yes; then
22646 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22647 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22648 { (exit 1); exit 1; }; }
22656 ac_cpp='$CPP $CPPFLAGS'
22657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22661 oldcflags="$CFLAGS"
22662 CFLAGS="$CFLAGS -Wl,-R."
22663 cat >conftest.$ac_ext <<_ACEOF
22664 int main() { return 0; }
22666 rm -f conftest.$ac_objext conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668 (eval $ac_link) 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -s conftest$ac_exeext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ac_cv_link_use_r=yes
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_link_use_r=no
22685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22686 CFLAGS="$oldcflags"
22688 ac_cpp='$CPP $CPPFLAGS'
22689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22693 if test "$ac_cv_link_use_r" = yes
22696 cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_LINK_R 1
22704 # Check whether --enable-purify or --disable-purify was given.
22705 if test "${enable_purify+set}" = set; then
22706 enableval="$enable_purify"
22711 if test ${enableval} = "no"
22716 ENABLE_PURIFY=ENABLE_PURIFY=1
22720 # Check whether --enable-optimized or --disable-optimized was given.
22721 if test "${enable_optimized+set}" = set; then
22722 enableval="$enable_optimized"
22727 if test ${enableval} = "no"
22732 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22736 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22737 if test "${enable_spec2000+set}" = set; then
22738 enableval="$enable_spec2000"
22743 if test ${enableval} = "no"
22745 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22747 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22749 USE_SPEC=USE_SPEC=1
22757 if test ${enableval} = ""
22759 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22762 SPEC_ROOT=${enableval}
22765 USE_SPEC=USE_SPEC=1
22769 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22770 if test "${enable_precompiled_bytecode+set}" = set; then
22771 enableval="$enable_precompiled_bytecode"
22776 if test ${enableval} = "no"
22781 UPB=USE_PRECOMPILED_BYTECODE=1
22786 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22787 if test "${enable_llc_diffs+set}" = set; then
22788 enableval="$enable_llc_diffs"
22793 if test ${enableval} = "no"
22795 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22802 # Check whether --enable-jit or --disable-jit was given.
22803 if test "${enable_jit+set}" = set; then
22804 enableval="$enable_jit"
22810 if test ${enableval} = "no"
22817 JIT=TARGET_HAS_JIT=1
22821 JIT=TARGET_HAS_JIT=1
22833 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22834 if test "${with_llvmgccdir+set}" = set; then
22835 withval="$with_llvmgccdir"
22836 LLVMGCCDIR=$withval
22840 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22841 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22843 if test -d "$LLVMGCCDIR"
22845 if test -x "$LLVMGCCDIR/bin/gcc"
22847 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22851 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22852 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22853 if test "$LLVM_GCC_CHECK" = "no"
22858 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22859 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22861 if test -x "$LLVM_GCC_CHECK"
22863 cp /dev/null conftest.c
22864 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22871 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22872 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22873 if test "$LLVM_GCC_SANE" = "no"
22879 # Check whether --with-bcrepos or --without-bcrepos was given.
22880 if test "${with_bcrepos+set}" = set; then
22881 withval="$with_bcrepos"
22885 BCR=/home/vadve/lattner/LLVMPrograms
22890 # Check whether --with-papi or --without-papi was given.
22891 if test "${with_papi+set}" = set; then
22892 withval="$with_papi"
22896 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22901 # Check whether --with-purify or --without-purify was given.
22902 if test "${with_purify+set}" = set; then
22903 withval="$with_purify"
22909 ac_config_files="$ac_config_files Makefile.config"
22910 cat >confcache <<\_ACEOF
22911 # This file is a shell script that caches the results of configure
22912 # tests run on this system so they can be shared between configure
22913 # scripts and configure runs, see configure's option --config-cache.
22914 # It is not useful on other systems. If it contains results you don't
22915 # want to keep, you may remove or edit it.
22917 # config.status only pays attention to the cache file if you give it
22918 # the --recheck option to rerun configure.
22920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22922 # following values.
22926 # The following way of writing the cache mishandles newlines in values,
22927 # but we know of no workaround that is simple, portable, and efficient.
22928 # So, don't put newlines in cache variables' values.
22929 # Ultrix sh set writes to stderr and can't be redirected directly,
22930 # and sets the high bit in the cache file unless we assign to the vars.
22933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22935 # `set' does not quote correctly, so add quotes (double-quote
22936 # substitution turns \\\\ into \\, and sed turns \\ into \).
22939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22942 # `set' quotes correctly as required by POSIX, so do not add quotes.
22944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22955 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22956 if test -w $cache_file; then
22957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22958 cat confcache >$cache_file
22960 echo "not updating unwritable cache $cache_file"
22965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22966 # Let make expand exec_prefix.
22967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22971 # trailing colons and then remove the whole line if VPATH becomes empty
22972 # (actually we leave an empty line to preserve line numbers).
22973 if test "x$srcdir" = x.; then
22974 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22975 s/:*\$(srcdir):*/:/;
22976 s/:*\${srcdir}:*/:/;
22978 s/^\([^=]*=[ ]*\):*/\1/;
22984 DEFS=-DHAVE_CONFIG_H
22988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22989 # 1. Remove the extension, and $U if already installed.
22990 ac_i=`echo "$ac_i" |
22991 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22993 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22994 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22996 LIBOBJS=$ac_libobjs
22998 LTLIBOBJS=$ac_ltlibobjs
23002 : ${CONFIG_STATUS=./config.status}
23003 ac_clean_files_save=$ac_clean_files
23004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23005 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23006 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23007 cat >$CONFIG_STATUS <<_ACEOF
23009 # Generated by $as_me.
23010 # Run this file to recreate the current configuration.
23011 # Compiler output produced by configure, useful for debugging
23012 # configure, is in config.log if it exists.
23015 ac_cs_recheck=false
23017 SHELL=\${CONFIG_SHELL-$SHELL}
23020 cat >>$CONFIG_STATUS <<\_ACEOF
23021 ## --------------------- ##
23022 ## M4sh Initialization. ##
23023 ## --------------------- ##
23025 # Be Bourne compatible
23026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23029 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23030 # is contrary to our usage. Disable this feature.
23031 alias -g '${1+"$@"}'='"$@"'
23032 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23036 # Support unset when possible.
23037 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23044 # Work around bugs in pre-3.0 UWIN ksh.
23045 $as_unset ENV MAIL MAILPATH
23052 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23053 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23054 LC_TELEPHONE LC_TIME
23056 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23057 eval $as_var=C; export $as_var
23063 # Required to use basename.
23064 if expr a : '\(a\)' >/dev/null 2>&1; then
23070 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23071 as_basename=basename
23077 # Name of the executable.
23078 as_me=`$as_basename "$0" ||
23079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23080 X"$0" : 'X\(//\)$' \| \
23081 X"$0" : 'X\(/\)$' \| \
23082 . : '\(.\)' 2>/dev/null ||
23084 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23085 /^X\/\(\/\/\)$/{ s//\1/; q; }
23086 /^X\/\(\/\).*/{ s//\1/; q; }
23090 # PATH needs CR, and LINENO needs CR and PATH.
23091 # Avoid depending upon Character Ranges.
23092 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23093 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23094 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23095 as_cr_digits='0123456789'
23096 as_cr_alnum=$as_cr_Letters$as_cr_digits
23098 # The user is always right.
23099 if test "${PATH_SEPARATOR+set}" != set; then
23100 echo "#! /bin/sh" >conf$$.sh
23101 echo "exit 0" >>conf$$.sh
23103 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23112 as_lineno_1=$LINENO
23113 as_lineno_2=$LINENO
23114 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23115 test "x$as_lineno_1" != "x$as_lineno_2" &&
23116 test "x$as_lineno_3" = "x$as_lineno_2" || {
23117 # Find who we are. Look in the path if we contain no path at all
23120 *[\\/]* ) as_myself=$0 ;;
23121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23122 for as_dir in $PATH
23125 test -z "$as_dir" && as_dir=.
23126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23131 # We did not find ourselves, most probably we were run as `sh COMMAND'
23132 # in which case we are not to be found in the path.
23133 if test "x$as_myself" = x; then
23136 if test ! -f "$as_myself"; then
23137 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23138 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23139 { (exit 1); exit 1; }; }
23141 case $CONFIG_SHELL in
23143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23144 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23147 test -z "$as_dir" && as_dir=.
23148 for as_base in sh bash ksh sh5; do
23151 if ("$as_dir/$as_base" -c '
23152 as_lineno_1=$LINENO
23153 as_lineno_2=$LINENO
23154 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23155 test "x$as_lineno_1" != "x$as_lineno_2" &&
23156 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23157 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23158 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23159 CONFIG_SHELL=$as_dir/$as_base
23160 export CONFIG_SHELL
23161 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23169 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23170 # uniformly replaced by the line number. The first 'sed' inserts a
23171 # line-number line before each line; the second 'sed' does the real
23172 # work. The second script uses 'N' to pair each line-number line
23173 # with the numbered line, and appends trailing '-' during
23174 # substitution so that $LINENO is not a special case at line end.
23175 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23176 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23177 sed '=' <$as_myself |
23182 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23185 s,^['$as_cr_digits']*\n,,
23186 ' >$as_me.lineno &&
23187 chmod +x $as_me.lineno ||
23188 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23189 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23190 { (exit 1); exit 1; }; }
23192 # Don't try to exec as it changes $[0], causing all sort of problems
23193 # (the dirname of $[0] is not the place where we might find the
23194 # original and so on. Autoconf is especially sensible to this).
23196 # Exit status is that of the last command.
23201 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23202 *c*,-n*) ECHO_N= ECHO_C='
23204 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23205 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23208 if expr a : '\(a\)' >/dev/null 2>&1; then
23214 rm -f conf$$ conf$$.exe conf$$.file
23216 if ln -s conf$$.file conf$$ 2>/dev/null; then
23217 # We could just check for DJGPP; but this test a) works b) is more generic
23218 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23219 if test -f conf$$.exe; then
23220 # Don't use ln at all; we don't have any links
23225 elif ln conf$$.file conf$$ 2>/dev/null; then
23230 rm -f conf$$ conf$$.exe conf$$.file
23232 if mkdir -p . 2>/dev/null; then
23238 as_executable_p="test -f"
23240 # Sed expression to map a string onto a valid CPP name.
23241 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23243 # Sed expression to map a string onto a valid variable name.
23244 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23248 # We need space, tab and new line, in precisely that order.
23258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23259 # report actual input values of CONFIG_FILES etc. instead of their
23260 # values after options handling. Logging --version etc. is OK.
23264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23265 ## Running $as_me. ##
23270 This file was extended by [LLVM] $as_me [1.1], which was
23271 generated by GNU Autoconf 2.57. Invocation command line was
23273 CONFIG_FILES = $CONFIG_FILES
23274 CONFIG_HEADERS = $CONFIG_HEADERS
23275 CONFIG_LINKS = $CONFIG_LINKS
23276 CONFIG_COMMANDS = $CONFIG_COMMANDS
23280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23284 # Files that config.status was made for.
23285 if test -n "$ac_config_files"; then
23286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23289 if test -n "$ac_config_headers"; then
23290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23293 if test -n "$ac_config_links"; then
23294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23297 if test -n "$ac_config_commands"; then
23298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23301 cat >>$CONFIG_STATUS <<\_ACEOF
23304 \`$as_me' instantiates files from templates according to the
23305 current configuration.
23307 Usage: $0 [OPTIONS] [FILE]...
23309 -h, --help print this help, then exit
23310 -V, --version print version number, then exit
23311 -q, --quiet do not print progress messages
23312 -d, --debug don't remove temporary files
23313 --recheck update $as_me by reconfiguring in the same conditions
23314 --file=FILE[:TEMPLATE]
23315 instantiate the configuration file FILE
23316 --header=FILE[:TEMPLATE]
23317 instantiate the configuration header FILE
23319 Configuration files:
23322 Configuration headers:
23325 Configuration commands:
23328 Report bugs to <bug-autoconf@gnu.org>."
23331 cat >>$CONFIG_STATUS <<_ACEOF
23333 [LLVM] config.status [1.1]
23334 configured by $0, generated by GNU Autoconf 2.57,
23335 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23337 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23338 Free Software Foundation, Inc.
23339 This config.status script is free software; the Free Software Foundation
23340 gives unlimited permission to copy, distribute and modify it."
23345 cat >>$CONFIG_STATUS <<\_ACEOF
23346 # If no file are specified by the user, then we need to provide default
23347 # value. By we need to know if files were specified by the user.
23353 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23354 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23362 *) # This is not an option, so the user has probably given explicit
23365 ac_need_defaults=false;;
23369 # Handling of the options.
23371 cat >>$CONFIG_STATUS <<\_ACEOF
23372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23374 --version | --vers* | -V )
23375 echo "$ac_cs_version"; exit 0 ;;
23377 # Conflict between --help and --header
23378 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23379 Try \`$0 --help' for more information." >&5
23380 echo "$as_me: error: ambiguous option: $1
23381 Try \`$0 --help' for more information." >&2;}
23382 { (exit 1); exit 1; }; };;
23383 --help | --hel | -h )
23384 echo "$ac_cs_usage"; exit 0 ;;
23385 --debug | --d* | -d )
23387 --file | --fil | --fi | --f )
23389 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23390 ac_need_defaults=false;;
23391 --header | --heade | --head | --hea )
23393 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23394 ac_need_defaults=false;;
23395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23399 # This is an error.
23400 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23401 Try \`$0 --help' for more information." >&5
23402 echo "$as_me: error: unrecognized option: $1
23403 Try \`$0 --help' for more information." >&2;}
23404 { (exit 1); exit 1; }; } ;;
23406 *) ac_config_targets="$ac_config_targets $1" ;;
23412 ac_configure_extra_args=
23414 if $ac_cs_silent; then
23416 ac_configure_extra_args="$ac_configure_extra_args --silent"
23420 cat >>$CONFIG_STATUS <<_ACEOF
23421 if \$ac_cs_recheck; then
23422 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23423 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23428 cat >>$CONFIG_STATUS <<_ACEOF
23430 # INIT-COMMANDS section.
23433 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23434 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23435 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23436 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23437 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23438 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23439 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23440 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23441 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23442 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23443 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23444 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23445 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23446 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23447 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23448 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23449 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23450 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23451 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23452 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23453 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23454 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23455 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23456 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23457 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23458 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23459 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23460 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23461 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23462 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23463 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23464 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23465 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23466 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23467 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23468 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23469 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23470 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23471 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23472 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23473 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23474 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23475 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23476 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23477 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23478 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23479 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 for ac_config_target in $ac_config_targets
23488 case "$ac_config_target" in
23489 # Handling of arguments.
23490 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23491 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23492 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23493 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23494 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23495 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23496 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23497 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23498 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23499 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23500 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23501 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23502 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23503 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23504 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23505 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23506 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23507 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23508 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23509 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23510 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23511 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23512 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23513 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23514 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23515 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23516 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23517 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23518 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23519 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23520 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23521 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23522 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23523 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23524 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23525 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23526 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23527 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23528 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23529 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23530 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23531 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23532 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23533 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23534 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23535 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23536 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23537 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23538 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23539 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23540 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23541 { (exit 1); exit 1; }; };;
23545 # If the user did not use the arguments to specify the items to instantiate,
23546 # then the envvar interface is used. Set only those that are not.
23547 # We use the long form for the default assignment because of an extremely
23548 # bizarre bug on SunOS 4.1.3.
23549 if $ac_need_defaults; then
23550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23555 # Have a temporary directory for convenience. Make it in the build tree
23556 # simply because there is no reason to put it here, and in addition,
23557 # creating and moving files from /tmp can sometimes cause problems.
23558 # Create a temporary directory, and hook for its removal unless debugging.
23561 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23562 trap '{ (exit 1); exit 1; }' 1 2 13 15
23565 # Create a (secure) tmp directory for tmp files.
23568 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23569 test -n "$tmp" && test -d "$tmp"
23572 tmp=./confstat$$-$RANDOM
23573 (umask 077 && mkdir $tmp)
23576 echo "$me: cannot create a temporary directory in ." >&2
23577 { (exit 1); exit 1; }
23582 cat >>$CONFIG_STATUS <<_ACEOF
23585 # CONFIG_FILES section.
23588 # No need to generate the scripts if there are no CONFIG_FILES.
23589 # This happens for instance when ./config.status config.h
23590 if test -n "\$CONFIG_FILES"; then
23591 # Protect against being on the right side of a sed subst in config.status.
23592 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23593 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23594 s,@SHELL@,$SHELL,;t t
23595 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23596 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23597 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23598 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23599 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23600 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23601 s,@exec_prefix@,$exec_prefix,;t t
23602 s,@prefix@,$prefix,;t t
23603 s,@program_transform_name@,$program_transform_name,;t t
23604 s,@bindir@,$bindir,;t t
23605 s,@sbindir@,$sbindir,;t t
23606 s,@libexecdir@,$libexecdir,;t t
23607 s,@datadir@,$datadir,;t t
23608 s,@sysconfdir@,$sysconfdir,;t t
23609 s,@sharedstatedir@,$sharedstatedir,;t t
23610 s,@localstatedir@,$localstatedir,;t t
23611 s,@libdir@,$libdir,;t t
23612 s,@includedir@,$includedir,;t t
23613 s,@oldincludedir@,$oldincludedir,;t t
23614 s,@infodir@,$infodir,;t t
23615 s,@mandir@,$mandir,;t t
23616 s,@build_alias@,$build_alias,;t t
23617 s,@host_alias@,$host_alias,;t t
23618 s,@target_alias@,$target_alias,;t t
23619 s,@DEFS@,$DEFS,;t t
23620 s,@ECHO_C@,$ECHO_C,;t t
23621 s,@ECHO_N@,$ECHO_N,;t t
23622 s,@ECHO_T@,$ECHO_T,;t t
23623 s,@LIBS@,$LIBS,;t t
23624 s,@subdirs@,$subdirs,;t t
23625 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23626 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23627 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23628 s,@build@,$build,;t t
23629 s,@build_cpu@,$build_cpu,;t t
23630 s,@build_vendor@,$build_vendor,;t t
23631 s,@build_os@,$build_os,;t t
23632 s,@host@,$host,;t t
23633 s,@host_cpu@,$host_cpu,;t t
23634 s,@host_vendor@,$host_vendor,;t t
23635 s,@host_os@,$host_os,;t t
23636 s,@target@,$target,;t t
23637 s,@target_cpu@,$target_cpu,;t t
23638 s,@target_vendor@,$target_vendor,;t t
23639 s,@target_os@,$target_os,;t t
23641 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23642 s,@ARCH@,$ARCH,;t t
23644 s,@CXXFLAGS@,$CXXFLAGS,;t t
23645 s,@LDFLAGS@,$LDFLAGS,;t t
23646 s,@CPPFLAGS@,$CPPFLAGS,;t t
23647 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23648 s,@EXEEXT@,$EXEEXT,;t t
23649 s,@OBJEXT@,$OBJEXT,;t t
23651 s,@CFLAGS@,$CFLAGS,;t t
23652 s,@ac_ct_CC@,$ac_ct_CC,;t t
23654 s,@ifGNUmake@,$ifGNUmake,;t t
23656 s,@LEXLIB@,$LEXLIB,;t t
23657 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23658 s,@YACC@,$YACC,;t t
23659 s,@EGREP@,$EGREP,;t t
23660 s,@LN_S@,$LN_S,;t t
23661 s,@ECHO@,$ECHO,;t t
23663 s,@ac_ct_AR@,$ac_ct_AR,;t t
23664 s,@RANLIB@,$RANLIB,;t t
23665 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23666 s,@STRIP@,$STRIP,;t t
23667 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23668 s,@CXXCPP@,$CXXCPP,;t t
23670 s,@FFLAGS@,$FFLAGS,;t t
23671 s,@ac_ct_F77@,$ac_ct_F77,;t t
23672 s,@LIBTOOL@,$LIBTOOL,;t t
23673 s,@RPWD@,$RPWD,;t t
23676 s,@MKDIR@,$MKDIR,;t t
23677 s,@DATE@,$DATE,;t t
23680 s,@ETAGS@,$ETAGS,;t t
23681 s,@PYTHON@,$PYTHON,;t t
23682 s,@QMTEST@,$QMTEST,;t t
23683 s,@ALLOCA@,$ALLOCA,;t t
23684 s,@LIBOBJS@,$LIBOBJS,;t t
23685 s,@MMAP_FILE@,$MMAP_FILE,;t t
23686 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23687 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23688 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23689 s,@USE_SPEC@,$USE_SPEC,;t t
23691 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23694 s,@PAPIDIR@,$PAPIDIR,;t t
23695 s,@PURIFY@,$PURIFY,;t t
23696 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23701 cat >>$CONFIG_STATUS <<\_ACEOF
23702 # Split the substitutions into bite-sized pieces for seds with
23703 # small command number limits, like on Digital OSF/1 and HP-UX.
23704 ac_max_sed_lines=48
23705 ac_sed_frag=1 # Number of current file.
23706 ac_beg=1 # First line for current file.
23707 ac_end=$ac_max_sed_lines # Line after last line for current file.
23710 while $ac_more_lines; do
23711 if test $ac_beg -gt 1; then
23712 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23714 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23716 if test ! -s $tmp/subs.frag; then
23717 ac_more_lines=false
23719 # The purpose of the label and of the branching condition is to
23720 # speed up the sed processing (if there are no `@' at all, there
23721 # is no need to browse any of the substitutions).
23722 # These are the two extra sed commands mentioned above.
23724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23725 if test -z "$ac_sed_cmds"; then
23726 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23728 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23730 ac_sed_frag=`expr $ac_sed_frag + 1`
23732 ac_end=`expr $ac_end + $ac_max_sed_lines`
23735 if test -z "$ac_sed_cmds"; then
23738 fi # test -n "$CONFIG_FILES"
23741 cat >>$CONFIG_STATUS <<\_ACEOF
23742 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23745 - | *:- | *:-:* ) # input from stdin
23747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23751 * ) ac_file_in=$ac_file.in ;;
23754 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23755 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23757 X"$ac_file" : 'X\(//\)[^/]' \| \
23758 X"$ac_file" : 'X\(//\)$' \| \
23759 X"$ac_file" : 'X\(/\)' \| \
23760 . : '\(.\)' 2>/dev/null ||
23762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23764 /^X\(\/\/\)$/{ s//\1/; q; }
23765 /^X\(\/\).*/{ s//\1/; q; }
23767 { if $as_mkdir_p; then
23772 while test ! -d "$as_dir"; do
23773 as_dirs="$as_dir $as_dirs"
23774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776 X"$as_dir" : 'X\(//\)[^/]' \| \
23777 X"$as_dir" : 'X\(//\)$' \| \
23778 X"$as_dir" : 'X\(/\)' \| \
23779 . : '\(.\)' 2>/dev/null ||
23781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23783 /^X\(\/\/\)$/{ s//\1/; q; }
23784 /^X\(\/\).*/{ s//\1/; q; }
23787 test ! -n "$as_dirs" || mkdir $as_dirs
23788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23790 { (exit 1); exit 1; }; }; }
23794 if test "$ac_dir" != .; then
23795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23796 # A "../" for each directory in $ac_dir_suffix.
23797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23799 ac_dir_suffix= ac_top_builddir=
23803 .) # No --srcdir option. We are building in place.
23805 if test -z "$ac_top_builddir"; then
23808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23810 [\\/]* | ?:[\\/]* ) # Absolute path.
23811 ac_srcdir=$srcdir$ac_dir_suffix;
23812 ac_top_srcdir=$srcdir ;;
23813 *) # Relative path.
23814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23817 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23819 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23820 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23821 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23822 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23826 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23827 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23830 if test x"$ac_file" != x-; then
23831 { echo "$as_me:$LINENO: creating $ac_file" >&5
23832 echo "$as_me: creating $ac_file" >&6;}
23835 # Let's still pretend it is `configure' which instantiates (i.e., don't
23836 # use $as_me), people would be surprised to read:
23837 # /* config.h. Generated by config.status. */
23838 if test x"$ac_file" = x-; then
23841 configure_input="$ac_file. "
23843 configure_input=$configure_input"Generated from `echo $ac_file_in |
23844 sed 's,.*/,,'` by configure."
23846 # First look for the input files in the build tree, otherwise in the
23848 ac_file_inputs=`IFS=:
23849 for f in $ac_file_in; do
23851 -) echo $tmp/stdin ;;
23853 # Absolute (can't be DOS-style, as IFS=:)
23854 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23855 echo "$as_me: error: cannot find input file: $f" >&2;}
23856 { (exit 1); exit 1; }; }
23859 if test -f "$f"; then
23862 elif test -f "$srcdir/$f"; then
23867 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23868 echo "$as_me: error: cannot find input file: $f" >&2;}
23869 { (exit 1); exit 1; }; }
23872 done` || { (exit 1); exit 1; }
23874 cat >>$CONFIG_STATUS <<_ACEOF
23878 cat >>$CONFIG_STATUS <<\_ACEOF
23880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23881 s,@configure_input@,$configure_input,;t t
23882 s,@srcdir@,$ac_srcdir,;t t
23883 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23884 s,@top_srcdir@,$ac_top_srcdir,;t t
23885 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23886 s,@builddir@,$ac_builddir,;t t
23887 s,@abs_builddir@,$ac_abs_builddir,;t t
23888 s,@top_builddir@,$ac_top_builddir,;t t
23889 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23890 s,@INSTALL@,$ac_INSTALL,;t t
23891 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23893 if test x"$ac_file" != x-; then
23894 mv $tmp/out $ac_file
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23905 # CONFIG_HEADER section.
23908 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23909 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23911 # ac_d sets the value in "#define NAME VALUE" lines.
23912 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23913 ac_dB='[ ].*$,\1#\2'
23916 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23917 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23918 ac_uB='$,\1#\2define\3'
23922 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23923 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23925 - | *:- | *:-:* ) # input from stdin
23927 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23929 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23931 * ) ac_file_in=$ac_file.in ;;
23934 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23935 echo "$as_me: creating $ac_file" >&6;}
23937 # First look for the input files in the build tree, otherwise in the
23939 ac_file_inputs=`IFS=:
23940 for f in $ac_file_in; do
23942 -) echo $tmp/stdin ;;
23944 # Absolute (can't be DOS-style, as IFS=:)
23945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23946 echo "$as_me: error: cannot find input file: $f" >&2;}
23947 { (exit 1); exit 1; }; }
23950 if test -f "$f"; then
23953 elif test -f "$srcdir/$f"; then
23958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23959 echo "$as_me: error: cannot find input file: $f" >&2;}
23960 { (exit 1); exit 1; }; }
23963 done` || { (exit 1); exit 1; }
23964 # Remove the trailing spaces.
23965 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23970 # `conftest.undefs', that substitutes the proper values into
23971 # config.h.in to produce config.h. The first handles `#define'
23972 # templates, and the second `#undef' templates.
23973 # And first: Protect against being on the right side of a sed subst in
23974 # config.status. Protect against being in an unquoted here document
23975 # in config.status.
23976 rm -f conftest.defines conftest.undefs
23977 # Using a here document instead of a string reduces the quoting nightmare.
23978 # Putting comments in sed scripts is not portable.
23980 # `end' is used to avoid that the second main sed command (meant for
23981 # 0-ary CPP macros) applies to n-ary macro definitions.
23982 # See the Autoconf documentation for `clear'.
23983 cat >confdef2sed.sed <<\_ACEOF
23988 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23990 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23993 # If some macros were called several times there might be several times
23994 # the same #defines, which is useless. Nevertheless, we may not want to
23995 # sort them, since we want the *last* AC-DEFINE to be honored.
23996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23998 rm -f confdef2sed.sed
24000 # This sed command replaces #undef with comments. This is necessary, for
24001 # example, in the case of _POSIX_SOURCE, which is predefined and required
24002 # on some systems where configure will not decide to define it.
24003 cat >>conftest.undefs <<\_ACEOF
24004 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24007 # Break up conftest.defines because some shells have a limit on the size
24008 # of here documents, and old seds have small limits too (100 cmds).
24009 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24010 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24011 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24012 echo ' :' >>$CONFIG_STATUS
24013 rm -f conftest.tail
24014 while grep . conftest.defines >/dev/null
24016 # Write a limited-size here document to $tmp/defines.sed.
24017 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24018 # Speed up: don't consider the non `#define' lines.
24019 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24020 # Work around the forget-to-reset-the-flag bug.
24021 echo 't clr' >>$CONFIG_STATUS
24022 echo ': clr' >>$CONFIG_STATUS
24023 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24025 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24027 mv $tmp/out $tmp/in
24029 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24030 rm -f conftest.defines
24031 mv conftest.tail conftest.defines
24033 rm -f conftest.defines
24034 echo ' fi # grep' >>$CONFIG_STATUS
24035 echo >>$CONFIG_STATUS
24037 # Break up conftest.undefs because some shells have a limit on the size
24038 # of here documents, and old seds have small limits too (100 cmds).
24039 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24040 rm -f conftest.tail
24041 while grep . conftest.undefs >/dev/null
24043 # Write a limited-size here document to $tmp/undefs.sed.
24044 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24045 # Speed up: don't consider the non `#undef'
24046 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24047 # Work around the forget-to-reset-the-flag bug.
24048 echo 't clr' >>$CONFIG_STATUS
24049 echo ': clr' >>$CONFIG_STATUS
24050 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24052 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24054 mv $tmp/out $tmp/in
24056 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24057 rm -f conftest.undefs
24058 mv conftest.tail conftest.undefs
24060 rm -f conftest.undefs
24062 cat >>$CONFIG_STATUS <<\_ACEOF
24063 # Let's still pretend it is `configure' which instantiates (i.e., don't
24064 # use $as_me), people would be surprised to read:
24065 # /* config.h. Generated by config.status. */
24066 if test x"$ac_file" = x-; then
24067 echo "/* Generated by configure. */" >$tmp/config.h
24069 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24071 cat $tmp/in >>$tmp/config.h
24073 if test x"$ac_file" != x-; then
24074 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24076 echo "$as_me: $ac_file is unchanged" >&6;}
24078 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080 X"$ac_file" : 'X\(//\)[^/]' \| \
24081 X"$ac_file" : 'X\(//\)$' \| \
24082 X"$ac_file" : 'X\(/\)' \| \
24083 . : '\(.\)' 2>/dev/null ||
24085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087 /^X\(\/\/\)$/{ s//\1/; q; }
24088 /^X\(\/\).*/{ s//\1/; q; }
24090 { if $as_mkdir_p; then
24095 while test ! -d "$as_dir"; do
24096 as_dirs="$as_dir $as_dirs"
24097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24099 X"$as_dir" : 'X\(//\)[^/]' \| \
24100 X"$as_dir" : 'X\(//\)$' \| \
24101 X"$as_dir" : 'X\(/\)' \| \
24102 . : '\(.\)' 2>/dev/null ||
24104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24106 /^X\(\/\/\)$/{ s//\1/; q; }
24107 /^X\(\/\).*/{ s//\1/; q; }
24110 test ! -n "$as_dirs" || mkdir $as_dirs
24111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24113 { (exit 1); exit 1; }; }; }
24116 mv $tmp/config.h $ac_file
24120 rm -f $tmp/config.h
24124 cat >>$CONFIG_STATUS <<\_ACEOF
24127 # CONFIG_COMMANDS section.
24129 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24130 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24131 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24132 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24133 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24134 X"$ac_dest" : 'X\(//\)[^/]' \| \
24135 X"$ac_dest" : 'X\(//\)$' \| \
24136 X"$ac_dest" : 'X\(/\)' \| \
24137 . : '\(.\)' 2>/dev/null ||
24139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24141 /^X\(\/\/\)$/{ s//\1/; q; }
24142 /^X\(\/\).*/{ s//\1/; q; }
24146 if test "$ac_dir" != .; then
24147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24148 # A "../" for each directory in $ac_dir_suffix.
24149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24151 ac_dir_suffix= ac_top_builddir=
24155 .) # No --srcdir option. We are building in place.
24157 if test -z "$ac_top_builddir"; then
24160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24162 [\\/]* | ?:[\\/]* ) # Absolute path.
24163 ac_srcdir=$srcdir$ac_dir_suffix;
24164 ac_top_srcdir=$srcdir ;;
24165 *) # Relative path.
24166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24169 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24171 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24172 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24173 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24174 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24177 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24178 echo "$as_me: executing $ac_dest commands" >&6;}
24180 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24181 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24182 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24183 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24184 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24185 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24186 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24187 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24188 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24189 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24190 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24191 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24192 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24193 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24194 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24195 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24196 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24197 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24198 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24199 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24200 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24201 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24202 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24203 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24204 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24205 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24206 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 ;;
24207 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24208 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24209 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 ;;
24210 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 ;;
24211 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 ;;
24212 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 ;;
24213 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 ;;
24214 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 ;;
24215 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 ;;
24216 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 ;;
24217 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 ;;
24218 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 ;;
24219 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 ;;
24220 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 ;;
24221 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 ;;
24222 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24223 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24224 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24225 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24226 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24231 cat >>$CONFIG_STATUS <<\_ACEOF
24233 { (exit 0); exit 0; }
24235 chmod +x $CONFIG_STATUS
24236 ac_clean_files=$ac_clean_files_save
24239 # configure is writing to config.log, and then calls config.status.
24240 # config.status does its own redirection, appending to config.log.
24241 # Unfortunately, on DOS this fails, as config.log is still kept open
24242 # by configure, so config.status won't be able to write to it; its
24243 # output is simply discarded. So we exec the FD to /dev/null,
24244 # effectively closing config.log, so it can be properly (re)opened and
24245 # appended to by config.status. When coming back to configure, we
24246 # need to make the FD available again.
24247 if test "$no_create" != yes; then
24249 ac_config_status_args=
24250 test "$silent" = yes &&
24251 ac_config_status_args="$ac_config_status_args --quiet"
24253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24256 # would make configure fail if this is the last instruction.
24257 $ac_cs_success || { (exit 1); exit 1; }
24261 # CONFIG_SUBDIRS section.
24263 if test "$no_recursion" != yes; then
24265 # Remove --cache-file and --srcdir arguments so they do not pile up.
24266 ac_sub_configure_args=
24268 for ac_arg in $ac_configure_args; do
24269 if test -n "$ac_prev"; then
24274 -cache-file | --cache-file | --cache-fil | --cache-fi \
24275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24276 ac_prev=cache_file ;;
24277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24281 --config-cache | -C)
24283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24291 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24295 # Always prepend --prefix to ensure using the same prefix
24296 # in subdir configurations.
24297 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24300 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24302 # Do not complain, so a configure script can configure whichever
24303 # parts of a large source tree are present.
24304 test -d $srcdir/$ac_dir || continue
24306 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24307 echo "$as_me: configuring in $ac_dir" >&6;}
24308 { if $as_mkdir_p; then
24313 while test ! -d "$as_dir"; do
24314 as_dirs="$as_dir $as_dirs"
24315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317 X"$as_dir" : 'X\(//\)[^/]' \| \
24318 X"$as_dir" : 'X\(//\)$' \| \
24319 X"$as_dir" : 'X\(/\)' \| \
24320 . : '\(.\)' 2>/dev/null ||
24322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24324 /^X\(\/\/\)$/{ s//\1/; q; }
24325 /^X\(\/\).*/{ s//\1/; q; }
24328 test ! -n "$as_dirs" || mkdir $as_dirs
24329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24331 { (exit 1); exit 1; }; }; }
24335 if test "$ac_dir" != .; then
24336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24337 # A "../" for each directory in $ac_dir_suffix.
24338 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24340 ac_dir_suffix= ac_top_builddir=
24344 .) # No --srcdir option. We are building in place.
24346 if test -z "$ac_top_builddir"; then
24349 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24351 [\\/]* | ?:[\\/]* ) # Absolute path.
24352 ac_srcdir=$srcdir$ac_dir_suffix;
24353 ac_top_srcdir=$srcdir ;;
24354 *) # Relative path.
24355 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24356 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24358 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24360 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24361 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24362 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24363 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24368 # Check for guested configure; otherwise get Cygnus style configure.
24369 if test -f $ac_srcdir/configure.gnu; then
24370 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24371 elif test -f $ac_srcdir/configure; then
24372 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24373 elif test -f $ac_srcdir/configure.in; then
24374 ac_sub_configure=$ac_configure
24376 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24377 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24381 # The recursion is here.
24382 if test -n "$ac_sub_configure"; then
24383 # Make the cache file name correct relative to the subdirectory.
24384 case $cache_file in
24385 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24386 *) # Relative path.
24387 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24390 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24391 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24392 # The eval makes quoting arguments work.
24393 eval $ac_sub_configure $ac_sub_configure_args \
24394 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24395 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24396 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24397 { (exit 1); exit 1; }; }
24405 if test $llvmgccwarn = yes
24407 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24408 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24409 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24410 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24411 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24412 echo "$as_me: WARNING: ***** " >&2;}
24413 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24414 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24415 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24416 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24417 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24418 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}