2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
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.3]'
426 PACKAGE_STRING='[LLVM] [1.3]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_unique_file=""Makefile.config.in""
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures [LLVM] [1.3] 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.3]:";;
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
1032 --disable-libtool-lock avoid locking (might break parallel builds)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
1037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
1039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1040 --enable-jit Enable Just In Time Compiling (default is YES)
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1134 [LLVM] configure [1.3]
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.3], 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.aa.report"
1577 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1580 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1583 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1607 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1610 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1622 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1667 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1676 ac_config_commands="$ac_config_commands tools/Makefile"
1679 ac_config_commands="$ac_config_commands utils/Makefile"
1682 ac_config_commands="$ac_config_commands projects/Makefile"
1686 # Find a good install program. We prefer a C program (faster),
1687 # so one script is as good as another. But avoid the broken or
1688 # incompatible versions:
1689 # SysV /etc/install, /usr/sbin/install
1690 # SunOS /usr/etc/install
1691 # IRIX /sbin/install
1693 # AmigaOS /C/install, which installs bootblocks on floppy discs
1694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697 # ./install, which can be erroneously created by make from ./install.sh.
1698 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1700 if test -z "$INSTALL"; then
1701 if test "${ac_cv_path_install+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 # Account for people who put trailing slashes in PATH elements.
1711 ./ | .// | /cC/* | \
1712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1715 # OSF1 and SCO ODT 3.0 have their own names for install.
1716 # Don't use installbsd from OSF since it installs stuff as root
1718 for ac_prog in ginstall scoinst install; do
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721 if test $ac_prog = install &&
1722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723 # AIX install. It has an incompatible calling convention.
1725 elif test $ac_prog = install &&
1726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727 # program-specific install script used by HP pwplus--don't use.
1730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742 if test "${ac_cv_path_install+set}" = set; then
1743 INSTALL=$ac_cv_path_install
1745 # As a last resort, use the slow shell script. We don't cache a
1746 # path for INSTALL within a source directory, because that will
1747 # break other packages using the cache if that directory is
1748 # removed, or if the path is relative.
1749 INSTALL=$ac_install_sh
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1764 # Make sure we can run config.sub.
1765 $ac_config_sub sun4 >/dev/null 2>&1 ||
1766 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768 { (exit 1); exit 1; }; }
1770 echo "$as_me:$LINENO: checking build system type" >&5
1771 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772 if test "${ac_cv_build+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 ac_cv_build_alias=$build_alias
1776 test -z "$ac_cv_build_alias" &&
1777 ac_cv_build_alias=`$ac_config_guess`
1778 test -z "$ac_cv_build_alias" &&
1779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781 { (exit 1); exit 1; }; }
1782 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785 { (exit 1); exit 1; }; }
1788 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789 echo "${ECHO_T}$ac_cv_build" >&6
1791 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1796 echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 ac_cv_host_alias=$host_alias
1802 test -z "$ac_cv_host_alias" &&
1803 ac_cv_host_alias=$ac_cv_build_alias
1804 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1806 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1811 echo "${ECHO_T}$ac_cv_host" >&6
1813 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1814 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1815 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1818 echo "$as_me:$LINENO: checking target system type" >&5
1819 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1820 if test "${ac_cv_target+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 ac_cv_target_alias=$target_alias
1824 test "x$ac_cv_target_alias" = "x" &&
1825 ac_cv_target_alias=$ac_cv_host_alias
1826 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1827 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1828 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1829 { (exit 1); exit 1; }; }
1832 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1833 echo "${ECHO_T}$ac_cv_target" >&6
1834 target=$ac_cv_target
1835 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1836 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1837 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1840 # The aliases save the names the user supplied, while $host etc.
1841 # will get canonicalized.
1842 test -n "$target_alias" &&
1843 test "$program_prefix$program_suffix$program_transform_name" = \
1845 program_prefix=${target_alias}-
1851 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1853 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1861 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1863 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1879 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1888 sparc*-*) ARCH=Sparc
1891 powerpc*-*) ARCH=PowerPC
1900 ac_cpp='$CXXCPP $CPPFLAGS'
1901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CXX+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$CXX"; then
1915 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$CXX"; then
1935 echo "$as_me:$LINENO: result: $CXX" >&5
1936 echo "${ECHO_T}$CXX" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1942 test -n "$CXX" && break
1945 if test -z "$CXX"; then
1947 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1949 # Extract the first word of "$ac_prog", so it can be a program name with args.
1950 set dummy $ac_prog; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$ac_ct_CXX"; then
1957 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_ac_ct_CXX="$ac_prog"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1976 if test -n "$ac_ct_CXX"; then
1977 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1978 echo "${ECHO_T}$ac_ct_CXX" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1984 test -n "$ac_ct_CXX" && break
1986 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1992 # Provide some information about the compiler.
1993 echo "$as_me:$LINENO:" \
1994 "checking for C++ compiler version" >&5
1995 ac_compiler=`set X $ac_compile; echo $2`
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997 (eval $ac_compiler --version </dev/null >&5) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002 (eval $ac_compiler -v </dev/null >&5) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2007 (eval $ac_compiler -V </dev/null >&5) 2>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2028 ac_clean_files_save=$ac_clean_files
2029 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2030 # Try to create an executable without -o first, disregard a.out.
2031 # It will help us diagnose broken compilers, and finding out an intuition
2033 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2034 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2035 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2037 (eval $ac_link_default) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; then
2041 # Find the output, starting from the most likely. This scheme is
2042 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045 # Be careful to initialize this variable, since it used to be cached.
2046 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048 # b.out is created by i960 compilers.
2049 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2051 test -f "$ac_file" || continue
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056 # This is the source file.
2059 # We found the default executable, but exeext='' is most
2063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2064 # FIXME: I believe we export ac_cv_exeext for Libtool,
2065 # but it would be cool to find out if it's true. Does anybody
2066 # maintain Libtool? --akim.
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2077 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: C++ compiler cannot create executables
2080 See \`config.log' for more details." >&2;}
2081 { (exit 77); exit 77; }; }
2084 ac_exeext=$ac_cv_exeext
2085 echo "$as_me:$LINENO: result: $ac_file" >&5
2086 echo "${ECHO_T}$ac_file" >&6
2088 # Check the compiler produces executables we can run. If not, either
2089 # the compiler is broken, or we cross compile.
2090 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2091 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2092 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2093 # If not cross compiling, check that we can run a simple program.
2094 if test "$cross_compiling" != yes; then
2095 if { ac_try='./$ac_file'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2103 if test "$cross_compiling" = maybe; then
2106 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2107 If you meant to cross compile, use \`--host'.
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot run C++ compiled programs.
2110 If you meant to cross compile, use \`--host'.
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2116 echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6
2119 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2120 ac_clean_files=$ac_clean_files_save
2121 # Check the compiler produces executables we can run. If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2124 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2125 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2126 echo "${ECHO_T}$cross_compiling" >&6
2128 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2129 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131 (eval $ac_link) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2137 # work properly (i.e., refer to `conftest.exe'), while it won't with
2139 for ac_file in conftest.exe conftest conftest.*; do
2140 test -f "$ac_file" || continue
2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2157 rm -f conftest$ac_cv_exeext
2158 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2159 echo "${ECHO_T}$ac_cv_exeext" >&6
2161 rm -f conftest.$ac_ext
2162 EXEEXT=$ac_cv_exeext
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2185 rm -f conftest.o conftest.obj
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2194 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2205 See \`config.log' for more details." >&2;}
2206 { (exit 1); exit 1; }; }
2209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2211 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2212 echo "${ECHO_T}$ac_cv_objext" >&6
2213 OBJEXT=$ac_cv_objext
2215 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #line $LINENO "configure"
2224 cat confdefs.h >>conftest.$ac_ext
2225 cat >>conftest.$ac_ext <<_ACEOF
2226 /* end confdefs.h. */
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
2245 { ac_try='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2258 rm -f conftest.$ac_objext conftest.$ac_ext
2259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2262 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2263 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2264 GXX=`test $ac_compiler_gnu = yes && echo yes`
2265 ac_test_CXXFLAGS=${CXXFLAGS+set}
2266 ac_save_CXXFLAGS=$CXXFLAGS
2268 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2269 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cxx_g+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cxx_g=yes
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2312 if test "$ac_test_CXXFLAGS" = set; then
2313 CXXFLAGS=$ac_save_CXXFLAGS
2314 elif test $ac_cv_prog_cxx_g = yes; then
2315 if test "$GXX" = yes; then
2321 if test "$GXX" = yes; then
2327 for ac_declaration in \
2329 '#include <stdlib.h>' \
2330 'extern "C" void std::exit (int) throw (); using std::exit;' \
2331 'extern "C" void std::exit (int); using std::exit;' \
2332 'extern "C" void exit (int) throw ();' \
2333 'extern "C" void exit (int);' \
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2372 rm -f conftest.$ac_objext conftest.$ac_ext
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2410 if test -n "$ac_declaration"; then
2411 echo '#ifdef __cplusplus' >>confdefs.h
2412 echo $ac_declaration >>confdefs.h
2413 echo '#endif' >>confdefs.h
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 if test -n "$CC"; then
2458 echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$CC" && break
2468 if test -z "$CC"; then
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_ac_ct_CC="$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 test -n "$ac_ct_CC" && break
2514 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2520 # Provide some information about the compiler.
2521 echo "$as_me:$LINENO:" \
2522 "checking for C compiler version" >&5
2523 ac_compiler=`set X $ac_compile; echo $2`
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525 (eval $ac_compiler --version </dev/null >&5) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530 (eval $ac_compiler -v </dev/null >&5) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535 (eval $ac_compiler -V </dev/null >&5) 2>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2540 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2583 rm -f conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2635 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2637 if test "$ac_test_CFLAGS" = set; then
2638 CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640 if test "$GCC" = yes; then
2646 if test "$GCC" = yes; then
2652 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2653 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 ac_cv_prog_cc_stdc=no
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 #include <sys/types.h>
2669 #include <sys/stat.h>
2670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671 struct buf { int x; };
2672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673 static char *e (p, i)
2679 static char *f (char * (*g) (char **, int), char **p, ...)
2684 s = g (p, va_arg (v,int));
2688 int test (int i, double x);
2689 struct s1 {int (*f) (int a);};
2690 struct s2 {int (*f) (double a);};
2691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2702 # Don't try gcc -ansi; that turns off useful extensions and
2703 # breaks some systems' header files.
2704 # AIX -qlanglvl=ansi
2705 # Ultrix and OSF/1 -std1
2706 # HP-UX 10.20 and later -Ae
2707 # HP-UX older versions -Aa -D_HPUX_SOURCE
2708 # SVR4 -Xc -D__EXTENSIONS__
2709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2711 CC="$ac_save_CC $ac_arg"
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 ac_cv_prog_cc_stdc=$ac_arg
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.$ac_objext
2733 rm -f conftest.$ac_ext conftest.$ac_objext
2738 case "x$ac_cv_prog_cc_stdc" in
2740 echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6 ;;
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2745 CC="$CC $ac_cv_prog_cc_stdc" ;;
2748 # Some people use a C++ compiler to compile C. Since we use `exit',
2749 # in C++ we need to declare it. In case someone uses the same compiler
2750 # for both compiling C and C++ we need to have the C++ compiler decide
2751 # the declaration of exit, since it's the most demanding environment.
2752 cat >conftest.$ac_ext <<_ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 for ac_declaration in \
2771 '#include <stdlib.h>' \
2772 'extern "C" void std::exit (int) throw (); using std::exit;' \
2773 'extern "C" void std::exit (int); using std::exit;' \
2774 'extern "C" void exit (int) throw ();' \
2775 'extern "C" void exit (int);' \
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2815 cat >conftest.$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2849 rm -f conftest.$ac_objext conftest.$ac_ext
2852 if test -n "$ac_declaration"; then
2853 echo '#ifdef __cplusplus' >>confdefs.h
2854 echo $ac_declaration >>confdefs.h
2855 echo '#endif' >>confdefs.h
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f conftest.$ac_objext conftest.$ac_ext
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.$ac_ext <<_ACEOF
2898 #line $LINENO "configure"
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 # include <limits.h>
2907 # include <assert.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1 >conftest.err
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2927 if test -z "$ac_cpp_err"; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Passes both tests.
2976 rm -f conftest.err conftest.$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2996 for ac_c_preproc_warn_flag in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3012 # include <limits.h>
3014 # include <assert.h>
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 if test "$GCC" != "yes"
3107 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3108 echo "$as_me: error: gcc required but not found" >&2;}
3109 { (exit 1); exit 1; }; }
3111 if test "$GXX" != "yes"
3113 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3114 echo "$as_me: error: g++ required but not found" >&2;}
3115 { (exit 1); exit 1; }; }
3118 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3119 if test "$gccmajor" -lt "3"
3121 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3122 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3123 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: checking for GNU make" >&5
3127 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3128 if test "${_cv_gnu_make_command+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 _cv_gnu_make_command='' ;
3132 for a in "$MAKE" make gmake gnumake ; do
3133 if test -z "$a" ; then continue ; fi ;
3134 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3135 _cv_gnu_make_command=$a ;
3141 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3142 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3143 if test "x$_cv_gnu_make_command" != "x" ; then
3147 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3148 echo "${ECHO_T}\"Not found\"" >&6;
3152 if test -z "$_cv_gnu_make_command"
3154 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3155 echo "$as_me: error: GNU Make required but not found" >&2;}
3156 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: checking " >&5
3161 echo $ECHO_N "checking ... $ECHO_C" >&6
3162 if test "${ac_cv_has_flex+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 for ac_prog in flex lex
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_LEX+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 if test -n "$LEX"; then
3175 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_LEX="$ac_prog"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test -n "$LEX"; then
3195 echo "$as_me:$LINENO: result: $LEX" >&5
3196 echo "${ECHO_T}$LEX" >&6
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3202 test -n "$LEX" && break
3204 test -n "$LEX" || LEX=":"
3206 if test -z "$LEXLIB"
3208 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3209 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3210 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_check_lib_save_LIBS=$LIBS
3215 cat >conftest.$ac_ext <<_ACEOF
3216 #line $LINENO "configure"
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3223 /* Override any gcc2 internal prototype to avoid an error. */
3227 /* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3238 rm -f conftest.$ac_objext conftest$ac_exeext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -s conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_lib_fl_yywrap=yes
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 ac_cv_lib_fl_yywrap=no
3257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3258 LIBS=$ac_check_lib_save_LIBS
3260 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3261 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3262 if test $ac_cv_lib_fl_yywrap = yes; then
3265 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3266 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3267 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 ac_check_lib_save_LIBS=$LIBS
3272 cat >conftest.$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3280 /* Override any gcc2 internal prototype to avoid an error. */
3284 /* We use char because int might match the return type of a gcc2
3285 builtin and then its argument prototype would still apply. */
3295 rm -f conftest.$ac_objext conftest$ac_exeext
3296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3297 (eval $ac_link) 2>&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
3301 { ac_try='test -s conftest$ac_exeext'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
3307 ac_cv_lib_l_yywrap=yes
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 ac_cv_lib_l_yywrap=no
3314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 LIBS=$ac_check_lib_save_LIBS
3317 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3318 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3319 if test $ac_cv_lib_l_yywrap = yes; then
3327 if test "x$LEX" != "x:"; then
3328 echo "$as_me:$LINENO: checking lex output file root" >&5
3329 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3330 if test "${ac_cv_prog_lex_root+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 # The minimal lex program is just a single line: %%. But some broken lexes
3334 # (Solaris, I think it was) want two %% lines, so accommodate them.
3335 cat >conftest.l <<_ACEOF
3339 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3340 (eval $LEX conftest.l) 2>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }
3344 if test -f lex.yy.c; then
3345 ac_cv_prog_lex_root=lex.yy
3346 elif test -f lexyy.c; then
3347 ac_cv_prog_lex_root=lexyy
3349 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3350 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3351 { (exit 1); exit 1; }; }
3354 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3355 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3357 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3359 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3360 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3361 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 # POSIX says lex can declare yytext either as a pointer or an array; the
3365 # default is implementation-dependent. Figure out which it is, since
3366 # not all implementations provide the %pointer and %array declarations.
3367 ac_cv_prog_lex_yytext_pointer=no
3368 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3370 LIBS="$LIBS $LEXLIB"
3371 cat >conftest.$ac_ext <<_ACEOF
3372 `cat $LEX_OUTPUT_ROOT.c`
3374 rm -f conftest.$ac_objext conftest$ac_exeext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376 (eval $ac_link) 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -s conftest$ac_exeext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_prog_lex_yytext_pointer=yes
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3394 rm -f "${LEX_OUTPUT_ROOT}.c"
3397 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3398 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3401 cat >>confdefs.h <<\_ACEOF
3402 #define YYTEXT_POINTER 1
3410 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3411 echo "${ECHO_T}$ac_cv_has_flex" >&6
3412 if test "$LEX" != "flex"; then
3413 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3414 echo "$as_me: error: flex not found but required" >&2;}
3415 { (exit 1); exit 1; }; }
3418 echo "$as_me:$LINENO: checking " >&5
3419 echo $ECHO_N "checking ... $ECHO_C" >&6
3420 if test "${ac_cv_has_bison+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 for ac_prog in 'bison -y' byacc
3425 # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy $ac_prog; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_YACC+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 if test -n "$YACC"; then
3433 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_YACC="$ac_prog"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 YACC=$ac_cv_prog_YACC
3452 if test -n "$YACC"; then
3453 echo "$as_me:$LINENO: result: $YACC" >&5
3454 echo "${ECHO_T}$YACC" >&6
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 test -n "$YACC" && break
3462 test -n "$YACC" || YACC="yacc"
3466 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3467 echo "${ECHO_T}$ac_cv_has_bison" >&6
3468 if test "$YACC" != "bison -y"; then
3469 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3470 echo "$as_me: error: bison not found but required" >&2;}
3471 { (exit 1); exit 1; }; }
3477 # Check whether --enable-shared or --disable-shared was given.
3478 if test "${enable_shared+set}" = set; then
3479 enableval="$enable_shared"
3480 p=${PACKAGE-default}
3482 yes) enable_shared=yes ;;
3483 no) enable_shared=no ;;
3486 # Look at the argument we got. We use all the common list separators.
3487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3488 for pkg in $enableval; do
3490 if test "X$pkg" = "X$p"; then
3501 # Check whether --enable-static or --disable-static was given.
3502 if test "${enable_static+set}" = set; then
3503 enableval="$enable_static"
3504 p=${PACKAGE-default}
3506 yes) enable_static=yes ;;
3507 no) enable_static=no ;;
3510 # Look at the argument we got. We use all the common list separators.
3511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512 for pkg in $enableval; do
3514 if test "X$pkg" = "X$p"; then
3525 # Check whether --enable-fast-install or --disable-fast-install was given.
3526 if test "${enable_fast_install+set}" = set; then
3527 enableval="$enable_fast_install"
3528 p=${PACKAGE-default}
3530 yes) enable_fast_install=yes ;;
3531 no) enable_fast_install=no ;;
3533 enable_fast_install=no
3534 # Look at the argument we got. We use all the common list separators.
3535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3536 for pkg in $enableval; do
3538 if test "X$pkg" = "X$p"; then
3539 enable_fast_install=yes
3546 enable_fast_install=yes
3549 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3550 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3551 if test "${lt_cv_path_SED+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 # Loop through the user's path and test for sed and gsed.
3555 # Then use that list of sed's as ones to test for truncation.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for lt_ac_prog in sed gsed; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3564 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3571 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3572 # along with /bin/sed that truncates output.
3573 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3574 test ! -f $lt_ac_sed && break
3575 cat /dev/null > conftest.in
3577 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3578 # Check for GNU sed and select it if it is found.
3579 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3580 lt_cv_path_SED=$lt_ac_sed
3584 cat conftest.in conftest.in >conftest.tmp
3585 mv conftest.tmp conftest.in
3586 cp conftest.in conftest.nl
3588 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3589 cmp -s conftest.out conftest.nl || break
3590 # 10000 chars as input seems more than enough
3591 test $lt_ac_count -gt 10 && break
3592 lt_ac_count=`expr $lt_ac_count + 1`
3593 if test $lt_ac_count -gt $lt_ac_max; then
3594 lt_ac_max=$lt_ac_count
3595 lt_cv_path_SED=$lt_ac_sed
3603 echo "$as_me:$LINENO: result: $SED" >&5
3604 echo "${ECHO_T}$SED" >&6
3606 echo "$as_me:$LINENO: checking for egrep" >&5
3607 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3608 if test "${ac_cv_prog_egrep+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3612 then ac_cv_prog_egrep='grep -E'
3613 else ac_cv_prog_egrep='egrep'
3616 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3617 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3618 EGREP=$ac_cv_prog_egrep
3622 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then
3624 withval="$with_gnu_ld"
3625 test "$withval" = no || with_gnu_ld=yes
3630 if test "$GCC" = yes; then
3631 # Check if gcc -print-prog-name=ld gives a path.
3632 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3633 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3636 # gcc leaves a trailing carriage return which upsets mingw
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3642 # Accept absolute paths.
3644 re_direlt='/[^/][^/]*/\.\./'
3645 # Canonicalize the path of ld
3646 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3647 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3648 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3650 test -z "$LD" && LD="$ac_prog"
3653 # If it fails, then pretend we aren't using GCC.
3657 # If it is relative, then search for the first ld in PATH.
3661 elif test "$with_gnu_ld" = yes; then
3662 echo "$as_me:$LINENO: checking for GNU ld" >&5
3663 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3665 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3666 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3668 if test "${lt_cv_path_LD+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -z "$LD"; then
3672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673 for ac_dir in $PATH; do
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677 lt_cv_path_LD="$ac_dir/$ac_prog"
3678 # Check to see if the program is GNU ld. I'd rather use --version,
3679 # but apparently some GNU ld's only accept -v.
3680 # Break only if it was the GNU/non-GNU ld that we prefer.
3681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682 *GNU* | *'with BFD'*)
3683 test "$with_gnu_ld" != no && break
3686 test "$with_gnu_ld" != yes && break
3693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3698 if test -n "$LD"; then
3699 echo "$as_me:$LINENO: result: $LD" >&5
3700 echo "${ECHO_T}$LD" >&6
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3705 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3706 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3707 { (exit 1); exit 1; }; }
3708 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3709 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3710 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3714 case `"$LD" -v 2>&1 </dev/null` in
3715 *GNU* | *'with BFD'*)
3716 lt_cv_prog_gnu_ld=yes
3719 lt_cv_prog_gnu_ld=no
3723 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3724 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3725 with_gnu_ld=$lt_cv_prog_gnu_ld
3728 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3729 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3730 if test "${lt_cv_ld_reload_flag+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 lt_cv_ld_reload_flag='-r'
3735 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3736 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3737 reload_flag=$lt_cv_ld_reload_flag
3738 case $reload_flag in
3740 *) reload_flag=" $reload_flag" ;;
3742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3744 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3745 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3746 if test "${lt_cv_path_NM+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 if test -n "$NM"; then
3750 # Let the user override the test.
3753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3754 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3756 test -z "$ac_dir" && ac_dir=.
3757 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3758 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3759 # Check to see if the nm accepts a BSD-compat flag.
3760 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3761 # nm: unknown option "B" ignored
3762 # Tru64's nm complains that /dev/null is an invalid object file
3763 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3764 */dev/null* | *'Invalid file or object type'*)
3765 lt_cv_path_NM="$tmp_nm -B"
3769 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3771 lt_cv_path_NM="$tmp_nm -p"
3775 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3776 continue # so that we can try to find one that supports BSD flags
3783 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3786 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3787 echo "${ECHO_T}$lt_cv_path_NM" >&6
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3793 if test "$LN_S" = "ln -s"; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3797 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3801 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3802 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3803 if test "${lt_cv_deplibs_check_method+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 lt_cv_file_magic_cmd='$MAGIC_CMD'
3807 lt_cv_file_magic_test_file=
3808 lt_cv_deplibs_check_method='unknown'
3809 # Need to set the preceding variable on all platforms that support
3810 # interlibrary dependencies.
3811 # 'none' -- dependencies not supported.
3812 # `unknown' -- same as none, but documents that we really don't know.
3813 # 'pass_all' -- all dependencies passed with no checks.
3814 # 'test_compile' -- check by making test program.
3815 # 'file_magic [[regex]]' -- check by looking for files in library path
3816 # which responds to the $file_magic_cmd with a given extended regex.
3817 # If you have `file' or equivalent on your system and you're not sure
3818 # whether `pass_all' will *always* work, you probably want this one.
3822 lt_cv_deplibs_check_method=pass_all
3826 lt_cv_deplibs_check_method=pass_all
3830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3831 lt_cv_file_magic_cmd='/usr/bin/file -L'
3832 lt_cv_file_magic_test_file=/shlib/libc.so
3835 cygwin* | mingw* | pw32*)
3836 # win32_libid is a shell function defined in ltmain.sh
3837 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3838 lt_cv_file_magic_cmd='win32_libid'
3841 darwin* | rhapsody*)
3842 # this will be overwritten by pass_all, but leave it in just in case
3843 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3844 lt_cv_file_magic_cmd='/usr/bin/file -L'
3846 rhapsody* | darwin1.[012])
3847 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3850 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3853 lt_cv_deplibs_check_method=pass_all
3857 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3860 # Not sure whether the presence of OpenBSD here was a mistake.
3861 # Let's accept both of them until this is cleared up.
3862 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3863 lt_cv_file_magic_cmd=/usr/bin/file
3864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3868 lt_cv_deplibs_check_method=pass_all
3873 lt_cv_deplibs_check_method=pass_all
3876 hpux10.20* | hpux11*)
3877 lt_cv_file_magic_cmd=/usr/bin/file
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3881 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3884 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]'
3885 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3889 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3894 irix5* | irix6* | nonstopux*)
3896 irix5* | nonstopux*)
3897 # this will be overridden with pass_all, but let us keep it just in case
3898 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3902 *-32|*"-32 ") libmagic=32-bit;;
3903 *-n32|*"-n32 ") libmagic=N32;;
3904 *-64|*"-64 ") libmagic=64-bit;;
3905 *) libmagic=never-match;;
3907 # this will be overridden with pass_all, but let us keep it just in case
3908 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3911 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3912 lt_cv_deplibs_check_method=pass_all
3915 # This must be Linux ELF.
3918 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3919 lt_cv_deplibs_check_method=pass_all ;;
3921 # glibc up to 2.1.1 does not perform some relocations on ARM
3922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3924 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3928 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3937 lt_cv_file_magic_cmd=/usr/bin/file
3938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3942 lt_cv_deplibs_check_method=unknown
3946 lt_cv_file_magic_cmd=/usr/bin/file
3947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3948 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3951 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3955 osf3* | osf4* | osf5*)
3956 # this will be overridden with pass_all, but let us keep it just in case
3957 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3958 lt_cv_file_magic_test_file=/shlib/libc.so
3959 lt_cv_deplibs_check_method=pass_all
3963 lt_cv_deplibs_check_method=pass_all
3967 lt_cv_deplibs_check_method=pass_all
3968 lt_cv_file_magic_test_file=/lib/libc.so
3971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3972 case $host_vendor in
3974 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]'
3975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3978 lt_cv_deplibs_check_method=pass_all
3981 lt_cv_file_magic_cmd='/bin/file'
3982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3985 lt_cv_file_magic_cmd='/bin/file'
3986 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3987 lt_cv_file_magic_test_file=/lib/libc.so
3990 lt_cv_deplibs_check_method=pass_all
3995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3996 lt_cv_deplibs_check_method=pass_all
4001 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4002 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4003 file_magic_cmd=$lt_cv_file_magic_cmd
4004 deplibs_check_method=$lt_cv_deplibs_check_method
4005 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4010 # If no C compiler was specified, use CC.
4013 # Allow CC to be a program name with arguments.
4016 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4017 if test "${enable_libtool_lock+set}" = set; then
4018 enableval="$enable_libtool_lock"
4021 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4023 # Some flags need to be propagated to the compiler or linker for good
4027 # Find out which ABI we are using.
4028 echo 'int i;' > conftest.$ac_ext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; then
4034 case `/usr/bin/file conftest.$ac_objext` in
4046 # Find out which ABI we are using.
4047 echo '#line 4047 "configure"' > conftest.$ac_ext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; then
4053 if test "$lt_cv_prog_gnu_ld" = yes; then
4054 case `/usr/bin/file conftest.$ac_objext` in
4056 LD="${LD-ld} -melf32bsmip"
4059 LD="${LD-ld} -melf32bmipn32"
4062 LD="${LD-ld} -melf64bmip"
4066 case `/usr/bin/file conftest.$ac_objext` in
4082 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4083 # Find out which ABI we are using.
4084 echo 'int i;' > conftest.$ac_ext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; then
4090 case "`/usr/bin/file conftest.o`" in
4094 LD="${LD-ld} -m elf_i386"
4097 LD="${LD-ld} -m elf32ppclinux"
4100 LD="${LD-ld} -m elf_s390"
4103 LD="${LD-ld} -m elf32_sparc"
4110 LD="${LD-ld} -m elf_x86_64"
4112 ppc*-*linux*|powerpc*-*linux*)
4113 LD="${LD-ld} -m elf64ppc"
4116 LD="${LD-ld} -m elf64_s390"
4119 LD="${LD-ld} -m elf64_sparc"
4129 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4130 SAVE_CFLAGS="$CFLAGS"
4131 CFLAGS="$CFLAGS -belf"
4132 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4133 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4134 if test "${lt_cv_cc_needs_belf+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143 cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4159 rm -f conftest.$ac_objext conftest$ac_exeext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161 (eval $ac_link) 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -s conftest$ac_exeext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 lt_cv_cc_needs_belf=yes
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 lt_cv_cc_needs_belf=no
4178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4187 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4188 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4189 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4190 CFLAGS="$SAVE_CFLAGS"
4196 need_locks="$enable_libtool_lock"
4200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4202 if test "${ac_cv_header_stdc+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 ac_cv_header_stdc=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 ac_cv_header_stdc=no
4244 rm -f conftest.$ac_objext conftest.$ac_ext
4246 if test $ac_cv_header_stdc = yes; then
4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 #line $LINENO "configure"
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "memchr" >/dev/null 2>&1; then
4262 ac_cv_header_stdc=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4270 cat >conftest.$ac_ext <<_ACEOF
4271 #line $LINENO "configure"
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "free" >/dev/null 2>&1; then
4284 ac_cv_header_stdc=no
4290 if test $ac_cv_header_stdc = yes; then
4291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4292 if test "$cross_compiling" = yes; then
4295 cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4303 #if ((' ' & 0x0FF) == 0x020)
4304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4307 # define ISLOWER(c) \
4308 (('a' <= (c) && (c) <= 'i') \
4309 || ('j' <= (c) && (c) <= 'r') \
4310 || ('s' <= (c) && (c) <= 'z'))
4311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4319 for (i = 0; i < 256; i++)
4320 if (XOR (islower (i), ISLOWER (i))
4321 || toupper (i) != TOUPPER (i))
4326 rm -f conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4339 echo "$as_me: program exited with status $ac_status" >&5
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_header_stdc=no
4346 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4352 if test $ac_cv_header_stdc = yes; then
4354 cat >>confdefs.h <<\_ACEOF
4355 #define STDC_HEADERS 1
4360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4371 inttypes.h stdint.h unistd.h
4373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4374 echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4380 #line $LINENO "configure"
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4388 #include <$ac_header>
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 eval "$as_ac_Header=yes"
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 eval "$as_ac_Header=no"
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4414 cat >>confdefs.h <<_ACEOF
4415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424 for ac_header in dlfcn.h
4426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436 # Is the header compilable?
4437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4440 #line $LINENO "configure"
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4447 #include <$ac_header>
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_header_compiler=yes
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_header_compiler=no
4468 rm -f conftest.$ac_objext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470 echo "${ECHO_T}$ac_header_compiler" >&6
4472 # Is the header present?
4473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <$ac_header>
4484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } >/dev/null; then
4492 if test -s conftest.err; then
4493 ac_cpp_err=$ac_c_preproc_warn_flag
4500 if test -z "$ac_cpp_err"; then
4501 ac_header_preproc=yes
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_header_preproc=no
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6
4512 # So? What about this header?
4513 case $ac_header_compiler:$ac_header_preproc in
4515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4521 ## ------------------------------------ ##
4522 ## Report this to bug-autoconf@gnu.org. ##
4523 ## ------------------------------------ ##
4526 sed "s/^/$as_me: WARNING: /" >&2
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4537 ## ------------------------------------ ##
4538 ## Report this to bug-autoconf@gnu.org. ##
4539 ## ------------------------------------ ##
4542 sed "s/^/$as_me: WARNING: /" >&2
4545 echo "$as_me:$LINENO: checking for $ac_header" >&5
4546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 eval "$as_ac_Header=$ac_header_preproc"
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557 cat >>confdefs.h <<_ACEOF
4558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566 ac_cpp='$CXXCPP $CPPFLAGS'
4567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4570 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4571 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4572 if test -z "$CXXCPP"; then
4573 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 # Double quotes because CXXCPP needs to be expanded
4577 for CXXCPP in "$CXX -E" "/lib/cpp"
4580 for ac_cxx_preproc_warn_flag in '' yes
4582 # Use a header file that comes with gcc, so configuring glibc
4583 # with a fresh cross-compiler works.
4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585 # <limits.h> exists even on freestanding compilers.
4586 # On the NeXT, cc -E runs the code through the compiler's parser,
4587 # not just through cpp. "Syntax error" is here to catch this case.
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4596 # include <limits.h>
4598 # include <assert.h>
4602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4605 grep -v '^ *+' conftest.er1 >conftest.err
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } >/dev/null; then
4610 if test -s conftest.err; then
4611 ac_cpp_err=$ac_cxx_preproc_warn_flag
4618 if test -z "$ac_cpp_err"; then
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 # Broken: fails on valid input.
4627 rm -f conftest.err conftest.$ac_ext
4629 # OK, works on sane cases. Now check whether non-existent headers
4630 # can be detected and how.
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <ac_nonexistent.h>
4640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_cxx_preproc_warn_flag
4656 if test -z "$ac_cpp_err"; then
4657 # Broken: success on invalid input.
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 # Passes both tests.
4667 rm -f conftest.err conftest.$ac_ext
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then
4677 ac_cv_prog_CXXCPP=$CXXCPP
4680 CXXCPP=$ac_cv_prog_CXXCPP
4682 ac_cv_prog_CXXCPP=$CXXCPP
4684 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4685 echo "${ECHO_T}$CXXCPP" >&6
4687 for ac_cxx_preproc_warn_flag in '' yes
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat >conftest.$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4703 # include <limits.h>
4705 # include <assert.h>
4709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } >/dev/null; then
4717 if test -s conftest.err; then
4718 ac_cpp_err=$ac_cxx_preproc_warn_flag
4725 if test -z "$ac_cpp_err"; then
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 # Broken: fails on valid input.
4734 rm -f conftest.err conftest.$ac_ext
4736 # OK, works on sane cases. Now check whether non-existent headers
4737 # can be detected and how.
4738 cat >conftest.$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <ac_nonexistent.h>
4747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4750 grep -v '^ *+' conftest.er1 >conftest.err
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } >/dev/null; then
4755 if test -s conftest.err; then
4756 ac_cpp_err=$ac_cxx_preproc_warn_flag
4763 if test -z "$ac_cpp_err"; then
4764 # Broken: success on invalid input.
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 # Passes both tests.
4774 rm -f conftest.err conftest.$ac_ext
4777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4778 rm -f conftest.err conftest.$ac_ext
4779 if $ac_preproc_ok; then
4782 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4783 See \`config.log' for more details." >&5
4784 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4785 See \`config.log' for more details." >&2;}
4786 { (exit 1); exit 1; }; }
4790 ac_cpp='$CXXCPP $CPPFLAGS'
4791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4797 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4798 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807 if test "${ac_cv_prog_F77+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test -n "$F77"; then
4811 ac_cv_prog_F77="$F77" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 if test -n "$F77"; then
4831 echo "$as_me:$LINENO: result: $F77" >&5
4832 echo "${ECHO_T}$F77" >&6
4834 echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6
4838 test -n "$F77" && break
4841 if test -z "$F77"; then
4843 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4849 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 if test -n "$ac_ct_F77"; then
4853 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_ac_ct_F77="$ac_prog"
4863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4872 if test -n "$ac_ct_F77"; then
4873 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4874 echo "${ECHO_T}$ac_ct_F77" >&6
4876 echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6
4880 test -n "$ac_ct_F77" && break
4887 # Provide some information about the compiler.
4888 echo "$as_me:4888:" \
4889 "checking for Fortran 77 compiler version" >&5
4890 ac_compiler=`set X $ac_compile; echo $2`
4891 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4892 (eval $ac_compiler --version </dev/null >&5) 2>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }
4896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4897 (eval $ac_compiler -v </dev/null >&5) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4902 (eval $ac_compiler -V </dev/null >&5) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }
4907 # If we don't use `.F' as extension, the preprocessor is not run on the
4911 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4912 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4913 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 cat >conftest.$ac_ext <<_ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4943 rm -f conftest.$ac_objext conftest.$ac_ext
4944 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4947 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4948 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4950 G77=`test $ac_compiler_gnu = yes && echo yes`
4951 ac_test_FFLAGS=${FFLAGS+set}
4952 ac_save_FFLAGS=$FFLAGS
4954 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4955 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4956 if test "${ac_cv_prog_f77_g+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 cat >conftest.$ac_ext <<_ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_prog_f77_g=yes
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f conftest.$ac_objext conftest.$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4988 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4989 if test "$ac_test_FFLAGS" = set; then
4990 FFLAGS=$ac_save_FFLAGS
4991 elif test $ac_cv_prog_f77_g = yes; then
4992 if test "$G77" = yes; then
4998 if test "$G77" = yes; then
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5014 # find the maximum length of command line arguments
5015 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5016 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5017 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 # On DJGPP, this test can blow up pretty badly due to problems in libc
5026 # (any single argument exceeding 2000 bytes causes a buffer overrun
5027 # during glob expansion). Even if it were fixed, the result of this
5028 # check would be larger than it should be.
5029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5033 # Under GNU Hurd, this test is not required because there is
5034 # no limit to the length of command line arguments.
5035 # Libtool will interpret -1 as no limit whatsoever
5036 lt_cv_sys_max_cmd_len=-1;
5040 # On Win9x/ME, this test blows up -- it succeeds, but takes
5041 # about 5 minutes as the teststring grows exponentially.
5042 # Worse, since 9x/ME are not pre-emptively multitasking,
5043 # you end up with a "frozen" computer, even though with patience
5044 # the test eventually succeeds (with a max line length of 256k).
5045 # Instead, let's just punt: use the minimum linelength reported by
5046 # all of the supported platforms: 8192 (on NT/2K/XP).
5047 lt_cv_sys_max_cmd_len=8192;
5051 # If test is not a shell built-in, we'll probably end up computing a
5052 # maximum length that is only half of the actual maximum length, but
5054 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5055 = "XX$testring") >/dev/null 2>&1 &&
5056 new_result=`expr "X$testring" : ".*" 2>&1` &&
5057 lt_cv_sys_max_cmd_len=$new_result &&
5058 test $i != 17 # 1/2 MB should be enough
5061 testring=$testring$testring
5064 # Add a significant safety factor because C++ compilers can tack on massive
5065 # amounts of additional arguments before passing them to the linker.
5066 # It appears as though 1/2 is a usable value.
5067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5073 if test -n $lt_cv_sys_max_cmd_len ; then
5074 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5075 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5077 echo "$as_me:$LINENO: result: none" >&5
5078 echo "${ECHO_T}none" >&6
5084 # Check for command to grab the raw symbol name followed by C symbol from nm.
5085 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5086 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5087 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 # These are sane defaults that work on at least a few old systems.
5092 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5094 # Character class describing NM global symbol codes.
5095 symcode='[BCDEGRST]'
5097 # Regexp to match symbols that can be accessed directly from C.
5098 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5100 # Transform the above into a raw symbol and a C symbol.
5101 symxfrm='\1 \2\3 \3'
5103 # Transform an extracted symbol line into a proper C declaration
5104 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5106 # Transform an extracted symbol line into symbol name and symbol address
5107 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'"
5109 # Define system-specific variables.
5114 cygwin* | mingw* | pw32*)
5115 symcode='[ABCDGISTW]'
5117 hpux*) # Its linker distinguishes data from code symbols
5118 if test "$host_cpu" = ia64; then
5119 symcode='[ABCDEGRST]'
5121 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5122 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'"
5125 symcode='[BCDEGRST]'
5128 symcode='[BCDEGQRST]'
5138 # Handle CRLF in mingw tool chain
5142 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5146 # If we're using GNU nm, then use its standard symbol codes.
5147 case `$NM -V 2>&1` in
5148 *GNU* | *'with BFD'*)
5149 symcode='[ABCDGISTW]' ;;
5152 # Try without a prefix undercore, then with it.
5153 for ac_symprfx in "" "_"; do
5155 # Write the raw and C identifiers.
5156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5158 # Check to see that the pipe works correctly.
5162 cat > conftest.$ac_ext <<EOF
5167 void nm_test_func(){}
5171 int main(){nm_test_var='a';nm_test_func();return(0);}
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175 (eval $ac_compile) 2>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; then
5179 # Now try to grab the symbols.
5181 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5182 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } && test -s "$nlist"; then
5186 # Try sorting and uniquifying the output.
5187 if sort "$nlist" | uniq > "$nlist"T; then
5188 mv -f "$nlist"T "$nlist"
5193 # Make sure that we snagged all the symbols we need.
5194 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5195 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5196 cat <<EOF > conftest.$ac_ext
5202 # Now generate the symbol file.
5203 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5205 cat <<EOF >> conftest.$ac_ext
5206 #if defined (__STDC__) && __STDC__
5207 # define lt_ptr_t void *
5209 # define lt_ptr_t char *
5213 /* The mapping between symbol names and symbols. */
5218 lt_preloaded_symbols[] =
5221 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5222 cat <<\EOF >> conftest.$ac_ext
5230 # Now try linking the two files.
5231 mv conftest.$ac_objext conftstm.$ac_objext
5232 lt_save_LIBS="$LIBS"
5233 lt_save_CFLAGS="$CFLAGS"
5234 LIBS="conftstm.$ac_objext"
5235 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5243 LIBS="$lt_save_LIBS"
5244 CFLAGS="$lt_save_CFLAGS"
5246 echo "cannot find nm_test_func in $nlist" >&5
5249 echo "cannot find nm_test_var in $nlist" >&5
5252 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5255 echo "$progname: failed program was:" >&5
5256 cat conftest.$ac_ext >&5
5258 rm -f conftest* conftst*
5260 # Do not use the global_symbol_pipe unless it works.
5261 if test "$pipe_works" = yes; then
5264 lt_cv_sys_global_symbol_pipe=
5270 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5271 lt_cv_sys_global_symbol_to_cdecl=
5273 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5274 echo "$as_me:$LINENO: result: failed" >&5
5275 echo "${ECHO_T}failed" >&6
5277 echo "$as_me:$LINENO: result: ok" >&5
5278 echo "${ECHO_T}ok" >&6
5281 echo "$as_me:$LINENO: checking for objdir" >&5
5282 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5283 if test "${lt_cv_objdir+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 rm -f .libs 2>/dev/null
5287 mkdir .libs 2>/dev/null
5288 if test -d .libs; then
5291 # MS-DOS does not allow filenames that begin with a dot.
5294 rmdir .libs 2>/dev/null
5296 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5297 echo "${ECHO_T}$lt_cv_objdir" >&6
5298 objdir=$lt_cv_objdir
5306 # AIX sometimes has problems with the GCC collect2 program. For some
5307 # reason, if we set the COLLECT_NAMES environment variable, the problems
5308 # vanish in a puff of smoke.
5309 if test "X${COLLECT_NAMES+set}" != Xset; then
5311 export COLLECT_NAMES
5316 # Sed substitution that helps us do robust quoting. It backslashifies
5317 # metacharacters that are still active within double-quoted strings.
5318 Xsed='sed -e s/^X//'
5319 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5321 # Same as above, but do not quote variable references.
5322 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5324 # Sed substitution to delay expansion of an escaped shell variable in a
5325 # double_quote_subst'ed string.
5326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5328 # Sed substitution to avoid accidental globbing in evaled expressions
5329 no_glob_subst='s/\*/\\\*/g'
5336 can_build_shared=yes
5338 # All known linkers require a `.a' archive for static linking (except M$VC,
5339 # which needs '.lib').
5341 ltmain="$ac_aux_dir/ltmain.sh"
5342 ofile="$default_ofile"
5343 with_gnu_ld="$lt_cv_prog_gnu_ld"
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}ar; ac_word=$2
5348 echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350 if test "${ac_cv_prog_AR+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 if test -n "$AR"; then
5354 ac_cv_prog_AR="$AR" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_AR="${ac_tool_prefix}ar"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 if test -n "$AR"; then
5374 echo "$as_me:$LINENO: result: $AR" >&5
5375 echo "${ECHO_T}$AR" >&6
5377 echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6
5382 if test -z "$ac_cv_prog_AR"; then
5384 # Extract the first word of "ar", so it can be a program name with args.
5385 set dummy ar; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 if test -n "$ac_ct_AR"; then
5392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ac_ct_AR="ar"
5402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5412 if test -n "$ac_ct_AR"; then
5413 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5414 echo "${ECHO_T}$ac_ct_AR" >&6
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5425 if test -n "$ac_tool_prefix"; then
5426 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5428 echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430 if test "${ac_cv_prog_RANLIB+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 if test -n "$RANLIB"; then
5434 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 RANLIB=$ac_cv_prog_RANLIB
5453 if test -n "$RANLIB"; then
5454 echo "$as_me:$LINENO: result: $RANLIB" >&5
5455 echo "${ECHO_T}$RANLIB" >&6
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5462 if test -z "$ac_cv_prog_RANLIB"; then
5463 ac_ct_RANLIB=$RANLIB
5464 # Extract the first word of "ranlib", so it can be a program name with args.
5465 set dummy ranlib; ac_word=$2
5466 echo "$as_me:$LINENO: checking for $ac_word" >&5
5467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 if test -n "$ac_ct_RANLIB"; then
5472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_ac_ct_RANLIB="ranlib"
5482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5491 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5492 if test -n "$ac_ct_RANLIB"; then
5493 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5494 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5496 echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5500 RANLIB=$ac_ct_RANLIB
5502 RANLIB="$ac_cv_prog_RANLIB"
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}strip; ac_word=$2
5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510 if test "${ac_cv_prog_STRIP+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 if test -n "$STRIP"; then
5514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 STRIP=$ac_cv_prog_STRIP
5533 if test -n "$STRIP"; then
5534 echo "$as_me:$LINENO: result: $STRIP" >&5
5535 echo "${ECHO_T}$STRIP" >&6
5537 echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5542 if test -z "$ac_cv_prog_STRIP"; then
5544 # Extract the first word of "strip", so it can be a program name with args.
5545 set dummy strip; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 if test -n "$ac_ct_STRIP"; then
5552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_STRIP="strip"
5562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572 if test -n "$ac_ct_STRIP"; then
5573 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5574 echo "${ECHO_T}$ac_ct_STRIP" >&6
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5582 STRIP="$ac_cv_prog_STRIP"
5587 old_CFLAGS="$CFLAGS"
5589 # Set sane defaults for various variables
5590 test -z "$AR" && AR=ar
5591 test -z "$AR_FLAGS" && AR_FLAGS=cru
5592 test -z "$AS" && AS=as
5593 test -z "$CC" && CC=cc
5594 test -z "$LTCC" && LTCC=$CC
5595 test -z "$DLLTOOL" && DLLTOOL=dlltool
5596 test -z "$LD" && LD=ld
5597 test -z "$LN_S" && LN_S="ln -s"
5598 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5599 test -z "$NM" && NM=nm
5600 test -z "$SED" && SED=sed
5601 test -z "$OBJDUMP" && OBJDUMP=objdump
5602 test -z "$RANLIB" && RANLIB=:
5603 test -z "$STRIP" && STRIP=:
5604 test -z "$ac_objext" && ac_objext=o
5606 # Determine commands to create old-style static archives.
5607 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5608 old_postinstall_cmds='chmod 644 $oldlib'
5609 old_postuninstall_cmds=
5611 if test -n "$RANLIB"; then
5614 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5617 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5620 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5623 # Only perform the check for file, if the check method requires it
5624 case $deplibs_check_method in
5626 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5627 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5628 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5637 lt_save_MAGIC_CMD="$MAGIC_CMD"
5638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5640 for ac_dir in $ac_dummy; do
5642 test -z "$ac_dir" && ac_dir=.
5643 if test -f $ac_dir/${ac_tool_prefix}file; then
5644 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5645 if test -n "$file_magic_test_file"; then
5646 case $deplibs_check_method in
5648 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5651 $EGREP "$file_magic_regex" > /dev/null; then
5656 *** Warning: the command libtool uses to detect shared libraries,
5657 *** $file_magic_cmd, produces output that libtool cannot recognize.
5658 *** The result is that libtool may fail to recognize shared libraries
5659 *** as such. This will affect the creation of libtool libraries that
5660 *** depend on shared libraries, but programs linked with such libtool
5661 *** libraries will work regardless of this problem. Nevertheless, you
5662 *** may want to report the problem to your system manager and/or to
5663 *** bug-libtool@gnu.org
5673 MAGIC_CMD="$lt_save_MAGIC_CMD"
5678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5679 if test -n "$MAGIC_CMD"; then
5680 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5681 echo "${ECHO_T}$MAGIC_CMD" >&6
5683 echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5687 if test -z "$lt_cv_path_MAGIC_CMD"; then
5688 if test -n "$ac_tool_prefix"; then
5689 echo "$as_me:$LINENO: checking for file" >&5
5690 echo $ECHO_N "checking for file... $ECHO_C" >&6
5691 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5699 lt_save_MAGIC_CMD="$MAGIC_CMD"
5700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5702 for ac_dir in $ac_dummy; do
5704 test -z "$ac_dir" && ac_dir=.
5705 if test -f $ac_dir/file; then
5706 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5707 if test -n "$file_magic_test_file"; then
5708 case $deplibs_check_method in
5710 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5712 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5713 $EGREP "$file_magic_regex" > /dev/null; then
5718 *** Warning: the command libtool uses to detect shared libraries,
5719 *** $file_magic_cmd, produces output that libtool cannot recognize.
5720 *** The result is that libtool may fail to recognize shared libraries
5721 *** as such. This will affect the creation of libtool libraries that
5722 *** depend on shared libraries, but programs linked with such libtool
5723 *** libraries will work regardless of this problem. Nevertheless, you
5724 *** may want to report the problem to your system manager and/or to
5725 *** bug-libtool@gnu.org
5735 MAGIC_CMD="$lt_save_MAGIC_CMD"
5740 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5741 if test -n "$MAGIC_CMD"; then
5742 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5743 echo "${ECHO_T}$MAGIC_CMD" >&6
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5761 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5762 if test "${enable_libtool_lock+set}" = set; then
5763 enableval="$enable_libtool_lock"
5766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5769 # Check whether --with-pic or --without-pic was given.
5770 if test "${with_pic+set}" = set; then
5776 test -z "$pic_mode" && pic_mode=default
5778 # Use C for the default configuration in the libtool script
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 # Source file extension for C test sources.
5791 # Object file extension for compiled C test sources.
5795 # Code to be used in simple compile tests
5796 lt_simple_compile_test_code="int some_variable = 0;\n"
5798 # Code to be used in simple link tests
5799 lt_simple_link_test_code='int main(){return(0);}\n'
5802 # If no C compiler was specified, use CC.
5805 # Allow CC to be a program name with arguments.
5810 # Check for any special shared library compilation flags.
5813 if test "$GCC" = no; then
5816 lt_prog_cc_shlib='-belf'
5820 if test -n "$lt_prog_cc_shlib"; then
5821 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5822 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5823 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5825 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5826 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5827 lt_cv_prog_cc_can_build_shared=no
5833 # Check to make sure the static flag actually works.
5835 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5836 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5837 if test "${lt_prog_compiler_static_works+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 lt_prog_compiler_static_works=no
5841 save_LDFLAGS="$LDFLAGS"
5842 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5843 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5845 # The compiler can only warn and ignore the option if not recognized
5846 # So say no if there are warnings
5847 if test -s conftest.err; then
5848 # Append any errors to the config.log.
5849 cat conftest.err 1>&5
5851 lt_prog_compiler_static_works=yes
5855 LDFLAGS="$save_LDFLAGS"
5858 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5859 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5861 if test x"$lt_prog_compiler_static_works" = xyes; then
5864 lt_prog_compiler_static=
5870 lt_prog_compiler_no_builtin_flag=
5872 if test "$GCC" = yes; then
5873 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5875 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5876 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5877 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 lt_cv_prog_compiler_rtti_exceptions=no
5881 ac_outfile=conftest.$ac_objext
5882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5883 lt_compiler_flag="-fno-rtti -fno-exceptions"
5884 # Insert the option either (1) after the last *FLAGS variable, or
5885 # (2) before a word containing "conftest.", or (3) at the end.
5886 # Note that $ac_compile itself does not contain backslashes and begins
5887 # with a dollar sign (not a hyphen), so the echo should work correctly.
5888 # The option is referenced via a variable to avoid confusing sed.
5889 lt_compile=`echo "$ac_compile" | $SED \
5890 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5892 -e 's:$: $lt_compiler_flag:'`
5893 (eval echo "\"\$as_me:5893: $lt_compile\"" >&5)
5894 (eval "$lt_compile" 2>conftest.err)
5896 cat conftest.err >&5
5897 echo "$as_me:5897: \$? = $ac_status" >&5
5898 if (exit $ac_status) && test -s "$ac_outfile"; then
5899 # The compiler can only warn and ignore the option if not recognized
5900 # So say no if there are warnings
5901 if test ! -s conftest.err; then
5902 lt_cv_prog_compiler_rtti_exceptions=yes
5908 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5909 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5912 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5919 lt_prog_compiler_wl=
5920 lt_prog_compiler_pic=
5921 lt_prog_compiler_static=
5923 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5924 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5926 if test "$GCC" = yes; then
5927 lt_prog_compiler_wl='-Wl,'
5928 lt_prog_compiler_static='-static'
5932 # All AIX code is PIC.
5933 if test "$host_cpu" = ia64; then
5934 # AIX 5 now supports IA64 processor
5935 lt_prog_compiler_static='-Bstatic'
5940 # FIXME: we need at least 68020 code to build shared libraries, but
5941 # adding the `-m68020' flag to GCC prevents building anything better,
5943 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5946 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5947 # PIC is the default for these OSes.
5950 mingw* | pw32* | os2*)
5951 # This hack is so that the source file can tell whether it is being
5952 # built for inclusion in a dll (and should export symbols for example).
5953 lt_prog_compiler_pic='-DDLL_EXPORT'
5956 darwin* | rhapsody*)
5957 # PIC is the default on this platform
5958 # Common symbols not allowed in MH_DYLIB files
5959 lt_prog_compiler_pic='-fno-common'
5963 # Just because we use GCC doesn't mean we suddenly get shared libraries
5964 # on systems that don't support them.
5965 lt_prog_compiler_can_build_shared=no
5970 if test -d /usr/nec; then
5971 lt_prog_compiler_pic=-Kconform_pic
5976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5983 lt_prog_compiler_pic='-fPIC'
5989 lt_prog_compiler_pic='-fPIC'
5993 # PORTME Check for flag to pass linker flags through the system compiler.
5996 lt_prog_compiler_wl='-Wl,'
5997 if test "$host_cpu" = ia64; then
5998 # AIX 5 now supports IA64 processor
5999 lt_prog_compiler_static='-Bstatic'
6001 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6005 mingw* | pw32* | os2*)
6006 # This hack is so that the source file can tell whether it is being
6007 # built for inclusion in a dll (and should export symbols for example).
6008 lt_prog_compiler_pic='-DDLL_EXPORT'
6011 hpux9* | hpux10* | hpux11*)
6012 lt_prog_compiler_wl='-Wl,'
6013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6020 lt_prog_compiler_pic='+Z'
6023 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6024 lt_prog_compiler_static='${wl}-a ${wl}archive'
6027 irix5* | irix6* | nonstopux*)
6028 lt_prog_compiler_wl='-Wl,'
6029 # PIC (with -KPIC) is the default.
6030 lt_prog_compiler_static='-non_shared'
6034 lt_prog_compiler_pic='-KPIC'
6035 lt_prog_compiler_static='-Bstatic'
6041 lt_prog_compiler_wl='-Wl,'
6042 lt_prog_compiler_pic='-KPIC'
6043 lt_prog_compiler_static='-static'
6046 lt_prog_compiler_wl='-Wl,'
6047 # All Alpha code is PIC.
6048 lt_prog_compiler_static='-non_shared'
6053 osf3* | osf4* | osf5*)
6054 lt_prog_compiler_wl='-Wl,'
6055 # All OSF/1 code is PIC.
6056 lt_prog_compiler_static='-non_shared'
6060 lt_prog_compiler_pic='-Kpic'
6061 lt_prog_compiler_static='-dn'
6065 lt_prog_compiler_wl='-Wl,'
6066 lt_prog_compiler_pic='-KPIC'
6067 lt_prog_compiler_static='-Bstatic'
6071 lt_prog_compiler_wl='-Qoption ld '
6072 lt_prog_compiler_pic='-PIC'
6073 lt_prog_compiler_static='-Bstatic'
6076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6077 lt_prog_compiler_wl='-Wl,'
6078 lt_prog_compiler_pic='-KPIC'
6079 lt_prog_compiler_static='-Bstatic'
6083 if test -d /usr/nec ;then
6084 lt_prog_compiler_pic='-Kconform_pic'
6085 lt_prog_compiler_static='-Bstatic'
6090 lt_prog_compiler_pic='-pic'
6091 lt_prog_compiler_static='-Bstatic'
6095 lt_prog_compiler_can_build_shared=no
6100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6101 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6104 # Check to make sure the PIC flag actually works.
6106 if test -n "$lt_prog_compiler_pic"; then
6107 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6109 if test "${lt_prog_compiler_pic_works+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 lt_prog_compiler_pic_works=no
6113 ac_outfile=conftest.$ac_objext
6114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6115 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6116 # Insert the option either (1) after the last *FLAGS variable, or
6117 # (2) before a word containing "conftest.", or (3) at the end.
6118 # Note that $ac_compile itself does not contain backslashes and begins
6119 # with a dollar sign (not a hyphen), so the echo should work correctly.
6120 # The option is referenced via a variable to avoid confusing sed.
6121 lt_compile=`echo "$ac_compile" | $SED \
6122 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6124 -e 's:$: $lt_compiler_flag:'`
6125 (eval echo "\"\$as_me:6125: $lt_compile\"" >&5)
6126 (eval "$lt_compile" 2>conftest.err)
6128 cat conftest.err >&5
6129 echo "$as_me:6129: \$? = $ac_status" >&5
6130 if (exit $ac_status) && test -s "$ac_outfile"; then
6131 # The compiler can only warn and ignore the option if not recognized
6132 # So say no if there are warnings
6133 if test ! -s conftest.err; then
6134 lt_prog_compiler_pic_works=yes
6140 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6141 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6143 if test x"$lt_prog_compiler_pic_works" = xyes; then
6144 case $lt_prog_compiler_pic in
6146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6149 lt_prog_compiler_pic=
6150 lt_prog_compiler_can_build_shared=no
6155 # For platforms which do not support PIC, -DPIC is meaningless:
6157 lt_prog_compiler_pic=
6160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6164 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6166 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 lt_cv_prog_compiler_c_o=no
6170 $rm -r conftest 2>/dev/null
6174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6176 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6177 # that will create temporary files in the current directory regardless of
6178 # the output directory. Thus, making CWD read-only will cause this test
6179 # to fail, enabling locking or at least warning the user not to do parallel
6183 lt_compiler_flag="-o out/conftest2.$ac_objext"
6184 # Insert the option either (1) after the last *FLAGS variable, or
6185 # (2) before a word containing "conftest.", or (3) at the end.
6186 # Note that $ac_compile itself does not contain backslashes and begins
6187 # with a dollar sign (not a hyphen), so the echo should work correctly.
6188 lt_compile=`echo "$ac_compile" | $SED \
6189 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6191 -e 's:$: $lt_compiler_flag:'`
6192 (eval echo "\"\$as_me:6192: $lt_compile\"" >&5)
6193 (eval "$lt_compile" 2>out/conftest.err)
6195 cat out/conftest.err >&5
6196 echo "$as_me:6196: \$? = $ac_status" >&5
6197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6199 # The compiler can only warn and ignore the option if not recognized
6200 # So say no if there are warnings
6201 if test ! -s out/conftest.err; then
6202 lt_cv_prog_compiler_c_o=yes
6213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6217 hard_links="nottested"
6218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6219 # do not overwrite the value of need_locks provided by the user
6220 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6226 ln conftest.a conftest.b 2>&5 || hard_links=no
6227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6228 echo "$as_me:$LINENO: result: $hard_links" >&5
6229 echo "${ECHO_T}$hard_links" >&6
6230 if test "$hard_links" = no; then
6231 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6239 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6243 allow_undefined_flag=
6244 enable_shared_with_static_runtimes=no
6246 archive_expsym_cmds=
6247 old_archive_From_new_cmds=
6248 old_archive_from_expsyms_cmds=
6249 export_dynamic_flag_spec=
6250 whole_archive_flag_spec=
6251 thread_safe_flag_spec=
6252 hardcode_libdir_flag_spec=
6253 hardcode_libdir_flag_spec_ld=
6254 hardcode_libdir_separator=
6257 hardcode_shlibpath_var=unsupported
6258 link_all_deplibs=unknown
6259 hardcode_automatic=no
6262 always_export_symbols=no
6263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6264 # include_expsyms should be a list of space-separated symbols to be *always*
6265 # included in the symbol list
6267 # exclude_expsyms can be an extended regexp of symbols to exclude
6268 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6269 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6270 # as well as any symbol that contains `d'.
6271 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6273 # platforms (ab)use it in PIC code, but their linkers get confused if
6274 # the symbol is explicitly referenced. Since portable code cannot
6275 # rely on this symbol name, it's probably fine to never include it in
6276 # preloaded symbol tables.
6277 extract_expsyms_cmds=
6280 cygwin* | mingw* | pw32*)
6281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6282 # When not using gcc, we currently assume that we are using
6283 # Microsoft Visual C++.
6284 if test "$GCC" != yes; then
6294 if test "$with_gnu_ld" = yes; then
6295 # If archive_cmds runs LD, not CC, wlarc should be empty
6298 # See if GNU ld supports shared libraries.
6300 aix3* | aix4* | aix5*)
6301 # On AIX/PPC, the GNU linker is very broken
6302 if test "$host_cpu" != ia64; then
6306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6307 *** to be unable to reliably create shared libraries on AIX.
6308 *** Therefore, libtool is disabling shared libraries support. If you
6309 *** really care for shared libraries, you may want to modify your PATH
6310 *** so that a non-GNU linker is found, and then restart.
6317 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)'
6318 hardcode_libdir_flag_spec='-L$libdir'
6319 hardcode_minus_L=yes
6321 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6322 # that the semantics of dynamic libraries on AmigaOS, at least up
6323 # to version 4, is to share data among multiple programs linked
6324 # with the same dynamic library. Since this doesn't match the
6325 # behavior of shared libraries on other platforms, we can't use
6331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6332 allow_undefined_flag=unsupported
6333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6334 # support --undefined. This deserves some investigation. FIXME
6335 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6341 cygwin* | mingw* | pw32*)
6342 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6343 # as there is no search path for DLLs.
6344 hardcode_libdir_flag_spec='-L$libdir'
6345 allow_undefined_flag=unsupported
6346 always_export_symbols=no
6347 enable_shared_with_static_runtimes=yes
6348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6350 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6352 # If the export-symbols file already is a .def file (1st line
6353 # is EXPORTS), use it as is; otherwise, prepend...
6354 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6355 cp $export_symbols $output_objdir/$soname.def;
6357 echo EXPORTS > $output_objdir/$soname.def;
6358 cat $export_symbols >> $output_objdir/$soname.def;
6360 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6368 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6377 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6382 *** create shared libraries on Solaris systems. Therefore, libtool
6383 *** is disabling shared libraries support. We urge you to upgrade GNU
6384 *** binutils to release 2.9.1 or newer. Another option is to modify
6385 *** your PATH or compiler configuration so that the native linker is
6386 *** used, and then restart.
6389 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6398 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6401 hardcode_shlibpath_var=no
6405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6414 if test "$ld_shlibs" = yes; then
6415 runpath_var=LD_RUN_PATH
6416 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6417 export_dynamic_flag_spec='${wl}--export-dynamic'
6418 # ancient GNU ld didn't support --whole-archive et. al.
6419 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6422 whole_archive_flag_spec=
6426 # PORTME fill in a description of your system's linker (not GNU ld)
6429 allow_undefined_flag=unsupported
6430 always_export_symbols=yes
6431 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'
6432 # Note: this linker hardcodes the directories in LIBPATH if there
6433 # are no directories specified by -L.
6434 hardcode_minus_L=yes
6435 if test "$GCC" = yes && test -z "$link_static_flag"; then
6436 # Neither direct hardcoding nor static linking is supported with a
6438 hardcode_direct=unsupported
6443 if test "$host_cpu" = ia64; then
6444 # On IA64, the linker does run time linking by default, so we don't
6445 # have to do anything special.
6446 aix_use_runtimelinking=no
6447 exp_sym_flag='-Bexport'
6450 # If we're using GNU nm, then we don't want the "-C" option.
6451 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6452 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6453 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'
6455 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'
6457 aix_use_runtimelinking=no
6459 # Test if we are trying to use run time linking or normal
6460 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6461 # need to do runtime linking.
6462 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6463 for ld_flag in $LDFLAGS; do
6464 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6465 aix_use_runtimelinking=yes
6471 exp_sym_flag='-bexport'
6472 no_entry_flag='-bnoentry'
6475 # When large executables or shared objects are built, AIX ld can
6476 # have problems creating the table of contents. If linking a library
6477 # or program results in "error TOC overflow" add -mminimal-toc to
6478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6483 hardcode_libdir_separator=':'
6484 link_all_deplibs=yes
6486 if test "$GCC" = yes; then
6487 case $host_os in aix4.012|aix4.012.*)
6488 # We only want to do this on AIX 4.2 and lower, the check
6489 # below for broken collect2 doesn't work under 4.3+
6490 collect2name=`${CC} -print-prog-name=collect2`
6491 if test -f "$collect2name" && \
6492 strings "$collect2name" | grep resolve_lib_name >/dev/null
6494 # We have reworked collect2
6497 # We have old collect2
6498 hardcode_direct=unsupported
6499 # It fails to find uninstalled libraries when the uninstalled
6500 # path is not listed in the libpath. Setting hardcode_minus_L
6501 # to unsupported forces relinking
6502 hardcode_minus_L=yes
6503 hardcode_libdir_flag_spec='-L$libdir'
6504 hardcode_libdir_separator=
6507 shared_flag='-shared'
6510 if test "$host_cpu" = ia64; then
6511 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6512 # chokes on -Wl,-G. The following line is correct:
6515 if test "$aix_use_runtimelinking" = yes; then
6516 shared_flag='${wl}-G'
6518 shared_flag='${wl}-bM:SRE'
6523 # It seems that -bexpall does not export symbols beginning with
6524 # underscore (_), so it is better to generate a list of symbols to export.
6525 always_export_symbols=yes
6526 if test "$aix_use_runtimelinking" = yes; then
6527 # Warning - without using the other runtime loading flags (-brtl),
6528 # -berok will link without error, but may produce a broken library.
6529 allow_undefined_flag='-berok'
6530 # Determine the default libpath from the value encoded in an empty executable.
6531 cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -s conftest$ac_exeext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6562 # Check for a 64-bit object if we didn't find anything.
6563 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; }
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6573 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6574 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"
6576 if test "$host_cpu" = ia64; then
6577 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6578 allow_undefined_flag="-z nodefs"
6579 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"
6581 # Determine the default libpath from the value encoded in an empty executable.
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6613 # Check for a 64-bit object if we didn't find anything.
6614 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; }
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6625 # Warning - without using the other run time loading flags,
6626 # -berok will link without error, but may produce a broken library.
6627 no_undefined_flag=' ${wl}-bernotok'
6628 allow_undefined_flag=' ${wl}-berok'
6629 # -bexpall does not export symbols beginning with underscore (_)
6630 always_export_symbols=yes
6631 # Exported symbols can be pulled into shared objects from archives
6632 whole_archive_flag_spec=' '
6633 archive_cmds_need_lc=yes
6634 # This is similar to how AIX traditionally builds it's shared libraries.
6635 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'
6641 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)'
6642 hardcode_libdir_flag_spec='-L$libdir'
6643 hardcode_minus_L=yes
6644 # see comment about different semantics on the GNU ld section
6649 export_dynamic_flag_spec=-rdynamic
6652 cygwin* | mingw* | pw32*)
6653 # When not using gcc, we currently assume that we are using
6654 # Microsoft Visual C++.
6655 # hardcode_libdir_flag_spec is actually meaningless, as there is
6656 # no search path for DLLs.
6657 hardcode_libdir_flag_spec=' '
6658 allow_undefined_flag=unsupported
6659 # Tell ltmain to make .lib files, not .a files.
6661 # Tell ltmain to make .dll files, not .so files.
6663 # FIXME: Setting linknames here is a bad hack.
6664 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6665 # The linker will automatically build a .lib file if we build a DLL.
6666 old_archive_From_new_cmds='true'
6667 # FIXME: Should let the user specify the lib program.
6668 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6669 fix_srcfile_path='`cygpath -w "$srcfile"`'
6670 enable_shared_with_static_runtimes=yes
6673 darwin* | rhapsody*)
6674 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6675 archive_cmds_need_lc=no
6677 rhapsody* | darwin1.[012])
6678 allow_undefined_flag='-undefined suppress'
6681 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6684 # FIXME: Relying on posixy $() will cause problems for
6685 # cross-compilation, but unfortunately the echo tests do not
6686 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6687 # `"' quotes if we put them in here... so don't!
6688 lt_int_apple_cc_single_mod=no
6689 output_verbose_link_cmd='echo'
6690 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6691 lt_int_apple_cc_single_mod=yes
6693 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6694 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6696 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'
6698 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6699 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6700 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6701 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}'
6703 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}'
6705 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}'
6707 hardcode_automatic=yes
6708 hardcode_shlibpath_var=unsupported
6709 whole_archive_flag_spec='-all_load $convenience'
6710 link_all_deplibs=yes
6715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6716 hardcode_libdir_flag_spec='-L$libdir'
6717 hardcode_shlibpath_var=no
6724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6725 # support. Future versions do this automatically, but an explicit c++rt0.o
6726 # does not break anything, and helps significantly (at the cost of a little
6729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6730 hardcode_libdir_flag_spec='-R$libdir'
6732 hardcode_shlibpath_var=no
6735 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6739 hardcode_minus_L=yes
6740 hardcode_shlibpath_var=no
6743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6745 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6746 hardcode_libdir_flag_spec='-R$libdir'
6748 hardcode_shlibpath_var=no
6752 if test "$GCC" = yes; then
6753 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'
6755 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'
6757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6758 hardcode_libdir_separator=:
6761 # hardcode_minus_L: Not really in the search PATH,
6762 # but as the default location of the library.
6763 hardcode_minus_L=yes
6764 export_dynamic_flag_spec='${wl}-E'
6768 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6780 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6783 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6787 if test "$with_gnu_ld" = no; then
6790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6791 hardcode_libdir_flag_spec_ld='+b $libdir'
6792 hardcode_libdir_separator=:
6794 hardcode_shlibpath_var=no
6797 hardcode_libdir_flag_spec='-L$libdir'
6799 hardcode_shlibpath_var=no
6801 # hardcode_minus_L: Not really in the search PATH,
6802 # but as the default location of the library.
6803 hardcode_minus_L=yes
6806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6807 hardcode_libdir_separator=:
6809 export_dynamic_flag_spec='${wl}-E'
6811 # hardcode_minus_L: Not really in the search PATH,
6812 # but as the default location of the library.
6813 hardcode_minus_L=yes
6819 irix5* | irix6* | nonstopux*)
6820 if test "$GCC" = yes; then
6821 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'
6823 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'
6824 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6827 hardcode_libdir_separator=:
6828 link_all_deplibs=yes
6832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6835 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6837 hardcode_libdir_flag_spec='-R$libdir'
6839 hardcode_shlibpath_var=no
6843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6846 hardcode_libdir_separator=:
6847 hardcode_shlibpath_var=no
6852 hardcode_shlibpath_var=no
6853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6855 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6856 export_dynamic_flag_spec='${wl}-E'
6859 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6861 hardcode_libdir_flag_spec='-R$libdir'
6864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6872 hardcode_libdir_flag_spec='-L$libdir'
6873 hardcode_minus_L=yes
6874 allow_undefined_flag=unsupported
6875 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'
6876 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6880 if test "$GCC" = yes; then
6881 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6882 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'
6884 allow_undefined_flag=' -expect_unresolved \*'
6885 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'
6887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6888 hardcode_libdir_separator=:
6891 osf4* | osf5*) # as osf3* with the addition of -msym flag
6892 if test "$GCC" = yes; then
6893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894 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'
6895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6897 allow_undefined_flag=' -expect_unresolved \*'
6898 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'
6899 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6900 $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'
6902 # Both c and cxx compiler support -rpath directly
6903 hardcode_libdir_flag_spec='-rpath $libdir'
6905 hardcode_libdir_separator=:
6909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6910 hardcode_shlibpath_var=no
6911 export_dynamic_flag_spec='${wl}-Bexport'
6912 runpath_var=LD_RUN_PATH
6913 hardcode_runpath_var=yes
6917 no_undefined_flag=' -z text'
6918 if test "$GCC" = yes; then
6919 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6920 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6921 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6923 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6924 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6927 hardcode_libdir_flag_spec='-R$libdir'
6928 hardcode_shlibpath_var=no
6930 solaris2.[0-5] | solaris2.[0-5].*) ;;
6931 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6932 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6934 link_all_deplibs=yes
6938 if test "x$host_vendor" = xsequent; then
6939 # Use $CC to link under sequent, because it throws in some extra .o
6940 # files that make .init and .fini sections work.
6941 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6943 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6945 hardcode_libdir_flag_spec='-L$libdir'
6947 hardcode_minus_L=yes
6948 hardcode_shlibpath_var=no
6952 case $host_vendor in
6954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6955 hardcode_direct=yes # is this really true???
6958 ## LD is ld it makes a PLAMLIB
6959 ## CC just makes a GrossModule.
6960 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6961 reload_cmds='$CC -r -o $output$reload_objs'
6965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6966 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6969 runpath_var='LD_RUN_PATH'
6970 hardcode_shlibpath_var=no
6974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975 hardcode_shlibpath_var=no
6976 export_dynamic_flag_spec='-Bexport'
6980 if test -d /usr/nec; then
6981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6982 hardcode_shlibpath_var=no
6983 runpath_var=LD_RUN_PATH
6984 hardcode_runpath_var=yes
6990 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6993 hardcode_shlibpath_var=no
6994 hardcode_runpath_var=yes
6995 runpath_var=LD_RUN_PATH
6998 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6999 no_undefined_flag='${wl}-z ${wl}text'
7000 if test "$GCC" = yes; then
7001 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7003 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7005 runpath_var='LD_RUN_PATH'
7006 hardcode_shlibpath_var=no
7010 no_undefined_flag=' -z text'
7011 # $CC -shared without GNU ld will not create a library from C++
7012 # object files and a static libstdc++, better avoid it by now
7013 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7014 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7016 hardcode_libdir_flag_spec=
7017 hardcode_shlibpath_var=no
7018 runpath_var='LD_RUN_PATH'
7022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7023 hardcode_libdir_flag_spec='-L$libdir'
7024 hardcode_shlibpath_var=no
7033 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7034 echo "${ECHO_T}$ld_shlibs" >&6
7035 test "$ld_shlibs" = no && can_build_shared=no
7037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7038 if test "$GCC" = yes; then
7039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7043 # Do we need to explicitly link libc?
7045 case "x$archive_cmds_need_lc" in
7047 # Assume -lc should be added
7048 archive_cmds_need_lc=yes
7050 if test "$enable_shared" = yes && test "$GCC" = yes; then
7051 case $archive_cmds in
7053 # FIXME: we may have to deal with multi-command sequences.
7056 # Test whether the compiler implicitly links with -lc since on some
7057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7058 # to ld, don't add -lc before -lgcc.
7059 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } 2>conftest.err; then
7071 libobjs=conftest.$ac_objext
7073 wl=$lt_prog_compiler_wl
7079 lt_save_allow_undefined_flag=$allow_undefined_flag
7080 allow_undefined_flag=
7081 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7082 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }
7087 archive_cmds_need_lc=no
7089 archive_cmds_need_lc=yes
7091 allow_undefined_flag=$lt_save_allow_undefined_flag
7093 cat conftest.err 1>&5
7096 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7097 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7104 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7107 if test -n "$hardcode_libdir_flag_spec" || \
7108 test -n "$runpath_var " || \
7109 test "X$hardcode_automatic"="Xyes" ; then
7111 # We can hardcode non-existant directories.
7112 if test "$hardcode_direct" != no &&
7113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7114 # have to relink, otherwise we might link with an installed library
7115 # when we should be linking with a yet-to-be-installed one
7116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7117 test "$hardcode_minus_L" != no; then
7118 # Linking always hardcodes the temporary library directory.
7119 hardcode_action=relink
7121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7122 hardcode_action=immediate
7125 # We cannot hardcode anything, or else we can only hardcode existing
7127 hardcode_action=unsupported
7129 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7130 echo "${ECHO_T}$hardcode_action" >&6
7132 if test "$hardcode_action" = relink; then
7133 # Fast installation is not supported
7134 enable_fast_install=no
7135 elif test "$shlibpath_overrides_runpath" = yes ||
7136 test "$enable_shared" = no; then
7137 # Fast installation is not necessary
7138 enable_fast_install=needless
7143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7148 echo "$as_me:$LINENO: result: yes" >&5
7149 echo "${ECHO_T}yes" >&6
7151 # FIXME - insert some real tests, host_os isn't really good enough
7154 if test -n "$STRIP" ; then
7155 striplib="$STRIP -x"
7156 echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6
7159 echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7164 echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7170 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7173 libname_spec='lib$name'
7181 shlibpath_overrides_runpath=unknown
7183 dynamic_linker="$host_os ld.so"
7184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7185 if test "$GCC" = yes; then
7186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7187 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7188 # if the path contains ";" then we assume it to be the separator
7189 # otherwise default to the standard path separator (i.e. ":") - it is
7190 # assumed that no part of a normal pathname contains ";" but that should
7191 # okay in the real world where ";" in dirpaths is itself problematic.
7192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7197 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7199 need_lib_prefix=unknown
7200 hardcode_into_libs=no
7202 # when you set need_version to no, make sure it does not cause -set_version
7203 # flags to be left without arguments
7204 need_version=unknown
7209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7210 shlibpath_var=LIBPATH
7212 # AIX 3 has no versioning support, so we append a major version to the name.
7213 soname_spec='${libname}${release}${shared_ext}$major'
7220 hardcode_into_libs=yes
7221 if test "$host_cpu" = ia64; then
7222 # AIX 5 supports IA64
7223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7224 shlibpath_var=LD_LIBRARY_PATH
7226 # With GCC up to 2.95.x, collect2 would create an import file
7227 # for dependence libraries. The import file would start with
7228 # the line `#! .'. This would cause the generated library to
7229 # depend on `.', always an invalid library. This was fixed in
7230 # development snapshots of GCC prior to 3.0.
7232 aix4 | aix4.[01] | aix4.[01].*)
7233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7235 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7243 # soname into executable. Probably we can add versioning support to
7244 # collect2, so additional links can be useful in future.
7245 if test "$aix_use_runtimelinking" = yes; then
7246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7247 # instead of lib<name>.a to let people know that these are not
7248 # typical AIX shared libraries.
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251 # We preserve .a as extension for shared libraries through AIX4.2
7252 # and later when we are not doing run time linking.
7253 library_names_spec='${libname}${release}.a $libname.a'
7254 soname_spec='${libname}${release}${shared_ext}$major'
7256 shlibpath_var=LIBPATH
7261 library_names_spec='$libname.ixlibrary $libname.a'
7262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7263 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'
7267 library_names_spec='${libname}${shared_ext}'
7268 dynamic_linker="$host_os ld.so"
7269 shlibpath_var=LIBRARY_PATH
7275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7276 soname_spec='${libname}${release}${shared_ext}$major'
7277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7278 shlibpath_var=LD_LIBRARY_PATH
7279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7281 # the default ld.so.conf also contains /usr/contrib/lib and
7282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7283 # libtool to hard-code these into programs
7286 cygwin* | mingw* | pw32*)
7287 version_type=windows
7292 case $GCC,$host_os in
7293 yes,cygwin* | yes,mingw* | yes,pw32*)
7294 library_names_spec='$libname.dll.a'
7295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7296 postinstall_cmds='base_file=`basename \${file}`~
7297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7298 dldir=$destdir/`dirname \$dlpath`~
7299 test -d \$dldir || mkdir -p \$dldir~
7300 $install_prog $dir/$dlname \$dldir/$dlname'
7301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7302 dlpath=$dir/\$dldll~
7304 shlibpath_overrides_runpath=yes
7308 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7309 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7310 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7313 # MinGW DLLs use traditional 'lib' prefix
7314 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7315 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7316 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7317 # It is most probably a Windows format PATH printed by
7318 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7319 # path with ; separators, and with drive letters. We can handle the
7320 # drive letters (cygwin fileutils understands them), so leave them,
7321 # especially as we might pass files found there to a mingw objdump,
7322 # which wouldn't understand a cygwinified path. Ahh.
7323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7329 # pw32 DLLs use 'pw' prefix rather than 'lib'
7330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7339 dynamic_linker='Win32 ld.exe'
7340 # FIXME: first we should search . and the directory the executable is in
7344 darwin* | rhapsody*)
7345 dynamic_linker="$host_os dyld"
7349 # FIXME: Relying on posixy $() will cause problems for
7350 # cross-compilation, but unfortunately the echo tests do not
7351 # yet detect zsh echo's removal of \ escapes.
7352 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7353 soname_spec='${libname}${release}${major}$shared_ext'
7354 shlibpath_overrides_runpath=yes
7355 shlibpath_var=DYLD_LIBRARY_PATH
7356 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7357 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7358 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7359 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"`
7361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7369 soname_spec='${libname}${release}${shared_ext}$major'
7370 shlibpath_var=LD_LIBRARY_PATH
7378 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7379 version_type=freebsd-$objformat
7380 case $version_type in
7382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7391 shlibpath_var=LD_LIBRARY_PATH
7394 shlibpath_overrides_runpath=yes
7396 freebsd3.01* | freebsdelf3.01*)
7397 shlibpath_overrides_runpath=yes
7398 hardcode_into_libs=yes
7401 shlibpath_overrides_runpath=no
7402 hardcode_into_libs=yes
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7412 soname_spec='${libname}${release}${shared_ext}$major'
7413 shlibpath_var=LD_LIBRARY_PATH
7414 hardcode_into_libs=yes
7417 hpux9* | hpux10* | hpux11*)
7418 # Give a soname corresponding to the major version so that dld.sl refuses to
7419 # link against other versions.
7426 hardcode_into_libs=yes
7427 dynamic_linker="$host_os dld.so"
7428 shlibpath_var=LD_LIBRARY_PATH
7429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7431 soname_spec='${libname}${release}${shared_ext}$major'
7432 if test "X$HPUX_IA64_MODE" = X32; then
7433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7441 hardcode_into_libs=yes
7442 dynamic_linker="$host_os dld.sl"
7443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7446 soname_spec='${libname}${release}${shared_ext}$major'
7447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7452 dynamic_linker="$host_os dld.sl"
7453 shlibpath_var=SHLIB_PATH
7454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456 soname_spec='${libname}${release}${shared_ext}$major'
7459 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7460 postinstall_cmds='chmod 555 $lib'
7463 irix5* | irix6* | nonstopux*)
7465 nonstopux*) version_type=nonstopux ;;
7467 if test "$lt_cv_prog_gnu_ld" = yes; then
7475 soname_spec='${libname}${release}${shared_ext}$major'
7476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7478 irix5* | nonstopux*)
7482 case $LD in # libtool.m4 will add one of these switches to LD
7483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7484 libsuff= shlibsuff= libmagic=32-bit;;
7485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7486 libsuff=32 shlibsuff=N32 libmagic=N32;;
7487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7489 *) libsuff= shlibsuff= libmagic=never-match;;
7493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7494 shlibpath_overrides_runpath=no
7495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7497 hardcode_into_libs=yes
7500 # No shared lib support for Linux oldld, aout, or coff.
7501 linux*oldld* | linux*aout* | linux*coff*)
7505 # This must be Linux ELF.
7510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511 soname_spec='${libname}${release}${shared_ext}$major'
7512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7513 shlibpath_var=LD_LIBRARY_PATH
7514 shlibpath_overrides_runpath=no
7515 # This implies no fast_install, which is unacceptable.
7516 # Some rework will be needed to allow for fast_install
7517 # before this can be enabled.
7518 hardcode_into_libs=yes
7520 # We used to test for /lib/ld.so.1 and disable shared libraries on
7521 # powerpc, because MkLinux only supported shared libraries with the
7522 # GNU dynamic linker. Since this was broken with cross compilers,
7523 # most powerpc-linux boxes support dynamic linking these days and
7524 # people can always --disable-shared, the test was removed, and we
7525 # assume the GNU/Linux dynamic linker is in use.
7526 dynamic_linker='GNU/Linux ld.so'
7533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7536 dynamic_linker='NetBSD (a.out) ld.so'
7538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7539 soname_spec='${libname}${release}${shared_ext}$major'
7540 dynamic_linker='NetBSD ld.elf_so'
7542 shlibpath_var=LD_LIBRARY_PATH
7543 shlibpath_overrides_runpath=yes
7544 hardcode_into_libs=yes
7549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7550 shlibpath_var=LD_LIBRARY_PATH
7551 shlibpath_overrides_runpath=yes
7558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7559 soname_spec='${libname}${release}${shared_ext}$major'
7560 shlibpath_var=LD_LIBRARY_PATH
7561 shlibpath_overrides_runpath=yes
7568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7570 shlibpath_var=LD_LIBRARY_PATH
7571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7573 openbsd2.[89] | openbsd2.[89].*)
7574 shlibpath_overrides_runpath=no
7577 shlibpath_overrides_runpath=yes
7581 shlibpath_overrides_runpath=yes
7586 libname_spec='$name'
7589 library_names_spec='$libname${shared_ext} $libname.a'
7590 dynamic_linker='OS/2 ld.exe'
7591 shlibpath_var=LIBPATH
7594 osf3* | osf4* | osf5*)
7598 soname_spec='${libname}${release}${shared_ext}$major'
7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7600 shlibpath_var=LD_LIBRARY_PATH
7601 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7602 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607 soname_spec='${libname}${release}${shared_ext}$major'
7608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 shlibpath_var=LD_LIBRARY_PATH
7616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7617 soname_spec='${libname}${release}${shared_ext}$major'
7618 shlibpath_var=LD_LIBRARY_PATH
7619 shlibpath_overrides_runpath=yes
7620 hardcode_into_libs=yes
7621 # ldd complains unless libraries are executable
7622 postinstall_cmds='chmod +x $lib'
7627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7629 shlibpath_var=LD_LIBRARY_PATH
7630 shlibpath_overrides_runpath=yes
7631 if test "$with_gnu_ld" = yes; then
7637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640 soname_spec='${libname}${release}${shared_ext}$major'
7641 shlibpath_var=LD_LIBRARY_PATH
7642 case $host_vendor in
7644 shlibpath_overrides_runpath=no
7646 export_dynamic_flag_spec='${wl}-Blargedynsym'
7647 runpath_var=LD_RUN_PATH
7655 shlibpath_overrides_runpath=no
7656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7662 if test -d /usr/nec ;then
7664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7665 soname_spec='$libname${shared_ext}.$major'
7666 shlibpath_var=LD_LIBRARY_PATH
7672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673 soname_spec='${libname}${release}${shared_ext}$major'
7674 shlibpath_var=LD_LIBRARY_PATH
7681 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7682 echo "${ECHO_T}$dynamic_linker" >&6
7683 test "$dynamic_linker" = no && can_build_shared=no
7685 if test "x$enable_dlopen" != xyes; then
7686 enable_dlopen=unknown
7687 enable_dlopen_self=unknown
7688 enable_dlopen_self_static=unknown
7695 lt_cv_dlopen="load_add_on"
7697 lt_cv_dlopen_self=yes
7701 lt_cv_dlopen="LoadLibrary"
7706 lt_cv_dlopen="dlopen"
7711 # if libdl is installed we need to link against it
7712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_check_lib_save_LIBS=$LIBS
7719 cat >conftest.$ac_ext <<_ACEOF
7720 #line $LINENO "configure"
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -s conftest$ac_exeext'
7749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7754 ac_cv_lib_dl_dlopen=yes
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7759 ac_cv_lib_dl_dlopen=no
7761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7764 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7765 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7766 if test $ac_cv_lib_dl_dlopen = yes; then
7767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7772 lt_cv_dlopen_self=yes
7779 echo "$as_me:$LINENO: checking for shl_load" >&5
7780 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7781 if test "${ac_cv_func_shl_load+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 /* System header to define __stub macros and hopefully few prototypes,
7792 which can conflict with char shl_load (); below.
7793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7794 <limits.h> exists even on freestanding compilers. */
7796 # include <limits.h>
7798 # include <assert.h>
7800 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7814 char (*f) () = shl_load;
7823 return f != shl_load;
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_func_shl_load=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_cv_func_shl_load=no
7847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7850 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7851 if test $ac_cv_func_shl_load = yes; then
7852 lt_cv_dlopen="shl_load"
7854 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7855 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 ac_check_lib_save_LIBS=$LIBS
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_dld_shl_load=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_dld_shl_load=no
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7906 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7908 if test $ac_cv_lib_dld_shl_load = yes; then
7909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7911 echo "$as_me:$LINENO: checking for dlopen" >&5
7912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7913 if test "${ac_cv_func_dlopen+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 /* System header to define __stub macros and hopefully few prototypes,
7924 which can conflict with char dlopen (); below.
7925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7926 <limits.h> exists even on freestanding compilers. */
7928 # include <limits.h>
7930 # include <assert.h>
7932 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7940 /* The GNU C library defines this for functions which it implements
7941 to always fail with ENOSYS. Some functions are actually named
7942 something starting with __ and the normal name is an alias. */
7943 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7946 char (*f) () = dlopen;
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_func_dlopen=yes
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_func_dlopen=no
7979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7982 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7983 if test $ac_cv_func_dlopen = yes; then
7984 lt_cv_dlopen="dlopen"
7986 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 ac_check_lib_save_LIBS=$LIBS
7993 cat >conftest.$ac_ext <<_ACEOF
7994 #line $LINENO "configure"
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8001 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018 (eval $ac_link) 2>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_cv_lib_dl_dlopen=yes
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_cv_lib_dl_dlopen=no
8035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8036 LIBS=$ac_check_lib_save_LIBS
8038 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8039 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8040 if test $ac_cv_lib_dl_dlopen = yes; then
8041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8043 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8044 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8045 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_check_lib_save_LIBS=$LIBS
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8058 /* Override any gcc2 internal prototype to avoid an error. */
8062 /* We use char because int might match the return type of a gcc2
8063 builtin and then its argument prototype would still apply. */
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } &&
8079 { ac_try='test -s conftest$ac_exeext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 ac_cv_lib_svld_dlopen=yes
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 ac_cv_lib_svld_dlopen=no
8092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8095 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8097 if test $ac_cv_lib_svld_dlopen = yes; then
8098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8100 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8101 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8102 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 ac_check_lib_save_LIBS=$LIBS
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line $LINENO "configure"
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 /* Override any gcc2 internal prototype to avoid an error. */
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -s conftest$ac_exeext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_cv_lib_dld_dld_link=yes
8144 echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8147 ac_cv_lib_dld_dld_link=no
8149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8150 LIBS=$ac_check_lib_save_LIBS
8152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8154 if test $ac_cv_lib_dld_dld_link = yes; then
8155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8176 if test "x$lt_cv_dlopen" != xno; then
8182 case $lt_cv_dlopen in
8184 save_CPPFLAGS="$CPPFLAGS"
8185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8187 save_LDFLAGS="$LDFLAGS"
8188 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8191 LIBS="$lt_cv_dlopen_libs $LIBS"
8193 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8195 if test "${lt_cv_dlopen_self+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 if test "$cross_compiling" = yes; then :
8199 lt_cv_dlopen_self=cross
8201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8202 lt_status=$lt_dlunknown
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8204 "configure"
8205 #include "confdefs.h"
8214 # define LT_DLGLOBAL RTLD_GLOBAL
8217 # define LT_DLGLOBAL DL_GLOBAL
8219 # define LT_DLGLOBAL 0
8223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8224 find out it does not work in some platform. */
8225 #ifndef LT_DLLAZY_OR_NOW
8227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8230 # define LT_DLLAZY_OR_NOW DL_LAZY
8233 # define LT_DLLAZY_OR_NOW RTLD_NOW
8236 # define LT_DLLAZY_OR_NOW DL_NOW
8238 # define LT_DLLAZY_OR_NOW 0
8246 extern "C" void exit (int);
8249 void fnord() { int i=42;}
8252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8253 int status = $lt_dlunknown;
8257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8259 /* dlclose (self); */
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8270 (./conftest; exit; ) 2>/dev/null
8273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8275 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8278 # compilation failed
8279 lt_cv_dlopen_self=no
8286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8289 if test "x$lt_cv_dlopen_self" = xyes; then
8290 LDFLAGS="$LDFLAGS $link_static_flag"
8291 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8293 if test "${lt_cv_dlopen_self_static+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 if test "$cross_compiling" = yes; then :
8297 lt_cv_dlopen_self_static=cross
8299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8300 lt_status=$lt_dlunknown
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8302 "configure"
8303 #include "confdefs.h"
8312 # define LT_DLGLOBAL RTLD_GLOBAL
8315 # define LT_DLGLOBAL DL_GLOBAL
8317 # define LT_DLGLOBAL 0
8321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8322 find out it does not work in some platform. */
8323 #ifndef LT_DLLAZY_OR_NOW
8325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8328 # define LT_DLLAZY_OR_NOW DL_LAZY
8331 # define LT_DLLAZY_OR_NOW RTLD_NOW
8334 # define LT_DLLAZY_OR_NOW DL_NOW
8336 # define LT_DLLAZY_OR_NOW 0
8344 extern "C" void exit (int);
8347 void fnord() { int i=42;}
8350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8351 int status = $lt_dlunknown;
8355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8357 /* dlclose (self); */
8363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364 (eval $ac_link) 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8368 (./conftest; exit; ) 2>/dev/null
8371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8373 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8376 # compilation failed
8377 lt_cv_dlopen_self_static=no
8384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8388 CPPFLAGS="$save_CPPFLAGS"
8389 LDFLAGS="$save_LDFLAGS"
8394 case $lt_cv_dlopen_self in
8395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8396 *) enable_dlopen_self=unknown ;;
8399 case $lt_cv_dlopen_self_static in
8400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8401 *) enable_dlopen_self_static=unknown ;;
8406 # Report which librarie types wil actually be built
8407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8410 echo "${ECHO_T}$can_build_shared" >&6
8412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8414 test "$can_build_shared" = "no" && enable_shared=no
8416 # On AIX, shared libraries and static libraries use the same namespace, and
8417 # are all built from PIC.
8420 test "$enable_shared" = yes && enable_static=no
8421 if test -n "$RANLIB"; then
8422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8423 postinstall_cmds='$RANLIB $lib'
8428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8429 test "$enable_shared" = yes && enable_static=no
8432 darwin* | rhapsody*)
8433 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8434 archive_cmds_need_lc=no
8436 rhapsody* | darwin1.[012])
8437 allow_undefined_flag='-undefined suppress'
8440 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8443 # FIXME: Relying on posixy $() will cause problems for
8444 # cross-compilation, but unfortunately the echo tests do not
8445 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8446 # `"' quotes if we put them in here... so don't!
8447 output_verbose_link_cmd='echo'
8448 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8449 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8451 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}'
8452 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}'
8454 hardcode_automatic=yes
8455 hardcode_shlibpath_var=unsupported
8456 whole_archive_flag_spec='-all_load $convenience'
8457 link_all_deplibs=yes
8461 echo "$as_me:$LINENO: result: $enable_shared" >&5
8462 echo "${ECHO_T}$enable_shared" >&6
8464 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8465 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8466 # Make sure either enable_shared or enable_static is yes.
8467 test "$enable_shared" = yes || enable_static=yes
8468 echo "$as_me:$LINENO: result: $enable_static" >&5
8469 echo "${ECHO_T}$enable_static" >&6
8471 # The else clause should only fire when bootstrapping the
8472 # libtool distribution, otherwise you forgot to ship ltmain.sh
8473 # with your package, and you will get complaints that there are
8474 # no rules to generate ltmain.sh.
8475 if test -f "$ltmain"; then
8476 # See if we are running on zsh, and set the options which allow our commands through
8477 # without removal of \ escapes.
8478 if test -n "${ZSH_VERSION+set}" ; then
8479 setopt NO_GLOB_SUBST
8481 # Now quote all the things that may contain metacharacters while being
8482 # careful not to overquote the AC_SUBSTed values. We take copies of the
8483 # variables and quote the copies for generation of the libtool script.
8484 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8487 deplibs_check_method reload_flag reload_cmds need_locks \
8488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8489 lt_cv_sys_global_symbol_to_c_name_address \
8490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8491 old_postinstall_cmds old_postuninstall_cmds \
8495 lt_prog_compiler_wl \
8496 lt_prog_compiler_pic \
8497 lt_prog_compiler_static \
8498 lt_prog_compiler_no_builtin_flag \
8499 export_dynamic_flag_spec \
8500 thread_safe_flag_spec \
8501 whole_archive_flag_spec \
8502 enable_shared_with_static_runtimes \
8504 old_archive_from_new_cmds \
8509 compiler_lib_search_path \
8511 archive_expsym_cmds \
8513 postuninstall_cmds \
8514 old_archive_from_expsyms_cmds \
8515 allow_undefined_flag \
8517 export_symbols_cmds \
8518 hardcode_libdir_flag_spec \
8519 hardcode_libdir_flag_spec_ld \
8520 hardcode_libdir_separator \
8521 hardcode_automatic \
8523 module_expsym_cmds \
8524 lt_cv_prog_compiler_c_o \
8529 old_archive_cmds | \
8530 old_archive_from_new_cmds | \
8532 archive_expsym_cmds | \
8534 module_expsym_cmds | \
8535 old_archive_from_expsyms_cmds | \
8536 export_symbols_cmds | \
8537 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8538 postinstall_cmds | postuninstall_cmds | \
8539 old_postinstall_cmds | old_postuninstall_cmds | \
8540 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8541 # Double-quote double-evaled strings.
8542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8551 *'\$0 --fallback-echo"')
8552 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8557 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8559 { echo "$as_me:$LINENO: creating $ofile" >&5
8560 echo "$as_me: creating $ofile" >&6;}
8562 cat <<__EOF__ >> "$cfgfile"
8565 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8566 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8567 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8569 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8570 # Free Software Foundation, Inc.
8572 # This file is part of GNU Libtool:
8573 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8575 # This program is free software; you can redistribute it and/or modify
8576 # it under the terms of the GNU General Public License as published by
8577 # the Free Software Foundation; either version 2 of the License, or
8578 # (at your option) any later version.
8580 # This program is distributed in the hope that it will be useful, but
8581 # WITHOUT ANY WARRANTY; without even the implied warranty of
8582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8583 # General Public License for more details.
8585 # You should have received a copy of the GNU General Public License
8586 # along with this program; if not, write to the Free Software
8587 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8589 # As a special exception to the GNU General Public License, if you
8590 # distribute this file as part of a program that contains a
8591 # configuration script generated by Autoconf, you may include it under
8592 # the same distribution terms that you use for the rest of that program.
8594 # A sed program that does not truncate output.
8597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8598 Xsed="$SED -e s/^X//"
8600 # The HP-UX ksh and POSIX shell print the target directory to stdout
8602 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8604 # The names of the tagged configurations supported by this script.
8607 # ### BEGIN LIBTOOL CONFIG
8609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8611 # Shell to use when invoking shell scripts.
8614 # Whether or not to build shared libraries.
8615 build_libtool_libs=$enable_shared
8617 # Whether or not to build static libraries.
8618 build_old_libs=$enable_static
8620 # Whether or not to add -lc for building shared libraries.
8621 build_libtool_need_lc=$archive_cmds_need_lc
8623 # Whether or not to disallow shared libs when runtime libs are static
8624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8626 # Whether or not to optimize for fast installation.
8627 fast_install=$enable_fast_install
8630 host_alias=$host_alias
8633 # An echo program that does not interpret backslashes.
8638 AR_FLAGS=$lt_AR_FLAGS
8643 # A language-specific compiler.
8646 # Is the compiler the GNU C compiler?
8652 # The linker used to build libraries.
8655 # Whether we need hard or soft links.
8658 # A BSD-compatible nm program.
8661 # A symbol stripping program
8664 # Used to examine libraries when file_magic_cmd begins "file"
8665 MAGIC_CMD=$MAGIC_CMD
8667 # Used on cygwin: DLL creation program.
8670 # Used on cygwin: object dumper.
8673 # Used on cygwin: assembler.
8676 # The name of the directory that contains temporary libtool files.
8679 # How to create reloadable object files.
8680 reload_flag=$lt_reload_flag
8681 reload_cmds=$lt_reload_cmds
8683 # How to pass a linker flag through the compiler.
8684 wl=$lt_lt_prog_compiler_wl
8686 # Object file suffix (normally "o").
8689 # Old archive suffix (normally "a").
8692 # Shared library suffix (normally ".so").
8695 # Executable file suffix (normally "").
8698 # Additional compiler flags for building library objects.
8699 pic_flag=$lt_lt_prog_compiler_pic
8702 # What is the maximum length of a command?
8703 max_cmd_len=$lt_cv_sys_max_cmd_len
8705 # Does compiler simultaneously support -c and -o options?
8706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8708 # Must we lock files when doing compilation ?
8709 need_locks=$lt_need_locks
8711 # Do we need the lib prefix for modules?
8712 need_lib_prefix=$need_lib_prefix
8714 # Do we need a version for libraries?
8715 need_version=$need_version
8717 # Whether dlopen is supported.
8718 dlopen_support=$enable_dlopen
8720 # Whether dlopen of programs is supported.
8721 dlopen_self=$enable_dlopen_self
8723 # Whether dlopen of statically linked programs is supported.
8724 dlopen_self_static=$enable_dlopen_self_static
8726 # Compiler flag to prevent dynamic linking.
8727 link_static_flag=$lt_lt_prog_compiler_static
8729 # Compiler flag to turn off builtin functions.
8730 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8732 # Compiler flag to allow reflexive dlopens.
8733 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8735 # Compiler flag to generate shared objects directly from archives.
8736 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8738 # Compiler flag to generate thread-safe objects.
8739 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8741 # Library versioning type.
8742 version_type=$version_type
8744 # Format of library name prefix.
8745 libname_spec=$lt_libname_spec
8747 # List of archive names. First name is the real one, the rest are links.
8748 # The last name is the one that the linker finds with -lNAME.
8749 library_names_spec=$lt_library_names_spec
8751 # The coded name of the library, if different from the real name.
8752 soname_spec=$lt_soname_spec
8754 # Commands used to build and install an old-style archive.
8756 old_archive_cmds=$lt_old_archive_cmds
8757 old_postinstall_cmds=$lt_old_postinstall_cmds
8758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8760 # Create an old-style archive from a shared archive.
8761 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8763 # Create a temporary old-style archive to link instead of a shared archive.
8764 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8766 # Commands used to build and install a shared archive.
8767 archive_cmds=$lt_archive_cmds
8768 archive_expsym_cmds=$lt_archive_expsym_cmds
8769 postinstall_cmds=$lt_postinstall_cmds
8770 postuninstall_cmds=$lt_postuninstall_cmds
8772 # Commands used to build a loadable module (assumed same as above if empty)
8773 module_cmds=$lt_module_cmds
8774 module_expsym_cmds=$lt_module_expsym_cmds
8776 # Commands to strip libraries.
8777 old_striplib=$lt_old_striplib
8778 striplib=$lt_striplib
8780 # Dependencies to place before the objects being linked to create a
8782 predep_objects=$lt_predep_objects
8784 # Dependencies to place after the objects being linked to create a
8786 postdep_objects=$lt_postdep_objects
8788 # Dependencies to place before the objects being linked to create a
8792 # Dependencies to place after the objects being linked to create a
8794 postdeps=$lt_postdeps
8796 # The library search path used internally by the compiler when linking
8798 compiler_lib_search_path=$lt_compiler_lib_search_path
8800 # Method to check whether dependent libraries are shared objects.
8801 deplibs_check_method=$lt_deplibs_check_method
8803 # Command to use when deplibs_check_method == file_magic.
8804 file_magic_cmd=$lt_file_magic_cmd
8806 # Flag that allows shared libraries with undefined symbols to be built.
8807 allow_undefined_flag=$lt_allow_undefined_flag
8809 # Flag that forces no undefined symbols.
8810 no_undefined_flag=$lt_no_undefined_flag
8812 # Commands used to finish a libtool library installation in a directory.
8813 finish_cmds=$lt_finish_cmds
8815 # Same as above, but a single script fragment to be evaled but not shown.
8816 finish_eval=$lt_finish_eval
8818 # Take the output of nm and produce a listing of raw symbols and C names.
8819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8821 # Transform the output of nm in a proper C declaration
8822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8824 # Transform the output of nm in a C name address pair
8825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8827 # This is the shared library runtime path variable.
8828 runpath_var=$runpath_var
8830 # This is the shared library path variable.
8831 shlibpath_var=$shlibpath_var
8833 # Is shlibpath searched before the hard-coded library search path?
8834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8836 # How to hardcode a shared library path into an executable.
8837 hardcode_action=$hardcode_action
8839 # Whether we should hardcode library paths into libraries.
8840 hardcode_into_libs=$hardcode_into_libs
8842 # Flag to hardcode \$libdir into a binary during linking.
8843 # This must work even if \$libdir does not exist.
8844 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8846 # If ld is used when linking, flag to hardcode \$libdir into
8847 # a binary during linking. This must work even if \$libdir does
8849 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8851 # Whether we need a single -rpath flag with a separated argument.
8852 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8854 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8856 hardcode_direct=$hardcode_direct
8858 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8860 hardcode_minus_L=$hardcode_minus_L
8862 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8863 # the resulting binary.
8864 hardcode_shlibpath_var=$hardcode_shlibpath_var
8866 # Set to yes if building a shared library automatically hardcodes DIR into the library
8867 # and all subsequent libraries and executables linked against it.
8868 hardcode_automatic=$hardcode_automatic
8870 # Variables whose values should be saved in libtool wrapper scripts and
8871 # restored at relink time.
8872 variables_saved_for_relink="$variables_saved_for_relink"
8874 # Whether libtool must link a program against all its dependency libraries.
8875 link_all_deplibs=$link_all_deplibs
8877 # Compile-time system search path for libraries
8878 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8880 # Run-time system search path for libraries
8881 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8883 # Fix the shell variable \$srcfile for the compiler.
8884 fix_srcfile_path="$fix_srcfile_path"
8886 # Set to yes if exported symbols are required.
8887 always_export_symbols=$always_export_symbols
8889 # The commands to list exported symbols.
8890 export_symbols_cmds=$lt_export_symbols_cmds
8892 # The commands to extract the exported symbol list from a shared archive.
8893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8895 # Symbols that should not be listed in the preloaded symbols.
8896 exclude_expsyms=$lt_exclude_expsyms
8898 # Symbols that must always be exported.
8899 include_expsyms=$lt_include_expsyms
8901 # ### END LIBTOOL CONFIG
8908 cat <<\EOF >> "$cfgfile"
8910 # AIX sometimes has problems with the GCC collect2 program. For some
8911 # reason, if we set the COLLECT_NAMES environment variable, the problems
8912 # vanish in a puff of smoke.
8913 if test "X${COLLECT_NAMES+set}" != Xset; then
8915 export COLLECT_NAMES
8921 # We use sed instead of cat because bash on DJGPP gets confused if
8922 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8923 # text mode, it properly converts lines to CR/LF. This bash problem
8924 # is reportedly fixed, but why not run on old versions too?
8925 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8927 mv -f "$cfgfile" "$ofile" || \
8928 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8932 # If there is no Makefile yet, we rely on a make rule to execute
8933 # `config.status --recheck' to rerun these tests and create the
8934 # libtool script then.
8935 test -f Makefile && make "$ltmain"
8940 ac_cpp='$CPP $CPPFLAGS'
8941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8948 # Check whether --with-tags or --without-tags was given.
8949 if test "${with_tags+set}" = set; then
8950 withval="$with_tags"
8954 if test -f "$ltmain" && test -n "$tagnames"; then
8955 if test ! -f "${ofile}"; then
8956 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8957 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8960 if test -z "$LTCC"; then
8961 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8962 if test -z "$LTCC"; then
8963 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8964 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8967 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8971 # Extract list of available tagged configurations in $ofile.
8972 # Note that this assumes the entire list is on one line.
8973 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8976 for tagname in $tagnames; do
8978 # Check whether tagname contains only valid characters
8979 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8981 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8982 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8983 { (exit 1); exit 1; }; }
8987 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8989 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8990 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8991 { (exit 1); exit 1; }; }
8994 # Update the list of available tags.
8995 if test -n "$tagname"; then
8996 echo appending configuration tag \"$tagname\" to $ofile
9000 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9002 ac_cpp='$CXXCPP $CPPFLAGS'
9003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9010 archive_cmds_need_lc_CXX=no
9011 allow_undefined_flag_CXX=
9012 always_export_symbols_CXX=no
9013 archive_expsym_cmds_CXX=
9014 export_dynamic_flag_spec_CXX=
9015 hardcode_direct_CXX=no
9016 hardcode_libdir_flag_spec_CXX=
9017 hardcode_libdir_flag_spec_ld_CXX=
9018 hardcode_libdir_separator_CXX=
9019 hardcode_minus_L_CXX=no
9020 hardcode_automatic_CXX=no
9022 module_expsym_cmds_CXX=
9023 link_all_deplibs_CXX=unknown
9024 old_archive_cmds_CXX=$old_archive_cmds
9025 no_undefined_flag_CXX=
9026 whole_archive_flag_spec_CXX=
9027 enable_shared_with_static_runtimes_CXX=no
9029 # Dependencies to place before and after the object being linked:
9031 postdep_objects_CXX=
9034 compiler_lib_search_path_CXX=
9036 # Source file extension for C++ test sources.
9039 # Object file extension for compiled C++ test sources.
9043 # Code to be used in simple compile tests
9044 lt_simple_compile_test_code="int some_variable = 0;\n"
9046 # Code to be used in simple link tests
9047 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9051 # If no C compiler was specified, use CC.
9054 # Allow CC to be a program name with arguments.
9058 # Allow CC to be a program name with arguments.
9063 lt_save_with_gnu_ld=$with_gnu_ld
9064 lt_save_path_LD=$lt_cv_path_LD
9065 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9066 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9068 unset lt_cv_prog_gnu_ld
9070 if test -n "${lt_cv_path_LDCXX+set}"; then
9071 lt_cv_path_LD=$lt_cv_path_LDCXX
9075 test -z "${LDCXX+set}" || LD=$LDCXX
9079 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9081 # We don't want -fno-exception wen compiling C++ code, so set the
9082 # no_builtin_flag separately
9083 if test "$GXX" = yes; then
9084 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9086 lt_prog_compiler_no_builtin_flag_CXX=
9089 if test "$GXX" = yes; then
9090 # Set up default GNU C++ configuration
9093 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9094 if test "${with_gnu_ld+set}" = set; then
9095 withval="$with_gnu_ld"
9096 test "$withval" = no || with_gnu_ld=yes
9101 if test "$GCC" = yes; then
9102 # Check if gcc -print-prog-name=ld gives a path.
9103 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9104 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9107 # gcc leaves a trailing carriage return which upsets mingw
9108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9113 # Accept absolute paths.
9115 re_direlt='/[^/][^/]*/\.\./'
9116 # Canonicalize the path of ld
9117 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9118 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9119 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9121 test -z "$LD" && LD="$ac_prog"
9124 # If it fails, then pretend we aren't using GCC.
9128 # If it is relative, then search for the first ld in PATH.
9132 elif test "$with_gnu_ld" = yes; then
9133 echo "$as_me:$LINENO: checking for GNU ld" >&5
9134 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9136 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9137 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9139 if test "${lt_cv_path_LD+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 if test -z "$LD"; then
9143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9144 for ac_dir in $PATH; do
9146 test -z "$ac_dir" && ac_dir=.
9147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9148 lt_cv_path_LD="$ac_dir/$ac_prog"
9149 # Check to see if the program is GNU ld. I'd rather use --version,
9150 # but apparently some GNU ld's only accept -v.
9151 # Break only if it was the GNU/non-GNU ld that we prefer.
9152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9153 *GNU* | *'with BFD'*)
9154 test "$with_gnu_ld" != no && break
9157 test "$with_gnu_ld" != yes && break
9164 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9169 if test -n "$LD"; then
9170 echo "$as_me:$LINENO: result: $LD" >&5
9171 echo "${ECHO_T}$LD" >&6
9173 echo "$as_me:$LINENO: result: no" >&5
9174 echo "${ECHO_T}no" >&6
9176 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9177 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9178 { (exit 1); exit 1; }; }
9179 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9180 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9181 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9185 case `"$LD" -v 2>&1 </dev/null` in
9186 *GNU* | *'with BFD'*)
9187 lt_cv_prog_gnu_ld=yes
9190 lt_cv_prog_gnu_ld=no
9194 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9195 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9196 with_gnu_ld=$lt_cv_prog_gnu_ld
9200 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9201 # archiving commands below assume that GNU ld is being used.
9202 if test "$with_gnu_ld" = yes; then
9203 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204 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'
9206 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9209 # If archive_cmds runs LD, not CC, wlarc should be empty
9210 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9211 # investigate it a little bit more. (MM)
9214 # ancient GNU ld didn't support --whole-archive et. al.
9215 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9216 grep 'no-whole-archive' > /dev/null; then
9217 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9219 whole_archive_flag_spec_CXX=
9225 # A generic and very simple default shared library creation
9226 # command for GNU C++ for the case where it uses the native
9227 # linker, instead of GNU ld. If possible, this setting should
9228 # overridden to take advantage of the native linker features on
9229 # the platform it is being used on.
9230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9233 # Commands to make compiler produce verbose output that lists
9234 # what "hidden" libraries, object files and flags are used when
9235 # linking a shared library.
9236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9244 # PORTME: fill in a description of your system's C++ link characteristics
9245 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9246 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9250 # FIXME: insert proper C++ library support
9254 if test "$host_cpu" = ia64; then
9255 # On IA64, the linker does run time linking by default, so we don't
9256 # have to do anything special.
9257 aix_use_runtimelinking=no
9258 exp_sym_flag='-Bexport'
9261 aix_use_runtimelinking=no
9263 # Test if we are trying to use run time linking or normal
9264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9265 # need to do runtime linking.
9266 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9267 for ld_flag in $LDFLAGS; do
9270 aix_use_runtimelinking=yes
9277 exp_sym_flag='-bexport'
9278 no_entry_flag='-bnoentry'
9281 # When large executables or shared objects are built, AIX ld can
9282 # have problems creating the table of contents. If linking a library
9283 # or program results in "error TOC overflow" add -mminimal-toc to
9284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9288 hardcode_direct_CXX=yes
9289 hardcode_libdir_separator_CXX=':'
9290 link_all_deplibs_CXX=yes
9292 if test "$GXX" = yes; then
9293 case $host_os in aix4.012|aix4.012.*)
9294 # We only want to do this on AIX 4.2 and lower, the check
9295 # below for broken collect2 doesn't work under 4.3+
9296 collect2name=`${CC} -print-prog-name=collect2`
9297 if test -f "$collect2name" && \
9298 strings "$collect2name" | grep resolve_lib_name >/dev/null
9300 # We have reworked collect2
9301 hardcode_direct_CXX=yes
9303 # We have old collect2
9304 hardcode_direct_CXX=unsupported
9305 # It fails to find uninstalled libraries when the uninstalled
9306 # path is not listed in the libpath. Setting hardcode_minus_L
9307 # to unsupported forces relinking
9308 hardcode_minus_L_CXX=yes
9309 hardcode_libdir_flag_spec_CXX='-L$libdir'
9310 hardcode_libdir_separator_CXX=
9313 shared_flag='-shared'
9316 if test "$host_cpu" = ia64; then
9317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9318 # chokes on -Wl,-G. The following line is correct:
9321 if test "$aix_use_runtimelinking" = yes; then
9322 shared_flag='${wl}-G'
9324 shared_flag='${wl}-bM:SRE'
9329 # It seems that -bexpall does not export symbols beginning with
9330 # underscore (_), so it is better to generate a list of symbols to export.
9331 always_export_symbols_CXX=yes
9332 if test "$aix_use_runtimelinking" = yes; then
9333 # Warning - without using the other runtime loading flags (-brtl),
9334 # -berok will link without error, but may produce a broken library.
9335 allow_undefined_flag_CXX='-berok'
9336 # Determine the default libpath from the value encoded in an empty executable.
9337 cat >conftest.$ac_ext <<_ACEOF
9338 #line $LINENO "configure"
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355 (eval $ac_link) 2>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9368 # Check for a 64-bit object if we didn't find anything.
9369 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; }
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9379 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9381 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"
9383 if test "$host_cpu" = ia64; then
9384 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9385 allow_undefined_flag_CXX="-z nodefs"
9386 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"
9388 # Determine the default libpath from the value encoded in an empty executable.
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9420 # Check for a 64-bit object if we didn't find anything.
9421 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; }
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9431 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9432 # Warning - without using the other run time loading flags,
9433 # -berok will link without error, but may produce a broken library.
9434 no_undefined_flag_CXX=' ${wl}-bernotok'
9435 allow_undefined_flag_CXX=' ${wl}-berok'
9436 # -bexpall does not export symbols beginning with underscore (_)
9437 always_export_symbols_CXX=yes
9438 # Exported symbols can be pulled into shared objects from archives
9439 whole_archive_flag_spec_CXX=' '
9440 archive_cmds_need_lc_CXX=yes
9441 # This is similar to how AIX traditionally builds it's shared libraries.
9442 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'
9447 case $cc_basename in
9449 # FIXME: insert proper C++ library support
9455 cygwin* | mingw* | pw32*)
9456 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9457 # as there is no search path for DLLs.
9458 hardcode_libdir_flag_spec_CXX='-L$libdir'
9459 allow_undefined_flag_CXX=unsupported
9460 always_export_symbols_CXX=no
9461 enable_shared_with_static_runtimes_CXX=yes
9463 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9464 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'
9465 # If the export-symbols file already is a .def file (1st line
9466 # is EXPORTS), use it as is; otherwise, prepend...
9467 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468 cp $export_symbols $output_objdir/$soname.def;
9470 echo EXPORTS > $output_objdir/$soname.def;
9471 cat $export_symbols >> $output_objdir/$soname.def;
9473 $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'
9479 darwin* | rhapsody*)
9480 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9481 archive_cmds_need_lc_CXX=no
9483 rhapsody* | darwin1.[012])
9484 allow_undefined_flag_CXX='-undefined suppress'
9487 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9490 lt_int_apple_cc_single_mod=no
9491 output_verbose_link_cmd='echo'
9492 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9493 lt_int_apple_cc_single_mod=yes
9495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9498 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'
9500 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504 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}'
9506 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}'
9508 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}'
9509 hardcode_direct_CXX=no
9510 hardcode_automatic_CXX=yes
9511 hardcode_shlibpath_var_CXX=unsupported
9512 whole_archive_flag_spec_CXX='-all_load $convenience'
9513 link_all_deplibs_CXX=yes
9518 case $cc_basename in
9520 # FIXME: insert proper C++ library support
9524 # Green Hills C++ Compiler
9525 # FIXME: insert proper C++ library support
9529 # FIXME: insert proper C++ library support
9535 # C++ shared libraries reported to be fairly broken before switch to ELF
9539 archive_cmds_need_lc_CXX=no
9542 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9550 hardcode_libdir_separator_CXX=:
9551 export_dynamic_flag_spec_CXX='${wl}-E'
9552 hardcode_direct_CXX=yes
9553 hardcode_minus_L_CXX=yes # Not in the search PATH,
9554 # but as the default
9555 # location of the library.
9557 case $cc_basename in
9559 # FIXME: insert proper C++ library support
9563 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'
9564 # Commands to make compiler produce verbose output that lists
9565 # what "hidden" libraries, object files and flags are used when
9566 # linking a shared library.
9568 # There doesn't appear to be a way to prevent this compiler from
9569 # explicitly linking system object files so we need to strip them
9570 # from the output so that they don't get included in the library
9572 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'
9575 if test "$GXX" = yes; then
9576 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'
9578 # FIXME: insert proper C++ library support
9585 if test $with_gnu_ld = no; then
9588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9590 hardcode_libdir_separator_CXX=:
9593 hardcode_libdir_flag_spec_CXX='-L$libdir'
9596 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597 hardcode_libdir_separator_CXX=:
9598 export_dynamic_flag_spec_CXX='${wl}-E'
9604 hardcode_direct_CXX=no
9605 hardcode_shlibpath_var_CXX=no
9608 hardcode_direct_CXX=no
9609 hardcode_shlibpath_var_CXX=no
9610 hardcode_minus_L_CXX=yes # Not in the search PATH,
9611 # but as the default
9612 # location of the library.
9615 hardcode_direct_CXX=yes
9616 hardcode_minus_L_CXX=yes # Not in the search PATH,
9617 # but as the default
9618 # location of the library.
9622 case $cc_basename in
9624 # FIXME: insert proper C++ library support
9630 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9636 # Commands to make compiler produce verbose output that lists
9637 # what "hidden" libraries, object files and flags are used when
9638 # linking a shared library.
9640 # There doesn't appear to be a way to prevent this compiler from
9641 # explicitly linking system object files so we need to strip them
9642 # from the output so that they don't get included in the library
9644 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'
9647 if test "$GXX" = yes; then
9648 if test $with_gnu_ld = no; then
9651 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9654 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'
9659 # FIXME: insert proper C++ library support
9666 case $cc_basename in
9669 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'
9671 # Archives containing C++ object files must be created using
9672 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9673 # necessary to make sure instantiated templates are included
9675 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9678 if test "$GXX" = yes; then
9679 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9682 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'
9685 link_all_deplibs_CXX=yes
9688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9689 hardcode_libdir_separator_CXX=:
9692 case $cc_basename in
9694 # Kuck and Associates, Inc. (KAI) C++ Compiler
9696 # KCC will only create a shared library if the output file
9697 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9698 # to its proper name (with version) after linking.
9699 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'
9700 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'
9701 # Commands to make compiler produce verbose output that lists
9702 # what "hidden" libraries, object files and flags are used when
9703 # linking a shared library.
9705 # There doesn't appear to be a way to prevent this compiler from
9706 # explicitly linking system object files so we need to strip them
9707 # from the output so that they don't get included in the library
9709 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'
9711 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9714 # Archives containing C++ object files must be created using
9715 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9716 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9721 archive_cmds_need_lc_CXX=no
9722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 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'
9724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9726 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 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'
9733 runpath_var=LD_RUN_PATH
9734 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9735 hardcode_libdir_separator_CXX=:
9737 # Commands to make compiler produce verbose output that lists
9738 # what "hidden" libraries, object files and flags are used when
9739 # linking a shared library.
9741 # There doesn't appear to be a way to prevent this compiler from
9742 # explicitly linking system object files so we need to strip them
9743 # from the output so that they don't get included in the library
9745 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'
9750 # FIXME: insert proper C++ library support
9754 # FIXME: insert proper C++ library support
9758 case $cc_basename in
9760 # FIXME: insert proper C++ library support
9764 # FIXME: insert proper C++ library support
9770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9771 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9773 hardcode_libdir_flag_spec_CXX='-R$libdir'
9774 hardcode_direct_CXX=yes
9775 hardcode_shlibpath_var_CXX=no
9777 # Workaround some broken pre-1.5 toolchains
9778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9781 case $cc_basename in
9783 # Kuck and Associates, Inc. (KAI) C++ Compiler
9785 # KCC will only create a shared library if the output file
9786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9787 # to its proper name (with version) after linking.
9788 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'
9790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9791 hardcode_libdir_separator_CXX=:
9793 # Archives containing C++ object files must be created using
9794 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9795 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9799 # Rational C++ 2.4.1
9800 # FIXME: insert proper C++ library support
9804 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9805 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'
9807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9808 hardcode_libdir_separator_CXX=:
9810 # Commands to make compiler produce verbose output that lists
9811 # what "hidden" libraries, object files and flags are used when
9812 # linking a shared library.
9814 # There doesn't appear to be a way to prevent this compiler from
9815 # explicitly linking system object files so we need to strip them
9816 # from the output so that they don't get included in the library
9818 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'
9821 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9822 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9823 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'
9825 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9826 hardcode_libdir_separator_CXX=:
9828 # Commands to make compiler produce verbose output that lists
9829 # what "hidden" libraries, object files and flags are used when
9830 # linking a shared library.
9831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9834 # FIXME: insert proper C++ library support
9841 case $cc_basename in
9843 # Kuck and Associates, Inc. (KAI) C++ Compiler
9845 # KCC will only create a shared library if the output file
9846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9847 # to its proper name (with version) after linking.
9848 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'
9850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9851 hardcode_libdir_separator_CXX=:
9853 # Archives containing C++ object files must be created using
9854 # the KAI C++ compiler.
9855 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9858 # Rational C++ 2.4.1
9859 # FIXME: insert proper C++ library support
9863 allow_undefined_flag_CXX=' -expect_unresolved \*'
9864 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'
9865 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9866 echo "-hidden">> $lib.exp~
9867 $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~
9870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9871 hardcode_libdir_separator_CXX=:
9873 # Commands to make compiler produce verbose output that lists
9874 # what "hidden" libraries, object files and flags are used when
9875 # linking a shared library.
9877 # There doesn't appear to be a way to prevent this compiler from
9878 # explicitly linking system object files so we need to strip them
9879 # from the output so that they don't get included in the library
9881 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'
9884 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9886 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'
9888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator_CXX=:
9891 # Commands to make compiler produce verbose output that lists
9892 # what "hidden" libraries, object files and flags are used when
9893 # linking a shared library.
9894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9897 # FIXME: insert proper C++ library support
9904 # FIXME: insert proper C++ library support
9908 archive_cmds_need_lc_CXX=no
9909 case $cc_basename in
9911 # FIXME: insert proper C++ library support
9915 # FIXME: insert proper C++ library support
9921 case $cc_basename in
9924 # FIXME: insert proper C++ library support
9929 # FIXME: insert proper C++ library support
9933 # FIXME: insert proper C++ library support
9939 case $cc_basename in
9941 # Sun C++ 4.2, 5.x and Centerline C++
9942 no_undefined_flag_CXX=' -zdefs'
9943 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9944 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9945 $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'
9947 hardcode_libdir_flag_spec_CXX='-R$libdir'
9948 hardcode_shlibpath_var_CXX=no
9950 solaris2.0-5 | solaris2.0-5.*) ;;
9952 # The C++ compiler is used as linker so we must use $wl
9953 # flag to pass the commands to the underlying system
9955 # Supported since Solaris 2.6 (maybe 2.5.1?)
9956 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9959 link_all_deplibs_CXX=yes
9961 # Commands to make compiler produce verbose output that lists
9962 # what "hidden" libraries, object files and flags are used when
9963 # linking a shared library.
9965 # There doesn't appear to be a way to prevent this compiler from
9966 # explicitly linking system object files so we need to strip them
9967 # from the output so that they don't get included in the library
9969 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'
9971 # Archives containing C++ object files must be created using
9972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9973 # necessary to make sure instantiated templates are included
9975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9978 # Green Hills C++ Compiler
9979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9981 # The C++ compiler must be used to create the archive.
9982 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9985 # GNU C++ compiler with Solaris linker
9986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9987 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9988 if $CC --version | grep -v '^2\.7' > /dev/null; then
9989 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9991 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9993 # Commands to make compiler produce verbose output that lists
9994 # what "hidden" libraries, object files and flags are used when
9995 # linking a shared library.
9996 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9998 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10000 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10002 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10004 # Commands to make compiler produce verbose output that lists
10005 # what "hidden" libraries, object files and flags are used when
10006 # linking a shared library.
10007 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10010 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10015 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10016 archive_cmds_need_lc_CXX=no
10019 case $cc_basename in
10021 # NonStop-UX NCC 3.20
10022 # FIXME: insert proper C++ library support
10026 # FIXME: insert proper C++ library support
10032 # FIXME: insert proper C++ library support
10036 # FIXME: insert proper C++ library support
10040 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10041 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10042 test "$ld_shlibs_CXX" = no && can_build_shared=no
10048 cat > conftest.$ac_ext <<EOF
10052 Foo (void) { a = 0; }
10058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10059 (eval $ac_compile) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; then
10063 # Parse the compiler output and extract the necessary
10064 # objects, libraries and library flags.
10066 # Sentinel used to keep track of whether or not we are before
10067 # the conftest object file.
10068 pre_test_object_deps_done=no
10070 # The `*' in the case matches for architectures that use `case' in
10071 # $output_verbose_cmd can trigger glob expansion during the loop
10072 # eval without this substitution.
10073 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10075 for p in `eval $output_verbose_link_cmd`; do
10079 # Some compilers place space between "-{L,R}" and the path.
10080 # Remove the space.
10081 if test $p = "-L" \
10082 || test $p = "-R"; then
10089 if test "$pre_test_object_deps_done" = no; then
10092 # Internal compiler library paths should come after those
10093 # provided the user. The postdeps already come after the
10094 # user supplied libs so there is no need to process them.
10095 if test -z "$compiler_lib_search_path_CXX"; then
10096 compiler_lib_search_path_CXX="${prev}${p}"
10098 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10101 # The "-l" case would never come before the object being
10102 # linked, so don't bother handling this case.
10105 if test -z "$postdeps_CXX"; then
10106 postdeps_CXX="${prev}${p}"
10108 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10114 # This assumes that the test object file only shows up
10115 # once in the compiler output.
10116 if test "$p" = "conftest.$objext"; then
10117 pre_test_object_deps_done=yes
10121 if test "$pre_test_object_deps_done" = no; then
10122 if test -z "$predep_objects_CXX"; then
10123 predep_objects_CXX="$p"
10125 predep_objects_CXX="$predep_objects_CXX $p"
10128 if test -z "$postdep_objects_CXX"; then
10129 postdep_objects_CXX="$p"
10131 postdep_objects_CXX="$postdep_objects_CXX $p"
10136 *) ;; # Ignore the rest.
10144 echo "libtool.m4: error: problem compiling CXX test program"
10147 $rm -f confest.$objext
10149 case " $postdeps_CXX " in
10150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10153 lt_prog_compiler_wl_CXX=
10154 lt_prog_compiler_pic_CXX=
10155 lt_prog_compiler_static_CXX=
10157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10160 # C++ specific cases for pic, static, wl, etc.
10161 if test "$GXX" = yes; then
10162 lt_prog_compiler_wl_CXX='-Wl,'
10163 lt_prog_compiler_static_CXX='-static'
10167 # All AIX code is PIC.
10168 if test "$host_cpu" = ia64; then
10169 # AIX 5 now supports IA64 processor
10170 lt_prog_compiler_static_CXX='-Bstatic'
10174 # FIXME: we need at least 68020 code to build shared libraries, but
10175 # adding the `-m68020' flag to GCC prevents building anything better,
10177 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10179 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10180 # PIC is the default for these OSes.
10182 mingw* | os2* | pw32*)
10183 # This hack is so that the source file can tell whether it is being
10184 # built for inclusion in a dll (and should export symbols for example).
10185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10187 darwin* | rhapsody*)
10188 # PIC is the default on this platform
10189 # Common symbols not allowed in MH_DYLIB files
10190 lt_prog_compiler_pic_CXX='-fno-common'
10193 # DJGPP does not support shared libraries at all
10194 lt_prog_compiler_pic_CXX=
10197 if test -d /usr/nec; then
10198 lt_prog_compiler_pic_CXX=-Kconform_pic
10202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10203 # not for PA HP-UX.
10204 case "$host_cpu" in
10208 lt_prog_compiler_pic_CXX='-fPIC'
10213 lt_prog_compiler_pic_CXX='-fPIC'
10219 # All AIX code is PIC.
10220 if test "$host_cpu" = ia64; then
10221 # AIX 5 now supports IA64 processor
10222 lt_prog_compiler_static_CXX='-Bstatic'
10224 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10228 case $cc_basename in
10230 # Green Hills C++ Compiler
10231 # _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"
10236 case $cc_basename in
10238 lt_prog_compiler_pic_CXX='-KPIC'
10241 # Green Hills C++ Compiler
10242 lt_prog_compiler_pic_CXX='-pic'
10249 # FreeBSD uses GNU C++
10251 hpux9* | hpux10* | hpux11*)
10252 case $cc_basename in
10254 lt_prog_compiler_wl_CXX='-Wl,'
10255 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10256 if test "$host_cpu" != ia64; then
10257 lt_prog_compiler_pic_CXX='+Z'
10261 lt_prog_compiler_wl_CXX='-Wl,'
10262 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10263 case "$host_cpu" in
10268 lt_prog_compiler_pic_CXX='+Z'
10276 irix5* | irix6* | nonstopux*)
10277 case $cc_basename in
10279 lt_prog_compiler_wl_CXX='-Wl,'
10280 lt_prog_compiler_static_CXX='-non_shared'
10281 # CC pic flag -KPIC is the default.
10288 case $cc_basename in
10291 lt_prog_compiler_wl_CXX='--backend -Wl,'
10292 lt_prog_compiler_pic_CXX='-fPIC'
10296 lt_prog_compiler_wl_CXX='-Wl,'
10297 lt_prog_compiler_pic_CXX='-KPIC'
10298 lt_prog_compiler_static_CXX='-static'
10302 # Make sure the PIC flag is empty. It appears that all Alpha
10303 # Linux and Compaq Tru64 Unix objects are PIC.
10304 lt_prog_compiler_pic_CXX=
10305 lt_prog_compiler_static_CXX='-non_shared'
10316 case $cc_basename in
10318 lt_prog_compiler_pic_CXX='-W c,exportall'
10326 osf3* | osf4* | osf5*)
10327 case $cc_basename in
10329 lt_prog_compiler_wl_CXX='--backend -Wl,'
10332 # Rational C++ 2.4.1
10333 lt_prog_compiler_pic_CXX='-pic'
10336 # Digital/Compaq C++
10337 lt_prog_compiler_wl_CXX='-Wl,'
10338 # Make sure the PIC flag is empty. It appears that all Alpha
10339 # Linux and Compaq Tru64 Unix objects are PIC.
10340 lt_prog_compiler_pic_CXX=
10341 lt_prog_compiler_static_CXX='-non_shared'
10350 case $cc_basename in
10352 lt_prog_compiler_pic_CXX='-fPIC'
10359 case $cc_basename in
10361 # Sun C++ 4.2, 5.x and Centerline C++
10362 lt_prog_compiler_pic_CXX='-KPIC'
10363 lt_prog_compiler_static_CXX='-Bstatic'
10364 lt_prog_compiler_wl_CXX='-Qoption ld '
10367 # Green Hills C++ Compiler
10368 lt_prog_compiler_pic_CXX='-PIC'
10375 case $cc_basename in
10378 lt_prog_compiler_pic_CXX='-pic'
10379 lt_prog_compiler_static_CXX='-Bstatic'
10383 lt_prog_compiler_pic_CXX='-pic'
10390 case $cc_basename in
10392 # NonStop-UX NCC 3.20
10393 lt_prog_compiler_pic_CXX='-KPIC'
10404 lt_prog_compiler_can_build_shared_CXX=no
10409 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10410 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10413 # Check to make sure the PIC flag actually works.
10415 if test -n "$lt_prog_compiler_pic_CXX"; then
10416 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10417 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10418 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 lt_prog_compiler_pic_works_CXX=no
10422 ac_outfile=conftest.$ac_objext
10423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10425 # Insert the option either (1) after the last *FLAGS variable, or
10426 # (2) before a word containing "conftest.", or (3) at the end.
10427 # Note that $ac_compile itself does not contain backslashes and begins
10428 # with a dollar sign (not a hyphen), so the echo should work correctly.
10429 # The option is referenced via a variable to avoid confusing sed.
10430 lt_compile=`echo "$ac_compile" | $SED \
10431 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10433 -e 's:$: $lt_compiler_flag:'`
10434 (eval echo "\"\$as_me:10434: $lt_compile\"" >&5)
10435 (eval "$lt_compile" 2>conftest.err)
10437 cat conftest.err >&5
10438 echo "$as_me:10438: \$? = $ac_status" >&5
10439 if (exit $ac_status) && test -s "$ac_outfile"; then
10440 # The compiler can only warn and ignore the option if not recognized
10441 # So say no if there are warnings
10442 if test ! -s conftest.err; then
10443 lt_prog_compiler_pic_works_CXX=yes
10449 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10450 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10452 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10453 case $lt_prog_compiler_pic_CXX in
10455 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10458 lt_prog_compiler_pic_CXX=
10459 lt_prog_compiler_can_build_shared_CXX=no
10464 # For platforms which do not support PIC, -DPIC is meaningless:
10466 lt_prog_compiler_pic_CXX=
10469 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10473 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10474 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10475 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 lt_cv_prog_compiler_c_o_CXX=no
10479 $rm -r conftest 2>/dev/null
10483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10485 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10486 # that will create temporary files in the current directory regardless of
10487 # the output directory. Thus, making CWD read-only will cause this test
10488 # to fail, enabling locking or at least warning the user not to do parallel
10492 lt_compiler_flag="-o out/conftest2.$ac_objext"
10493 # Insert the option either (1) after the last *FLAGS variable, or
10494 # (2) before a word containing "conftest.", or (3) at the end.
10495 # Note that $ac_compile itself does not contain backslashes and begins
10496 # with a dollar sign (not a hyphen), so the echo should work correctly.
10497 lt_compile=`echo "$ac_compile" | $SED \
10498 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10500 -e 's:$: $lt_compiler_flag:'`
10501 (eval echo "\"\$as_me:10501: $lt_compile\"" >&5)
10502 (eval "$lt_compile" 2>out/conftest.err)
10504 cat out/conftest.err >&5
10505 echo "$as_me:10505: \$? = $ac_status" >&5
10506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10508 # The compiler can only warn and ignore the option if not recognized
10509 # So say no if there are warnings
10510 if test ! -s out/conftest.err; then
10511 lt_cv_prog_compiler_c_o_CXX=yes
10515 $rm conftest* out/*
10522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10523 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10526 hard_links="nottested"
10527 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10528 # do not overwrite the value of need_locks provided by the user
10529 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10530 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10535 ln conftest.a conftest.b 2>&5 || hard_links=no
10536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10537 echo "$as_me:$LINENO: result: $hard_links" >&5
10538 echo "${ECHO_T}$hard_links" >&6
10539 if test "$hard_links" = no; then
10540 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10541 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10548 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10554 # If we're using GNU nm, then we don't want the "-C" option.
10555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10556 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10557 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'
10559 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'
10563 export_symbols_cmds_CXX="$ltdll_cmds"
10566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10573 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10574 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10575 test "$ld_shlibs_CXX" = no && can_build_shared=no
10577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10578 if test "$GCC" = yes; then
10579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10583 # Do we need to explicitly link libc?
10585 case "x$archive_cmds_need_lc_CXX" in
10587 # Assume -lc should be added
10588 archive_cmds_need_lc_CXX=yes
10590 if test "$enable_shared" = yes && test "$GCC" = yes; then
10591 case $archive_cmds_CXX in
10593 # FIXME: we may have to deal with multi-command sequences.
10596 # Test whether the compiler implicitly links with -lc since on some
10597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10598 # to ld, don't add -lc before -lgcc.
10599 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10600 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605 (eval $ac_compile) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } 2>conftest.err; then
10611 libobjs=conftest.$ac_objext
10613 wl=$lt_prog_compiler_wl_CXX
10619 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10620 allow_undefined_flag_CXX=
10621 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10622 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }
10627 archive_cmds_need_lc_CXX=no
10629 archive_cmds_need_lc_CXX=yes
10631 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10633 cat conftest.err 1>&5
10636 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10637 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10644 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10646 hardcode_action_CXX=
10647 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10648 test -n "$runpath_var CXX" || \
10649 test "X$hardcode_automatic_CXX"="Xyes" ; then
10651 # We can hardcode non-existant directories.
10652 if test "$hardcode_direct_CXX" != no &&
10653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10654 # have to relink, otherwise we might link with an installed library
10655 # when we should be linking with a yet-to-be-installed one
10656 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10657 test "$hardcode_minus_L_CXX" != no; then
10658 # Linking always hardcodes the temporary library directory.
10659 hardcode_action_CXX=relink
10661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10662 hardcode_action_CXX=immediate
10665 # We cannot hardcode anything, or else we can only hardcode existing
10667 hardcode_action_CXX=unsupported
10669 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10670 echo "${ECHO_T}$hardcode_action_CXX" >&6
10672 if test "$hardcode_action_CXX" = relink; then
10673 # Fast installation is not supported
10674 enable_fast_install=no
10675 elif test "$shlibpath_overrides_runpath" = yes ||
10676 test "$enable_shared" = no; then
10677 # Fast installation is not necessary
10678 enable_fast_install=needless
10683 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10684 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10685 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10686 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10687 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10688 echo "$as_me:$LINENO: result: yes" >&5
10689 echo "${ECHO_T}yes" >&6
10691 # FIXME - insert some real tests, host_os isn't really good enough
10694 if test -n "$STRIP" ; then
10695 striplib="$STRIP -x"
10696 echo "$as_me:$LINENO: result: yes" >&5
10697 echo "${ECHO_T}yes" >&6
10699 echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6
10704 echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6
10710 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10711 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10712 library_names_spec=
10713 libname_spec='lib$name'
10717 postuninstall_cmds=
10721 shlibpath_overrides_runpath=unknown
10723 dynamic_linker="$host_os ld.so"
10724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10725 if test "$GCC" = yes; then
10726 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10727 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10728 # if the path contains ";" then we assume it to be the separator
10729 # otherwise default to the standard path separator (i.e. ":") - it is
10730 # assumed that no part of a normal pathname contains ";" but that should
10731 # okay in the real world where ";" in dirpaths is itself problematic.
10732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10739 need_lib_prefix=unknown
10740 hardcode_into_libs=no
10742 # when you set need_version to no, make sure it does not cause -set_version
10743 # flags to be left without arguments
10744 need_version=unknown
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10750 shlibpath_var=LIBPATH
10752 # AIX 3 has no versioning support, so we append a major version to the name.
10753 soname_spec='${libname}${release}${shared_ext}$major'
10760 hardcode_into_libs=yes
10761 if test "$host_cpu" = ia64; then
10762 # AIX 5 supports IA64
10763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764 shlibpath_var=LD_LIBRARY_PATH
10766 # With GCC up to 2.95.x, collect2 would create an import file
10767 # for dependence libraries. The import file would start with
10768 # the line `#! .'. This would cause the generated library to
10769 # depend on `.', always an invalid library. This was fixed in
10770 # development snapshots of GCC prior to 3.0.
10772 aix4 | aix4.[01] | aix4.[01].*)
10773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10775 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10778 can_build_shared=no
10782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783 # soname into executable. Probably we can add versioning support to
10784 # collect2, so additional links can be useful in future.
10785 if test "$aix_use_runtimelinking" = yes; then
10786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787 # instead of lib<name>.a to let people know that these are not
10788 # typical AIX shared libraries.
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 # We preserve .a as extension for shared libraries through AIX4.2
10792 # and later when we are not doing run time linking.
10793 library_names_spec='${libname}${release}.a $libname.a'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10796 shlibpath_var=LIBPATH
10801 library_names_spec='$libname.ixlibrary $libname.a'
10802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10803 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'
10807 library_names_spec='${libname}${shared_ext}'
10808 dynamic_linker="$host_os ld.so"
10809 shlibpath_var=LIBRARY_PATH
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10820 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10821 # the default ld.so.conf also contains /usr/contrib/lib and
10822 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10823 # libtool to hard-code these into programs
10826 cygwin* | mingw* | pw32*)
10827 version_type=windows
10832 case $GCC,$host_os in
10833 yes,cygwin* | yes,mingw* | yes,pw32*)
10834 library_names_spec='$libname.dll.a'
10835 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10836 postinstall_cmds='base_file=`basename \${file}`~
10837 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10838 dldir=$destdir/`dirname \$dlpath`~
10839 test -d \$dldir || mkdir -p \$dldir~
10840 $install_prog $dir/$dlname \$dldir/$dlname'
10841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10842 dlpath=$dir/\$dldll~
10844 shlibpath_overrides_runpath=yes
10848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10850 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10853 # MinGW DLLs use traditional 'lib' prefix
10854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10857 # It is most probably a Windows format PATH printed by
10858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10859 # path with ; separators, and with drive letters. We can handle the
10860 # drive letters (cygwin fileutils understands them), so leave them,
10861 # especially as we might pass files found there to a mingw objdump,
10862 # which wouldn't understand a cygwinified path. Ahh.
10863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10869 # pw32 DLLs use 'pw' prefix rather than 'lib'
10870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10879 dynamic_linker='Win32 ld.exe'
10880 # FIXME: first we should search . and the directory the executable is in
10884 darwin* | rhapsody*)
10885 dynamic_linker="$host_os dyld"
10886 version_type=darwin
10889 # FIXME: Relying on posixy $() will cause problems for
10890 # cross-compilation, but unfortunately the echo tests do not
10891 # yet detect zsh echo's removal of \ escapes.
10892 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10893 soname_spec='${libname}${release}${major}$shared_ext'
10894 shlibpath_overrides_runpath=yes
10895 shlibpath_var=DYLD_LIBRARY_PATH
10896 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10897 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10898 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10899 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"`
10901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10918 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10919 version_type=freebsd-$objformat
10920 case $version_type in
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10931 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes
10936 freebsd3.01* | freebsdelf3.01*)
10937 shlibpath_overrides_runpath=yes
10938 hardcode_into_libs=yes
10941 shlibpath_overrides_runpath=no
10942 hardcode_into_libs=yes
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 hardcode_into_libs=yes
10957 hpux9* | hpux10* | hpux11*)
10958 # Give a soname corresponding to the major version so that dld.sl refuses to
10959 # link against other versions.
10963 case "$host_cpu" in
10966 hardcode_into_libs=yes
10967 dynamic_linker="$host_os dld.so"
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 if test "X$HPUX_IA64_MODE" = X32; then
10973 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10975 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10981 hardcode_into_libs=yes
10982 dynamic_linker="$host_os dld.sl"
10983 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10992 dynamic_linker="$host_os dld.sl"
10993 shlibpath_var=SHLIB_PATH
10994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10999 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11000 postinstall_cmds='chmod 555 $lib'
11003 irix5* | irix6* | nonstopux*)
11005 nonstopux*) version_type=nonstopux ;;
11007 if test "$lt_cv_prog_gnu_ld" = yes; then
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 irix5* | nonstopux*)
11019 libsuff= shlibsuff=
11022 case $LD in # libtool.m4 will add one of these switches to LD
11023 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11024 libsuff= shlibsuff= libmagic=32-bit;;
11025 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11026 libsuff=32 shlibsuff=N32 libmagic=N32;;
11027 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11028 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11029 *) libsuff= shlibsuff= libmagic=never-match;;
11033 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11034 shlibpath_overrides_runpath=no
11035 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11036 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11037 hardcode_into_libs=yes
11040 # No shared lib support for Linux oldld, aout, or coff.
11041 linux*oldld* | linux*aout* | linux*coff*)
11045 # This must be Linux ELF.
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 # This implies no fast_install, which is unacceptable.
11056 # Some rework will be needed to allow for fast_install
11057 # before this can be enabled.
11058 hardcode_into_libs=yes
11060 # We used to test for /lib/ld.so.1 and disable shared libraries on
11061 # powerpc, because MkLinux only supported shared libraries with the
11062 # GNU dynamic linker. Since this was broken with cross compilers,
11063 # most powerpc-linux boxes support dynamic linking these days and
11064 # people can always --disable-shared, the test was removed, and we
11065 # assume the GNU/Linux dynamic linker is in use.
11066 dynamic_linker='GNU/Linux ld.so'
11073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11076 dynamic_linker='NetBSD (a.out) ld.so'
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 dynamic_linker='NetBSD ld.elf_so'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 hardcode_into_libs=yes
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=yes
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11113 openbsd2.[89] | openbsd2.[89].*)
11114 shlibpath_overrides_runpath=no
11117 shlibpath_overrides_runpath=yes
11121 shlibpath_overrides_runpath=yes
11126 libname_spec='$name'
11129 library_names_spec='$libname${shared_ext} $libname.a'
11130 dynamic_linker='OS/2 ld.exe'
11131 shlibpath_var=LIBPATH
11134 osf3* | osf4* | osf5*)
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11142 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 shlibpath_var=LD_LIBRARY_PATH
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11159 shlibpath_overrides_runpath=yes
11160 hardcode_into_libs=yes
11161 # ldd complains unless libraries are executable
11162 postinstall_cmds='chmod +x $lib'
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=yes
11171 if test "$with_gnu_ld" = yes; then
11177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 case $host_vendor in
11184 shlibpath_overrides_runpath=no
11186 export_dynamic_flag_spec='${wl}-Blargedynsym'
11187 runpath_var=LD_RUN_PATH
11195 shlibpath_overrides_runpath=no
11196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11202 if test -d /usr/nec ;then
11204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11205 soname_spec='$libname${shared_ext}.$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11222 echo "${ECHO_T}$dynamic_linker" >&6
11223 test "$dynamic_linker" = no && can_build_shared=no
11225 if test "x$enable_dlopen" != xyes; then
11226 enable_dlopen=unknown
11227 enable_dlopen_self=unknown
11228 enable_dlopen_self_static=unknown
11235 lt_cv_dlopen="load_add_on"
11237 lt_cv_dlopen_self=yes
11241 lt_cv_dlopen="LoadLibrary"
11246 lt_cv_dlopen="dlopen"
11251 # if libdl is installed we need to link against it
11252 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11253 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 ac_check_lib_save_LIBS=$LIBS
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line $LINENO "configure"
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11267 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_lib_dl_dlopen=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_cv_lib_dl_dlopen=no
11301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11304 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11305 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11306 if test $ac_cv_lib_dl_dlopen = yes; then
11307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11310 lt_cv_dlopen="dyld"
11312 lt_cv_dlopen_self=yes
11319 echo "$as_me:$LINENO: checking for shl_load" >&5
11320 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11321 if test "${ac_cv_func_shl_load+set}" = set; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 /* System header to define __stub macros and hopefully few prototypes,
11332 which can conflict with char shl_load (); below.
11333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334 <limits.h> exists even on freestanding compilers. */
11336 # include <limits.h>
11338 # include <assert.h>
11340 /* Override any gcc2 internal prototype to avoid an error. */
11345 /* We use char because int might match the return type of a gcc2
11346 builtin and then its argument prototype would still apply. */
11348 /* The GNU C library defines this for functions which it implements
11349 to always fail with ENOSYS. Some functions are actually named
11350 something starting with __ and the normal name is an alias. */
11351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11354 char (*f) () = shl_load;
11363 return f != shl_load;
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370 (eval $ac_link) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_func_shl_load=yes
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_cv_func_shl_load=no
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11390 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11391 if test $ac_cv_func_shl_load = yes; then
11392 lt_cv_dlopen="shl_load"
11394 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11395 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11396 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 ac_check_lib_save_LIBS=$LIBS
11401 cat >conftest.$ac_ext <<_ACEOF
11402 #line $LINENO "configure"
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11409 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_lib_dld_shl_load=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_cv_lib_dld_shl_load=no
11443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11446 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11447 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11448 if test $ac_cv_lib_dld_shl_load = yes; then
11449 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11451 echo "$as_me:$LINENO: checking for dlopen" >&5
11452 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11453 if test "${ac_cv_func_dlopen+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char dlopen (); below.
11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 <limits.h> exists even on freestanding compilers. */
11468 # include <limits.h>
11470 # include <assert.h>
11472 /* Override any gcc2 internal prototype to avoid an error. */
11477 /* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11480 /* The GNU C library defines this for functions which it implements
11481 to always fail with ENOSYS. Some functions are actually named
11482 something starting with __ and the normal name is an alias. */
11483 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11486 char (*f) () = dlopen;
11495 return f != dlopen;
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502 (eval $ac_link) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_func_dlopen=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_func_dlopen=no
11519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11521 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11522 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11523 if test $ac_cv_func_dlopen = yes; then
11524 lt_cv_dlopen="dlopen"
11526 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 ac_check_lib_save_LIBS=$LIBS
11533 cat >conftest.$ac_ext <<_ACEOF
11534 #line $LINENO "configure"
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11541 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558 (eval $ac_link) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 ac_cv_lib_dl_dlopen=yes
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_lib_dl_dlopen=no
11575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11580 if test $ac_cv_lib_dl_dlopen = yes; then
11581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11583 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11584 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11585 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-lsvld $LIBS"
11590 cat >conftest.$ac_ext <<_ACEOF
11591 #line $LINENO "configure"
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11598 /* Override any gcc2 internal prototype to avoid an error. */
11602 /* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11615 (eval $ac_link) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_lib_svld_dlopen=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_cv_lib_svld_dlopen=no
11632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11635 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11636 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11637 if test $ac_cv_lib_svld_dlopen = yes; then
11638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11640 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11641 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11642 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 ac_check_lib_save_LIBS=$LIBS
11647 cat >conftest.$ac_ext <<_ACEOF
11648 #line $LINENO "configure"
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11655 /* Override any gcc2 internal prototype to avoid an error. */
11659 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672 (eval $ac_link) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -s conftest$ac_exeext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_lib_dld_dld_link=yes
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_cv_lib_dld_dld_link=no
11689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11693 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11694 if test $ac_cv_lib_dld_dld_link = yes; then
11695 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11716 if test "x$lt_cv_dlopen" != xno; then
11722 case $lt_cv_dlopen in
11724 save_CPPFLAGS="$CPPFLAGS"
11725 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11727 save_LDFLAGS="$LDFLAGS"
11728 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11731 LIBS="$lt_cv_dlopen_libs $LIBS"
11733 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11734 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11735 if test "${lt_cv_dlopen_self+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 if test "$cross_compiling" = yes; then :
11739 lt_cv_dlopen_self=cross
11741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742 lt_status=$lt_dlunknown
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11754 # define LT_DLGLOBAL RTLD_GLOBAL
11757 # define LT_DLGLOBAL DL_GLOBAL
11759 # define LT_DLGLOBAL 0
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764 find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11770 # define LT_DLLAZY_OR_NOW DL_LAZY
11773 # define LT_DLLAZY_OR_NOW RTLD_NOW
11776 # define LT_DLLAZY_OR_NOW DL_NOW
11778 # define LT_DLLAZY_OR_NOW 0
11786 extern "C" void exit (int);
11789 void fnord() { int i=42;}
11792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793 int status = $lt_dlunknown;
11797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11798 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799 /* dlclose (self); */
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11810 (./conftest; exit; ) 2>/dev/null
11812 case x$lt_status in
11813 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11814 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11815 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11818 # compilation failed
11819 lt_cv_dlopen_self=no
11826 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11829 if test "x$lt_cv_dlopen_self" = xyes; then
11830 LDFLAGS="$LDFLAGS $link_static_flag"
11831 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11833 if test "${lt_cv_dlopen_self_static+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 if test "$cross_compiling" = yes; then :
11837 lt_cv_dlopen_self_static=cross
11839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11840 lt_status=$lt_dlunknown
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11852 # define LT_DLGLOBAL RTLD_GLOBAL
11855 # define LT_DLGLOBAL DL_GLOBAL
11857 # define LT_DLGLOBAL 0
11861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11862 find out it does not work in some platform. */
11863 #ifndef LT_DLLAZY_OR_NOW
11865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11868 # define LT_DLLAZY_OR_NOW DL_LAZY
11871 # define LT_DLLAZY_OR_NOW RTLD_NOW
11874 # define LT_DLLAZY_OR_NOW DL_NOW
11876 # define LT_DLLAZY_OR_NOW 0
11884 extern "C" void exit (int);
11887 void fnord() { int i=42;}
11890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891 int status = $lt_dlunknown;
11895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897 /* dlclose (self); */
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11908 (./conftest; exit; ) 2>/dev/null
11910 case x$lt_status in
11911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11916 # compilation failed
11917 lt_cv_dlopen_self_static=no
11924 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11928 CPPFLAGS="$save_CPPFLAGS"
11929 LDFLAGS="$save_LDFLAGS"
11934 case $lt_cv_dlopen_self in
11935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936 *) enable_dlopen_self=unknown ;;
11939 case $lt_cv_dlopen_self_static in
11940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941 *) enable_dlopen_self_static=unknown ;;
11946 # The else clause should only fire when bootstrapping the
11947 # libtool distribution, otherwise you forgot to ship ltmain.sh
11948 # with your package, and you will get complaints that there are
11949 # no rules to generate ltmain.sh.
11950 if test -f "$ltmain"; then
11951 # See if we are running on zsh, and set the options which allow our commands through
11952 # without removal of \ escapes.
11953 if test -n "${ZSH_VERSION+set}" ; then
11954 setopt NO_GLOB_SUBST
11956 # Now quote all the things that may contain metacharacters while being
11957 # careful not to overquote the AC_SUBSTed values. We take copies of the
11958 # variables and quote the copies for generation of the libtool script.
11959 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11960 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11961 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11962 deplibs_check_method reload_flag reload_cmds need_locks \
11963 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11964 lt_cv_sys_global_symbol_to_c_name_address \
11965 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11966 old_postinstall_cmds old_postuninstall_cmds \
11970 lt_prog_compiler_wl_CXX \
11971 lt_prog_compiler_pic_CXX \
11972 lt_prog_compiler_static_CXX \
11973 lt_prog_compiler_no_builtin_flag_CXX \
11974 export_dynamic_flag_spec_CXX \
11975 thread_safe_flag_spec_CXX \
11976 whole_archive_flag_spec_CXX \
11977 enable_shared_with_static_runtimes_CXX \
11978 old_archive_cmds_CXX \
11979 old_archive_from_new_cmds_CXX \
11980 predep_objects_CXX \
11981 postdep_objects_CXX \
11984 compiler_lib_search_path_CXX \
11986 archive_expsym_cmds_CXX \
11987 postinstall_cmds_CXX \
11988 postuninstall_cmds_CXX \
11989 old_archive_from_expsyms_cmds_CXX \
11990 allow_undefined_flag_CXX \
11991 no_undefined_flag_CXX \
11992 export_symbols_cmds_CXX \
11993 hardcode_libdir_flag_spec_CXX \
11994 hardcode_libdir_flag_spec_ld_CXX \
11995 hardcode_libdir_separator_CXX \
11996 hardcode_automatic_CXX \
11998 module_expsym_cmds_CXX \
11999 lt_cv_prog_compiler_c_o_CXX \
12000 exclude_expsyms_CXX \
12001 include_expsyms_CXX; do
12004 old_archive_cmds_CXX | \
12005 old_archive_from_new_cmds_CXX | \
12006 archive_cmds_CXX | \
12007 archive_expsym_cmds_CXX | \
12008 module_cmds_CXX | \
12009 module_expsym_cmds_CXX | \
12010 old_archive_from_expsyms_cmds_CXX | \
12011 export_symbols_cmds_CXX | \
12012 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12013 postinstall_cmds | postuninstall_cmds | \
12014 old_postinstall_cmds | old_postuninstall_cmds | \
12015 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12016 # Double-quote double-evaled strings.
12017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12026 *'\$0 --fallback-echo"')
12027 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12033 cat <<__EOF__ >> "$cfgfile"
12034 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12038 # Shell to use when invoking shell scripts.
12041 # Whether or not to build shared libraries.
12042 build_libtool_libs=$enable_shared
12044 # Whether or not to build static libraries.
12045 build_old_libs=$enable_static
12047 # Whether or not to add -lc for building shared libraries.
12048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12050 # Whether or not to disallow shared libs when runtime libs are static
12051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12053 # Whether or not to optimize for fast installation.
12054 fast_install=$enable_fast_install
12057 host_alias=$host_alias
12060 # An echo program that does not interpret backslashes.
12065 AR_FLAGS=$lt_AR_FLAGS
12070 # A language-specific compiler.
12071 CC=$lt_compiler_CXX
12073 # Is the compiler the GNU C compiler?
12079 # The linker used to build libraries.
12082 # Whether we need hard or soft links.
12085 # A BSD-compatible nm program.
12088 # A symbol stripping program
12091 # Used to examine libraries when file_magic_cmd begins "file"
12092 MAGIC_CMD=$MAGIC_CMD
12094 # Used on cygwin: DLL creation program.
12097 # Used on cygwin: object dumper.
12100 # Used on cygwin: assembler.
12103 # The name of the directory that contains temporary libtool files.
12106 # How to create reloadable object files.
12107 reload_flag=$lt_reload_flag
12108 reload_cmds=$lt_reload_cmds
12110 # How to pass a linker flag through the compiler.
12111 wl=$lt_lt_prog_compiler_wl_CXX
12113 # Object file suffix (normally "o").
12114 objext="$ac_objext"
12116 # Old archive suffix (normally "a").
12119 # Shared library suffix (normally ".so").
12122 # Executable file suffix (normally "").
12125 # Additional compiler flags for building library objects.
12126 pic_flag=$lt_lt_prog_compiler_pic_CXX
12129 # What is the maximum length of a command?
12130 max_cmd_len=$lt_cv_sys_max_cmd_len
12132 # Does compiler simultaneously support -c and -o options?
12133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12135 # Must we lock files when doing compilation ?
12136 need_locks=$lt_need_locks
12138 # Do we need the lib prefix for modules?
12139 need_lib_prefix=$need_lib_prefix
12141 # Do we need a version for libraries?
12142 need_version=$need_version
12144 # Whether dlopen is supported.
12145 dlopen_support=$enable_dlopen
12147 # Whether dlopen of programs is supported.
12148 dlopen_self=$enable_dlopen_self
12150 # Whether dlopen of statically linked programs is supported.
12151 dlopen_self_static=$enable_dlopen_self_static
12153 # Compiler flag to prevent dynamic linking.
12154 link_static_flag=$lt_lt_prog_compiler_static_CXX
12156 # Compiler flag to turn off builtin functions.
12157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12159 # Compiler flag to allow reflexive dlopens.
12160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12162 # Compiler flag to generate shared objects directly from archives.
12163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12165 # Compiler flag to generate thread-safe objects.
12166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12168 # Library versioning type.
12169 version_type=$version_type
12171 # Format of library name prefix.
12172 libname_spec=$lt_libname_spec
12174 # List of archive names. First name is the real one, the rest are links.
12175 # The last name is the one that the linker finds with -lNAME.
12176 library_names_spec=$lt_library_names_spec
12178 # The coded name of the library, if different from the real name.
12179 soname_spec=$lt_soname_spec
12181 # Commands used to build and install an old-style archive.
12183 old_archive_cmds=$lt_old_archive_cmds_CXX
12184 old_postinstall_cmds=$lt_old_postinstall_cmds
12185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12187 # Create an old-style archive from a shared archive.
12188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12190 # Create a temporary old-style archive to link instead of a shared archive.
12191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12193 # Commands used to build and install a shared archive.
12194 archive_cmds=$lt_archive_cmds_CXX
12195 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12196 postinstall_cmds=$lt_postinstall_cmds
12197 postuninstall_cmds=$lt_postuninstall_cmds
12199 # Commands used to build a loadable module (assumed same as above if empty)
12200 module_cmds=$lt_module_cmds_CXX
12201 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12203 # Commands to strip libraries.
12204 old_striplib=$lt_old_striplib
12205 striplib=$lt_striplib
12207 # Dependencies to place before the objects being linked to create a
12209 predep_objects=$lt_predep_objects_CXX
12211 # Dependencies to place after the objects being linked to create a
12213 postdep_objects=$lt_postdep_objects_CXX
12215 # Dependencies to place before the objects being linked to create a
12217 predeps=$lt_predeps_CXX
12219 # Dependencies to place after the objects being linked to create a
12221 postdeps=$lt_postdeps_CXX
12223 # The library search path used internally by the compiler when linking
12224 # a shared library.
12225 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12227 # Method to check whether dependent libraries are shared objects.
12228 deplibs_check_method=$lt_deplibs_check_method
12230 # Command to use when deplibs_check_method == file_magic.
12231 file_magic_cmd=$lt_file_magic_cmd
12233 # Flag that allows shared libraries with undefined symbols to be built.
12234 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12236 # Flag that forces no undefined symbols.
12237 no_undefined_flag=$lt_no_undefined_flag_CXX
12239 # Commands used to finish a libtool library installation in a directory.
12240 finish_cmds=$lt_finish_cmds
12242 # Same as above, but a single script fragment to be evaled but not shown.
12243 finish_eval=$lt_finish_eval
12245 # Take the output of nm and produce a listing of raw symbols and C names.
12246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12248 # Transform the output of nm in a proper C declaration
12249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12251 # Transform the output of nm in a C name address pair
12252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12254 # This is the shared library runtime path variable.
12255 runpath_var=$runpath_var
12257 # This is the shared library path variable.
12258 shlibpath_var=$shlibpath_var
12260 # Is shlibpath searched before the hard-coded library search path?
12261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12263 # How to hardcode a shared library path into an executable.
12264 hardcode_action=$hardcode_action_CXX
12266 # Whether we should hardcode library paths into libraries.
12267 hardcode_into_libs=$hardcode_into_libs
12269 # Flag to hardcode \$libdir into a binary during linking.
12270 # This must work even if \$libdir does not exist.
12271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12273 # If ld is used when linking, flag to hardcode \$libdir into
12274 # a binary during linking. This must work even if \$libdir does
12276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12278 # Whether we need a single -rpath flag with a separated argument.
12279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12282 # resulting binary.
12283 hardcode_direct=$hardcode_direct_CXX
12285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12286 # resulting binary.
12287 hardcode_minus_L=$hardcode_minus_L_CXX
12289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12290 # the resulting binary.
12291 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12293 # Set to yes if building a shared library automatically hardcodes DIR into the library
12294 # and all subsequent libraries and executables linked against it.
12295 hardcode_automatic=$hardcode_automatic_CXX
12297 # Variables whose values should be saved in libtool wrapper scripts and
12298 # restored at relink time.
12299 variables_saved_for_relink="$variables_saved_for_relink"
12301 # Whether libtool must link a program against all its dependency libraries.
12302 link_all_deplibs=$link_all_deplibs_CXX
12304 # Compile-time system search path for libraries
12305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12307 # Run-time system search path for libraries
12308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12310 # Fix the shell variable \$srcfile for the compiler.
12311 fix_srcfile_path="$fix_srcfile_path_CXX"
12313 # Set to yes if exported symbols are required.
12314 always_export_symbols=$always_export_symbols_CXX
12316 # The commands to list exported symbols.
12317 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12319 # The commands to extract the exported symbol list from a shared archive.
12320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12322 # Symbols that should not be listed in the preloaded symbols.
12323 exclude_expsyms=$lt_exclude_expsyms_CXX
12325 # Symbols that must always be exported.
12326 include_expsyms=$lt_include_expsyms_CXX
12328 # ### END LIBTOOL TAG CONFIG: $tagname
12334 # If there is no Makefile yet, we rely on a make rule to execute
12335 # `config.status --recheck' to rerun these tests and create the
12336 # libtool script then.
12337 test -f Makefile && make "$ltmain"
12342 ac_cpp='$CPP $CPPFLAGS'
12343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351 with_gnu_ldcxx=$with_gnu_ld
12352 with_gnu_ld=$lt_save_with_gnu_ld
12353 lt_cv_path_LDCXX=$lt_cv_path_LD
12354 lt_cv_path_LD=$lt_save_path_LD
12355 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12356 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12364 if test -n "$F77" && test "X$F77" != "Xno"; then
12367 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12368 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12369 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12372 archive_cmds_need_lc_F77=no
12373 allow_undefined_flag_F77=
12374 always_export_symbols_F77=no
12375 archive_expsym_cmds_F77=
12376 export_dynamic_flag_spec_F77=
12377 hardcode_direct_F77=no
12378 hardcode_libdir_flag_spec_F77=
12379 hardcode_libdir_flag_spec_ld_F77=
12380 hardcode_libdir_separator_F77=
12381 hardcode_minus_L_F77=no
12382 hardcode_automatic_F77=no
12384 module_expsym_cmds_F77=
12385 link_all_deplibs_F77=unknown
12386 old_archive_cmds_F77=$old_archive_cmds
12387 no_undefined_flag_F77=
12388 whole_archive_flag_spec_F77=
12389 enable_shared_with_static_runtimes_F77=no
12391 # Source file extension for f77 test sources.
12394 # Object file extension for compiled f77 test sources.
12398 # Code to be used in simple compile tests
12399 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12401 # Code to be used in simple link tests
12402 lt_simple_link_test_code=" program t\n end\n"
12404 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12406 # If no C compiler was specified, use CC.
12409 # Allow CC to be a program name with arguments.
12413 # Allow CC to be a program name with arguments.
12418 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12420 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12421 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12422 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12423 echo "${ECHO_T}$can_build_shared" >&6
12425 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12426 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12427 test "$can_build_shared" = "no" && enable_shared=no
12429 # On AIX, shared libraries and static libraries use the same namespace, and
12430 # are all built from PIC.
12433 test "$enable_shared" = yes && enable_static=no
12434 if test -n "$RANLIB"; then
12435 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12436 postinstall_cmds='$RANLIB $lib'
12440 test "$enable_shared" = yes && enable_static=no
12443 echo "$as_me:$LINENO: result: $enable_shared" >&5
12444 echo "${ECHO_T}$enable_shared" >&6
12446 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12448 # Make sure either enable_shared or enable_static is yes.
12449 test "$enable_shared" = yes || enable_static=yes
12450 echo "$as_me:$LINENO: result: $enable_static" >&5
12451 echo "${ECHO_T}$enable_static" >&6
12453 test "$ld_shlibs_F77" = no && can_build_shared=no
12458 lt_prog_compiler_wl_F77=
12459 lt_prog_compiler_pic_F77=
12460 lt_prog_compiler_static_F77=
12462 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12465 if test "$GCC" = yes; then
12466 lt_prog_compiler_wl_F77='-Wl,'
12467 lt_prog_compiler_static_F77='-static'
12471 # All AIX code is PIC.
12472 if test "$host_cpu" = ia64; then
12473 # AIX 5 now supports IA64 processor
12474 lt_prog_compiler_static_F77='-Bstatic'
12479 # FIXME: we need at least 68020 code to build shared libraries, but
12480 # adding the `-m68020' flag to GCC prevents building anything better,
12482 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12485 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12486 # PIC is the default for these OSes.
12489 mingw* | pw32* | os2*)
12490 # This hack is so that the source file can tell whether it is being
12491 # built for inclusion in a dll (and should export symbols for example).
12492 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12495 darwin* | rhapsody*)
12496 # PIC is the default on this platform
12497 # Common symbols not allowed in MH_DYLIB files
12498 lt_prog_compiler_pic_F77='-fno-common'
12502 # Just because we use GCC doesn't mean we suddenly get shared libraries
12503 # on systems that don't support them.
12504 lt_prog_compiler_can_build_shared_F77=no
12509 if test -d /usr/nec; then
12510 lt_prog_compiler_pic_F77=-Kconform_pic
12515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12516 # not for PA HP-UX.
12517 case "$host_cpu" in
12522 lt_prog_compiler_pic_F77='-fPIC'
12528 lt_prog_compiler_pic_F77='-fPIC'
12532 # PORTME Check for flag to pass linker flags through the system compiler.
12535 lt_prog_compiler_wl_F77='-Wl,'
12536 if test "$host_cpu" = ia64; then
12537 # AIX 5 now supports IA64 processor
12538 lt_prog_compiler_static_F77='-Bstatic'
12540 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12544 mingw* | pw32* | os2*)
12545 # This hack is so that the source file can tell whether it is being
12546 # built for inclusion in a dll (and should export symbols for example).
12547 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12550 hpux9* | hpux10* | hpux11*)
12551 lt_prog_compiler_wl_F77='-Wl,'
12552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12553 # not for PA HP-UX.
12554 case "$host_cpu" in
12559 lt_prog_compiler_pic_F77='+Z'
12562 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12563 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12566 irix5* | irix6* | nonstopux*)
12567 lt_prog_compiler_wl_F77='-Wl,'
12568 # PIC (with -KPIC) is the default.
12569 lt_prog_compiler_static_F77='-non_shared'
12573 lt_prog_compiler_pic_F77='-KPIC'
12574 lt_prog_compiler_static_F77='-Bstatic'
12580 lt_prog_compiler_wl_F77='-Wl,'
12581 lt_prog_compiler_pic_F77='-KPIC'
12582 lt_prog_compiler_static_F77='-static'
12585 lt_prog_compiler_wl_F77='-Wl,'
12586 # All Alpha code is PIC.
12587 lt_prog_compiler_static_F77='-non_shared'
12592 osf3* | osf4* | osf5*)
12593 lt_prog_compiler_wl_F77='-Wl,'
12594 # All OSF/1 code is PIC.
12595 lt_prog_compiler_static_F77='-non_shared'
12599 lt_prog_compiler_pic_F77='-Kpic'
12600 lt_prog_compiler_static_F77='-dn'
12604 lt_prog_compiler_wl_F77='-Wl,'
12605 lt_prog_compiler_pic_F77='-KPIC'
12606 lt_prog_compiler_static_F77='-Bstatic'
12610 lt_prog_compiler_wl_F77='-Qoption ld '
12611 lt_prog_compiler_pic_F77='-PIC'
12612 lt_prog_compiler_static_F77='-Bstatic'
12615 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12616 lt_prog_compiler_wl_F77='-Wl,'
12617 lt_prog_compiler_pic_F77='-KPIC'
12618 lt_prog_compiler_static_F77='-Bstatic'
12622 if test -d /usr/nec ;then
12623 lt_prog_compiler_pic_F77='-Kconform_pic'
12624 lt_prog_compiler_static_F77='-Bstatic'
12629 lt_prog_compiler_pic_F77='-pic'
12630 lt_prog_compiler_static_F77='-Bstatic'
12634 lt_prog_compiler_can_build_shared_F77=no
12639 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12640 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12643 # Check to make sure the PIC flag actually works.
12645 if test -n "$lt_prog_compiler_pic_F77"; then
12646 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12647 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12648 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 lt_prog_compiler_pic_works_F77=no
12652 ac_outfile=conftest.$ac_objext
12653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12654 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12655 # Insert the option either (1) after the last *FLAGS variable, or
12656 # (2) before a word containing "conftest.", or (3) at the end.
12657 # Note that $ac_compile itself does not contain backslashes and begins
12658 # with a dollar sign (not a hyphen), so the echo should work correctly.
12659 # The option is referenced via a variable to avoid confusing sed.
12660 lt_compile=`echo "$ac_compile" | $SED \
12661 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12663 -e 's:$: $lt_compiler_flag:'`
12664 (eval echo "\"\$as_me:12664: $lt_compile\"" >&5)
12665 (eval "$lt_compile" 2>conftest.err)
12667 cat conftest.err >&5
12668 echo "$as_me:12668: \$? = $ac_status" >&5
12669 if (exit $ac_status) && test -s "$ac_outfile"; then
12670 # The compiler can only warn and ignore the option if not recognized
12671 # So say no if there are warnings
12672 if test ! -s conftest.err; then
12673 lt_prog_compiler_pic_works_F77=yes
12679 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12680 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12682 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12683 case $lt_prog_compiler_pic_F77 in
12685 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12688 lt_prog_compiler_pic_F77=
12689 lt_prog_compiler_can_build_shared_F77=no
12694 # For platforms which do not support PIC, -DPIC is meaningless:
12696 lt_prog_compiler_pic_F77=
12699 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12703 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12705 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 lt_cv_prog_compiler_c_o_F77=no
12709 $rm -r conftest 2>/dev/null
12713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12715 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12716 # that will create temporary files in the current directory regardless of
12717 # the output directory. Thus, making CWD read-only will cause this test
12718 # to fail, enabling locking or at least warning the user not to do parallel
12722 lt_compiler_flag="-o out/conftest2.$ac_objext"
12723 # Insert the option either (1) after the last *FLAGS variable, or
12724 # (2) before a word containing "conftest.", or (3) at the end.
12725 # Note that $ac_compile itself does not contain backslashes and begins
12726 # with a dollar sign (not a hyphen), so the echo should work correctly.
12727 lt_compile=`echo "$ac_compile" | $SED \
12728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12730 -e 's:$: $lt_compiler_flag:'`
12731 (eval echo "\"\$as_me:12731: $lt_compile\"" >&5)
12732 (eval "$lt_compile" 2>out/conftest.err)
12734 cat out/conftest.err >&5
12735 echo "$as_me:12735: \$? = $ac_status" >&5
12736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12738 # The compiler can only warn and ignore the option if not recognized
12739 # So say no if there are warnings
12740 if test ! -s out/conftest.err; then
12741 lt_cv_prog_compiler_c_o_F77=yes
12745 $rm conftest* out/*
12752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12756 hard_links="nottested"
12757 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12758 # do not overwrite the value of need_locks provided by the user
12759 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12765 ln conftest.a conftest.b 2>&5 || hard_links=no
12766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12767 echo "$as_me:$LINENO: result: $hard_links" >&5
12768 echo "${ECHO_T}$hard_links" >&6
12769 if test "$hard_links" = no; then
12770 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12782 allow_undefined_flag_F77=
12783 enable_shared_with_static_runtimes_F77=no
12785 archive_expsym_cmds_F77=
12786 old_archive_From_new_cmds_F77=
12787 old_archive_from_expsyms_cmds_F77=
12788 export_dynamic_flag_spec_F77=
12789 whole_archive_flag_spec_F77=
12790 thread_safe_flag_spec_F77=
12791 hardcode_libdir_flag_spec_F77=
12792 hardcode_libdir_flag_spec_ld_F77=
12793 hardcode_libdir_separator_F77=
12794 hardcode_direct_F77=no
12795 hardcode_minus_L_F77=no
12796 hardcode_shlibpath_var_F77=unsupported
12797 link_all_deplibs_F77=unknown
12798 hardcode_automatic_F77=no
12800 module_expsym_cmds_F77=
12801 always_export_symbols_F77=no
12802 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12803 # include_expsyms should be a list of space-separated symbols to be *always*
12804 # included in the symbol list
12805 include_expsyms_F77=
12806 # exclude_expsyms can be an extended regexp of symbols to exclude
12807 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12808 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12809 # as well as any symbol that contains `d'.
12810 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12811 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12812 # platforms (ab)use it in PIC code, but their linkers get confused if
12813 # the symbol is explicitly referenced. Since portable code cannot
12814 # rely on this symbol name, it's probably fine to never include it in
12815 # preloaded symbol tables.
12816 extract_expsyms_cmds=
12819 cygwin* | mingw* | pw32*)
12820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12821 # When not using gcc, we currently assume that we are using
12822 # Microsoft Visual C++.
12823 if test "$GCC" != yes; then
12833 if test "$with_gnu_ld" = yes; then
12834 # If archive_cmds runs LD, not CC, wlarc should be empty
12837 # See if GNU ld supports shared libraries.
12839 aix3* | aix4* | aix5*)
12840 # On AIX/PPC, the GNU linker is very broken
12841 if test "$host_cpu" != ia64; then
12845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12846 *** to be unable to reliably create shared libraries on AIX.
12847 *** Therefore, libtool is disabling shared libraries support. If you
12848 *** really care for shared libraries, you may want to modify your PATH
12849 *** so that a non-GNU linker is found, and then restart.
12856 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)'
12857 hardcode_libdir_flag_spec_F77='-L$libdir'
12858 hardcode_minus_L_F77=yes
12860 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12861 # that the semantics of dynamic libraries on AmigaOS, at least up
12862 # to version 4, is to share data among multiple programs linked
12863 # with the same dynamic library. Since this doesn't match the
12864 # behavior of shared libraries on other platforms, we can't use
12870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12871 allow_undefined_flag_F77=unsupported
12872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12873 # support --undefined. This deserves some investigation. FIXME
12874 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880 cygwin* | mingw* | pw32*)
12881 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12882 # as there is no search path for DLLs.
12883 hardcode_libdir_flag_spec_F77='-L$libdir'
12884 allow_undefined_flag_F77=unsupported
12885 always_export_symbols_F77=no
12886 enable_shared_with_static_runtimes_F77=yes
12887 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12889 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12891 # If the export-symbols file already is a .def file (1st line
12892 # is EXPORTS), use it as is; otherwise, prepend...
12893 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12894 cp $export_symbols $output_objdir/$soname.def;
12896 echo EXPORTS > $output_objdir/$soname.def;
12897 cat $export_symbols >> $output_objdir/$soname.def;
12899 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12907 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12921 *** create shared libraries on Solaris systems. Therefore, libtool
12922 *** is disabling shared libraries support. We urge you to upgrade GNU
12923 *** binutils to release 2.9.1 or newer. Another option is to modify
12924 *** your PATH or compiler configuration so that the native linker is
12925 *** used, and then restart.
12928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12937 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12939 hardcode_direct_F77=yes
12940 hardcode_shlibpath_var_F77=no
12944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12953 if test "$ld_shlibs_F77" = yes; then
12954 runpath_var=LD_RUN_PATH
12955 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12956 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12957 # ancient GNU ld didn't support --whole-archive et. al.
12958 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12959 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12961 whole_archive_flag_spec_F77=
12965 # PORTME fill in a description of your system's linker (not GNU ld)
12968 allow_undefined_flag_F77=unsupported
12969 always_export_symbols_F77=yes
12970 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'
12971 # Note: this linker hardcodes the directories in LIBPATH if there
12972 # are no directories specified by -L.
12973 hardcode_minus_L_F77=yes
12974 if test "$GCC" = yes && test -z "$link_static_flag"; then
12975 # Neither direct hardcoding nor static linking is supported with a
12977 hardcode_direct_F77=unsupported
12982 if test "$host_cpu" = ia64; then
12983 # On IA64, the linker does run time linking by default, so we don't
12984 # have to do anything special.
12985 aix_use_runtimelinking=no
12986 exp_sym_flag='-Bexport'
12989 # If we're using GNU nm, then we don't want the "-C" option.
12990 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12991 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12992 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'
12994 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'
12996 aix_use_runtimelinking=no
12998 # Test if we are trying to use run time linking or normal
12999 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13000 # need to do runtime linking.
13001 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13002 for ld_flag in $LDFLAGS; do
13003 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13004 aix_use_runtimelinking=yes
13010 exp_sym_flag='-bexport'
13011 no_entry_flag='-bnoentry'
13014 # When large executables or shared objects are built, AIX ld can
13015 # have problems creating the table of contents. If linking a library
13016 # or program results in "error TOC overflow" add -mminimal-toc to
13017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13020 archive_cmds_F77=''
13021 hardcode_direct_F77=yes
13022 hardcode_libdir_separator_F77=':'
13023 link_all_deplibs_F77=yes
13025 if test "$GCC" = yes; then
13026 case $host_os in aix4.012|aix4.012.*)
13027 # We only want to do this on AIX 4.2 and lower, the check
13028 # below for broken collect2 doesn't work under 4.3+
13029 collect2name=`${CC} -print-prog-name=collect2`
13030 if test -f "$collect2name" && \
13031 strings "$collect2name" | grep resolve_lib_name >/dev/null
13033 # We have reworked collect2
13034 hardcode_direct_F77=yes
13036 # We have old collect2
13037 hardcode_direct_F77=unsupported
13038 # It fails to find uninstalled libraries when the uninstalled
13039 # path is not listed in the libpath. Setting hardcode_minus_L
13040 # to unsupported forces relinking
13041 hardcode_minus_L_F77=yes
13042 hardcode_libdir_flag_spec_F77='-L$libdir'
13043 hardcode_libdir_separator_F77=
13046 shared_flag='-shared'
13049 if test "$host_cpu" = ia64; then
13050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13051 # chokes on -Wl,-G. The following line is correct:
13054 if test "$aix_use_runtimelinking" = yes; then
13055 shared_flag='${wl}-G'
13057 shared_flag='${wl}-bM:SRE'
13062 # It seems that -bexpall does not export symbols beginning with
13063 # underscore (_), so it is better to generate a list of symbols to export.
13064 always_export_symbols_F77=yes
13065 if test "$aix_use_runtimelinking" = yes; then
13066 # Warning - without using the other runtime loading flags (-brtl),
13067 # -berok will link without error, but may produce a broken library.
13068 allow_undefined_flag_F77='-berok'
13069 # Determine the default libpath from the value encoded in an empty executable.
13070 cat >conftest.$ac_ext <<_ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077 (eval $ac_link) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -s conftest$ac_exeext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13090 # Check for a 64-bit object if we didn't find anything.
13091 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; }
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13101 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13102 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"
13104 if test "$host_cpu" = ia64; then
13105 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13106 allow_undefined_flag_F77="-z nodefs"
13107 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"
13109 # Determine the default libpath from the value encoded in an empty executable.
13110 cat >conftest.$ac_ext <<_ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -s conftest$ac_exeext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13128 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13130 # Check for a 64-bit object if we didn't find anything.
13131 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; }
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13142 # Warning - without using the other run time loading flags,
13143 # -berok will link without error, but may produce a broken library.
13144 no_undefined_flag_F77=' ${wl}-bernotok'
13145 allow_undefined_flag_F77=' ${wl}-berok'
13146 # -bexpall does not export symbols beginning with underscore (_)
13147 always_export_symbols_F77=yes
13148 # Exported symbols can be pulled into shared objects from archives
13149 whole_archive_flag_spec_F77=' '
13150 archive_cmds_need_lc_F77=yes
13151 # This is similar to how AIX traditionally builds it's shared libraries.
13152 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'
13158 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)'
13159 hardcode_libdir_flag_spec_F77='-L$libdir'
13160 hardcode_minus_L_F77=yes
13161 # see comment about different semantics on the GNU ld section
13166 export_dynamic_flag_spec_F77=-rdynamic
13169 cygwin* | mingw* | pw32*)
13170 # When not using gcc, we currently assume that we are using
13171 # Microsoft Visual C++.
13172 # hardcode_libdir_flag_spec is actually meaningless, as there is
13173 # no search path for DLLs.
13174 hardcode_libdir_flag_spec_F77=' '
13175 allow_undefined_flag_F77=unsupported
13176 # Tell ltmain to make .lib files, not .a files.
13178 # Tell ltmain to make .dll files, not .so files.
13180 # FIXME: Setting linknames here is a bad hack.
13181 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13182 # The linker will automatically build a .lib file if we build a DLL.
13183 old_archive_From_new_cmds_F77='true'
13184 # FIXME: Should let the user specify the lib program.
13185 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13186 fix_srcfile_path='`cygpath -w "$srcfile"`'
13187 enable_shared_with_static_runtimes_F77=yes
13190 darwin* | rhapsody*)
13191 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13192 archive_cmds_need_lc_F77=no
13194 rhapsody* | darwin1.[012])
13195 allow_undefined_flag_F77='-undefined suppress'
13198 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13201 # FIXME: Relying on posixy $() will cause problems for
13202 # cross-compilation, but unfortunately the echo tests do not
13203 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13204 # `"' quotes if we put them in here... so don't!
13205 lt_int_apple_cc_single_mod=no
13206 output_verbose_link_cmd='echo'
13207 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13208 lt_int_apple_cc_single_mod=yes
13210 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13211 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13213 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'
13215 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13217 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13218 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}'
13220 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}'
13222 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}'
13223 hardcode_direct_F77=no
13224 hardcode_automatic_F77=yes
13225 hardcode_shlibpath_var_F77=unsupported
13226 whole_archive_flag_spec_F77='-all_load $convenience'
13227 link_all_deplibs_F77=yes
13232 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13233 hardcode_libdir_flag_spec_F77='-L$libdir'
13234 hardcode_shlibpath_var_F77=no
13241 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13242 # support. Future versions do this automatically, but an explicit c++rt0.o
13243 # does not break anything, and helps significantly (at the cost of a little
13246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13247 hardcode_libdir_flag_spec_F77='-R$libdir'
13248 hardcode_direct_F77=yes
13249 hardcode_shlibpath_var_F77=no
13252 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13255 hardcode_direct_F77=yes
13256 hardcode_minus_L_F77=yes
13257 hardcode_shlibpath_var_F77=no
13260 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13262 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13263 hardcode_libdir_flag_spec_F77='-R$libdir'
13264 hardcode_direct_F77=yes
13265 hardcode_shlibpath_var_F77=no
13269 if test "$GCC" = yes; then
13270 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'
13272 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'
13274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13275 hardcode_libdir_separator_F77=:
13276 hardcode_direct_F77=yes
13278 # hardcode_minus_L: Not really in the search PATH,
13279 # but as the default location of the library.
13280 hardcode_minus_L_F77=yes
13281 export_dynamic_flag_spec_F77='${wl}-E'
13285 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13286 case "$host_cpu" in
13288 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13291 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13295 case "$host_cpu" in
13297 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13300 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13304 if test "$with_gnu_ld" = no; then
13305 case "$host_cpu" in
13307 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13308 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13309 hardcode_libdir_separator_F77=:
13310 hardcode_direct_F77=no
13311 hardcode_shlibpath_var_F77=no
13314 hardcode_libdir_flag_spec_F77='-L$libdir'
13315 hardcode_direct_F77=no
13316 hardcode_shlibpath_var_F77=no
13318 # hardcode_minus_L: Not really in the search PATH,
13319 # but as the default location of the library.
13320 hardcode_minus_L_F77=yes
13323 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13324 hardcode_libdir_separator_F77=:
13325 hardcode_direct_F77=yes
13326 export_dynamic_flag_spec_F77='${wl}-E'
13328 # hardcode_minus_L: Not really in the search PATH,
13329 # but as the default location of the library.
13330 hardcode_minus_L_F77=yes
13336 irix5* | irix6* | nonstopux*)
13337 if test "$GCC" = yes; then
13338 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'
13340 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'
13341 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13343 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13344 hardcode_libdir_separator_F77=:
13345 link_all_deplibs_F77=yes
13349 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13350 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13352 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13354 hardcode_libdir_flag_spec_F77='-R$libdir'
13355 hardcode_direct_F77=yes
13356 hardcode_shlibpath_var_F77=no
13360 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361 hardcode_direct_F77=yes
13362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13363 hardcode_libdir_separator_F77=:
13364 hardcode_shlibpath_var_F77=no
13368 hardcode_direct_F77=yes
13369 hardcode_shlibpath_var_F77=no
13370 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13371 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13372 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13373 export_dynamic_flag_spec_F77='${wl}-E'
13376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13377 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13378 hardcode_libdir_flag_spec_F77='-R$libdir'
13381 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13382 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13389 hardcode_libdir_flag_spec_F77='-L$libdir'
13390 hardcode_minus_L_F77=yes
13391 allow_undefined_flag_F77=unsupported
13392 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'
13393 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13397 if test "$GCC" = yes; then
13398 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13399 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'
13401 allow_undefined_flag_F77=' -expect_unresolved \*'
13402 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'
13404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13405 hardcode_libdir_separator_F77=:
13408 osf4* | osf5*) # as osf3* with the addition of -msym flag
13409 if test "$GCC" = yes; then
13410 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13411 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'
13412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13414 allow_undefined_flag_F77=' -expect_unresolved \*'
13415 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'
13416 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~
13417 $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'
13419 # Both c and cxx compiler support -rpath directly
13420 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13422 hardcode_libdir_separator_F77=:
13426 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427 hardcode_shlibpath_var_F77=no
13428 export_dynamic_flag_spec_F77='${wl}-Bexport'
13429 runpath_var=LD_RUN_PATH
13430 hardcode_runpath_var=yes
13434 no_undefined_flag_F77=' -z text'
13435 if test "$GCC" = yes; then
13436 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13440 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13441 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13442 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13444 hardcode_libdir_flag_spec_F77='-R$libdir'
13445 hardcode_shlibpath_var_F77=no
13447 solaris2.[0-5] | solaris2.[0-5].*) ;;
13448 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13449 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13451 link_all_deplibs_F77=yes
13455 if test "x$host_vendor" = xsequent; then
13456 # Use $CC to link under sequent, because it throws in some extra .o
13457 # files that make .init and .fini sections work.
13458 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13462 hardcode_libdir_flag_spec_F77='-L$libdir'
13463 hardcode_direct_F77=yes
13464 hardcode_minus_L_F77=yes
13465 hardcode_shlibpath_var_F77=no
13469 case $host_vendor in
13471 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_direct_F77=yes # is this really true???
13475 ## LD is ld it makes a PLAMLIB
13476 ## CC just makes a GrossModule.
13477 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13478 reload_cmds_F77='$CC -r -o $output$reload_objs'
13479 hardcode_direct_F77=no
13482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13486 runpath_var='LD_RUN_PATH'
13487 hardcode_shlibpath_var_F77=no
13491 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13492 hardcode_shlibpath_var_F77=no
13493 export_dynamic_flag_spec_F77='-Bexport'
13497 if test -d /usr/nec; then
13498 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13499 hardcode_shlibpath_var_F77=no
13500 runpath_var=LD_RUN_PATH
13501 hardcode_runpath_var=yes
13507 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13508 hardcode_direct_F77=yes
13509 hardcode_minus_L_F77=no
13510 hardcode_shlibpath_var_F77=no
13511 hardcode_runpath_var=yes
13512 runpath_var=LD_RUN_PATH
13515 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13516 no_undefined_flag_F77='${wl}-z ${wl}text'
13517 if test "$GCC" = yes; then
13518 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13522 runpath_var='LD_RUN_PATH'
13523 hardcode_shlibpath_var_F77=no
13527 no_undefined_flag_F77=' -z text'
13528 # $CC -shared without GNU ld will not create a library from C++
13529 # object files and a static libstdc++, better avoid it by now
13530 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13533 hardcode_libdir_flag_spec_F77=
13534 hardcode_shlibpath_var_F77=no
13535 runpath_var='LD_RUN_PATH'
13539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13540 hardcode_libdir_flag_spec_F77='-L$libdir'
13541 hardcode_shlibpath_var_F77=no
13550 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13551 echo "${ECHO_T}$ld_shlibs_F77" >&6
13552 test "$ld_shlibs_F77" = no && can_build_shared=no
13554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13555 if test "$GCC" = yes; then
13556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13560 # Do we need to explicitly link libc?
13562 case "x$archive_cmds_need_lc_F77" in
13564 # Assume -lc should be added
13565 archive_cmds_need_lc_F77=yes
13567 if test "$enable_shared" = yes && test "$GCC" = yes; then
13568 case $archive_cmds_F77 in
13570 # FIXME: we may have to deal with multi-command sequences.
13573 # Test whether the compiler implicitly links with -lc since on some
13574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13575 # to ld, don't add -lc before -lgcc.
13576 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } 2>conftest.err; then
13588 libobjs=conftest.$ac_objext
13590 wl=$lt_prog_compiler_wl_F77
13596 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13597 allow_undefined_flag_F77=
13598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13599 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }
13604 archive_cmds_need_lc_F77=no
13606 archive_cmds_need_lc_F77=yes
13608 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13610 cat conftest.err 1>&5
13613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13614 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13621 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13622 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13623 hardcode_action_F77=
13624 if test -n "$hardcode_libdir_flag_spec_F77" || \
13625 test -n "$runpath_var F77" || \
13626 test "X$hardcode_automatic_F77"="Xyes" ; then
13628 # We can hardcode non-existant directories.
13629 if test "$hardcode_direct_F77" != no &&
13630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13631 # have to relink, otherwise we might link with an installed library
13632 # when we should be linking with a yet-to-be-installed one
13633 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13634 test "$hardcode_minus_L_F77" != no; then
13635 # Linking always hardcodes the temporary library directory.
13636 hardcode_action_F77=relink
13638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13639 hardcode_action_F77=immediate
13642 # We cannot hardcode anything, or else we can only hardcode existing
13644 hardcode_action_F77=unsupported
13646 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13647 echo "${ECHO_T}$hardcode_action_F77" >&6
13649 if test "$hardcode_action_F77" = relink; then
13650 # Fast installation is not supported
13651 enable_fast_install=no
13652 elif test "$shlibpath_overrides_runpath" = yes ||
13653 test "$enable_shared" = no; then
13654 # Fast installation is not necessary
13655 enable_fast_install=needless
13660 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13661 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13662 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13663 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13664 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13665 echo "$as_me:$LINENO: result: yes" >&5
13666 echo "${ECHO_T}yes" >&6
13668 # FIXME - insert some real tests, host_os isn't really good enough
13671 if test -n "$STRIP" ; then
13672 striplib="$STRIP -x"
13673 echo "$as_me:$LINENO: result: yes" >&5
13674 echo "${ECHO_T}yes" >&6
13676 echo "$as_me:$LINENO: result: no" >&5
13677 echo "${ECHO_T}no" >&6
13681 echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6
13687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13689 library_names_spec=
13690 libname_spec='lib$name'
13694 postuninstall_cmds=
13698 shlibpath_overrides_runpath=unknown
13700 dynamic_linker="$host_os ld.so"
13701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13702 if test "$GCC" = yes; then
13703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13704 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13705 # if the path contains ";" then we assume it to be the separator
13706 # otherwise default to the standard path separator (i.e. ":") - it is
13707 # assumed that no part of a normal pathname contains ";" but that should
13708 # okay in the real world where ";" in dirpaths is itself problematic.
13709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13716 need_lib_prefix=unknown
13717 hardcode_into_libs=no
13719 # when you set need_version to no, make sure it does not cause -set_version
13720 # flags to be left without arguments
13721 need_version=unknown
13726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13727 shlibpath_var=LIBPATH
13729 # AIX 3 has no versioning support, so we append a major version to the name.
13730 soname_spec='${libname}${release}${shared_ext}$major'
13737 hardcode_into_libs=yes
13738 if test "$host_cpu" = ia64; then
13739 # AIX 5 supports IA64
13740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13741 shlibpath_var=LD_LIBRARY_PATH
13743 # With GCC up to 2.95.x, collect2 would create an import file
13744 # for dependence libraries. The import file would start with
13745 # the line `#! .'. This would cause the generated library to
13746 # depend on `.', always an invalid library. This was fixed in
13747 # development snapshots of GCC prior to 3.0.
13749 aix4 | aix4.[01] | aix4.[01].*)
13750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13752 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13755 can_build_shared=no
13759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13760 # soname into executable. Probably we can add versioning support to
13761 # collect2, so additional links can be useful in future.
13762 if test "$aix_use_runtimelinking" = yes; then
13763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13764 # instead of lib<name>.a to let people know that these are not
13765 # typical AIX shared libraries.
13766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 # We preserve .a as extension for shared libraries through AIX4.2
13769 # and later when we are not doing run time linking.
13770 library_names_spec='${libname}${release}.a $libname.a'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13773 shlibpath_var=LIBPATH
13778 library_names_spec='$libname.ixlibrary $libname.a'
13779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13780 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'
13784 library_names_spec='${libname}${shared_ext}'
13785 dynamic_linker="$host_os ld.so"
13786 shlibpath_var=LIBRARY_PATH
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793 soname_spec='${libname}${release}${shared_ext}$major'
13794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13798 # the default ld.so.conf also contains /usr/contrib/lib and
13799 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13800 # libtool to hard-code these into programs
13803 cygwin* | mingw* | pw32*)
13804 version_type=windows
13809 case $GCC,$host_os in
13810 yes,cygwin* | yes,mingw* | yes,pw32*)
13811 library_names_spec='$libname.dll.a'
13812 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13813 postinstall_cmds='base_file=`basename \${file}`~
13814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13815 dldir=$destdir/`dirname \$dlpath`~
13816 test -d \$dldir || mkdir -p \$dldir~
13817 $install_prog $dir/$dlname \$dldir/$dlname'
13818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13819 dlpath=$dir/\$dldll~
13821 shlibpath_overrides_runpath=yes
13825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13827 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13830 # MinGW DLLs use traditional 'lib' prefix
13831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13834 # It is most probably a Windows format PATH printed by
13835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13836 # path with ; separators, and with drive letters. We can handle the
13837 # drive letters (cygwin fileutils understands them), so leave them,
13838 # especially as we might pass files found there to a mingw objdump,
13839 # which wouldn't understand a cygwinified path. Ahh.
13840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13846 # pw32 DLLs use 'pw' prefix rather than 'lib'
13847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13856 dynamic_linker='Win32 ld.exe'
13857 # FIXME: first we should search . and the directory the executable is in
13861 darwin* | rhapsody*)
13862 dynamic_linker="$host_os dyld"
13863 version_type=darwin
13866 # FIXME: Relying on posixy $() will cause problems for
13867 # cross-compilation, but unfortunately the echo tests do not
13868 # yet detect zsh echo's removal of \ escapes.
13869 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13870 soname_spec='${libname}${release}${major}$shared_ext'
13871 shlibpath_overrides_runpath=yes
13872 shlibpath_var=DYLD_LIBRARY_PATH
13873 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13874 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13875 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13876 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"`
13878 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13886 soname_spec='${libname}${release}${shared_ext}$major'
13887 shlibpath_var=LD_LIBRARY_PATH
13895 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13896 version_type=freebsd-$objformat
13897 case $version_type in
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13908 shlibpath_var=LD_LIBRARY_PATH
13911 shlibpath_overrides_runpath=yes
13913 freebsd3.01* | freebsdelf3.01*)
13914 shlibpath_overrides_runpath=yes
13915 hardcode_into_libs=yes
13918 shlibpath_overrides_runpath=no
13919 hardcode_into_libs=yes
13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13929 soname_spec='${libname}${release}${shared_ext}$major'
13930 shlibpath_var=LD_LIBRARY_PATH
13931 hardcode_into_libs=yes
13934 hpux9* | hpux10* | hpux11*)
13935 # Give a soname corresponding to the major version so that dld.sl refuses to
13936 # link against other versions.
13940 case "$host_cpu" in
13943 hardcode_into_libs=yes
13944 dynamic_linker="$host_os dld.so"
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 soname_spec='${libname}${release}${shared_ext}$major'
13949 if test "X$HPUX_IA64_MODE" = X32; then
13950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13958 hardcode_into_libs=yes
13959 dynamic_linker="$host_os dld.sl"
13960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13969 dynamic_linker="$host_os dld.sl"
13970 shlibpath_var=SHLIB_PATH
13971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973 soname_spec='${libname}${release}${shared_ext}$major'
13976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13977 postinstall_cmds='chmod 555 $lib'
13980 irix5* | irix6* | nonstopux*)
13982 nonstopux*) version_type=nonstopux ;;
13984 if test "$lt_cv_prog_gnu_ld" = yes; then
13992 soname_spec='${libname}${release}${shared_ext}$major'
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13995 irix5* | nonstopux*)
13996 libsuff= shlibsuff=
13999 case $LD in # libtool.m4 will add one of these switches to LD
14000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14001 libsuff= shlibsuff= libmagic=32-bit;;
14002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14003 libsuff=32 shlibsuff=N32 libmagic=N32;;
14004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14006 *) libsuff= shlibsuff= libmagic=never-match;;
14010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14011 shlibpath_overrides_runpath=no
14012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14014 hardcode_into_libs=yes
14017 # No shared lib support for Linux oldld, aout, or coff.
14018 linux*oldld* | linux*aout* | linux*coff*)
14022 # This must be Linux ELF.
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath=no
14032 # This implies no fast_install, which is unacceptable.
14033 # Some rework will be needed to allow for fast_install
14034 # before this can be enabled.
14035 hardcode_into_libs=yes
14037 # We used to test for /lib/ld.so.1 and disable shared libraries on
14038 # powerpc, because MkLinux only supported shared libraries with the
14039 # GNU dynamic linker. Since this was broken with cross compilers,
14040 # most powerpc-linux boxes support dynamic linking these days and
14041 # people can always --disable-shared, the test was removed, and we
14042 # assume the GNU/Linux dynamic linker is in use.
14043 dynamic_linker='GNU/Linux ld.so'
14050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14053 dynamic_linker='NetBSD (a.out) ld.so'
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14056 soname_spec='${libname}${release}${shared_ext}$major'
14057 dynamic_linker='NetBSD ld.elf_so'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 shlibpath_overrides_runpath=yes
14061 hardcode_into_libs=yes
14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 shlibpath_overrides_runpath=yes
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14087 shlibpath_var=LD_LIBRARY_PATH
14088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14090 openbsd2.[89] | openbsd2.[89].*)
14091 shlibpath_overrides_runpath=no
14094 shlibpath_overrides_runpath=yes
14098 shlibpath_overrides_runpath=yes
14103 libname_spec='$name'
14106 library_names_spec='$libname${shared_ext} $libname.a'
14107 dynamic_linker='OS/2 ld.exe'
14108 shlibpath_var=LIBPATH
14111 osf3* | osf4* | osf5*)
14115 soname_spec='${libname}${release}${shared_ext}$major'
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126 shlibpath_var=LD_LIBRARY_PATH
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 shlibpath_overrides_runpath=yes
14137 hardcode_into_libs=yes
14138 # ldd complains unless libraries are executable
14139 postinstall_cmds='chmod +x $lib'
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14146 shlibpath_var=LD_LIBRARY_PATH
14147 shlibpath_overrides_runpath=yes
14148 if test "$with_gnu_ld" = yes; then
14154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157 soname_spec='${libname}${release}${shared_ext}$major'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 case $host_vendor in
14161 shlibpath_overrides_runpath=no
14163 export_dynamic_flag_spec='${wl}-Blargedynsym'
14164 runpath_var=LD_RUN_PATH
14172 shlibpath_overrides_runpath=no
14173 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14179 if test -d /usr/nec ;then
14181 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14182 soname_spec='$libname${shared_ext}.$major'
14183 shlibpath_var=LD_LIBRARY_PATH
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14198 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14199 echo "${ECHO_T}$dynamic_linker" >&6
14200 test "$dynamic_linker" = no && can_build_shared=no
14203 # The else clause should only fire when bootstrapping the
14204 # libtool distribution, otherwise you forgot to ship ltmain.sh
14205 # with your package, and you will get complaints that there are
14206 # no rules to generate ltmain.sh.
14207 if test -f "$ltmain"; then
14208 # See if we are running on zsh, and set the options which allow our commands through
14209 # without removal of \ escapes.
14210 if test -n "${ZSH_VERSION+set}" ; then
14211 setopt NO_GLOB_SUBST
14213 # Now quote all the things that may contain metacharacters while being
14214 # careful not to overquote the AC_SUBSTed values. We take copies of the
14215 # variables and quote the copies for generation of the libtool script.
14216 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14217 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14218 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14219 deplibs_check_method reload_flag reload_cmds need_locks \
14220 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14221 lt_cv_sys_global_symbol_to_c_name_address \
14222 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14223 old_postinstall_cmds old_postuninstall_cmds \
14227 lt_prog_compiler_wl_F77 \
14228 lt_prog_compiler_pic_F77 \
14229 lt_prog_compiler_static_F77 \
14230 lt_prog_compiler_no_builtin_flag_F77 \
14231 export_dynamic_flag_spec_F77 \
14232 thread_safe_flag_spec_F77 \
14233 whole_archive_flag_spec_F77 \
14234 enable_shared_with_static_runtimes_F77 \
14235 old_archive_cmds_F77 \
14236 old_archive_from_new_cmds_F77 \
14237 predep_objects_F77 \
14238 postdep_objects_F77 \
14241 compiler_lib_search_path_F77 \
14243 archive_expsym_cmds_F77 \
14244 postinstall_cmds_F77 \
14245 postuninstall_cmds_F77 \
14246 old_archive_from_expsyms_cmds_F77 \
14247 allow_undefined_flag_F77 \
14248 no_undefined_flag_F77 \
14249 export_symbols_cmds_F77 \
14250 hardcode_libdir_flag_spec_F77 \
14251 hardcode_libdir_flag_spec_ld_F77 \
14252 hardcode_libdir_separator_F77 \
14253 hardcode_automatic_F77 \
14255 module_expsym_cmds_F77 \
14256 lt_cv_prog_compiler_c_o_F77 \
14257 exclude_expsyms_F77 \
14258 include_expsyms_F77; do
14261 old_archive_cmds_F77 | \
14262 old_archive_from_new_cmds_F77 | \
14263 archive_cmds_F77 | \
14264 archive_expsym_cmds_F77 | \
14265 module_cmds_F77 | \
14266 module_expsym_cmds_F77 | \
14267 old_archive_from_expsyms_cmds_F77 | \
14268 export_symbols_cmds_F77 | \
14269 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14270 postinstall_cmds | postuninstall_cmds | \
14271 old_postinstall_cmds | old_postuninstall_cmds | \
14272 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14273 # Double-quote double-evaled strings.
14274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14283 *'\$0 --fallback-echo"')
14284 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14290 cat <<__EOF__ >> "$cfgfile"
14291 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14293 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14295 # Shell to use when invoking shell scripts.
14298 # Whether or not to build shared libraries.
14299 build_libtool_libs=$enable_shared
14301 # Whether or not to build static libraries.
14302 build_old_libs=$enable_static
14304 # Whether or not to add -lc for building shared libraries.
14305 build_libtool_need_lc=$archive_cmds_need_lc_F77
14307 # Whether or not to disallow shared libs when runtime libs are static
14308 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14310 # Whether or not to optimize for fast installation.
14311 fast_install=$enable_fast_install
14314 host_alias=$host_alias
14317 # An echo program that does not interpret backslashes.
14322 AR_FLAGS=$lt_AR_FLAGS
14327 # A language-specific compiler.
14328 CC=$lt_compiler_F77
14330 # Is the compiler the GNU C compiler?
14336 # The linker used to build libraries.
14339 # Whether we need hard or soft links.
14342 # A BSD-compatible nm program.
14345 # A symbol stripping program
14348 # Used to examine libraries when file_magic_cmd begins "file"
14349 MAGIC_CMD=$MAGIC_CMD
14351 # Used on cygwin: DLL creation program.
14354 # Used on cygwin: object dumper.
14357 # Used on cygwin: assembler.
14360 # The name of the directory that contains temporary libtool files.
14363 # How to create reloadable object files.
14364 reload_flag=$lt_reload_flag
14365 reload_cmds=$lt_reload_cmds
14367 # How to pass a linker flag through the compiler.
14368 wl=$lt_lt_prog_compiler_wl_F77
14370 # Object file suffix (normally "o").
14371 objext="$ac_objext"
14373 # Old archive suffix (normally "a").
14376 # Shared library suffix (normally ".so").
14379 # Executable file suffix (normally "").
14382 # Additional compiler flags for building library objects.
14383 pic_flag=$lt_lt_prog_compiler_pic_F77
14386 # What is the maximum length of a command?
14387 max_cmd_len=$lt_cv_sys_max_cmd_len
14389 # Does compiler simultaneously support -c and -o options?
14390 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14392 # Must we lock files when doing compilation ?
14393 need_locks=$lt_need_locks
14395 # Do we need the lib prefix for modules?
14396 need_lib_prefix=$need_lib_prefix
14398 # Do we need a version for libraries?
14399 need_version=$need_version
14401 # Whether dlopen is supported.
14402 dlopen_support=$enable_dlopen
14404 # Whether dlopen of programs is supported.
14405 dlopen_self=$enable_dlopen_self
14407 # Whether dlopen of statically linked programs is supported.
14408 dlopen_self_static=$enable_dlopen_self_static
14410 # Compiler flag to prevent dynamic linking.
14411 link_static_flag=$lt_lt_prog_compiler_static_F77
14413 # Compiler flag to turn off builtin functions.
14414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14416 # Compiler flag to allow reflexive dlopens.
14417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14419 # Compiler flag to generate shared objects directly from archives.
14420 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14422 # Compiler flag to generate thread-safe objects.
14423 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14425 # Library versioning type.
14426 version_type=$version_type
14428 # Format of library name prefix.
14429 libname_spec=$lt_libname_spec
14431 # List of archive names. First name is the real one, the rest are links.
14432 # The last name is the one that the linker finds with -lNAME.
14433 library_names_spec=$lt_library_names_spec
14435 # The coded name of the library, if different from the real name.
14436 soname_spec=$lt_soname_spec
14438 # Commands used to build and install an old-style archive.
14440 old_archive_cmds=$lt_old_archive_cmds_F77
14441 old_postinstall_cmds=$lt_old_postinstall_cmds
14442 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14444 # Create an old-style archive from a shared archive.
14445 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14447 # Create a temporary old-style archive to link instead of a shared archive.
14448 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14450 # Commands used to build and install a shared archive.
14451 archive_cmds=$lt_archive_cmds_F77
14452 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14453 postinstall_cmds=$lt_postinstall_cmds
14454 postuninstall_cmds=$lt_postuninstall_cmds
14456 # Commands used to build a loadable module (assumed same as above if empty)
14457 module_cmds=$lt_module_cmds_F77
14458 module_expsym_cmds=$lt_module_expsym_cmds_F77
14460 # Commands to strip libraries.
14461 old_striplib=$lt_old_striplib
14462 striplib=$lt_striplib
14464 # Dependencies to place before the objects being linked to create a
14466 predep_objects=$lt_predep_objects_F77
14468 # Dependencies to place after the objects being linked to create a
14470 postdep_objects=$lt_postdep_objects_F77
14472 # Dependencies to place before the objects being linked to create a
14474 predeps=$lt_predeps_F77
14476 # Dependencies to place after the objects being linked to create a
14478 postdeps=$lt_postdeps_F77
14480 # The library search path used internally by the compiler when linking
14481 # a shared library.
14482 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14484 # Method to check whether dependent libraries are shared objects.
14485 deplibs_check_method=$lt_deplibs_check_method
14487 # Command to use when deplibs_check_method == file_magic.
14488 file_magic_cmd=$lt_file_magic_cmd
14490 # Flag that allows shared libraries with undefined symbols to be built.
14491 allow_undefined_flag=$lt_allow_undefined_flag_F77
14493 # Flag that forces no undefined symbols.
14494 no_undefined_flag=$lt_no_undefined_flag_F77
14496 # Commands used to finish a libtool library installation in a directory.
14497 finish_cmds=$lt_finish_cmds
14499 # Same as above, but a single script fragment to be evaled but not shown.
14500 finish_eval=$lt_finish_eval
14502 # Take the output of nm and produce a listing of raw symbols and C names.
14503 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14505 # Transform the output of nm in a proper C declaration
14506 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14508 # Transform the output of nm in a C name address pair
14509 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14511 # This is the shared library runtime path variable.
14512 runpath_var=$runpath_var
14514 # This is the shared library path variable.
14515 shlibpath_var=$shlibpath_var
14517 # Is shlibpath searched before the hard-coded library search path?
14518 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14520 # How to hardcode a shared library path into an executable.
14521 hardcode_action=$hardcode_action_F77
14523 # Whether we should hardcode library paths into libraries.
14524 hardcode_into_libs=$hardcode_into_libs
14526 # Flag to hardcode \$libdir into a binary during linking.
14527 # This must work even if \$libdir does not exist.
14528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14530 # If ld is used when linking, flag to hardcode \$libdir into
14531 # a binary during linking. This must work even if \$libdir does
14533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14535 # Whether we need a single -rpath flag with a separated argument.
14536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14538 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14539 # resulting binary.
14540 hardcode_direct=$hardcode_direct_F77
14542 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14543 # resulting binary.
14544 hardcode_minus_L=$hardcode_minus_L_F77
14546 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14547 # the resulting binary.
14548 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14550 # Set to yes if building a shared library automatically hardcodes DIR into the library
14551 # and all subsequent libraries and executables linked against it.
14552 hardcode_automatic=$hardcode_automatic_F77
14554 # Variables whose values should be saved in libtool wrapper scripts and
14555 # restored at relink time.
14556 variables_saved_for_relink="$variables_saved_for_relink"
14558 # Whether libtool must link a program against all its dependency libraries.
14559 link_all_deplibs=$link_all_deplibs_F77
14561 # Compile-time system search path for libraries
14562 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14564 # Run-time system search path for libraries
14565 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14567 # Fix the shell variable \$srcfile for the compiler.
14568 fix_srcfile_path="$fix_srcfile_path_F77"
14570 # Set to yes if exported symbols are required.
14571 always_export_symbols=$always_export_symbols_F77
14573 # The commands to list exported symbols.
14574 export_symbols_cmds=$lt_export_symbols_cmds_F77
14576 # The commands to extract the exported symbol list from a shared archive.
14577 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14579 # Symbols that should not be listed in the preloaded symbols.
14580 exclude_expsyms=$lt_exclude_expsyms_F77
14582 # Symbols that must always be exported.
14583 include_expsyms=$lt_include_expsyms_F77
14585 # ### END LIBTOOL TAG CONFIG: $tagname
14591 # If there is no Makefile yet, we rely on a make rule to execute
14592 # `config.status --recheck' to rerun these tests and create the
14593 # libtool script then.
14594 test -f Makefile && make "$ltmain"
14599 ac_cpp='$CPP $CPPFLAGS'
14600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14612 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14616 # Source file extension for Java test sources.
14619 # Object file extension for compiled Java test sources.
14623 # Code to be used in simple compile tests
14624 lt_simple_compile_test_code="class foo {}\n"
14626 # Code to be used in simple link tests
14627 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14631 # If no C compiler was specified, use CC.
14634 # Allow CC to be a program name with arguments.
14638 # Allow CC to be a program name with arguments.
14644 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14645 archive_cmds_need_lc_GCJ=no
14648 lt_prog_compiler_no_builtin_flag_GCJ=
14650 if test "$GCC" = yes; then
14651 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14653 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14654 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14655 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 lt_cv_prog_compiler_rtti_exceptions=no
14659 ac_outfile=conftest.$ac_objext
14660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14661 lt_compiler_flag="-fno-rtti -fno-exceptions"
14662 # Insert the option either (1) after the last *FLAGS variable, or
14663 # (2) before a word containing "conftest.", or (3) at the end.
14664 # Note that $ac_compile itself does not contain backslashes and begins
14665 # with a dollar sign (not a hyphen), so the echo should work correctly.
14666 # The option is referenced via a variable to avoid confusing sed.
14667 lt_compile=`echo "$ac_compile" | $SED \
14668 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670 -e 's:$: $lt_compiler_flag:'`
14671 (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672 (eval "$lt_compile" 2>conftest.err)
14674 cat conftest.err >&5
14675 echo "$as_me:14675: \$? = $ac_status" >&5
14676 if (exit $ac_status) && test -s "$ac_outfile"; then
14677 # The compiler can only warn and ignore the option if not recognized
14678 # So say no if there are warnings
14679 if test ! -s conftest.err; then
14680 lt_cv_prog_compiler_rtti_exceptions=yes
14686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14690 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14697 lt_prog_compiler_wl_GCJ=
14698 lt_prog_compiler_pic_GCJ=
14699 lt_prog_compiler_static_GCJ=
14701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14704 if test "$GCC" = yes; then
14705 lt_prog_compiler_wl_GCJ='-Wl,'
14706 lt_prog_compiler_static_GCJ='-static'
14710 # All AIX code is PIC.
14711 if test "$host_cpu" = ia64; then
14712 # AIX 5 now supports IA64 processor
14713 lt_prog_compiler_static_GCJ='-Bstatic'
14718 # FIXME: we need at least 68020 code to build shared libraries, but
14719 # adding the `-m68020' flag to GCC prevents building anything better,
14721 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14725 # PIC is the default for these OSes.
14728 mingw* | pw32* | os2*)
14729 # This hack is so that the source file can tell whether it is being
14730 # built for inclusion in a dll (and should export symbols for example).
14731 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14734 darwin* | rhapsody*)
14735 # PIC is the default on this platform
14736 # Common symbols not allowed in MH_DYLIB files
14737 lt_prog_compiler_pic_GCJ='-fno-common'
14741 # Just because we use GCC doesn't mean we suddenly get shared libraries
14742 # on systems that don't support them.
14743 lt_prog_compiler_can_build_shared_GCJ=no
14748 if test -d /usr/nec; then
14749 lt_prog_compiler_pic_GCJ=-Kconform_pic
14754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14755 # not for PA HP-UX.
14756 case "$host_cpu" in
14761 lt_prog_compiler_pic_GCJ='-fPIC'
14767 lt_prog_compiler_pic_GCJ='-fPIC'
14771 # PORTME Check for flag to pass linker flags through the system compiler.
14774 lt_prog_compiler_wl_GCJ='-Wl,'
14775 if test "$host_cpu" = ia64; then
14776 # AIX 5 now supports IA64 processor
14777 lt_prog_compiler_static_GCJ='-Bstatic'
14779 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14783 mingw* | pw32* | os2*)
14784 # This hack is so that the source file can tell whether it is being
14785 # built for inclusion in a dll (and should export symbols for example).
14786 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14789 hpux9* | hpux10* | hpux11*)
14790 lt_prog_compiler_wl_GCJ='-Wl,'
14791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14792 # not for PA HP-UX.
14793 case "$host_cpu" in
14798 lt_prog_compiler_pic_GCJ='+Z'
14801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14802 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14805 irix5* | irix6* | nonstopux*)
14806 lt_prog_compiler_wl_GCJ='-Wl,'
14807 # PIC (with -KPIC) is the default.
14808 lt_prog_compiler_static_GCJ='-non_shared'
14812 lt_prog_compiler_pic_GCJ='-KPIC'
14813 lt_prog_compiler_static_GCJ='-Bstatic'
14819 lt_prog_compiler_wl_GCJ='-Wl,'
14820 lt_prog_compiler_pic_GCJ='-KPIC'
14821 lt_prog_compiler_static_GCJ='-static'
14824 lt_prog_compiler_wl_GCJ='-Wl,'
14825 # All Alpha code is PIC.
14826 lt_prog_compiler_static_GCJ='-non_shared'
14831 osf3* | osf4* | osf5*)
14832 lt_prog_compiler_wl_GCJ='-Wl,'
14833 # All OSF/1 code is PIC.
14834 lt_prog_compiler_static_GCJ='-non_shared'
14838 lt_prog_compiler_pic_GCJ='-Kpic'
14839 lt_prog_compiler_static_GCJ='-dn'
14843 lt_prog_compiler_wl_GCJ='-Wl,'
14844 lt_prog_compiler_pic_GCJ='-KPIC'
14845 lt_prog_compiler_static_GCJ='-Bstatic'
14849 lt_prog_compiler_wl_GCJ='-Qoption ld '
14850 lt_prog_compiler_pic_GCJ='-PIC'
14851 lt_prog_compiler_static_GCJ='-Bstatic'
14854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14855 lt_prog_compiler_wl_GCJ='-Wl,'
14856 lt_prog_compiler_pic_GCJ='-KPIC'
14857 lt_prog_compiler_static_GCJ='-Bstatic'
14861 if test -d /usr/nec ;then
14862 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14863 lt_prog_compiler_static_GCJ='-Bstatic'
14868 lt_prog_compiler_pic_GCJ='-pic'
14869 lt_prog_compiler_static_GCJ='-Bstatic'
14873 lt_prog_compiler_can_build_shared_GCJ=no
14878 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14879 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14882 # Check to make sure the PIC flag actually works.
14884 if test -n "$lt_prog_compiler_pic_GCJ"; then
14885 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14886 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14887 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 lt_prog_compiler_pic_works_GCJ=no
14891 ac_outfile=conftest.$ac_objext
14892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14893 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14894 # Insert the option either (1) after the last *FLAGS variable, or
14895 # (2) before a word containing "conftest.", or (3) at the end.
14896 # Note that $ac_compile itself does not contain backslashes and begins
14897 # with a dollar sign (not a hyphen), so the echo should work correctly.
14898 # The option is referenced via a variable to avoid confusing sed.
14899 lt_compile=`echo "$ac_compile" | $SED \
14900 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14902 -e 's:$: $lt_compiler_flag:'`
14903 (eval echo "\"\$as_me:14903: $lt_compile\"" >&5)
14904 (eval "$lt_compile" 2>conftest.err)
14906 cat conftest.err >&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 if (exit $ac_status) && test -s "$ac_outfile"; then
14909 # The compiler can only warn and ignore the option if not recognized
14910 # So say no if there are warnings
14911 if test ! -s conftest.err; then
14912 lt_prog_compiler_pic_works_GCJ=yes
14918 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14919 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14921 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14922 case $lt_prog_compiler_pic_GCJ in
14924 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14927 lt_prog_compiler_pic_GCJ=
14928 lt_prog_compiler_can_build_shared_GCJ=no
14933 # For platforms which do not support PIC, -DPIC is meaningless:
14935 lt_prog_compiler_pic_GCJ=
14938 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14944 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 lt_cv_prog_compiler_c_o_GCJ=no
14948 $rm -r conftest 2>/dev/null
14952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14954 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14955 # that will create temporary files in the current directory regardless of
14956 # the output directory. Thus, making CWD read-only will cause this test
14957 # to fail, enabling locking or at least warning the user not to do parallel
14961 lt_compiler_flag="-o out/conftest2.$ac_objext"
14962 # Insert the option either (1) after the last *FLAGS variable, or
14963 # (2) before a word containing "conftest.", or (3) at the end.
14964 # Note that $ac_compile itself does not contain backslashes and begins
14965 # with a dollar sign (not a hyphen), so the echo should work correctly.
14966 lt_compile=`echo "$ac_compile" | $SED \
14967 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14969 -e 's:$: $lt_compiler_flag:'`
14970 (eval echo "\"\$as_me:14970: $lt_compile\"" >&5)
14971 (eval "$lt_compile" 2>out/conftest.err)
14973 cat out/conftest.err >&5
14974 echo "$as_me:14974: \$? = $ac_status" >&5
14975 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14977 # The compiler can only warn and ignore the option if not recognized
14978 # So say no if there are warnings
14979 if test ! -s out/conftest.err; then
14980 lt_cv_prog_compiler_c_o_GCJ=yes
14984 $rm conftest* out/*
14991 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14992 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14995 hard_links="nottested"
14996 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14997 # do not overwrite the value of need_locks provided by the user
14998 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14999 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15004 ln conftest.a conftest.b 2>&5 || hard_links=no
15005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15006 echo "$as_me:$LINENO: result: $hard_links" >&5
15007 echo "${ECHO_T}$hard_links" >&6
15008 if test "$hard_links" = no; then
15009 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15010 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15017 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15018 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15021 allow_undefined_flag_GCJ=
15022 enable_shared_with_static_runtimes_GCJ=no
15024 archive_expsym_cmds_GCJ=
15025 old_archive_From_new_cmds_GCJ=
15026 old_archive_from_expsyms_cmds_GCJ=
15027 export_dynamic_flag_spec_GCJ=
15028 whole_archive_flag_spec_GCJ=
15029 thread_safe_flag_spec_GCJ=
15030 hardcode_libdir_flag_spec_GCJ=
15031 hardcode_libdir_flag_spec_ld_GCJ=
15032 hardcode_libdir_separator_GCJ=
15033 hardcode_direct_GCJ=no
15034 hardcode_minus_L_GCJ=no
15035 hardcode_shlibpath_var_GCJ=unsupported
15036 link_all_deplibs_GCJ=unknown
15037 hardcode_automatic_GCJ=no
15039 module_expsym_cmds_GCJ=
15040 always_export_symbols_GCJ=no
15041 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15042 # include_expsyms should be a list of space-separated symbols to be *always*
15043 # included in the symbol list
15044 include_expsyms_GCJ=
15045 # exclude_expsyms can be an extended regexp of symbols to exclude
15046 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15048 # as well as any symbol that contains `d'.
15049 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15051 # platforms (ab)use it in PIC code, but their linkers get confused if
15052 # the symbol is explicitly referenced. Since portable code cannot
15053 # rely on this symbol name, it's probably fine to never include it in
15054 # preloaded symbol tables.
15055 extract_expsyms_cmds=
15058 cygwin* | mingw* | pw32*)
15059 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15060 # When not using gcc, we currently assume that we are using
15061 # Microsoft Visual C++.
15062 if test "$GCC" != yes; then
15072 if test "$with_gnu_ld" = yes; then
15073 # If archive_cmds runs LD, not CC, wlarc should be empty
15076 # See if GNU ld supports shared libraries.
15078 aix3* | aix4* | aix5*)
15079 # On AIX/PPC, the GNU linker is very broken
15080 if test "$host_cpu" != ia64; then
15084 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15085 *** to be unable to reliably create shared libraries on AIX.
15086 *** Therefore, libtool is disabling shared libraries support. If you
15087 *** really care for shared libraries, you may want to modify your PATH
15088 *** so that a non-GNU linker is found, and then restart.
15095 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)'
15096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15097 hardcode_minus_L_GCJ=yes
15099 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15100 # that the semantics of dynamic libraries on AmigaOS, at least up
15101 # to version 4, is to share data among multiple programs linked
15102 # with the same dynamic library. Since this doesn't match the
15103 # behavior of shared libraries on other platforms, we can't use
15109 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15110 allow_undefined_flag_GCJ=unsupported
15111 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15112 # support --undefined. This deserves some investigation. FIXME
15113 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119 cygwin* | mingw* | pw32*)
15120 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15121 # as there is no search path for DLLs.
15122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15123 allow_undefined_flag_GCJ=unsupported
15124 always_export_symbols_GCJ=no
15125 enable_shared_with_static_runtimes_GCJ=yes
15126 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15128 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15130 # If the export-symbols file already is a .def file (1st line
15131 # is EXPORTS), use it as is; otherwise, prepend...
15132 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15133 cp $export_symbols $output_objdir/$soname.def;
15135 echo EXPORTS > $output_objdir/$soname.def;
15136 cat $export_symbols >> $output_objdir/$soname.def;
15138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15146 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15149 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15155 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15160 *** create shared libraries on Solaris systems. Therefore, libtool
15161 *** is disabling shared libraries support. We urge you to upgrade GNU
15162 *** binutils to release 2.9.1 or newer. Another option is to modify
15163 *** your PATH or compiler configuration so that the native linker is
15164 *** used, and then restart.
15167 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15168 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15176 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15178 hardcode_direct_GCJ=yes
15179 hardcode_shlibpath_var_GCJ=no
15183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15192 if test "$ld_shlibs_GCJ" = yes; then
15193 runpath_var=LD_RUN_PATH
15194 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15195 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15196 # ancient GNU ld didn't support --whole-archive et. al.
15197 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15198 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15200 whole_archive_flag_spec_GCJ=
15204 # PORTME fill in a description of your system's linker (not GNU ld)
15207 allow_undefined_flag_GCJ=unsupported
15208 always_export_symbols_GCJ=yes
15209 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'
15210 # Note: this linker hardcodes the directories in LIBPATH if there
15211 # are no directories specified by -L.
15212 hardcode_minus_L_GCJ=yes
15213 if test "$GCC" = yes && test -z "$link_static_flag"; then
15214 # Neither direct hardcoding nor static linking is supported with a
15216 hardcode_direct_GCJ=unsupported
15221 if test "$host_cpu" = ia64; then
15222 # On IA64, the linker does run time linking by default, so we don't
15223 # have to do anything special.
15224 aix_use_runtimelinking=no
15225 exp_sym_flag='-Bexport'
15228 # If we're using GNU nm, then we don't want the "-C" option.
15229 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15230 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15231 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'
15233 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'
15235 aix_use_runtimelinking=no
15237 # Test if we are trying to use run time linking or normal
15238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15239 # need to do runtime linking.
15240 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15241 for ld_flag in $LDFLAGS; do
15242 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15243 aix_use_runtimelinking=yes
15249 exp_sym_flag='-bexport'
15250 no_entry_flag='-bnoentry'
15253 # When large executables or shared objects are built, AIX ld can
15254 # have problems creating the table of contents. If linking a library
15255 # or program results in "error TOC overflow" add -mminimal-toc to
15256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15259 archive_cmds_GCJ=''
15260 hardcode_direct_GCJ=yes
15261 hardcode_libdir_separator_GCJ=':'
15262 link_all_deplibs_GCJ=yes
15264 if test "$GCC" = yes; then
15265 case $host_os in aix4.012|aix4.012.*)
15266 # We only want to do this on AIX 4.2 and lower, the check
15267 # below for broken collect2 doesn't work under 4.3+
15268 collect2name=`${CC} -print-prog-name=collect2`
15269 if test -f "$collect2name" && \
15270 strings "$collect2name" | grep resolve_lib_name >/dev/null
15272 # We have reworked collect2
15273 hardcode_direct_GCJ=yes
15275 # We have old collect2
15276 hardcode_direct_GCJ=unsupported
15277 # It fails to find uninstalled libraries when the uninstalled
15278 # path is not listed in the libpath. Setting hardcode_minus_L
15279 # to unsupported forces relinking
15280 hardcode_minus_L_GCJ=yes
15281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15282 hardcode_libdir_separator_GCJ=
15285 shared_flag='-shared'
15288 if test "$host_cpu" = ia64; then
15289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15290 # chokes on -Wl,-G. The following line is correct:
15293 if test "$aix_use_runtimelinking" = yes; then
15294 shared_flag='${wl}-G'
15296 shared_flag='${wl}-bM:SRE'
15301 # It seems that -bexpall does not export symbols beginning with
15302 # underscore (_), so it is better to generate a list of symbols to export.
15303 always_export_symbols_GCJ=yes
15304 if test "$aix_use_runtimelinking" = yes; then
15305 # Warning - without using the other runtime loading flags (-brtl),
15306 # -berok will link without error, but may produce a broken library.
15307 allow_undefined_flag_GCJ='-berok'
15308 # Determine the default libpath from the value encoded in an empty executable.
15309 cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327 (eval $ac_link) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -s conftest$ac_exeext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15340 # Check for a 64-bit object if we didn't find anything.
15341 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; }
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15351 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15352 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"
15354 if test "$host_cpu" = ia64; then
15355 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15356 allow_undefined_flag_GCJ="-z nodefs"
15357 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"
15359 # Determine the default libpath from the value encoded in an empty executable.
15360 cat >conftest.$ac_ext <<_ACEOF
15361 #line $LINENO "configure"
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -s conftest$ac_exeext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15391 # Check for a 64-bit object if we didn't find anything.
15392 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; }
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15402 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15403 # Warning - without using the other run time loading flags,
15404 # -berok will link without error, but may produce a broken library.
15405 no_undefined_flag_GCJ=' ${wl}-bernotok'
15406 allow_undefined_flag_GCJ=' ${wl}-berok'
15407 # -bexpall does not export symbols beginning with underscore (_)
15408 always_export_symbols_GCJ=yes
15409 # Exported symbols can be pulled into shared objects from archives
15410 whole_archive_flag_spec_GCJ=' '
15411 archive_cmds_need_lc_GCJ=yes
15412 # This is similar to how AIX traditionally builds it's shared libraries.
15413 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'
15419 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)'
15420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15421 hardcode_minus_L_GCJ=yes
15422 # see comment about different semantics on the GNU ld section
15427 export_dynamic_flag_spec_GCJ=-rdynamic
15430 cygwin* | mingw* | pw32*)
15431 # When not using gcc, we currently assume that we are using
15432 # Microsoft Visual C++.
15433 # hardcode_libdir_flag_spec is actually meaningless, as there is
15434 # no search path for DLLs.
15435 hardcode_libdir_flag_spec_GCJ=' '
15436 allow_undefined_flag_GCJ=unsupported
15437 # Tell ltmain to make .lib files, not .a files.
15439 # Tell ltmain to make .dll files, not .so files.
15441 # FIXME: Setting linknames here is a bad hack.
15442 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15443 # The linker will automatically build a .lib file if we build a DLL.
15444 old_archive_From_new_cmds_GCJ='true'
15445 # FIXME: Should let the user specify the lib program.
15446 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15447 fix_srcfile_path='`cygpath -w "$srcfile"`'
15448 enable_shared_with_static_runtimes_GCJ=yes
15451 darwin* | rhapsody*)
15452 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15453 archive_cmds_need_lc_GCJ=no
15455 rhapsody* | darwin1.[012])
15456 allow_undefined_flag_GCJ='-undefined suppress'
15459 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15462 # FIXME: Relying on posixy $() will cause problems for
15463 # cross-compilation, but unfortunately the echo tests do not
15464 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15465 # `"' quotes if we put them in here... so don't!
15466 lt_int_apple_cc_single_mod=no
15467 output_verbose_link_cmd='echo'
15468 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15469 lt_int_apple_cc_single_mod=yes
15471 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15472 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15474 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'
15476 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15478 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15479 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}'
15481 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}'
15483 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}'
15484 hardcode_direct_GCJ=no
15485 hardcode_automatic_GCJ=yes
15486 hardcode_shlibpath_var_GCJ=unsupported
15487 whole_archive_flag_spec_GCJ='-all_load $convenience'
15488 link_all_deplibs_GCJ=yes
15493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15495 hardcode_shlibpath_var_GCJ=no
15502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15503 # support. Future versions do this automatically, but an explicit c++rt0.o
15504 # does not break anything, and helps significantly (at the cost of a little
15507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15509 hardcode_direct_GCJ=yes
15510 hardcode_shlibpath_var_GCJ=no
15513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15516 hardcode_direct_GCJ=yes
15517 hardcode_minus_L_GCJ=yes
15518 hardcode_shlibpath_var_GCJ=no
15521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15523 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15525 hardcode_direct_GCJ=yes
15526 hardcode_shlibpath_var_GCJ=no
15530 if test "$GCC" = yes; then
15531 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'
15533 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'
15535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15536 hardcode_libdir_separator_GCJ=:
15537 hardcode_direct_GCJ=yes
15539 # hardcode_minus_L: Not really in the search PATH,
15540 # but as the default location of the library.
15541 hardcode_minus_L_GCJ=yes
15542 export_dynamic_flag_spec_GCJ='${wl}-E'
15546 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15547 case "$host_cpu" in
15549 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15552 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15556 case "$host_cpu" in
15558 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15565 if test "$with_gnu_ld" = no; then
15566 case "$host_cpu" in
15568 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15569 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15570 hardcode_libdir_separator_GCJ=:
15571 hardcode_direct_GCJ=no
15572 hardcode_shlibpath_var_GCJ=no
15575 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576 hardcode_direct_GCJ=no
15577 hardcode_shlibpath_var_GCJ=no
15579 # hardcode_minus_L: Not really in the search PATH,
15580 # but as the default location of the library.
15581 hardcode_minus_L_GCJ=yes
15584 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15585 hardcode_libdir_separator_GCJ=:
15586 hardcode_direct_GCJ=yes
15587 export_dynamic_flag_spec_GCJ='${wl}-E'
15589 # hardcode_minus_L: Not really in the search PATH,
15590 # but as the default location of the library.
15591 hardcode_minus_L_GCJ=yes
15597 irix5* | irix6* | nonstopux*)
15598 if test "$GCC" = yes; then
15599 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'
15601 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'
15602 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15605 hardcode_libdir_separator_GCJ=:
15606 link_all_deplibs_GCJ=yes
15610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15611 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15613 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15615 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15616 hardcode_direct_GCJ=yes
15617 hardcode_shlibpath_var_GCJ=no
15621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_direct_GCJ=yes
15623 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15624 hardcode_libdir_separator_GCJ=:
15625 hardcode_shlibpath_var_GCJ=no
15629 hardcode_direct_GCJ=yes
15630 hardcode_shlibpath_var_GCJ=no
15631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15632 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15634 export_dynamic_flag_spec_GCJ='${wl}-E'
15637 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15642 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15651 hardcode_minus_L_GCJ=yes
15652 allow_undefined_flag_GCJ=unsupported
15653 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'
15654 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15658 if test "$GCC" = yes; then
15659 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15660 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'
15662 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15663 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'
15665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15666 hardcode_libdir_separator_GCJ=:
15669 osf4* | osf5*) # as osf3* with the addition of -msym flag
15670 if test "$GCC" = yes; then
15671 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15672 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'
15673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15675 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15676 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'
15677 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~
15678 $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'
15680 # Both c and cxx compiler support -rpath directly
15681 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15683 hardcode_libdir_separator_GCJ=:
15687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_shlibpath_var_GCJ=no
15689 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15690 runpath_var=LD_RUN_PATH
15691 hardcode_runpath_var=yes
15695 no_undefined_flag_GCJ=' -z text'
15696 if test "$GCC" = yes; then
15697 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15701 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15705 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15706 hardcode_shlibpath_var_GCJ=no
15708 solaris2.[0-5] | solaris2.[0-5].*) ;;
15709 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15710 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15712 link_all_deplibs_GCJ=yes
15716 if test "x$host_vendor" = xsequent; then
15717 # Use $CC to link under sequent, because it throws in some extra .o
15718 # files that make .init and .fini sections work.
15719 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15724 hardcode_direct_GCJ=yes
15725 hardcode_minus_L_GCJ=yes
15726 hardcode_shlibpath_var_GCJ=no
15730 case $host_vendor in
15732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_direct_GCJ=yes # is this really true???
15736 ## LD is ld it makes a PLAMLIB
15737 ## CC just makes a GrossModule.
15738 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15739 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15740 hardcode_direct_GCJ=no
15743 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15747 runpath_var='LD_RUN_PATH'
15748 hardcode_shlibpath_var_GCJ=no
15752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15753 hardcode_shlibpath_var_GCJ=no
15754 export_dynamic_flag_spec_GCJ='-Bexport'
15758 if test -d /usr/nec; then
15759 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_shlibpath_var_GCJ=no
15761 runpath_var=LD_RUN_PATH
15762 hardcode_runpath_var=yes
15768 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_direct_GCJ=yes
15770 hardcode_minus_L_GCJ=no
15771 hardcode_shlibpath_var_GCJ=no
15772 hardcode_runpath_var=yes
15773 runpath_var=LD_RUN_PATH
15776 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15777 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15778 if test "$GCC" = yes; then
15779 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15781 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 runpath_var='LD_RUN_PATH'
15784 hardcode_shlibpath_var_GCJ=no
15788 no_undefined_flag_GCJ=' -z text'
15789 # $CC -shared without GNU ld will not create a library from C++
15790 # object files and a static libstdc++, better avoid it by now
15791 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15794 hardcode_libdir_flag_spec_GCJ=
15795 hardcode_shlibpath_var_GCJ=no
15796 runpath_var='LD_RUN_PATH'
15800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15802 hardcode_shlibpath_var_GCJ=no
15811 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15812 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15813 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15816 if test "$GCC" = yes; then
15817 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15821 # Do we need to explicitly link libc?
15823 case "x$archive_cmds_need_lc_GCJ" in
15825 # Assume -lc should be added
15826 archive_cmds_need_lc_GCJ=yes
15828 if test "$enable_shared" = yes && test "$GCC" = yes; then
15829 case $archive_cmds_GCJ in
15831 # FIXME: we may have to deal with multi-command sequences.
15834 # Test whether the compiler implicitly links with -lc since on some
15835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15836 # to ld, don't add -lc before -lgcc.
15837 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15838 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843 (eval $ac_compile) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } 2>conftest.err; then
15849 libobjs=conftest.$ac_objext
15851 wl=$lt_prog_compiler_wl_GCJ
15857 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15858 allow_undefined_flag_GCJ=
15859 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15860 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }
15865 archive_cmds_need_lc_GCJ=no
15867 archive_cmds_need_lc_GCJ=yes
15869 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15871 cat conftest.err 1>&5
15874 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15875 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15882 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15884 hardcode_action_GCJ=
15885 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15886 test -n "$runpath_var GCJ" || \
15887 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15889 # We can hardcode non-existant directories.
15890 if test "$hardcode_direct_GCJ" != no &&
15891 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15892 # have to relink, otherwise we might link with an installed library
15893 # when we should be linking with a yet-to-be-installed one
15894 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15895 test "$hardcode_minus_L_GCJ" != no; then
15896 # Linking always hardcodes the temporary library directory.
15897 hardcode_action_GCJ=relink
15899 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15900 hardcode_action_GCJ=immediate
15903 # We cannot hardcode anything, or else we can only hardcode existing
15905 hardcode_action_GCJ=unsupported
15907 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15908 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15910 if test "$hardcode_action_GCJ" = relink; then
15911 # Fast installation is not supported
15912 enable_fast_install=no
15913 elif test "$shlibpath_overrides_runpath" = yes ||
15914 test "$enable_shared" = no; then
15915 # Fast installation is not necessary
15916 enable_fast_install=needless
15921 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15922 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15923 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15924 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15925 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15926 echo "$as_me:$LINENO: result: yes" >&5
15927 echo "${ECHO_T}yes" >&6
15929 # FIXME - insert some real tests, host_os isn't really good enough
15932 if test -n "$STRIP" ; then
15933 striplib="$STRIP -x"
15934 echo "$as_me:$LINENO: result: yes" >&5
15935 echo "${ECHO_T}yes" >&6
15937 echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15942 echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6
15948 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15950 library_names_spec=
15951 libname_spec='lib$name'
15955 postuninstall_cmds=
15959 shlibpath_overrides_runpath=unknown
15961 dynamic_linker="$host_os ld.so"
15962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15963 if test "$GCC" = yes; then
15964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15965 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15966 # if the path contains ";" then we assume it to be the separator
15967 # otherwise default to the standard path separator (i.e. ":") - it is
15968 # assumed that no part of a normal pathname contains ";" but that should
15969 # okay in the real world where ";" in dirpaths is itself problematic.
15970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15977 need_lib_prefix=unknown
15978 hardcode_into_libs=no
15980 # when you set need_version to no, make sure it does not cause -set_version
15981 # flags to be left without arguments
15982 need_version=unknown
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15988 shlibpath_var=LIBPATH
15990 # AIX 3 has no versioning support, so we append a major version to the name.
15991 soname_spec='${libname}${release}${shared_ext}$major'
15998 hardcode_into_libs=yes
15999 if test "$host_cpu" = ia64; then
16000 # AIX 5 supports IA64
16001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16002 shlibpath_var=LD_LIBRARY_PATH
16004 # With GCC up to 2.95.x, collect2 would create an import file
16005 # for dependence libraries. The import file would start with
16006 # the line `#! .'. This would cause the generated library to
16007 # depend on `.', always an invalid library. This was fixed in
16008 # development snapshots of GCC prior to 3.0.
16010 aix4 | aix4.[01] | aix4.[01].*)
16011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16016 can_build_shared=no
16020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16021 # soname into executable. Probably we can add versioning support to
16022 # collect2, so additional links can be useful in future.
16023 if test "$aix_use_runtimelinking" = yes; then
16024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16025 # instead of lib<name>.a to let people know that these are not
16026 # typical AIX shared libraries.
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 # We preserve .a as extension for shared libraries through AIX4.2
16030 # and later when we are not doing run time linking.
16031 library_names_spec='${libname}${release}.a $libname.a'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16034 shlibpath_var=LIBPATH
16039 library_names_spec='$libname.ixlibrary $libname.a'
16040 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16041 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'
16045 library_names_spec='${libname}${shared_ext}'
16046 dynamic_linker="$host_os ld.so"
16047 shlibpath_var=LIBRARY_PATH
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16059 # the default ld.so.conf also contains /usr/contrib/lib and
16060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16061 # libtool to hard-code these into programs
16064 cygwin* | mingw* | pw32*)
16065 version_type=windows
16070 case $GCC,$host_os in
16071 yes,cygwin* | yes,mingw* | yes,pw32*)
16072 library_names_spec='$libname.dll.a'
16073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16074 postinstall_cmds='base_file=`basename \${file}`~
16075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16076 dldir=$destdir/`dirname \$dlpath`~
16077 test -d \$dldir || mkdir -p \$dldir~
16078 $install_prog $dir/$dlname \$dldir/$dlname'
16079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16080 dlpath=$dir/\$dldll~
16082 shlibpath_overrides_runpath=yes
16086 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16087 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16088 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16091 # MinGW DLLs use traditional 'lib' prefix
16092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16094 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16095 # It is most probably a Windows format PATH printed by
16096 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16097 # path with ; separators, and with drive letters. We can handle the
16098 # drive letters (cygwin fileutils understands them), so leave them,
16099 # especially as we might pass files found there to a mingw objdump,
16100 # which wouldn't understand a cygwinified path. Ahh.
16101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16107 # pw32 DLLs use 'pw' prefix rather than 'lib'
16108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16114 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16117 dynamic_linker='Win32 ld.exe'
16118 # FIXME: first we should search . and the directory the executable is in
16122 darwin* | rhapsody*)
16123 dynamic_linker="$host_os dyld"
16124 version_type=darwin
16127 # FIXME: Relying on posixy $() will cause problems for
16128 # cross-compilation, but unfortunately the echo tests do not
16129 # yet detect zsh echo's removal of \ escapes.
16130 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16131 soname_spec='${libname}${release}${major}$shared_ext'
16132 shlibpath_overrides_runpath=yes
16133 shlibpath_var=DYLD_LIBRARY_PATH
16134 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16135 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16136 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16137 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"`
16139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 shlibpath_var=LD_LIBRARY_PATH
16156 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16157 version_type=freebsd-$objformat
16158 case $version_type in
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16169 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16174 freebsd3.01* | freebsdelf3.01*)
16175 shlibpath_overrides_runpath=yes
16176 hardcode_into_libs=yes
16179 shlibpath_overrides_runpath=no
16180 hardcode_into_libs=yes
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16192 hardcode_into_libs=yes
16195 hpux9* | hpux10* | hpux11*)
16196 # Give a soname corresponding to the major version so that dld.sl refuses to
16197 # link against other versions.
16201 case "$host_cpu" in
16204 hardcode_into_libs=yes
16205 dynamic_linker="$host_os dld.so"
16206 shlibpath_var=LD_LIBRARY_PATH
16207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 if test "X$HPUX_IA64_MODE" = X32; then
16211 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16213 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16219 hardcode_into_libs=yes
16220 dynamic_linker="$host_os dld.sl"
16221 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16230 dynamic_linker="$host_os dld.sl"
16231 shlibpath_var=SHLIB_PATH
16232 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16237 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16238 postinstall_cmds='chmod 555 $lib'
16241 irix5* | irix6* | nonstopux*)
16243 nonstopux*) version_type=nonstopux ;;
16245 if test "$lt_cv_prog_gnu_ld" = yes; then
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16256 irix5* | nonstopux*)
16257 libsuff= shlibsuff=
16260 case $LD in # libtool.m4 will add one of these switches to LD
16261 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16262 libsuff= shlibsuff= libmagic=32-bit;;
16263 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16264 libsuff=32 shlibsuff=N32 libmagic=N32;;
16265 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16266 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16267 *) libsuff= shlibsuff= libmagic=never-match;;
16271 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16272 shlibpath_overrides_runpath=no
16273 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16274 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16275 hardcode_into_libs=yes
16278 # No shared lib support for Linux oldld, aout, or coff.
16279 linux*oldld* | linux*aout* | linux*coff*)
16283 # This must be Linux ELF.
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 shlibpath_overrides_runpath=no
16293 # This implies no fast_install, which is unacceptable.
16294 # Some rework will be needed to allow for fast_install
16295 # before this can be enabled.
16296 hardcode_into_libs=yes
16298 # We used to test for /lib/ld.so.1 and disable shared libraries on
16299 # powerpc, because MkLinux only supported shared libraries with the
16300 # GNU dynamic linker. Since this was broken with cross compilers,
16301 # most powerpc-linux boxes support dynamic linking these days and
16302 # people can always --disable-shared, the test was removed, and we
16303 # assume the GNU/Linux dynamic linker is in use.
16304 dynamic_linker='GNU/Linux ld.so'
16311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16314 dynamic_linker='NetBSD (a.out) ld.so'
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 dynamic_linker='NetBSD ld.elf_so'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16322 hardcode_into_libs=yes
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16351 openbsd2.[89] | openbsd2.[89].*)
16352 shlibpath_overrides_runpath=no
16355 shlibpath_overrides_runpath=yes
16359 shlibpath_overrides_runpath=yes
16364 libname_spec='$name'
16367 library_names_spec='$libname${shared_ext} $libname.a'
16368 dynamic_linker='OS/2 ld.exe'
16369 shlibpath_var=LIBPATH
16372 osf3* | osf4* | osf5*)
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 shlibpath_var=LD_LIBRARY_PATH
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=yes
16398 hardcode_into_libs=yes
16399 # ldd complains unless libraries are executable
16400 postinstall_cmds='chmod +x $lib'
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16409 if test "$with_gnu_ld" = yes; then
16415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 case $host_vendor in
16422 shlibpath_overrides_runpath=no
16424 export_dynamic_flag_spec='${wl}-Blargedynsym'
16425 runpath_var=LD_RUN_PATH
16433 shlibpath_overrides_runpath=no
16434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16440 if test -d /usr/nec ;then
16442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16443 soname_spec='$libname${shared_ext}.$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16460 echo "${ECHO_T}$dynamic_linker" >&6
16461 test "$dynamic_linker" = no && can_build_shared=no
16463 if test "x$enable_dlopen" != xyes; then
16464 enable_dlopen=unknown
16465 enable_dlopen_self=unknown
16466 enable_dlopen_self_static=unknown
16473 lt_cv_dlopen="load_add_on"
16475 lt_cv_dlopen_self=yes
16479 lt_cv_dlopen="LoadLibrary"
16484 lt_cv_dlopen="dlopen"
16489 # if libdl is installed we need to link against it
16490 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16491 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 ac_check_lib_save_LIBS=$LIBS
16497 cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16505 /* Override any gcc2 internal prototype to avoid an error. */
16509 /* We use char because int might match the return type of a gcc2
16510 builtin and then its argument prototype would still apply. */
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16522 (eval $ac_link) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_lib_dl_dlopen=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_lib_dl_dlopen=no
16539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16540 LIBS=$ac_check_lib_save_LIBS
16542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16544 if test $ac_cv_lib_dl_dlopen = yes; then
16545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16548 lt_cv_dlopen="dyld"
16550 lt_cv_dlopen_self=yes
16557 echo "$as_me:$LINENO: checking for shl_load" >&5
16558 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16559 if test "${ac_cv_func_shl_load+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 cat >conftest.$ac_ext <<_ACEOF
16563 #line $LINENO "configure"
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 /* System header to define __stub macros and hopefully few prototypes,
16570 which can conflict with char shl_load (); below.
16571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16572 <limits.h> exists even on freestanding compilers. */
16574 # include <limits.h>
16576 # include <assert.h>
16578 /* Override any gcc2 internal prototype to avoid an error. */
16583 /* We use char because int might match the return type of a gcc2
16584 builtin and then its argument prototype would still apply. */
16586 /* The GNU C library defines this for functions which it implements
16587 to always fail with ENOSYS. Some functions are actually named
16588 something starting with __ and the normal name is an alias. */
16589 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16592 char (*f) () = shl_load;
16601 return f != shl_load;
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608 (eval $ac_link) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
16612 { ac_try='test -s conftest$ac_exeext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_func_shl_load=yes
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_cv_func_shl_load=no
16625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16627 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16628 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16629 if test $ac_cv_func_shl_load = yes; then
16630 lt_cv_dlopen="shl_load"
16632 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16633 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16634 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 ac_check_lib_save_LIBS=$LIBS
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16647 /* Override any gcc2 internal prototype to avoid an error. */
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -s conftest$ac_exeext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_cv_lib_dld_shl_load=yes
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_cv_lib_dld_shl_load=no
16681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16682 LIBS=$ac_check_lib_save_LIBS
16684 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16685 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16686 if test $ac_cv_lib_dld_shl_load = yes; then
16687 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16689 echo "$as_me:$LINENO: checking for dlopen" >&5
16690 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16691 if test "${ac_cv_func_dlopen+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 cat >conftest.$ac_ext <<_ACEOF
16695 #line $LINENO "configure"
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* System header to define __stub macros and hopefully few prototypes,
16702 which can conflict with char dlopen (); below.
16703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16704 <limits.h> exists even on freestanding compilers. */
16706 # include <limits.h>
16708 # include <assert.h>
16710 /* Override any gcc2 internal prototype to avoid an error. */
16715 /* We use char because int might match the return type of a gcc2
16716 builtin and then its argument prototype would still apply. */
16718 /* The GNU C library defines this for functions which it implements
16719 to always fail with ENOSYS. Some functions are actually named
16720 something starting with __ and the normal name is an alias. */
16721 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16724 char (*f) () = dlopen;
16733 return f != dlopen;
16738 rm -f conftest.$ac_objext conftest$ac_exeext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16740 (eval $ac_link) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -s conftest$ac_exeext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_cv_func_dlopen=yes
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_cv_func_dlopen=no
16757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16761 if test $ac_cv_func_dlopen = yes; then
16762 lt_cv_dlopen="dlopen"
16764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 ac_check_lib_save_LIBS=$LIBS
16771 cat >conftest.$ac_ext <<_ACEOF
16772 #line $LINENO "configure"
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16779 /* Override any gcc2 internal prototype to avoid an error. */
16783 /* We use char because int might match the return type of a gcc2
16784 builtin and then its argument prototype would still apply. */
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796 (eval $ac_link) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
16800 { ac_try='test -s conftest$ac_exeext'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 ac_cv_lib_dl_dlopen=yes
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 ac_cv_lib_dl_dlopen=no
16813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16814 LIBS=$ac_check_lib_save_LIBS
16816 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16817 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16818 if test $ac_cv_lib_dl_dlopen = yes; then
16819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16821 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16822 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16823 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lsvld $LIBS"
16828 cat >conftest.$ac_ext <<_ACEOF
16829 #line $LINENO "configure"
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16836 /* Override any gcc2 internal prototype to avoid an error. */
16840 /* We use char because int might match the return type of a gcc2
16841 builtin and then its argument prototype would still apply. */
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -s conftest$ac_exeext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_lib_svld_dlopen=yes
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_cv_lib_svld_dlopen=no
16870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16871 LIBS=$ac_check_lib_save_LIBS
16873 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16874 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16875 if test $ac_cv_lib_svld_dlopen = yes; then
16876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16878 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16879 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16880 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 ac_check_lib_save_LIBS=$LIBS
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16893 /* Override any gcc2 internal prototype to avoid an error. */
16897 /* We use char because int might match the return type of a gcc2
16898 builtin and then its argument prototype would still apply. */
16908 rm -f conftest.$ac_objext conftest$ac_exeext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910 (eval $ac_link) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_lib_dld_dld_link=yes
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_dld_dld_link=no
16927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16931 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16932 if test $ac_cv_lib_dld_dld_link = yes; then
16933 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16954 if test "x$lt_cv_dlopen" != xno; then
16960 case $lt_cv_dlopen in
16962 save_CPPFLAGS="$CPPFLAGS"
16963 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16965 save_LDFLAGS="$LDFLAGS"
16966 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16969 LIBS="$lt_cv_dlopen_libs $LIBS"
16971 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16972 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16973 if test "${lt_cv_dlopen_self+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 if test "$cross_compiling" = yes; then :
16977 lt_cv_dlopen_self=cross
16979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16980 lt_status=$lt_dlunknown
16981 cat > conftest.$ac_ext <<EOF
16982 #line 16982 "configure"
16983 #include "confdefs.h"
16992 # define LT_DLGLOBAL RTLD_GLOBAL
16995 # define LT_DLGLOBAL DL_GLOBAL
16997 # define LT_DLGLOBAL 0
17001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17002 find out it does not work in some platform. */
17003 #ifndef LT_DLLAZY_OR_NOW
17005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17008 # define LT_DLLAZY_OR_NOW DL_LAZY
17011 # define LT_DLLAZY_OR_NOW RTLD_NOW
17014 # define LT_DLLAZY_OR_NOW DL_NOW
17016 # define LT_DLLAZY_OR_NOW 0
17024 extern "C" void exit (int);
17027 void fnord() { int i=42;}
17030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17031 int status = $lt_dlunknown;
17035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17036 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17037 /* dlclose (self); */
17043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17044 (eval $ac_link) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17048 (./conftest; exit; ) 2>/dev/null
17050 case x$lt_status in
17051 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17052 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17053 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17056 # compilation failed
17057 lt_cv_dlopen_self=no
17064 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17065 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17067 if test "x$lt_cv_dlopen_self" = xyes; then
17068 LDFLAGS="$LDFLAGS $link_static_flag"
17069 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17070 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17071 if test "${lt_cv_dlopen_self_static+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 if test "$cross_compiling" = yes; then :
17075 lt_cv_dlopen_self_static=cross
17077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17078 lt_status=$lt_dlunknown
17079 cat > conftest.$ac_ext <<EOF
17080 #line 17080 "configure"
17081 #include "confdefs.h"
17090 # define LT_DLGLOBAL RTLD_GLOBAL
17093 # define LT_DLGLOBAL DL_GLOBAL
17095 # define LT_DLGLOBAL 0
17099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17100 find out it does not work in some platform. */
17101 #ifndef LT_DLLAZY_OR_NOW
17103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17106 # define LT_DLLAZY_OR_NOW DL_LAZY
17109 # define LT_DLLAZY_OR_NOW RTLD_NOW
17112 # define LT_DLLAZY_OR_NOW DL_NOW
17114 # define LT_DLLAZY_OR_NOW 0
17122 extern "C" void exit (int);
17125 void fnord() { int i=42;}
17128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17129 int status = $lt_dlunknown;
17133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17134 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17135 /* dlclose (self); */
17141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17142 (eval $ac_link) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17146 (./conftest; exit; ) 2>/dev/null
17148 case x$lt_status in
17149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17151 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17154 # compilation failed
17155 lt_cv_dlopen_self_static=no
17162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17166 CPPFLAGS="$save_CPPFLAGS"
17167 LDFLAGS="$save_LDFLAGS"
17172 case $lt_cv_dlopen_self in
17173 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17174 *) enable_dlopen_self=unknown ;;
17177 case $lt_cv_dlopen_self_static in
17178 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17179 *) enable_dlopen_self_static=unknown ;;
17184 # The else clause should only fire when bootstrapping the
17185 # libtool distribution, otherwise you forgot to ship ltmain.sh
17186 # with your package, and you will get complaints that there are
17187 # no rules to generate ltmain.sh.
17188 if test -f "$ltmain"; then
17189 # See if we are running on zsh, and set the options which allow our commands through
17190 # without removal of \ escapes.
17191 if test -n "${ZSH_VERSION+set}" ; then
17192 setopt NO_GLOB_SUBST
17194 # Now quote all the things that may contain metacharacters while being
17195 # careful not to overquote the AC_SUBSTed values. We take copies of the
17196 # variables and quote the copies for generation of the libtool script.
17197 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17198 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17199 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17200 deplibs_check_method reload_flag reload_cmds need_locks \
17201 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17202 lt_cv_sys_global_symbol_to_c_name_address \
17203 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17204 old_postinstall_cmds old_postuninstall_cmds \
17208 lt_prog_compiler_wl_GCJ \
17209 lt_prog_compiler_pic_GCJ \
17210 lt_prog_compiler_static_GCJ \
17211 lt_prog_compiler_no_builtin_flag_GCJ \
17212 export_dynamic_flag_spec_GCJ \
17213 thread_safe_flag_spec_GCJ \
17214 whole_archive_flag_spec_GCJ \
17215 enable_shared_with_static_runtimes_GCJ \
17216 old_archive_cmds_GCJ \
17217 old_archive_from_new_cmds_GCJ \
17218 predep_objects_GCJ \
17219 postdep_objects_GCJ \
17222 compiler_lib_search_path_GCJ \
17224 archive_expsym_cmds_GCJ \
17225 postinstall_cmds_GCJ \
17226 postuninstall_cmds_GCJ \
17227 old_archive_from_expsyms_cmds_GCJ \
17228 allow_undefined_flag_GCJ \
17229 no_undefined_flag_GCJ \
17230 export_symbols_cmds_GCJ \
17231 hardcode_libdir_flag_spec_GCJ \
17232 hardcode_libdir_flag_spec_ld_GCJ \
17233 hardcode_libdir_separator_GCJ \
17234 hardcode_automatic_GCJ \
17236 module_expsym_cmds_GCJ \
17237 lt_cv_prog_compiler_c_o_GCJ \
17238 exclude_expsyms_GCJ \
17239 include_expsyms_GCJ; do
17242 old_archive_cmds_GCJ | \
17243 old_archive_from_new_cmds_GCJ | \
17244 archive_cmds_GCJ | \
17245 archive_expsym_cmds_GCJ | \
17246 module_cmds_GCJ | \
17247 module_expsym_cmds_GCJ | \
17248 old_archive_from_expsyms_cmds_GCJ | \
17249 export_symbols_cmds_GCJ | \
17250 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17251 postinstall_cmds | postuninstall_cmds | \
17252 old_postinstall_cmds | old_postuninstall_cmds | \
17253 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17254 # Double-quote double-evaled strings.
17255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17264 *'\$0 --fallback-echo"')
17265 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17271 cat <<__EOF__ >> "$cfgfile"
17272 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17276 # Shell to use when invoking shell scripts.
17279 # Whether or not to build shared libraries.
17280 build_libtool_libs=$enable_shared
17282 # Whether or not to build static libraries.
17283 build_old_libs=$enable_static
17285 # Whether or not to add -lc for building shared libraries.
17286 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17288 # Whether or not to disallow shared libs when runtime libs are static
17289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17291 # Whether or not to optimize for fast installation.
17292 fast_install=$enable_fast_install
17295 host_alias=$host_alias
17298 # An echo program that does not interpret backslashes.
17303 AR_FLAGS=$lt_AR_FLAGS
17308 # A language-specific compiler.
17309 CC=$lt_compiler_GCJ
17311 # Is the compiler the GNU C compiler?
17317 # The linker used to build libraries.
17320 # Whether we need hard or soft links.
17323 # A BSD-compatible nm program.
17326 # A symbol stripping program
17329 # Used to examine libraries when file_magic_cmd begins "file"
17330 MAGIC_CMD=$MAGIC_CMD
17332 # Used on cygwin: DLL creation program.
17335 # Used on cygwin: object dumper.
17338 # Used on cygwin: assembler.
17341 # The name of the directory that contains temporary libtool files.
17344 # How to create reloadable object files.
17345 reload_flag=$lt_reload_flag
17346 reload_cmds=$lt_reload_cmds
17348 # How to pass a linker flag through the compiler.
17349 wl=$lt_lt_prog_compiler_wl_GCJ
17351 # Object file suffix (normally "o").
17352 objext="$ac_objext"
17354 # Old archive suffix (normally "a").
17357 # Shared library suffix (normally ".so").
17360 # Executable file suffix (normally "").
17363 # Additional compiler flags for building library objects.
17364 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17367 # What is the maximum length of a command?
17368 max_cmd_len=$lt_cv_sys_max_cmd_len
17370 # Does compiler simultaneously support -c and -o options?
17371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17373 # Must we lock files when doing compilation ?
17374 need_locks=$lt_need_locks
17376 # Do we need the lib prefix for modules?
17377 need_lib_prefix=$need_lib_prefix
17379 # Do we need a version for libraries?
17380 need_version=$need_version
17382 # Whether dlopen is supported.
17383 dlopen_support=$enable_dlopen
17385 # Whether dlopen of programs is supported.
17386 dlopen_self=$enable_dlopen_self
17388 # Whether dlopen of statically linked programs is supported.
17389 dlopen_self_static=$enable_dlopen_self_static
17391 # Compiler flag to prevent dynamic linking.
17392 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17394 # Compiler flag to turn off builtin functions.
17395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17397 # Compiler flag to allow reflexive dlopens.
17398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17400 # Compiler flag to generate shared objects directly from archives.
17401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17403 # Compiler flag to generate thread-safe objects.
17404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17406 # Library versioning type.
17407 version_type=$version_type
17409 # Format of library name prefix.
17410 libname_spec=$lt_libname_spec
17412 # List of archive names. First name is the real one, the rest are links.
17413 # The last name is the one that the linker finds with -lNAME.
17414 library_names_spec=$lt_library_names_spec
17416 # The coded name of the library, if different from the real name.
17417 soname_spec=$lt_soname_spec
17419 # Commands used to build and install an old-style archive.
17421 old_archive_cmds=$lt_old_archive_cmds_GCJ
17422 old_postinstall_cmds=$lt_old_postinstall_cmds
17423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17425 # Create an old-style archive from a shared archive.
17426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17428 # Create a temporary old-style archive to link instead of a shared archive.
17429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17431 # Commands used to build and install a shared archive.
17432 archive_cmds=$lt_archive_cmds_GCJ
17433 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17434 postinstall_cmds=$lt_postinstall_cmds
17435 postuninstall_cmds=$lt_postuninstall_cmds
17437 # Commands used to build a loadable module (assumed same as above if empty)
17438 module_cmds=$lt_module_cmds_GCJ
17439 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17441 # Commands to strip libraries.
17442 old_striplib=$lt_old_striplib
17443 striplib=$lt_striplib
17445 # Dependencies to place before the objects being linked to create a
17447 predep_objects=$lt_predep_objects_GCJ
17449 # Dependencies to place after the objects being linked to create a
17451 postdep_objects=$lt_postdep_objects_GCJ
17453 # Dependencies to place before the objects being linked to create a
17455 predeps=$lt_predeps_GCJ
17457 # Dependencies to place after the objects being linked to create a
17459 postdeps=$lt_postdeps_GCJ
17461 # The library search path used internally by the compiler when linking
17462 # a shared library.
17463 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17465 # Method to check whether dependent libraries are shared objects.
17466 deplibs_check_method=$lt_deplibs_check_method
17468 # Command to use when deplibs_check_method == file_magic.
17469 file_magic_cmd=$lt_file_magic_cmd
17471 # Flag that allows shared libraries with undefined symbols to be built.
17472 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17474 # Flag that forces no undefined symbols.
17475 no_undefined_flag=$lt_no_undefined_flag_GCJ
17477 # Commands used to finish a libtool library installation in a directory.
17478 finish_cmds=$lt_finish_cmds
17480 # Same as above, but a single script fragment to be evaled but not shown.
17481 finish_eval=$lt_finish_eval
17483 # Take the output of nm and produce a listing of raw symbols and C names.
17484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17486 # Transform the output of nm in a proper C declaration
17487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17489 # Transform the output of nm in a C name address pair
17490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17492 # This is the shared library runtime path variable.
17493 runpath_var=$runpath_var
17495 # This is the shared library path variable.
17496 shlibpath_var=$shlibpath_var
17498 # Is shlibpath searched before the hard-coded library search path?
17499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17501 # How to hardcode a shared library path into an executable.
17502 hardcode_action=$hardcode_action_GCJ
17504 # Whether we should hardcode library paths into libraries.
17505 hardcode_into_libs=$hardcode_into_libs
17507 # Flag to hardcode \$libdir into a binary during linking.
17508 # This must work even if \$libdir does not exist.
17509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17511 # If ld is used when linking, flag to hardcode \$libdir into
17512 # a binary during linking. This must work even if \$libdir does
17514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17516 # Whether we need a single -rpath flag with a separated argument.
17517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17520 # resulting binary.
17521 hardcode_direct=$hardcode_direct_GCJ
17523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17524 # resulting binary.
17525 hardcode_minus_L=$hardcode_minus_L_GCJ
17527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17528 # the resulting binary.
17529 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17531 # Set to yes if building a shared library automatically hardcodes DIR into the library
17532 # and all subsequent libraries and executables linked against it.
17533 hardcode_automatic=$hardcode_automatic_GCJ
17535 # Variables whose values should be saved in libtool wrapper scripts and
17536 # restored at relink time.
17537 variables_saved_for_relink="$variables_saved_for_relink"
17539 # Whether libtool must link a program against all its dependency libraries.
17540 link_all_deplibs=$link_all_deplibs_GCJ
17542 # Compile-time system search path for libraries
17543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17545 # Run-time system search path for libraries
17546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17548 # Fix the shell variable \$srcfile for the compiler.
17549 fix_srcfile_path="$fix_srcfile_path_GCJ"
17551 # Set to yes if exported symbols are required.
17552 always_export_symbols=$always_export_symbols_GCJ
17554 # The commands to list exported symbols.
17555 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17557 # The commands to extract the exported symbol list from a shared archive.
17558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17560 # Symbols that should not be listed in the preloaded symbols.
17561 exclude_expsyms=$lt_exclude_expsyms_GCJ
17563 # Symbols that must always be exported.
17564 include_expsyms=$lt_include_expsyms_GCJ
17566 # ### END LIBTOOL TAG CONFIG: $tagname
17572 # If there is no Makefile yet, we rely on a make rule to execute
17573 # `config.status --recheck' to rerun these tests and create the
17574 # libtool script then.
17575 test -f Makefile && make "$ltmain"
17580 ac_cpp='$CPP $CPPFLAGS'
17581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596 # Source file extension for RC test sources.
17599 # Object file extension for compiled RC test sources.
17603 # Code to be used in simple compile tests
17604 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17606 # Code to be used in simple link tests
17607 lt_simple_link_test_code="$lt_simple_compile_test_code"
17609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17611 # If no C compiler was specified, use CC.
17614 # Allow CC to be a program name with arguments.
17618 # Allow CC to be a program name with arguments.
17623 lt_cv_prog_compiler_c_o_RC=yes
17625 # The else clause should only fire when bootstrapping the
17626 # libtool distribution, otherwise you forgot to ship ltmain.sh
17627 # with your package, and you will get complaints that there are
17628 # no rules to generate ltmain.sh.
17629 if test -f "$ltmain"; then
17630 # See if we are running on zsh, and set the options which allow our commands through
17631 # without removal of \ escapes.
17632 if test -n "${ZSH_VERSION+set}" ; then
17633 setopt NO_GLOB_SUBST
17635 # Now quote all the things that may contain metacharacters while being
17636 # careful not to overquote the AC_SUBSTed values. We take copies of the
17637 # variables and quote the copies for generation of the libtool script.
17638 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17641 deplibs_check_method reload_flag reload_cmds need_locks \
17642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17643 lt_cv_sys_global_symbol_to_c_name_address \
17644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17645 old_postinstall_cmds old_postuninstall_cmds \
17649 lt_prog_compiler_wl_RC \
17650 lt_prog_compiler_pic_RC \
17651 lt_prog_compiler_static_RC \
17652 lt_prog_compiler_no_builtin_flag_RC \
17653 export_dynamic_flag_spec_RC \
17654 thread_safe_flag_spec_RC \
17655 whole_archive_flag_spec_RC \
17656 enable_shared_with_static_runtimes_RC \
17657 old_archive_cmds_RC \
17658 old_archive_from_new_cmds_RC \
17659 predep_objects_RC \
17660 postdep_objects_RC \
17663 compiler_lib_search_path_RC \
17665 archive_expsym_cmds_RC \
17666 postinstall_cmds_RC \
17667 postuninstall_cmds_RC \
17668 old_archive_from_expsyms_cmds_RC \
17669 allow_undefined_flag_RC \
17670 no_undefined_flag_RC \
17671 export_symbols_cmds_RC \
17672 hardcode_libdir_flag_spec_RC \
17673 hardcode_libdir_flag_spec_ld_RC \
17674 hardcode_libdir_separator_RC \
17675 hardcode_automatic_RC \
17677 module_expsym_cmds_RC \
17678 lt_cv_prog_compiler_c_o_RC \
17679 exclude_expsyms_RC \
17680 include_expsyms_RC; do
17683 old_archive_cmds_RC | \
17684 old_archive_from_new_cmds_RC | \
17685 archive_cmds_RC | \
17686 archive_expsym_cmds_RC | \
17688 module_expsym_cmds_RC | \
17689 old_archive_from_expsyms_cmds_RC | \
17690 export_symbols_cmds_RC | \
17691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17692 postinstall_cmds | postuninstall_cmds | \
17693 old_postinstall_cmds | old_postuninstall_cmds | \
17694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17695 # Double-quote double-evaled strings.
17696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17705 *'\$0 --fallback-echo"')
17706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17712 cat <<__EOF__ >> "$cfgfile"
17713 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17717 # Shell to use when invoking shell scripts.
17720 # Whether or not to build shared libraries.
17721 build_libtool_libs=$enable_shared
17723 # Whether or not to build static libraries.
17724 build_old_libs=$enable_static
17726 # Whether or not to add -lc for building shared libraries.
17727 build_libtool_need_lc=$archive_cmds_need_lc_RC
17729 # Whether or not to disallow shared libs when runtime libs are static
17730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17732 # Whether or not to optimize for fast installation.
17733 fast_install=$enable_fast_install
17736 host_alias=$host_alias
17739 # An echo program that does not interpret backslashes.
17744 AR_FLAGS=$lt_AR_FLAGS
17749 # A language-specific compiler.
17752 # Is the compiler the GNU C compiler?
17758 # The linker used to build libraries.
17761 # Whether we need hard or soft links.
17764 # A BSD-compatible nm program.
17767 # A symbol stripping program
17770 # Used to examine libraries when file_magic_cmd begins "file"
17771 MAGIC_CMD=$MAGIC_CMD
17773 # Used on cygwin: DLL creation program.
17776 # Used on cygwin: object dumper.
17779 # Used on cygwin: assembler.
17782 # The name of the directory that contains temporary libtool files.
17785 # How to create reloadable object files.
17786 reload_flag=$lt_reload_flag
17787 reload_cmds=$lt_reload_cmds
17789 # How to pass a linker flag through the compiler.
17790 wl=$lt_lt_prog_compiler_wl_RC
17792 # Object file suffix (normally "o").
17793 objext="$ac_objext"
17795 # Old archive suffix (normally "a").
17798 # Shared library suffix (normally ".so").
17801 # Executable file suffix (normally "").
17804 # Additional compiler flags for building library objects.
17805 pic_flag=$lt_lt_prog_compiler_pic_RC
17808 # What is the maximum length of a command?
17809 max_cmd_len=$lt_cv_sys_max_cmd_len
17811 # Does compiler simultaneously support -c and -o options?
17812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17814 # Must we lock files when doing compilation ?
17815 need_locks=$lt_need_locks
17817 # Do we need the lib prefix for modules?
17818 need_lib_prefix=$need_lib_prefix
17820 # Do we need a version for libraries?
17821 need_version=$need_version
17823 # Whether dlopen is supported.
17824 dlopen_support=$enable_dlopen
17826 # Whether dlopen of programs is supported.
17827 dlopen_self=$enable_dlopen_self
17829 # Whether dlopen of statically linked programs is supported.
17830 dlopen_self_static=$enable_dlopen_self_static
17832 # Compiler flag to prevent dynamic linking.
17833 link_static_flag=$lt_lt_prog_compiler_static_RC
17835 # Compiler flag to turn off builtin functions.
17836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17838 # Compiler flag to allow reflexive dlopens.
17839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17841 # Compiler flag to generate shared objects directly from archives.
17842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17844 # Compiler flag to generate thread-safe objects.
17845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17847 # Library versioning type.
17848 version_type=$version_type
17850 # Format of library name prefix.
17851 libname_spec=$lt_libname_spec
17853 # List of archive names. First name is the real one, the rest are links.
17854 # The last name is the one that the linker finds with -lNAME.
17855 library_names_spec=$lt_library_names_spec
17857 # The coded name of the library, if different from the real name.
17858 soname_spec=$lt_soname_spec
17860 # Commands used to build and install an old-style archive.
17862 old_archive_cmds=$lt_old_archive_cmds_RC
17863 old_postinstall_cmds=$lt_old_postinstall_cmds
17864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17866 # Create an old-style archive from a shared archive.
17867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17869 # Create a temporary old-style archive to link instead of a shared archive.
17870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17872 # Commands used to build and install a shared archive.
17873 archive_cmds=$lt_archive_cmds_RC
17874 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17875 postinstall_cmds=$lt_postinstall_cmds
17876 postuninstall_cmds=$lt_postuninstall_cmds
17878 # Commands used to build a loadable module (assumed same as above if empty)
17879 module_cmds=$lt_module_cmds_RC
17880 module_expsym_cmds=$lt_module_expsym_cmds_RC
17882 # Commands to strip libraries.
17883 old_striplib=$lt_old_striplib
17884 striplib=$lt_striplib
17886 # Dependencies to place before the objects being linked to create a
17888 predep_objects=$lt_predep_objects_RC
17890 # Dependencies to place after the objects being linked to create a
17892 postdep_objects=$lt_postdep_objects_RC
17894 # Dependencies to place before the objects being linked to create a
17896 predeps=$lt_predeps_RC
17898 # Dependencies to place after the objects being linked to create a
17900 postdeps=$lt_postdeps_RC
17902 # The library search path used internally by the compiler when linking
17903 # a shared library.
17904 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17906 # Method to check whether dependent libraries are shared objects.
17907 deplibs_check_method=$lt_deplibs_check_method
17909 # Command to use when deplibs_check_method == file_magic.
17910 file_magic_cmd=$lt_file_magic_cmd
17912 # Flag that allows shared libraries with undefined symbols to be built.
17913 allow_undefined_flag=$lt_allow_undefined_flag_RC
17915 # Flag that forces no undefined symbols.
17916 no_undefined_flag=$lt_no_undefined_flag_RC
17918 # Commands used to finish a libtool library installation in a directory.
17919 finish_cmds=$lt_finish_cmds
17921 # Same as above, but a single script fragment to be evaled but not shown.
17922 finish_eval=$lt_finish_eval
17924 # Take the output of nm and produce a listing of raw symbols and C names.
17925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17927 # Transform the output of nm in a proper C declaration
17928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17930 # Transform the output of nm in a C name address pair
17931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17933 # This is the shared library runtime path variable.
17934 runpath_var=$runpath_var
17936 # This is the shared library path variable.
17937 shlibpath_var=$shlibpath_var
17939 # Is shlibpath searched before the hard-coded library search path?
17940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17942 # How to hardcode a shared library path into an executable.
17943 hardcode_action=$hardcode_action_RC
17945 # Whether we should hardcode library paths into libraries.
17946 hardcode_into_libs=$hardcode_into_libs
17948 # Flag to hardcode \$libdir into a binary during linking.
17949 # This must work even if \$libdir does not exist.
17950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17952 # If ld is used when linking, flag to hardcode \$libdir into
17953 # a binary during linking. This must work even if \$libdir does
17955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17957 # Whether we need a single -rpath flag with a separated argument.
17958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17961 # resulting binary.
17962 hardcode_direct=$hardcode_direct_RC
17964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17965 # resulting binary.
17966 hardcode_minus_L=$hardcode_minus_L_RC
17968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17969 # the resulting binary.
17970 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17972 # Set to yes if building a shared library automatically hardcodes DIR into the library
17973 # and all subsequent libraries and executables linked against it.
17974 hardcode_automatic=$hardcode_automatic_RC
17976 # Variables whose values should be saved in libtool wrapper scripts and
17977 # restored at relink time.
17978 variables_saved_for_relink="$variables_saved_for_relink"
17980 # Whether libtool must link a program against all its dependency libraries.
17981 link_all_deplibs=$link_all_deplibs_RC
17983 # Compile-time system search path for libraries
17984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17986 # Run-time system search path for libraries
17987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17989 # Fix the shell variable \$srcfile for the compiler.
17990 fix_srcfile_path="$fix_srcfile_path_RC"
17992 # Set to yes if exported symbols are required.
17993 always_export_symbols=$always_export_symbols_RC
17995 # The commands to list exported symbols.
17996 export_symbols_cmds=$lt_export_symbols_cmds_RC
17998 # The commands to extract the exported symbol list from a shared archive.
17999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18001 # Symbols that should not be listed in the preloaded symbols.
18002 exclude_expsyms=$lt_exclude_expsyms_RC
18004 # Symbols that must always be exported.
18005 include_expsyms=$lt_include_expsyms_RC
18007 # ### END LIBTOOL TAG CONFIG: $tagname
18013 # If there is no Makefile yet, we rely on a make rule to execute
18014 # `config.status --recheck' to rerun these tests and create the
18015 # libtool script then.
18016 test -f Makefile && make "$ltmain"
18021 ac_cpp='$CPP $CPPFLAGS'
18022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18031 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18032 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18033 { (exit 1); exit 1; }; }
18037 # Append the new tag name to the list of available tags.
18038 if test -n "$tagname" ; then
18039 available_tags="$available_tags $tagname"
18045 # Now substitute the updated list of available tags.
18046 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18047 mv "${ofile}T" "$ofile"
18051 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18052 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18053 { (exit 1); exit 1; }; }
18059 # This can be used to rebuild libtool when needed
18060 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18062 # Always use our own libtool.
18063 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18065 # Prevent multiple expansion
18087 # Extract the first word of "dot", so it can be a program name with args.
18088 set dummy dot; ac_word=$2
18089 echo "$as_me:$LINENO: checking for $ac_word" >&5
18090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18091 if test "${ac_cv_path_DOT+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18100 for as_dir in $PATH
18103 test -z "$as_dir" && as_dir=.
18104 for ac_exec_ext in '' $ac_executable_extensions; do
18105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18106 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18113 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18117 DOT=$ac_cv_path_DOT
18119 if test -n "$DOT"; then
18120 echo "$as_me:$LINENO: result: $DOT" >&5
18121 echo "${ECHO_T}$DOT" >&6
18123 echo "$as_me:$LINENO: result: no" >&5
18124 echo "${ECHO_T}no" >&6
18127 # Extract the first word of "etags", so it can be a program name with args.
18128 set dummy etags; ac_word=$2
18129 echo "$as_me:$LINENO: checking for $ac_word" >&5
18130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18131 if test "${ac_cv_path_ETAGS+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140 for as_dir in $PATH
18143 test -z "$as_dir" && as_dir=.
18144 for ac_exec_ext in '' $ac_executable_extensions; do
18145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18146 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18153 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18157 ETAGS=$ac_cv_path_ETAGS
18159 if test -n "$ETAGS"; then
18160 echo "$as_me:$LINENO: result: $ETAGS" >&5
18161 echo "${ECHO_T}$ETAGS" >&6
18163 echo "$as_me:$LINENO: result: no" >&5
18164 echo "${ECHO_T}no" >&6
18167 etags_version=`$ETAGS --version 2>&1`
18168 case "$etags_version" in
18169 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18170 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18171 *) ETAGSFLAGS="" ;;
18173 ETAGSFLAGS=$ETAGSFLAGS
18175 # Extract the first word of "python", so it can be a program name with args.
18176 set dummy python; ac_word=$2
18177 echo "$as_me:$LINENO: checking for $ac_word" >&5
18178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18179 if test "${ac_cv_path_PYTHON+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18188 for as_dir in $PATH
18191 test -z "$as_dir" && as_dir=.
18192 for ac_exec_ext in '' $ac_executable_extensions; do
18193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18194 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18201 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18205 PYTHON=$ac_cv_path_PYTHON
18207 if test -n "$PYTHON"; then
18208 echo "$as_me:$LINENO: result: $PYTHON" >&5
18209 echo "${ECHO_T}$PYTHON" >&6
18211 echo "$as_me:$LINENO: result: no" >&5
18212 echo "${ECHO_T}no" >&6
18215 if test "$PYTHON" = "false"
18217 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18218 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18220 # Extract the first word of "qmtest", so it can be a program name with args.
18221 set dummy qmtest; ac_word=$2
18222 echo "$as_me:$LINENO: checking for $ac_word" >&5
18223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18224 if test "${ac_cv_path_QMTEST+set}" = set; then
18225 echo $ECHO_N "(cached) $ECHO_C" >&6
18229 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18233 for as_dir in $PATH
18236 test -z "$as_dir" && as_dir=.
18237 for ac_exec_ext in '' $ac_executable_extensions; do
18238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18239 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18246 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18250 QMTEST=$ac_cv_path_QMTEST
18252 if test -n "$QMTEST"; then
18253 echo "$as_me:$LINENO: result: $QMTEST" >&5
18254 echo "${ECHO_T}$QMTEST" >&6
18256 echo "$as_me:$LINENO: result: no" >&5
18257 echo "${ECHO_T}no" >&6
18260 if test "$QMTEST" = "false"
18262 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18263 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18266 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18267 pymajor=`echo $pyversion | cut -d. -f1`
18268 pyminor=`echo $pyversion | cut -d. -f2`
18270 if test "$pymajor" -ge "2"
18272 if test "$pymajor" -eq "2"
18274 if test "$pyminor" -lt "2"
18276 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18277 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18282 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18288 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18289 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18290 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 ac_check_lib_save_LIBS=$LIBS
18295 cat >conftest.$ac_ext <<_ACEOF
18296 #line $LINENO "configure"
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 /* Override any gcc2 internal prototype to avoid an error. */
18307 /* We use char because int might match the return type of a gcc2
18308 builtin and then its argument prototype would still apply. */
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -s conftest$ac_exeext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_cv_lib_elf_elf_begin=yes
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 ac_cv_lib_elf_elf_begin=no
18337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18340 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18341 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18342 if test $ac_cv_lib_elf_elf_begin = yes; then
18343 cat >>confdefs.h <<_ACEOF
18344 #define HAVE_LIBELF 1
18352 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18353 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18354 if test "${ac_cv_search_dlopen+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 ac_func_search_save_LIBS=$LIBS
18358 ac_cv_search_dlopen=no
18359 cat >conftest.$ac_ext <<_ACEOF
18360 #line $LINENO "configure"
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18367 /* Override any gcc2 internal prototype to avoid an error. */
18371 /* We use char because int might match the return type of a gcc2
18372 builtin and then its argument prototype would still apply. */
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384 (eval $ac_link) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -s conftest$ac_exeext'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_search_dlopen="none required"
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18401 if test "$ac_cv_search_dlopen" = no; then
18402 for ac_lib in dl; do
18403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18404 cat >conftest.$ac_ext <<_ACEOF
18405 #line $LINENO "configure"
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any gcc2 internal prototype to avoid an error. */
18416 /* We use char because int might match the return type of a gcc2
18417 builtin and then its argument prototype would still apply. */
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429 (eval $ac_link) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try='test -s conftest$ac_exeext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_search_dlopen="-l$ac_lib"
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18449 LIBS=$ac_func_search_save_LIBS
18451 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18452 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18453 if test "$ac_cv_search_dlopen" != no; then
18454 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_DLOPEN 1
18461 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18462 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18466 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18467 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18468 if test "${ac_cv_search_mallinfo+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18471 ac_func_search_save_LIBS=$LIBS
18472 ac_cv_search_mallinfo=no
18473 cat >conftest.$ac_ext <<_ACEOF
18474 #line $LINENO "configure"
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18481 /* Override any gcc2 internal prototype to avoid an error. */
18485 /* We use char because int might match the return type of a gcc2
18486 builtin and then its argument prototype would still apply. */
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18498 (eval $ac_link) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try='test -s conftest$ac_exeext'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 ac_cv_search_mallinfo="none required"
18510 echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18515 if test "$ac_cv_search_mallinfo" = no; then
18516 for ac_lib in malloc; do
18517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18518 cat >conftest.$ac_ext <<_ACEOF
18519 #line $LINENO "configure"
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18526 /* Override any gcc2 internal prototype to avoid an error. */
18530 /* We use char because int might match the return type of a gcc2
18531 builtin and then its argument prototype would still apply. */
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543 (eval $ac_link) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_search_mallinfo="-l$ac_lib"
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_func_search_save_LIBS
18565 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18566 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18567 if test "$ac_cv_search_mallinfo" != no; then
18568 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE_MALLINFO 1
18577 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18578 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18579 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 ac_func_search_save_LIBS=$LIBS
18583 ac_cv_search_pthread_mutex_lock=no
18584 cat >conftest.$ac_ext <<_ACEOF
18585 #line $LINENO "configure"
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 /* Override any gcc2 internal prototype to avoid an error. */
18596 /* We use char because int might match the return type of a gcc2
18597 builtin and then its argument prototype would still apply. */
18598 char pthread_mutex_lock ();
18602 pthread_mutex_lock ();
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_search_pthread_mutex_lock="none required"
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18626 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18627 for ac_lib in pthread; do
18628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18629 cat >conftest.$ac_ext <<_ACEOF
18630 #line $LINENO "configure"
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18637 /* Override any gcc2 internal prototype to avoid an error. */
18641 /* We use char because int might match the return type of a gcc2
18642 builtin and then its argument prototype would still apply. */
18643 char pthread_mutex_lock ();
18647 pthread_mutex_lock ();
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654 (eval $ac_link) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -s conftest$ac_exeext'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18664 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_func_search_save_LIBS
18676 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18677 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18678 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18679 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18680 HAVE_PTHREAD_MUTEX_LOCK=1
18682 HAVE_PTHREAD_MUTEX_LOCK=0
18687 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18688 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18689 if test "${ac_cv_header_stdc+set}" = set; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18693 #line $LINENO "configure"
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18699 #include <stdlib.h>
18700 #include <stdarg.h>
18701 #include <string.h>
18712 rm -f conftest.$ac_objext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714 (eval $ac_compile) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -s conftest.$ac_objext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_cv_header_stdc=yes
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 ac_cv_header_stdc=no
18731 rm -f conftest.$ac_objext conftest.$ac_ext
18733 if test $ac_cv_header_stdc = yes; then
18734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18735 cat >conftest.$ac_ext <<_ACEOF
18736 #line $LINENO "configure"
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #include <string.h>
18745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18746 $EGREP "memchr" >/dev/null 2>&1; then
18749 ac_cv_header_stdc=no
18755 if test $ac_cv_header_stdc = yes; then
18756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18757 cat >conftest.$ac_ext <<_ACEOF
18758 #line $LINENO "configure"
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 #include <stdlib.h>
18767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18768 $EGREP "free" >/dev/null 2>&1; then
18771 ac_cv_header_stdc=no
18777 if test $ac_cv_header_stdc = yes; then
18778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18779 if test "$cross_compiling" = yes; then
18782 cat >conftest.$ac_ext <<_ACEOF
18783 #line $LINENO "configure"
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18790 #if ((' ' & 0x0FF) == 0x020)
18791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18794 # define ISLOWER(c) \
18795 (('a' <= (c) && (c) <= 'i') \
18796 || ('j' <= (c) && (c) <= 'r') \
18797 || ('s' <= (c) && (c) <= 'z'))
18798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18806 for (i = 0; i < 256; i++)
18807 if (XOR (islower (i), ISLOWER (i))
18808 || toupper (i) != TOUPPER (i))
18813 rm -f conftest$ac_exeext
18814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18815 (eval $ac_link) 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18826 echo "$as_me: program exited with status $ac_status" >&5
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ( exit $ac_status )
18831 ac_cv_header_stdc=no
18833 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18837 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18838 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18839 if test $ac_cv_header_stdc = yes; then
18841 cat >>confdefs.h <<\_ACEOF
18842 #define STDC_HEADERS 1
18847 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18848 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18849 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 cat >conftest.$ac_ext <<_ACEOF
18853 #line $LINENO "configure"
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include <sys/types.h>
18860 #include <sys/wait.h>
18861 #ifndef WEXITSTATUS
18862 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18865 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18873 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880 (eval $ac_compile) 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -s conftest.$ac_objext'
18885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886 (eval $ac_try) 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_cv_header_sys_wait_h=yes
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ac_cv_header_sys_wait_h=no
18897 rm -f conftest.$ac_objext conftest.$ac_ext
18899 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18900 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18901 if test $ac_cv_header_sys_wait_h = yes; then
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE_SYS_WAIT_H 1
18920 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h
18922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924 echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18932 # Is the header compilable?
18933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18936 #line $LINENO "configure"
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 $ac_includes_default
18943 #include <$ac_header>
18945 rm -f conftest.$ac_objext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18947 (eval $ac_compile) 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_header_compiler=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_header_compiler=no
18964 rm -f conftest.$ac_objext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6
18968 # Is the header present?
18969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18972 #line $LINENO "configure"
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 #include <$ac_header>
18980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } >/dev/null; then
18988 if test -s conftest.err; then
18989 ac_cpp_err=$ac_c_preproc_warn_flag
18996 if test -z "$ac_cpp_err"; then
18997 ac_header_preproc=yes
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_header_preproc=no
19004 rm -f conftest.err conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006 echo "${ECHO_T}$ac_header_preproc" >&6
19008 # So? What about this header?
19009 case $ac_header_compiler:$ac_header_preproc in
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19017 ## ------------------------------------ ##
19018 ## Report this to bug-autoconf@gnu.org. ##
19019 ## ------------------------------------ ##
19022 sed "s/^/$as_me: WARNING: /" >&2
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 ## ------------------------------------ ##
19034 ## Report this to bug-autoconf@gnu.org. ##
19035 ## ------------------------------------ ##
19038 sed "s/^/$as_me: WARNING: /" >&2
19041 echo "$as_me:$LINENO: checking for $ac_header" >&5
19042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 eval "$as_ac_Header=$ac_header_preproc"
19048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19053 cat >>confdefs.h <<_ACEOF
19054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19062 if test "${ac_cv_header_sys_types_h+set}" = set; then
19063 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19064 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19065 if test "${ac_cv_header_sys_types_h+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19069 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19071 # Is the header compilable?
19072 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19073 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19075 #line $LINENO "configure"
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 $ac_includes_default
19082 #include <sys/types.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_header_compiler=yes
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_header_compiler=no
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6
19107 # Is the header present?
19108 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19109 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19111 #line $LINENO "configure"
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <sys/types.h>
19119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } >/dev/null; then
19127 if test -s conftest.err; then
19128 ac_cpp_err=$ac_c_preproc_warn_flag
19135 if test -z "$ac_cpp_err"; then
19136 ac_header_preproc=yes
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ac_header_preproc=no
19143 rm -f conftest.err conftest.$ac_ext
19144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6
19147 # So? What about this header?
19148 case $ac_header_compiler:$ac_header_preproc in
19150 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19153 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19156 ## ------------------------------------ ##
19157 ## Report this to bug-autoconf@gnu.org. ##
19158 ## ------------------------------------ ##
19161 sed "s/^/$as_me: WARNING: /" >&2
19164 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19165 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19167 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19169 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19172 ## ------------------------------------ ##
19173 ## Report this to bug-autoconf@gnu.org. ##
19174 ## ------------------------------------ ##
19177 sed "s/^/$as_me: WARNING: /" >&2
19180 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19181 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19182 if test "${ac_cv_header_sys_types_h+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_cv_header_sys_types_h=$ac_header_preproc
19187 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19188 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19191 if test $ac_cv_header_sys_types_h = yes; then
19192 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19194 INCLUDE_SYS_TYPES_H=''
19199 if test "${ac_cv_header_inttypes_h+set}" = set; then
19200 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19201 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19202 if test "${ac_cv_header_inttypes_h+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19206 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19208 # Is the header compilable?
19209 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19210 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19211 cat >conftest.$ac_ext <<_ACEOF
19212 #line $LINENO "configure"
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19219 #include <inttypes.h>
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -s conftest.$ac_objext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_header_compiler=yes
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ac_header_compiler=no
19240 rm -f conftest.$ac_objext conftest.$ac_ext
19241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19242 echo "${ECHO_T}$ac_header_compiler" >&6
19244 # Is the header present?
19245 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19246 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19248 #line $LINENO "configure"
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 #include <inttypes.h>
19256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } >/dev/null; then
19264 if test -s conftest.err; then
19265 ac_cpp_err=$ac_c_preproc_warn_flag
19272 if test -z "$ac_cpp_err"; then
19273 ac_header_preproc=yes
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19278 ac_header_preproc=no
19280 rm -f conftest.err conftest.$ac_ext
19281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19282 echo "${ECHO_T}$ac_header_preproc" >&6
19284 # So? What about this header?
19285 case $ac_header_compiler:$ac_header_preproc in
19287 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19288 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19290 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19293 ## ------------------------------------ ##
19294 ## Report this to bug-autoconf@gnu.org. ##
19295 ## ------------------------------------ ##
19298 sed "s/^/$as_me: WARNING: /" >&2
19301 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19302 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19303 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19304 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19306 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19309 ## ------------------------------------ ##
19310 ## Report this to bug-autoconf@gnu.org. ##
19311 ## ------------------------------------ ##
19314 sed "s/^/$as_me: WARNING: /" >&2
19317 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19318 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19319 if test "${ac_cv_header_inttypes_h+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 ac_cv_header_inttypes_h=$ac_header_preproc
19324 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19325 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19328 if test $ac_cv_header_inttypes_h = yes; then
19329 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19331 INCLUDE_INTTYPES_H=''
19337 echo "$as_me:$LINENO: checking for pid_t" >&5
19338 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19339 if test "${ac_cv_type_pid_t+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 $ac_includes_default
19355 if (sizeof (pid_t))
19361 rm -f conftest.$ac_objext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19363 (eval $ac_compile) 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_type_pid_t=yes
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 ac_cv_type_pid_t=no
19380 rm -f conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19383 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19384 if test $ac_cv_type_pid_t = yes; then
19388 cat >>confdefs.h <<_ACEOF
19394 echo "$as_me:$LINENO: checking for size_t" >&5
19395 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19396 if test "${ac_cv_type_size_t+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19400 #line $LINENO "configure"
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 $ac_includes_default
19412 if (sizeof (size_t))
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -s conftest.$ac_objext'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_cv_type_size_t=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_type_size_t=no
19437 rm -f conftest.$ac_objext conftest.$ac_ext
19439 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19440 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19441 if test $ac_cv_type_size_t = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define size_t unsigned
19451 echo "$as_me:$LINENO: checking for int64_t" >&5
19452 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19453 if test "${ac_cv_type_int64_t+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 cat >conftest.$ac_ext <<_ACEOF
19457 #line $LINENO "configure"
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19469 if (sizeof (int64_t))
19475 rm -f conftest.$ac_objext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19477 (eval $ac_compile) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -s conftest.$ac_objext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 ac_cv_type_int64_t=yes
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_cv_type_int64_t=no
19494 rm -f conftest.$ac_objext conftest.$ac_ext
19496 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19497 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19498 if test $ac_cv_type_int64_t = yes; then
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_INT64_T 1
19506 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19507 echo "$as_me: error: Type int64_t required but not found" >&2;}
19508 { (exit 1); exit 1; }; }
19511 echo "$as_me:$LINENO: checking for uint64_t" >&5
19512 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19513 if test "${ac_cv_type_uint64_t+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19517 #line $LINENO "configure"
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 $ac_includes_default
19527 if ((uint64_t *) 0)
19529 if (sizeof (uint64_t))
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537 (eval $ac_compile) 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_cv_type_uint64_t=yes
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 ac_cv_type_uint64_t=no
19554 rm -f conftest.$ac_objext conftest.$ac_ext
19556 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19557 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19558 if test $ac_cv_type_uint64_t = yes; then
19560 cat >>confdefs.h <<_ACEOF
19561 #define HAVE_UINT64_T 1
19566 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19567 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19568 { (exit 1); exit 1; }; }
19571 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19573 if test "${ac_cv_header_time+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 cat >conftest.$ac_ext <<_ACEOF
19577 #line $LINENO "configure"
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19583 #include <sys/types.h>
19584 #include <sys/time.h>
19590 if ((struct tm *) 0)
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_cv_header_time=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_cv_header_time=no
19615 rm -f conftest.$ac_objext conftest.$ac_ext
19617 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19618 echo "${ECHO_T}$ac_cv_header_time" >&6
19619 if test $ac_cv_header_time = yes; then
19621 cat >>confdefs.h <<\_ACEOF
19622 #define TIME_WITH_SYS_TIME 1
19627 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19629 if test "${ac_cv_struct_tm+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 cat >conftest.$ac_ext <<_ACEOF
19633 #line $LINENO "configure"
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <sys/types.h>
19645 struct tm *tp; tp->tm_sec;
19650 rm -f conftest.$ac_objext
19651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652 (eval $ac_compile) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_struct_tm=time.h
19664 echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19667 ac_cv_struct_tm=sys/time.h
19669 rm -f conftest.$ac_objext conftest.$ac_ext
19671 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19672 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19673 if test $ac_cv_struct_tm = sys/time.h; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define TM_IN_SYS_TIME 1
19686 ac_cpp='$CPP $CPPFLAGS'
19687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19691 if test "$cross_compiling" = yes; then
19692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19693 See \`config.log' for more details." >&5
19694 echo "$as_me: error: cannot run test program while cross compiling
19695 See \`config.log' for more details." >&2;}
19696 { (exit 1); exit 1; }; }
19698 cat >conftest.$ac_ext <<_ACEOF
19699 #line $LINENO "configure"
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19706 #include <stdlib.h>
19711 volatile double A, B;
19715 sprintf(Buffer, "%a", A);
19719 if (A != 0x1.999999999999ap-4)
19726 rm -f conftest$ac_exeext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19728 (eval $ac_link) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19739 echo "$as_me: program exited with status $ac_status" >&5
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 ( exit $ac_status )
19746 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754 if test "$ac_c_printf_a" = "yes"; then
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_PRINTF_A 1
19763 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19764 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19765 if test "${ac_cv_c_bigendian+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 # See if sys/param.h defines the BYTE_ORDER macro.
19769 cat >conftest.$ac_ext <<_ACEOF
19770 #line $LINENO "configure"
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776 #include <sys/types.h>
19777 #include <sys/param.h>
19782 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19783 bogus endian macros
19790 rm -f conftest.$ac_objext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792 (eval $ac_compile) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 # It does; now see whether it defined to BIG_ENDIAN or not.
19803 cat >conftest.$ac_ext <<_ACEOF
19804 #line $LINENO "configure"
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 #include <sys/types.h>
19811 #include <sys/param.h>
19816 #if BYTE_ORDER != BIG_ENDIAN
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826 (eval $ac_compile) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
19830 { ac_try='test -s conftest.$ac_objext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 ac_cv_c_bigendian=yes
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_cv_c_bigendian=no
19843 rm -f conftest.$ac_objext conftest.$ac_ext
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 # It does not; compile a test program.
19849 if test "$cross_compiling" = yes; then
19850 # try to guess the endianness by grepping values into an object file
19851 ac_cv_c_bigendian=unknown
19852 cat >conftest.$ac_ext <<_ACEOF
19853 #line $LINENO "configure"
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19860 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19861 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19862 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19863 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19864 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19868 _ascii (); _ebcdic ();
19873 rm -f conftest.$ac_objext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19875 (eval $ac_compile) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -s conftest.$ac_objext'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; }; then
19885 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19886 ac_cv_c_bigendian=yes
19888 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19889 if test "$ac_cv_c_bigendian" = unknown; then
19890 ac_cv_c_bigendian=no
19892 # finding both strings is unlikely to happen, but who knows?
19893 ac_cv_c_bigendian=unknown
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19901 rm -f conftest.$ac_objext conftest.$ac_ext
19903 cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19913 /* Are we little or big endian? From Harbison&Steele. */
19917 char c[sizeof (long)];
19920 exit (u.c[sizeof (long) - 1] == 1);
19923 rm -f conftest$ac_exeext
19924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19925 (eval $ac_link) 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_cv_c_bigendian=no
19936 echo "$as_me: program exited with status $ac_status" >&5
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 ( exit $ac_status )
19941 ac_cv_c_bigendian=yes
19943 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19946 rm -f conftest.$ac_objext conftest.$ac_ext
19948 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19949 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19950 case $ac_cv_c_bigendian in
19958 { { echo "$as_me:$LINENO: error: unknown endianness
19959 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19960 echo "$as_me: error: unknown endianness
19961 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19962 { (exit 1); exit 1; }; } ;;
19966 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19967 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19968 if test "${ac_cv_cxx_namespaces+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_cpp='$CXXCPP $CPPFLAGS'
19975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19979 cat >conftest.$ac_ext <<_ACEOF
19980 #line $LINENO "configure"
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 namespace Outer { namespace Inner { int i = 0; }}
19990 using namespace Outer::Inner; return i;
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_cv_cxx_namespaces=yes
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ac_cv_cxx_namespaces=no
20014 rm -f conftest.$ac_objext conftest.$ac_ext
20016 ac_cpp='$CPP $CPPFLAGS'
20017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20023 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20024 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20025 if test "$ac_cv_cxx_namespaces" = yes; then
20027 cat >>confdefs.h <<\_ACEOF
20028 #define HAVE_NAMESPACES
20033 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20034 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20035 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 ac_cpp='$CXXCPP $CPPFLAGS'
20043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20047 cat >conftest.$ac_ext <<_ACEOF
20048 #line $LINENO "configure"
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 #include <ext/hash_map>
20055 #ifdef HAVE_NAMESPACES
20056 using namespace std;
20061 hash_map<int, int> t;
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -s conftest.$ac_objext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_cxx_have_std_ext_hash_map=yes
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ac_cv_cxx_have_std_ext_hash_map=no
20085 rm -f conftest.$ac_objext conftest.$ac_ext
20087 ac_cpp='$CPP $CPPFLAGS'
20088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20093 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20094 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20095 HAVE_STD_EXT_HASH_MAP=0
20096 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20098 HAVE_STD_EXT_HASH_MAP=1
20101 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20102 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20103 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 ac_cpp='$CXXCPP $CPPFLAGS'
20111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20115 cat >conftest.$ac_ext <<_ACEOF
20116 #line $LINENO "configure"
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 #include <ext/hash_map>
20123 #ifdef HAVE_NAMESPACES
20124 using namespace __gnu_cxx;
20129 hash_map<int,int> t;
20134 rm -f conftest.$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136 (eval $ac_compile) 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
20140 { ac_try='test -s conftest.$ac_objext'
20141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142 (eval $ac_try) 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; }; then
20146 ac_cv_cxx_have_gnu_ext_hash_map=yes
20148 echo "$as_me: failed program was:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20151 ac_cv_cxx_have_gnu_ext_hash_map=no
20153 rm -f conftest.$ac_objext conftest.$ac_ext
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20161 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20162 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20163 HAVE_GNU_EXT_HASH_MAP=0
20164 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20166 HAVE_GNU_EXT_HASH_MAP=1
20169 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20170 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20171 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20178 ac_cpp='$CXXCPP $CPPFLAGS'
20179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20183 cat >conftest.$ac_ext <<_ACEOF
20184 #line $LINENO "configure"
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 #include <hash_map>
20194 hash_map<int,int> t;
20199 rm -f conftest.$ac_objext
20200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20201 (eval $ac_compile) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } &&
20205 { ac_try='test -s conftest.$ac_objext'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_cxx_have_global_hash_map=yes
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ac_cv_cxx_have_global_hash_map=no
20218 rm -f conftest.$ac_objext conftest.$ac_ext
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20226 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20227 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20228 HAVE_GLOBAL_HASH_MAP=0
20229 if test "$ac_cv_cxx_have_global_hash_map" = yes
20231 HAVE_GLOBAL_HASH_MAP=1
20234 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20235 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20236 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 ac_cpp='$CXXCPP $CPPFLAGS'
20244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20248 cat >conftest.$ac_ext <<_ACEOF
20249 #line $LINENO "configure"
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <ext/hash_set>
20256 #ifdef HAVE_NAMESPACES
20257 using namespace std;
20267 rm -f conftest.$ac_objext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20269 (eval $ac_compile) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_cv_cxx_have_std_ext_hash_set=yes
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_cv_cxx_have_std_ext_hash_set=no
20286 rm -f conftest.$ac_objext conftest.$ac_ext
20288 ac_cpp='$CPP $CPPFLAGS'
20289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20294 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20295 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20296 HAVE_STD_EXT_HASH_SET=0
20297 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20299 HAVE_STD_EXT_HASH_SET=1
20302 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20303 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20304 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 ac_cpp='$CXXCPP $CPPFLAGS'
20312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20316 cat >conftest.$ac_ext <<_ACEOF
20317 #line $LINENO "configure"
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20323 #include <ext/hash_set>
20324 #ifdef HAVE_NAMESPACES
20325 using namespace __gnu_cxx;
20335 rm -f conftest.$ac_objext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337 (eval $ac_compile) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -s conftest.$ac_objext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ac_cv_cxx_have_gnu_ext_hash_set=yes
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_cv_cxx_have_gnu_ext_hash_set=no
20354 rm -f conftest.$ac_objext conftest.$ac_ext
20356 ac_cpp='$CPP $CPPFLAGS'
20357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20362 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20363 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20364 HAVE_GNU_EXT_HASH_SET=0
20365 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20367 HAVE_GNU_EXT_HASH_SET=1
20370 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20371 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20372 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 ac_cpp='$CXXCPP $CPPFLAGS'
20380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20384 cat >conftest.$ac_ext <<_ACEOF
20385 #line $LINENO "configure"
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 #include <hash_set>
20395 hash_set<int> t; return 0;
20400 rm -f conftest.$ac_objext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20402 (eval $ac_compile) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -s conftest.$ac_objext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_cv_cxx_have_global_hash_set=yes
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_cxx_have_global_hash_set=no
20419 rm -f conftest.$ac_objext conftest.$ac_ext
20421 ac_cpp='$CPP $CPPFLAGS'
20422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20427 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20428 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20429 HAVE_GLOBAL_HASH_SET=0
20430 if test "$ac_cv_cxx_have_global_hash_set" = yes
20432 HAVE_GLOBAL_HASH_SET=1
20435 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20436 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20437 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 ac_cpp='$CXXCPP $CPPFLAGS'
20445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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. */
20456 #include <iterator>
20457 #ifdef HAVE_NAMESPACES
20458 using namespace std;
20463 iterator<int,int,int> t; return 0;
20468 rm -f conftest.$ac_objext
20469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20470 (eval $ac_compile) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } &&
20474 { ac_try='test -s conftest.$ac_objext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_cxx_have_std_iterator=yes
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_cxx_have_std_iterator=no
20487 rm -f conftest.$ac_objext conftest.$ac_ext
20489 ac_cpp='$CPP $CPPFLAGS'
20490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20496 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20497 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20498 HAVE_STD_ITERATOR=0
20499 if test "$ac_cv_cxx_have_std_iterator" = yes
20501 HAVE_STD_ITERATOR=1
20504 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20505 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20506 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 ac_cpp='$CXXCPP $CPPFLAGS'
20514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20518 cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20525 #include <iterator>
20526 #ifdef HAVE_NAMESPACES
20527 using namespace std;
20532 bidirectional_iterator<int,int> t; return 0;
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
20543 { ac_try='test -s conftest.$ac_objext'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 ac_cv_cxx_have_bi_iterator=yes
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 ac_cv_cxx_have_bi_iterator=no
20556 rm -f conftest.$ac_objext conftest.$ac_ext
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20566 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20568 if test "$ac_cv_cxx_have_bi_iterator" = yes
20573 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20574 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20575 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 ac_cpp='$CXXCPP $CPPFLAGS'
20583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20587 cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 #include <iterator>
20595 #ifdef HAVE_NAMESPACES
20596 using namespace std;
20601 forward_iterator<int,int> t; return 0;
20606 rm -f conftest.$ac_objext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608 (eval $ac_compile) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try='test -s conftest.$ac_objext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_cxx_have_fwd_iterator=yes
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_cxx_have_fwd_iterator=no
20625 rm -f conftest.$ac_objext conftest.$ac_ext
20627 ac_cpp='$CPP $CPPFLAGS'
20628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20635 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20636 HAVE_FWD_ITERATOR=0
20637 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20639 HAVE_FWD_ITERATOR=1
20643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20644 # for constant arguments. Useless!
20645 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20646 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20647 if test "${ac_cv_working_alloca_h+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 cat >conftest.$ac_ext <<_ACEOF
20651 #line $LINENO "configure"
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 #include <alloca.h>
20661 char *p = (char *) alloca (2 * sizeof (int));
20666 rm -f conftest.$ac_objext conftest$ac_exeext
20667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20668 (eval $ac_link) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
20672 { ac_try='test -s conftest$ac_exeext'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ac_cv_working_alloca_h=yes
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 ac_cv_working_alloca_h=no
20685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20687 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20688 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20689 if test $ac_cv_working_alloca_h = yes; then
20691 cat >>confdefs.h <<\_ACEOF
20692 #define HAVE_ALLOCA_H 1
20697 echo "$as_me:$LINENO: checking for alloca" >&5
20698 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20699 if test "${ac_cv_func_alloca_works+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 cat >conftest.$ac_ext <<_ACEOF
20703 #line $LINENO "configure"
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20710 # define alloca __builtin_alloca
20713 # include <malloc.h>
20714 # define alloca _alloca
20717 # include <alloca.h>
20722 # ifndef alloca /* predefined by HP cc +Olibcalls */
20733 char *p = (char *) alloca (1);
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -s conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_cv_func_alloca_works=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_cv_func_alloca_works=no
20757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20759 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20760 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20762 if test $ac_cv_func_alloca_works = yes; then
20764 cat >>confdefs.h <<\_ACEOF
20765 #define HAVE_ALLOCA 1
20769 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20770 # that cause trouble. Some versions do not even contain alloca or
20771 # contain a buggy version. If you still want to use their alloca,
20772 # use ar to extract alloca.o from them instead of compiling alloca.c.
20774 ALLOCA=alloca.$ac_objext
20776 cat >>confdefs.h <<\_ACEOF
20781 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20782 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20783 if test "${ac_cv_os_cray+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 cat >conftest.$ac_ext <<_ACEOF
20787 #line $LINENO "configure"
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 #if defined(CRAY) && ! defined(CRAY2)
20800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20801 $EGREP "webecray" >/dev/null 2>&1; then
20809 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20810 echo "${ECHO_T}$ac_cv_os_cray" >&6
20811 if test $ac_cv_os_cray = yes; then
20812 for ac_func in _getb67 GETB67 getb67; do
20813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_var+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 /* System header to define __stub macros and hopefully few prototypes,
20827 which can conflict with char $ac_func (); below.
20828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20829 <limits.h> exists even on freestanding compilers. */
20831 # include <limits.h>
20833 # include <assert.h>
20835 /* Override any gcc2 internal prototype to avoid an error. */
20840 /* We use char because int might match the return type of a gcc2
20841 builtin and then its argument prototype would still apply. */
20843 /* The GNU C library defines this for functions which it implements
20844 to always fail with ENOSYS. Some functions are actually named
20845 something starting with __ and the normal name is an alias. */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20849 char (*f) () = $ac_func;
20858 return f != $ac_func;
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865 (eval $ac_link) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -s conftest$ac_exeext'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 eval "$as_ac_var=yes"
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 eval "$as_ac_var=no"
20882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20886 if test `eval echo '${'$as_ac_var'}'` = yes; then
20888 cat >>confdefs.h <<_ACEOF
20889 #define CRAY_STACKSEG_END $ac_func
20898 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20899 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20900 if test "${ac_cv_c_stack_direction+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 if test "$cross_compiling" = yes; then
20904 ac_cv_c_stack_direction=0
20906 cat >conftest.$ac_ext <<_ACEOF
20907 #line $LINENO "configure"
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20914 find_stack_direction ()
20916 static char *addr = 0;
20921 return find_stack_direction ();
20924 return (&dummy > addr) ? 1 : -1;
20930 exit (find_stack_direction () < 0);
20933 rm -f conftest$ac_exeext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935 (eval $ac_link) 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_c_stack_direction=1
20946 echo "$as_me: program exited with status $ac_status" >&5
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ( exit $ac_status )
20951 ac_cv_c_stack_direction=-1
20953 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20956 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20957 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20959 cat >>confdefs.h <<_ACEOF
20960 #define STACK_DIRECTION $ac_cv_c_stack_direction
20968 for ac_header in stdlib.h unistd.h
20970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20972 echo "$as_me:$LINENO: checking for $ac_header" >&5
20973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20980 # Is the header compilable?
20981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20983 cat >conftest.$ac_ext <<_ACEOF
20984 #line $LINENO "configure"
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20990 $ac_includes_default
20991 #include <$ac_header>
20993 rm -f conftest.$ac_objext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20995 (eval $ac_compile) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 ac_header_compiler=yes
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_compiler=no
21012 rm -f conftest.$ac_objext conftest.$ac_ext
21013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21014 echo "${ECHO_T}$ac_header_compiler" >&6
21016 # Is the header present?
21017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21019 cat >conftest.$ac_ext <<_ACEOF
21020 #line $LINENO "configure"
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 #include <$ac_header>
21028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21031 grep -v '^ *+' conftest.er1 >conftest.err
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } >/dev/null; then
21036 if test -s conftest.err; then
21037 ac_cpp_err=$ac_c_preproc_warn_flag
21044 if test -z "$ac_cpp_err"; then
21045 ac_header_preproc=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_header_preproc=no
21052 rm -f conftest.err conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6
21056 # So? What about this header?
21057 case $ac_header_compiler:$ac_header_preproc in
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21065 ## ------------------------------------ ##
21066 ## Report this to bug-autoconf@gnu.org. ##
21067 ## ------------------------------------ ##
21070 sed "s/^/$as_me: WARNING: /" >&2
21073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21081 ## ------------------------------------ ##
21082 ## Report this to bug-autoconf@gnu.org. ##
21083 ## ------------------------------------ ##
21086 sed "s/^/$as_me: WARNING: /" >&2
21089 echo "$as_me:$LINENO: checking for $ac_header" >&5
21090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 eval "$as_ac_Header=$ac_header_preproc"
21096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21110 for ac_func in getpagesize
21112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21113 echo "$as_me:$LINENO: checking for $ac_func" >&5
21114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21115 if eval "test \"\${$as_ac_var+set}\" = set"; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 cat >conftest.$ac_ext <<_ACEOF
21119 #line $LINENO "configure"
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 /* System header to define __stub macros and hopefully few prototypes,
21126 which can conflict with char $ac_func (); below.
21127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21128 <limits.h> exists even on freestanding compilers. */
21130 # include <limits.h>
21132 # include <assert.h>
21134 /* Override any gcc2 internal prototype to avoid an error. */
21139 /* We use char because int might match the return type of a gcc2
21140 builtin and then its argument prototype would still apply. */
21142 /* The GNU C library defines this for functions which it implements
21143 to always fail with ENOSYS. Some functions are actually named
21144 something starting with __ and the normal name is an alias. */
21145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21148 char (*f) () = $ac_func;
21157 return f != $ac_func;
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164 (eval $ac_link) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -s conftest$ac_exeext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 eval "$as_ac_var=yes"
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 eval "$as_ac_var=no"
21181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21185 if test `eval echo '${'$as_ac_var'}'` = yes; then
21186 cat >>confdefs.h <<_ACEOF
21187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21193 echo "$as_me:$LINENO: checking for working mmap" >&5
21194 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21195 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 if test "$cross_compiling" = yes; then
21199 ac_cv_func_mmap_fixed_mapped=no
21201 cat >conftest.$ac_ext <<_ACEOF
21202 #line $LINENO "configure"
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 $ac_includes_default
21209 /* malloc might have been renamed as rpl_malloc. */
21212 /* Thanks to Mike Haertel and Jim Avera for this test.
21213 Here is a matrix of mmap possibilities:
21214 mmap private not fixed
21215 mmap private fixed at somewhere currently unmapped
21216 mmap private fixed at somewhere already mapped
21217 mmap shared not fixed
21218 mmap shared fixed at somewhere currently unmapped
21219 mmap shared fixed at somewhere already mapped
21220 For private mappings, we should verify that changes cannot be read()
21221 back from the file, nor mmap's back from the file at a different
21222 address. (There have been systems where private was not correctly
21223 implemented like the infamous i386 svr4.0, and systems where the
21224 VM page cache was not coherent with the file system buffer cache
21225 like early versions of FreeBSD and possibly contemporary NetBSD.)
21226 For shared mappings, we should conversely verify that changes get
21227 propagated back to all the places they're supposed to be.
21229 Grep wants private fixed already mapped.
21230 The main things grep needs to know about mmap are:
21231 * does it exist and is it safe to write into the mmap'd area
21232 * how to use it (BSD variants) */
21235 #include <sys/mman.h>
21237 #if !STDC_HEADERS && !HAVE_STDLIB_H
21241 /* This mess was copied from the GNU getpagesize.h. */
21242 #if !HAVE_GETPAGESIZE
21243 /* Assume that all systems that can run configure have sys/param.h. */
21244 # if !HAVE_SYS_PARAM_H
21245 # define HAVE_SYS_PARAM_H 1
21248 # ifdef _SC_PAGESIZE
21249 # define getpagesize() sysconf(_SC_PAGESIZE)
21250 # else /* no _SC_PAGESIZE */
21251 # if HAVE_SYS_PARAM_H
21252 # include <sys/param.h>
21253 # ifdef EXEC_PAGESIZE
21254 # define getpagesize() EXEC_PAGESIZE
21255 # else /* no EXEC_PAGESIZE */
21257 # define getpagesize() NBPG * CLSIZE
21260 # endif /* no CLSIZE */
21261 # else /* no NBPG */
21263 # define getpagesize() NBPC
21264 # else /* no NBPC */
21266 # define getpagesize() PAGESIZE
21267 # endif /* PAGESIZE */
21268 # endif /* no NBPC */
21269 # endif /* no NBPG */
21270 # endif /* no EXEC_PAGESIZE */
21271 # else /* no HAVE_SYS_PARAM_H */
21272 # define getpagesize() 8192 /* punt totally */
21273 # endif /* no HAVE_SYS_PARAM_H */
21274 # endif /* no _SC_PAGESIZE */
21276 #endif /* no HAVE_GETPAGESIZE */
21281 char *data, *data2, *data3;
21285 pagesize = getpagesize ();
21287 /* First, make a file with some known garbage in it. */
21288 data = (char *) malloc (pagesize);
21291 for (i = 0; i < pagesize; ++i)
21292 *(data + i) = rand ();
21294 fd = creat ("conftest.mmap", 0600);
21297 if (write (fd, data, pagesize) != pagesize)
21301 /* Next, try to mmap the file at a fixed address which already has
21302 something else allocated at it. If we can, also make sure that
21303 we see the same garbage. */
21304 fd = open ("conftest.mmap", O_RDWR);
21307 data2 = (char *) malloc (2 * pagesize);
21310 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21314 for (i = 0; i < pagesize; ++i)
21315 if (*(data + i) != *(data2 + i))
21318 /* Finally, make sure that changes to the mapped area do not
21319 percolate back to the file as seen by read(). (This is a bug on
21320 some variants of i386 svr4.0.) */
21321 for (i = 0; i < pagesize; ++i)
21322 *(data2 + i) = *(data2 + i) + 1;
21323 data3 = (char *) malloc (pagesize);
21326 if (read (fd, data3, pagesize) != pagesize)
21328 for (i = 0; i < pagesize; ++i)
21329 if (*(data + i) != *(data3 + i))
21335 rm -f conftest$ac_exeext
21336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 ac_cv_func_mmap_fixed_mapped=yes
21348 echo "$as_me: program exited with status $ac_status" >&5
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ( exit $ac_status )
21353 ac_cv_func_mmap_fixed_mapped=no
21355 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21358 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21359 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21360 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21362 cat >>confdefs.h <<\_ACEOF
21363 #define HAVE_MMAP 1
21367 rm -f conftest.mmap
21369 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21371 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21372 echo "$as_me: error: mmap() required but not found" >&2;}
21373 { (exit 1); exit 1; }; }
21375 echo "$as_me:$LINENO: checking for mmap of files" >&5
21376 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21377 if test "${ac_cv_func_mmap_file+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 ac_cpp='$CPP $CPPFLAGS'
21384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21388 if test "$cross_compiling" = yes; then
21389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21390 See \`config.log' for more details." >&5
21391 echo "$as_me: error: cannot run test program while cross compiling
21392 See \`config.log' for more details." >&2;}
21393 { (exit 1); exit 1; }; }
21395 cat >conftest.$ac_ext <<_ACEOF
21396 #line $LINENO "configure"
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21403 #ifdef HAVE_SYS_TYPES_H
21404 #include <sys/types.h>
21407 #ifdef HAVE_SYS_MMAN_H
21408 #include <sys/mman.h>
21411 #ifdef HAVE_FCNTL_H
21417 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21419 rm -f conftest$ac_exeext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21421 (eval $ac_link) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_func_mmap_file=yes
21432 echo "$as_me: program exited with status $ac_status" >&5
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ( exit $ac_status )
21437 ac_cv_func_mmap_file=no
21439 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21442 ac_cpp='$CPP $CPPFLAGS'
21443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21449 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21450 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21451 if test "$ac_cv_func_mmap_file" = yes; then
21453 cat >>confdefs.h <<\_ACEOF
21454 #define HAVE_MMAP_FILE
21461 if test "$ac_cv_func_mmap_file" = "no"
21463 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21464 echo "$as_me: error: mmap() of files required but not found" >&2;}
21465 { (exit 1); exit 1; }; }
21467 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21468 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21469 if test "${ac_cv_header_mmap_anon+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 ac_cpp='$CPP $CPPFLAGS'
21476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21480 cat >conftest.$ac_ext <<_ACEOF
21481 #line $LINENO "configure"
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 #include <sys/mman.h>
21488 #include <unistd.h>
21493 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21498 rm -f conftest.$ac_objext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21500 (eval $ac_compile) 2>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -s conftest.$ac_objext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_header_mmap_anon=yes
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 ac_cv_header_mmap_anon=no
21517 rm -f conftest.$ac_objext conftest.$ac_ext
21519 ac_cpp='$CPP $CPPFLAGS'
21520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21526 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21527 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21528 if test "$ac_cv_header_mmap_anon" = yes; then
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_MMAP_ANONYMOUS
21536 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21537 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21538 if test "${ac_cv_type_signal+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 cat >conftest.$ac_ext <<_ACEOF
21542 #line $LINENO "configure"
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <sys/types.h>
21549 #include <signal.h>
21554 extern "C" void (*signal (int, void (*)(int)))(int);
21556 void (*signal ()) ();
21567 rm -f conftest.$ac_objext
21568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21569 (eval $ac_compile) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_type_signal=void
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_cv_type_signal=int
21586 rm -f conftest.$ac_objext conftest.$ac_ext
21588 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21589 echo "${ECHO_T}$ac_cv_type_signal" >&6
21591 cat >>confdefs.h <<_ACEOF
21592 #define RETSIGTYPE $ac_cv_type_signal
21603 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
21605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21606 echo "$as_me:$LINENO: checking for $ac_func" >&5
21607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21608 if eval "test \"\${$as_ac_var+set}\" = set"; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 cat >conftest.$ac_ext <<_ACEOF
21612 #line $LINENO "configure"
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 /* System header to define __stub macros and hopefully few prototypes,
21619 which can conflict with char $ac_func (); below.
21620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21621 <limits.h> exists even on freestanding compilers. */
21623 # include <limits.h>
21625 # include <assert.h>
21627 /* Override any gcc2 internal prototype to avoid an error. */
21632 /* We use char because int might match the return type of a gcc2
21633 builtin and then its argument prototype would still apply. */
21635 /* The GNU C library defines this for functions which it implements
21636 to always fail with ENOSYS. Some functions are actually named
21637 something starting with __ and the normal name is an alias. */
21638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21641 char (*f) () = $ac_func;
21650 return f != $ac_func;
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21657 (eval $ac_link) 2>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -s conftest$ac_exeext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 eval "$as_ac_var=yes"
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 eval "$as_ac_var=no"
21674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21678 if test `eval echo '${'$as_ac_var'}'` = yes; then
21679 cat >>confdefs.h <<_ACEOF
21680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21686 echo "$as_me:$LINENO: checking for mprotect" >&5
21687 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21688 if test "${ac_cv_func_mprotect+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 cat >conftest.$ac_ext <<_ACEOF
21692 #line $LINENO "configure"
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 /* System header to define __stub macros and hopefully few prototypes,
21699 which can conflict with char mprotect (); below.
21700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701 <limits.h> exists even on freestanding compilers. */
21703 # include <limits.h>
21705 # include <assert.h>
21707 /* Override any gcc2 internal prototype to avoid an error. */
21712 /* We use char because int might match the return type of a gcc2
21713 builtin and then its argument prototype would still apply. */
21715 /* The GNU C library defines this for functions which it implements
21716 to always fail with ENOSYS. Some functions are actually named
21717 something starting with __ and the normal name is an alias. */
21718 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21721 char (*f) () = mprotect;
21730 return f != mprotect;
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737 (eval $ac_link) 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
21741 { ac_try='test -s conftest$ac_exeext'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_cv_func_mprotect=yes
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ac_cv_func_mprotect=no
21754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21756 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21757 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21758 if test $ac_cv_func_mprotect = yes; then
21761 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21762 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21763 { (exit 1); exit 1; }; }
21771 ac_cpp='$CPP $CPPFLAGS'
21772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21776 oldcflags="$CFLAGS"
21777 CFLAGS="$CFLAGS -Wl,-R."
21778 cat >conftest.$ac_ext <<_ACEOF
21779 int main() { return 0; }
21781 rm -f conftest.$ac_objext conftest$ac_exeext
21782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21783 (eval $ac_link) 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } &&
21787 { ac_try='test -s conftest$ac_exeext'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; }; then
21793 ac_cv_link_use_r=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_link_use_r=no
21800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21801 CFLAGS="$oldcflags"
21803 ac_cpp='$CPP $CPPFLAGS'
21804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21808 if test "$ac_cv_link_use_r" = yes
21811 cat >>confdefs.h <<\_ACEOF
21812 #define HAVE_LINK_R 1
21818 # Check whether --enable-optimized or --disable-optimized was given.
21819 if test "${enable_optimized+set}" = set; then
21820 enableval="$enable_optimized"
21825 if test ${enableval} = "no"
21830 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21837 # Check whether --enable-spec95 or --disable-spec95 was given.
21838 if test "${enable_spec95+set}" = set; then
21839 enableval="$enable_spec95"
21840 checkresult=$enableval
21844 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
21845 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
21846 case "$checkresult" in
21848 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
21849 if test -d "$defaultdir"
21851 SPEC95_ROOT=$defaultdir
21853 USE_SPEC95=USE_SPEC95=1
21855 checkresult="yes, found in $defaultdir"
21865 *) if test -d "$checkresult"
21867 SPEC95_ROOT="$checkresult"
21869 USE_SPEC95=USE_SPEC95=1
21871 checkresult="yes, in $checkresult"
21875 checkresult="no, not found in $checkresult"
21879 echo "$as_me:$LINENO: result: $checkresult" >&5
21880 echo "${ECHO_T}$checkresult" >&6
21884 # Check whether --enable-spec2000 or --disable-spec2000 was given.
21885 if test "${enable_spec2000+set}" = set; then
21886 enableval="$enable_spec2000"
21887 checkresult=$enableval
21891 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
21892 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
21893 case "$checkresult" in
21895 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21896 if test -d "$defaultdir"
21898 SPEC2000_ROOT=$defaultdir
21900 USE_SPEC2000=USE_SPEC2000=1
21902 checkresult="yes, found in $defaultdir"
21912 *) if test -d "$checkresult"
21914 SPEC2000_ROOT="$checkresult"
21916 USE_SPEC2000=USE_SPEC2000=1
21918 checkresult="yes, in $checkresult"
21922 checkresult="no, not found in $checkresult"
21926 echo "$as_me:$LINENO: result: $checkresult" >&5
21927 echo "${ECHO_T}$checkresult" >&6
21931 # Check whether --enable-povray or --disable-povray was given.
21932 if test "${enable_povray+set}" = set; then
21933 enableval="$enable_povray"
21934 checkresult=$enableval
21938 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
21939 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
21940 case "$checkresult" in
21942 defaultdir=/home/vadve/shared/benchmarks/povray31
21943 if test -d "$defaultdir"
21945 POVRAY_ROOT=$defaultdir
21947 USE_POVRAY=USE_POVRAY=1
21949 checkresult="yes, found in $defaultdir"
21959 *) if test -d "$checkresult"
21961 POVRAY_ROOT="$checkresult"
21963 USE_POVRAY=USE_POVRAY=1
21965 checkresult="yes, in $checkresult"
21969 checkresult="no, not found in $checkresult"
21973 echo "$as_me:$LINENO: result: $checkresult" >&5
21974 echo "${ECHO_T}$checkresult" >&6
21978 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21979 if test "${enable_precompiled_bytecode+set}" = set; then
21980 enableval="$enable_precompiled_bytecode"
21985 if test ${enableval} = "no"
21990 UPB=USE_PRECOMPILED_BYTECODE=1
21994 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21995 if test "${enable_llc_diffs+set}" = set; then
21996 enableval="$enable_llc_diffs"
22001 if test ${enableval} = "no"
22003 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22010 # Check whether --enable-jit or --disable-jit was given.
22011 if test "${enable_jit+set}" = set; then
22012 enableval="$enable_jit"
22017 if test ${enableval} = "no"
22024 JIT=TARGET_HAS_JIT=1
22028 JIT=TARGET_HAS_JIT=1
22039 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22040 if test "${with_llvmgccdir+set}" = set; then
22041 withval="$with_llvmgccdir"
22042 LLVMGCCDIR=$withval
22045 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22046 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22048 if test -d "$LLVMGCCDIR"
22050 if test -x "$LLVMGCCDIR/bin/gcc"
22052 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22056 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22057 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22058 if test "$LLVM_GCC_CHECK" = "no"
22062 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22063 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22065 if test -x "$LLVM_GCC_CHECK"
22067 cp /dev/null conftest.c
22068 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22074 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22075 LLVMCC1=$llvmcc1path
22077 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22078 LLVMCC1PLUS=$llvmcc1pluspath
22081 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22082 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22083 if test "$LLVM_GCC_SANE" = "no"
22089 # Check whether --with-bcrepos or --without-bcrepos was given.
22090 if test "${with_bcrepos+set}" = set; then
22091 withval="$with_bcrepos"
22095 BCR=/home/vadve/lattner/LLVMPrograms
22100 # Check whether --with-papi or --without-papi was given.
22101 if test "${with_papi+set}" = set; then
22102 withval="$with_papi"
22106 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22110 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22111 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22112 eval "SHLIBEXT=$shrext"
22113 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22114 echo "${ECHO_T}$SHLIBEXT" >&6
22118 cat >>confdefs.h <<_ACEOF
22119 #define SHLIBEXT "$SHLIBEXT"
22123 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
22124 cat >confcache <<\_ACEOF
22125 # This file is a shell script that caches the results of configure
22126 # tests run on this system so they can be shared between configure
22127 # scripts and configure runs, see configure's option --config-cache.
22128 # It is not useful on other systems. If it contains results you don't
22129 # want to keep, you may remove or edit it.
22131 # config.status only pays attention to the cache file if you give it
22132 # the --recheck option to rerun configure.
22134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22136 # following values.
22140 # The following way of writing the cache mishandles newlines in values,
22141 # but we know of no workaround that is simple, portable, and efficient.
22142 # So, don't put newlines in cache variables' values.
22143 # Ultrix sh set writes to stderr and can't be redirected directly,
22144 # and sets the high bit in the cache file unless we assign to the vars.
22147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22149 # `set' does not quote correctly, so add quotes (double-quote
22150 # substitution turns \\\\ into \\, and sed turns \\ into \).
22153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22156 # `set' quotes correctly as required by POSIX, so do not add quotes.
22158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22167 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22170 if test -w $cache_file; then
22171 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22172 cat confcache >$cache_file
22174 echo "not updating unwritable cache $cache_file"
22179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22180 # Let make expand exec_prefix.
22181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22185 # trailing colons and then remove the whole line if VPATH becomes empty
22186 # (actually we leave an empty line to preserve line numbers).
22187 if test "x$srcdir" = x.; then
22188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22189 s/:*\$(srcdir):*/:/;
22190 s/:*\${srcdir}:*/:/;
22192 s/^\([^=]*=[ ]*\):*/\1/;
22198 DEFS=-DHAVE_CONFIG_H
22202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22203 # 1. Remove the extension, and $U if already installed.
22204 ac_i=`echo "$ac_i" |
22205 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22207 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22208 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22210 LIBOBJS=$ac_libobjs
22212 LTLIBOBJS=$ac_ltlibobjs
22216 : ${CONFIG_STATUS=./config.status}
22217 ac_clean_files_save=$ac_clean_files
22218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22219 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22220 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22221 cat >$CONFIG_STATUS <<_ACEOF
22223 # Generated by $as_me.
22224 # Run this file to recreate the current configuration.
22225 # Compiler output produced by configure, useful for debugging
22226 # configure, is in config.log if it exists.
22229 ac_cs_recheck=false
22231 SHELL=\${CONFIG_SHELL-$SHELL}
22234 cat >>$CONFIG_STATUS <<\_ACEOF
22235 ## --------------------- ##
22236 ## M4sh Initialization. ##
22237 ## --------------------- ##
22239 # Be Bourne compatible
22240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22244 # is contrary to our usage. Disable this feature.
22245 alias -g '${1+"$@"}'='"$@"'
22246 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22250 # Support unset when possible.
22251 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22258 # Work around bugs in pre-3.0 UWIN ksh.
22259 $as_unset ENV MAIL MAILPATH
22266 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22267 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22268 LC_TELEPHONE LC_TIME
22270 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22271 eval $as_var=C; export $as_var
22277 # Required to use basename.
22278 if expr a : '\(a\)' >/dev/null 2>&1; then
22284 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22285 as_basename=basename
22291 # Name of the executable.
22292 as_me=`$as_basename "$0" ||
22293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22294 X"$0" : 'X\(//\)$' \| \
22295 X"$0" : 'X\(/\)$' \| \
22296 . : '\(.\)' 2>/dev/null ||
22298 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22299 /^X\/\(\/\/\)$/{ s//\1/; q; }
22300 /^X\/\(\/\).*/{ s//\1/; q; }
22304 # PATH needs CR, and LINENO needs CR and PATH.
22305 # Avoid depending upon Character Ranges.
22306 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22307 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22308 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22309 as_cr_digits='0123456789'
22310 as_cr_alnum=$as_cr_Letters$as_cr_digits
22312 # The user is always right.
22313 if test "${PATH_SEPARATOR+set}" != set; then
22314 echo "#! /bin/sh" >conf$$.sh
22315 echo "exit 0" >>conf$$.sh
22317 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22326 as_lineno_1=$LINENO
22327 as_lineno_2=$LINENO
22328 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22329 test "x$as_lineno_1" != "x$as_lineno_2" &&
22330 test "x$as_lineno_3" = "x$as_lineno_2" || {
22331 # Find who we are. Look in the path if we contain no path at all
22334 *[\\/]* ) as_myself=$0 ;;
22335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22336 for as_dir in $PATH
22339 test -z "$as_dir" && as_dir=.
22340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22345 # We did not find ourselves, most probably we were run as `sh COMMAND'
22346 # in which case we are not to be found in the path.
22347 if test "x$as_myself" = x; then
22350 if test ! -f "$as_myself"; then
22351 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22352 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22353 { (exit 1); exit 1; }; }
22355 case $CONFIG_SHELL in
22357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22358 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22361 test -z "$as_dir" && as_dir=.
22362 for as_base in sh bash ksh sh5; do
22365 if ("$as_dir/$as_base" -c '
22366 as_lineno_1=$LINENO
22367 as_lineno_2=$LINENO
22368 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22369 test "x$as_lineno_1" != "x$as_lineno_2" &&
22370 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22371 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22372 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22373 CONFIG_SHELL=$as_dir/$as_base
22374 export CONFIG_SHELL
22375 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22383 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22384 # uniformly replaced by the line number. The first 'sed' inserts a
22385 # line-number line before each line; the second 'sed' does the real
22386 # work. The second script uses 'N' to pair each line-number line
22387 # with the numbered line, and appends trailing '-' during
22388 # substitution so that $LINENO is not a special case at line end.
22389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22390 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22391 sed '=' <$as_myself |
22396 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22399 s,^['$as_cr_digits']*\n,,
22400 ' >$as_me.lineno &&
22401 chmod +x $as_me.lineno ||
22402 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22403 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22404 { (exit 1); exit 1; }; }
22406 # Don't try to exec as it changes $[0], causing all sort of problems
22407 # (the dirname of $[0] is not the place where we might find the
22408 # original and so on. Autoconf is especially sensible to this).
22410 # Exit status is that of the last command.
22415 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22416 *c*,-n*) ECHO_N= ECHO_C='
22418 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22419 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22422 if expr a : '\(a\)' >/dev/null 2>&1; then
22428 rm -f conf$$ conf$$.exe conf$$.file
22430 if ln -s conf$$.file conf$$ 2>/dev/null; then
22431 # We could just check for DJGPP; but this test a) works b) is more generic
22432 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22433 if test -f conf$$.exe; then
22434 # Don't use ln at all; we don't have any links
22439 elif ln conf$$.file conf$$ 2>/dev/null; then
22444 rm -f conf$$ conf$$.exe conf$$.file
22446 if mkdir -p . 2>/dev/null; then
22452 as_executable_p="test -f"
22454 # Sed expression to map a string onto a valid CPP name.
22455 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22457 # Sed expression to map a string onto a valid variable name.
22458 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22462 # We need space, tab and new line, in precisely that order.
22472 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22473 # report actual input values of CONFIG_FILES etc. instead of their
22474 # values after options handling. Logging --version etc. is OK.
22478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22479 ## Running $as_me. ##
22484 This file was extended by [LLVM] $as_me [1.3], which was
22485 generated by GNU Autoconf 2.57. Invocation command line was
22487 CONFIG_FILES = $CONFIG_FILES
22488 CONFIG_HEADERS = $CONFIG_HEADERS
22489 CONFIG_LINKS = $CONFIG_LINKS
22490 CONFIG_COMMANDS = $CONFIG_COMMANDS
22494 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22498 # Files that config.status was made for.
22499 if test -n "$ac_config_files"; then
22500 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22503 if test -n "$ac_config_headers"; then
22504 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22507 if test -n "$ac_config_links"; then
22508 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22511 if test -n "$ac_config_commands"; then
22512 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22515 cat >>$CONFIG_STATUS <<\_ACEOF
22518 \`$as_me' instantiates files from templates according to the
22519 current configuration.
22521 Usage: $0 [OPTIONS] [FILE]...
22523 -h, --help print this help, then exit
22524 -V, --version print version number, then exit
22525 -q, --quiet do not print progress messages
22526 -d, --debug don't remove temporary files
22527 --recheck update $as_me by reconfiguring in the same conditions
22528 --file=FILE[:TEMPLATE]
22529 instantiate the configuration file FILE
22530 --header=FILE[:TEMPLATE]
22531 instantiate the configuration header FILE
22533 Configuration files:
22536 Configuration headers:
22539 Configuration commands:
22542 Report bugs to <bug-autoconf@gnu.org>."
22545 cat >>$CONFIG_STATUS <<_ACEOF
22547 [LLVM] config.status [1.3]
22548 configured by $0, generated by GNU Autoconf 2.57,
22549 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22551 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22552 Free Software Foundation, Inc.
22553 This config.status script is free software; the Free Software Foundation
22554 gives unlimited permission to copy, distribute and modify it."
22559 cat >>$CONFIG_STATUS <<\_ACEOF
22560 # If no file are specified by the user, then we need to provide default
22561 # value. By we need to know if files were specified by the user.
22567 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22568 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22576 *) # This is not an option, so the user has probably given explicit
22579 ac_need_defaults=false;;
22583 # Handling of the options.
22585 cat >>$CONFIG_STATUS <<\_ACEOF
22586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22588 --version | --vers* | -V )
22589 echo "$ac_cs_version"; exit 0 ;;
22591 # Conflict between --help and --header
22592 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22593 Try \`$0 --help' for more information." >&5
22594 echo "$as_me: error: ambiguous option: $1
22595 Try \`$0 --help' for more information." >&2;}
22596 { (exit 1); exit 1; }; };;
22597 --help | --hel | -h )
22598 echo "$ac_cs_usage"; exit 0 ;;
22599 --debug | --d* | -d )
22601 --file | --fil | --fi | --f )
22603 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22604 ac_need_defaults=false;;
22605 --header | --heade | --head | --hea )
22607 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22608 ac_need_defaults=false;;
22609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22613 # This is an error.
22614 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22615 Try \`$0 --help' for more information." >&5
22616 echo "$as_me: error: unrecognized option: $1
22617 Try \`$0 --help' for more information." >&2;}
22618 { (exit 1); exit 1; }; } ;;
22620 *) ac_config_targets="$ac_config_targets $1" ;;
22626 ac_configure_extra_args=
22628 if $ac_cs_silent; then
22630 ac_configure_extra_args="$ac_configure_extra_args --silent"
22634 cat >>$CONFIG_STATUS <<_ACEOF
22635 if \$ac_cs_recheck; then
22636 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22637 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22642 cat >>$CONFIG_STATUS <<_ACEOF
22644 # INIT-COMMANDS section.
22647 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22648 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22649 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22650 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22651 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22652 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22653 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22654 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
22655 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22656 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22657 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22658 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22659 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22660 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22661 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22662 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22663 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22664 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22665 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22666 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22667 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22668 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22669 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
22670 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22671 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22672 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
22673 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
22674 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
22675 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22676 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22677 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22678 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22679 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22680 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22681 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22682 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22683 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22684 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22685 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22686 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22687 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22688 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22689 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
22690 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22691 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22692 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
22693 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22694 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22695 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22701 cat >>$CONFIG_STATUS <<\_ACEOF
22702 for ac_config_target in $ac_config_targets
22704 case "$ac_config_target" in
22705 # Handling of arguments.
22706 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22707 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
22708 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
22709 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
22710 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
22711 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
22712 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22713 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22714 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22715 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22716 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22717 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22718 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22719 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
22720 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22721 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22722 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22723 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22724 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22725 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22726 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22727 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22728 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22729 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22730 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22731 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22732 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22733 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22734 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
22735 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22736 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
22737 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
22738 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
22739 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
22740 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22741 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
22742 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22743 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22744 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22745 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22746 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22747 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22748 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22749 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22750 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22751 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22752 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22753 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22754 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
22755 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22756 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
22757 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
22758 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22759 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22760 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22761 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22762 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22763 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22764 { (exit 1); exit 1; }; };;
22768 # If the user did not use the arguments to specify the items to instantiate,
22769 # then the envvar interface is used. Set only those that are not.
22770 # We use the long form for the default assignment because of an extremely
22771 # bizarre bug on SunOS 4.1.3.
22772 if $ac_need_defaults; then
22773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22778 # Have a temporary directory for convenience. Make it in the build tree
22779 # simply because there is no reason to put it here, and in addition,
22780 # creating and moving files from /tmp can sometimes cause problems.
22781 # Create a temporary directory, and hook for its removal unless debugging.
22784 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22785 trap '{ (exit 1); exit 1; }' 1 2 13 15
22788 # Create a (secure) tmp directory for tmp files.
22791 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22792 test -n "$tmp" && test -d "$tmp"
22795 tmp=./confstat$$-$RANDOM
22796 (umask 077 && mkdir $tmp)
22799 echo "$me: cannot create a temporary directory in ." >&2
22800 { (exit 1); exit 1; }
22805 cat >>$CONFIG_STATUS <<_ACEOF
22808 # CONFIG_FILES section.
22811 # No need to generate the scripts if there are no CONFIG_FILES.
22812 # This happens for instance when ./config.status config.h
22813 if test -n "\$CONFIG_FILES"; then
22814 # Protect against being on the right side of a sed subst in config.status.
22815 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22816 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22817 s,@SHELL@,$SHELL,;t t
22818 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22819 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22820 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22821 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22822 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22823 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22824 s,@exec_prefix@,$exec_prefix,;t t
22825 s,@prefix@,$prefix,;t t
22826 s,@program_transform_name@,$program_transform_name,;t t
22827 s,@bindir@,$bindir,;t t
22828 s,@sbindir@,$sbindir,;t t
22829 s,@libexecdir@,$libexecdir,;t t
22830 s,@datadir@,$datadir,;t t
22831 s,@sysconfdir@,$sysconfdir,;t t
22832 s,@sharedstatedir@,$sharedstatedir,;t t
22833 s,@localstatedir@,$localstatedir,;t t
22834 s,@libdir@,$libdir,;t t
22835 s,@includedir@,$includedir,;t t
22836 s,@oldincludedir@,$oldincludedir,;t t
22837 s,@infodir@,$infodir,;t t
22838 s,@mandir@,$mandir,;t t
22839 s,@build_alias@,$build_alias,;t t
22840 s,@host_alias@,$host_alias,;t t
22841 s,@target_alias@,$target_alias,;t t
22842 s,@DEFS@,$DEFS,;t t
22843 s,@ECHO_C@,$ECHO_C,;t t
22844 s,@ECHO_N@,$ECHO_N,;t t
22845 s,@ECHO_T@,$ECHO_T,;t t
22846 s,@LIBS@,$LIBS,;t t
22847 s,@subdirs@,$subdirs,;t t
22848 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22849 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22850 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22851 s,@build@,$build,;t t
22852 s,@build_cpu@,$build_cpu,;t t
22853 s,@build_vendor@,$build_vendor,;t t
22854 s,@build_os@,$build_os,;t t
22855 s,@host@,$host,;t t
22856 s,@host_cpu@,$host_cpu,;t t
22857 s,@host_vendor@,$host_vendor,;t t
22858 s,@host_os@,$host_os,;t t
22859 s,@target@,$target,;t t
22860 s,@target_cpu@,$target_cpu,;t t
22861 s,@target_vendor@,$target_vendor,;t t
22862 s,@target_os@,$target_os,;t t
22864 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22865 s,@ARCH@,$ARCH,;t t
22867 s,@CXXFLAGS@,$CXXFLAGS,;t t
22868 s,@LDFLAGS@,$LDFLAGS,;t t
22869 s,@CPPFLAGS@,$CPPFLAGS,;t t
22870 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22871 s,@EXEEXT@,$EXEEXT,;t t
22872 s,@OBJEXT@,$OBJEXT,;t t
22874 s,@CFLAGS@,$CFLAGS,;t t
22875 s,@ac_ct_CC@,$ac_ct_CC,;t t
22877 s,@ifGNUmake@,$ifGNUmake,;t t
22879 s,@LEXLIB@,$LEXLIB,;t t
22880 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22881 s,@YACC@,$YACC,;t t
22882 s,@BISON@,$BISON,;t t
22883 s,@EGREP@,$EGREP,;t t
22884 s,@LN_S@,$LN_S,;t t
22885 s,@ECHO@,$ECHO,;t t
22887 s,@ac_ct_AR@,$ac_ct_AR,;t t
22888 s,@RANLIB@,$RANLIB,;t t
22889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22890 s,@STRIP@,$STRIP,;t t
22891 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22892 s,@CXXCPP@,$CXXCPP,;t t
22894 s,@FFLAGS@,$FFLAGS,;t t
22895 s,@ac_ct_F77@,$ac_ct_F77,;t t
22896 s,@LIBTOOL@,$LIBTOOL,;t t
22898 s,@ETAGS@,$ETAGS,;t t
22899 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
22900 s,@PYTHON@,$PYTHON,;t t
22901 s,@QMTEST@,$QMTEST,;t t
22902 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
22903 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
22904 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
22905 s,@ENDIAN@,$ENDIAN,;t t
22906 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
22907 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
22908 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
22909 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
22910 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
22911 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
22912 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
22913 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
22914 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
22915 s,@ALLOCA@,$ALLOCA,;t t
22916 s,@MMAP_FILE@,$MMAP_FILE,;t t
22917 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22918 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
22919 s,@USE_SPEC95@,$USE_SPEC95,;t t
22920 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
22921 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
22922 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
22923 s,@USE_POVRAY@,$USE_POVRAY,;t t
22925 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22927 s,@LLVMCC1@,$LLVMCC1,;t t
22928 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
22930 s,@PAPIDIR@,$PAPIDIR,;t t
22931 s,@SHLIBEXT@,$SHLIBEXT,;t t
22932 s,@LIBOBJS@,$LIBOBJS,;t t
22933 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22938 cat >>$CONFIG_STATUS <<\_ACEOF
22939 # Split the substitutions into bite-sized pieces for seds with
22940 # small command number limits, like on Digital OSF/1 and HP-UX.
22941 ac_max_sed_lines=48
22942 ac_sed_frag=1 # Number of current file.
22943 ac_beg=1 # First line for current file.
22944 ac_end=$ac_max_sed_lines # Line after last line for current file.
22947 while $ac_more_lines; do
22948 if test $ac_beg -gt 1; then
22949 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22951 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22953 if test ! -s $tmp/subs.frag; then
22954 ac_more_lines=false
22956 # The purpose of the label and of the branching condition is to
22957 # speed up the sed processing (if there are no `@' at all, there
22958 # is no need to browse any of the substitutions).
22959 # These are the two extra sed commands mentioned above.
22961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22962 if test -z "$ac_sed_cmds"; then
22963 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22965 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22967 ac_sed_frag=`expr $ac_sed_frag + 1`
22969 ac_end=`expr $ac_end + $ac_max_sed_lines`
22972 if test -z "$ac_sed_cmds"; then
22975 fi # test -n "$CONFIG_FILES"
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22982 - | *:- | *:-:* ) # input from stdin
22984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988 * ) ac_file_in=$ac_file.in ;;
22991 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22994 X"$ac_file" : 'X\(//\)[^/]' \| \
22995 X"$ac_file" : 'X\(//\)$' \| \
22996 X"$ac_file" : 'X\(/\)' \| \
22997 . : '\(.\)' 2>/dev/null ||
22999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23001 /^X\(\/\/\)$/{ s//\1/; q; }
23002 /^X\(\/\).*/{ s//\1/; q; }
23004 { if $as_mkdir_p; then
23009 while test ! -d "$as_dir"; do
23010 as_dirs="$as_dir $as_dirs"
23011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23013 X"$as_dir" : 'X\(//\)[^/]' \| \
23014 X"$as_dir" : 'X\(//\)$' \| \
23015 X"$as_dir" : 'X\(/\)' \| \
23016 . : '\(.\)' 2>/dev/null ||
23018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23020 /^X\(\/\/\)$/{ s//\1/; q; }
23021 /^X\(\/\).*/{ s//\1/; q; }
23024 test ! -n "$as_dirs" || mkdir $as_dirs
23025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23027 { (exit 1); exit 1; }; }; }
23031 if test "$ac_dir" != .; then
23032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23033 # A "../" for each directory in $ac_dir_suffix.
23034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23036 ac_dir_suffix= ac_top_builddir=
23040 .) # No --srcdir option. We are building in place.
23042 if test -z "$ac_top_builddir"; then
23045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23047 [\\/]* | ?:[\\/]* ) # Absolute path.
23048 ac_srcdir=$srcdir$ac_dir_suffix;
23049 ac_top_srcdir=$srcdir ;;
23050 *) # Relative path.
23051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23054 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23056 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23057 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23058 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23059 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23067 if test x"$ac_file" != x-; then
23068 { echo "$as_me:$LINENO: creating $ac_file" >&5
23069 echo "$as_me: creating $ac_file" >&6;}
23072 # Let's still pretend it is `configure' which instantiates (i.e., don't
23073 # use $as_me), people would be surprised to read:
23074 # /* config.h. Generated by config.status. */
23075 if test x"$ac_file" = x-; then
23078 configure_input="$ac_file. "
23080 configure_input=$configure_input"Generated from `echo $ac_file_in |
23081 sed 's,.*/,,'` by configure."
23083 # First look for the input files in the build tree, otherwise in the
23085 ac_file_inputs=`IFS=:
23086 for f in $ac_file_in; do
23088 -) echo $tmp/stdin ;;
23090 # Absolute (can't be DOS-style, as IFS=:)
23091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23092 echo "$as_me: error: cannot find input file: $f" >&2;}
23093 { (exit 1); exit 1; }; }
23096 if test -f "$f"; then
23099 elif test -f "$srcdir/$f"; then
23104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23105 echo "$as_me: error: cannot find input file: $f" >&2;}
23106 { (exit 1); exit 1; }; }
23109 done` || { (exit 1); exit 1; }
23111 cat >>$CONFIG_STATUS <<_ACEOF
23115 cat >>$CONFIG_STATUS <<\_ACEOF
23117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23118 s,@configure_input@,$configure_input,;t t
23119 s,@srcdir@,$ac_srcdir,;t t
23120 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23121 s,@top_srcdir@,$ac_top_srcdir,;t t
23122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23123 s,@builddir@,$ac_builddir,;t t
23124 s,@abs_builddir@,$ac_abs_builddir,;t t
23125 s,@top_builddir@,$ac_top_builddir,;t t
23126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23127 s,@INSTALL@,$ac_INSTALL,;t t
23128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23130 if test x"$ac_file" != x-; then
23131 mv $tmp/out $ac_file
23139 cat >>$CONFIG_STATUS <<\_ACEOF
23142 # CONFIG_HEADER section.
23145 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23146 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23148 # ac_d sets the value in "#define NAME VALUE" lines.
23149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23150 ac_dB='[ ].*$,\1#\2'
23153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23155 ac_uB='$,\1#\2define\3'
23159 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23162 - | *:- | *:-:* ) # input from stdin
23164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23168 * ) ac_file_in=$ac_file.in ;;
23171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23172 echo "$as_me: creating $ac_file" >&6;}
23174 # First look for the input files in the build tree, otherwise in the
23176 ac_file_inputs=`IFS=:
23177 for f in $ac_file_in; do
23179 -) echo $tmp/stdin ;;
23181 # Absolute (can't be DOS-style, as IFS=:)
23182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23183 echo "$as_me: error: cannot find input file: $f" >&2;}
23184 { (exit 1); exit 1; }; }
23187 if test -f "$f"; then
23190 elif test -f "$srcdir/$f"; then
23195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23196 echo "$as_me: error: cannot find input file: $f" >&2;}
23197 { (exit 1); exit 1; }; }
23200 done` || { (exit 1); exit 1; }
23201 # Remove the trailing spaces.
23202 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23206 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23207 # `conftest.undefs', that substitutes the proper values into
23208 # config.h.in to produce config.h. The first handles `#define'
23209 # templates, and the second `#undef' templates.
23210 # And first: Protect against being on the right side of a sed subst in
23211 # config.status. Protect against being in an unquoted here document
23212 # in config.status.
23213 rm -f conftest.defines conftest.undefs
23214 # Using a here document instead of a string reduces the quoting nightmare.
23215 # Putting comments in sed scripts is not portable.
23217 # `end' is used to avoid that the second main sed command (meant for
23218 # 0-ary CPP macros) applies to n-ary macro definitions.
23219 # See the Autoconf documentation for `clear'.
23220 cat >confdef2sed.sed <<\_ACEOF
23225 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23227 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23230 # If some macros were called several times there might be several times
23231 # the same #defines, which is useless. Nevertheless, we may not want to
23232 # sort them, since we want the *last* AC-DEFINE to be honored.
23233 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23234 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23235 rm -f confdef2sed.sed
23237 # This sed command replaces #undef with comments. This is necessary, for
23238 # example, in the case of _POSIX_SOURCE, which is predefined and required
23239 # on some systems where configure will not decide to define it.
23240 cat >>conftest.undefs <<\_ACEOF
23241 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23244 # Break up conftest.defines because some shells have a limit on the size
23245 # of here documents, and old seds have small limits too (100 cmds).
23246 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23247 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23248 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23249 echo ' :' >>$CONFIG_STATUS
23250 rm -f conftest.tail
23251 while grep . conftest.defines >/dev/null
23253 # Write a limited-size here document to $tmp/defines.sed.
23254 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23255 # Speed up: don't consider the non `#define' lines.
23256 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23257 # Work around the forget-to-reset-the-flag bug.
23258 echo 't clr' >>$CONFIG_STATUS
23259 echo ': clr' >>$CONFIG_STATUS
23260 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23262 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23264 mv $tmp/out $tmp/in
23266 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23267 rm -f conftest.defines
23268 mv conftest.tail conftest.defines
23270 rm -f conftest.defines
23271 echo ' fi # grep' >>$CONFIG_STATUS
23272 echo >>$CONFIG_STATUS
23274 # Break up conftest.undefs because some shells have a limit on the size
23275 # of here documents, and old seds have small limits too (100 cmds).
23276 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23277 rm -f conftest.tail
23278 while grep . conftest.undefs >/dev/null
23280 # Write a limited-size here document to $tmp/undefs.sed.
23281 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23282 # Speed up: don't consider the non `#undef'
23283 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23284 # Work around the forget-to-reset-the-flag bug.
23285 echo 't clr' >>$CONFIG_STATUS
23286 echo ': clr' >>$CONFIG_STATUS
23287 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23289 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23291 mv $tmp/out $tmp/in
23293 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23294 rm -f conftest.undefs
23295 mv conftest.tail conftest.undefs
23297 rm -f conftest.undefs
23299 cat >>$CONFIG_STATUS <<\_ACEOF
23300 # Let's still pretend it is `configure' which instantiates (i.e., don't
23301 # use $as_me), people would be surprised to read:
23302 # /* config.h. Generated by config.status. */
23303 if test x"$ac_file" = x-; then
23304 echo "/* Generated by configure. */" >$tmp/config.h
23306 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23308 cat $tmp/in >>$tmp/config.h
23310 if test x"$ac_file" != x-; then
23311 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23312 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23313 echo "$as_me: $ac_file is unchanged" >&6;}
23315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23317 X"$ac_file" : 'X\(//\)[^/]' \| \
23318 X"$ac_file" : 'X\(//\)$' \| \
23319 X"$ac_file" : 'X\(/\)' \| \
23320 . : '\(.\)' 2>/dev/null ||
23322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23324 /^X\(\/\/\)$/{ s//\1/; q; }
23325 /^X\(\/\).*/{ s//\1/; q; }
23327 { if $as_mkdir_p; then
23332 while test ! -d "$as_dir"; do
23333 as_dirs="$as_dir $as_dirs"
23334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23336 X"$as_dir" : 'X\(//\)[^/]' \| \
23337 X"$as_dir" : 'X\(//\)$' \| \
23338 X"$as_dir" : 'X\(/\)' \| \
23339 . : '\(.\)' 2>/dev/null ||
23341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23343 /^X\(\/\/\)$/{ s//\1/; q; }
23344 /^X\(\/\).*/{ s//\1/; q; }
23347 test ! -n "$as_dirs" || mkdir $as_dirs
23348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23349 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23350 { (exit 1); exit 1; }; }; }
23353 mv $tmp/config.h $ac_file
23357 rm -f $tmp/config.h
23361 cat >>$CONFIG_STATUS <<\_ACEOF
23364 # CONFIG_COMMANDS section.
23366 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23367 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23368 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23369 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23370 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23371 X"$ac_dest" : 'X\(//\)[^/]' \| \
23372 X"$ac_dest" : 'X\(//\)$' \| \
23373 X"$ac_dest" : 'X\(/\)' \| \
23374 . : '\(.\)' 2>/dev/null ||
23376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23378 /^X\(\/\/\)$/{ s//\1/; q; }
23379 /^X\(\/\).*/{ s//\1/; q; }
23383 if test "$ac_dir" != .; then
23384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23385 # A "../" for each directory in $ac_dir_suffix.
23386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23388 ac_dir_suffix= ac_top_builddir=
23392 .) # No --srcdir option. We are building in place.
23394 if test -z "$ac_top_builddir"; then
23397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23399 [\\/]* | ?:[\\/]* ) # Absolute path.
23400 ac_srcdir=$srcdir$ac_dir_suffix;
23401 ac_top_srcdir=$srcdir ;;
23402 *) # Relative path.
23403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23406 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23408 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23409 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23410 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23411 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23414 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23415 echo "$as_me: executing $ac_dest commands" >&6;}
23417 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23418 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23419 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23420 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23421 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23422 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23423 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23424 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23425 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23426 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23427 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23428 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23429 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23430 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23431 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23432 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23433 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23434 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23435 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23436 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23437 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23438 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23439 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
23440 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23441 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23442 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 ;;
23443 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
23444 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
23445 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23446 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23447 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 ;;
23448 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 ;;
23449 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 ;;
23450 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 ;;
23451 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 ;;
23452 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 ;;
23453 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 ;;
23454 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 ;;
23455 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 ;;
23456 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 ;;
23457 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 ;;
23458 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 ;;
23459 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 ;;
23460 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23461 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23462 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
23463 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23464 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23465 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23470 cat >>$CONFIG_STATUS <<\_ACEOF
23472 { (exit 0); exit 0; }
23474 chmod +x $CONFIG_STATUS
23475 ac_clean_files=$ac_clean_files_save
23478 # configure is writing to config.log, and then calls config.status.
23479 # config.status does its own redirection, appending to config.log.
23480 # Unfortunately, on DOS this fails, as config.log is still kept open
23481 # by configure, so config.status won't be able to write to it; its
23482 # output is simply discarded. So we exec the FD to /dev/null,
23483 # effectively closing config.log, so it can be properly (re)opened and
23484 # appended to by config.status. When coming back to configure, we
23485 # need to make the FD available again.
23486 if test "$no_create" != yes; then
23488 ac_config_status_args=
23489 test "$silent" = yes &&
23490 ac_config_status_args="$ac_config_status_args --quiet"
23492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23495 # would make configure fail if this is the last instruction.
23496 $ac_cs_success || { (exit 1); exit 1; }
23500 # CONFIG_SUBDIRS section.
23502 if test "$no_recursion" != yes; then
23504 # Remove --cache-file and --srcdir arguments so they do not pile up.
23505 ac_sub_configure_args=
23507 for ac_arg in $ac_configure_args; do
23508 if test -n "$ac_prev"; then
23513 -cache-file | --cache-file | --cache-fil | --cache-fi \
23514 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23515 ac_prev=cache_file ;;
23516 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23517 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23520 --config-cache | -C)
23522 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23524 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23526 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23528 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23530 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23534 # Always prepend --prefix to ensure using the same prefix
23535 # in subdir configurations.
23536 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23539 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23541 # Do not complain, so a configure script can configure whichever
23542 # parts of a large source tree are present.
23543 test -d $srcdir/$ac_dir || continue
23545 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23546 echo "$as_me: configuring in $ac_dir" >&6;}
23547 { if $as_mkdir_p; then
23552 while test ! -d "$as_dir"; do
23553 as_dirs="$as_dir $as_dirs"
23554 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23556 X"$as_dir" : 'X\(//\)[^/]' \| \
23557 X"$as_dir" : 'X\(//\)$' \| \
23558 X"$as_dir" : 'X\(/\)' \| \
23559 . : '\(.\)' 2>/dev/null ||
23561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23563 /^X\(\/\/\)$/{ s//\1/; q; }
23564 /^X\(\/\).*/{ s//\1/; q; }
23567 test ! -n "$as_dirs" || mkdir $as_dirs
23568 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23569 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23570 { (exit 1); exit 1; }; }; }
23574 if test "$ac_dir" != .; then
23575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23576 # A "../" for each directory in $ac_dir_suffix.
23577 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23579 ac_dir_suffix= ac_top_builddir=
23583 .) # No --srcdir option. We are building in place.
23585 if test -z "$ac_top_builddir"; then
23588 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23590 [\\/]* | ?:[\\/]* ) # Absolute path.
23591 ac_srcdir=$srcdir$ac_dir_suffix;
23592 ac_top_srcdir=$srcdir ;;
23593 *) # Relative path.
23594 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23595 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23597 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23599 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23600 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23601 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23602 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23607 # Check for guested configure; otherwise get Cygnus style configure.
23608 if test -f $ac_srcdir/configure.gnu; then
23609 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23610 elif test -f $ac_srcdir/configure; then
23611 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23612 elif test -f $ac_srcdir/configure.in; then
23613 ac_sub_configure=$ac_configure
23615 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23616 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23620 # The recursion is here.
23621 if test -n "$ac_sub_configure"; then
23622 # Make the cache file name correct relative to the subdirectory.
23623 case $cache_file in
23624 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23625 *) # Relative path.
23626 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23629 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23630 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23631 # The eval makes quoting arguments work.
23632 eval $ac_sub_configure $ac_sub_configure_args \
23633 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23634 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23635 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23636 { (exit 1); exit 1; }; }
23644 if test $llvmgccwarn = yes
23646 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23647 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23648 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23649 echo "$as_me: WARNING: ***** appear to be working." >&2;}
23650 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23651 echo "$as_me: WARNING: ***** " >&2;}
23652 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23653 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23654 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23655 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23656 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23657 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}