Revert r135493 & r135463
[official-gcc.git] / boehm-gc / configure
blobec0362f767b385bc638631d064c57ef473d4850e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CXXCPP_set=${CXXCPP+set}
923 ac_env_CXXCPP_value=$CXXCPP
924 ac_cv_env_CXXCPP_set=${CXXCPP+set}
925 ac_cv_env_CXXCPP_value=$CXXCPP
928 # Report the --help message.
930 if test "$ac_init_help" = "long"; then
931 # Omit some internal or obsolete options to make the list less imposing.
932 # This message is too long to be a string in the A/UX 3.1 sh.
933 cat <<_ACEOF
934 \`configure' configures this package to adapt to many kinds of systems.
936 Usage: $0 [OPTION]... [VAR=VALUE]...
938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
939 VAR=VALUE. See below for descriptions of some of the useful variables.
941 Defaults for the options are specified in brackets.
943 Configuration:
944 -h, --help display this help and exit
945 --help=short display options specific to this package
946 --help=recursive display the short help of all the included packages
947 -V, --version display version information and exit
948 -q, --quiet, --silent do not print \`checking...' messages
949 --cache-file=FILE cache test results in FILE [disabled]
950 -C, --config-cache alias for \`--cache-file=config.cache'
951 -n, --no-create do not create output files
952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954 _ACEOF
956 cat <<_ACEOF
957 Installation directories:
958 --prefix=PREFIX install architecture-independent files in PREFIX
959 [$ac_default_prefix]
960 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
961 [PREFIX]
963 By default, \`make install' will install all the files in
964 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
965 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
966 for instance \`--prefix=\$HOME'.
968 For better control, use the options below.
970 Fine tuning of the installation directories:
971 --bindir=DIR user executables [EPREFIX/bin]
972 --sbindir=DIR system admin executables [EPREFIX/sbin]
973 --libexecdir=DIR program executables [EPREFIX/libexec]
974 --datadir=DIR read-only architecture-independent data [PREFIX/share]
975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
978 --libdir=DIR object code libraries [EPREFIX/lib]
979 --includedir=DIR C header files [PREFIX/include]
980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
981 --infodir=DIR info documentation [PREFIX/info]
982 --mandir=DIR man documentation [PREFIX/man]
983 _ACEOF
985 cat <<\_ACEOF
987 Program names:
988 --program-prefix=PREFIX prepend PREFIX to installed program names
989 --program-suffix=SUFFIX append SUFFIX to installed program names
990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
992 System types:
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995 --target=TARGET configure for building compilers for TARGET [HOST]
996 _ACEOF
999 if test -n "$ac_init_help"; then
1001 cat <<\_ACEOF
1003 Optional Features:
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --enable-multilib build many library versions (default)
1007 --disable-dependency-tracking speeds up one-time build
1008 --enable-dependency-tracking do not reject slow dependency extractors
1009 --enable-maintainer-mode enable make rules and dependencies not useful
1010 (and sometimes confusing) to the casual installer
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --enable-parallel-mark parallelize marking and free list construction
1019 --enable-gc-debug include full support for pointer backtracing etc.
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-target-subdir=SUBDIR
1028 configuring with a cross compiler
1029 --with-cross-host=HOST configuring with a cross compiler
1030 --with-ecos enable runtime eCos target support
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
1041 CPP C preprocessor
1042 CXXCPP C++ preprocessor
1044 Use these variables to override the choices made by `configure' or to help
1045 it to find libraries and programs with nonstandard names/locations.
1047 _ACEOF
1050 if test "$ac_init_help" = "recursive"; then
1051 # If there are subdirs, report their specific --help.
1052 ac_popdir=`pwd`
1053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054 test -d $ac_dir || continue
1055 ac_builddir=.
1057 if test "$ac_dir" != .; then
1058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059 # A "../" for each directory in $ac_dir_suffix.
1060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061 else
1062 ac_dir_suffix= ac_top_builddir=
1065 case $srcdir in
1066 .) # No --srcdir option. We are building in place.
1067 ac_srcdir=.
1068 if test -z "$ac_top_builddir"; then
1069 ac_top_srcdir=.
1070 else
1071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072 fi ;;
1073 [\\/]* | ?:[\\/]* ) # Absolute path.
1074 ac_srcdir=$srcdir$ac_dir_suffix;
1075 ac_top_srcdir=$srcdir ;;
1076 *) # Relative path.
1077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 esac
1081 # Do not use `cd foo && pwd` to compute absolute paths, because
1082 # the directories may not exist.
1083 case `pwd` in
1084 .) ac_abs_builddir="$ac_dir";;
1086 case "$ac_dir" in
1087 .) ac_abs_builddir=`pwd`;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1089 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1090 esac;;
1091 esac
1092 case $ac_abs_builddir in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 case ${ac_top_builddir}. in
1096 .) ac_abs_top_builddir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1099 esac;;
1100 esac
1101 case $ac_abs_builddir in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1104 case $ac_srcdir in
1105 .) ac_abs_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1108 esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 case $ac_top_srcdir in
1114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1117 esac;;
1118 esac
1120 cd $ac_dir
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1123 echo
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1126 echo
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
1129 test -f $ac_srcdir/configure.in; then
1130 echo
1131 $ac_configure --help
1132 else
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 cd $ac_popdir
1136 done
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1141 cat <<\_ACEOF
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147 exit 0
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.59. Invocation command line was
1157 $ $0 $@
1159 _ACEOF
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183 _ASUNAME
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1188 IFS=$as_save_IFS
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1191 done
1193 } >&5
1195 cat >&5 <<_ACEOF
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1202 _ACEOF
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1217 for ac_arg
1219 case $ac_arg in
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 continue ;;
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 esac
1227 case $ac_pass in
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1233 else
1234 case $ac_arg in
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 esac
1243 -* ) ac_must_keep_next=true ;;
1244 esac
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1248 ac_sep=" "
1250 esac
1251 done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log. We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1264 echo
1266 cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271 echo
1272 # The following way of writing the cache mishandles newlines in values,
1274 (set) 2>&1 |
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 *ac_space=\ *)
1277 sed -n \
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282 sed -n \
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 esac;
1287 echo
1289 cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294 echo
1295 for ac_var in $ac_subst_vars
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1299 done | sort
1300 echo
1302 if test -n "$ac_subst_files"; then
1303 cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308 echo
1309 for ac_var in $ac_subst_files
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1317 if test -s confdefs.h; then
1318 cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323 echo
1324 sed "/^$/d" confdefs.h | sort
1325 echo
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1330 } >&5
1331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333 exit $exit_status
1335 for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1345 # Predefined preprocessor variables.
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 else
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1386 . "$ac_site_file"
1388 done
1390 if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396 case $cache_file in
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1399 esac
1401 else
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404 >$cache_file
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1417 set,)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,set)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,);;
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 # differences in whitespace do not lead to failure.
1429 ac_old_val_w=`echo x $ac_old_val`
1430 ac_new_val_w=`echo x $ac_new_val`
1431 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 ac_cache_corrupted=:
1435 else
1436 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1437 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1438 eval $ac_var=\$ac_old_val
1440 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1441 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1442 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1443 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1444 fi;;
1445 esac
1446 # Pass precious variables to config.status.
1447 if test "$ac_new_set" = set; then
1448 case $ac_new_val in
1449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451 *) ac_arg=$ac_var=$ac_new_val ;;
1452 esac
1453 case " $ac_configure_args " in
1454 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1455 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456 esac
1458 done
1459 if $ac_cache_corrupted; then
1460 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464 { (exit 1); exit 1; }; }
1467 ac_ext=c
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492 # This works around the fact that libtool configuration may change LD
1493 # for this particular configuration, but some shells, instead of
1494 # keeping the changes in LD private, export them just because LD is
1495 # exported.
1496 ORIGINAL_LD_FOR_MULTILIBS=$LD
1498 # Default to --enable-multilib
1499 # Check whether --enable-multilib or --disable-multilib was given.
1500 if test "${enable_multilib+set}" = set; then
1501 enableval="$enable_multilib"
1502 case "$enableval" in
1503 yes) multilib=yes ;;
1504 no) multilib=no ;;
1505 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1506 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1507 { (exit 1); exit 1; }; } ;;
1508 esac
1509 else
1510 multilib=yes
1513 # We may get other options which we leave undocumented:
1514 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1515 # See config-ml.in if you want the gory details.
1517 if test "$srcdir" = "."; then
1518 if test "$with_target_subdir" != "."; then
1519 multi_basedir="$srcdir/$with_multisrctop../.."
1520 else
1521 multi_basedir="$srcdir/$with_multisrctop.."
1523 else
1524 multi_basedir="$srcdir/.."
1528 # Even if the default multilib is not a cross compilation,
1529 # it may be that some of the other multilibs are.
1530 if test $cross_compiling = no && test $multilib = yes \
1531 && test "x${with_multisubdir}" != x ; then
1532 cross_compiling=maybe
1535 ac_config_commands="$ac_config_commands default-1"
1538 ac_aux_dir=
1539 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1553 done
1554 if test -z "$ac_aux_dir"; then
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1557 { (exit 1); exit 1; }; }
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 # Make sure we can run config.sub.
1564 $ac_config_sub sun4 >/dev/null 2>&1 ||
1565 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1567 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: checking build system type" >&5
1570 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1571 if test "${ac_cv_build+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 ac_cv_build_alias=$build_alias
1575 test -z "$ac_cv_build_alias" &&
1576 ac_cv_build_alias=`$ac_config_guess`
1577 test -z "$ac_cv_build_alias" &&
1578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580 { (exit 1); exit 1; }; }
1581 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588 echo "${ECHO_T}$ac_cv_build" >&6
1589 build=$ac_cv_build
1590 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 echo "$as_me:$LINENO: checking host system type" >&5
1596 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1597 if test "${ac_cv_host+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 ac_cv_host_alias=$host_alias
1601 test -z "$ac_cv_host_alias" &&
1602 ac_cv_host_alias=$ac_cv_build_alias
1603 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1604 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1605 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1606 { (exit 1); exit 1; }; }
1609 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1610 echo "${ECHO_T}$ac_cv_host" >&6
1611 host=$ac_cv_host
1612 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617 echo "$as_me:$LINENO: checking target system type" >&5
1618 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1619 if test "${ac_cv_target+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 ac_cv_target_alias=$target_alias
1623 test "x$ac_cv_target_alias" = "x" &&
1624 ac_cv_target_alias=$ac_cv_host_alias
1625 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1626 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1627 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1628 { (exit 1); exit 1; }; }
1631 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1632 echo "${ECHO_T}$ac_cv_target" >&6
1633 target=$ac_cv_target
1634 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639 # The aliases save the names the user supplied, while $host etc.
1640 # will get canonicalized.
1641 test -n "$target_alias" &&
1642 test "$program_prefix$program_suffix$program_transform_name" = \
1643 NONENONEs,x,x, &&
1644 program_prefix=${target_alias}-
1646 # Get the 'noncanonical' system names.
1647 case ${build_alias} in
1648 "") build_noncanonical=${build} ;;
1649 *) build_noncanonical=${build_alias} ;;
1650 esac
1652 case ${host_alias} in
1653 "") host_noncanonical=${build_noncanonical} ;;
1654 *) host_noncanonical=${host_alias} ;;
1655 esac
1657 case ${target_alias} in
1658 "") target_noncanonical=${host_noncanonical} ;;
1659 *) target_noncanonical=${target_alias} ;;
1660 esac
1665 # This works around an automake problem.
1666 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1669 am__api_version="1.9"
1670 # Find a good install program. We prefer a C program (faster),
1671 # so one script is as good as another. But avoid the broken or
1672 # incompatible versions:
1673 # SysV /etc/install, /usr/sbin/install
1674 # SunOS /usr/etc/install
1675 # IRIX /sbin/install
1676 # AIX /bin/install
1677 # AmigaOS /C/install, which installs bootblocks on floppy discs
1678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1681 # OS/2's system install, which has a completely different semantic
1682 # ./install, which can be erroneously created by make from ./install.sh.
1683 # Reject install programs that cannot install multiple files.
1684 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1685 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1686 if test -z "$INSTALL"; then
1687 if test "${ac_cv_path_install+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 # Account for people who put trailing slashes in PATH elements.
1696 case $as_dir/ in
1697 ./ | .// | /cC/* | \
1698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1700 /usr/ucb/* ) ;;
1702 # OSF1 and SCO ODT 3.0 have their own names for install.
1703 # Don't use installbsd from OSF since it installs stuff as root
1704 # by default.
1705 for ac_prog in ginstall scoinst install; do
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1708 if test $ac_prog = install &&
1709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1710 # AIX install. It has an incompatible calling convention.
1712 elif test $ac_prog = install &&
1713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1714 # program-specific install script used by HP pwplus--don't use.
1716 else
1717 rm -rf conftest.one conftest.two conftest.dir
1718 echo one > conftest.one
1719 echo two > conftest.two
1720 mkdir conftest.dir
1721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1722 test -s conftest.one && test -s conftest.two &&
1723 test -s conftest.dir/conftest.one &&
1724 test -s conftest.dir/conftest.two
1725 then
1726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1727 break 3
1731 done
1732 done
1734 esac
1735 done
1737 rm -rf conftest.one conftest.two conftest.dir
1740 if test "${ac_cv_path_install+set}" = set; then
1741 INSTALL=$ac_cv_path_install
1742 else
1743 # As a last resort, use the slow shell script. Don't cache a
1744 # value for INSTALL within a source directory, because that will
1745 # break other packages using the cache if that directory is
1746 # removed, or if the value is a relative name.
1747 INSTALL=$ac_install_sh
1750 echo "$as_me:$LINENO: result: $INSTALL" >&5
1751 echo "${ECHO_T}$INSTALL" >&6
1753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1754 # It thinks the first close brace ends the variable substitution.
1755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1761 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1762 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1763 # Just in case
1764 sleep 1
1765 echo timestamp > conftest.file
1766 # Do `set' in a subshell so we don't clobber the current shell's
1767 # arguments. Must try -L first in case configure is actually a
1768 # symlink; some systems play weird games with the mod time of symlinks
1769 # (eg FreeBSD returns the mod time of the symlink's containing
1770 # directory).
1771 if (
1772 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1773 if test "$*" = "X"; then
1774 # -L didn't work.
1775 set X `ls -t $srcdir/configure conftest.file`
1777 rm -f conftest.file
1778 if test "$*" != "X $srcdir/configure conftest.file" \
1779 && test "$*" != "X conftest.file $srcdir/configure"; then
1781 # If neither matched, then we have a broken ls. This can happen
1782 # if, for instance, CONFIG_SHELL is bash and it inherits a
1783 # broken ls alias from the environment. This has actually
1784 # happened. Such a system could not be considered "sane".
1785 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1786 alias in your environment" >&5
1787 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1788 alias in your environment" >&2;}
1789 { (exit 1); exit 1; }; }
1792 test "$2" = conftest.file
1794 then
1795 # Ok.
1797 else
1798 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1799 Check your system clock" >&5
1800 echo "$as_me: error: newly created file is older than distributed files!
1801 Check your system clock" >&2;}
1802 { (exit 1); exit 1; }; }
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1806 test "$program_prefix" != NONE &&
1807 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1808 # Use a double $ so make ignores it.
1809 test "$program_suffix" != NONE &&
1810 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1811 # Double any \ or $. echo might interpret backslashes.
1812 # By default was `s,x,x', remove it if useless.
1813 cat <<\_ACEOF >conftest.sed
1814 s/[\\$]/&&/g;s/;s,x,x,$//
1815 _ACEOF
1816 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1817 rm conftest.sed
1819 # expand $ac_aux_dir to an absolute path
1820 am_aux_dir=`cd $ac_aux_dir && pwd`
1822 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1823 # Use eval to expand $SHELL
1824 if eval "$MISSING --run true"; then
1825 am_missing_run="$MISSING --run "
1826 else
1827 am_missing_run=
1828 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1829 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1832 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1833 # We used to keeping the `.' as first argument, in order to
1834 # allow $(mkdir_p) to be used without argument. As in
1835 # $(mkdir_p) $(somedir)
1836 # where $(somedir) is conditionally defined. However this is wrong
1837 # for two reasons:
1838 # 1. if the package is installed by a user who cannot write `.'
1839 # make install will fail,
1840 # 2. the above comment should most certainly read
1841 # $(mkdir_p) $(DESTDIR)$(somedir)
1842 # so it does not work when $(somedir) is undefined and
1843 # $(DESTDIR) is not.
1844 # To support the latter case, we have to write
1845 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1846 # so the `.' trick is pointless.
1847 mkdir_p='mkdir -p --'
1848 else
1849 # On NextStep and OpenStep, the `mkdir' command does not
1850 # recognize any option. It will interpret all options as
1851 # directories to create, and then abort because `.' already
1852 # exists.
1853 for d in ./-p ./--version;
1855 test -d $d && rmdir $d
1856 done
1857 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1858 if test -f "$ac_aux_dir/mkinstalldirs"; then
1859 mkdir_p='$(mkinstalldirs)'
1860 else
1861 mkdir_p='$(install_sh) -d'
1865 for ac_prog in gawk mawk nawk awk
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868 set dummy $ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_AWK+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$AWK"; then
1875 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_AWK="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 AWK=$ac_cv_prog_AWK
1894 if test -n "$AWK"; then
1895 echo "$as_me:$LINENO: result: $AWK" >&5
1896 echo "${ECHO_T}$AWK" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$AWK" && break
1903 done
1905 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1906 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1908 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 cat >conftest.make <<\_ACEOF
1912 all:
1913 @echo 'ac_maketemp="$(MAKE)"'
1914 _ACEOF
1915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1916 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1917 if test -n "$ac_maketemp"; then
1918 eval ac_cv_prog_make_${ac_make}_set=yes
1919 else
1920 eval ac_cv_prog_make_${ac_make}_set=no
1922 rm -f conftest.make
1924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1925 echo "$as_me:$LINENO: result: yes" >&5
1926 echo "${ECHO_T}yes" >&6
1927 SET_MAKE=
1928 else
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 SET_MAKE="MAKE=${MAKE-make}"
1934 rm -rf .tst 2>/dev/null
1935 mkdir .tst 2>/dev/null
1936 if test -d .tst; then
1937 am__leading_dot=.
1938 else
1939 am__leading_dot=_
1941 rmdir .tst 2>/dev/null
1943 # test to see if srcdir already configured
1944 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1945 test -f $srcdir/config.status; then
1946 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1947 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1948 { (exit 1); exit 1; }; }
1951 # test whether we have cygpath
1952 if test -z "$CYGPATH_W"; then
1953 if (cygpath --version) >/dev/null 2>/dev/null; then
1954 CYGPATH_W='cygpath -w'
1955 else
1956 CYGPATH_W=echo
1961 # Define the identity of the package.
1962 PACKAGE=gc
1963 VERSION=6.6
1966 # Some tools Automake needs.
1968 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1971 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1974 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1977 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1980 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1982 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1984 # Installed binaries are usually stripped using `strip' when the user
1985 # run `make install-strip'. However `strip' might not be the right
1986 # tool to use in cross-compilation environments, therefore Automake
1987 # will honor the `STRIP' environment variable to overrule this program.
1988 if test "$cross_compiling" != no; then
1989 if test -n "$ac_tool_prefix"; then
1990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1991 set dummy ${ac_tool_prefix}strip; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_STRIP+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 if test -n "$STRIP"; then
1998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2011 done
2012 done
2016 STRIP=$ac_cv_prog_STRIP
2017 if test -n "$STRIP"; then
2018 echo "$as_me:$LINENO: result: $STRIP" >&5
2019 echo "${ECHO_T}$STRIP" >&6
2020 else
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2026 if test -z "$ac_cv_prog_STRIP"; then
2027 ac_ct_STRIP=$STRIP
2028 # Extract the first word of "strip", so it can be a program name with args.
2029 set dummy strip; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test -n "$ac_ct_STRIP"; then
2036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_STRIP="strip"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2049 done
2050 done
2052 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2056 if test -n "$ac_ct_STRIP"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2058 echo "${ECHO_T}$ac_ct_STRIP" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 STRIP=$ac_ct_STRIP
2065 else
2066 STRIP="$ac_cv_prog_STRIP"
2070 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2072 # We need awk for the "check" target. The system "awk" is bad on
2073 # some platforms.
2074 # Always define AMTAR for backward compatibility.
2076 AMTAR=${AMTAR-"${am_missing_run}tar"}
2078 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2085 # The autoconf 2.5x version of the no-executables hack.
2088 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2089 # the wrong, non-multilib-adjusted value will be used in multilibs.
2090 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2094 ac_ext=c
2095 ac_cpp='$CPP $CPPFLAGS'
2096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099 if test -n "$ac_tool_prefix"; then
2100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2101 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC="$CC" # Let the user override the test.
2109 else
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2113 IFS=$as_save_IFS
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 break 2
2121 done
2122 done
2126 CC=$ac_cv_prog_CC
2127 if test -n "$CC"; then
2128 echo "$as_me:$LINENO: result: $CC" >&5
2129 echo "${ECHO_T}$CC" >&6
2130 else
2131 echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2136 if test -z "$ac_cv_prog_CC"; then
2137 ac_ct_CC=$CC
2138 # Extract the first word of "gcc", so it can be a program name with args.
2139 set dummy gcc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$ac_ct_CC"; then
2146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_ac_ct_CC="gcc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6
2168 else
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2173 CC=$ac_ct_CC
2174 else
2175 CC="$ac_cv_prog_CC"
2178 if test -z "$CC"; then
2179 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2181 set dummy ${ac_tool_prefix}cc; ac_word=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC="$CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_CC="${ac_tool_prefix}cc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2216 if test -z "$ac_cv_prog_CC"; then
2217 ac_ct_CC=$CC
2218 # Extract the first word of "cc", so it can be a program name with args.
2219 set dummy cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$ac_ct_CC"; then
2226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235 ac_cv_prog_ac_ct_CC="cc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2245 if test -n "$ac_ct_CC"; then
2246 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2247 echo "${ECHO_T}$ac_ct_CC" >&6
2248 else
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2253 CC=$ac_ct_CC
2254 else
2255 CC="$ac_cv_prog_CC"
2259 if test -z "$CC"; then
2260 # Extract the first word of "cc", so it can be a program name with args.
2261 set dummy cc; ac_word=$2
2262 echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 ac_prog_rejected=no
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2279 ac_prog_rejected=yes
2280 continue
2282 ac_cv_prog_CC="cc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2289 if test $ac_prog_rejected = yes; then
2290 # We found a bogon in the path, so make sure we never use it.
2291 set dummy $ac_cv_prog_CC
2292 shift
2293 if test $# != 0; then
2294 # We chose a different compiler from the bogus one.
2295 # However, it has the same basename, so the bogon will be chosen
2296 # first if we set CC to just the basename; use the full file name.
2297 shift
2298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305 echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6
2307 else
2308 echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2313 if test -z "$CC"; then
2314 if test -n "$ac_tool_prefix"; then
2315 for ac_prog in cl
2317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_CC+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 if test -n "$CC"; then
2325 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2338 done
2339 done
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6
2347 else
2348 echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2352 test -n "$CC" && break
2353 done
2355 if test -z "$CC"; then
2356 ac_ct_CC=$CC
2357 for ac_prog in cl
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ac_ct_CC"; then
2367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 ac_cv_prog_ac_ct_CC="$ac_prog"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2386 if test -n "$ac_ct_CC"; then
2387 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2388 echo "${ECHO_T}$ac_ct_CC" >&6
2389 else
2390 echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6
2394 test -n "$ac_ct_CC" && break
2395 done
2397 CC=$ac_ct_CC
2403 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&2;}
2407 { (exit 1); exit 1; }; }
2409 # Provide some information about the compiler.
2410 echo "$as_me:$LINENO:" \
2411 "checking for C compiler version" >&5
2412 ac_compiler=`set X $ac_compile; echo $2`
2413 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2414 (eval $ac_compiler --version </dev/null >&5) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }
2418 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2419 (eval $ac_compiler -v </dev/null >&5) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
2423 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2424 (eval $ac_compiler -V </dev/null >&5) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2437 main ()
2441 return 0;
2443 _ACEOF
2444 # FIXME: Cleanup?
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 gcc_no_link=no
2451 else
2452 gcc_no_link=yes
2455 if test x$gcc_no_link = xyes; then
2456 # Setting cross_compile will disable run tests; it will
2457 # also disable AC_CHECK_FILE but that's generally
2458 # correct if we can't link.
2459 cross_compiling=yes
2460 EXEEXT=
2461 else
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h. */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2470 main ()
2474 return 0;
2476 _ACEOF
2477 ac_clean_files_save=$ac_clean_files
2478 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2479 # Try to create an executable without -o first, disregard a.out.
2480 # It will help us diagnose broken compilers, and finding out an intuition
2481 # of exeext.
2482 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2483 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2484 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2486 (eval $ac_link_default) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2490 # Find the output, starting from the most likely. This scheme is
2491 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2492 # resort.
2494 # Be careful to initialize this variable, since it used to be cached.
2495 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2496 ac_cv_exeext=
2497 # b.out is created by i960 compilers.
2498 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2500 test -f "$ac_file" || continue
2501 case $ac_file in
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2504 conftest.$ac_ext )
2505 # This is the source file.
2507 [ab].out )
2508 # We found the default executable, but exeext='' is most
2509 # certainly right.
2510 break;;
2511 *.* )
2512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513 # FIXME: I believe we export ac_cv_exeext for Libtool,
2514 # but it would be cool to find out if it's true. Does anybody
2515 # maintain Libtool? --akim.
2516 export ac_cv_exeext
2517 break;;
2519 break;;
2520 esac
2521 done
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&2;}
2530 { (exit 77); exit 77; }; }
2533 ac_exeext=$ac_cv_exeext
2534 echo "$as_me:$LINENO: result: $ac_file" >&5
2535 echo "${ECHO_T}$ac_file" >&6
2537 # Check the compiler produces executables we can run. If not, either
2538 # the compiler is broken, or we cross compile.
2539 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2541 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542 # If not cross compiling, check that we can run a simple program.
2543 if test "$cross_compiling" != yes; then
2544 if { ac_try='./$ac_file'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 cross_compiling=no
2551 else
2552 if test "$cross_compiling" = maybe; then
2553 cross_compiling=yes
2554 else
2555 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556 If you meant to cross compile, use \`--host'.
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2565 echo "$as_me:$LINENO: result: yes" >&5
2566 echo "${ECHO_T}yes" >&6
2568 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2569 ac_clean_files=$ac_clean_files_save
2570 # Check the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2574 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575 echo "${ECHO_T}$cross_compiling" >&6
2577 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2585 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2586 # work properly (i.e., refer to `conftest.exe'), while it won't with
2587 # `rm'.
2588 for ac_file in conftest.exe conftest conftest.*; do
2589 test -f "$ac_file" || continue
2590 case $ac_file in
2591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2592 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593 export ac_cv_exeext
2594 break;;
2595 * ) break;;
2596 esac
2597 done
2598 else
2599 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602 See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }
2606 rm -f conftest$ac_cv_exeext
2607 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608 echo "${ECHO_T}$ac_cv_exeext" >&6
2610 rm -f conftest.$ac_ext
2611 EXEEXT=$ac_cv_exeext
2612 ac_exeext=$EXEEXT
2614 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2615 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2616 if test "${ac_cv_objext+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 else
2619 cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h. */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2627 main ()
2631 return 0;
2633 _ACEOF
2634 rm -f conftest.o conftest.obj
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; then
2640 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2641 case $ac_file in
2642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2643 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2644 break;;
2645 esac
2646 done
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2654 See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }
2658 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2660 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2661 echo "${ECHO_T}$ac_cv_objext" >&6
2662 OBJEXT=$ac_cv_objext
2663 ac_objext=$OBJEXT
2664 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2665 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2666 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2677 main ()
2679 #ifndef __GNUC__
2680 choke me
2681 #endif
2684 return 0;
2686 _ACEOF
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689 (eval $ac_compile) 2>conftest.er1
2690 ac_status=$?
2691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -z "$ac_c_werror_flag"
2697 || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_compiler_gnu=yes
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 ac_compiler_gnu=no
2716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2717 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2720 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2721 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2722 GCC=`test $ac_compiler_gnu = yes && echo yes`
2723 ac_test_CFLAGS=${CFLAGS+set}
2724 ac_save_CFLAGS=$CFLAGS
2725 CFLAGS="-g"
2726 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2727 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_g+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h. */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 main ()
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>conftest.er1
2749 ac_status=$?
2750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -z "$ac_c_werror_flag"
2756 || test ! -s conftest.err'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_cv_prog_cc_g=yes
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 ac_cv_prog_cc_g=no
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2779 if test "$ac_test_CFLAGS" = set; then
2780 CFLAGS=$ac_save_CFLAGS
2781 elif test $ac_cv_prog_cc_g = yes; then
2782 if test "$GCC" = yes; then
2783 CFLAGS="-g -O2"
2784 else
2785 CFLAGS="-g"
2787 else
2788 if test "$GCC" = yes; then
2789 CFLAGS="-O2"
2790 else
2791 CFLAGS=
2794 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2795 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2796 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799 ac_cv_prog_cc_stdc=no
2800 ac_save_CC=$CC
2801 cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h. */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807 #include <stdarg.h>
2808 #include <stdio.h>
2809 #include <sys/types.h>
2810 #include <sys/stat.h>
2811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2812 struct buf { int x; };
2813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2814 static char *e (p, i)
2815 char **p;
2816 int i;
2818 return p[i];
2820 static char *f (char * (*g) (char **, int), char **p, ...)
2822 char *s;
2823 va_list v;
2824 va_start (v,p);
2825 s = g (p, va_arg (v,int));
2826 va_end (v);
2827 return s;
2830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2831 function prototypes and stuff, but not '\xHH' hex character constants.
2832 These don't provoke an error unfortunately, instead are silently treated
2833 as 'x'. The following induces an error, until -std1 is added to get
2834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2835 array size at least. It's necessary to write '\x00'==0 to get something
2836 that's true only with -std1. */
2837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2839 int test (int i, double x);
2840 struct s1 {int (*f) (int a);};
2841 struct s2 {int (*f) (double a);};
2842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2843 int argc;
2844 char **argv;
2846 main ()
2848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2850 return 0;
2852 _ACEOF
2853 # Don't try gcc -ansi; that turns off useful extensions and
2854 # breaks some systems' header files.
2855 # AIX -qlanglvl=ansi
2856 # Ultrix and OSF/1 -std1
2857 # HP-UX 10.20 and later -Ae
2858 # HP-UX older versions -Aa -D_HPUX_SOURCE
2859 # SVR4 -Xc -D__EXTENSIONS__
2860 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2862 CC="$ac_save_CC $ac_arg"
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 { ac_try='test -z "$ac_c_werror_flag"
2873 || test ! -s conftest.err'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; } &&
2879 { ac_try='test -s conftest.$ac_objext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 ac_cv_prog_cc_stdc=$ac_arg
2886 break
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2892 rm -f conftest.err conftest.$ac_objext
2893 done
2894 rm -f conftest.$ac_ext conftest.$ac_objext
2895 CC=$ac_save_CC
2899 case "x$ac_cv_prog_cc_stdc" in
2900 x|xno)
2901 echo "$as_me:$LINENO: result: none needed" >&5
2902 echo "${ECHO_T}none needed" >&6 ;;
2904 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2905 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2906 CC="$CC $ac_cv_prog_cc_stdc" ;;
2907 esac
2909 # Some people use a C++ compiler to compile C. Since we use `exit',
2910 # in C++ we need to declare it. In case someone uses the same compiler
2911 # for both compiling C and C++ we need to have the C++ compiler decide
2912 # the declaration of exit, since it's the most demanding environment.
2913 cat >conftest.$ac_ext <<_ACEOF
2914 #ifndef __cplusplus
2915 choke me
2916 #endif
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 for ac_declaration in \
2941 '' \
2942 'extern "C" void std::exit (int) throw (); using std::exit;' \
2943 'extern "C" void std::exit (int); using std::exit;' \
2944 'extern "C" void exit (int) throw ();' \
2945 'extern "C" void exit (int);' \
2946 'void exit (int);'
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2954 $ac_declaration
2955 #include <stdlib.h>
2957 main ()
2959 exit (42);
2961 return 0;
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag"
2974 || test ! -s conftest.err'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; } &&
2980 { ac_try='test -s conftest.$ac_objext'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2987 else
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 continue
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 $ac_declaration
3002 main ()
3004 exit (42);
3006 return 0;
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3011 (eval $ac_compile) 2>conftest.er1
3012 ac_status=$?
3013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -z "$ac_c_werror_flag"
3019 || test ! -s conftest.err'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 break
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3038 done
3039 rm -f conftest*
3040 if test -n "$ac_declaration"; then
3041 echo '#ifdef __cplusplus' >>confdefs.h
3042 echo $ac_declaration >>confdefs.h
3043 echo '#endif' >>confdefs.h
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 DEPDIR="${am__leading_dot}deps"
3059 ac_config_commands="$ac_config_commands depfiles"
3062 am_make=${MAKE-make}
3063 cat > confinc << 'END'
3064 am__doit:
3065 @echo done
3066 .PHONY: am__doit
3068 # If we don't find an include directive, just comment out the code.
3069 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3070 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3071 am__include="#"
3072 am__quote=
3073 _am_result=none
3074 # First try GNU make style include.
3075 echo "include confinc" > confmf
3076 # We grep out `Entering directory' and `Leaving directory'
3077 # messages which can occur if `w' ends up in MAKEFLAGS.
3078 # In particular we don't look at `^make:' because GNU make might
3079 # be invoked under some other name (usually "gmake"), in which
3080 # case it prints its new name instead of `make'.
3081 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3082 am__include=include
3083 am__quote=
3084 _am_result=GNU
3086 # Now try BSD make style include.
3087 if test "$am__include" = "#"; then
3088 echo '.include "confinc"' > confmf
3089 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3090 am__include=.include
3091 am__quote="\""
3092 _am_result=BSD
3097 echo "$as_me:$LINENO: result: $_am_result" >&5
3098 echo "${ECHO_T}$_am_result" >&6
3099 rm -f confinc confmf
3101 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3102 if test "${enable_dependency_tracking+set}" = set; then
3103 enableval="$enable_dependency_tracking"
3106 if test "x$enable_dependency_tracking" != xno; then
3107 am_depcomp="$ac_aux_dir/depcomp"
3108 AMDEPBACKSLASH='\'
3112 if test "x$enable_dependency_tracking" != xno; then
3113 AMDEP_TRUE=
3114 AMDEP_FALSE='#'
3115 else
3116 AMDEP_TRUE='#'
3117 AMDEP_FALSE=
3123 depcc="$CC" am_compiler_list=
3125 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131 # We make a subdir and do the tests there. Otherwise we can end up
3132 # making bogus files that we don't know about and never remove. For
3133 # instance it was reported that on HP-UX the gcc test will end up
3134 # making a dummy file named `D' -- because `-MD' means `put the output
3135 # in D'.
3136 mkdir conftest.dir
3137 # Copy depcomp to subdir because otherwise we won't find it if we're
3138 # using a relative directory.
3139 cp "$am_depcomp" conftest.dir
3140 cd conftest.dir
3141 # We will build objects and dependencies in a subdirectory because
3142 # it helps to detect inapplicable dependency modes. For instance
3143 # both Tru64's cc and ICC support -MD to output dependencies as a
3144 # side effect of compilation, but ICC will put the dependencies in
3145 # the current directory while Tru64 will put them in the object
3146 # directory.
3147 mkdir sub
3149 am_cv_CC_dependencies_compiler_type=none
3150 if test "$am_compiler_list" = ""; then
3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3153 for depmode in $am_compiler_list; do
3154 # Setup a source with many dependencies, because some compilers
3155 # like to wrap large dependency lists on column 80 (with \), and
3156 # we should not choose a depcomp mode which is confused by this.
3158 # We need to recreate these files for each test, as the compiler may
3159 # overwrite some of them when testing with obscure command lines.
3160 # This happens at least with the AIX C compiler.
3161 : > sub/conftest.c
3162 for i in 1 2 3 4 5 6; do
3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165 # Solaris 8's {/usr,}/bin/sh.
3166 touch sub/conftst$i.h
3167 done
3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3170 case $depmode in
3171 nosideeffect)
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3175 continue
3176 else
3177 break
3180 none) break ;;
3181 esac
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189 >/dev/null 2>conftest.err &&
3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193 # icc doesn't choke on unknown options, it will just issue warnings
3194 # or remarks (even with -Werror). So we grep stderr for any message
3195 # that says an option was ignored or not supported.
3196 # When given -MP, icc 7.0 and 7.1 complain thusly:
3197 # icc: Command line warning: ignoring option '-M'; no argument required
3198 # The diagnosis changed in icc 8.0:
3199 # icc: Command line remark: option '-MP' not supported
3200 if (grep 'ignoring option' conftest.err ||
3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202 am_cv_CC_dependencies_compiler_type=$depmode
3203 break
3206 done
3208 cd ..
3209 rm -rf conftest.dir
3210 else
3211 am_cv_CC_dependencies_compiler_type=none
3215 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3222 test "x$enable_dependency_tracking" != xno \
3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224 am__fastdepCC_TRUE=
3225 am__fastdepCC_FALSE='#'
3226 else
3227 am__fastdepCC_TRUE='#'
3228 am__fastdepCC_FALSE=
3232 ac_ext=cc
3233 ac_cpp='$CXXCPP $CPPFLAGS'
3234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3237 if test -n "$ac_tool_prefix"; then
3238 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_CXX+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 if test -n "$CXX"; then
3248 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3261 done
3262 done
3266 CXX=$ac_cv_prog_CXX
3267 if test -n "$CXX"; then
3268 echo "$as_me:$LINENO: result: $CXX" >&5
3269 echo "${ECHO_T}$CXX" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 test -n "$CXX" && break
3276 done
3278 if test -z "$CXX"; then
3279 ac_ct_CXX=$CXX
3280 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 if test -n "$ac_ct_CXX"; then
3290 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CXX="$ac_prog"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3308 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3309 if test -n "$ac_ct_CXX"; then
3310 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3311 echo "${ECHO_T}$ac_ct_CXX" >&6
3312 else
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3317 test -n "$ac_ct_CXX" && break
3318 done
3319 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3321 CXX=$ac_ct_CXX
3325 # Provide some information about the compiler.
3326 echo "$as_me:$LINENO:" \
3327 "checking for C++ compiler version" >&5
3328 ac_compiler=`set X $ac_compile; echo $2`
3329 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3330 (eval $ac_compiler --version </dev/null >&5) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }
3334 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3335 (eval $ac_compiler -v </dev/null >&5) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3339 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3340 (eval $ac_compiler -V </dev/null >&5) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }
3345 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3346 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3347 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h. */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3358 main ()
3360 #ifndef __GNUC__
3361 choke me
3362 #endif
3365 return 0;
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_cxx_werror_flag"
3378 || test ! -s conftest.err'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_compiler_gnu=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 ac_compiler_gnu=no
3397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3401 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3402 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3403 GXX=`test $ac_compiler_gnu = yes && echo yes`
3404 ac_test_CXXFLAGS=${CXXFLAGS+set}
3405 ac_save_CXXFLAGS=$CXXFLAGS
3406 CXXFLAGS="-g"
3407 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3408 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3409 if test "${ac_cv_prog_cxx_g+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3420 main ()
3424 return 0;
3426 _ACEOF
3427 rm -f conftest.$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -z "$ac_cxx_werror_flag"
3437 || test ! -s conftest.err'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3449 ac_cv_prog_cxx_g=yes
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 ac_cv_prog_cxx_g=no
3456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3459 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3460 if test "$ac_test_CXXFLAGS" = set; then
3461 CXXFLAGS=$ac_save_CXXFLAGS
3462 elif test $ac_cv_prog_cxx_g = yes; then
3463 if test "$GXX" = yes; then
3464 CXXFLAGS="-g -O2"
3465 else
3466 CXXFLAGS="-g"
3468 else
3469 if test "$GXX" = yes; then
3470 CXXFLAGS="-O2"
3471 else
3472 CXXFLAGS=
3475 for ac_declaration in \
3476 '' \
3477 'extern "C" void std::exit (int) throw (); using std::exit;' \
3478 'extern "C" void std::exit (int); using std::exit;' \
3479 'extern "C" void exit (int) throw ();' \
3480 'extern "C" void exit (int);' \
3481 'void exit (int);'
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 $ac_declaration
3490 #include <stdlib.h>
3492 main ()
3494 exit (42);
3496 return 0;
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_cxx_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 continue
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 $ac_declaration
3537 main ()
3539 exit (42);
3541 return 0;
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_cxx_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 break
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573 done
3574 rm -f conftest*
3575 if test -n "$ac_declaration"; then
3576 echo '#ifdef __cplusplus' >>confdefs.h
3577 echo $ac_declaration >>confdefs.h
3578 echo '#endif' >>confdefs.h
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 depcc="$CXX" am_compiler_list=
3589 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3590 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3591 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3595 # We make a subdir and do the tests there. Otherwise we can end up
3596 # making bogus files that we don't know about and never remove. For
3597 # instance it was reported that on HP-UX the gcc test will end up
3598 # making a dummy file named `D' -- because `-MD' means `put the output
3599 # in D'.
3600 mkdir conftest.dir
3601 # Copy depcomp to subdir because otherwise we won't find it if we're
3602 # using a relative directory.
3603 cp "$am_depcomp" conftest.dir
3604 cd conftest.dir
3605 # We will build objects and dependencies in a subdirectory because
3606 # it helps to detect inapplicable dependency modes. For instance
3607 # both Tru64's cc and ICC support -MD to output dependencies as a
3608 # side effect of compilation, but ICC will put the dependencies in
3609 # the current directory while Tru64 will put them in the object
3610 # directory.
3611 mkdir sub
3613 am_cv_CXX_dependencies_compiler_type=none
3614 if test "$am_compiler_list" = ""; then
3615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3617 for depmode in $am_compiler_list; do
3618 # Setup a source with many dependencies, because some compilers
3619 # like to wrap large dependency lists on column 80 (with \), and
3620 # we should not choose a depcomp mode which is confused by this.
3622 # We need to recreate these files for each test, as the compiler may
3623 # overwrite some of them when testing with obscure command lines.
3624 # This happens at least with the AIX C compiler.
3625 : > sub/conftest.c
3626 for i in 1 2 3 4 5 6; do
3627 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3628 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3629 # Solaris 8's {/usr,}/bin/sh.
3630 touch sub/conftst$i.h
3631 done
3632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3634 case $depmode in
3635 nosideeffect)
3636 # after this tag, mechanisms are not by side-effect, so they'll
3637 # only be used when explicitly requested
3638 if test "x$enable_dependency_tracking" = xyes; then
3639 continue
3640 else
3641 break
3644 none) break ;;
3645 esac
3646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3647 # mode. It turns out that the SunPro C++ compiler does not properly
3648 # handle `-M -o', and we need to detect this.
3649 if depmode=$depmode \
3650 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3652 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3653 >/dev/null 2>conftest.err &&
3654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3657 # icc doesn't choke on unknown options, it will just issue warnings
3658 # or remarks (even with -Werror). So we grep stderr for any message
3659 # that says an option was ignored or not supported.
3660 # When given -MP, icc 7.0 and 7.1 complain thusly:
3661 # icc: Command line warning: ignoring option '-M'; no argument required
3662 # The diagnosis changed in icc 8.0:
3663 # icc: Command line remark: option '-MP' not supported
3664 if (grep 'ignoring option' conftest.err ||
3665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3666 am_cv_CXX_dependencies_compiler_type=$depmode
3667 break
3670 done
3672 cd ..
3673 rm -rf conftest.dir
3674 else
3675 am_cv_CXX_dependencies_compiler_type=none
3679 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3680 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3681 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3686 test "x$enable_dependency_tracking" != xno \
3687 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3688 am__fastdepCXX_TRUE=
3689 am__fastdepCXX_FALSE='#'
3690 else
3691 am__fastdepCXX_TRUE='#'
3692 am__fastdepCXX_FALSE=
3698 if test "x$CC" != xcc; then
3699 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3700 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3701 else
3702 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3703 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3705 set dummy $CC; ac_cc=`echo $2 |
3706 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3707 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3718 main ()
3722 return 0;
3724 _ACEOF
3725 # Make sure it works both with $CC and with simple cc.
3726 # We do the test twice because some compilers refuse to overwrite an
3727 # existing .o file with -o, though they will create one.
3728 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3729 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); };
3739 then
3740 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3741 if test "x$CC" != xcc; then
3742 # Test first that cc exists at all.
3743 if { ac_try='cc -c conftest.$ac_ext >&5'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3750 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); };
3760 then
3761 # cc works too.
3763 else
3764 # cc exists but doesn't like -o.
3765 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3769 else
3770 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3772 rm -f conftest*
3775 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3776 echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6
3778 else
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3782 cat >>confdefs.h <<\_ACEOF
3783 #define NO_MINUS_C_MINUS_O 1
3784 _ACEOF
3788 # FIXME: we rely on the cache variable name because
3789 # there is no other way.
3790 set dummy $CC
3791 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3792 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3793 # Losing compiler, so override with the script.
3794 # FIXME: It is wrong to rewrite CC.
3795 # But if we don't then we get into trouble of one sort or another.
3796 # A longer-term fix would be to have automake use am__CC in this case,
3797 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3798 CC="$am_aux_dir/compile $CC"
3805 # Newer automakes demand CCAS and CCASFLAGS.
3806 : ${CCAS='$(CC)'}
3807 : ${CCASFLAGS='$(CFLAGS)'}
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}as; ac_word=$2
3814 echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816 if test "${ac_cv_prog_AS+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 if test -n "$AS"; then
3820 ac_cv_prog_AS="$AS" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_AS="${ac_tool_prefix}as"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3838 AS=$ac_cv_prog_AS
3839 if test -n "$AS"; then
3840 echo "$as_me:$LINENO: result: $AS" >&5
3841 echo "${ECHO_T}$AS" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3848 if test -z "$ac_cv_prog_AS"; then
3849 ac_ct_AS=$AS
3850 # Extract the first word of "as", so it can be a program name with args.
3851 set dummy as; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 if test -n "$ac_ct_AS"; then
3858 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_ac_ct_AS="as"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3871 done
3872 done
3876 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3877 if test -n "$ac_ct_AS"; then
3878 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3879 echo "${ECHO_T}$ac_ct_AS" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3885 AS=$ac_ct_AS
3886 else
3887 AS="$ac_cv_prog_AS"
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}ar; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_AR+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 if test -n "$AR"; then
3899 ac_cv_prog_AR="$AR" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_AR="${ac_tool_prefix}ar"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3917 AR=$ac_cv_prog_AR
3918 if test -n "$AR"; then
3919 echo "$as_me:$LINENO: result: $AR" >&5
3920 echo "${ECHO_T}$AR" >&6
3921 else
3922 echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3927 if test -z "$ac_cv_prog_AR"; then
3928 ac_ct_AR=$AR
3929 # Extract the first word of "ar", so it can be a program name with args.
3930 set dummy ar; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 if test -n "$ac_ct_AR"; then
3937 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_ac_ct_AR="ar"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3956 if test -n "$ac_ct_AR"; then
3957 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3958 echo "${ECHO_T}$ac_ct_AR" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3964 AR=$ac_ct_AR
3965 else
3966 AR="$ac_cv_prog_AR"
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3991 done
3992 done
3996 RANLIB=$ac_cv_prog_RANLIB
3997 if test -n "$RANLIB"; then
3998 echo "$as_me:$LINENO: result: $RANLIB" >&5
3999 echo "${ECHO_T}$RANLIB" >&6
4000 else
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -z "$ac_cv_prog_RANLIB"; then
4007 ac_ct_RANLIB=$RANLIB
4008 # Extract the first word of "ranlib", so it can be a program name with args.
4009 set dummy ranlib; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 if test -n "$ac_ct_RANLIB"; then
4016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_RANLIB="ranlib"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4032 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4036 if test -n "$ac_ct_RANLIB"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4038 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 RANLIB=$ac_ct_RANLIB
4045 else
4046 RANLIB="$ac_cv_prog_RANLIB"
4050 # Find a good install program. We prefer a C program (faster),
4051 # so one script is as good as another. But avoid the broken or
4052 # incompatible versions:
4053 # SysV /etc/install, /usr/sbin/install
4054 # SunOS /usr/etc/install
4055 # IRIX /sbin/install
4056 # AIX /bin/install
4057 # AmigaOS /C/install, which installs bootblocks on floppy discs
4058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4061 # OS/2's system install, which has a completely different semantic
4062 # ./install, which can be erroneously created by make from ./install.sh.
4063 # Reject install programs that cannot install multiple files.
4064 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4065 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4066 if test -z "$INSTALL"; then
4067 if test "${ac_cv_path_install+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 # Account for people who put trailing slashes in PATH elements.
4076 case $as_dir/ in
4077 ./ | .// | /cC/* | \
4078 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4079 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4080 /usr/ucb/* ) ;;
4082 # OSF1 and SCO ODT 3.0 have their own names for install.
4083 # Don't use installbsd from OSF since it installs stuff as root
4084 # by default.
4085 for ac_prog in ginstall scoinst install; do
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4088 if test $ac_prog = install &&
4089 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4090 # AIX install. It has an incompatible calling convention.
4092 elif test $ac_prog = install &&
4093 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4094 # program-specific install script used by HP pwplus--don't use.
4096 else
4097 rm -rf conftest.one conftest.two conftest.dir
4098 echo one > conftest.one
4099 echo two > conftest.two
4100 mkdir conftest.dir
4101 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4102 test -s conftest.one && test -s conftest.two &&
4103 test -s conftest.dir/conftest.one &&
4104 test -s conftest.dir/conftest.two
4105 then
4106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4107 break 3
4111 done
4112 done
4114 esac
4115 done
4117 rm -rf conftest.one conftest.two conftest.dir
4120 if test "${ac_cv_path_install+set}" = set; then
4121 INSTALL=$ac_cv_path_install
4122 else
4123 # As a last resort, use the slow shell script. Don't cache a
4124 # value for INSTALL within a source directory, because that will
4125 # break other packages using the cache if that directory is
4126 # removed, or if the value is a relative name.
4127 INSTALL=$ac_install_sh
4130 echo "$as_me:$LINENO: result: $INSTALL" >&5
4131 echo "${ECHO_T}$INSTALL" >&6
4133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4134 # It thinks the first close brace ends the variable substitution.
4135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4142 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4143 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4144 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4145 if test "${enable_maintainer_mode+set}" = set; then
4146 enableval="$enable_maintainer_mode"
4147 USE_MAINTAINER_MODE=$enableval
4148 else
4149 USE_MAINTAINER_MODE=no
4151 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4152 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINTAINER_MODE_TRUE=
4157 MAINTAINER_MODE_FALSE='#'
4158 else
4159 MAINTAINER_MODE_TRUE='#'
4160 MAINTAINER_MODE_FALSE=
4163 MAINT=$MAINTAINER_MODE_TRUE
4167 . ${srcdir}/configure.host
4169 case ${gc_basedir} in
4170 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4171 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4172 esac
4174 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4175 case "${host}" in
4176 *-*-cygwin32*)
4177 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4179 esac
4182 GC_CFLAGS=${gc_cflags}
4187 macro_version='2.1a'
4188 macro_revision='1.2435'
4201 ltmain="$ac_aux_dir/ltmain.sh"
4203 # Set options
4205 enable_dlopen=no
4208 enable_win32_dll=no
4211 # Check whether --enable-shared or --disable-shared was given.
4212 if test "${enable_shared+set}" = set; then
4213 enableval="$enable_shared"
4214 p=${PACKAGE-default}
4215 case $enableval in
4216 yes) enable_shared=yes ;;
4217 no) enable_shared=no ;;
4219 enable_shared=no
4220 # Look at the argument we got. We use all the common list separators.
4221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4222 for pkg in $enableval; do
4223 IFS="$lt_save_ifs"
4224 if test "X$pkg" = "X$p"; then
4225 enable_shared=yes
4227 done
4228 IFS="$lt_save_ifs"
4230 esac
4231 else
4232 enable_shared=yes
4242 # Check whether --enable-static or --disable-static was given.
4243 if test "${enable_static+set}" = set; then
4244 enableval="$enable_static"
4245 p=${PACKAGE-default}
4246 case $enableval in
4247 yes) enable_static=yes ;;
4248 no) enable_static=no ;;
4250 enable_static=no
4251 # Look at the argument we got. We use all the common list separators.
4252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4253 for pkg in $enableval; do
4254 IFS="$lt_save_ifs"
4255 if test "X$pkg" = "X$p"; then
4256 enable_static=yes
4258 done
4259 IFS="$lt_save_ifs"
4261 esac
4262 else
4263 enable_static=yes
4274 # Check whether --with-pic or --without-pic was given.
4275 if test "${with_pic+set}" = set; then
4276 withval="$with_pic"
4277 pic_mode="$withval"
4278 else
4279 pic_mode=default
4282 test -z "$pic_mode" && pic_mode=default
4290 # Check whether --enable-fast-install or --disable-fast-install was given.
4291 if test "${enable_fast_install+set}" = set; then
4292 enableval="$enable_fast_install"
4293 p=${PACKAGE-default}
4294 case $enableval in
4295 yes) enable_fast_install=yes ;;
4296 no) enable_fast_install=no ;;
4298 enable_fast_install=no
4299 # Look at the argument we got. We use all the common list separators.
4300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4301 for pkg in $enableval; do
4302 IFS="$lt_save_ifs"
4303 if test "X$pkg" = "X$p"; then
4304 enable_fast_install=yes
4306 done
4307 IFS="$lt_save_ifs"
4309 esac
4310 else
4311 enable_fast_install=yes
4321 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4322 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4323 if test "${lt_cv_path_SED+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 # Loop through the user's path and test for sed and gsed.
4327 # Then use that list of sed's as ones to test for truncation.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for lt_ac_prog in sed gsed; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4336 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4338 done
4339 done
4340 done
4341 IFS=$as_save_IFS
4342 lt_ac_max=0
4343 lt_ac_count=0
4344 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4345 # along with /bin/sed that truncates output.
4346 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4347 test ! -f $lt_ac_sed && continue
4348 cat /dev/null > conftest.in
4349 lt_ac_count=0
4350 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4351 # Check for GNU sed and select it if it is found.
4352 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4353 lt_cv_path_SED=$lt_ac_sed
4354 break
4356 while true; do
4357 cat conftest.in conftest.in >conftest.tmp
4358 mv conftest.tmp conftest.in
4359 cp conftest.in conftest.nl
4360 echo >>conftest.nl
4361 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4362 cmp -s conftest.out conftest.nl || break
4363 # 10000 chars as input seems more than enough
4364 test $lt_ac_count -gt 10 && break
4365 lt_ac_count=`expr $lt_ac_count + 1`
4366 if test $lt_ac_count -gt $lt_ac_max; then
4367 lt_ac_max=$lt_ac_count
4368 lt_cv_path_SED=$lt_ac_sed
4370 done
4371 done
4375 SED=$lt_cv_path_SED
4377 echo "$as_me:$LINENO: result: $SED" >&5
4378 echo "${ECHO_T}$SED" >&6
4380 test -z "$SED" && SED=sed
4381 Xsed="$SED -e 1s/^X//"
4393 echo "$as_me:$LINENO: checking for egrep" >&5
4394 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4395 if test "${ac_cv_prog_egrep+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4399 then ac_cv_prog_egrep='grep -E'
4400 else ac_cv_prog_egrep='egrep'
4403 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4404 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4405 EGREP=$ac_cv_prog_egrep
4408 echo "$as_me:$LINENO: checking for fgrep" >&5
4409 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4410 if test "${ac_cv_prog_fgrep+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4414 then ac_cv_prog_fgrep='grep -F'
4415 else ac_cv_prog_fgrep='fgrep'
4418 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4419 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4420 FGREP=$ac_cv_prog_fgrep
4423 test -z "$GREP" && GREP=grep
4443 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4444 if test "${with_gnu_ld+set}" = set; then
4445 withval="$with_gnu_ld"
4446 test "$withval" = no || with_gnu_ld=yes
4447 else
4448 with_gnu_ld=no
4450 ac_prog=ld
4451 if test "$GCC" = yes; then
4452 # Check if gcc -print-prog-name=ld gives a path.
4453 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4454 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4455 case $host in
4456 *-*-mingw*)
4457 # gcc leaves a trailing carriage return which upsets mingw
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4461 esac
4462 case $ac_prog in
4463 # Accept absolute paths.
4464 [\\/]* | ?:[\\/]*)
4465 re_direlt='/[^/][^/]*/\.\./'
4466 # Canonicalize the pathname of ld
4467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4470 done
4471 test -z "$LD" && LD="$ac_prog"
4474 # If it fails, then pretend we aren't using GCC.
4475 ac_prog=ld
4478 # If it is relative, then search for the first ld in PATH.
4479 with_gnu_ld=unknown
4481 esac
4482 elif test "$with_gnu_ld" = yes; then
4483 echo "$as_me:$LINENO: checking for GNU ld" >&5
4484 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4485 else
4486 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4487 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4489 if test "${lt_cv_path_LD+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 if test -z "$LD"; then
4493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4494 for ac_dir in $PATH; do
4495 IFS="$lt_save_ifs"
4496 test -z "$ac_dir" && ac_dir=.
4497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4498 lt_cv_path_LD="$ac_dir/$ac_prog"
4499 # Check to see if the program is GNU ld. I'd rather use --version,
4500 # but apparently some variants of GNU ld only accept -v.
4501 # Break only if it was the GNU/non-GNU ld that we prefer.
4502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4503 *GNU* | *'with BFD'*)
4504 test "$with_gnu_ld" != no && break
4507 test "$with_gnu_ld" != yes && break
4509 esac
4511 done
4512 IFS="$lt_save_ifs"
4513 else
4514 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4518 LD="$lt_cv_path_LD"
4519 if test -n "$LD"; then
4520 echo "$as_me:$LINENO: result: $LD" >&5
4521 echo "${ECHO_T}$LD" >&6
4522 else
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4526 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4527 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4528 { (exit 1); exit 1; }; }
4529 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4530 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4531 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4535 case `$LD -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 lt_cv_prog_gnu_ld=yes
4540 lt_cv_prog_gnu_ld=no
4542 esac
4544 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4545 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4546 with_gnu_ld=$lt_cv_prog_gnu_ld
4557 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4558 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4559 if test "${lt_cv_path_NM+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$NM"; then
4563 # Let the user override the test.
4564 lt_cv_path_NM="$NM"
4565 else
4566 lt_nm_to_check="${ac_tool_prefix}nm"
4567 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4568 lt_nm_to_check="$lt_nm_to_check nm"
4570 for lt_tmp_nm in $lt_nm_to_check; do
4571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4572 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4573 IFS="$lt_save_ifs"
4574 test -z "$ac_dir" && ac_dir=.
4575 tmp_nm="$ac_dir/$lt_tmp_nm"
4576 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4577 # Check to see if the nm accepts a BSD-compat flag.
4578 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4579 # nm: unknown option "B" ignored
4580 # Tru64's nm complains that /dev/null is an invalid object file
4581 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4582 */dev/null* | *'Invalid file or object type'*)
4583 lt_cv_path_NM="$tmp_nm -B"
4584 break
4587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4588 */dev/null*)
4589 lt_cv_path_NM="$tmp_nm -p"
4590 break
4593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4594 continue # so that we can try to find one that supports BSD flags
4596 esac
4598 esac
4600 done
4601 IFS="$lt_save_ifs"
4602 done
4603 : ${lt_cv_path_NM=no}
4606 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4607 echo "${ECHO_T}$lt_cv_path_NM" >&6
4608 if test "$lt_cv_path_NM" != "no"; then
4609 NM="$lt_cv_path_NM"
4610 else
4611 # Didn't find any BSD compatible name lister, look for dumpbin.
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4617 echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 if test -n "$DUMPBIN"; then
4623 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4636 done
4637 done
4641 DUMPBIN=$ac_cv_prog_DUMPBIN
4642 if test -n "$DUMPBIN"; then
4643 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4644 echo "${ECHO_T}$DUMPBIN" >&6
4645 else
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4650 test -n "$DUMPBIN" && break
4651 done
4653 if test -z "$DUMPBIN"; then
4654 ac_ct_DUMPBIN=$DUMPBIN
4655 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 if test -n "$ac_ct_DUMPBIN"; then
4665 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4678 done
4679 done
4683 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4684 if test -n "$ac_ct_DUMPBIN"; then
4685 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4686 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4692 test -n "$ac_ct_DUMPBIN" && break
4693 done
4694 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4696 DUMPBIN=$ac_ct_DUMPBIN
4700 if test "$DUMPBIN" != ":"; then
4701 NM="$DUMPBIN"
4704 test -z "$NM" && NM=nm
4711 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4712 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4713 if test "${lt_cv_nm_interface+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716 lt_cv_nm_interface="BSD nm"
4717 echo "int some_variable = 0;" > conftest.$ac_ext
4718 (eval echo "\"\$as_me:4718: $ac_compile\"" >&5)
4719 (eval "$ac_compile" 2>conftest.err)
4720 cat conftest.err >&5
4721 (eval echo "\"\$as_me:4721: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4722 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4723 cat conftest.err >&5
4724 (eval echo "\"\$as_me:4724: output\"" >&5)
4725 cat conftest.out >&5
4726 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4727 lt_cv_nm_interface="MS dumpbin"
4729 rm -f conftest*
4731 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4732 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4734 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4736 LN_S=$as_ln_s
4737 if test "$LN_S" = "ln -s"; then
4738 echo "$as_me:$LINENO: result: yes" >&5
4739 echo "${ECHO_T}yes" >&6
4740 else
4741 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4742 echo "${ECHO_T}no, using $LN_S" >&6
4745 # find the maximum length of command line arguments
4746 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4747 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4748 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4752 teststring="ABCD"
4754 case $build_os in
4755 msdosdjgpp*)
4756 # On DJGPP, this test can blow up pretty badly due to problems in libc
4757 # (any single argument exceeding 2000 bytes causes a buffer overrun
4758 # during glob expansion). Even if it were fixed, the result of this
4759 # check would be larger than it should be.
4760 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4763 gnu*)
4764 # Under GNU Hurd, this test is not required because there is
4765 # no limit to the length of command line arguments.
4766 # Libtool will interpret -1 as no limit whatsoever
4767 lt_cv_sys_max_cmd_len=-1;
4770 cygwin* | mingw*)
4771 # On Win9x/ME, this test blows up -- it succeeds, but takes
4772 # about 5 minutes as the teststring grows exponentially.
4773 # Worse, since 9x/ME are not pre-emptively multitasking,
4774 # you end up with a "frozen" computer, even though with patience
4775 # the test eventually succeeds (with a max line length of 256k).
4776 # Instead, let's just punt: use the minimum linelength reported by
4777 # all of the supported platforms: 8192 (on NT/2K/XP).
4778 lt_cv_sys_max_cmd_len=8192;
4781 amigaos*)
4782 # On AmigaOS with pdksh, this test takes hours, literally.
4783 # So we just punt and use a minimum line length of 8192.
4784 lt_cv_sys_max_cmd_len=8192;
4787 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4788 # This has been around since 386BSD, at least. Likely further.
4789 if test -x /sbin/sysctl; then
4790 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4791 elif test -x /usr/sbin/sysctl; then
4792 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4793 else
4794 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4796 # And add a safety zone
4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4801 interix*)
4802 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4803 lt_cv_sys_max_cmd_len=196608
4806 osf*)
4807 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4808 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4809 # nice to cause kernel panics so lets avoid the loop below.
4810 # First set a reasonable default.
4811 lt_cv_sys_max_cmd_len=16384
4813 if test -x /sbin/sysconfig; then
4814 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4815 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4816 esac
4819 sco3.2v5*)
4820 lt_cv_sys_max_cmd_len=102400
4822 sysv5* | sco5v6* | sysv4.2uw2*)
4823 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4824 if test -n "$kargmax"; then
4825 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4826 else
4827 lt_cv_sys_max_cmd_len=32768
4831 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4832 if test -n $lt_cv_sys_max_cmd_len; then
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4835 else
4836 # Make teststring a little bigger before we do anything with it.
4837 # a 1K string should be a reasonable start.
4838 for i in 1 2 3 4 5 6 7 8 ; do
4839 teststring=$teststring$teststring
4840 done
4841 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4842 # If test is not a shell built-in, we'll probably end up computing a
4843 # maximum length that is only half of the actual maximum length, but
4844 # we can't tell.
4845 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4846 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4847 test $i != 17 # 1/2 MB should be enough
4849 i=`expr $i + 1`
4850 teststring=$teststring$teststring
4851 done
4852 # Only check the string length outside the loop.
4853 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4854 teststring=
4855 # Add a significant safety factor because C++ compilers can tack on
4856 # massive amounts of additional arguments before passing them to the
4857 # linker. It appears as though 1/2 is a usable value.
4858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4861 esac
4865 if test -n $lt_cv_sys_max_cmd_len ; then
4866 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4867 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4868 else
4869 echo "$as_me:$LINENO: result: none" >&5
4870 echo "${ECHO_T}none" >&6
4872 max_cmd_len=$lt_cv_sys_max_cmd_len
4880 : ${CP="cp -f"}
4881 : ${MV="mv -f"}
4882 : ${RM="rm -f"}
4884 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4885 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4886 # Try some XSI features
4887 xsi_shell=no
4888 ( _lt_dummy="a/b/c"
4889 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4890 = c,a/b,, ) >/dev/null 2>&1 \
4891 && xsi_shell=yes
4892 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4893 echo "${ECHO_T}$xsi_shell" >&6
4896 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4897 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4898 lt_shell_append=no
4899 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4900 >/dev/null 2>&1 \
4901 && lt_shell_append=yes
4902 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4903 echo "${ECHO_T}$lt_shell_append" >&6
4906 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4907 lt_unset=unset
4908 else
4909 lt_unset=false
4916 # test EBCDIC or ASCII
4917 case `echo X|tr X '\101'` in
4918 A) # ASCII based system
4919 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4920 lt_SP2NL='tr \040 \012'
4921 lt_NL2SP='tr \015\012 \040\040'
4923 *) # EBCDIC based system
4924 lt_SP2NL='tr \100 \n'
4925 lt_NL2SP='tr \r\n \100\100'
4927 esac
4937 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4938 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4939 if test "${lt_cv_ld_reload_flag+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 lt_cv_ld_reload_flag='-r'
4944 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4945 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4946 reload_flag=$lt_cv_ld_reload_flag
4947 case $reload_flag in
4948 "" | " "*) ;;
4949 *) reload_flag=" $reload_flag" ;;
4950 esac
4951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4952 case $host_os in
4953 darwin*)
4954 if test "$GCC" = yes; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4956 else
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4960 esac
4971 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4972 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4973 if test "${lt_cv_deplibs_check_method+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 lt_cv_file_magic_cmd='$MAGIC_CMD'
4977 lt_cv_file_magic_test_file=
4978 lt_cv_deplibs_check_method='unknown'
4979 # Need to set the preceding variable on all platforms that support
4980 # interlibrary dependencies.
4981 # 'none' -- dependencies not supported.
4982 # `unknown' -- same as none, but documents that we really don't know.
4983 # 'pass_all' -- all dependencies passed with no checks.
4984 # 'test_compile' -- check by making test program.
4985 # 'file_magic [[regex]]' -- check by looking for files in library path
4986 # which responds to the $file_magic_cmd with a given extended regex.
4987 # If you have `file' or equivalent on your system and you're not sure
4988 # whether `pass_all' will *always* work, you probably want this one.
4990 case $host_os in
4991 aix[4-9]*)
4992 lt_cv_deplibs_check_method=pass_all
4995 beos*)
4996 lt_cv_deplibs_check_method=pass_all
4999 bsdi[45]*)
5000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5001 lt_cv_file_magic_cmd='/usr/bin/file -L'
5002 lt_cv_file_magic_test_file=/shlib/libc.so
5005 cygwin*)
5006 # func_win32_libid is a shell function defined in ltmain.sh
5007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008 lt_cv_file_magic_cmd='func_win32_libid'
5011 mingw* | pw32*)
5012 # Base MSYS/MinGW do not provide the 'file' command needed by
5013 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5014 # unless we find 'file', for example because we are cross-compiling.
5015 if ( file / ) >/dev/null 2>&1; then
5016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5017 lt_cv_file_magic_cmd='func_win32_libid'
5018 else
5019 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5020 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 darwin* | rhapsody*)
5025 lt_cv_deplibs_check_method=pass_all
5028 freebsd* | dragonfly*)
5029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5030 case $host_cpu in
5031 i*86 )
5032 # Not sure whether the presence of OpenBSD here was a mistake.
5033 # Let's accept both of them until this is cleared up.
5034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5035 lt_cv_file_magic_cmd=/usr/bin/file
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5038 esac
5039 else
5040 lt_cv_deplibs_check_method=pass_all
5044 gnu*)
5045 lt_cv_deplibs_check_method=pass_all
5048 hpux10.20* | hpux11*)
5049 lt_cv_file_magic_cmd=/usr/bin/file
5050 case $host_cpu in
5051 ia64*)
5052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5055 hppa*64*)
5056 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]'
5057 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5061 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5063 esac
5066 interix[3-9]*)
5067 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5071 irix5* | irix6* | nonstopux*)
5072 case $LD in
5073 *-32|*"-32 ") libmagic=32-bit;;
5074 *-n32|*"-n32 ") libmagic=N32;;
5075 *-64|*"-64 ") libmagic=64-bit;;
5076 *) libmagic=never-match;;
5077 esac
5078 lt_cv_deplibs_check_method=pass_all
5081 # This must be Linux ELF.
5082 linux* | k*bsd*-gnu)
5083 lt_cv_deplibs_check_method=pass_all
5086 netbsd*)
5087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5089 else
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5094 newos6*)
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5096 lt_cv_file_magic_cmd=/usr/bin/file
5097 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5100 *nto* | *qnx*)
5101 lt_cv_deplibs_check_method=pass_all
5104 openbsd*)
5105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5107 else
5108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5112 osf3* | osf4* | osf5*)
5113 lt_cv_deplibs_check_method=pass_all
5116 rdos*)
5117 lt_cv_deplibs_check_method=pass_all
5120 solaris*)
5121 lt_cv_deplibs_check_method=pass_all
5124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5125 lt_cv_deplibs_check_method=pass_all
5128 sysv4 | sysv4.3*)
5129 case $host_vendor in
5130 motorola)
5131 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]'
5132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5134 ncr)
5135 lt_cv_deplibs_check_method=pass_all
5137 sequent)
5138 lt_cv_file_magic_cmd='/bin/file'
5139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5141 sni)
5142 lt_cv_file_magic_cmd='/bin/file'
5143 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5144 lt_cv_file_magic_test_file=/lib/libc.so
5146 siemens)
5147 lt_cv_deplibs_check_method=pass_all
5150 lt_cv_deplibs_check_method=pass_all
5152 esac
5155 tpf*)
5156 lt_cv_deplibs_check_method=pass_all
5158 esac
5161 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5162 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5163 file_magic_cmd=$lt_cv_file_magic_cmd
5164 deplibs_check_method=$lt_cv_deplibs_check_method
5165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}ar; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_AR+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$AR"; then
5187 ac_cv_prog_AR="$AR" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_AR="${ac_tool_prefix}ar"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5205 AR=$ac_cv_prog_AR
5206 if test -n "$AR"; then
5207 echo "$as_me:$LINENO: result: $AR" >&5
5208 echo "${ECHO_T}$AR" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5215 if test -z "$ac_cv_prog_AR"; then
5216 ac_ct_AR=$AR
5217 # Extract the first word of "ar", so it can be a program name with args.
5218 set dummy ar; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 if test -n "$ac_ct_AR"; then
5225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_AR="ar"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5241 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5245 if test -n "$ac_ct_AR"; then
5246 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5247 echo "${ECHO_T}$ac_ct_AR" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 AR=$ac_ct_AR
5254 else
5255 AR="$ac_cv_prog_AR"
5258 test -z "$AR" && AR=ar
5259 test -z "$AR_FLAGS" && AR_FLAGS=cru
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}strip; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_STRIP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test -n "$STRIP"; then
5280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5298 STRIP=$ac_cv_prog_STRIP
5299 if test -n "$STRIP"; then
5300 echo "$as_me:$LINENO: result: $STRIP" >&5
5301 echo "${ECHO_T}$STRIP" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5308 if test -z "$ac_cv_prog_STRIP"; then
5309 ac_ct_STRIP=$STRIP
5310 # Extract the first word of "strip", so it can be a program name with args.
5311 set dummy strip; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$ac_ct_STRIP"; then
5318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_STRIP="strip"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5338 if test -n "$ac_ct_STRIP"; then
5339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5340 echo "${ECHO_T}$ac_ct_STRIP" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5346 STRIP=$ac_ct_STRIP
5347 else
5348 STRIP="$ac_cv_prog_STRIP"
5351 test -z "$STRIP" && STRIP=:
5358 if test -n "$ac_tool_prefix"; then
5359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5361 echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5363 if test "${ac_cv_prog_RANLIB+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 if test -n "$RANLIB"; then
5367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5385 RANLIB=$ac_cv_prog_RANLIB
5386 if test -n "$RANLIB"; then
5387 echo "$as_me:$LINENO: result: $RANLIB" >&5
5388 echo "${ECHO_T}$RANLIB" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5395 if test -z "$ac_cv_prog_RANLIB"; then
5396 ac_ct_RANLIB=$RANLIB
5397 # Extract the first word of "ranlib", so it can be a program name with args.
5398 set dummy ranlib; ac_word=$2
5399 echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if test -n "$ac_ct_RANLIB"; then
5405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_RANLIB="ranlib"
5415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5425 if test -n "$ac_ct_RANLIB"; then
5426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5433 RANLIB=$ac_ct_RANLIB
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5438 test -z "$RANLIB" && RANLIB=:
5445 # Determine commands to create old-style static archives.
5446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5447 old_postinstall_cmds='chmod 644 $oldlib'
5448 old_postuninstall_cmds=
5450 if test -n "$RANLIB"; then
5451 case $host_os in
5452 openbsd*)
5453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5458 esac
5459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5495 # If no C compiler was specified, use CC.
5496 LTCC=${LTCC-"$CC"}
5498 # If no C compiler flags were specified, use CFLAGS.
5499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5501 # Allow CC to be a program name with arguments.
5502 compiler=$CC
5505 # Check for command to grab the raw symbol name followed by C symbol from nm.
5506 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5512 # These are sane defaults that work on at least a few old systems.
5513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5515 # Character class describing NM global symbol codes.
5516 symcode='[BCDEGRST]'
5518 # Regexp to match symbols that can be accessed directly from C.
5519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5521 # Define system-specific variables.
5522 case $host_os in
5523 aix*)
5524 symcode='[BCDT]'
5526 cygwin* | mingw* | pw32*)
5527 symcode='[ABCDGISTW]'
5529 hpux*)
5530 if test "$host_cpu" = ia64; then
5531 symcode='[ABCDEGRST]'
5534 irix* | nonstopux*)
5535 symcode='[BCDEGRST]'
5537 osf*)
5538 symcode='[BCDEGQRST]'
5540 solaris*)
5541 symcode='[BDRT]'
5543 sco3.2v5*)
5544 symcode='[DT]'
5546 sysv4.2uw2*)
5547 symcode='[DT]'
5549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5550 symcode='[ABDT]'
5552 sysv4)
5553 symcode='[DFNSTU]'
5555 esac
5557 # If we're using GNU nm, then use its standard symbol codes.
5558 case `$NM -V 2>&1` in
5559 *GNU* | *'with BFD'*)
5560 symcode='[ABCDGIRSTW]' ;;
5561 esac
5563 # Transform an extracted symbol line into a proper C declaration.
5564 # Some systems (esp. on ia64) link data and code symbols differently,
5565 # so use this general approach.
5566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5568 # Transform an extracted symbol line into symbol name and symbol address
5569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5571 # Handle CRLF in mingw tool chain
5572 opt_cr=
5573 case $build_os in
5574 mingw*)
5575 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5577 esac
5579 # Try without a prefix underscore, then with it.
5580 for ac_symprfx in "" "_"; do
5582 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5583 symxfrm="\\1 $ac_symprfx\\2 \\2"
5585 # Write the raw and C identifiers.
5586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5587 # Fake it for dumpbin and say T for any non-static function
5588 # and D for any global variable.
5589 # Also find C++ and __fastcall symbols from MSVC++,
5590 # which start with @ or ?.
5591 lt_cv_sys_global_symbol_pipe="$AWK '"\
5592 " {last_section=section; section=\$ 3};"\
5593 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5594 " \$ 0!~/External *\|/{next};"\
5595 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5596 " {if(hide[section]) next};"\
5597 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5598 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5599 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5600 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5601 " ' prfx=^$ac_symprfx"
5602 else
5603 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5606 # Check to see that the pipe works correctly.
5607 pipe_works=no
5609 rm -f conftest*
5610 cat > conftest.$ac_ext <<_LT_EOF
5611 #ifdef __cplusplus
5612 extern "C" {
5613 #endif
5614 char nm_test_var;
5615 void nm_test_func(void);
5616 void nm_test_func(void){}
5617 #ifdef __cplusplus
5619 #endif
5620 int main(){nm_test_var='a';nm_test_func();return(0);}
5621 _LT_EOF
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; then
5628 # Now try to grab the symbols.
5629 nlist=conftest.nm
5630 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5631 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && test -s "$nlist"; then
5635 # Try sorting and uniquifying the output.
5636 if sort "$nlist" | uniq > "$nlist"T; then
5637 mv -f "$nlist"T "$nlist"
5638 else
5639 rm -f "$nlist"T
5642 # Make sure that we snagged all the symbols we need.
5643 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5644 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5645 cat <<_LT_EOF > conftest.$ac_ext
5646 #ifdef __cplusplus
5647 extern "C" {
5648 #endif
5650 _LT_EOF
5651 # Now generate the symbol file.
5652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5654 cat <<_LT_EOF >> conftest.$ac_ext
5656 /* The mapping between symbol names and symbols. */
5657 const struct {
5658 const char *name;
5659 void *address;
5661 lt__PROGRAM__LTX_preloaded_symbols[] =
5663 { "@PROGRAM@", (void *) 0 },
5664 _LT_EOF
5665 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5666 cat <<\_LT_EOF >> conftest.$ac_ext
5667 {0, (void *) 0}
5670 /* This works around a problem in FreeBSD linker */
5671 #ifdef FREEBSD_WORKAROUND
5672 static const void *lt_preloaded_setup() {
5673 return lt__PROGRAM__LTX_preloaded_symbols;
5675 #endif
5677 #ifdef __cplusplus
5679 #endif
5680 _LT_EOF
5681 # Now try linking the two files.
5682 mv conftest.$ac_objext conftstm.$ac_objext
5683 lt_save_LIBS="$LIBS"
5684 lt_save_CFLAGS="$CFLAGS"
5685 LIBS="conftstm.$ac_objext"
5686 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5692 pipe_works=yes
5694 LIBS="$lt_save_LIBS"
5695 CFLAGS="$lt_save_CFLAGS"
5696 else
5697 echo "cannot find nm_test_func in $nlist" >&5
5699 else
5700 echo "cannot find nm_test_var in $nlist" >&5
5702 else
5703 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5705 else
5706 echo "$progname: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5709 rm -f conftest* conftst*
5711 # Do not use the global_symbol_pipe unless it works.
5712 if test "$pipe_works" = yes; then
5713 break
5714 else
5715 lt_cv_sys_global_symbol_pipe=
5717 done
5721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5722 lt_cv_sys_global_symbol_to_cdecl=
5724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5725 echo "$as_me:$LINENO: result: failed" >&5
5726 echo "${ECHO_T}failed" >&6
5727 else
5728 echo "$as_me:$LINENO: result: ok" >&5
5729 echo "${ECHO_T}ok" >&6
5749 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5750 if test "${enable_libtool_lock+set}" = set; then
5751 enableval="$enable_libtool_lock"
5754 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5756 # Some flags need to be propagated to the compiler or linker for good
5757 # libtool support.
5758 case $host in
5759 ia64-*-hpux*)
5760 # Find out which ABI we are using.
5761 echo 'int i;' > conftest.$ac_ext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; then
5767 case `/usr/bin/file conftest.$ac_objext` in
5768 *ELF-32*)
5769 HPUX_IA64_MODE="32"
5771 *ELF-64*)
5772 HPUX_IA64_MODE="64"
5774 esac
5776 rm -rf conftest*
5778 *-*-irix6*)
5779 # Find out which ABI we are using.
5780 echo '#line 5780 "configure"' > conftest.$ac_ext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; then
5786 if test "$lt_cv_prog_gnu_ld" = yes; then
5787 case `/usr/bin/file conftest.$ac_objext` in
5788 *32-bit*)
5789 LD="${LD-ld} -melf32bsmip"
5791 *N32*)
5792 LD="${LD-ld} -melf32bmipn32"
5794 *64-bit*)
5795 LD="${LD-ld} -melf64bmip"
5797 esac
5798 else
5799 case `/usr/bin/file conftest.$ac_objext` in
5800 *32-bit*)
5801 LD="${LD-ld} -32"
5803 *N32*)
5804 LD="${LD-ld} -n32"
5806 *64-bit*)
5807 LD="${LD-ld} -64"
5809 esac
5812 rm -rf conftest*
5815 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5816 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5817 # Find out which ABI we are using.
5818 echo 'int i;' > conftest.$ac_ext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; then
5824 case `/usr/bin/file conftest.o` in
5825 *32-bit*)
5826 case $host in
5827 x86_64-*kfreebsd*-gnu)
5828 LD="${LD-ld} -m elf_i386_fbsd"
5830 x86_64-*linux*)
5831 LD="${LD-ld} -m elf_i386"
5833 ppc64-*linux*|powerpc64-*linux*)
5834 LD="${LD-ld} -m elf32ppclinux"
5836 s390x-*linux*)
5837 LD="${LD-ld} -m elf_s390"
5839 sparc64-*linux*)
5840 LD="${LD-ld} -m elf32_sparc"
5842 esac
5844 *64-bit*)
5845 case $host in
5846 x86_64-*kfreebsd*-gnu)
5847 LD="${LD-ld} -m elf_x86_64_fbsd"
5849 x86_64-*linux*)
5850 LD="${LD-ld} -m elf_x86_64"
5852 ppc*-*linux*|powerpc*-*linux*)
5853 LD="${LD-ld} -m elf64ppc"
5855 s390*-*linux*|s390*-*tpf*)
5856 LD="${LD-ld} -m elf64_s390"
5858 sparc*-*linux*)
5859 LD="${LD-ld} -m elf64_sparc"
5861 esac
5863 esac
5865 rm -rf conftest*
5868 *-*-sco3.2v5*)
5869 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5870 SAVE_CFLAGS="$CFLAGS"
5871 CFLAGS="$CFLAGS -belf"
5872 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5873 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5874 if test "${lt_cv_cc_needs_belf+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 ac_ext=c
5878 ac_cpp='$CPP $CPPFLAGS'
5879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883 if test x$gcc_no_link = xyes; then
5884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5886 { (exit 1); exit 1; }; }
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5896 main ()
5900 return 0;
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 lt_cv_cc_needs_belf=yes
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 lt_cv_cc_needs_belf=no
5932 rm -f conftest.err conftest.$ac_objext \
5933 conftest$ac_exeext conftest.$ac_ext
5934 ac_ext=c
5935 ac_cpp='$CPP $CPPFLAGS'
5936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5942 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5943 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5945 CFLAGS="$SAVE_CFLAGS"
5948 sparc*-*solaris*)
5949 # Find out which ABI we are using.
5950 echo 'int i;' > conftest.$ac_ext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; then
5956 case `/usr/bin/file conftest.o` in
5957 *64-bit*)
5958 case $lt_cv_prog_gnu_ld in
5959 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5960 *) LD="${LD-ld} -64" ;;
5961 esac
5963 esac
5965 rm -rf conftest*
5967 esac
5969 need_locks="$enable_libtool_lock"
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5978 # On Suns, sometimes $CPP names a directory.
5979 if test -n "$CPP" && test -d "$CPP"; then
5980 CPP=
5982 if test -z "$CPP"; then
5983 if test "${ac_cv_prog_CPP+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 # Double quotes because CPP needs to be expanded
5987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5989 ac_preproc_ok=false
5990 for ac_c_preproc_warn_flag in '' yes
5992 # Use a header file that comes with gcc, so configuring glibc
5993 # with a fresh cross-compiler works.
5994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995 # <limits.h> exists even on freestanding compilers.
5996 # On the NeXT, cc -E runs the code through the compiler's parser,
5997 # not just through cpp. "Syntax error" is here to catch this case.
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #ifdef __STDC__
6005 # include <limits.h>
6006 #else
6007 # include <assert.h>
6008 #endif
6009 Syntax error
6010 _ACEOF
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null; then
6019 if test -s conftest.err; then
6020 ac_cpp_err=$ac_c_preproc_warn_flag
6021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022 else
6023 ac_cpp_err=
6025 else
6026 ac_cpp_err=yes
6028 if test -z "$ac_cpp_err"; then
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 # Broken: fails on valid input.
6035 continue
6037 rm -f conftest.err conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether non-existent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null; then
6057 if test -s conftest.err; then
6058 ac_cpp_err=$ac_c_preproc_warn_flag
6059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6060 else
6061 ac_cpp_err=
6063 else
6064 ac_cpp_err=yes
6066 if test -z "$ac_cpp_err"; then
6067 # Broken: success on invalid input.
6068 continue
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 # Passes both tests.
6074 ac_preproc_ok=:
6075 break
6077 rm -f conftest.err conftest.$ac_ext
6079 done
6080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081 rm -f conftest.err conftest.$ac_ext
6082 if $ac_preproc_ok; then
6083 break
6086 done
6087 ac_cv_prog_CPP=$CPP
6090 CPP=$ac_cv_prog_CPP
6091 else
6092 ac_cv_prog_CPP=$CPP
6094 echo "$as_me:$LINENO: result: $CPP" >&5
6095 echo "${ECHO_T}$CPP" >&6
6096 ac_preproc_ok=false
6097 for ac_c_preproc_warn_flag in '' yes
6099 # Use a header file that comes with gcc, so configuring glibc
6100 # with a fresh cross-compiler works.
6101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102 # <limits.h> exists even on freestanding compilers.
6103 # On the NeXT, cc -E runs the code through the compiler's parser,
6104 # not just through cpp. "Syntax error" is here to catch this case.
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #ifdef __STDC__
6112 # include <limits.h>
6113 #else
6114 # include <assert.h>
6115 #endif
6116 Syntax error
6117 _ACEOF
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129 else
6130 ac_cpp_err=
6132 else
6133 ac_cpp_err=yes
6135 if test -z "$ac_cpp_err"; then
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 # Broken: fails on valid input.
6142 continue
6144 rm -f conftest.err conftest.$ac_ext
6146 # OK, works on sane cases. Now check whether non-existent headers
6147 # can be detected and how.
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <ac_nonexistent.h>
6155 _ACEOF
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null; then
6164 if test -s conftest.err; then
6165 ac_cpp_err=$ac_c_preproc_warn_flag
6166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6167 else
6168 ac_cpp_err=
6170 else
6171 ac_cpp_err=yes
6173 if test -z "$ac_cpp_err"; then
6174 # Broken: success on invalid input.
6175 continue
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 # Passes both tests.
6181 ac_preproc_ok=:
6182 break
6184 rm -f conftest.err conftest.$ac_ext
6186 done
6187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6188 rm -f conftest.err conftest.$ac_ext
6189 if $ac_preproc_ok; then
6191 else
6192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&2;}
6196 { (exit 1); exit 1; }; }
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6208 if test "${ac_cv_header_stdc+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <stdlib.h>
6218 #include <stdarg.h>
6219 #include <string.h>
6220 #include <float.h>
6223 main ()
6227 return 0;
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_header_stdc=yes
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_cv_header_stdc=no
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 if test $ac_cv_header_stdc = yes; then
6262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 #include <string.h>
6271 _ACEOF
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev/null 2>&1; then
6275 else
6276 ac_cv_header_stdc=no
6278 rm -f conftest*
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h. */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <stdlib.h>
6292 _ACEOF
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294 $EGREP "free" >/dev/null 2>&1; then
6296 else
6297 ac_cv_header_stdc=no
6299 rm -f conftest*
6303 if test $ac_cv_header_stdc = yes; then
6304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6305 if test "$cross_compiling" = yes; then
6307 else
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <ctype.h>
6315 #if ((' ' & 0x0FF) == 0x020)
6316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6318 #else
6319 # define ISLOWER(c) \
6320 (('a' <= (c) && (c) <= 'i') \
6321 || ('j' <= (c) && (c) <= 'r') \
6322 || ('s' <= (c) && (c) <= 'z'))
6323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6324 #endif
6326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6328 main ()
6330 int i;
6331 for (i = 0; i < 256; i++)
6332 if (XOR (islower (i), ISLOWER (i))
6333 || toupper (i) != TOUPPER (i))
6334 exit(2);
6335 exit (0);
6337 _ACEOF
6338 rm -f conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6350 else
6351 echo "$as_me: program exited with status $ac_status" >&5
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 ( exit $ac_status )
6356 ac_cv_header_stdc=no
6358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6364 if test $ac_cv_header_stdc = yes; then
6366 cat >>confdefs.h <<\_ACEOF
6367 #define STDC_HEADERS 1
6368 _ACEOF
6372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6383 inttypes.h stdint.h unistd.h
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6399 #include <$ac_header>
6400 _ACEOF
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_Header=yes"
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 eval "$as_ac_Header=no"
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6437 _ACEOF
6441 done
6445 for ac_header in dlfcn.h
6447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448 echo "$as_me:$LINENO: checking for $ac_header" >&5
6449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6461 #include <$ac_header>
6462 _ACEOF
6463 rm -f conftest.$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 eval "$as_ac_Header=yes"
6486 else
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 eval "$as_ac_Header=no"
6492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h <<_ACEOF
6498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499 _ACEOF
6503 done
6507 ac_ext=cc
6508 ac_cpp='$CXXCPP $CPPFLAGS'
6509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6512 if test -n "$ac_tool_prefix"; then
6513 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6517 echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6519 if test "${ac_cv_prog_CXX+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 if test -n "$CXX"; then
6523 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6536 done
6537 done
6541 CXX=$ac_cv_prog_CXX
6542 if test -n "$CXX"; then
6543 echo "$as_me:$LINENO: result: $CXX" >&5
6544 echo "${ECHO_T}$CXX" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6
6550 test -n "$CXX" && break
6551 done
6553 if test -z "$CXX"; then
6554 ac_ct_CXX=$CXX
6555 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6557 # Extract the first word of "$ac_prog", so it can be a program name with args.
6558 set dummy $ac_prog; ac_word=$2
6559 echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6561 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 if test -n "$ac_ct_CXX"; then
6565 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574 ac_cv_prog_ac_ct_CXX="$ac_prog"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6583 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6584 if test -n "$ac_ct_CXX"; then
6585 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6586 echo "${ECHO_T}$ac_ct_CXX" >&6
6587 else
6588 echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6
6592 test -n "$ac_ct_CXX" && break
6593 done
6594 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6596 CXX=$ac_ct_CXX
6600 # Provide some information about the compiler.
6601 echo "$as_me:$LINENO:" \
6602 "checking for C++ compiler version" >&5
6603 ac_compiler=`set X $ac_compile; echo $2`
6604 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6605 (eval $ac_compiler --version </dev/null >&5) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }
6609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6610 (eval $ac_compiler -v </dev/null >&5) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }
6614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6615 (eval $ac_compiler -V </dev/null >&5) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }
6620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6633 main ()
6635 #ifndef __GNUC__
6636 choke me
6637 #endif
6640 return 0;
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_cxx_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_compiler_gnu=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_compiler_gnu=no
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6676 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6677 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6678 GXX=`test $ac_compiler_gnu = yes && echo yes`
6679 ac_test_CXXFLAGS=${CXXFLAGS+set}
6680 ac_save_CXXFLAGS=$CXXFLAGS
6681 CXXFLAGS="-g"
6682 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6683 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6684 if test "${ac_cv_prog_cxx_g+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6695 main ()
6699 return 0;
6701 _ACEOF
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704 (eval $ac_compile) 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try='test -z "$ac_cxx_werror_flag"
6712 || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_prog_cxx_g=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_prog_cxx_g=no
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6734 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6735 if test "$ac_test_CXXFLAGS" = set; then
6736 CXXFLAGS=$ac_save_CXXFLAGS
6737 elif test $ac_cv_prog_cxx_g = yes; then
6738 if test "$GXX" = yes; then
6739 CXXFLAGS="-g -O2"
6740 else
6741 CXXFLAGS="-g"
6743 else
6744 if test "$GXX" = yes; then
6745 CXXFLAGS="-O2"
6746 else
6747 CXXFLAGS=
6750 for ac_declaration in \
6751 '' \
6752 'extern "C" void std::exit (int) throw (); using std::exit;' \
6753 'extern "C" void std::exit (int); using std::exit;' \
6754 'extern "C" void exit (int) throw ();' \
6755 'extern "C" void exit (int);' \
6756 'void exit (int);'
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 $ac_declaration
6765 #include <stdlib.h>
6767 main ()
6769 exit (42);
6771 return 0;
6773 _ACEOF
6774 rm -f conftest.$ac_objext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6776 (eval $ac_compile) 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try='test -z "$ac_cxx_werror_flag"
6784 || test ! -s conftest.err'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; } &&
6790 { ac_try='test -s conftest.$ac_objext'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 (eval $ac_try) 2>&5
6793 ac_status=$?
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; }; then
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 continue
6803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_declaration
6812 main ()
6814 exit (42);
6816 return 0;
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_cxx_werror_flag"
6829 || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 break
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 done
6849 rm -f conftest*
6850 if test -n "$ac_declaration"; then
6851 echo '#ifdef __cplusplus' >>confdefs.h
6852 echo $ac_declaration >>confdefs.h
6853 echo '#endif' >>confdefs.h
6856 ac_ext=c
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6862 depcc="$CXX" am_compiler_list=
6864 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6865 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6866 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6870 # We make a subdir and do the tests there. Otherwise we can end up
6871 # making bogus files that we don't know about and never remove. For
6872 # instance it was reported that on HP-UX the gcc test will end up
6873 # making a dummy file named `D' -- because `-MD' means `put the output
6874 # in D'.
6875 mkdir conftest.dir
6876 # Copy depcomp to subdir because otherwise we won't find it if we're
6877 # using a relative directory.
6878 cp "$am_depcomp" conftest.dir
6879 cd conftest.dir
6880 # We will build objects and dependencies in a subdirectory because
6881 # it helps to detect inapplicable dependency modes. For instance
6882 # both Tru64's cc and ICC support -MD to output dependencies as a
6883 # side effect of compilation, but ICC will put the dependencies in
6884 # the current directory while Tru64 will put them in the object
6885 # directory.
6886 mkdir sub
6888 am_cv_CXX_dependencies_compiler_type=none
6889 if test "$am_compiler_list" = ""; then
6890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6892 for depmode in $am_compiler_list; do
6893 # Setup a source with many dependencies, because some compilers
6894 # like to wrap large dependency lists on column 80 (with \), and
6895 # we should not choose a depcomp mode which is confused by this.
6897 # We need to recreate these files for each test, as the compiler may
6898 # overwrite some of them when testing with obscure command lines.
6899 # This happens at least with the AIX C compiler.
6900 : > sub/conftest.c
6901 for i in 1 2 3 4 5 6; do
6902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6903 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6904 # Solaris 8's {/usr,}/bin/sh.
6905 touch sub/conftst$i.h
6906 done
6907 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6909 case $depmode in
6910 nosideeffect)
6911 # after this tag, mechanisms are not by side-effect, so they'll
6912 # only be used when explicitly requested
6913 if test "x$enable_dependency_tracking" = xyes; then
6914 continue
6915 else
6916 break
6919 none) break ;;
6920 esac
6921 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6922 # mode. It turns out that the SunPro C++ compiler does not properly
6923 # handle `-M -o', and we need to detect this.
6924 if depmode=$depmode \
6925 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6927 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6928 >/dev/null 2>conftest.err &&
6929 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6930 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6931 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6932 # icc doesn't choke on unknown options, it will just issue warnings
6933 # or remarks (even with -Werror). So we grep stderr for any message
6934 # that says an option was ignored or not supported.
6935 # When given -MP, icc 7.0 and 7.1 complain thusly:
6936 # icc: Command line warning: ignoring option '-M'; no argument required
6937 # The diagnosis changed in icc 8.0:
6938 # icc: Command line remark: option '-MP' not supported
6939 if (grep 'ignoring option' conftest.err ||
6940 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6941 am_cv_CXX_dependencies_compiler_type=$depmode
6942 break
6945 done
6947 cd ..
6948 rm -rf conftest.dir
6949 else
6950 am_cv_CXX_dependencies_compiler_type=none
6954 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6955 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6956 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6961 test "x$enable_dependency_tracking" != xno \
6962 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6963 am__fastdepCXX_TRUE=
6964 am__fastdepCXX_FALSE='#'
6965 else
6966 am__fastdepCXX_TRUE='#'
6967 am__fastdepCXX_FALSE=
6971 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6972 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6973 (test "X$CXX" != "Xg++"))) ; then
6974 ac_ext=cc
6975 ac_cpp='$CXXCPP $CPPFLAGS'
6976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6979 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6980 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6981 if test -z "$CXXCPP"; then
6982 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 # Double quotes because CXXCPP needs to be expanded
6986 for CXXCPP in "$CXX -E" "/lib/cpp"
6988 ac_preproc_ok=false
6989 for ac_cxx_preproc_warn_flag in '' yes
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #ifdef __STDC__
7004 # include <limits.h>
7005 #else
7006 # include <assert.h>
7007 #endif
7008 Syntax error
7009 _ACEOF
7010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } >/dev/null; then
7018 if test -s conftest.err; then
7019 ac_cpp_err=$ac_cxx_preproc_warn_flag
7020 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7021 else
7022 ac_cpp_err=
7024 else
7025 ac_cpp_err=yes
7027 if test -z "$ac_cpp_err"; then
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Broken: fails on valid input.
7034 continue
7036 rm -f conftest.err conftest.$ac_ext
7038 # OK, works on sane cases. Now check whether non-existent headers
7039 # can be detected and how.
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <ac_nonexistent.h>
7047 _ACEOF
7048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } >/dev/null; then
7056 if test -s conftest.err; then
7057 ac_cpp_err=$ac_cxx_preproc_warn_flag
7058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7059 else
7060 ac_cpp_err=
7062 else
7063 ac_cpp_err=yes
7065 if test -z "$ac_cpp_err"; then
7066 # Broken: success on invalid input.
7067 continue
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 # Passes both tests.
7073 ac_preproc_ok=:
7074 break
7076 rm -f conftest.err conftest.$ac_ext
7078 done
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7082 break
7085 done
7086 ac_cv_prog_CXXCPP=$CXXCPP
7089 CXXCPP=$ac_cv_prog_CXXCPP
7090 else
7091 ac_cv_prog_CXXCPP=$CXXCPP
7093 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7094 echo "${ECHO_T}$CXXCPP" >&6
7095 ac_preproc_ok=false
7096 for ac_cxx_preproc_warn_flag in '' yes
7098 # Use a header file that comes with gcc, so configuring glibc
7099 # with a fresh cross-compiler works.
7100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 # <limits.h> exists even on freestanding compilers.
7102 # On the NeXT, cc -E runs the code through the compiler's parser,
7103 # not just through cpp. "Syntax error" is here to catch this case.
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 #ifdef __STDC__
7111 # include <limits.h>
7112 #else
7113 # include <assert.h>
7114 #endif
7115 Syntax error
7116 _ACEOF
7117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } >/dev/null; then
7125 if test -s conftest.err; then
7126 ac_cpp_err=$ac_cxx_preproc_warn_flag
7127 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7128 else
7129 ac_cpp_err=
7131 else
7132 ac_cpp_err=yes
7134 if test -z "$ac_cpp_err"; then
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 # Broken: fails on valid input.
7141 continue
7143 rm -f conftest.err conftest.$ac_ext
7145 # OK, works on sane cases. Now check whether non-existent headers
7146 # can be detected and how.
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 #include <ac_nonexistent.h>
7154 _ACEOF
7155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } >/dev/null; then
7163 if test -s conftest.err; then
7164 ac_cpp_err=$ac_cxx_preproc_warn_flag
7165 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7166 else
7167 ac_cpp_err=
7169 else
7170 ac_cpp_err=yes
7172 if test -z "$ac_cpp_err"; then
7173 # Broken: success on invalid input.
7174 continue
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 # Passes both tests.
7180 ac_preproc_ok=:
7181 break
7183 rm -f conftest.err conftest.$ac_ext
7185 done
7186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7187 rm -f conftest.err conftest.$ac_ext
7188 if $ac_preproc_ok; then
7190 else
7191 _lt_caught_CXX_error=yes
7194 ac_ext=c
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200 else
7201 _lt_caught_CXX_error=yes
7208 # This can be used to rebuild libtool when needed
7209 LIBTOOL_DEPS="$ltmain"
7211 # Always use our own libtool.
7212 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7238 test -z "$LN_S" && LN_S="ln -s"
7253 if test -n "${ZSH_VERSION+set}" ; then
7254 setopt NO_GLOB_SUBST
7257 echo "$as_me:$LINENO: checking for objdir" >&5
7258 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7259 if test "${lt_cv_objdir+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 rm -f .libs 2>/dev/null
7263 mkdir .libs 2>/dev/null
7264 if test -d .libs; then
7265 lt_cv_objdir=.libs
7266 else
7267 # MS-DOS does not allow filenames that begin with a dot.
7268 lt_cv_objdir=_libs
7270 rmdir .libs 2>/dev/null
7272 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7273 echo "${ECHO_T}$lt_cv_objdir" >&6
7274 objdir=$lt_cv_objdir
7280 cat >>confdefs.h <<_ACEOF
7281 #define LT_OBJDIR "$lt_cv_objdir/"
7282 _ACEOF
7300 case $host_os in
7301 aix3*)
7302 # AIX sometimes has problems with the GCC collect2 program. For some
7303 # reason, if we set the COLLECT_NAMES environment variable, the problems
7304 # vanish in a puff of smoke.
7305 if test "X${COLLECT_NAMES+set}" != Xset; then
7306 COLLECT_NAMES=
7307 export COLLECT_NAMES
7310 esac
7312 # Sed substitution that helps us do robust quoting. It backslashifies
7313 # metacharacters that are still active within double-quoted strings.
7314 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7316 # Same as above, but do not quote variable references.
7317 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7319 # Sed substitution to delay expansion of an escaped shell variable in a
7320 # double_quote_subst'ed string.
7321 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7323 # Sed substitution to delay expansion of an escaped single quote.
7324 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7326 # Sed substitution to avoid accidental globbing in evaled expressions
7327 no_glob_subst='s/\*/\\\*/g'
7329 # Global variables:
7330 ofile=libtool
7331 can_build_shared=yes
7333 # All known linkers require a `.a' archive for static linking (except MSVC,
7334 # which needs '.lib').
7335 libext=a
7337 with_gnu_ld="$lt_cv_prog_gnu_ld"
7339 old_CC="$CC"
7340 old_CFLAGS="$CFLAGS"
7342 # Set sane defaults for various variables
7343 test -z "$CC" && CC=cc
7344 test -z "$LTCC" && LTCC=$CC
7345 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7346 test -z "$LD" && LD=ld
7347 test -z "$ac_objext" && ac_objext=o
7349 for cc_temp in $compiler""; do
7350 case $cc_temp in
7351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7353 \-*) ;;
7354 *) break;;
7355 esac
7356 done
7357 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7360 # Only perform the check for file, if the check method requires it
7361 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7362 case $deplibs_check_method in
7363 file_magic*)
7364 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7365 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7366 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7367 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370 case $MAGIC_CMD in
7371 [\\/*] | ?:[\\/]*)
7372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7375 lt_save_MAGIC_CMD="$MAGIC_CMD"
7376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7378 for ac_dir in $ac_dummy; do
7379 IFS="$lt_save_ifs"
7380 test -z "$ac_dir" && ac_dir=.
7381 if test -f $ac_dir/${ac_tool_prefix}file; then
7382 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7383 if test -n "$file_magic_test_file"; then
7384 case $deplibs_check_method in
7385 "file_magic "*)
7386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7389 $EGREP "$file_magic_regex" > /dev/null; then
7391 else
7392 cat <<_LT_EOF 1>&2
7394 *** Warning: the command libtool uses to detect shared libraries,
7395 *** $file_magic_cmd, produces output that libtool cannot recognize.
7396 *** The result is that libtool may fail to recognize shared libraries
7397 *** as such. This will affect the creation of libtool libraries that
7398 *** depend on shared libraries, but programs linked with such libtool
7399 *** libraries will work regardless of this problem. Nevertheless, you
7400 *** may want to report the problem to your system manager and/or to
7401 *** bug-libtool@gnu.org
7403 _LT_EOF
7404 fi ;;
7405 esac
7407 break
7409 done
7410 IFS="$lt_save_ifs"
7411 MAGIC_CMD="$lt_save_MAGIC_CMD"
7413 esac
7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417 if test -n "$MAGIC_CMD"; then
7418 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7419 echo "${ECHO_T}$MAGIC_CMD" >&6
7420 else
7421 echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7429 if test -z "$lt_cv_path_MAGIC_CMD"; then
7430 if test -n "$ac_tool_prefix"; then
7431 echo "$as_me:$LINENO: checking for file" >&5
7432 echo $ECHO_N "checking for file... $ECHO_C" >&6
7433 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 case $MAGIC_CMD in
7437 [\\/*] | ?:[\\/]*)
7438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7441 lt_save_MAGIC_CMD="$MAGIC_CMD"
7442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7444 for ac_dir in $ac_dummy; do
7445 IFS="$lt_save_ifs"
7446 test -z "$ac_dir" && ac_dir=.
7447 if test -f $ac_dir/file; then
7448 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7449 if test -n "$file_magic_test_file"; then
7450 case $deplibs_check_method in
7451 "file_magic "*)
7452 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7455 $EGREP "$file_magic_regex" > /dev/null; then
7457 else
7458 cat <<_LT_EOF 1>&2
7460 *** Warning: the command libtool uses to detect shared libraries,
7461 *** $file_magic_cmd, produces output that libtool cannot recognize.
7462 *** The result is that libtool may fail to recognize shared libraries
7463 *** as such. This will affect the creation of libtool libraries that
7464 *** depend on shared libraries, but programs linked with such libtool
7465 *** libraries will work regardless of this problem. Nevertheless, you
7466 *** may want to report the problem to your system manager and/or to
7467 *** bug-libtool@gnu.org
7469 _LT_EOF
7470 fi ;;
7471 esac
7473 break
7475 done
7476 IFS="$lt_save_ifs"
7477 MAGIC_CMD="$lt_save_MAGIC_CMD"
7479 esac
7482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7483 if test -n "$MAGIC_CMD"; then
7484 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7485 echo "${ECHO_T}$MAGIC_CMD" >&6
7486 else
7487 echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7492 else
7493 MAGIC_CMD=:
7499 esac
7501 # Use C for the default configuration in the libtool script
7503 lt_save_CC="$CC"
7504 ac_ext=c
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511 # Source file extension for C test sources.
7512 ac_ext=c
7514 # Object file extension for compiled C test sources.
7515 objext=o
7516 objext=$objext
7518 # Code to be used in simple compile tests
7519 lt_simple_compile_test_code="int some_variable = 0;"
7521 # Code to be used in simple link tests
7522 lt_simple_link_test_code='int main(){return(0);}'
7530 # If no C compiler was specified, use CC.
7531 LTCC=${LTCC-"$CC"}
7533 # If no C compiler flags were specified, use CFLAGS.
7534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7536 # Allow CC to be a program name with arguments.
7537 compiler=$CC
7539 # Save the default compiler, since it gets overwritten when the other
7540 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7541 compiler_DEFAULT=$CC
7543 # save warnings/boilerplate of simple test code
7544 ac_outfile=conftest.$ac_objext
7545 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7546 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7547 _lt_compiler_boilerplate=`cat conftest.err`
7548 $RM conftest*
7550 ac_outfile=conftest.$ac_objext
7551 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7552 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7553 _lt_linker_boilerplate=`cat conftest.err`
7554 $RM conftest*
7557 ## CAVEAT EMPTOR:
7558 ## There is no encapsulation within the following macros, do not change
7559 ## the running order or otherwise move them around unless you know exactly
7560 ## what you are doing...
7561 if test -n "$compiler"; then
7563 lt_prog_compiler_no_builtin_flag=
7565 if test "$GCC" = yes; then
7566 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7568 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7569 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7570 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 lt_cv_prog_compiler_rtti_exceptions=no
7574 ac_outfile=conftest.$ac_objext
7575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7576 lt_compiler_flag="-fno-rtti -fno-exceptions"
7577 # Insert the option either (1) after the last *FLAGS variable, or
7578 # (2) before a word containing "conftest.", or (3) at the end.
7579 # Note that $ac_compile itself does not contain backslashes and begins
7580 # with a dollar sign (not a hyphen), so the echo should work correctly.
7581 # The option is referenced via a variable to avoid confusing sed.
7582 lt_compile=`echo "$ac_compile" | $SED \
7583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7585 -e 's:$: $lt_compiler_flag:'`
7586 (eval echo "\"\$as_me:7586: $lt_compile\"" >&5)
7587 (eval "$lt_compile" 2>conftest.err)
7588 ac_status=$?
7589 cat conftest.err >&5
7590 echo "$as_me:7590: \$? = $ac_status" >&5
7591 if (exit $ac_status) && test -s "$ac_outfile"; then
7592 # The compiler can only warn and ignore the option if not recognized
7593 # So say no if there are warnings other than the usual output.
7594 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7597 lt_cv_prog_compiler_rtti_exceptions=yes
7600 $RM conftest*
7603 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7604 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7606 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7607 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7608 else
7619 lt_prog_compiler_wl=
7620 lt_prog_compiler_pic=
7621 lt_prog_compiler_static=
7623 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7624 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7626 if test "$GCC" = yes; then
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_static='-static'
7630 case $host_os in
7631 aix*)
7632 # All AIX code is PIC.
7633 if test "$host_cpu" = ia64; then
7634 # AIX 5 now supports IA64 processor
7635 lt_prog_compiler_static='-Bstatic'
7639 amigaos*)
7640 if test "$host_cpu" = m68k; then
7641 # FIXME: we need at least 68020 code to build shared libraries, but
7642 # adding the `-m68020' flag to GCC prevents building anything better,
7643 # like `-m68040'.
7644 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7649 # PIC is the default for these OSes.
7652 mingw* | cygwin* | pw32* | os2*)
7653 # This hack is so that the source file can tell whether it is being
7654 # built for inclusion in a dll (and should export symbols for example).
7655 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7656 # (--disable-auto-import) libraries
7657 lt_prog_compiler_pic='-DDLL_EXPORT'
7660 darwin* | rhapsody*)
7661 # PIC is the default on this platform
7662 # Common symbols not allowed in MH_DYLIB files
7663 lt_prog_compiler_pic='-fno-common'
7666 hpux*)
7667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7668 # not for PA HP-UX.
7669 case $host_cpu in
7670 hppa*64*|ia64*)
7671 # +Z the default
7674 lt_prog_compiler_pic='-fPIC'
7676 esac
7679 interix[3-9]*)
7680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7681 # Instead, we relocate shared libraries at runtime.
7684 msdosdjgpp*)
7685 # Just because we use GCC doesn't mean we suddenly get shared libraries
7686 # on systems that don't support them.
7687 lt_prog_compiler_can_build_shared=no
7688 enable_shared=no
7691 *nto* | *qnx*)
7692 # QNX uses GNU C++, but need to define -shared option too, otherwise
7693 # it will coredump.
7694 lt_prog_compiler_pic='-fPIC -shared'
7697 sysv4*MP*)
7698 if test -d /usr/nec; then
7699 lt_prog_compiler_pic=-Kconform_pic
7704 lt_prog_compiler_pic='-fPIC'
7706 esac
7707 else
7708 # PORTME Check for flag to pass linker flags through the system compiler.
7709 case $host_os in
7710 aix*)
7711 lt_prog_compiler_wl='-Wl,'
7712 if test "$host_cpu" = ia64; then
7713 # AIX 5 now supports IA64 processor
7714 lt_prog_compiler_static='-Bstatic'
7715 else
7716 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7719 darwin*)
7720 # PIC is the default on this platform
7721 # Common symbols not allowed in MH_DYLIB files
7722 case $cc_basename in
7723 xlc*)
7724 lt_prog_compiler_pic='-qnocommon'
7725 lt_prog_compiler_wl='-Wl,'
7727 esac
7730 mingw* | cygwin* | pw32* | os2*)
7731 # This hack is so that the source file can tell whether it is being
7732 # built for inclusion in a dll (and should export symbols for example).
7733 lt_prog_compiler_pic='-DDLL_EXPORT'
7736 hpux9* | hpux10* | hpux11*)
7737 lt_prog_compiler_wl='-Wl,'
7738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7739 # not for PA HP-UX.
7740 case $host_cpu in
7741 hppa*64*|ia64*)
7742 # +Z the default
7745 lt_prog_compiler_pic='+Z'
7747 esac
7748 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7749 lt_prog_compiler_static='${wl}-a ${wl}archive'
7752 irix5* | irix6* | nonstopux*)
7753 lt_prog_compiler_wl='-Wl,'
7754 # PIC (with -KPIC) is the default.
7755 lt_prog_compiler_static='-non_shared'
7758 linux* | k*bsd*-gnu)
7759 case $cc_basename in
7760 icc* | ecc*)
7761 lt_prog_compiler_wl='-Wl,'
7762 lt_prog_compiler_pic='-KPIC'
7763 lt_prog_compiler_static='-static'
7765 pgcc* | pgf77* | pgf90* | pgf95*)
7766 # Portland Group compilers (*not* the Pentium gcc compiler,
7767 # which looks to be a dead project)
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-fpic'
7770 lt_prog_compiler_static='-Bstatic'
7772 ccc*)
7773 lt_prog_compiler_wl='-Wl,'
7774 # All Alpha code is PIC.
7775 lt_prog_compiler_static='-non_shared'
7778 case `$CC -V 2>&1 | sed 5q` in
7779 *Sun\ C*)
7780 # Sun C 5.9
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-Bstatic'
7783 lt_prog_compiler_wl='-Wl,'
7785 *Sun\ F*)
7786 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_wl=''
7791 esac
7793 esac
7796 newsos6)
7797 lt_prog_compiler_pic='-KPIC'
7798 lt_prog_compiler_static='-Bstatic'
7801 *nto* | *qnx*)
7802 # QNX uses GNU C++, but need to define -shared option too, otherwise
7803 # it will coredump.
7804 lt_prog_compiler_pic='-fPIC -shared'
7807 osf3* | osf4* | osf5*)
7808 lt_prog_compiler_wl='-Wl,'
7809 # All OSF/1 code is PIC.
7810 lt_prog_compiler_static='-non_shared'
7813 rdos*)
7814 lt_prog_compiler_static='-non_shared'
7817 solaris*)
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 case $cc_basename in
7821 f77* | f90* | f95*)
7822 lt_prog_compiler_wl='-Qoption ld ';;
7824 lt_prog_compiler_wl='-Wl,';;
7825 esac
7828 sunos4*)
7829 lt_prog_compiler_wl='-Qoption ld '
7830 lt_prog_compiler_pic='-PIC'
7831 lt_prog_compiler_static='-Bstatic'
7834 sysv4 | sysv4.2uw2* | sysv4.3*)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7840 sysv4*MP*)
7841 if test -d /usr/nec ;then
7842 lt_prog_compiler_pic='-Kconform_pic'
7843 lt_prog_compiler_static='-Bstatic'
7847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7853 unicos*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_can_build_shared=no
7858 uts4*)
7859 lt_prog_compiler_pic='-pic'
7860 lt_prog_compiler_static='-Bstatic'
7864 lt_prog_compiler_can_build_shared=no
7866 esac
7869 case $host_os in
7870 # For platforms which do not support PIC, -DPIC is meaningless:
7871 *djgpp*)
7872 lt_prog_compiler_pic=
7875 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7877 esac
7878 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7879 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7887 # Check to make sure the PIC flag actually works.
7889 if test -n "$lt_prog_compiler_pic"; then
7890 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7891 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7892 if test "${lt_prog_compiler_pic_works+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895 lt_prog_compiler_pic_works=no
7896 ac_outfile=conftest.$ac_objext
7897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7899 # Insert the option either (1) after the last *FLAGS variable, or
7900 # (2) before a word containing "conftest.", or (3) at the end.
7901 # Note that $ac_compile itself does not contain backslashes and begins
7902 # with a dollar sign (not a hyphen), so the echo should work correctly.
7903 # The option is referenced via a variable to avoid confusing sed.
7904 lt_compile=`echo "$ac_compile" | $SED \
7905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7907 -e 's:$: $lt_compiler_flag:'`
7908 (eval echo "\"\$as_me:7908: $lt_compile\"" >&5)
7909 (eval "$lt_compile" 2>conftest.err)
7910 ac_status=$?
7911 cat conftest.err >&5
7912 echo "$as_me:7912: \$? = $ac_status" >&5
7913 if (exit $ac_status) && test -s "$ac_outfile"; then
7914 # The compiler can only warn and ignore the option if not recognized
7915 # So say no if there are warnings other than the usual output.
7916 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7919 lt_prog_compiler_pic_works=yes
7922 $RM conftest*
7925 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7926 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7928 if test x"$lt_prog_compiler_pic_works" = xyes; then
7929 case $lt_prog_compiler_pic in
7930 "" | " "*) ;;
7931 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7932 esac
7933 else
7934 lt_prog_compiler_pic=
7935 lt_prog_compiler_can_build_shared=no
7946 # Check to make sure the static flag actually works.
7948 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7949 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7950 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7951 if test "${lt_prog_compiler_static_works+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 lt_prog_compiler_static_works=no
7955 save_LDFLAGS="$LDFLAGS"
7956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7959 # The linker can only warn and ignore the option if not recognized
7960 # So say no if there are warnings
7961 if test -s conftest.err; then
7962 # Append any errors to the config.log.
7963 cat conftest.err 1>&5
7964 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7966 if diff conftest.exp conftest.er2 >/dev/null; then
7967 lt_prog_compiler_static_works=yes
7969 else
7970 lt_prog_compiler_static_works=yes
7973 $RM conftest*
7974 LDFLAGS="$save_LDFLAGS"
7977 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7978 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7980 if test x"$lt_prog_compiler_static_works" = xyes; then
7982 else
7983 lt_prog_compiler_static=
7992 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7993 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 lt_cv_prog_compiler_c_o=no
7998 $RM -r conftest 2>/dev/null
7999 mkdir conftest
8000 cd conftest
8001 mkdir out
8002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8004 lt_compiler_flag="-o out/conftest2.$ac_objext"
8005 # Insert the option either (1) after the last *FLAGS variable, or
8006 # (2) before a word containing "conftest.", or (3) at the end.
8007 # Note that $ac_compile itself does not contain backslashes and begins
8008 # with a dollar sign (not a hyphen), so the echo should work correctly.
8009 lt_compile=`echo "$ac_compile" | $SED \
8010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8012 -e 's:$: $lt_compiler_flag:'`
8013 (eval echo "\"\$as_me:8013: $lt_compile\"" >&5)
8014 (eval "$lt_compile" 2>out/conftest.err)
8015 ac_status=$?
8016 cat out/conftest.err >&5
8017 echo "$as_me:8017: \$? = $ac_status" >&5
8018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8019 then
8020 # The compiler can only warn and ignore the option if not recognized
8021 # So say no if there are warnings
8022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8025 lt_cv_prog_compiler_c_o=yes
8028 chmod u+w . 2>&5
8029 $RM conftest*
8030 # SGI C++ compiler will create directory out/ii_files/ for
8031 # template instantiation
8032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8033 $RM out/* && rmdir out
8034 cd ..
8035 $RM -r conftest
8036 $RM conftest*
8039 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8040 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8047 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8049 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 lt_cv_prog_compiler_c_o=no
8053 $RM -r conftest 2>/dev/null
8054 mkdir conftest
8055 cd conftest
8056 mkdir out
8057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8059 lt_compiler_flag="-o out/conftest2.$ac_objext"
8060 # Insert the option either (1) after the last *FLAGS variable, or
8061 # (2) before a word containing "conftest.", or (3) at the end.
8062 # Note that $ac_compile itself does not contain backslashes and begins
8063 # with a dollar sign (not a hyphen), so the echo should work correctly.
8064 lt_compile=`echo "$ac_compile" | $SED \
8065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8067 -e 's:$: $lt_compiler_flag:'`
8068 (eval echo "\"\$as_me:8068: $lt_compile\"" >&5)
8069 (eval "$lt_compile" 2>out/conftest.err)
8070 ac_status=$?
8071 cat out/conftest.err >&5
8072 echo "$as_me:8072: \$? = $ac_status" >&5
8073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8074 then
8075 # The compiler can only warn and ignore the option if not recognized
8076 # So say no if there are warnings
8077 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8080 lt_cv_prog_compiler_c_o=yes
8083 chmod u+w . 2>&5
8084 $RM conftest*
8085 # SGI C++ compiler will create directory out/ii_files/ for
8086 # template instantiation
8087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8088 $RM out/* && rmdir out
8089 cd ..
8090 $RM -r conftest
8091 $RM conftest*
8094 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8095 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8100 hard_links="nottested"
8101 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8102 # do not overwrite the value of need_locks provided by the user
8103 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8105 hard_links=yes
8106 $RM conftest*
8107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8108 touch conftest.a
8109 ln conftest.a conftest.b 2>&5 || hard_links=no
8110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8111 echo "$as_me:$LINENO: result: $hard_links" >&5
8112 echo "${ECHO_T}$hard_links" >&6
8113 if test "$hard_links" = no; then
8114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8116 need_locks=warn
8118 else
8119 need_locks=no
8127 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8128 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8130 runpath_var=
8131 allow_undefined_flag=
8132 always_export_symbols=no
8133 archive_cmds=
8134 archive_expsym_cmds=
8135 compiler_needs_object=no
8136 enable_shared_with_static_runtimes=no
8137 export_dynamic_flag_spec=
8138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8139 hardcode_automatic=no
8140 hardcode_direct=no
8141 hardcode_direct_absolute=no
8142 hardcode_libdir_flag_spec=
8143 hardcode_libdir_flag_spec_ld=
8144 hardcode_libdir_separator=
8145 hardcode_minus_L=no
8146 hardcode_shlibpath_var=unsupported
8147 inherit_rpath=no
8148 link_all_deplibs=unknown
8149 module_cmds=
8150 module_expsym_cmds=
8151 old_archive_from_new_cmds=
8152 old_archive_from_expsyms_cmds=
8153 thread_safe_flag_spec=
8154 whole_archive_flag_spec=
8155 # include_expsyms should be a list of space-separated symbols to be *always*
8156 # included in the symbol list
8157 include_expsyms=
8158 # exclude_expsyms can be an extended regexp of symbols to exclude
8159 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8160 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8161 # as well as any symbol that contains `d'.
8162 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8163 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8164 # platforms (ab)use it in PIC code, but their linkers get confused if
8165 # the symbol is explicitly referenced. Since portable code cannot
8166 # rely on this symbol name, it's probably fine to never include it in
8167 # preloaded symbol tables.
8168 extract_expsyms_cmds=
8170 case $host_os in
8171 cygwin* | mingw* | pw32*)
8172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8173 # When not using gcc, we currently assume that we are using
8174 # Microsoft Visual C++.
8175 if test "$GCC" != yes; then
8176 with_gnu_ld=no
8179 interix*)
8180 # we just hope/assume this is gcc and not c89 (= MSVC++)
8181 with_gnu_ld=yes
8183 openbsd*)
8184 with_gnu_ld=no
8186 esac
8188 ld_shlibs=yes
8189 if test "$with_gnu_ld" = yes; then
8190 # If archive_cmds runs LD, not CC, wlarc should be empty
8191 wlarc='${wl}'
8193 # Set some defaults for GNU ld with shared library support. These
8194 # are reset later if shared libraries are not supported. Putting them
8195 # here allows them to be overridden if necessary.
8196 runpath_var=LD_RUN_PATH
8197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8198 export_dynamic_flag_spec='${wl}--export-dynamic'
8199 # ancient GNU ld didn't support --whole-archive et. al.
8200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8201 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8202 else
8203 whole_archive_flag_spec=
8205 supports_anon_versioning=no
8206 case `$LD -v 2>&1` in
8207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8210 *\ 2.11.*) ;; # other 2.11 versions
8211 *) supports_anon_versioning=yes ;;
8212 esac
8214 # See if GNU ld supports shared libraries.
8215 case $host_os in
8216 aix[3-9]*)
8217 # On AIX/PPC, the GNU linker is very broken
8218 if test "$host_cpu" != ia64; then
8219 ld_shlibs=no
8220 cat <<_LT_EOF 1>&2
8222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8223 *** to be unable to reliably create shared libraries on AIX.
8224 *** Therefore, libtool is disabling shared libraries support. If you
8225 *** really care for shared libraries, you may want to modify your PATH
8226 *** so that a non-GNU linker is found, and then restart.
8228 _LT_EOF
8232 amigaos*)
8233 if test "$host_cpu" = m68k; then
8234 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)'
8235 hardcode_libdir_flag_spec='-L$libdir'
8236 hardcode_minus_L=yes
8239 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8240 # that the semantics of dynamic libraries on AmigaOS, at least up
8241 # to version 4, is to share data among multiple programs linked
8242 # with the same dynamic library. Since this doesn't match the
8243 # behavior of shared libraries on other platforms, we can't use
8244 # them.
8245 ld_shlibs=no
8248 beos*)
8249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8250 allow_undefined_flag=unsupported
8251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8252 # support --undefined. This deserves some investigation. FIXME
8253 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 else
8255 ld_shlibs=no
8259 cygwin* | mingw* | pw32*)
8260 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8261 # as there is no search path for DLLs.
8262 hardcode_libdir_flag_spec='-L$libdir'
8263 allow_undefined_flag=unsupported
8264 always_export_symbols=no
8265 enable_shared_with_static_runtimes=yes
8266 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8270 # If the export-symbols file already is a .def file (1st line
8271 # is EXPORTS), use it as is; otherwise, prepend...
8272 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8273 cp $export_symbols $output_objdir/$soname.def;
8274 else
8275 echo EXPORTS > $output_objdir/$soname.def;
8276 cat $export_symbols >> $output_objdir/$soname.def;
8278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8279 else
8280 ld_shlibs=no
8284 interix[3-9]*)
8285 hardcode_direct=no
8286 hardcode_shlibpath_var=no
8287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8288 export_dynamic_flag_spec='${wl}-E'
8289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8290 # Instead, shared libraries are loaded at an image base (0x10000000 by
8291 # default) and relocated if they conflict, which is a slow very memory
8292 # consuming and fragmenting process. To avoid this, we pick a random,
8293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8294 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8296 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8299 gnu* | linux* | tpf* | k*bsd*-gnu)
8300 tmp_diet=no
8301 if test "$host_os" = linux-dietlibc; then
8302 case $cc_basename in
8303 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8304 esac
8306 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8307 && test "$tmp_diet" = no
8308 then
8309 tmp_addflag=
8310 case $cc_basename,$host_cpu in
8311 pgcc*) # Portland Group C compiler
8312 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8313 tmp_addflag=' $pic_flag'
8315 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8316 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8317 tmp_addflag=' $pic_flag -Mnomain' ;;
8318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8319 tmp_addflag=' -i_dynamic' ;;
8320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8321 tmp_addflag=' -i_dynamic -nofor_main' ;;
8322 ifc* | ifort*) # Intel Fortran compiler
8323 tmp_addflag=' -nofor_main' ;;
8324 esac
8325 case `$CC -V 2>&1 | sed 5q` in
8326 *Sun\ C*) # Sun C 5.9
8327 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8328 compiler_needs_object=yes
8329 tmp_sharedflag='-G' ;;
8330 *Sun\ F*) # Sun Fortran 8.3
8331 tmp_sharedflag='-G' ;;
8333 tmp_sharedflag='-shared' ;;
8334 esac
8335 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8337 if test "x$supports_anon_versioning" = xyes; then
8338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8340 echo "local: *; };" >> $output_objdir/$libname.ver~
8341 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8343 else
8344 ld_shlibs=no
8348 netbsd*)
8349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8350 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8351 wlarc=
8352 else
8353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8358 solaris*)
8359 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8360 ld_shlibs=no
8361 cat <<_LT_EOF 1>&2
8363 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8364 *** create shared libraries on Solaris systems. Therefore, libtool
8365 *** is disabling shared libraries support. We urge you to upgrade GNU
8366 *** binutils to release 2.9.1 or newer. Another option is to modify
8367 *** your PATH or compiler configuration so that the native linker is
8368 *** used, and then restart.
8370 _LT_EOF
8371 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374 else
8375 ld_shlibs=no
8379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8380 case `$LD -v 2>&1` in
8381 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8382 ld_shlibs=no
8383 cat <<_LT_EOF 1>&2
8385 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8386 *** reliably create shared libraries on SCO systems. Therefore, libtool
8387 *** is disabling shared libraries support. We urge you to upgrade GNU
8388 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8389 *** your PATH or compiler configuration so that the native linker is
8390 *** used, and then restart.
8392 _LT_EOF
8395 # For security reasons, it is highly recommended that you always
8396 # use absolute paths for naming shared libraries, and exclude the
8397 # DT_RUNPATH tag from executables and libraries. But doing so
8398 # requires that you compile everything twice, which is a pain.
8399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8403 else
8404 ld_shlibs=no
8407 esac
8410 sunos4*)
8411 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8412 wlarc=
8413 hardcode_direct=yes
8414 hardcode_shlibpath_var=no
8418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421 else
8422 ld_shlibs=no
8425 esac
8427 if test "$ld_shlibs" = no; then
8428 runpath_var=
8429 hardcode_libdir_flag_spec=
8430 export_dynamic_flag_spec=
8431 whole_archive_flag_spec=
8433 else
8434 # PORTME fill in a description of your system's linker (not GNU ld)
8435 case $host_os in
8436 aix3*)
8437 allow_undefined_flag=unsupported
8438 always_export_symbols=yes
8439 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'
8440 # Note: this linker hardcodes the directories in LIBPATH if there
8441 # are no directories specified by -L.
8442 hardcode_minus_L=yes
8443 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8444 # Neither direct hardcoding nor static linking is supported with a
8445 # broken collect2.
8446 hardcode_direct=unsupported
8450 aix[4-9]*)
8451 if test "$host_cpu" = ia64; then
8452 # On IA64, the linker does run time linking by default, so we don't
8453 # have to do anything special.
8454 aix_use_runtimelinking=no
8455 exp_sym_flag='-Bexport'
8456 no_entry_flag=""
8457 else
8458 # If we're using GNU nm, then we don't want the "-C" option.
8459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8460 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8461 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'
8462 else
8463 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'
8465 aix_use_runtimelinking=no
8467 # Test if we are trying to use run time linking or normal
8468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8469 # need to do runtime linking.
8470 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8471 for ld_flag in $LDFLAGS; do
8472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8473 aix_use_runtimelinking=yes
8474 break
8476 done
8478 esac
8480 exp_sym_flag='-bexport'
8481 no_entry_flag='-bnoentry'
8484 # When large executables or shared objects are built, AIX ld can
8485 # have problems creating the table of contents. If linking a library
8486 # or program results in "error TOC overflow" add -mminimal-toc to
8487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8490 archive_cmds=''
8491 hardcode_direct=yes
8492 hardcode_direct_absolute=yes
8493 hardcode_libdir_separator=':'
8494 link_all_deplibs=yes
8495 file_list_spec='${wl}-f,'
8497 if test "$GCC" = yes; then
8498 case $host_os in aix4.[012]|aix4.[012].*)
8499 # We only want to do this on AIX 4.2 and lower, the check
8500 # below for broken collect2 doesn't work under 4.3+
8501 collect2name=`${CC} -print-prog-name=collect2`
8502 if test -f "$collect2name" &&
8503 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8504 then
8505 # We have reworked collect2
8507 else
8508 # We have old collect2
8509 hardcode_direct=unsupported
8510 # It fails to find uninstalled libraries when the uninstalled
8511 # path is not listed in the libpath. Setting hardcode_minus_L
8512 # to unsupported forces relinking
8513 hardcode_minus_L=yes
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_libdir_separator=
8518 esac
8519 shared_flag='-shared'
8520 if test "$aix_use_runtimelinking" = yes; then
8521 shared_flag="$shared_flag "'${wl}-G'
8523 else
8524 # not using gcc
8525 if test "$host_cpu" = ia64; then
8526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8527 # chokes on -Wl,-G. The following line is correct:
8528 shared_flag='-G'
8529 else
8530 if test "$aix_use_runtimelinking" = yes; then
8531 shared_flag='${wl}-G'
8532 else
8533 shared_flag='${wl}-bM:SRE'
8538 # It seems that -bexpall does not export symbols beginning with
8539 # underscore (_), so it is better to generate a list of symbols to export.
8540 always_export_symbols=yes
8541 if test "$aix_use_runtimelinking" = yes; then
8542 # Warning - without using the other runtime loading flags (-brtl),
8543 # -berok will link without error, but may produce a broken library.
8544 allow_undefined_flag='-berok'
8545 # Determine the default libpath from the value encoded in an
8546 # empty executable.
8547 if test x$gcc_no_link = xyes; then
8548 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8549 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8550 { (exit 1); exit 1; }; }
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h. */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8560 main ()
8564 return 0;
8566 _ACEOF
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8569 (eval $ac_link) 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag"
8577 || test ! -s conftest.err'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 (eval $ac_try) 2>&5
8580 ac_status=$?
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest$ac_exeext'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 (eval $ac_try) 2>&5
8586 ac_status=$?
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8590 lt_aix_libpath_sed='
8591 /Import File Strings/,/^$/ {
8592 /^0/ {
8593 s/^0 *\(.*\)$/\1/
8597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 # Check for a 64-bit object if we didn't find anything.
8599 if test -z "$aix_libpath"; then
8600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8607 rm -f conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8612 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8613 else
8614 if test "$host_cpu" = ia64; then
8615 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8616 allow_undefined_flag="-z nodefs"
8617 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8618 else
8619 # Determine the default libpath from the value encoded in an
8620 # empty executable.
8621 if test x$gcc_no_link = xyes; then
8622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8623 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8624 { (exit 1); exit 1; }; }
8626 cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8634 main ()
8638 return 0;
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643 (eval $ac_link) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -z "$ac_c_werror_flag"
8651 || test ! -s conftest.err'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; } &&
8657 { ac_try='test -s conftest$ac_exeext'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8664 lt_aix_libpath_sed='
8665 /Import File Strings/,/^$/ {
8666 /^0/ {
8667 s/^0 *\(.*\)$/\1/
8671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8672 # Check for a 64-bit object if we didn't find anything.
8673 if test -z "$aix_libpath"; then
8674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8681 rm -f conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8686 # Warning - without using the other run time loading flags,
8687 # -berok will link without error, but may produce a broken library.
8688 no_undefined_flag=' ${wl}-bernotok'
8689 allow_undefined_flag=' ${wl}-berok'
8690 # Exported symbols can be pulled into shared objects from archives
8691 whole_archive_flag_spec='$convenience'
8692 archive_cmds_need_lc=yes
8693 # This is similar to how AIX traditionally builds its shared libraries.
8694 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8699 amigaos*)
8700 if test "$host_cpu" = m68k; then
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8705 # see comment about different semantics on the GNU ld section
8706 ld_shlibs=no
8709 bsdi[45]*)
8710 export_dynamic_flag_spec=-rdynamic
8713 cygwin* | mingw* | pw32*)
8714 # When not using gcc, we currently assume that we are using
8715 # Microsoft Visual C++.
8716 # hardcode_libdir_flag_spec is actually meaningless, as there is
8717 # no search path for DLLs.
8718 hardcode_libdir_flag_spec=' '
8719 allow_undefined_flag=unsupported
8720 # Tell ltmain to make .lib files, not .a files.
8721 libext=lib
8722 # Tell ltmain to make .dll files, not .so files.
8723 shrext_cmds=".dll"
8724 # FIXME: Setting linknames here is a bad hack.
8725 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8726 # The linker will automatically build a .lib file if we build a DLL.
8727 old_archive_from_new_cmds='true'
8728 # FIXME: Should let the user specify the lib program.
8729 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8730 fix_srcfile_path='`cygpath -w "$srcfile"`'
8731 enable_shared_with_static_runtimes=yes
8734 darwin* | rhapsody*)
8735 case $host_os in
8736 rhapsody* | darwin1.[012])
8737 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8739 *) # Darwin 1.3 on
8740 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8741 10.[012])
8742 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8744 10.*)
8745 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8747 esac
8749 esac
8750 archive_cmds_need_lc=no
8751 hardcode_direct=no
8752 hardcode_automatic=yes
8753 hardcode_shlibpath_var=unsupported
8754 whole_archive_flag_spec=''
8755 link_all_deplibs=yes
8756 if test "$GCC" = yes ; then
8757 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 lt_cv_apple_cc_single_mod=no
8761 if test -z "${LT_MULTI_MODULE}"; then
8762 # By default we will add the -single_module flag. You can override
8763 # by either setting the environment variable LT_MULTI_MODULE
8764 # non-empty at configure time, or by adding -multi-module to the
8765 # link flags.
8766 echo "int foo(void){return 1;}" > conftest.c
8767 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8768 -dynamiclib ${wl}-single_module conftest.c
8769 if test -f libconftest.dylib; then
8770 lt_cv_apple_cc_single_mod=yes
8771 rm libconftest.dylib
8773 rm conftest.$ac_ext
8777 output_verbose_link_cmd=echo
8778 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8779 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8780 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8781 else
8782 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8783 archive_expsym_cmds='sed "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}'
8785 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8786 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8787 else
8788 case $cc_basename in
8789 xlc*)
8790 output_verbose_link_cmd=echo
8791 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8792 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8793 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8794 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8795 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8798 ld_shlibs=no
8800 esac
8804 dgux*)
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_libdir_flag_spec='-L$libdir'
8807 hardcode_shlibpath_var=no
8810 freebsd1*)
8811 ld_shlibs=no
8814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8815 # support. Future versions do this automatically, but an explicit c++rt0.o
8816 # does not break anything, and helps significantly (at the cost of a little
8817 # extra space).
8818 freebsd2.2*)
8819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8820 hardcode_libdir_flag_spec='-R$libdir'
8821 hardcode_direct=yes
8822 hardcode_shlibpath_var=no
8825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8826 freebsd2*)
8827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_direct=yes
8829 hardcode_minus_L=yes
8830 hardcode_shlibpath_var=no
8833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8834 freebsd* | dragonfly*)
8835 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8836 hardcode_libdir_flag_spec='-R$libdir'
8837 hardcode_direct=yes
8838 hardcode_shlibpath_var=no
8841 hpux9*)
8842 if test "$GCC" = yes; then
8843 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'
8844 else
8845 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'
8847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8848 hardcode_libdir_separator=:
8849 hardcode_direct=yes
8851 # hardcode_minus_L: Not really in the search PATH,
8852 # but as the default location of the library.
8853 hardcode_minus_L=yes
8854 export_dynamic_flag_spec='${wl}-E'
8857 hpux10*)
8858 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8860 else
8861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8863 if test "$with_gnu_ld" = no; then
8864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8865 hardcode_libdir_flag_spec_ld='+b $libdir'
8866 hardcode_libdir_separator=:
8867 hardcode_direct=yes
8868 hardcode_direct_absolute=yes
8869 export_dynamic_flag_spec='${wl}-E'
8870 # hardcode_minus_L: Not really in the search PATH,
8871 # but as the default location of the library.
8872 hardcode_minus_L=yes
8876 hpux11*)
8877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8878 case $host_cpu in
8879 hppa*64*)
8880 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882 ia64*)
8883 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8886 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8888 esac
8889 else
8890 case $host_cpu in
8891 hppa*64*)
8892 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894 ia64*)
8895 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8900 esac
8902 if test "$with_gnu_ld" = no; then
8903 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8904 hardcode_libdir_separator=:
8906 case $host_cpu in
8907 hppa*64*|ia64*)
8908 hardcode_direct=no
8909 hardcode_shlibpath_var=no
8912 hardcode_direct=yes
8913 hardcode_direct_absolute=yes
8914 export_dynamic_flag_spec='${wl}-E'
8916 # hardcode_minus_L: Not really in the search PATH,
8917 # but as the default location of the library.
8918 hardcode_minus_L=yes
8920 esac
8924 irix5* | irix6* | nonstopux*)
8925 if test "$GCC" = yes; then
8926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8927 # Try to use the -exported_symbol ld option, if it does not
8928 # work, assume that -exports_file does not work either and
8929 # implicitly export all symbols.
8930 save_LDFLAGS="$LDFLAGS"
8931 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8932 if test x$gcc_no_link = xyes; then
8933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8935 { (exit 1); exit 1; }; }
8937 cat >conftest.$ac_ext <<_ACEOF
8938 int foo(void) {}
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8969 rm -f conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LDFLAGS="$save_LDFLAGS"
8972 else
8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8976 archive_cmds_need_lc='no'
8977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978 hardcode_libdir_separator=:
8979 inherit_rpath=yes
8980 link_all_deplibs=yes
8983 netbsd*)
8984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8986 else
8987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8989 hardcode_libdir_flag_spec='-R$libdir'
8990 hardcode_direct=yes
8991 hardcode_shlibpath_var=no
8994 newsos6)
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_direct=yes
8997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8998 hardcode_libdir_separator=:
8999 hardcode_shlibpath_var=no
9002 *nto* | *qnx*)
9005 openbsd*)
9006 hardcode_direct=yes
9007 hardcode_shlibpath_var=no
9008 hardcode_direct_absolute=yes
9009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9011 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9013 export_dynamic_flag_spec='${wl}-E'
9014 else
9015 case $host_os in
9016 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_libdir_flag_spec='-R$libdir'
9021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9024 esac
9028 os2*)
9029 hardcode_libdir_flag_spec='-L$libdir'
9030 hardcode_minus_L=yes
9031 allow_undefined_flag=unsupported
9032 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'
9033 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9036 osf3*)
9037 if test "$GCC" = yes; then
9038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9039 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9040 else
9041 allow_undefined_flag=' -expect_unresolved \*'
9042 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9044 archive_cmds_need_lc='no'
9045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9046 hardcode_libdir_separator=:
9049 osf4* | osf5*) # as osf3* with the addition of -msym flag
9050 if test "$GCC" = yes; then
9051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9052 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9054 else
9055 allow_undefined_flag=' -expect_unresolved \*'
9056 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9057 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9058 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9060 # Both c and cxx compiler support -rpath directly
9061 hardcode_libdir_flag_spec='-rpath $libdir'
9063 archive_cmds_need_lc='no'
9064 hardcode_libdir_separator=:
9067 solaris*)
9068 no_undefined_flag=' -z defs'
9069 if test "$GCC" = yes; then
9070 wlarc='${wl}'
9071 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9073 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9074 else
9075 case `$CC -V 2>&1` in
9076 *"Compilers 5.0"*)
9077 wlarc=''
9078 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9083 wlarc='${wl}'
9084 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9086 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9088 esac
9090 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_shlibpath_var=no
9092 case $host_os in
9093 solaris2.[0-5] | solaris2.[0-5].*) ;;
9095 # The compiler driver will combine and reorder linker options,
9096 # but understands `-z linker_flag'. GCC discards it without `$wl',
9097 # but is careful enough not to reorder.
9098 # Supported since Solaris 2.6 (maybe 2.5.1?)
9099 if test "$GCC" = yes; then
9100 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9101 else
9102 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9105 esac
9106 link_all_deplibs=yes
9109 sunos4*)
9110 if test "x$host_vendor" = xsequent; then
9111 # Use $CC to link under sequent, because it throws in some extra .o
9112 # files that make .init and .fini sections work.
9113 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9114 else
9115 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_libdir_flag_spec='-L$libdir'
9118 hardcode_direct=yes
9119 hardcode_minus_L=yes
9120 hardcode_shlibpath_var=no
9123 sysv4)
9124 case $host_vendor in
9125 sni)
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_direct=yes # is this really true???
9129 siemens)
9130 ## LD is ld it makes a PLAMLIB
9131 ## CC just makes a GrossModule.
9132 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9133 reload_cmds='$CC -r -o $output$reload_objs'
9134 hardcode_direct=no
9136 motorola)
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9140 esac
9141 runpath_var='LD_RUN_PATH'
9142 hardcode_shlibpath_var=no
9145 sysv4.3*)
9146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_shlibpath_var=no
9148 export_dynamic_flag_spec='-Bexport'
9151 sysv4*MP*)
9152 if test -d /usr/nec; then
9153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9154 hardcode_shlibpath_var=no
9155 runpath_var=LD_RUN_PATH
9156 hardcode_runpath_var=yes
9157 ld_shlibs=yes
9161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9162 no_undefined_flag='${wl}-z,text'
9163 archive_cmds_need_lc=no
9164 hardcode_shlibpath_var=no
9165 runpath_var='LD_RUN_PATH'
9167 if test "$GCC" = yes; then
9168 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9169 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9170 else
9171 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 sysv5* | sco3.2v5* | sco5v6*)
9177 # Note: We can NOT use -z defs as we might desire, because we do not
9178 # link with -lc, and that would cause any symbols used from libc to
9179 # always be unresolved, which means just about no library would
9180 # ever link correctly. If we're not using GNU ld we use -z text
9181 # though, which does catch some bad symbols but isn't as heavy-handed
9182 # as -z defs.
9183 no_undefined_flag='${wl}-z,text'
9184 allow_undefined_flag='${wl}-z,nodefs'
9185 archive_cmds_need_lc=no
9186 hardcode_shlibpath_var=no
9187 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9188 hardcode_libdir_separator=':'
9189 link_all_deplibs=yes
9190 export_dynamic_flag_spec='${wl}-Bexport'
9191 runpath_var='LD_RUN_PATH'
9193 if test "$GCC" = yes; then
9194 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196 else
9197 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202 uts4*)
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec='-L$libdir'
9205 hardcode_shlibpath_var=no
9209 ld_shlibs=no
9211 esac
9213 if test x$host_vendor = xsni; then
9214 case $host in
9215 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9216 export_dynamic_flag_spec='${wl}-Blargedynsym'
9218 esac
9222 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9223 echo "${ECHO_T}$ld_shlibs" >&6
9224 test "$ld_shlibs" = no && can_build_shared=no
9226 with_gnu_ld=$with_gnu_ld
9243 # Do we need to explicitly link libc?
9245 case "x$archive_cmds_need_lc" in
9246 x|xyes)
9247 # Assume -lc should be added
9248 archive_cmds_need_lc=yes
9250 if test "$enable_shared" = yes && test "$GCC" = yes; then
9251 case $archive_cmds in
9252 *'~'*)
9253 # FIXME: we may have to deal with multi-command sequences.
9255 '$CC '*)
9256 # Test whether the compiler implicitly links with -lc since on some
9257 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9258 # to ld, don't add -lc before -lgcc.
9259 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9260 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9261 $RM conftest*
9262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265 (eval $ac_compile) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } 2>conftest.err; then
9269 soname=conftest
9270 lib=conftest
9271 libobjs=conftest.$ac_objext
9272 deplibs=
9273 wl=$lt_prog_compiler_wl
9274 pic_flag=$lt_prog_compiler_pic
9275 compiler_flags=-v
9276 linker_flags=-v
9277 verstring=
9278 output_objdir=.
9279 libname=conftest
9280 lt_save_allow_undefined_flag=$allow_undefined_flag
9281 allow_undefined_flag=
9282 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9283 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9284 ac_status=$?
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }
9287 then
9288 archive_cmds_need_lc=no
9289 else
9290 archive_cmds_need_lc=yes
9292 allow_undefined_flag=$lt_save_allow_undefined_flag
9293 else
9294 cat conftest.err 1>&5
9296 $RM conftest*
9297 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9298 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9300 esac
9303 esac
9461 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9463 withGCC=$GCC
9464 if test "$withGCC" = yes; then
9465 case $host_os in
9466 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9467 *) lt_awk_arg="/^libraries:/" ;;
9468 esac
9469 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9470 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9471 # if the path contains ";" then we assume it to be the separator
9472 # otherwise default to the standard path separator (i.e. ":") - it is
9473 # assumed that no part of a normal pathname contains ";" but that should
9474 # okay in the real world where ";" in dirpaths is itself problematic.
9475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9476 else
9477 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9479 # Ok, now we have the path, separated by spaces, we can step through it
9480 # and add multilib dir if necessary.
9481 lt_tmp_lt_search_path_spec=
9482 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9483 for lt_sys_path in $lt_search_path_spec; do
9484 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9486 else
9487 test -d "$lt_sys_path" && \
9488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9490 done
9491 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9492 BEGIN {RS=" "; FS="/|\n";} {
9493 lt_foo="";
9494 lt_count=0;
9495 for (lt_i = NF; lt_i > 0; lt_i--) {
9496 if ($lt_i != "" && $lt_i != ".") {
9497 if ($lt_i == "..") {
9498 lt_count++;
9499 } else {
9500 if (lt_count == 0) {
9501 lt_foo="/" $lt_i lt_foo;
9502 } else {
9503 lt_count--;
9508 if (lt_foo != "") { lt_freq[lt_foo]++; }
9509 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9511 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9512 else
9513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9515 library_names_spec=
9516 libname_spec='lib$name'
9517 soname_spec=
9518 shrext_cmds=".so"
9519 postinstall_cmds=
9520 postuninstall_cmds=
9521 finish_cmds=
9522 finish_eval=
9523 shlibpath_var=
9524 shlibpath_overrides_runpath=unknown
9525 version_type=none
9526 dynamic_linker="$host_os ld.so"
9527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9528 need_lib_prefix=unknown
9529 hardcode_into_libs=no
9531 # when you set need_version to no, make sure it does not cause -set_version
9532 # flags to be left without arguments
9533 need_version=unknown
9535 case $host_os in
9536 aix3*)
9537 version_type=linux
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9539 shlibpath_var=LIBPATH
9541 # AIX 3 has no versioning support, so we append a major version to the name.
9542 soname_spec='${libname}${release}${shared_ext}$major'
9545 aix[4-9]*)
9546 version_type=linux
9547 need_lib_prefix=no
9548 need_version=no
9549 hardcode_into_libs=yes
9550 if test "$host_cpu" = ia64; then
9551 # AIX 5 supports IA64
9552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 else
9555 # With GCC up to 2.95.x, collect2 would create an import file
9556 # for dependence libraries. The import file would start with
9557 # the line `#! .'. This would cause the generated library to
9558 # depend on `.', always an invalid library. This was fixed in
9559 # development snapshots of GCC prior to 3.0.
9560 case $host_os in
9561 aix4 | aix4.[01] | aix4.[01].*)
9562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9563 echo ' yes '
9564 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9566 else
9567 can_build_shared=no
9570 esac
9571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9572 # soname into executable. Probably we can add versioning support to
9573 # collect2, so additional links can be useful in future.
9574 if test "$aix_use_runtimelinking" = yes; then
9575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9576 # instead of lib<name>.a to let people know that these are not
9577 # typical AIX shared libraries.
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 else
9580 # We preserve .a as extension for shared libraries through AIX4.2
9581 # and later when we are not doing run time linking.
9582 library_names_spec='${libname}${release}.a $libname.a'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LIBPATH
9589 amigaos*)
9590 if test "$host_cpu" = m68k; then
9591 library_names_spec='$libname.ixlibrary $libname.a'
9592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9593 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'
9594 else
9595 dynamic_linker=no
9599 beos*)
9600 library_names_spec='${libname}${shared_ext}'
9601 dynamic_linker="$host_os ld.so"
9602 shlibpath_var=LIBRARY_PATH
9605 bsdi[45]*)
9606 version_type=linux
9607 need_version=no
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9614 # the default ld.so.conf also contains /usr/contrib/lib and
9615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9616 # libtool to hard-code these into programs
9619 cygwin* | mingw* | pw32*)
9620 version_type=windows
9621 shrext_cmds=".dll"
9622 need_version=no
9623 need_lib_prefix=no
9625 case $withGCC,$host_os in
9626 yes,cygwin* | yes,mingw* | yes,pw32*)
9627 library_names_spec='$libname.dll.a'
9628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9629 postinstall_cmds='base_file=`basename \${file}`~
9630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9631 dldir=$destdir/`dirname \$dlpath`~
9632 test -d \$dldir || mkdir -p \$dldir~
9633 $install_prog $dir/$dlname \$dldir/$dlname~
9634 chmod a+x \$dldir/$dlname~
9635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9639 dlpath=$dir/\$dldll~
9640 $RM \$dlpath'
9641 shlibpath_overrides_runpath=yes
9643 case $host_os in
9644 cygwin*)
9645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9649 mingw*)
9650 # MinGW DLLs use traditional 'lib' prefix
9651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9652 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9654 # It is most probably a Windows format PATH printed by
9655 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9656 # path with ; separators, and with drive letters. We can handle the
9657 # drive letters (cygwin fileutils understands them), so leave them,
9658 # especially as we might pass files found there to a mingw objdump,
9659 # which wouldn't understand a cygwinified path. Ahh.
9660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9661 else
9662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9665 pw32*)
9666 # pw32 DLLs use 'pw' prefix rather than 'lib'
9667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9669 esac
9673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9675 esac
9676 dynamic_linker='Win32 ld.exe'
9677 # FIXME: first we should search . and the directory the executable is in
9678 shlibpath_var=PATH
9681 darwin* | rhapsody*)
9682 dynamic_linker="$host_os dyld"
9683 version_type=darwin
9684 need_lib_prefix=no
9685 need_version=no
9686 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9687 soname_spec='${libname}${release}${major}$shared_ext'
9688 shlibpath_overrides_runpath=yes
9689 shlibpath_var=DYLD_LIBRARY_PATH
9690 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9693 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9696 dgux*)
9697 version_type=linux
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9705 freebsd1*)
9706 dynamic_linker=no
9709 freebsd* | dragonfly*)
9710 # DragonFly does not have aout. When/if they implement a new
9711 # versioning mechanism, adjust this.
9712 if test -x /usr/bin/objformat; then
9713 objformat=`/usr/bin/objformat`
9714 else
9715 case $host_os in
9716 freebsd[123]*) objformat=aout ;;
9717 *) objformat=elf ;;
9718 esac
9720 version_type=freebsd-$objformat
9721 case $version_type in
9722 freebsd-elf*)
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9724 need_version=no
9725 need_lib_prefix=no
9727 freebsd-*)
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9729 need_version=yes
9731 esac
9732 shlibpath_var=LD_LIBRARY_PATH
9733 case $host_os in
9734 freebsd2*)
9735 shlibpath_overrides_runpath=yes
9737 freebsd3.[01]* | freebsdelf3.[01]*)
9738 shlibpath_overrides_runpath=yes
9739 hardcode_into_libs=yes
9741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9743 shlibpath_overrides_runpath=no
9744 hardcode_into_libs=yes
9746 *) # from 4.6 on, and DragonFly
9747 shlibpath_overrides_runpath=yes
9748 hardcode_into_libs=yes
9750 esac
9753 gnu*)
9754 version_type=linux
9755 need_lib_prefix=no
9756 need_version=no
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 hardcode_into_libs=yes
9763 hpux9* | hpux10* | hpux11*)
9764 # Give a soname corresponding to the major version so that dld.sl refuses to
9765 # link against other versions.
9766 version_type=sunos
9767 need_lib_prefix=no
9768 need_version=no
9769 case $host_cpu in
9770 ia64*)
9771 shrext_cmds='.so'
9772 hardcode_into_libs=yes
9773 dynamic_linker="$host_os dld.so"
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 soname_spec='${libname}${release}${shared_ext}$major'
9778 if test "X$HPUX_IA64_MODE" = X32; then
9779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9780 else
9781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9785 hppa*64*)
9786 shrext_cmds='.sl'
9787 hardcode_into_libs=yes
9788 dynamic_linker="$host_os dld.sl"
9789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9797 shrext_cmds='.sl'
9798 dynamic_linker="$host_os dld.sl"
9799 shlibpath_var=SHLIB_PATH
9800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9804 esac
9805 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9806 postinstall_cmds='chmod 555 $lib'
9809 interix[3-9]*)
9810 version_type=linux
9811 need_lib_prefix=no
9812 need_version=no
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=no
9818 hardcode_into_libs=yes
9821 irix5* | irix6* | nonstopux*)
9822 case $host_os in
9823 nonstopux*) version_type=nonstopux ;;
9825 if test "$lt_cv_prog_gnu_ld" = yes; then
9826 version_type=linux
9827 else
9828 version_type=irix
9829 fi ;;
9830 esac
9831 need_lib_prefix=no
9832 need_version=no
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9835 case $host_os in
9836 irix5* | nonstopux*)
9837 libsuff= shlibsuff=
9840 case $LD in # libtool.m4 will add one of these switches to LD
9841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9842 libsuff= shlibsuff= libmagic=32-bit;;
9843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9844 libsuff=32 shlibsuff=N32 libmagic=N32;;
9845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9847 *) libsuff= shlibsuff= libmagic=never-match;;
9848 esac
9850 esac
9851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9852 shlibpath_overrides_runpath=no
9853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9855 hardcode_into_libs=yes
9858 # No shared lib support for Linux oldld, aout, or coff.
9859 linux*oldld* | linux*aout* | linux*coff*)
9860 dynamic_linker=no
9863 # This must be Linux ELF.
9864 linux* | k*bsd*-gnu)
9865 version_type=linux
9866 need_lib_prefix=no
9867 need_version=no
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 shlibpath_overrides_runpath=no
9873 # Some binutils ld are patched to set DT_RUNPATH
9874 save_LDFLAGS=$LDFLAGS
9875 save_libdir=$libdir
9876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9878 if test x$gcc_no_link = xyes; then
9879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9881 { (exit 1); exit 1; }; }
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9891 main ()
9895 return 0;
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9921 shlibpath_overrides_runpath=yes
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LDFLAGS=$save_LDFLAGS
9932 libdir=$save_libdir
9934 # This implies no fast_install, which is unacceptable.
9935 # Some rework will be needed to allow for fast_install
9936 # before this can be enabled.
9937 hardcode_into_libs=yes
9939 # Append ld.so.conf contents to the search path
9940 if test -f /etc/ld.so.conf; then
9941 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9942 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9945 # We used to test for /lib/ld.so.1 and disable shared libraries on
9946 # powerpc, because MkLinux only supported shared libraries with the
9947 # GNU dynamic linker. Since this was broken with cross compilers,
9948 # most powerpc-linux boxes support dynamic linking these days and
9949 # people can always --disable-shared, the test was removed, and we
9950 # assume the GNU/Linux dynamic linker is in use.
9951 dynamic_linker='GNU/Linux ld.so'
9954 netbsd*)
9955 version_type=sunos
9956 need_lib_prefix=no
9957 need_version=no
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9961 dynamic_linker='NetBSD (a.out) ld.so'
9962 else
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 dynamic_linker='NetBSD ld.elf_so'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9972 newsos6)
9973 version_type=linux
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=yes
9979 *nto* | *qnx*)
9980 version_type=qnx
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath=no
9987 hardcode_into_libs=yes
9988 dynamic_linker='ldqnx.so'
9991 openbsd*)
9992 version_type=sunos
9993 sys_lib_dlsearch_path_spec="/usr/lib"
9994 need_lib_prefix=no
9995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9996 case $host_os in
9997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9998 *) need_version=no ;;
9999 esac
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10004 case $host_os in
10005 openbsd2.[89] | openbsd2.[89].*)
10006 shlibpath_overrides_runpath=no
10009 shlibpath_overrides_runpath=yes
10011 esac
10012 else
10013 shlibpath_overrides_runpath=yes
10017 os2*)
10018 libname_spec='$name'
10019 shrext_cmds=".dll"
10020 need_lib_prefix=no
10021 library_names_spec='$libname${shared_ext} $libname.a'
10022 dynamic_linker='OS/2 ld.exe'
10023 shlibpath_var=LIBPATH
10026 osf3* | osf4* | osf5*)
10027 version_type=osf
10028 need_lib_prefix=no
10029 need_version=no
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10037 rdos*)
10038 dynamic_linker=no
10041 solaris*)
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=yes
10049 hardcode_into_libs=yes
10050 # ldd complains unless libraries are executable
10051 postinstall_cmds='chmod +x $lib'
10054 sunos4*)
10055 version_type=sunos
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=yes
10060 if test "$with_gnu_ld" = yes; then
10061 need_lib_prefix=no
10063 need_version=yes
10066 sysv4 | sysv4.3*)
10067 version_type=linux
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 case $host_vendor in
10072 sni)
10073 shlibpath_overrides_runpath=no
10074 need_lib_prefix=no
10075 runpath_var=LD_RUN_PATH
10077 siemens)
10078 need_lib_prefix=no
10080 motorola)
10081 need_lib_prefix=no
10082 need_version=no
10083 shlibpath_overrides_runpath=no
10084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10086 esac
10089 sysv4*MP*)
10090 if test -d /usr/nec ;then
10091 version_type=linux
10092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10093 soname_spec='$libname${shared_ext}.$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10099 version_type=freebsd-elf
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10107 if test "$with_gnu_ld" = yes; then
10108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10109 else
10110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10111 case $host_os in
10112 sco3.2v5*)
10113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10115 esac
10117 sys_lib_dlsearch_path_spec='/usr/lib'
10120 tpf*)
10121 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10122 version_type=linux
10123 need_lib_prefix=no
10124 need_version=no
10125 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=no
10128 hardcode_into_libs=yes
10131 uts4*)
10132 version_type=linux
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 shlibpath_var=LD_LIBRARY_PATH
10139 dynamic_linker=no
10141 esac
10142 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10143 echo "${ECHO_T}$dynamic_linker" >&6
10144 test "$dynamic_linker" = no && can_build_shared=no
10146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10147 if test "$GCC" = yes; then
10148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10237 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10238 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10239 hardcode_action=
10240 if test -n "$hardcode_libdir_flag_spec" ||
10241 test -n "$runpath_var" ||
10242 test "X$hardcode_automatic" = "Xyes" ; then
10244 # We can hardcode non-existent directories.
10245 if test "$hardcode_direct" != no &&
10246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10247 # have to relink, otherwise we might link with an installed library
10248 # when we should be linking with a yet-to-be-installed one
10249 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10250 test "$hardcode_minus_L" != no; then
10251 # Linking always hardcodes the temporary library directory.
10252 hardcode_action=relink
10253 else
10254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10255 hardcode_action=immediate
10257 else
10258 # We cannot hardcode anything, or else we can only hardcode existing
10259 # directories.
10260 hardcode_action=unsupported
10262 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10263 echo "${ECHO_T}$hardcode_action" >&6
10265 if test "$hardcode_action" = relink ||
10266 test "$inherit_rpath" = yes; then
10267 # Fast installation is not supported
10268 enable_fast_install=no
10269 elif test "$shlibpath_overrides_runpath" = yes ||
10270 test "$enable_shared" = no; then
10271 # Fast installation is not necessary
10272 enable_fast_install=needless
10280 if test "x$enable_dlopen" != xyes; then
10281 enable_dlopen=unknown
10282 enable_dlopen_self=unknown
10283 enable_dlopen_self_static=unknown
10284 else
10285 lt_cv_dlopen=no
10286 lt_cv_dlopen_libs=
10288 case $host_os in
10289 beos*)
10290 lt_cv_dlopen="load_add_on"
10291 lt_cv_dlopen_libs=
10292 lt_cv_dlopen_self=yes
10295 mingw* | pw32*)
10296 lt_cv_dlopen="LoadLibrary"
10297 lt_cv_dlopen_libs=
10300 cygwin*)
10301 lt_cv_dlopen="dlopen"
10302 lt_cv_dlopen_libs=
10305 darwin*)
10306 # if libdl is installed we need to link against it
10307 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10308 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10309 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 ac_check_lib_save_LIBS=$LIBS
10313 LIBS="-ldl $LIBS"
10314 if test x$gcc_no_link = xyes; then
10315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10317 { (exit 1); exit 1; }; }
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10326 /* Override any gcc2 internal prototype to avoid an error. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10332 char dlopen ();
10334 main ()
10336 dlopen ();
10338 return 0;
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10343 (eval $ac_link) 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag"
10351 || test ! -s conftest.err'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; } &&
10357 { ac_try='test -s conftest$ac_exeext'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 ac_cv_lib_dl_dlopen=yes
10364 else
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 ac_cv_lib_dl_dlopen=no
10370 rm -f conftest.err conftest.$ac_objext \
10371 conftest$ac_exeext conftest.$ac_ext
10372 LIBS=$ac_check_lib_save_LIBS
10374 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10375 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10376 if test $ac_cv_lib_dl_dlopen = yes; then
10377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10378 else
10380 lt_cv_dlopen="dyld"
10381 lt_cv_dlopen_libs=
10382 lt_cv_dlopen_self=yes
10389 echo "$as_me:$LINENO: checking for shl_load" >&5
10390 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10391 if test "${ac_cv_func_shl_load+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 if test x$gcc_no_link = xyes; then
10395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10397 { (exit 1); exit 1; }; }
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10407 #define shl_load innocuous_shl_load
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char shl_load (); below.
10411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 <limits.h> exists even on freestanding compilers. */
10414 #ifdef __STDC__
10415 # include <limits.h>
10416 #else
10417 # include <assert.h>
10418 #endif
10420 #undef shl_load
10422 /* Override any gcc2 internal prototype to avoid an error. */
10423 #ifdef __cplusplus
10424 extern "C"
10426 #endif
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10429 char shl_load ();
10430 /* The GNU C library defines this for functions which it implements
10431 to always fail with ENOSYS. Some functions are actually named
10432 something starting with __ and the normal name is an alias. */
10433 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10434 choke me
10435 #else
10436 char (*f) () = shl_load;
10437 #endif
10438 #ifdef __cplusplus
10440 #endif
10443 main ()
10445 return f != shl_load;
10447 return 0;
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452 (eval $ac_link) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_func_shl_load=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_func_shl_load=no
10479 rm -f conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10482 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10483 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10484 if test $ac_cv_func_shl_load = yes; then
10485 lt_cv_dlopen="shl_load"
10486 else
10487 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10488 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10489 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492 ac_check_lib_save_LIBS=$LIBS
10493 LIBS="-ldld $LIBS"
10494 if test x$gcc_no_link = xyes; then
10495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10497 { (exit 1); exit 1; }; }
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any gcc2 internal prototype to avoid an error. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 /* We use char because int might match the return type of a gcc2
10511 builtin and then its argument prototype would still apply. */
10512 char shl_load ();
10514 main ()
10516 shl_load ();
10518 return 0;
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523 (eval $ac_link) 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag"
10531 || test ! -s conftest.err'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_lib_dld_shl_load=yes
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_cv_lib_dld_shl_load=no
10550 rm -f conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10554 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10555 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10556 if test $ac_cv_lib_dld_shl_load = yes; then
10557 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10558 else
10559 echo "$as_me:$LINENO: checking for dlopen" >&5
10560 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10561 if test "${ac_cv_func_dlopen+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 if test x$gcc_no_link = xyes; then
10565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10567 { (exit 1); exit 1; }; }
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10577 #define dlopen innocuous_dlopen
10579 /* System header to define __stub macros and hopefully few prototypes,
10580 which can conflict with char dlopen (); below.
10581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10582 <limits.h> exists even on freestanding compilers. */
10584 #ifdef __STDC__
10585 # include <limits.h>
10586 #else
10587 # include <assert.h>
10588 #endif
10590 #undef dlopen
10592 /* Override any gcc2 internal prototype to avoid an error. */
10593 #ifdef __cplusplus
10594 extern "C"
10596 #endif
10597 /* We use char because int might match the return type of a gcc2
10598 builtin and then its argument prototype would still apply. */
10599 char dlopen ();
10600 /* The GNU C library defines this for functions which it implements
10601 to always fail with ENOSYS. Some functions are actually named
10602 something starting with __ and the normal name is an alias. */
10603 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10604 choke me
10605 #else
10606 char (*f) () = dlopen;
10607 #endif
10608 #ifdef __cplusplus
10610 #endif
10613 main ()
10615 return f != dlopen;
10617 return 0;
10619 _ACEOF
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -z "$ac_c_werror_flag"
10630 || test ! -s conftest.err'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_func_dlopen=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 ac_cv_func_dlopen=no
10649 rm -f conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10653 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10654 if test $ac_cv_func_dlopen = yes; then
10655 lt_cv_dlopen="dlopen"
10656 else
10657 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldl $LIBS"
10664 if test x$gcc_no_link = xyes; then
10665 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10667 { (exit 1); exit 1; }; }
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h. */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10676 /* Override any gcc2 internal prototype to avoid an error. */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10682 char dlopen ();
10684 main ()
10686 dlopen ();
10688 return 0;
10690 _ACEOF
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10693 (eval $ac_link) 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag"
10701 || test ! -s conftest.err'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest$ac_exeext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_cv_lib_dl_dlopen=yes
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ac_cv_lib_dl_dlopen=no
10720 rm -f conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10724 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10726 if test $ac_cv_lib_dl_dlopen = yes; then
10727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10728 else
10729 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10730 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10731 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-lsvld $LIBS"
10736 if test x$gcc_no_link = xyes; then
10737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10739 { (exit 1); exit 1; }; }
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 /* Override any gcc2 internal prototype to avoid an error. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char dlopen ();
10756 main ()
10758 dlopen ();
10760 return 0;
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag"
10773 || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest$ac_exeext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_lib_svld_dlopen=yes
10786 else
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 ac_cv_lib_svld_dlopen=no
10792 rm -f conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10796 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10797 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10798 if test $ac_cv_lib_svld_dlopen = yes; then
10799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10800 else
10801 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10802 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10803 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldld $LIBS"
10808 if test x$gcc_no_link = xyes; then
10809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10811 { (exit 1); exit 1; }; }
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10820 /* Override any gcc2 internal prototype to avoid an error. */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10826 char dld_link ();
10828 main ()
10830 dld_link ();
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest$ac_exeext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_lib_dld_dld_link=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_cv_lib_dld_dld_link=no
10864 rm -f conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866 LIBS=$ac_check_lib_save_LIBS
10868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10869 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10870 if test $ac_cv_lib_dld_dld_link = yes; then
10871 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10890 esac
10892 if test "x$lt_cv_dlopen" != xno; then
10893 enable_dlopen=yes
10894 else
10895 enable_dlopen=no
10898 case $lt_cv_dlopen in
10899 dlopen)
10900 save_CPPFLAGS="$CPPFLAGS"
10901 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10903 save_LDFLAGS="$LDFLAGS"
10904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10906 save_LIBS="$LIBS"
10907 LIBS="$lt_cv_dlopen_libs $LIBS"
10909 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10910 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10911 if test "${lt_cv_dlopen_self+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 if test "$cross_compiling" = yes; then :
10915 lt_cv_dlopen_self=cross
10916 else
10917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10918 lt_status=$lt_dlunknown
10919 cat > conftest.$ac_ext <<_LT_EOF
10920 #line 10920 "configure"
10921 #include "confdefs.h"
10923 #if HAVE_DLFCN_H
10924 #include <dlfcn.h>
10925 #endif
10927 #include <stdio.h>
10929 #ifdef RTLD_GLOBAL
10930 # define LT_DLGLOBAL RTLD_GLOBAL
10931 #else
10932 # ifdef DL_GLOBAL
10933 # define LT_DLGLOBAL DL_GLOBAL
10934 # else
10935 # define LT_DLGLOBAL 0
10936 # endif
10937 #endif
10939 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10940 find out it does not work in some platform. */
10941 #ifndef LT_DLLAZY_OR_NOW
10942 # ifdef RTLD_LAZY
10943 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10944 # else
10945 # ifdef DL_LAZY
10946 # define LT_DLLAZY_OR_NOW DL_LAZY
10947 # else
10948 # ifdef RTLD_NOW
10949 # define LT_DLLAZY_OR_NOW RTLD_NOW
10950 # else
10951 # ifdef DL_NOW
10952 # define LT_DLLAZY_OR_NOW DL_NOW
10953 # else
10954 # define LT_DLLAZY_OR_NOW 0
10955 # endif
10956 # endif
10957 # endif
10958 # endif
10959 #endif
10961 #ifdef __cplusplus
10962 extern "C" void exit (int);
10963 #endif
10965 void fnord() { int i=42;}
10966 int main ()
10968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10969 int status = $lt_dlunknown;
10971 if (self)
10973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10974 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10975 /* dlclose (self); */
10977 else
10978 puts (dlerror ());
10980 exit (status);
10982 _LT_EOF
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984 (eval $ac_link) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10988 (./conftest; exit; ) >&5 2>/dev/null
10989 lt_status=$?
10990 case x$lt_status in
10991 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10992 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10993 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10994 esac
10995 else :
10996 # compilation failed
10997 lt_cv_dlopen_self=no
11000 rm -fr conftest*
11004 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11005 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11007 if test "x$lt_cv_dlopen_self" = xyes; then
11008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11009 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11010 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11011 if test "${lt_cv_dlopen_self_static+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 if test "$cross_compiling" = yes; then :
11015 lt_cv_dlopen_self_static=cross
11016 else
11017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11018 lt_status=$lt_dlunknown
11019 cat > conftest.$ac_ext <<_LT_EOF
11020 #line 11020 "configure"
11021 #include "confdefs.h"
11023 #if HAVE_DLFCN_H
11024 #include <dlfcn.h>
11025 #endif
11027 #include <stdio.h>
11029 #ifdef RTLD_GLOBAL
11030 # define LT_DLGLOBAL RTLD_GLOBAL
11031 #else
11032 # ifdef DL_GLOBAL
11033 # define LT_DLGLOBAL DL_GLOBAL
11034 # else
11035 # define LT_DLGLOBAL 0
11036 # endif
11037 #endif
11039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11040 find out it does not work in some platform. */
11041 #ifndef LT_DLLAZY_OR_NOW
11042 # ifdef RTLD_LAZY
11043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11044 # else
11045 # ifdef DL_LAZY
11046 # define LT_DLLAZY_OR_NOW DL_LAZY
11047 # else
11048 # ifdef RTLD_NOW
11049 # define LT_DLLAZY_OR_NOW RTLD_NOW
11050 # else
11051 # ifdef DL_NOW
11052 # define LT_DLLAZY_OR_NOW DL_NOW
11053 # else
11054 # define LT_DLLAZY_OR_NOW 0
11055 # endif
11056 # endif
11057 # endif
11058 # endif
11059 #endif
11061 #ifdef __cplusplus
11062 extern "C" void exit (int);
11063 #endif
11065 void fnord() { int i=42;}
11066 int main ()
11068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11069 int status = $lt_dlunknown;
11071 if (self)
11073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11075 /* dlclose (self); */
11077 else
11078 puts (dlerror ());
11080 exit (status);
11082 _LT_EOF
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11088 (./conftest; exit; ) >&5 2>/dev/null
11089 lt_status=$?
11090 case x$lt_status in
11091 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11092 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11093 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11094 esac
11095 else :
11096 # compilation failed
11097 lt_cv_dlopen_self_static=no
11100 rm -fr conftest*
11104 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11105 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11108 CPPFLAGS="$save_CPPFLAGS"
11109 LDFLAGS="$save_LDFLAGS"
11110 LIBS="$save_LIBS"
11112 esac
11114 case $lt_cv_dlopen_self in
11115 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11116 *) enable_dlopen_self=unknown ;;
11117 esac
11119 case $lt_cv_dlopen_self_static in
11120 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11121 *) enable_dlopen_self_static=unknown ;;
11122 esac
11141 striplib=
11142 old_striplib=
11143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11145 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11148 echo "$as_me:$LINENO: result: yes" >&5
11149 echo "${ECHO_T}yes" >&6
11150 else
11151 # FIXME - insert some real tests, host_os isn't really good enough
11152 case $host_os in
11153 darwin*)
11154 if test -n "$STRIP" ; then
11155 striplib="$STRIP -x"
11156 old_striplib="$STRIP -S"
11157 echo "$as_me:$LINENO: result: yes" >&5
11158 echo "${ECHO_T}yes" >&6
11159 else
11160 echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6
11165 echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6
11168 esac
11182 # Report which library types will actually be built
11183 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11184 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11185 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11186 echo "${ECHO_T}$can_build_shared" >&6
11188 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11189 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11190 test "$can_build_shared" = "no" && enable_shared=no
11192 # On AIX, shared libraries and static libraries use the same namespace, and
11193 # are all built from PIC.
11194 case $host_os in
11195 aix3*)
11196 test "$enable_shared" = yes && enable_static=no
11197 if test -n "$RANLIB"; then
11198 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11199 postinstall_cmds='$RANLIB $lib'
11203 aix[4-9]*)
11204 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11205 test "$enable_shared" = yes && enable_static=no
11208 esac
11209 echo "$as_me:$LINENO: result: $enable_shared" >&5
11210 echo "${ECHO_T}$enable_shared" >&6
11212 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11213 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11214 # Make sure either enable_shared or enable_static is yes.
11215 test "$enable_shared" = yes || enable_static=yes
11216 echo "$as_me:$LINENO: result: $enable_static" >&5
11217 echo "${ECHO_T}$enable_static" >&6
11223 ac_ext=c
11224 ac_cpp='$CPP $CPPFLAGS'
11225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11229 CC="$lt_save_CC"
11232 ac_ext=cc
11233 ac_cpp='$CXXCPP $CPPFLAGS'
11234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11238 archive_cmds_need_lc_CXX=no
11239 allow_undefined_flag_CXX=
11240 always_export_symbols_CXX=no
11241 archive_expsym_cmds_CXX=
11242 compiler_needs_object_CXX=no
11243 export_dynamic_flag_spec_CXX=
11244 hardcode_direct_CXX=no
11245 hardcode_direct_absolute_CXX=no
11246 hardcode_libdir_flag_spec_CXX=
11247 hardcode_libdir_flag_spec_ld_CXX=
11248 hardcode_libdir_separator_CXX=
11249 hardcode_minus_L_CXX=no
11250 hardcode_shlibpath_var_CXX=unsupported
11251 hardcode_automatic_CXX=no
11252 inherit_rpath_CXX=no
11253 module_cmds_CXX=
11254 module_expsym_cmds_CXX=
11255 link_all_deplibs_CXX=unknown
11256 old_archive_cmds_CXX=$old_archive_cmds
11257 no_undefined_flag_CXX=
11258 whole_archive_flag_spec_CXX=
11259 enable_shared_with_static_runtimes_CXX=no
11261 # Source file extension for C++ test sources.
11262 ac_ext=cpp
11264 # Object file extension for compiled C++ test sources.
11265 objext=o
11266 objext_CXX=$objext
11268 # No sense in running all these tests if we already determined that
11269 # the CXX compiler isn't working. Some variables (like enable_shared)
11270 # are currently assumed to apply to all compilers on this platform,
11271 # and will be corrupted by setting them based on a non-working compiler.
11272 if test "$_lt_caught_CXX_error" != yes; then
11273 # Code to be used in simple compile tests
11274 lt_simple_compile_test_code="int some_variable = 0;"
11276 # Code to be used in simple link tests
11277 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11279 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11286 # If no C compiler was specified, use CC.
11287 LTCC=${LTCC-"$CC"}
11289 # If no C compiler flags were specified, use CFLAGS.
11290 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11292 # Allow CC to be a program name with arguments.
11293 compiler=$CC
11296 # save warnings/boilerplate of simple test code
11297 ac_outfile=conftest.$ac_objext
11298 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11300 _lt_compiler_boilerplate=`cat conftest.err`
11301 $RM conftest*
11303 ac_outfile=conftest.$ac_objext
11304 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11306 _lt_linker_boilerplate=`cat conftest.err`
11307 $RM conftest*
11310 # Allow CC to be a program name with arguments.
11311 lt_save_CC=$CC
11312 lt_save_LD=$LD
11313 lt_save_GCC=$GCC
11314 GCC=$GXX
11315 lt_save_with_gnu_ld=$with_gnu_ld
11316 lt_save_path_LD=$lt_cv_path_LD
11317 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11318 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11319 else
11320 $as_unset lt_cv_prog_gnu_ld
11322 if test -n "${lt_cv_path_LDCXX+set}"; then
11323 lt_cv_path_LD=$lt_cv_path_LDCXX
11324 else
11325 $as_unset lt_cv_path_LD
11327 test -z "${LDCXX+set}" || LD=$LDCXX
11328 CC=${CXX-"c++"}
11329 compiler=$CC
11330 compiler_CXX=$CC
11331 for cc_temp in $compiler""; do
11332 case $cc_temp in
11333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11335 \-*) ;;
11336 *) break;;
11337 esac
11338 done
11339 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11342 if test -n "$compiler"; then
11343 # We don't want -fno-exception when compiling C++ code, so set the
11344 # no_builtin_flag separately
11345 if test "$GXX" = yes; then
11346 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11347 else
11348 lt_prog_compiler_no_builtin_flag_CXX=
11351 if test "$GXX" = yes; then
11352 # Set up default GNU C++ configuration
11356 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11357 if test "${with_gnu_ld+set}" = set; then
11358 withval="$with_gnu_ld"
11359 test "$withval" = no || with_gnu_ld=yes
11360 else
11361 with_gnu_ld=no
11363 ac_prog=ld
11364 if test "$GCC" = yes; then
11365 # Check if gcc -print-prog-name=ld gives a path.
11366 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11367 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11368 case $host in
11369 *-*-mingw*)
11370 # gcc leaves a trailing carriage return which upsets mingw
11371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11374 esac
11375 case $ac_prog in
11376 # Accept absolute paths.
11377 [\\/]* | ?:[\\/]*)
11378 re_direlt='/[^/][^/]*/\.\./'
11379 # Canonicalize the pathname of ld
11380 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11381 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11382 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11383 done
11384 test -z "$LD" && LD="$ac_prog"
11387 # If it fails, then pretend we aren't using GCC.
11388 ac_prog=ld
11391 # If it is relative, then search for the first ld in PATH.
11392 with_gnu_ld=unknown
11394 esac
11395 elif test "$with_gnu_ld" = yes; then
11396 echo "$as_me:$LINENO: checking for GNU ld" >&5
11397 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11398 else
11399 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11400 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11402 if test "${lt_cv_path_LD+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405 if test -z "$LD"; then
11406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11407 for ac_dir in $PATH; do
11408 IFS="$lt_save_ifs"
11409 test -z "$ac_dir" && ac_dir=.
11410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11411 lt_cv_path_LD="$ac_dir/$ac_prog"
11412 # Check to see if the program is GNU ld. I'd rather use --version,
11413 # but apparently some variants of GNU ld only accept -v.
11414 # Break only if it was the GNU/non-GNU ld that we prefer.
11415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11416 *GNU* | *'with BFD'*)
11417 test "$with_gnu_ld" != no && break
11420 test "$with_gnu_ld" != yes && break
11422 esac
11424 done
11425 IFS="$lt_save_ifs"
11426 else
11427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11431 LD="$lt_cv_path_LD"
11432 if test -n "$LD"; then
11433 echo "$as_me:$LINENO: result: $LD" >&5
11434 echo "${ECHO_T}$LD" >&6
11435 else
11436 echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6
11439 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11440 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11441 { (exit 1); exit 1; }; }
11442 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11443 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11444 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11448 case `$LD -v 2>&1 </dev/null` in
11449 *GNU* | *'with BFD'*)
11450 lt_cv_prog_gnu_ld=yes
11453 lt_cv_prog_gnu_ld=no
11455 esac
11457 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11458 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11459 with_gnu_ld=$lt_cv_prog_gnu_ld
11467 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11468 # archiving commands below assume that GNU ld is being used.
11469 if test "$with_gnu_ld" = yes; then
11470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11471 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'
11473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476 # If archive_cmds runs LD, not CC, wlarc should be empty
11477 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11478 # investigate it a little bit more. (MM)
11479 wlarc='${wl}'
11481 # ancient GNU ld didn't support --whole-archive et. al.
11482 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11483 $GREP 'no-whole-archive' > /dev/null; then
11484 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11485 else
11486 whole_archive_flag_spec_CXX=
11488 else
11489 with_gnu_ld=no
11490 wlarc=
11492 # A generic and very simple default shared library creation
11493 # command for GNU C++ for the case where it uses the native
11494 # linker, instead of GNU ld. If possible, this setting should
11495 # overridden to take advantage of the native linker features on
11496 # the platform it is being used on.
11497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11500 # Commands to make compiler produce verbose output that lists
11501 # what "hidden" libraries, object files and flags are used when
11502 # linking a shared library.
11503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11505 else
11506 GXX=no
11507 with_gnu_ld=no
11508 wlarc=
11511 # PORTME: fill in a description of your system's C++ link characteristics
11512 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11513 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11514 ld_shlibs_CXX=yes
11515 case $host_os in
11516 aix3*)
11517 # FIXME: insert proper C++ library support
11518 ld_shlibs_CXX=no
11520 aix[4-9]*)
11521 if test "$host_cpu" = ia64; then
11522 # On IA64, the linker does run time linking by default, so we don't
11523 # have to do anything special.
11524 aix_use_runtimelinking=no
11525 exp_sym_flag='-Bexport'
11526 no_entry_flag=""
11527 else
11528 aix_use_runtimelinking=no
11530 # Test if we are trying to use run time linking or normal
11531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11532 # need to do runtime linking.
11533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11534 for ld_flag in $LDFLAGS; do
11535 case $ld_flag in
11536 *-brtl*)
11537 aix_use_runtimelinking=yes
11538 break
11540 esac
11541 done
11543 esac
11545 exp_sym_flag='-bexport'
11546 no_entry_flag='-bnoentry'
11549 # When large executables or shared objects are built, AIX ld can
11550 # have problems creating the table of contents. If linking a library
11551 # or program results in "error TOC overflow" add -mminimal-toc to
11552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11555 archive_cmds_CXX=''
11556 hardcode_direct_CXX=yes
11557 hardcode_direct_absolute_CXX=yes
11558 hardcode_libdir_separator_CXX=':'
11559 link_all_deplibs_CXX=yes
11560 file_list_spec_CXX='${wl}-f,'
11562 if test "$GXX" = yes; then
11563 case $host_os in aix4.[012]|aix4.[012].*)
11564 # We only want to do this on AIX 4.2 and lower, the check
11565 # below for broken collect2 doesn't work under 4.3+
11566 collect2name=`${CC} -print-prog-name=collect2`
11567 if test -f "$collect2name" &&
11568 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11569 then
11570 # We have reworked collect2
11572 else
11573 # We have old collect2
11574 hardcode_direct_CXX=unsupported
11575 # It fails to find uninstalled libraries when the uninstalled
11576 # path is not listed in the libpath. Setting hardcode_minus_L
11577 # to unsupported forces relinking
11578 hardcode_minus_L_CXX=yes
11579 hardcode_libdir_flag_spec_CXX='-L$libdir'
11580 hardcode_libdir_separator_CXX=
11582 esac
11583 shared_flag='-shared'
11584 if test "$aix_use_runtimelinking" = yes; then
11585 shared_flag="$shared_flag "'${wl}-G'
11587 else
11588 # not using gcc
11589 if test "$host_cpu" = ia64; then
11590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11591 # chokes on -Wl,-G. The following line is correct:
11592 shared_flag='-G'
11593 else
11594 if test "$aix_use_runtimelinking" = yes; then
11595 shared_flag='${wl}-G'
11596 else
11597 shared_flag='${wl}-bM:SRE'
11602 # It seems that -bexpall does not export symbols beginning with
11603 # underscore (_), so it is better to generate a list of symbols to
11604 # export.
11605 always_export_symbols_CXX=yes
11606 if test "$aix_use_runtimelinking" = yes; then
11607 # Warning - without using the other runtime loading flags (-brtl),
11608 # -berok will link without error, but may produce a broken library.
11609 allow_undefined_flag_CXX='-berok'
11610 # Determine the default libpath from the value encoded in an empty
11611 # executable.
11612 if test x$gcc_no_link = xyes; then
11613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11615 { (exit 1); exit 1; }; }
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11625 main ()
11629 return 0;
11631 _ACEOF
11632 rm -f conftest.$ac_objext conftest$ac_exeext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_cxx_werror_flag"
11642 || test ! -s conftest.err'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11655 lt_aix_libpath_sed='
11656 /Import File Strings/,/^$/ {
11657 /^0/ {
11658 s/^0 *\(.*\)$/\1/
11662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 # Check for a 64-bit object if we didn't find anything.
11664 if test -z "$aix_libpath"; then
11665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11672 rm -f conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11676 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11678 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11679 else
11680 if test "$host_cpu" = ia64; then
11681 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11682 allow_undefined_flag_CXX="-z nodefs"
11683 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11684 else
11685 # Determine the default libpath from the value encoded in an
11686 # empty executable.
11687 if test x$gcc_no_link = xyes; then
11688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11690 { (exit 1); exit 1; }; }
11692 cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h. */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11700 main ()
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_cxx_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11730 lt_aix_libpath_sed='
11731 /Import File Strings/,/^$/ {
11732 /^0/ {
11733 s/^0 *\(.*\)$/\1/
11737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11738 # Check for a 64-bit object if we didn't find anything.
11739 if test -z "$aix_libpath"; then
11740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11747 rm -f conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11751 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11752 # Warning - without using the other run time loading flags,
11753 # -berok will link without error, but may produce a broken library.
11754 no_undefined_flag_CXX=' ${wl}-bernotok'
11755 allow_undefined_flag_CXX=' ${wl}-berok'
11756 # Exported symbols can be pulled into shared objects from archives
11757 whole_archive_flag_spec_CXX='$convenience'
11758 archive_cmds_need_lc_CXX=yes
11759 # This is similar to how AIX traditionally builds its shared
11760 # libraries.
11761 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11766 beos*)
11767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11768 allow_undefined_flag_CXX=unsupported
11769 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11770 # support --undefined. This deserves some investigation. FIXME
11771 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11772 else
11773 ld_shlibs_CXX=no
11777 chorus*)
11778 case $cc_basename in
11780 # FIXME: insert proper C++ library support
11781 ld_shlibs_CXX=no
11783 esac
11786 cygwin* | mingw* | pw32*)
11787 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11788 # as there is no search path for DLLs.
11789 hardcode_libdir_flag_spec_CXX='-L$libdir'
11790 allow_undefined_flag_CXX=unsupported
11791 always_export_symbols_CXX=no
11792 enable_shared_with_static_runtimes_CXX=yes
11794 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11796 # If the export-symbols file already is a .def file (1st line
11797 # is EXPORTS), use it as is; otherwise, prepend...
11798 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11799 cp $export_symbols $output_objdir/$soname.def;
11800 else
11801 echo EXPORTS > $output_objdir/$soname.def;
11802 cat $export_symbols >> $output_objdir/$soname.def;
11804 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11805 else
11806 ld_shlibs_CXX=no
11809 darwin* | rhapsody*)
11810 case $host_os in
11811 rhapsody* | darwin1.[012])
11812 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11814 *) # Darwin 1.3 on
11815 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11816 10.[012])
11817 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11819 10.*)
11820 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11822 esac
11824 esac
11825 archive_cmds_need_lc_CXX=no
11826 hardcode_direct_CXX=no
11827 hardcode_automatic_CXX=yes
11828 hardcode_shlibpath_var_CXX=unsupported
11829 whole_archive_flag_spec_CXX=''
11830 link_all_deplibs_CXX=yes
11832 if test "$GXX" = yes ; then
11833 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 lt_cv_apple_cc_single_mod=no
11837 if test -z "${LT_MULTI_MODULE}"; then
11838 # By default we will add the -single_module flag. You can override
11839 # by either setting the environment variable LT_MULTI_MODULE
11840 # non-empty at configure time, or by adding -multi-module to the
11841 # link flags.
11842 echo "int foo(void){return 1;}" > conftest.c
11843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11844 -dynamiclib ${wl}-single_module conftest.c
11845 if test -f libconftest.dylib; then
11846 lt_cv_apple_cc_single_mod=yes
11847 rm libconftest.dylib
11849 rm conftest.$ac_ext
11853 output_verbose_link_cmd=echo
11854 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11855 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11856 archive_expsym_cmds_CXX='sed "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}'
11857 else
11858 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11859 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11861 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11862 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11863 else
11864 case $cc_basename in
11865 xlc*)
11866 output_verbose_link_cmd=echo
11867 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
11868 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11869 # Don't fix this by using the ld -exported_symbols_list flag,
11870 # it doesn't exist in older darwin lds
11871 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11872 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11875 ld_shlibs_CXX=no
11877 esac
11881 dgux*)
11882 case $cc_basename in
11883 ec++*)
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11887 ghcx*)
11888 # Green Hills C++ Compiler
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11896 esac
11899 freebsd[12]*)
11900 # C++ shared libraries reported to be fairly broken before
11901 # switch to ELF
11902 ld_shlibs_CXX=no
11905 freebsd-elf*)
11906 archive_cmds_need_lc_CXX=no
11909 freebsd* | dragonfly*)
11910 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11911 # conventions
11912 ld_shlibs_CXX=yes
11915 gnu*)
11918 hpux9*)
11919 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11920 hardcode_libdir_separator_CXX=:
11921 export_dynamic_flag_spec_CXX='${wl}-E'
11922 hardcode_direct_CXX=yes
11923 hardcode_minus_L_CXX=yes # Not in the search PATH,
11924 # but as the default
11925 # location of the library.
11927 case $cc_basename in
11928 CC*)
11929 # FIXME: insert proper C++ library support
11930 ld_shlibs_CXX=no
11932 aCC*)
11933 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'
11934 # Commands to make compiler produce verbose output that lists
11935 # what "hidden" libraries, object files and flags are used when
11936 # linking a shared library.
11938 # There doesn't appear to be a way to prevent this compiler from
11939 # explicitly linking system object files so we need to strip them
11940 # from the output so that they don't get included in the library
11941 # dependencies.
11942 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 "X$list" | $Xsed'
11945 if test "$GXX" = yes; then
11946 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'
11947 else
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11952 esac
11955 hpux10*|hpux11*)
11956 if test $with_gnu_ld = no; then
11957 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11958 hardcode_libdir_separator_CXX=:
11960 case $host_cpu in
11961 hppa*64*|ia64*)
11964 export_dynamic_flag_spec_CXX='${wl}-E'
11966 esac
11968 case $host_cpu in
11969 hppa*64*|ia64*)
11970 hardcode_direct_CXX=no
11971 hardcode_shlibpath_var_CXX=no
11974 hardcode_direct_CXX=yes
11975 hardcode_direct_absolute_CXX=yes
11976 hardcode_minus_L_CXX=yes # Not in the search PATH,
11977 # but as the default
11978 # location of the library.
11980 esac
11982 case $cc_basename in
11983 CC*)
11984 # FIXME: insert proper C++ library support
11985 ld_shlibs_CXX=no
11987 aCC*)
11988 case $host_cpu in
11989 hppa*64*)
11990 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11992 ia64*)
11993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11998 esac
11999 # Commands to make compiler produce verbose output that lists
12000 # what "hidden" libraries, object files and flags are used when
12001 # linking a shared library.
12003 # There doesn't appear to be a way to prevent this compiler from
12004 # explicitly linking system object files so we need to strip them
12005 # from the output so that they don't get included in the library
12006 # dependencies.
12007 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 "X$list" | $Xsed'
12010 if test "$GXX" = yes; then
12011 if test $with_gnu_ld = no; then
12012 case $host_cpu in
12013 hppa*64*)
12014 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12016 ia64*)
12017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12020 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'
12022 esac
12024 else
12025 # FIXME: insert proper C++ library support
12026 ld_shlibs_CXX=no
12029 esac
12032 interix[3-9]*)
12033 hardcode_direct_CXX=no
12034 hardcode_shlibpath_var_CXX=no
12035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12036 export_dynamic_flag_spec_CXX='${wl}-E'
12037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12038 # Instead, shared libraries are loaded at an image base (0x10000000 by
12039 # default) and relocated if they conflict, which is a slow very memory
12040 # consuming and fragmenting process. To avoid this, we pick a random,
12041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12043 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12044 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12046 irix5* | irix6*)
12047 case $cc_basename in
12048 CC*)
12049 # SGI C++
12050 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12052 # Archives containing C++ object files must be created using
12053 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12054 # necessary to make sure instantiated templates are included
12055 # in the archive.
12056 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12059 if test "$GXX" = yes; then
12060 if test "$with_gnu_ld" = no; then
12061 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12062 else
12063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12066 link_all_deplibs_CXX=yes
12068 esac
12069 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12070 hardcode_libdir_separator_CXX=:
12071 inherit_rpath_CXX=yes
12074 linux* | k*bsd*-gnu)
12075 case $cc_basename in
12076 KCC*)
12077 # Kuck and Associates, Inc. (KAI) C++ Compiler
12079 # KCC will only create a shared library if the output file
12080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12081 # to its proper name (with version) after linking.
12082 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'
12083 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'
12084 # Commands to make compiler produce verbose output that lists
12085 # what "hidden" libraries, object files and flags are used when
12086 # linking a shared library.
12088 # There doesn't appear to be a way to prevent this compiler from
12089 # explicitly linking system object files so we need to strip them
12090 # from the output so that they don't get included in the library
12091 # dependencies.
12092 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 "X$list" | $Xsed'
12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12097 # Archives containing C++ object files must be created using
12098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12101 icpc* | ecpc* )
12102 # Intel C++
12103 with_gnu_ld=yes
12104 # version 8.0 and above of icpc choke on multiply defined symbols
12105 # if we add $predep_objects and $postdep_objects, however 7.1 and
12106 # earlier do not add the objects themselves.
12107 case `$CC -V 2>&1` in
12108 *"Version 7."*)
12109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12110 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'
12112 *) # Version 8.0 or newer
12113 tmp_idyn=
12114 case $host_cpu in
12115 ia64*) tmp_idyn=' -i_dynamic';;
12116 esac
12117 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12118 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12120 esac
12121 archive_cmds_need_lc_CXX=no
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12124 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12126 pgCC*)
12127 # Portland Group C++ compiler
12128 case `$CC -V` in
12129 *pgCC\ [1-5]*)
12130 prelink_cmds_CXX='tpldir=Template.dir~
12131 rm -rf $tpldir~
12132 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12133 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12134 old_archive_cmds_CXX='tpldir=Template.dir~
12135 rm -rf $tpldir~
12136 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12137 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12138 $RANLIB $oldlib'
12139 archive_cmds_CXX='tpldir=Template.dir~
12140 rm -rf $tpldir~
12141 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12142 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12143 archive_expsym_cmds_CXX='tpldir=Template.dir~
12144 rm -rf $tpldir~
12145 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12146 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12148 *) # Version 6 will use weak symbols
12149 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12150 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12152 esac
12154 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12156 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12158 cxx*)
12159 # Compaq C++
12160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 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'
12163 runpath_var=LD_RUN_PATH
12164 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12165 hardcode_libdir_separator_CXX=:
12167 # Commands to make compiler produce verbose output that lists
12168 # what "hidden" libraries, object files and flags are used when
12169 # linking a shared library.
12171 # There doesn't appear to be a way to prevent this compiler from
12172 # explicitly linking system object files so we need to strip them
12173 # from the output so that they don't get included in the library
12174 # dependencies.
12175 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12178 case `$CC -V 2>&1 | sed 5q` in
12179 *Sun\ C*)
12180 # Sun C++ 5.9
12181 no_undefined_flag_CXX=' -zdefs'
12182 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12184 hardcode_libdir_flag_spec_CXX='-R$libdir'
12185 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12186 compiler_needs_object_CXX=yes
12188 # Not sure whether something based on
12189 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12190 # would be better.
12191 output_verbose_link_cmd='echo'
12193 # Archives containing C++ object files must be created using
12194 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12195 # necessary to make sure instantiated templates are included
12196 # in the archive.
12197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12199 esac
12201 esac
12204 lynxos*)
12205 # FIXME: insert proper C++ library support
12206 ld_shlibs_CXX=no
12209 m88k*)
12210 # FIXME: insert proper C++ library support
12211 ld_shlibs_CXX=no
12214 mvs*)
12215 case $cc_basename in
12216 cxx*)
12217 # FIXME: insert proper C++ library support
12218 ld_shlibs_CXX=no
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12224 esac
12227 netbsd*)
12228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12229 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12230 wlarc=
12231 hardcode_libdir_flag_spec_CXX='-R$libdir'
12232 hardcode_direct_CXX=yes
12233 hardcode_shlibpath_var_CXX=no
12235 # Workaround some broken pre-1.5 toolchains
12236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12239 *nto* | *qnx*)
12240 ld_shlibs_CXX=yes
12243 openbsd2*)
12244 # C++ shared libraries are fairly broken
12245 ld_shlibs_CXX=no
12248 openbsd*)
12249 hardcode_direct_CXX=yes
12250 hardcode_shlibpath_var_CXX=no
12251 hardcode_direct_absolute_CXX=yes
12252 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12255 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12256 export_dynamic_flag_spec_CXX='${wl}-E'
12257 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12259 output_verbose_link_cmd=echo
12262 osf3* | osf4* | osf5*)
12263 case $cc_basename in
12264 KCC*)
12265 # Kuck and Associates, Inc. (KAI) C++ Compiler
12267 # KCC will only create a shared library if the output file
12268 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12269 # to its proper name (with version) after linking.
12270 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'
12272 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12273 hardcode_libdir_separator_CXX=:
12275 # Archives containing C++ object files must be created using
12276 # the KAI C++ compiler.
12277 case $host in
12278 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12279 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12280 esac
12282 RCC*)
12283 # Rational C++ 2.4.1
12284 # FIXME: insert proper C++ library support
12285 ld_shlibs_CXX=no
12287 cxx*)
12288 case $host in
12289 osf3*)
12290 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12291 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12292 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12295 allow_undefined_flag_CXX=' -expect_unresolved \*'
12296 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12297 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12298 echo "-hidden">> $lib.exp~
12299 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12300 $RM $lib.exp'
12301 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12303 esac
12305 hardcode_libdir_separator_CXX=:
12307 # Commands to make compiler produce verbose output that lists
12308 # what "hidden" libraries, object files and flags are used when
12309 # linking a shared library.
12311 # There doesn't appear to be a way to prevent this compiler from
12312 # explicitly linking system object files so we need to strip them
12313 # from the output so that they don't get included in the library
12314 # dependencies.
12315 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12318 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12319 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12320 case $host in
12321 osf3*)
12322 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12325 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12327 esac
12329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12330 hardcode_libdir_separator_CXX=:
12332 # Commands to make compiler produce verbose output that lists
12333 # what "hidden" libraries, object files and flags are used when
12334 # linking a shared library.
12335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12337 else
12338 # FIXME: insert proper C++ library support
12339 ld_shlibs_CXX=no
12342 esac
12345 psos*)
12346 # FIXME: insert proper C++ library support
12347 ld_shlibs_CXX=no
12350 sunos4*)
12351 case $cc_basename in
12352 CC*)
12353 # Sun C++ 4.x
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12357 lcc*)
12358 # Lucid
12359 # FIXME: insert proper C++ library support
12360 ld_shlibs_CXX=no
12363 # FIXME: insert proper C++ library support
12364 ld_shlibs_CXX=no
12366 esac
12369 solaris*)
12370 case $cc_basename in
12371 CC*)
12372 # Sun C++ 4.2, 5.x and Centerline C++
12373 archive_cmds_need_lc_CXX=yes
12374 no_undefined_flag_CXX=' -zdefs'
12375 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12376 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12377 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12379 hardcode_libdir_flag_spec_CXX='-R$libdir'
12380 hardcode_shlibpath_var_CXX=no
12381 case $host_os in
12382 solaris2.[0-5] | solaris2.[0-5].*) ;;
12384 # The compiler driver will combine and reorder linker options,
12385 # but understands `-z linker_flag'.
12386 # Supported since Solaris 2.6 (maybe 2.5.1?)
12387 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12389 esac
12390 link_all_deplibs_CXX=yes
12392 output_verbose_link_cmd='echo'
12394 # Archives containing C++ object files must be created using
12395 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12396 # necessary to make sure instantiated templates are included
12397 # in the archive.
12398 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12400 gcx*)
12401 # Green Hills C++ Compiler
12402 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12404 # The C++ compiler must be used to create the archive.
12405 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12408 # GNU C++ compiler with Solaris linker
12409 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12410 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12411 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12412 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12413 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12414 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12416 # Commands to make compiler produce verbose output that lists
12417 # what "hidden" libraries, object files and flags are used when
12418 # linking a shared library.
12419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12420 else
12421 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12422 # platform.
12423 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12424 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12425 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12427 # Commands to make compiler produce verbose output that lists
12428 # what "hidden" libraries, object files and flags are used when
12429 # linking a shared library.
12430 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12433 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12434 case $host_os in
12435 solaris2.[0-5] | solaris2.[0-5].*) ;;
12437 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12439 esac
12442 esac
12445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12446 no_undefined_flag_CXX='${wl}-z,text'
12447 archive_cmds_need_lc_CXX=no
12448 hardcode_shlibpath_var_CXX=no
12449 runpath_var='LD_RUN_PATH'
12451 case $cc_basename in
12452 CC*)
12453 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12454 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12457 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12458 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12460 esac
12463 sysv5* | sco3.2v5* | sco5v6*)
12464 # Note: We can NOT use -z defs as we might desire, because we do not
12465 # link with -lc, and that would cause any symbols used from libc to
12466 # always be unresolved, which means just about no library would
12467 # ever link correctly. If we're not using GNU ld we use -z text
12468 # though, which does catch some bad symbols but isn't as heavy-handed
12469 # as -z defs.
12470 no_undefined_flag_CXX='${wl}-z,text'
12471 allow_undefined_flag_CXX='${wl}-z,nodefs'
12472 archive_cmds_need_lc_CXX=no
12473 hardcode_shlibpath_var_CXX=no
12474 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12475 hardcode_libdir_separator_CXX=':'
12476 link_all_deplibs_CXX=yes
12477 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12478 runpath_var='LD_RUN_PATH'
12480 case $cc_basename in
12481 CC*)
12482 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12483 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12487 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12489 esac
12492 tandem*)
12493 case $cc_basename in
12494 NCC*)
12495 # NonStop-UX NCC 3.20
12496 # FIXME: insert proper C++ library support
12497 ld_shlibs_CXX=no
12500 # FIXME: insert proper C++ library support
12501 ld_shlibs_CXX=no
12503 esac
12506 vxworks*)
12507 # FIXME: insert proper C++ library support
12508 ld_shlibs_CXX=no
12512 # FIXME: insert proper C++ library support
12513 ld_shlibs_CXX=no
12515 esac
12517 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12518 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12519 test "$ld_shlibs_CXX" = no && can_build_shared=no
12521 GCC_CXX="$GXX"
12522 LD_CXX="$LD"
12524 ## CAVEAT EMPTOR:
12525 ## There is no encapsulation within the following macros, do not change
12526 ## the running order or otherwise move them around unless you know exactly
12527 ## what you are doing...
12528 # Dependencies to place before and after the object being linked:
12529 predep_objects_CXX=
12530 postdep_objects_CXX=
12531 predeps_CXX=
12532 postdeps_CXX=
12533 compiler_lib_search_path_CXX=
12535 cat > conftest.$ac_ext <<_LT_EOF
12536 class Foo
12538 public:
12539 Foo (void) { a = 0; }
12540 private:
12541 int a;
12543 _LT_EOF
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; then
12550 # Parse the compiler output and extract the necessary
12551 # objects, libraries and library flags.
12553 # Sentinel used to keep track of whether or not we are before
12554 # the conftest object file.
12555 pre_test_object_deps_done=no
12557 # The `*' in the case matches for architectures that use `case' in
12558 # $output_verbose_cmd can trigger glob expansion during the loop
12559 # eval without this substitution.
12560 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12562 for p in `eval $output_verbose_link_cmd`; do
12563 case $p in
12565 -L* | -R* | -l*)
12566 # Some compilers place space between "-{L,R}" and the path.
12567 # Remove the space.
12568 if test $p = "-L" ||
12569 test $p = "-R"; then
12570 prev=$p
12571 continue
12572 else
12573 prev=
12576 if test "$pre_test_object_deps_done" = no; then
12577 case $p in
12578 -L* | -R*)
12579 # Internal compiler library paths should come after those
12580 # provided the user. The postdeps already come after the
12581 # user supplied libs so there is no need to process them.
12582 if test -z "$compiler_lib_search_path_CXX"; then
12583 compiler_lib_search_path_CXX="${prev}${p}"
12584 else
12585 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12588 # The "-l" case would never come before the object being
12589 # linked, so don't bother handling this case.
12590 esac
12591 else
12592 if test -z "$postdeps_CXX"; then
12593 postdeps_CXX="${prev}${p}"
12594 else
12595 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12600 *.$objext)
12601 # This assumes that the test object file only shows up
12602 # once in the compiler output.
12603 if test "$p" = "conftest.$objext"; then
12604 pre_test_object_deps_done=yes
12605 continue
12608 if test "$pre_test_object_deps_done" = no; then
12609 if test -z "$predep_objects_CXX"; then
12610 predep_objects_CXX="$p"
12611 else
12612 predep_objects_CXX="$predep_objects_CXX $p"
12614 else
12615 if test -z "$postdep_objects_CXX"; then
12616 postdep_objects_CXX="$p"
12617 else
12618 postdep_objects_CXX="$postdep_objects_CXX $p"
12623 *) ;; # Ignore the rest.
12625 esac
12626 done
12628 # Clean up.
12629 rm -f a.out a.exe
12630 else
12631 echo "libtool.m4: error: problem compiling CXX test program"
12634 $RM -f confest.$objext
12636 # PORTME: override above test on systems where it is broken
12637 case $host_os in
12638 interix[3-9]*)
12639 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12640 # hack all around it, let's just trust "g++" to DTRT.
12641 predep_objects_CXX=
12642 postdep_objects_CXX=
12643 postdeps_CXX=
12646 linux*)
12647 case `$CC -V 2>&1 | sed 5q` in
12648 *Sun\ C*)
12649 # Sun C++ 5.9
12651 # The more standards-conforming stlport4 library is
12652 # incompatible with the Cstd library. Avoid specifying
12653 # it if it's in CXXFLAGS. Ignore libCrun as
12654 # -library=stlport4 depends on it.
12655 case " $CXX $CXXFLAGS " in
12656 *" -library=stlport4 "*)
12657 solaris_use_stlport4=yes
12659 esac
12661 if test "$solaris_use_stlport4" != yes; then
12662 postdeps_CXX='-library=Cstd -library=Crun'
12665 esac
12668 solaris*)
12669 case $cc_basename in
12670 CC*)
12671 # The more standards-conforming stlport4 library is
12672 # incompatible with the Cstd library. Avoid specifying
12673 # it if it's in CXXFLAGS. Ignore libCrun as
12674 # -library=stlport4 depends on it.
12675 case " $CXX $CXXFLAGS " in
12676 *" -library=stlport4 "*)
12677 solaris_use_stlport4=yes
12679 esac
12681 # Adding this requires a known-good setup of shared libraries for
12682 # Sun compiler versions before 5.6, else PIC objects from an old
12683 # archive will be linked into the output, leading to subtle bugs.
12684 if test "$solaris_use_stlport4" != yes; then
12685 postdeps_CXX='-library=Cstd -library=Crun'
12688 esac
12690 esac
12693 case " $postdeps_CXX " in
12694 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12695 esac
12722 lt_prog_compiler_wl_CXX=
12723 lt_prog_compiler_pic_CXX=
12724 lt_prog_compiler_static_CXX=
12726 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12727 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12729 # C++ specific cases for pic, static, wl, etc.
12730 if test "$GXX" = yes; then
12731 lt_prog_compiler_wl_CXX='-Wl,'
12732 lt_prog_compiler_static_CXX='-static'
12734 case $host_os in
12735 aix*)
12736 # All AIX code is PIC.
12737 if test "$host_cpu" = ia64; then
12738 # AIX 5 now supports IA64 processor
12739 lt_prog_compiler_static_CXX='-Bstatic'
12742 amigaos*)
12743 if test "$host_cpu" = m68k; then
12744 # FIXME: we need at least 68020 code to build shared libraries, but
12745 # adding the `-m68020' flag to GCC prevents building anything better,
12746 # like `-m68040'.
12747 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12750 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12751 # PIC is the default for these OSes.
12753 mingw* | cygwin* | os2* | pw32*)
12754 # This hack is so that the source file can tell whether it is being
12755 # built for inclusion in a dll (and should export symbols for example).
12756 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12757 # (--disable-auto-import) libraries
12758 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12760 darwin* | rhapsody*)
12761 # PIC is the default on this platform
12762 # Common symbols not allowed in MH_DYLIB files
12763 lt_prog_compiler_pic_CXX='-fno-common'
12765 *djgpp*)
12766 # DJGPP does not support shared libraries at all
12767 lt_prog_compiler_pic_CXX=
12769 interix[3-9]*)
12770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12771 # Instead, we relocate shared libraries at runtime.
12773 sysv4*MP*)
12774 if test -d /usr/nec; then
12775 lt_prog_compiler_pic_CXX=-Kconform_pic
12778 hpux*)
12779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12780 # not for PA HP-UX.
12781 case $host_cpu in
12782 hppa*64*|ia64*)
12785 lt_prog_compiler_pic_CXX='-fPIC'
12787 esac
12789 *qnx* | *nto*)
12790 # QNX uses GNU C++, but need to define -shared option too, otherwise
12791 # it will coredump.
12792 lt_prog_compiler_pic_CXX='-fPIC -shared'
12795 lt_prog_compiler_pic_CXX='-fPIC'
12797 esac
12798 else
12799 case $host_os in
12800 aix[4-9]*)
12801 # All AIX code is PIC.
12802 if test "$host_cpu" = ia64; then
12803 # AIX 5 now supports IA64 processor
12804 lt_prog_compiler_static_CXX='-Bstatic'
12805 else
12806 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12809 chorus*)
12810 case $cc_basename in
12811 cxch68*)
12812 # Green Hills C++ Compiler
12813 # _LT_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"
12815 esac
12817 darwin*)
12818 # PIC is the default on this platform
12819 # Common symbols not allowed in MH_DYLIB files
12820 case $cc_basename in
12821 xlc*)
12822 lt_prog_compiler_pic_CXX='-qnocommon'
12823 lt_prog_compiler_wl_CXX='-Wl,'
12825 esac
12827 dgux*)
12828 case $cc_basename in
12829 ec++*)
12830 lt_prog_compiler_pic_CXX='-KPIC'
12832 ghcx*)
12833 # Green Hills C++ Compiler
12834 lt_prog_compiler_pic_CXX='-pic'
12838 esac
12840 freebsd* | dragonfly*)
12841 # FreeBSD uses GNU C++
12843 hpux9* | hpux10* | hpux11*)
12844 case $cc_basename in
12845 CC*)
12846 lt_prog_compiler_wl_CXX='-Wl,'
12847 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12848 if test "$host_cpu" != ia64; then
12849 lt_prog_compiler_pic_CXX='+Z'
12852 aCC*)
12853 lt_prog_compiler_wl_CXX='-Wl,'
12854 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12855 case $host_cpu in
12856 hppa*64*|ia64*)
12857 # +Z the default
12860 lt_prog_compiler_pic_CXX='+Z'
12862 esac
12866 esac
12868 interix*)
12869 # This is c89, which is MS Visual C++ (no shared libs)
12870 # Anyone wants to do a port?
12872 irix5* | irix6* | nonstopux*)
12873 case $cc_basename in
12874 CC*)
12875 lt_prog_compiler_wl_CXX='-Wl,'
12876 lt_prog_compiler_static_CXX='-non_shared'
12877 # CC pic flag -KPIC is the default.
12881 esac
12883 linux* | k*bsd*-gnu)
12884 case $cc_basename in
12885 KCC*)
12886 # KAI C++ Compiler
12887 lt_prog_compiler_wl_CXX='--backend -Wl,'
12888 lt_prog_compiler_pic_CXX='-fPIC'
12890 icpc* | ecpc* )
12891 # Intel C++
12892 lt_prog_compiler_wl_CXX='-Wl,'
12893 lt_prog_compiler_pic_CXX='-KPIC'
12894 lt_prog_compiler_static_CXX='-static'
12896 pgCC*)
12897 # Portland Group C++ compiler
12898 lt_prog_compiler_wl_CXX='-Wl,'
12899 lt_prog_compiler_pic_CXX='-fpic'
12900 lt_prog_compiler_static_CXX='-Bstatic'
12902 cxx*)
12903 # Compaq C++
12904 # Make sure the PIC flag is empty. It appears that all Alpha
12905 # Linux and Compaq Tru64 Unix objects are PIC.
12906 lt_prog_compiler_pic_CXX=
12907 lt_prog_compiler_static_CXX='-non_shared'
12910 case `$CC -V 2>&1 | sed 5q` in
12911 *Sun\ C*)
12912 # Sun C++ 5.9
12913 lt_prog_compiler_pic_CXX='-KPIC'
12914 lt_prog_compiler_static_CXX='-Bstatic'
12915 lt_prog_compiler_wl_CXX='-Qoption ld '
12917 esac
12919 esac
12921 lynxos*)
12923 m88k*)
12925 mvs*)
12926 case $cc_basename in
12927 cxx*)
12928 lt_prog_compiler_pic_CXX='-W c,exportall'
12932 esac
12934 netbsd*)
12936 *qnx* | *nto*)
12937 # QNX uses GNU C++, but need to define -shared option too, otherwise
12938 # it will coredump.
12939 lt_prog_compiler_pic_CXX='-fPIC -shared'
12941 osf3* | osf4* | osf5*)
12942 case $cc_basename in
12943 KCC*)
12944 lt_prog_compiler_wl_CXX='--backend -Wl,'
12946 RCC*)
12947 # Rational C++ 2.4.1
12948 lt_prog_compiler_pic_CXX='-pic'
12950 cxx*)
12951 # Digital/Compaq C++
12952 lt_prog_compiler_wl_CXX='-Wl,'
12953 # Make sure the PIC flag is empty. It appears that all Alpha
12954 # Linux and Compaq Tru64 Unix objects are PIC.
12955 lt_prog_compiler_pic_CXX=
12956 lt_prog_compiler_static_CXX='-non_shared'
12960 esac
12962 psos*)
12964 solaris*)
12965 case $cc_basename in
12966 CC*)
12967 # Sun C++ 4.2, 5.x and Centerline C++
12968 lt_prog_compiler_pic_CXX='-KPIC'
12969 lt_prog_compiler_static_CXX='-Bstatic'
12970 lt_prog_compiler_wl_CXX='-Qoption ld '
12972 gcx*)
12973 # Green Hills C++ Compiler
12974 lt_prog_compiler_pic_CXX='-PIC'
12978 esac
12980 sunos4*)
12981 case $cc_basename in
12982 CC*)
12983 # Sun C++ 4.x
12984 lt_prog_compiler_pic_CXX='-pic'
12985 lt_prog_compiler_static_CXX='-Bstatic'
12987 lcc*)
12988 # Lucid
12989 lt_prog_compiler_pic_CXX='-pic'
12993 esac
12995 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12996 case $cc_basename in
12997 CC*)
12998 lt_prog_compiler_wl_CXX='-Wl,'
12999 lt_prog_compiler_pic_CXX='-KPIC'
13000 lt_prog_compiler_static_CXX='-Bstatic'
13002 esac
13004 tandem*)
13005 case $cc_basename in
13006 NCC*)
13007 # NonStop-UX NCC 3.20
13008 lt_prog_compiler_pic_CXX='-KPIC'
13012 esac
13014 vxworks*)
13017 lt_prog_compiler_can_build_shared_CXX=no
13019 esac
13022 case $host_os in
13023 # For platforms which do not support PIC, -DPIC is meaningless:
13024 *djgpp*)
13025 lt_prog_compiler_pic_CXX=
13028 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13030 esac
13031 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13032 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13037 # Check to make sure the PIC flag actually works.
13039 if test -n "$lt_prog_compiler_pic_CXX"; then
13040 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13041 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13042 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045 lt_prog_compiler_pic_works_CXX=no
13046 ac_outfile=conftest.$ac_objext
13047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13048 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13049 # Insert the option either (1) after the last *FLAGS variable, or
13050 # (2) before a word containing "conftest.", or (3) at the end.
13051 # Note that $ac_compile itself does not contain backslashes and begins
13052 # with a dollar sign (not a hyphen), so the echo should work correctly.
13053 # The option is referenced via a variable to avoid confusing sed.
13054 lt_compile=`echo "$ac_compile" | $SED \
13055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13057 -e 's:$: $lt_compiler_flag:'`
13058 (eval echo "\"\$as_me:13058: $lt_compile\"" >&5)
13059 (eval "$lt_compile" 2>conftest.err)
13060 ac_status=$?
13061 cat conftest.err >&5
13062 echo "$as_me:13062: \$? = $ac_status" >&5
13063 if (exit $ac_status) && test -s "$ac_outfile"; then
13064 # The compiler can only warn and ignore the option if not recognized
13065 # So say no if there are warnings other than the usual output.
13066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13068 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13069 lt_prog_compiler_pic_works_CXX=yes
13072 $RM conftest*
13075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13076 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13078 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13079 case $lt_prog_compiler_pic_CXX in
13080 "" | " "*) ;;
13081 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13082 esac
13083 else
13084 lt_prog_compiler_pic_CXX=
13085 lt_prog_compiler_can_build_shared_CXX=no
13093 # Check to make sure the static flag actually works.
13095 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13096 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13097 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13098 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101 lt_prog_compiler_static_works_CXX=no
13102 save_LDFLAGS="$LDFLAGS"
13103 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13104 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13106 # The linker can only warn and ignore the option if not recognized
13107 # So say no if there are warnings
13108 if test -s conftest.err; then
13109 # Append any errors to the config.log.
13110 cat conftest.err 1>&5
13111 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13113 if diff conftest.exp conftest.er2 >/dev/null; then
13114 lt_prog_compiler_static_works_CXX=yes
13116 else
13117 lt_prog_compiler_static_works_CXX=yes
13120 $RM conftest*
13121 LDFLAGS="$save_LDFLAGS"
13124 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13125 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13127 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13129 else
13130 lt_prog_compiler_static_CXX=
13136 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13137 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13138 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 lt_cv_prog_compiler_c_o_CXX=no
13142 $RM -r conftest 2>/dev/null
13143 mkdir conftest
13144 cd conftest
13145 mkdir out
13146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13148 lt_compiler_flag="-o out/conftest2.$ac_objext"
13149 # Insert the option either (1) after the last *FLAGS variable, or
13150 # (2) before a word containing "conftest.", or (3) at the end.
13151 # Note that $ac_compile itself does not contain backslashes and begins
13152 # with a dollar sign (not a hyphen), so the echo should work correctly.
13153 lt_compile=`echo "$ac_compile" | $SED \
13154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13156 -e 's:$: $lt_compiler_flag:'`
13157 (eval echo "\"\$as_me:13157: $lt_compile\"" >&5)
13158 (eval "$lt_compile" 2>out/conftest.err)
13159 ac_status=$?
13160 cat out/conftest.err >&5
13161 echo "$as_me:13161: \$? = $ac_status" >&5
13162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13163 then
13164 # The compiler can only warn and ignore the option if not recognized
13165 # So say no if there are warnings
13166 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13169 lt_cv_prog_compiler_c_o_CXX=yes
13172 chmod u+w . 2>&5
13173 $RM conftest*
13174 # SGI C++ compiler will create directory out/ii_files/ for
13175 # template instantiation
13176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13177 $RM out/* && rmdir out
13178 cd ..
13179 $RM -r conftest
13180 $RM conftest*
13183 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13184 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13188 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13190 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 lt_cv_prog_compiler_c_o_CXX=no
13194 $RM -r conftest 2>/dev/null
13195 mkdir conftest
13196 cd conftest
13197 mkdir out
13198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13200 lt_compiler_flag="-o out/conftest2.$ac_objext"
13201 # Insert the option either (1) after the last *FLAGS variable, or
13202 # (2) before a word containing "conftest.", or (3) at the end.
13203 # Note that $ac_compile itself does not contain backslashes and begins
13204 # with a dollar sign (not a hyphen), so the echo should work correctly.
13205 lt_compile=`echo "$ac_compile" | $SED \
13206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13208 -e 's:$: $lt_compiler_flag:'`
13209 (eval echo "\"\$as_me:13209: $lt_compile\"" >&5)
13210 (eval "$lt_compile" 2>out/conftest.err)
13211 ac_status=$?
13212 cat out/conftest.err >&5
13213 echo "$as_me:13213: \$? = $ac_status" >&5
13214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13215 then
13216 # The compiler can only warn and ignore the option if not recognized
13217 # So say no if there are warnings
13218 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13221 lt_cv_prog_compiler_c_o_CXX=yes
13224 chmod u+w . 2>&5
13225 $RM conftest*
13226 # SGI C++ compiler will create directory out/ii_files/ for
13227 # template instantiation
13228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13229 $RM out/* && rmdir out
13230 cd ..
13231 $RM -r conftest
13232 $RM conftest*
13235 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13241 hard_links="nottested"
13242 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13243 # do not overwrite the value of need_locks provided by the user
13244 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13245 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13246 hard_links=yes
13247 $RM conftest*
13248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13249 touch conftest.a
13250 ln conftest.a conftest.b 2>&5 || hard_links=no
13251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13252 echo "$as_me:$LINENO: result: $hard_links" >&5
13253 echo "${ECHO_T}$hard_links" >&6
13254 if test "$hard_links" = no; then
13255 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13256 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13257 need_locks=warn
13259 else
13260 need_locks=no
13265 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13266 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13268 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13269 case $host_os in
13270 aix[4-9]*)
13271 # If we're using GNU nm, then we don't want the "-C" option.
13272 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13273 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13274 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'
13275 else
13276 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'
13279 pw32*)
13280 export_symbols_cmds_CXX="$ltdll_cmds"
13282 cygwin* | mingw*)
13283 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13286 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13288 esac
13290 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13291 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13292 test "$ld_shlibs_CXX" = no && can_build_shared=no
13294 with_gnu_ld_CXX=$with_gnu_ld
13302 # Do we need to explicitly link libc?
13304 case "x$archive_cmds_need_lc_CXX" in
13305 x|xyes)
13306 # Assume -lc should be added
13307 archive_cmds_need_lc_CXX=yes
13309 if test "$enable_shared" = yes && test "$GCC" = yes; then
13310 case $archive_cmds_CXX in
13311 *'~'*)
13312 # FIXME: we may have to deal with multi-command sequences.
13314 '$CC '*)
13315 # Test whether the compiler implicitly links with -lc since on some
13316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13317 # to ld, don't add -lc before -lgcc.
13318 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13320 $RM conftest*
13321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } 2>conftest.err; then
13328 soname=conftest
13329 lib=conftest
13330 libobjs=conftest.$ac_objext
13331 deplibs=
13332 wl=$lt_prog_compiler_wl_CXX
13333 pic_flag=$lt_prog_compiler_pic_CXX
13334 compiler_flags=-v
13335 linker_flags=-v
13336 verstring=
13337 output_objdir=.
13338 libname=conftest
13339 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13340 allow_undefined_flag_CXX=
13341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13342 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }
13346 then
13347 archive_cmds_need_lc_CXX=no
13348 else
13349 archive_cmds_need_lc_CXX=yes
13351 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13352 else
13353 cat conftest.err 1>&5
13355 $RM conftest*
13356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13357 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13359 esac
13362 esac
13427 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13428 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13429 withGCC=$GXX
13430 library_names_spec=
13431 libname_spec='lib$name'
13432 soname_spec=
13433 shrext_cmds=".so"
13434 postinstall_cmds=
13435 postuninstall_cmds=
13436 finish_cmds=
13437 finish_eval=
13438 shlibpath_var=
13439 shlibpath_overrides_runpath=unknown
13440 version_type=none
13441 dynamic_linker="$host_os ld.so"
13442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13443 need_lib_prefix=unknown
13444 hardcode_into_libs=no
13446 # when you set need_version to no, make sure it does not cause -set_version
13447 # flags to be left without arguments
13448 need_version=unknown
13450 case $host_os in
13451 aix3*)
13452 version_type=linux
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13454 shlibpath_var=LIBPATH
13456 # AIX 3 has no versioning support, so we append a major version to the name.
13457 soname_spec='${libname}${release}${shared_ext}$major'
13460 aix[4-9]*)
13461 version_type=linux
13462 need_lib_prefix=no
13463 need_version=no
13464 hardcode_into_libs=yes
13465 if test "$host_cpu" = ia64; then
13466 # AIX 5 supports IA64
13467 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 else
13470 # With GCC up to 2.95.x, collect2 would create an import file
13471 # for dependence libraries. The import file would start with
13472 # the line `#! .'. This would cause the generated library to
13473 # depend on `.', always an invalid library. This was fixed in
13474 # development snapshots of GCC prior to 3.0.
13475 case $host_os in
13476 aix4 | aix4.[01] | aix4.[01].*)
13477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13478 echo ' yes '
13479 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13481 else
13482 can_build_shared=no
13485 esac
13486 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13487 # soname into executable. Probably we can add versioning support to
13488 # collect2, so additional links can be useful in future.
13489 if test "$aix_use_runtimelinking" = yes; then
13490 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13491 # instead of lib<name>.a to let people know that these are not
13492 # typical AIX shared libraries.
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 else
13495 # We preserve .a as extension for shared libraries through AIX4.2
13496 # and later when we are not doing run time linking.
13497 library_names_spec='${libname}${release}.a $libname.a'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13500 shlibpath_var=LIBPATH
13504 amigaos*)
13505 if test "$host_cpu" = m68k; then
13506 library_names_spec='$libname.ixlibrary $libname.a'
13507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13508 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'
13509 else
13510 dynamic_linker=no
13514 beos*)
13515 library_names_spec='${libname}${shared_ext}'
13516 dynamic_linker="$host_os ld.so"
13517 shlibpath_var=LIBRARY_PATH
13520 bsdi[45]*)
13521 version_type=linux
13522 need_version=no
13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524 soname_spec='${libname}${release}${shared_ext}$major'
13525 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13528 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13529 # the default ld.so.conf also contains /usr/contrib/lib and
13530 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13531 # libtool to hard-code these into programs
13534 cygwin* | mingw* | pw32*)
13535 version_type=windows
13536 shrext_cmds=".dll"
13537 need_version=no
13538 need_lib_prefix=no
13540 case $withGCC,$host_os in
13541 yes,cygwin* | yes,mingw* | yes,pw32*)
13542 library_names_spec='$libname.dll.a'
13543 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13544 postinstall_cmds='base_file=`basename \${file}`~
13545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13546 dldir=$destdir/`dirname \$dlpath`~
13547 test -d \$dldir || mkdir -p \$dldir~
13548 $install_prog $dir/$dlname \$dldir/$dlname~
13549 chmod a+x \$dldir/$dlname~
13550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13554 dlpath=$dir/\$dldll~
13555 $RM \$dlpath'
13556 shlibpath_overrides_runpath=yes
13558 case $host_os in
13559 cygwin*)
13560 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13562 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13564 mingw*)
13565 # MinGW DLLs use traditional 'lib' prefix
13566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13567 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13568 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13569 # It is most probably a Windows format PATH printed by
13570 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13571 # path with ; separators, and with drive letters. We can handle the
13572 # drive letters (cygwin fileutils understands them), so leave them,
13573 # especially as we might pass files found there to a mingw objdump,
13574 # which wouldn't understand a cygwinified path. Ahh.
13575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13576 else
13577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13580 pw32*)
13581 # pw32 DLLs use 'pw' prefix rather than 'lib'
13582 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13584 esac
13588 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13590 esac
13591 dynamic_linker='Win32 ld.exe'
13592 # FIXME: first we should search . and the directory the executable is in
13593 shlibpath_var=PATH
13596 darwin* | rhapsody*)
13597 dynamic_linker="$host_os dyld"
13598 version_type=darwin
13599 need_lib_prefix=no
13600 need_version=no
13601 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13602 soname_spec='${libname}${release}${major}$shared_ext'
13603 shlibpath_overrides_runpath=yes
13604 shlibpath_var=DYLD_LIBRARY_PATH
13605 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13610 dgux*)
13611 version_type=linux
13612 need_lib_prefix=no
13613 need_version=no
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 shlibpath_var=LD_LIBRARY_PATH
13619 freebsd1*)
13620 dynamic_linker=no
13623 freebsd* | dragonfly*)
13624 # DragonFly does not have aout. When/if they implement a new
13625 # versioning mechanism, adjust this.
13626 if test -x /usr/bin/objformat; then
13627 objformat=`/usr/bin/objformat`
13628 else
13629 case $host_os in
13630 freebsd[123]*) objformat=aout ;;
13631 *) objformat=elf ;;
13632 esac
13634 version_type=freebsd-$objformat
13635 case $version_type in
13636 freebsd-elf*)
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13638 need_version=no
13639 need_lib_prefix=no
13641 freebsd-*)
13642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13643 need_version=yes
13645 esac
13646 shlibpath_var=LD_LIBRARY_PATH
13647 case $host_os in
13648 freebsd2*)
13649 shlibpath_overrides_runpath=yes
13651 freebsd3.[01]* | freebsdelf3.[01]*)
13652 shlibpath_overrides_runpath=yes
13653 hardcode_into_libs=yes
13655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13657 shlibpath_overrides_runpath=no
13658 hardcode_into_libs=yes
13660 *) # from 4.6 on, and DragonFly
13661 shlibpath_overrides_runpath=yes
13662 hardcode_into_libs=yes
13664 esac
13667 gnu*)
13668 version_type=linux
13669 need_lib_prefix=no
13670 need_version=no
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13672 soname_spec='${libname}${release}${shared_ext}$major'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 hardcode_into_libs=yes
13677 hpux9* | hpux10* | hpux11*)
13678 # Give a soname corresponding to the major version so that dld.sl refuses to
13679 # link against other versions.
13680 version_type=sunos
13681 need_lib_prefix=no
13682 need_version=no
13683 case $host_cpu in
13684 ia64*)
13685 shrext_cmds='.so'
13686 hardcode_into_libs=yes
13687 dynamic_linker="$host_os dld.so"
13688 shlibpath_var=LD_LIBRARY_PATH
13689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691 soname_spec='${libname}${release}${shared_ext}$major'
13692 if test "X$HPUX_IA64_MODE" = X32; then
13693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13694 else
13695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13699 hppa*64*)
13700 shrext_cmds='.sl'
13701 hardcode_into_libs=yes
13702 dynamic_linker="$host_os dld.sl"
13703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13711 shrext_cmds='.sl'
13712 dynamic_linker="$host_os dld.sl"
13713 shlibpath_var=SHLIB_PATH
13714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 soname_spec='${libname}${release}${shared_ext}$major'
13718 esac
13719 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13720 postinstall_cmds='chmod 555 $lib'
13723 interix[3-9]*)
13724 version_type=linux
13725 need_lib_prefix=no
13726 need_version=no
13727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13729 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13730 shlibpath_var=LD_LIBRARY_PATH
13731 shlibpath_overrides_runpath=no
13732 hardcode_into_libs=yes
13735 irix5* | irix6* | nonstopux*)
13736 case $host_os in
13737 nonstopux*) version_type=nonstopux ;;
13739 if test "$lt_cv_prog_gnu_ld" = yes; then
13740 version_type=linux
13741 else
13742 version_type=irix
13743 fi ;;
13744 esac
13745 need_lib_prefix=no
13746 need_version=no
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13749 case $host_os in
13750 irix5* | nonstopux*)
13751 libsuff= shlibsuff=
13754 case $LD in # libtool.m4 will add one of these switches to LD
13755 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13756 libsuff= shlibsuff= libmagic=32-bit;;
13757 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13758 libsuff=32 shlibsuff=N32 libmagic=N32;;
13759 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13760 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13761 *) libsuff= shlibsuff= libmagic=never-match;;
13762 esac
13764 esac
13765 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13766 shlibpath_overrides_runpath=no
13767 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13768 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13769 hardcode_into_libs=yes
13772 # No shared lib support for Linux oldld, aout, or coff.
13773 linux*oldld* | linux*aout* | linux*coff*)
13774 dynamic_linker=no
13777 # This must be Linux ELF.
13778 linux* | k*bsd*-gnu)
13779 version_type=linux
13780 need_lib_prefix=no
13781 need_version=no
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783 soname_spec='${libname}${release}${shared_ext}$major'
13784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13785 shlibpath_var=LD_LIBRARY_PATH
13786 shlibpath_overrides_runpath=no
13787 # Some binutils ld are patched to set DT_RUNPATH
13788 save_LDFLAGS=$LDFLAGS
13789 save_libdir=$libdir
13790 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13791 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13792 if test x$gcc_no_link = xyes; then
13793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13795 { (exit 1); exit 1; }; }
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13805 main ()
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814 (eval $ac_link) 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_cxx_werror_flag"
13822 || test ! -s conftest.err'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13835 shlibpath_overrides_runpath=yes
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13843 rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LDFLAGS=$save_LDFLAGS
13846 libdir=$save_libdir
13848 # This implies no fast_install, which is unacceptable.
13849 # Some rework will be needed to allow for fast_install
13850 # before this can be enabled.
13851 hardcode_into_libs=yes
13853 # Append ld.so.conf contents to the search path
13854 if test -f /etc/ld.so.conf; then
13855 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13859 # We used to test for /lib/ld.so.1 and disable shared libraries on
13860 # powerpc, because MkLinux only supported shared libraries with the
13861 # GNU dynamic linker. Since this was broken with cross compilers,
13862 # most powerpc-linux boxes support dynamic linking these days and
13863 # people can always --disable-shared, the test was removed, and we
13864 # assume the GNU/Linux dynamic linker is in use.
13865 dynamic_linker='GNU/Linux ld.so'
13868 netbsd*)
13869 version_type=sunos
13870 need_lib_prefix=no
13871 need_version=no
13872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13875 dynamic_linker='NetBSD (a.out) ld.so'
13876 else
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13878 soname_spec='${libname}${release}${shared_ext}$major'
13879 dynamic_linker='NetBSD ld.elf_so'
13881 shlibpath_var=LD_LIBRARY_PATH
13882 shlibpath_overrides_runpath=yes
13883 hardcode_into_libs=yes
13886 newsos6)
13887 version_type=linux
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 shlibpath_var=LD_LIBRARY_PATH
13890 shlibpath_overrides_runpath=yes
13893 *nto* | *qnx*)
13894 version_type=qnx
13895 need_lib_prefix=no
13896 need_version=no
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=no
13901 hardcode_into_libs=yes
13902 dynamic_linker='ldqnx.so'
13905 openbsd*)
13906 version_type=sunos
13907 sys_lib_dlsearch_path_spec="/usr/lib"
13908 need_lib_prefix=no
13909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13910 case $host_os in
13911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13912 *) need_version=no ;;
13913 esac
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13916 shlibpath_var=LD_LIBRARY_PATH
13917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13918 case $host_os in
13919 openbsd2.[89] | openbsd2.[89].*)
13920 shlibpath_overrides_runpath=no
13923 shlibpath_overrides_runpath=yes
13925 esac
13926 else
13927 shlibpath_overrides_runpath=yes
13931 os2*)
13932 libname_spec='$name'
13933 shrext_cmds=".dll"
13934 need_lib_prefix=no
13935 library_names_spec='$libname${shared_ext} $libname.a'
13936 dynamic_linker='OS/2 ld.exe'
13937 shlibpath_var=LIBPATH
13940 osf3* | osf4* | osf5*)
13941 version_type=osf
13942 need_lib_prefix=no
13943 need_version=no
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 shlibpath_var=LD_LIBRARY_PATH
13947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13951 rdos*)
13952 dynamic_linker=no
13955 solaris*)
13956 version_type=linux
13957 need_lib_prefix=no
13958 need_version=no
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=yes
13963 hardcode_into_libs=yes
13964 # ldd complains unless libraries are executable
13965 postinstall_cmds='chmod +x $lib'
13968 sunos4*)
13969 version_type=sunos
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 shlibpath_overrides_runpath=yes
13974 if test "$with_gnu_ld" = yes; then
13975 need_lib_prefix=no
13977 need_version=yes
13980 sysv4 | sysv4.3*)
13981 version_type=linux
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 case $host_vendor in
13986 sni)
13987 shlibpath_overrides_runpath=no
13988 need_lib_prefix=no
13989 runpath_var=LD_RUN_PATH
13991 siemens)
13992 need_lib_prefix=no
13994 motorola)
13995 need_lib_prefix=no
13996 need_version=no
13997 shlibpath_overrides_runpath=no
13998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14000 esac
14003 sysv4*MP*)
14004 if test -d /usr/nec ;then
14005 version_type=linux
14006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14007 soname_spec='$libname${shared_ext}.$major'
14008 shlibpath_var=LD_LIBRARY_PATH
14012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14013 version_type=freebsd-elf
14014 need_lib_prefix=no
14015 need_version=no
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=yes
14020 hardcode_into_libs=yes
14021 if test "$with_gnu_ld" = yes; then
14022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14023 else
14024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14025 case $host_os in
14026 sco3.2v5*)
14027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14029 esac
14031 sys_lib_dlsearch_path_spec='/usr/lib'
14034 tpf*)
14035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14036 version_type=linux
14037 need_lib_prefix=no
14038 need_version=no
14039 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 shlibpath_overrides_runpath=no
14042 hardcode_into_libs=yes
14045 uts4*)
14046 version_type=linux
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14049 shlibpath_var=LD_LIBRARY_PATH
14053 dynamic_linker=no
14055 esac
14056 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14057 echo "${ECHO_T}$dynamic_linker" >&6
14058 test "$dynamic_linker" = no && can_build_shared=no
14060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14061 if test "$GCC" = yes; then
14062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14100 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14102 hardcode_action_CXX=
14103 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14104 test -n "$runpath_var_CXX" ||
14105 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14107 # We can hardcode non-existent directories.
14108 if test "$hardcode_direct_CXX" != no &&
14109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14110 # have to relink, otherwise we might link with an installed library
14111 # when we should be linking with a yet-to-be-installed one
14112 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14113 test "$hardcode_minus_L_CXX" != no; then
14114 # Linking always hardcodes the temporary library directory.
14115 hardcode_action_CXX=relink
14116 else
14117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14118 hardcode_action_CXX=immediate
14120 else
14121 # We cannot hardcode anything, or else we can only hardcode existing
14122 # directories.
14123 hardcode_action_CXX=unsupported
14125 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14126 echo "${ECHO_T}$hardcode_action_CXX" >&6
14128 if test "$hardcode_action_CXX" = relink ||
14129 test "$inherit_rpath_CXX" = yes; then
14130 # Fast installation is not supported
14131 enable_fast_install=no
14132 elif test "$shlibpath_overrides_runpath" = yes ||
14133 test "$enable_shared" = no; then
14134 # Fast installation is not necessary
14135 enable_fast_install=needless
14144 fi # test -n "$compiler"
14146 CC=$lt_save_CC
14147 LDCXX=$LD
14148 LD=$lt_save_LD
14149 GCC=$lt_save_GCC
14150 with_gnu_ld=$lt_save_with_gnu_ld
14151 lt_cv_path_LDCXX=$lt_cv_path_LD
14152 lt_cv_path_LD=$lt_save_path_LD
14153 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14154 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14155 fi # test "$_lt_caught_CXX_error" != yes
14157 ac_ext=c
14158 ac_cpp='$CPP $CPPFLAGS'
14159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14175 ac_config_commands="$ac_config_commands libtool"
14180 # Only expand once:
14185 # Check whether --with-target-subdir or --without-target-subdir was given.
14186 if test "${with_target_subdir+set}" = set; then
14187 withval="$with_target_subdir"
14191 # Check whether --with-cross-host or --without-cross-host was given.
14192 if test "${with_cross_host+set}" = set; then
14193 withval="$with_cross_host"
14197 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14198 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14199 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14200 if test -z "$THREADS"; then
14201 THREADS=no
14203 echo "$as_me:$LINENO: result: $THREADS" >&5
14204 echo "${ECHO_T}$THREADS" >&6
14206 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14207 if test "${enable_parallel_mark+set}" = set; then
14208 enableval="$enable_parallel_mark"
14209 case "$THREADS" in
14210 no | none | single)
14211 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14212 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14213 { (exit 1); exit 1; }; }
14215 esac
14219 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14220 THREADLIBS=
14221 case "$THREADS" in
14222 no | none | single)
14223 THREADS=none
14225 posix | posix95 | pthreads)
14226 THREADS=posix
14227 THREADLIBS=-lpthread
14228 case "$host" in
14229 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14231 cat >>confdefs.h <<\_ACEOF
14232 #define GC_LINUX_THREADS 1
14233 _ACEOF
14236 cat >>confdefs.h <<\_ACEOF
14237 #define _REENTRANT 1
14238 _ACEOF
14240 if test "${enable_parallel_mark}" = yes; then
14242 cat >>confdefs.h <<\_ACEOF
14243 #define PARALLEL_MARK 1
14244 _ACEOF
14248 cat >>confdefs.h <<\_ACEOF
14249 #define THREAD_LOCAL_ALLOC 1
14250 _ACEOF
14253 *-*-linux*)
14254 cat >>confdefs.h <<\_ACEOF
14255 #define GC_LINUX_THREADS 1
14256 _ACEOF
14258 cat >>confdefs.h <<\_ACEOF
14259 #define _REENTRANT 1
14260 _ACEOF
14263 *-*-aix*)
14265 cat >>confdefs.h <<\_ACEOF
14266 #define GC_AIX_THREADS 1
14267 _ACEOF
14269 cat >>confdefs.h <<\_ACEOF
14270 #define _REENTRANT 1
14271 _ACEOF
14274 *-*-hpux11*)
14275 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14276 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14278 cat >>confdefs.h <<\_ACEOF
14279 #define GC_HPUX_THREADS 1
14280 _ACEOF
14283 cat >>confdefs.h <<\_ACEOF
14284 #define _POSIX_C_SOURCE 199506L
14285 _ACEOF
14287 if test "${enable_parallel_mark}" = yes; then
14288 cat >>confdefs.h <<\_ACEOF
14289 #define PARALLEL_MARK 1
14290 _ACEOF
14293 cat >>confdefs.h <<\_ACEOF
14294 #define THREAD_LOCAL_ALLOC 1
14295 _ACEOF
14297 THREADLIBS="-lpthread -lrt"
14298 # HPUX needs REENTRANT for the _r calls.
14300 cat >>confdefs.h <<\_ACEOF
14301 #define _REENTRANT 1
14302 _ACEOF
14305 *-*-hpux10*)
14306 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14307 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14309 *-*-kfreebsd*-gnu)
14310 cat >>confdefs.h <<\_ACEOF
14311 #define GC_FREEBSD_THREADS 1
14312 _ACEOF
14314 INCLUDES="$INCLUDES -pthread"
14315 THREADDLLIBS=-pthread
14316 cat >>confdefs.h <<\_ACEOF
14317 #define _REENTRANT 1
14318 _ACEOF
14320 if test "${enable_parallel_mark}" = yes; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define PARALLEL_MARK 1
14323 _ACEOF
14326 cat >>confdefs.h <<\_ACEOF
14327 #define THREAD_LOCAL_ALLOC 1
14328 _ACEOF
14331 cat >>confdefs.h <<\_ACEOF
14332 #define USE_COMPILER_TLS 1
14333 _ACEOF
14336 *-*-freebsd*)
14337 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14338 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14340 cat >>confdefs.h <<\_ACEOF
14341 #define GC_FREEBSD_THREADS 1
14342 _ACEOF
14344 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14345 THREADLIBS=-pthread
14347 *-*-solaris*)
14349 cat >>confdefs.h <<\_ACEOF
14350 #define GC_SOLARIS_PTHREADS 1
14351 _ACEOF
14353 # Need to use alternate thread library, otherwise gctest hangs
14354 # on Solaris 8.
14355 multi_os_directory=`$CC -print-multi-os-directory`
14356 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14357 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
14359 *-*-irix*)
14361 cat >>confdefs.h <<\_ACEOF
14362 #define GC_IRIX_THREADS 1
14363 _ACEOF
14366 *-*-cygwin*)
14368 cat >>confdefs.h <<\_ACEOF
14369 #define GC_WIN32_THREADS 1
14370 _ACEOF
14373 *-*-darwin*)
14375 cat >>confdefs.h <<\_ACEOF
14376 #define GC_DARWIN_THREADS 1
14377 _ACEOF
14379 cat >>confdefs.h <<\_ACEOF
14380 #define THREAD_LOCAL_ALLOC 1
14381 _ACEOF
14383 if test "${enable_parallel_mark}" = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define PARALLEL_MARK 1
14386 _ACEOF
14390 *-*-osf*)
14392 cat >>confdefs.h <<\_ACEOF
14393 #define GC_OSF1_THREADS 1
14394 _ACEOF
14396 if test "${enable_parallel_mark}" = yes; then
14397 cat >>confdefs.h <<\_ACEOF
14398 #define PARALLEL_MARK 1
14399 _ACEOF
14401 cat >>confdefs.h <<\_ACEOF
14402 #define THREAD_LOCAL_ALLOC 1
14403 _ACEOF
14405 # May want to enable it in other cases, too.
14406 # Measurements havent yet been done.
14408 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14409 THREADLIBS="-lpthread -lrt"
14411 esac
14413 win32)
14414 cat >>confdefs.h <<\_ACEOF
14415 #define GC_WIN32_THREADS 1
14416 _ACEOF
14419 dgux386)
14420 THREADS=dgux386
14421 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
14422 echo "${ECHO_T}$THREADLIBS" >&6
14423 # Use pthread GCC switch
14424 THREADLIBS=-pthread
14425 if test "${enable_parallel_mark}" = yes; then
14426 cat >>confdefs.h <<\_ACEOF
14427 #define PARALLEL_MARK 1
14428 _ACEOF
14431 cat >>confdefs.h <<\_ACEOF
14432 #define THREAD_LOCAL_ALLOC 1
14433 _ACEOF
14436 cat >>confdefs.h <<\_ACEOF
14437 #define GC_DGUX386_THREADS 1
14438 _ACEOF
14441 cat >>confdefs.h <<\_ACEOF
14442 #define DGUX_THREADS 1
14443 _ACEOF
14445 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14446 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
14448 aix)
14449 THREADS=posix
14450 THREADLIBS=-lpthread
14451 cat >>confdefs.h <<\_ACEOF
14452 #define GC_AIX_THREADS 1
14453 _ACEOF
14455 cat >>confdefs.h <<\_ACEOF
14456 #define _REENTRANT 1
14457 _ACEOF
14460 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
14461 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
14462 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
14463 { (exit 1); exit 1; }; }
14466 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
14467 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
14468 { (exit 1); exit 1; }; }
14470 esac
14473 case "$host" in
14474 powerpc-*-darwin*)
14475 powerpc_darwin=true
14477 esac
14480 if test x$powerpc_darwin = xtrue; then
14481 POWERPC_DARWIN_TRUE=
14482 POWERPC_DARWIN_FALSE='#'
14483 else
14484 POWERPC_DARWIN_TRUE='#'
14485 POWERPC_DARWIN_FALSE=
14489 # Darwin needs a few extra special tests to deal with variation in the
14490 # system headers.
14491 case "$host" in
14492 powerpc*-*-darwin*)
14493 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
14494 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
14495 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <mach/thread_status.h>
14507 main ()
14509 static ppc_thread_state_t ac_aggr;
14510 if (ac_aggr.r0)
14511 return 0;
14513 return 0;
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_member_ppc_thread_state_t_r0=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h. */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 #include <mach/thread_status.h>
14552 main ()
14554 static ppc_thread_state_t ac_aggr;
14555 if (sizeof ac_aggr.r0)
14556 return 0;
14558 return 0;
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_member_ppc_thread_state_t_r0=yes
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 ac_cv_member_ppc_thread_state_t_r0=no
14590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
14595 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
14596 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
14598 cat >>confdefs.h <<\_ACEOF
14599 #define HAS_PPC_THREAD_STATE_R0 1
14600 _ACEOF
14604 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
14605 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
14606 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h. */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <mach/thread_status.h>
14618 main ()
14620 static ppc_thread_state_t ac_aggr;
14621 if (ac_aggr.__r0)
14622 return 0;
14624 return 0;
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_member_ppc_thread_state_t___r0=yes
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 #include <mach/thread_status.h>
14663 main ()
14665 static ppc_thread_state_t ac_aggr;
14666 if (sizeof ac_aggr.__r0)
14667 return 0;
14669 return 0;
14671 _ACEOF
14672 rm -f conftest.$ac_objext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14674 (eval $ac_compile) 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag"
14682 || test ! -s conftest.err'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest.$ac_objext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_member_ppc_thread_state_t___r0=yes
14695 else
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 ac_cv_member_ppc_thread_state_t___r0=no
14701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
14706 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
14707 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
14709 cat >>confdefs.h <<\_ACEOF
14710 #define HAS_PPC_THREAD_STATE___R0 1
14711 _ACEOF
14715 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
14716 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
14717 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 #include <mach/thread_status.h>
14729 main ()
14731 static ppc_thread_state64_t ac_aggr;
14732 if (ac_aggr.r0)
14733 return 0;
14735 return 0;
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740 (eval $ac_compile) 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag"
14748 || test ! -s conftest.err'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_cv_member_ppc_thread_state64_t_r0=yes
14761 else
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h. */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <mach/thread_status.h>
14774 main ()
14776 static ppc_thread_state64_t ac_aggr;
14777 if (sizeof ac_aggr.r0)
14778 return 0;
14780 return 0;
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag"
14793 || test ! -s conftest.err'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; } &&
14799 { ac_try='test -s conftest.$ac_objext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_cv_member_ppc_thread_state64_t_r0=yes
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_cv_member_ppc_thread_state64_t_r0=no
14812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14816 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
14817 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
14818 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
14820 cat >>confdefs.h <<\_ACEOF
14821 #define HAS_PPC_THREAD_STATE64_R0 1
14822 _ACEOF
14826 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
14827 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
14828 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h. */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 #include <mach/thread_status.h>
14840 main ()
14842 static ppc_thread_state64_t ac_aggr;
14843 if (ac_aggr.__r0)
14844 return 0;
14846 return 0;
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14851 (eval $ac_compile) 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag"
14859 || test ! -s conftest.err'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 ac_cv_member_ppc_thread_state64_t___r0=yes
14872 else
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <mach/thread_status.h>
14885 main ()
14887 static ppc_thread_state64_t ac_aggr;
14888 if (sizeof ac_aggr.__r0)
14889 return 0;
14891 return 0;
14893 _ACEOF
14894 rm -f conftest.$ac_objext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896 (eval $ac_compile) 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag"
14904 || test ! -s conftest.err'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_member_ppc_thread_state64_t___r0=yes
14917 else
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_member_ppc_thread_state64_t___r0=no
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14927 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
14928 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
14929 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAS_PPC_THREAD_STATE64___R0 1
14933 _ACEOF
14938 i?86*-*-darwin*)
14939 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
14940 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
14941 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 #include <sys/cdefs.h>
14951 #include <mach/thread_status.h>
14954 main ()
14956 static x86_thread_state32_t ac_aggr;
14957 if (ac_aggr.eax)
14958 return 0;
14960 return 0;
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_member_x86_thread_state32_t_eax=yes
14986 else
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 #include <sys/cdefs.h>
14997 #include <mach/thread_status.h>
15000 main ()
15002 static x86_thread_state32_t ac_aggr;
15003 if (sizeof ac_aggr.eax)
15004 return 0;
15006 return 0;
15008 _ACEOF
15009 rm -f conftest.$ac_objext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15011 (eval $ac_compile) 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag"
15019 || test ! -s conftest.err'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; } &&
15025 { ac_try='test -s conftest.$ac_objext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_member_x86_thread_state32_t_eax=yes
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_cv_member_x86_thread_state32_t_eax=no
15038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15043 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15044 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAS_X86_THREAD_STATE32_EAX 1
15048 _ACEOF
15052 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15053 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15054 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h. */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 #include <sys/cdefs.h>
15064 #include <mach/thread_status.h>
15067 main ()
15069 static x86_thread_state32_t ac_aggr;
15070 if (ac_aggr.__eax)
15071 return 0;
15073 return 0;
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078 (eval $ac_compile) 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag"
15086 || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest.$ac_objext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 ac_cv_member_x86_thread_state32_t___eax=yes
15099 else
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #include <sys/cdefs.h>
15110 #include <mach/thread_status.h>
15113 main ()
15115 static x86_thread_state32_t ac_aggr;
15116 if (sizeof ac_aggr.__eax)
15117 return 0;
15119 return 0;
15121 _ACEOF
15122 rm -f conftest.$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag"
15132 || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest.$ac_objext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 ac_cv_member_x86_thread_state32_t___eax=yes
15145 else
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 ac_cv_member_x86_thread_state32_t___eax=no
15151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15155 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15156 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15157 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAS_X86_THREAD_STATE32___EAX 1
15161 _ACEOF
15166 x86_64-*-darwin*)
15167 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15168 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15169 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172 cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h. */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h. */
15178 #include <sys/cdefs.h>
15179 #include <mach/thread_status.h>
15182 main ()
15184 static x86_thread_state64_t ac_aggr;
15185 if (ac_aggr.rax)
15186 return 0;
15188 return 0;
15190 _ACEOF
15191 rm -f conftest.$ac_objext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag"
15201 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest.$ac_objext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_member_x86_thread_state64_t_rax=yes
15214 else
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h. */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 #include <sys/cdefs.h>
15225 #include <mach/thread_status.h>
15228 main ()
15230 static x86_thread_state64_t ac_aggr;
15231 if (sizeof ac_aggr.rax)
15232 return 0;
15234 return 0;
15236 _ACEOF
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_member_x86_thread_state64_t_rax=yes
15260 else
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_cv_member_x86_thread_state64_t_rax=no
15266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15270 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
15271 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
15272 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAS_X86_THREAD_STATE64_RAX 1
15276 _ACEOF
15280 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
15281 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
15282 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <sys/cdefs.h>
15292 #include <mach/thread_status.h>
15295 main ()
15297 static x86_thread_state64_t ac_aggr;
15298 if (ac_aggr.__rax)
15299 return 0;
15301 return 0;
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_cv_member_x86_thread_state64_t___rax=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <sys/cdefs.h>
15338 #include <mach/thread_status.h>
15341 main ()
15343 static x86_thread_state64_t ac_aggr;
15344 if (sizeof ac_aggr.__rax)
15345 return 0;
15347 return 0;
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352 (eval $ac_compile) 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try='test -z "$ac_c_werror_flag"
15360 || test ! -s conftest.err'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest.$ac_objext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_member_x86_thread_state64_t___rax=yes
15373 else
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_member_x86_thread_state64_t___rax=no
15379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15383 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
15384 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
15385 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
15387 cat >>confdefs.h <<\_ACEOF
15388 #define HAS_X86_THREAD_STATE64___RAX 1
15389 _ACEOF
15394 *) ;;
15395 esac
15397 # We never want libdl on darwin. It is a fake libdl that just ends up making
15398 # dyld calls anyway
15399 case "$host" in
15400 *-*-darwin*) ;;
15402 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15403 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407 ac_check_lib_save_LIBS=$LIBS
15408 LIBS="-ldl $LIBS"
15409 if test x$gcc_no_link = xyes; then
15410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15412 { (exit 1); exit 1; }; }
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15421 /* Override any gcc2 internal prototype to avoid an error. */
15422 #ifdef __cplusplus
15423 extern "C"
15424 #endif
15425 /* We use char because int might match the return type of a gcc2
15426 builtin and then its argument prototype would still apply. */
15427 char dlopen ();
15429 main ()
15431 dlopen ();
15433 return 0;
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15438 (eval $ac_link) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_lib_dl_dlopen=yes
15459 else
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_cv_lib_dl_dlopen=no
15465 rm -f conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
15467 LIBS=$ac_check_lib_save_LIBS
15469 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15470 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15471 if test $ac_cv_lib_dl_dlopen = yes; then
15472 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15476 esac
15478 # extra LD Flags which are required for targets
15479 case "${host}" in
15480 *-*-darwin*)
15481 extra_ldflags_libgc=-Wl,-single_module
15483 esac
15488 target_all=libgcjgc.la
15491 TARGET_ECOS="no"
15493 # Check whether --with-ecos or --without-ecos was given.
15494 if test "${with_ecos+set}" = set; then
15495 withval="$with_ecos"
15496 TARGET_ECOS="$with_ecos"
15500 addobjs=
15501 addlibs=
15502 addincludes=
15503 addtests=
15504 case "$TARGET_ECOS" in
15509 cat >>confdefs.h <<\_ACEOF
15510 #define ECOS 1
15511 _ACEOF
15513 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15514 addobjs="$addobjs ecos.lo"
15516 esac
15518 if test "${enable_cplusplus}" = yes; then
15519 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15520 addtests="$addtests test_cpp"
15525 if test "${enable_cplusplus}" = yes; then
15526 CPLUSPLUS_TRUE=
15527 CPLUSPLUS_FALSE='#'
15528 else
15529 CPLUSPLUS_TRUE='#'
15530 CPLUSPLUS_FALSE=
15538 # Configuration of shared libraries
15540 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15542 # Check whether --enable-shared or --disable-shared was given.
15543 if test "${enable_shared+set}" = set; then
15544 enableval="$enable_shared"
15545 p=${PACKAGE-default}
15546 case $enableval in
15547 yes) enable_shared=yes ;;
15548 no) enable_shared=no ;;
15550 enable_shared=no
15551 # Look at the argument we got. We use all the common list separators.
15552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15553 for pkg in $enableval; do
15554 IFS="$lt_save_ifs"
15555 if test "X$pkg" = "X$p"; then
15556 enable_shared=yes
15558 done
15559 IFS="$lt_save_ifs"
15561 esac
15562 else
15563 enable_shared=yes
15571 case "$host" in
15572 alpha-*-openbsd*)
15573 enable_shared=no
15574 echo "$as_me:$LINENO: result: no" >&5
15575 echo "${ECHO_T}no" >&6
15578 echo "$as_me:$LINENO: result: yes" >&5
15579 echo "${ECHO_T}yes" >&6
15581 esac
15583 # Checks for pthreads functions
15585 oldLIBS="$LIBS"
15586 LIBS="$LIBS $THREADLIBS"
15588 for ac_func in pthread_getattr_np
15590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15591 echo "$as_me:$LINENO: checking for $ac_func" >&5
15592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15593 if eval "test \"\${$as_ac_var+set}\" = set"; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596 if test x$gcc_no_link = xyes; then
15597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15599 { (exit 1); exit 1; }; }
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h. */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15609 #define $ac_func innocuous_$ac_func
15611 /* System header to define __stub macros and hopefully few prototypes,
15612 which can conflict with char $ac_func (); below.
15613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15614 <limits.h> exists even on freestanding compilers. */
15616 #ifdef __STDC__
15617 # include <limits.h>
15618 #else
15619 # include <assert.h>
15620 #endif
15622 #undef $ac_func
15624 /* Override any gcc2 internal prototype to avoid an error. */
15625 #ifdef __cplusplus
15626 extern "C"
15628 #endif
15629 /* We use char because int might match the return type of a gcc2
15630 builtin and then its argument prototype would still apply. */
15631 char $ac_func ();
15632 /* The GNU C library defines this for functions which it implements
15633 to always fail with ENOSYS. Some functions are actually named
15634 something starting with __ and the normal name is an alias. */
15635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15636 choke me
15637 #else
15638 char (*f) () = $ac_func;
15639 #endif
15640 #ifdef __cplusplus
15642 #endif
15645 main ()
15647 return f != $ac_func;
15649 return 0;
15651 _ACEOF
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15654 (eval $ac_link) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest$ac_exeext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 eval "$as_ac_var=yes"
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 eval "$as_ac_var=no"
15681 rm -f conftest.err conftest.$ac_objext \
15682 conftest$ac_exeext conftest.$ac_ext
15684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15686 if test `eval echo '${'$as_ac_var'}'` = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15689 _ACEOF
15692 done
15694 LIBS="$oldLIBS"
15696 # Configuration of machine-dependent code
15698 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15699 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15700 # in executable memory.
15702 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
15703 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
15704 machdep=
15705 case "$host" in
15706 alpha*-*-openbsd*)
15707 machdep="alpha_mach_dep.lo"
15708 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15709 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15710 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15713 alpha*-*-linux*)
15714 machdep="alpha_mach_dep.lo"
15716 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15718 cat >>confdefs.h <<\_ACEOF
15719 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
15720 _ACEOF
15723 mipstx39-*-elf*)
15724 machdep="mips_ultrix_mach_dep.lo"
15726 cat >>confdefs.h <<\_ACEOF
15727 #define STACKBASE __stackbase
15728 _ACEOF
15731 cat >>confdefs.h <<\_ACEOF
15732 #define DATASTART_IS_ETEXT 1
15733 _ACEOF
15736 mips-dec-ultrix*)
15737 machdep="mips_ultrix_mach-dep.lo"
15739 mips-nec-sysv*|mips-unknown-sysv*)
15741 mips*-*-linux*)
15743 mips-*-*)
15744 machdep="mips_sgi_mach_dep.lo"
15746 sparc-*-netbsd*)
15747 machdep="sparc_netbsd_mach_dep.lo"
15749 sparc-sun-solaris2.3)
15750 machdep="sparc_mach_dep.lo"
15752 cat >>confdefs.h <<\_ACEOF
15753 #define SUNOS53_SHARED_LIB 1
15754 _ACEOF
15757 sparc*-sun-solaris2.*)
15758 machdep="sparc_mach_dep.lo"
15760 ia64-*-*)
15761 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15763 esac
15765 cat >>confdefs.h <<\_ACEOF
15766 #define NO_EXECUTE_PERMISSION 1
15767 _ACEOF
15769 if test x"$machdep" = x; then
15770 echo "$as_me:$LINENO: result: $machdep" >&5
15771 echo "${ECHO_T}$machdep" >&6
15772 machdep="mach_dep.lo"
15774 addobjs="$addobjs $machdep"
15781 # Check for AViiON Machines running DGUX
15783 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
15784 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
15785 ac_is_dgux=no
15786 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15787 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15788 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15789 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15793 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15794 else
15795 # Is the header compilable?
15796 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15797 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15805 #include <sys/dg_sys_info.h>
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag"
15817 || test ! -s conftest.err'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest.$ac_objext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_header_compiler=yes
15830 else
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_header_compiler=no
15836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15838 echo "${ECHO_T}$ac_header_compiler" >&6
15840 # Is the header present?
15841 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15842 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h. */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 #include <sys/dg_sys_info.h>
15850 _ACEOF
15851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } >/dev/null; then
15859 if test -s conftest.err; then
15860 ac_cpp_err=$ac_c_preproc_warn_flag
15861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15862 else
15863 ac_cpp_err=
15865 else
15866 ac_cpp_err=yes
15868 if test -z "$ac_cpp_err"; then
15869 ac_header_preproc=yes
15870 else
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_header_preproc=no
15876 rm -f conftest.err conftest.$ac_ext
15877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15878 echo "${ECHO_T}$ac_header_preproc" >&6
15880 # So? What about this header?
15881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15882 yes:no: )
15883 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15884 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15886 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15887 ac_header_preproc=yes
15889 no:yes:* )
15890 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15891 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15893 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15895 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15897 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15899 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15901 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15903 cat <<\_ASBOX
15904 ## ------------------------------------------ ##
15905 ## Report this to the AC_PACKAGE_NAME lists. ##
15906 ## ------------------------------------------ ##
15907 _ASBOX
15909 sed "s/^/$as_me: WARNING: /" >&2
15911 esac
15912 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15913 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15914 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15919 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15920 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15923 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15924 ac_is_dgux=yes;
15929 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
15930 echo "${ECHO_T}$ac_is_dgux" >&6
15931 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15932 if test $ac_is_dgux = yes; then
15933 if test "$enable_full_debug" = "yes"; then
15934 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15935 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15936 else
15937 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15938 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15944 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
15945 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
15946 case "$host" in
15947 *aix*)
15948 if test "$GCC" = yes; then
15949 echo "$as_me:$LINENO: result: yes" >&5
15950 echo "${ECHO_T}yes" >&6
15951 new_CFLAGS=
15952 for i in $CFLAGS; do
15953 case "$i" in
15954 -O*)
15957 new_CFLAGS="$new_CFLAGS $i"
15959 esac
15960 done
15961 CFLAGS="$new_CFLAGS"
15962 else
15963 echo "$as_me:$LINENO: result: no" >&5
15964 echo "${ECHO_T}no" >&6
15967 *) echo "$as_me:$LINENO: result: no" >&5
15968 echo "${ECHO_T}no" >&6 ;;
15969 esac
15971 MY_CFLAGS="$CFLAGS"
15975 cat >>confdefs.h <<\_ACEOF
15976 #define SILENT 1
15977 _ACEOF
15980 cat >>confdefs.h <<\_ACEOF
15981 #define NO_SIGNALS 1
15982 _ACEOF
15985 cat >>confdefs.h <<\_ACEOF
15986 #define ALL_INTERIOR_POINTERS 1
15987 _ACEOF
15991 cat >>confdefs.h <<\_ACEOF
15992 #define JAVA_FINALIZATION 1
15993 _ACEOF
15996 cat >>confdefs.h <<\_ACEOF
15997 #define GC_GCJ_SUPPORT 1
15998 _ACEOF
16001 cat >>confdefs.h <<\_ACEOF
16002 #define ATOMIC_UNCOLLECTABLE 1
16003 _ACEOF
16006 # Check whether --enable-gc-debug or --disable-gc-debug was given.
16007 if test "${enable_gc_debug+set}" = set; then
16008 enableval="$enable_gc_debug"
16009 if test "$enable_gc_debug" = "yes"; then
16010 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16011 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16013 cat >>confdefs.h <<\_ACEOF
16014 #define KEEP_BACK_PTRS 1
16015 _ACEOF
16018 cat >>confdefs.h <<\_ACEOF
16019 #define DBG_HDRS_ALL 1
16020 _ACEOF
16022 case $host in
16023 ia64-*-linux* )
16025 cat >>confdefs.h <<\_ACEOF
16026 #define MAKE_BACK_GRAPH 1
16027 _ACEOF
16030 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16031 cat >>confdefs.h <<\_ACEOF
16032 #define MAKE_BACK_GRAPH 1
16033 _ACEOF
16035 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16036 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16038 cat >>confdefs.h <<\_ACEOF
16039 #define SAVE_CALL_COUNT 8
16040 _ACEOF
16043 i345686-*-dgux*)
16044 cat >>confdefs.h <<\_ACEOF
16045 #define MAKE_BACK_GRAPH 1
16046 _ACEOF
16049 esac
16053 if test "${gc_use_mmap}" = "yes"; then
16055 cat >>confdefs.h <<\_ACEOF
16056 #define USE_MMAP 1
16057 _ACEOF
16061 if test -n "$with_cross_host" &&
16062 test x"$with_cross_host" != x"no"; then
16063 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16064 toolexeclibdir='$(toolexecdir)/lib'
16065 else
16066 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16067 toolexeclibdir='$(libdir)'
16069 multi_os_directory=`$CC -print-multi-os-directory`
16070 case $multi_os_directory in
16071 .) ;; # Avoid trailing /.
16072 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16073 esac
16077 if test "${multilib}" = "yes"; then
16078 multilib_arg="--enable-multilib"
16079 else
16080 multilib_arg=
16083 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16086 ac_config_files="$ac_config_files Makefile include/Makefile"
16088 cat >confcache <<\_ACEOF
16089 # This file is a shell script that caches the results of configure
16090 # tests run on this system so they can be shared between configure
16091 # scripts and configure runs, see configure's option --config-cache.
16092 # It is not useful on other systems. If it contains results you don't
16093 # want to keep, you may remove or edit it.
16095 # config.status only pays attention to the cache file if you give it
16096 # the --recheck option to rerun configure.
16098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16100 # following values.
16102 _ACEOF
16104 # The following way of writing the cache mishandles newlines in values,
16105 # but we know of no workaround that is simple, portable, and efficient.
16106 # So, don't put newlines in cache variables' values.
16107 # Ultrix sh set writes to stderr and can't be redirected directly,
16108 # and sets the high bit in the cache file unless we assign to the vars.
16110 (set) 2>&1 |
16111 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16112 *ac_space=\ *)
16113 # `set' does not quote correctly, so add quotes (double-quote
16114 # substitution turns \\\\ into \\, and sed turns \\ into \).
16115 sed -n \
16116 "s/'/'\\\\''/g;
16117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16120 # `set' quotes correctly as required by POSIX, so do not add quotes.
16121 sed -n \
16122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16124 esac;
16126 sed '
16127 t clear
16128 : clear
16129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16130 t end
16131 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16132 : end' >>confcache
16133 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16134 if test -w $cache_file; then
16135 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16136 cat confcache >$cache_file
16137 else
16138 echo "not updating unwritable cache $cache_file"
16141 rm -f confcache
16143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16144 # Let make expand exec_prefix.
16145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16147 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16148 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16149 # trailing colons and then remove the whole line if VPATH becomes empty
16150 # (actually we leave an empty line to preserve line numbers).
16151 if test "x$srcdir" = x.; then
16152 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16153 s/:*\$(srcdir):*/:/;
16154 s/:*\${srcdir}:*/:/;
16155 s/:*@srcdir@:*/:/;
16156 s/^\([^=]*=[ ]*\):*/\1/;
16157 s/:*$//;
16158 s/^[^=]*=[ ]*$//;
16162 DEFS=-DHAVE_CONFIG_H
16164 ac_libobjs=
16165 ac_ltlibobjs=
16166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16167 # 1. Remove the extension, and $U if already installed.
16168 ac_i=`echo "$ac_i" |
16169 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16170 # 2. Add them.
16171 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16172 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16173 done
16174 LIBOBJS=$ac_libobjs
16176 LTLIBOBJS=$ac_ltlibobjs
16179 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16180 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16181 Usually this means the macro was only invoked conditionally." >&5
16182 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16183 Usually this means the macro was only invoked conditionally." >&2;}
16184 { (exit 1); exit 1; }; }
16186 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16187 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16188 Usually this means the macro was only invoked conditionally." >&5
16189 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16190 Usually this means the macro was only invoked conditionally." >&2;}
16191 { (exit 1); exit 1; }; }
16193 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16194 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16195 Usually this means the macro was only invoked conditionally." >&5
16196 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16197 Usually this means the macro was only invoked conditionally." >&2;}
16198 { (exit 1); exit 1; }; }
16200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16201 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16202 Usually this means the macro was only invoked conditionally." >&5
16203 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16204 Usually this means the macro was only invoked conditionally." >&2;}
16205 { (exit 1); exit 1; }; }
16207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16208 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16209 Usually this means the macro was only invoked conditionally." >&5
16210 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16211 Usually this means the macro was only invoked conditionally." >&2;}
16212 { (exit 1); exit 1; }; }
16214 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16215 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16216 Usually this means the macro was only invoked conditionally." >&5
16217 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16218 Usually this means the macro was only invoked conditionally." >&2;}
16219 { (exit 1); exit 1; }; }
16221 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16222 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16223 Usually this means the macro was only invoked conditionally." >&5
16224 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16225 Usually this means the macro was only invoked conditionally." >&2;}
16226 { (exit 1); exit 1; }; }
16229 : ${CONFIG_STATUS=./config.status}
16230 ac_clean_files_save=$ac_clean_files
16231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16232 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16233 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16234 cat >$CONFIG_STATUS <<_ACEOF
16235 #! $SHELL
16236 # Generated by $as_me.
16237 # Run this file to recreate the current configuration.
16238 # Compiler output produced by configure, useful for debugging
16239 # configure, is in config.log if it exists.
16241 debug=false
16242 ac_cs_recheck=false
16243 ac_cs_silent=false
16244 SHELL=\${CONFIG_SHELL-$SHELL}
16245 _ACEOF
16247 cat >>$CONFIG_STATUS <<\_ACEOF
16248 ## --------------------- ##
16249 ## M4sh Initialization. ##
16250 ## --------------------- ##
16252 # Be Bourne compatible
16253 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16254 emulate sh
16255 NULLCMD=:
16256 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16257 # is contrary to our usage. Disable this feature.
16258 alias -g '${1+"$@"}'='"$@"'
16259 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16260 set -o posix
16262 DUALCASE=1; export DUALCASE # for MKS sh
16264 # Support unset when possible.
16265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16266 as_unset=unset
16267 else
16268 as_unset=false
16272 # Work around bugs in pre-3.0 UWIN ksh.
16273 $as_unset ENV MAIL MAILPATH
16274 PS1='$ '
16275 PS2='> '
16276 PS4='+ '
16278 # NLS nuisances.
16279 for as_var in \
16280 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16281 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16282 LC_TELEPHONE LC_TIME
16284 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16285 eval $as_var=C; export $as_var
16286 else
16287 $as_unset $as_var
16289 done
16291 # Required to use basename.
16292 if expr a : '\(a\)' >/dev/null 2>&1; then
16293 as_expr=expr
16294 else
16295 as_expr=false
16298 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16299 as_basename=basename
16300 else
16301 as_basename=false
16305 # Name of the executable.
16306 as_me=`$as_basename "$0" ||
16307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16308 X"$0" : 'X\(//\)$' \| \
16309 X"$0" : 'X\(/\)$' \| \
16310 . : '\(.\)' 2>/dev/null ||
16311 echo X/"$0" |
16312 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16313 /^X\/\(\/\/\)$/{ s//\1/; q; }
16314 /^X\/\(\/\).*/{ s//\1/; q; }
16315 s/.*/./; q'`
16318 # PATH needs CR, and LINENO needs CR and PATH.
16319 # Avoid depending upon Character Ranges.
16320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16323 as_cr_digits='0123456789'
16324 as_cr_alnum=$as_cr_Letters$as_cr_digits
16326 # The user is always right.
16327 if test "${PATH_SEPARATOR+set}" != set; then
16328 echo "#! /bin/sh" >conf$$.sh
16329 echo "exit 0" >>conf$$.sh
16330 chmod +x conf$$.sh
16331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16332 PATH_SEPARATOR=';'
16333 else
16334 PATH_SEPARATOR=:
16336 rm -f conf$$.sh
16340 as_lineno_1=$LINENO
16341 as_lineno_2=$LINENO
16342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16343 test "x$as_lineno_1" != "x$as_lineno_2" &&
16344 test "x$as_lineno_3" = "x$as_lineno_2" || {
16345 # Find who we are. Look in the path if we contain no path at all
16346 # relative or not.
16347 case $0 in
16348 *[\\/]* ) as_myself=$0 ;;
16349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350 for as_dir in $PATH
16352 IFS=$as_save_IFS
16353 test -z "$as_dir" && as_dir=.
16354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16355 done
16358 esac
16359 # We did not find ourselves, most probably we were run as `sh COMMAND'
16360 # in which case we are not to be found in the path.
16361 if test "x$as_myself" = x; then
16362 as_myself=$0
16364 if test ! -f "$as_myself"; then
16365 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16366 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16367 { (exit 1); exit 1; }; }
16369 case $CONFIG_SHELL in
16371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16372 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16374 IFS=$as_save_IFS
16375 test -z "$as_dir" && as_dir=.
16376 for as_base in sh bash ksh sh5; do
16377 case $as_dir in
16379 if ("$as_dir/$as_base" -c '
16380 as_lineno_1=$LINENO
16381 as_lineno_2=$LINENO
16382 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16383 test "x$as_lineno_1" != "x$as_lineno_2" &&
16384 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16385 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16386 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16387 CONFIG_SHELL=$as_dir/$as_base
16388 export CONFIG_SHELL
16389 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16390 fi;;
16391 esac
16392 done
16393 done
16395 esac
16397 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16398 # uniformly replaced by the line number. The first 'sed' inserts a
16399 # line-number line before each line; the second 'sed' does the real
16400 # work. The second script uses 'N' to pair each line-number line
16401 # with the numbered line, and appends trailing '-' during
16402 # substitution so that $LINENO is not a special case at line end.
16403 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16404 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16405 sed '=' <$as_myself |
16406 sed '
16408 s,$,-,
16409 : loop
16410 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16411 t loop
16412 s,-$,,
16413 s,^['$as_cr_digits']*\n,,
16414 ' >$as_me.lineno &&
16415 chmod +x $as_me.lineno ||
16416 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16417 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16418 { (exit 1); exit 1; }; }
16420 # Don't try to exec as it changes $[0], causing all sort of problems
16421 # (the dirname of $[0] is not the place where we might find the
16422 # original and so on. Autoconf is especially sensible to this).
16423 . ./$as_me.lineno
16424 # Exit status is that of the last command.
16425 exit
16429 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16430 *c*,-n*) ECHO_N= ECHO_C='
16431 ' ECHO_T=' ' ;;
16432 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16433 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16434 esac
16436 if expr a : '\(a\)' >/dev/null 2>&1; then
16437 as_expr=expr
16438 else
16439 as_expr=false
16442 rm -f conf$$ conf$$.exe conf$$.file
16443 echo >conf$$.file
16444 if ln -s conf$$.file conf$$ 2>/dev/null; then
16445 # We could just check for DJGPP; but this test a) works b) is more generic
16446 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16447 if test -f conf$$.exe; then
16448 # Don't use ln at all; we don't have any links
16449 as_ln_s='cp -p'
16450 else
16451 as_ln_s='ln -s'
16453 elif ln conf$$.file conf$$ 2>/dev/null; then
16454 as_ln_s=ln
16455 else
16456 as_ln_s='cp -p'
16458 rm -f conf$$ conf$$.exe conf$$.file
16460 if mkdir -p . 2>/dev/null; then
16461 as_mkdir_p=:
16462 else
16463 test -d ./-p && rmdir ./-p
16464 as_mkdir_p=false
16467 as_executable_p="test -f"
16469 # Sed expression to map a string onto a valid CPP name.
16470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16472 # Sed expression to map a string onto a valid variable name.
16473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16476 # IFS
16477 # We need space, tab and new line, in precisely that order.
16478 as_nl='
16480 IFS=" $as_nl"
16482 # CDPATH.
16483 $as_unset CDPATH
16485 exec 6>&1
16487 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16488 # report actual input values of CONFIG_FILES etc. instead of their
16489 # values after options handling. Logging --version etc. is OK.
16490 exec 5>>config.log
16492 echo
16493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16494 ## Running $as_me. ##
16495 _ASBOX
16496 } >&5
16497 cat >&5 <<_CSEOF
16499 This file was extended by $as_me, which was
16500 generated by GNU Autoconf 2.59. Invocation command line was
16502 CONFIG_FILES = $CONFIG_FILES
16503 CONFIG_HEADERS = $CONFIG_HEADERS
16504 CONFIG_LINKS = $CONFIG_LINKS
16505 CONFIG_COMMANDS = $CONFIG_COMMANDS
16506 $ $0 $@
16508 _CSEOF
16509 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16510 echo >&5
16511 _ACEOF
16513 # Files that config.status was made for.
16514 if test -n "$ac_config_files"; then
16515 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16518 if test -n "$ac_config_headers"; then
16519 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16522 if test -n "$ac_config_links"; then
16523 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16526 if test -n "$ac_config_commands"; then
16527 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16530 cat >>$CONFIG_STATUS <<\_ACEOF
16532 ac_cs_usage="\
16533 \`$as_me' instantiates files from templates according to the
16534 current configuration.
16536 Usage: $0 [OPTIONS] [FILE]...
16538 -h, --help print this help, then exit
16539 -V, --version print version number, then exit
16540 -q, --quiet do not print progress messages
16541 -d, --debug don't remove temporary files
16542 --recheck update $as_me by reconfiguring in the same conditions
16543 --file=FILE[:TEMPLATE]
16544 instantiate the configuration file FILE
16545 --header=FILE[:TEMPLATE]
16546 instantiate the configuration header FILE
16548 Configuration files:
16549 $config_files
16551 Configuration headers:
16552 $config_headers
16554 Configuration commands:
16555 $config_commands
16557 Report bugs to <bug-autoconf@gnu.org>."
16558 _ACEOF
16560 cat >>$CONFIG_STATUS <<_ACEOF
16561 ac_cs_version="\\
16562 config.status
16563 configured by $0, generated by GNU Autoconf 2.59,
16564 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16566 Copyright (C) 2003 Free Software Foundation, Inc.
16567 This config.status script is free software; the Free Software Foundation
16568 gives unlimited permission to copy, distribute and modify it."
16569 srcdir=$srcdir
16570 INSTALL="$INSTALL"
16571 _ACEOF
16573 cat >>$CONFIG_STATUS <<\_ACEOF
16574 # If no file are specified by the user, then we need to provide default
16575 # value. By we need to know if files were specified by the user.
16576 ac_need_defaults=:
16577 while test $# != 0
16579 case $1 in
16580 --*=*)
16581 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16582 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16583 ac_shift=:
16586 ac_option=$1
16587 ac_optarg=$2
16588 ac_shift=shift
16590 *) # This is not an option, so the user has probably given explicit
16591 # arguments.
16592 ac_option=$1
16593 ac_need_defaults=false;;
16594 esac
16596 case $ac_option in
16597 # Handling of the options.
16598 _ACEOF
16599 cat >>$CONFIG_STATUS <<\_ACEOF
16600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16601 ac_cs_recheck=: ;;
16602 --version | --vers* | -V )
16603 echo "$ac_cs_version"; exit 0 ;;
16604 --he | --h)
16605 # Conflict between --help and --header
16606 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16607 Try \`$0 --help' for more information." >&5
16608 echo "$as_me: error: ambiguous option: $1
16609 Try \`$0 --help' for more information." >&2;}
16610 { (exit 1); exit 1; }; };;
16611 --help | --hel | -h )
16612 echo "$ac_cs_usage"; exit 0 ;;
16613 --debug | --d* | -d )
16614 debug=: ;;
16615 --file | --fil | --fi | --f )
16616 $ac_shift
16617 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16618 ac_need_defaults=false;;
16619 --header | --heade | --head | --hea )
16620 $ac_shift
16621 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16622 ac_need_defaults=false;;
16623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16625 ac_cs_silent=: ;;
16627 # This is an error.
16628 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16629 Try \`$0 --help' for more information." >&5
16630 echo "$as_me: error: unrecognized option: $1
16631 Try \`$0 --help' for more information." >&2;}
16632 { (exit 1); exit 1; }; } ;;
16634 *) ac_config_targets="$ac_config_targets $1" ;;
16636 esac
16637 shift
16638 done
16640 ac_configure_extra_args=
16642 if $ac_cs_silent; then
16643 exec 6>/dev/null
16644 ac_configure_extra_args="$ac_configure_extra_args --silent"
16647 _ACEOF
16648 cat >>$CONFIG_STATUS <<_ACEOF
16649 if \$ac_cs_recheck; then
16650 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16651 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16654 _ACEOF
16656 cat >>$CONFIG_STATUS <<_ACEOF
16658 # INIT-COMMANDS section.
16662 srcdir="$srcdir"
16663 host="$host"
16664 target="$target"
16665 with_multisubdir="$with_multisubdir"
16666 with_multisrctop="$with_multisrctop"
16667 with_target_subdir="$with_target_subdir"
16668 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16669 multi_basedir="$multi_basedir"
16670 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16671 CC="$CC"
16672 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16675 # The HP-UX ksh and POSIX shell print the target directory to stdout
16676 # if CDPATH is set.
16677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16679 sed_quote_subst='$sed_quote_subst'
16680 double_quote_subst='$double_quote_subst'
16681 delay_variable_subst='$delay_variable_subst'
16682 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16683 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16684 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16685 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16686 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16687 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16688 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16689 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16690 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16691 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16692 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16693 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16694 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16695 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16696 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16697 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16698 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16699 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16700 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16701 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16702 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16703 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16704 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16705 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16706 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16707 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16708 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16709 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16710 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16711 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16712 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16713 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16714 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16715 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16716 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16717 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16718 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16719 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16720 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16721 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16722 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16723 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16724 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16725 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16726 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16727 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16728 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16729 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16730 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16731 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16732 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16733 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16734 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16735 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16736 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16737 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16738 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16739 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16740 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16741 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16742 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16743 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16744 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16745 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16746 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16747 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16748 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16749 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16750 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16751 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16752 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16753 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16754 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16755 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16756 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16757 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16758 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16759 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16760 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16761 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16762 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16763 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16764 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16765 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16766 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16767 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16768 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16769 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16770 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16771 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16772 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16773 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16774 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16775 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16776 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16777 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16778 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16779 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16780 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16781 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16782 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16783 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16784 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16785 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16786 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16787 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16788 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16789 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16790 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16791 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16792 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16793 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16794 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16795 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16796 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16797 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16798 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16799 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16800 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16801 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16802 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16803 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16804 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16805 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16806 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16807 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16808 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16809 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16810 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16811 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16812 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16813 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16814 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16815 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16816 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16817 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16818 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16819 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16820 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16821 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16822 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16823 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16824 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16825 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16826 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16827 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16828 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16829 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16830 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16831 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16832 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16833 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16834 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16835 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16836 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16837 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16838 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16839 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16840 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16841 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16842 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16843 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16845 LTCC='$LTCC'
16846 LTCFLAGS='$LTCFLAGS'
16847 compiler='$compiler_DEFAULT'
16849 # Quote evaled strings.
16850 for var in SED \
16851 GREP \
16852 EGREP \
16853 FGREP \
16854 LD \
16855 NM \
16856 LN_S \
16857 lt_SP2NL \
16858 lt_NL2SP \
16859 reload_flag \
16860 deplibs_check_method \
16861 file_magic_cmd \
16862 AR \
16863 AR_FLAGS \
16864 STRIP \
16865 RANLIB \
16866 CC \
16867 CFLAGS \
16868 compiler \
16869 lt_cv_sys_global_symbol_pipe \
16870 lt_cv_sys_global_symbol_to_cdecl \
16871 lt_cv_sys_global_symbol_to_c_name_address \
16872 SHELL \
16873 ECHO \
16874 lt_prog_compiler_no_builtin_flag \
16875 lt_prog_compiler_wl \
16876 lt_prog_compiler_pic \
16877 lt_prog_compiler_static \
16878 lt_cv_prog_compiler_c_o \
16879 need_locks \
16880 shrext_cmds \
16881 export_dynamic_flag_spec \
16882 whole_archive_flag_spec \
16883 compiler_needs_object \
16884 with_gnu_ld \
16885 allow_undefined_flag \
16886 no_undefined_flag \
16887 hardcode_libdir_flag_spec \
16888 hardcode_libdir_flag_spec_ld \
16889 hardcode_libdir_separator \
16890 fix_srcfile_path \
16891 exclude_expsyms \
16892 include_expsyms \
16893 file_list_spec \
16894 variables_saved_for_relink \
16895 libname_spec \
16896 library_names_spec \
16897 soname_spec \
16898 finish_eval \
16899 old_striplib \
16900 striplib \
16901 predep_objects \
16902 postdep_objects \
16903 predeps \
16904 postdeps \
16905 compiler_lib_search_path \
16906 LD_CXX \
16907 compiler_CXX \
16908 lt_prog_compiler_no_builtin_flag_CXX \
16909 lt_prog_compiler_wl_CXX \
16910 lt_prog_compiler_pic_CXX \
16911 lt_prog_compiler_static_CXX \
16912 lt_cv_prog_compiler_c_o_CXX \
16913 export_dynamic_flag_spec_CXX \
16914 whole_archive_flag_spec_CXX \
16915 compiler_needs_object_CXX \
16916 with_gnu_ld_CXX \
16917 allow_undefined_flag_CXX \
16918 no_undefined_flag_CXX \
16919 hardcode_libdir_flag_spec_CXX \
16920 hardcode_libdir_flag_spec_ld_CXX \
16921 hardcode_libdir_separator_CXX \
16922 fix_srcfile_path_CXX \
16923 exclude_expsyms_CXX \
16924 include_expsyms_CXX \
16925 file_list_spec_CXX \
16926 predep_objects_CXX \
16927 postdep_objects_CXX \
16928 predeps_CXX \
16929 postdeps_CXX \
16930 compiler_lib_search_path_CXX; do
16931 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16932 *[\\\\\\\`\\"\\\$]*)
16933 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16936 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16938 esac
16939 done
16941 # Double-quote double-evaled strings.
16942 for var in reload_cmds \
16943 old_postinstall_cmds \
16944 old_postuninstall_cmds \
16945 old_archive_cmds \
16946 extract_expsyms_cmds \
16947 old_archive_from_new_cmds \
16948 old_archive_from_expsyms_cmds \
16949 archive_cmds \
16950 archive_expsym_cmds \
16951 module_cmds \
16952 module_expsym_cmds \
16953 export_symbols_cmds \
16954 prelink_cmds \
16955 postinstall_cmds \
16956 postuninstall_cmds \
16957 finish_cmds \
16958 sys_lib_search_path_spec \
16959 sys_lib_dlsearch_path_spec \
16960 old_archive_cmds_CXX \
16961 old_archive_from_new_cmds_CXX \
16962 old_archive_from_expsyms_cmds_CXX \
16963 archive_cmds_CXX \
16964 archive_expsym_cmds_CXX \
16965 module_cmds_CXX \
16966 module_expsym_cmds_CXX \
16967 export_symbols_cmds_CXX \
16968 prelink_cmds_CXX; do
16969 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16970 *[\\\\\\\`\\"\\\$]*)
16971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16976 esac
16977 done
16979 # Fix-up fallback echo if it was mangled by the above quoting rules.
16980 case \$lt_ECHO in
16981 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16983 esac
16985 ac_aux_dir='$ac_aux_dir'
16986 xsi_shell='$xsi_shell'
16987 lt_shell_append='$lt_shell_append'
16989 # See if we are running on zsh, and set the options which allow our
16990 # commands through without removal of \ escapes INIT.
16991 if test -n "\${ZSH_VERSION+set}" ; then
16992 setopt NO_GLOB_SUBST
16996 PACKAGE='$PACKAGE'
16997 VERSION='$VERSION'
16998 TIMESTAMP='$TIMESTAMP'
16999 RM='$RM'
17000 ofile='$ofile'
17007 _ACEOF
17011 cat >>$CONFIG_STATUS <<\_ACEOF
17012 for ac_config_target in $ac_config_targets
17014 case "$ac_config_target" in
17015 # Handling of arguments.
17016 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17017 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17018 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17019 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17020 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17021 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17022 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17023 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17024 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17025 { (exit 1); exit 1; }; };;
17026 esac
17027 done
17029 # If the user did not use the arguments to specify the items to instantiate,
17030 # then the envvar interface is used. Set only those that are not.
17031 # We use the long form for the default assignment because of an extremely
17032 # bizarre bug on SunOS 4.1.3.
17033 if $ac_need_defaults; then
17034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17039 # Have a temporary directory for convenience. Make it in the build tree
17040 # simply because there is no reason to put it here, and in addition,
17041 # creating and moving files from /tmp can sometimes cause problems.
17042 # Create a temporary directory, and hook for its removal unless debugging.
17043 $debug ||
17045 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17046 trap '{ (exit 1); exit 1; }' 1 2 13 15
17049 # Create a (secure) tmp directory for tmp files.
17052 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17053 test -n "$tmp" && test -d "$tmp"
17054 } ||
17056 tmp=./confstat$$-$RANDOM
17057 (umask 077 && mkdir $tmp)
17058 } ||
17060 echo "$me: cannot create a temporary directory in ." >&2
17061 { (exit 1); exit 1; }
17064 _ACEOF
17066 cat >>$CONFIG_STATUS <<_ACEOF
17069 # CONFIG_FILES section.
17072 # No need to generate the scripts if there are no CONFIG_FILES.
17073 # This happens for instance when ./config.status config.h
17074 if test -n "\$CONFIG_FILES"; then
17075 # Protect against being on the right side of a sed subst in config.status.
17076 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17077 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17078 s,@SHELL@,$SHELL,;t t
17079 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17080 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17081 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17082 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17083 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17084 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17085 s,@exec_prefix@,$exec_prefix,;t t
17086 s,@prefix@,$prefix,;t t
17087 s,@program_transform_name@,$program_transform_name,;t t
17088 s,@bindir@,$bindir,;t t
17089 s,@sbindir@,$sbindir,;t t
17090 s,@libexecdir@,$libexecdir,;t t
17091 s,@datadir@,$datadir,;t t
17092 s,@sysconfdir@,$sysconfdir,;t t
17093 s,@sharedstatedir@,$sharedstatedir,;t t
17094 s,@localstatedir@,$localstatedir,;t t
17095 s,@libdir@,$libdir,;t t
17096 s,@includedir@,$includedir,;t t
17097 s,@oldincludedir@,$oldincludedir,;t t
17098 s,@infodir@,$infodir,;t t
17099 s,@mandir@,$mandir,;t t
17100 s,@build_alias@,$build_alias,;t t
17101 s,@host_alias@,$host_alias,;t t
17102 s,@target_alias@,$target_alias,;t t
17103 s,@DEFS@,$DEFS,;t t
17104 s,@ECHO_C@,$ECHO_C,;t t
17105 s,@ECHO_N@,$ECHO_N,;t t
17106 s,@ECHO_T@,$ECHO_T,;t t
17107 s,@LIBS@,$LIBS,;t t
17108 s,@multi_basedir@,$multi_basedir,;t t
17109 s,@build@,$build,;t t
17110 s,@build_cpu@,$build_cpu,;t t
17111 s,@build_vendor@,$build_vendor,;t t
17112 s,@build_os@,$build_os,;t t
17113 s,@host@,$host,;t t
17114 s,@host_cpu@,$host_cpu,;t t
17115 s,@host_vendor@,$host_vendor,;t t
17116 s,@host_os@,$host_os,;t t
17117 s,@target@,$target,;t t
17118 s,@target_cpu@,$target_cpu,;t t
17119 s,@target_vendor@,$target_vendor,;t t
17120 s,@target_os@,$target_os,;t t
17121 s,@target_noncanonical@,$target_noncanonical,;t t
17122 s,@mkinstalldirs@,$mkinstalldirs,;t t
17123 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17124 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17125 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17126 s,@CYGPATH_W@,$CYGPATH_W,;t t
17127 s,@PACKAGE@,$PACKAGE,;t t
17128 s,@VERSION@,$VERSION,;t t
17129 s,@ACLOCAL@,$ACLOCAL,;t t
17130 s,@AUTOCONF@,$AUTOCONF,;t t
17131 s,@AUTOMAKE@,$AUTOMAKE,;t t
17132 s,@AUTOHEADER@,$AUTOHEADER,;t t
17133 s,@MAKEINFO@,$MAKEINFO,;t t
17134 s,@install_sh@,$install_sh,;t t
17135 s,@STRIP@,$STRIP,;t t
17136 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17137 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17138 s,@mkdir_p@,$mkdir_p,;t t
17139 s,@AWK@,$AWK,;t t
17140 s,@SET_MAKE@,$SET_MAKE,;t t
17141 s,@am__leading_dot@,$am__leading_dot,;t t
17142 s,@AMTAR@,$AMTAR,;t t
17143 s,@am__tar@,$am__tar,;t t
17144 s,@am__untar@,$am__untar,;t t
17145 s,@CC@,$CC,;t t
17146 s,@ac_ct_CC@,$ac_ct_CC,;t t
17147 s,@EXEEXT@,$EXEEXT,;t t
17148 s,@OBJEXT@,$OBJEXT,;t t
17149 s,@DEPDIR@,$DEPDIR,;t t
17150 s,@am__include@,$am__include,;t t
17151 s,@am__quote@,$am__quote,;t t
17152 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17153 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17154 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17155 s,@CCDEPMODE@,$CCDEPMODE,;t t
17156 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17157 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17158 s,@CXX@,$CXX,;t t
17159 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17160 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17161 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17162 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17163 s,@CFLAGS@,$CFLAGS,;t t
17164 s,@CXXFLAGS@,$CXXFLAGS,;t t
17165 s,@CCAS@,$CCAS,;t t
17166 s,@CCASFLAGS@,$CCASFLAGS,;t t
17167 s,@AS@,$AS,;t t
17168 s,@ac_ct_AS@,$ac_ct_AS,;t t
17169 s,@AR@,$AR,;t t
17170 s,@ac_ct_AR@,$ac_ct_AR,;t t
17171 s,@RANLIB@,$RANLIB,;t t
17172 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17173 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17174 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17175 s,@MAINT@,$MAINT,;t t
17176 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17177 s,@LIBTOOL@,$LIBTOOL,;t t
17178 s,@SED@,$SED,;t t
17179 s,@EGREP@,$EGREP,;t t
17180 s,@FGREP@,$FGREP,;t t
17181 s,@GREP@,$GREP,;t t
17182 s,@LD@,$LD,;t t
17183 s,@DUMPBIN@,$DUMPBIN,;t t
17184 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17185 s,@NM@,$NM,;t t
17186 s,@LN_S@,$LN_S,;t t
17187 s,@lt_ECHO@,$lt_ECHO,;t t
17188 s,@CPP@,$CPP,;t t
17189 s,@CPPFLAGS@,$CPPFLAGS,;t t
17190 s,@LDFLAGS@,$LDFLAGS,;t t
17191 s,@CXXCPP@,$CXXCPP,;t t
17192 s,@THREADLIBS@,$THREADLIBS,;t t
17193 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17194 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17195 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17196 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17197 s,@target_all@,$target_all,;t t
17198 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17199 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17200 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17201 s,@addobjs@,$addobjs,;t t
17202 s,@addincludes@,$addincludes,;t t
17203 s,@addlibs@,$addlibs,;t t
17204 s,@addtests@,$addtests,;t t
17205 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17206 s,@toolexecdir@,$toolexecdir,;t t
17207 s,@toolexeclibdir@,$toolexeclibdir,;t t
17208 s,@LIBOBJS@,$LIBOBJS,;t t
17209 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17210 CEOF
17212 _ACEOF
17214 cat >>$CONFIG_STATUS <<\_ACEOF
17215 # Split the substitutions into bite-sized pieces for seds with
17216 # small command number limits, like on Digital OSF/1 and HP-UX.
17217 ac_max_sed_lines=48
17218 ac_sed_frag=1 # Number of current file.
17219 ac_beg=1 # First line for current file.
17220 ac_end=$ac_max_sed_lines # Line after last line for current file.
17221 ac_more_lines=:
17222 ac_sed_cmds=
17223 while $ac_more_lines; do
17224 if test $ac_beg -gt 1; then
17225 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17226 else
17227 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17229 if test ! -s $tmp/subs.frag; then
17230 ac_more_lines=false
17231 else
17232 # The purpose of the label and of the branching condition is to
17233 # speed up the sed processing (if there are no `@' at all, there
17234 # is no need to browse any of the substitutions).
17235 # These are the two extra sed commands mentioned above.
17236 (echo ':t
17237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17238 if test -z "$ac_sed_cmds"; then
17239 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17240 else
17241 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17243 ac_sed_frag=`expr $ac_sed_frag + 1`
17244 ac_beg=$ac_end
17245 ac_end=`expr $ac_end + $ac_max_sed_lines`
17247 done
17248 if test -z "$ac_sed_cmds"; then
17249 ac_sed_cmds=cat
17251 fi # test -n "$CONFIG_FILES"
17253 _ACEOF
17254 cat >>$CONFIG_STATUS <<\_ACEOF
17255 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17257 case $ac_file in
17258 - | *:- | *:-:* ) # input from stdin
17259 cat >$tmp/stdin
17260 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17262 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17264 * ) ac_file_in=$ac_file.in ;;
17265 esac
17267 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17268 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17269 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17270 X"$ac_file" : 'X\(//\)[^/]' \| \
17271 X"$ac_file" : 'X\(//\)$' \| \
17272 X"$ac_file" : 'X\(/\)' \| \
17273 . : '\(.\)' 2>/dev/null ||
17274 echo X"$ac_file" |
17275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17277 /^X\(\/\/\)$/{ s//\1/; q; }
17278 /^X\(\/\).*/{ s//\1/; q; }
17279 s/.*/./; q'`
17280 { if $as_mkdir_p; then
17281 mkdir -p "$ac_dir"
17282 else
17283 as_dir="$ac_dir"
17284 as_dirs=
17285 while test ! -d "$as_dir"; do
17286 as_dirs="$as_dir $as_dirs"
17287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17289 X"$as_dir" : 'X\(//\)[^/]' \| \
17290 X"$as_dir" : 'X\(//\)$' \| \
17291 X"$as_dir" : 'X\(/\)' \| \
17292 . : '\(.\)' 2>/dev/null ||
17293 echo X"$as_dir" |
17294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17296 /^X\(\/\/\)$/{ s//\1/; q; }
17297 /^X\(\/\).*/{ s//\1/; q; }
17298 s/.*/./; q'`
17299 done
17300 test ! -n "$as_dirs" || mkdir $as_dirs
17301 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17302 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17303 { (exit 1); exit 1; }; }; }
17305 ac_builddir=.
17307 if test "$ac_dir" != .; then
17308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17309 # A "../" for each directory in $ac_dir_suffix.
17310 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17311 else
17312 ac_dir_suffix= ac_top_builddir=
17315 case $srcdir in
17316 .) # No --srcdir option. We are building in place.
17317 ac_srcdir=.
17318 if test -z "$ac_top_builddir"; then
17319 ac_top_srcdir=.
17320 else
17321 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17322 fi ;;
17323 [\\/]* | ?:[\\/]* ) # Absolute path.
17324 ac_srcdir=$srcdir$ac_dir_suffix;
17325 ac_top_srcdir=$srcdir ;;
17326 *) # Relative path.
17327 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17328 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17329 esac
17331 # Do not use `cd foo && pwd` to compute absolute paths, because
17332 # the directories may not exist.
17333 case `pwd` in
17334 .) ac_abs_builddir="$ac_dir";;
17336 case "$ac_dir" in
17337 .) ac_abs_builddir=`pwd`;;
17338 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17339 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17340 esac;;
17341 esac
17342 case $ac_abs_builddir in
17343 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17345 case ${ac_top_builddir}. in
17346 .) ac_abs_top_builddir=$ac_abs_builddir;;
17347 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17348 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17349 esac;;
17350 esac
17351 case $ac_abs_builddir in
17352 .) ac_abs_srcdir=$ac_srcdir;;
17354 case $ac_srcdir in
17355 .) ac_abs_srcdir=$ac_abs_builddir;;
17356 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17357 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17358 esac;;
17359 esac
17360 case $ac_abs_builddir in
17361 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17363 case $ac_top_srcdir in
17364 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17365 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17366 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17367 esac;;
17368 esac
17371 case $INSTALL in
17372 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17373 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17374 esac
17376 if test x"$ac_file" != x-; then
17377 { echo "$as_me:$LINENO: creating $ac_file" >&5
17378 echo "$as_me: creating $ac_file" >&6;}
17379 rm -f "$ac_file"
17381 # Let's still pretend it is `configure' which instantiates (i.e., don't
17382 # use $as_me), people would be surprised to read:
17383 # /* config.h. Generated by config.status. */
17384 if test x"$ac_file" = x-; then
17385 configure_input=
17386 else
17387 configure_input="$ac_file. "
17389 configure_input=$configure_input"Generated from `echo $ac_file_in |
17390 sed 's,.*/,,'` by configure."
17392 # First look for the input files in the build tree, otherwise in the
17393 # src tree.
17394 ac_file_inputs=`IFS=:
17395 for f in $ac_file_in; do
17396 case $f in
17397 -) echo $tmp/stdin ;;
17398 [\\/$]*)
17399 # Absolute (can't be DOS-style, as IFS=:)
17400 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17401 echo "$as_me: error: cannot find input file: $f" >&2;}
17402 { (exit 1); exit 1; }; }
17403 echo "$f";;
17404 *) # Relative
17405 if test -f "$f"; then
17406 # Build tree
17407 echo "$f"
17408 elif test -f "$srcdir/$f"; then
17409 # Source tree
17410 echo "$srcdir/$f"
17411 else
17412 # /dev/null tree
17413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17414 echo "$as_me: error: cannot find input file: $f" >&2;}
17415 { (exit 1); exit 1; }; }
17416 fi;;
17417 esac
17418 done` || { (exit 1); exit 1; }
17419 _ACEOF
17420 cat >>$CONFIG_STATUS <<_ACEOF
17421 sed "$ac_vpsub
17422 $extrasub
17423 _ACEOF
17424 cat >>$CONFIG_STATUS <<\_ACEOF
17426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17427 s,@configure_input@,$configure_input,;t t
17428 s,@srcdir@,$ac_srcdir,;t t
17429 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17430 s,@top_srcdir@,$ac_top_srcdir,;t t
17431 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17432 s,@builddir@,$ac_builddir,;t t
17433 s,@abs_builddir@,$ac_abs_builddir,;t t
17434 s,@top_builddir@,$ac_top_builddir,;t t
17435 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17436 s,@INSTALL@,$ac_INSTALL,;t t
17437 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17438 rm -f $tmp/stdin
17439 if test x"$ac_file" != x-; then
17440 mv $tmp/out $ac_file
17441 else
17442 cat $tmp/out
17443 rm -f $tmp/out
17446 done
17447 _ACEOF
17448 cat >>$CONFIG_STATUS <<\_ACEOF
17451 # CONFIG_HEADER section.
17454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17457 # ac_d sets the value in "#define NAME VALUE" lines.
17458 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17459 ac_dB='[ ].*$,\1#\2'
17460 ac_dC=' '
17461 ac_dD=',;t'
17462 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17463 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17464 ac_uB='$,\1#\2define\3'
17465 ac_uC=' '
17466 ac_uD=',;t'
17468 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17470 case $ac_file in
17471 - | *:- | *:-:* ) # input from stdin
17472 cat >$tmp/stdin
17473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17477 * ) ac_file_in=$ac_file.in ;;
17478 esac
17480 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17481 echo "$as_me: creating $ac_file" >&6;}
17483 # First look for the input files in the build tree, otherwise in the
17484 # src tree.
17485 ac_file_inputs=`IFS=:
17486 for f in $ac_file_in; do
17487 case $f in
17488 -) echo $tmp/stdin ;;
17489 [\\/$]*)
17490 # Absolute (can't be DOS-style, as IFS=:)
17491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17492 echo "$as_me: error: cannot find input file: $f" >&2;}
17493 { (exit 1); exit 1; }; }
17494 # Do quote $f, to prevent DOS paths from being IFS'd.
17495 echo "$f";;
17496 *) # Relative
17497 if test -f "$f"; then
17498 # Build tree
17499 echo "$f"
17500 elif test -f "$srcdir/$f"; then
17501 # Source tree
17502 echo "$srcdir/$f"
17503 else
17504 # /dev/null tree
17505 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17506 echo "$as_me: error: cannot find input file: $f" >&2;}
17507 { (exit 1); exit 1; }; }
17508 fi;;
17509 esac
17510 done` || { (exit 1); exit 1; }
17511 # Remove the trailing spaces.
17512 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17514 _ACEOF
17516 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17517 # `conftest.undefs', that substitutes the proper values into
17518 # config.h.in to produce config.h. The first handles `#define'
17519 # templates, and the second `#undef' templates.
17520 # And first: Protect against being on the right side of a sed subst in
17521 # config.status. Protect against being in an unquoted here document
17522 # in config.status.
17523 rm -f conftest.defines conftest.undefs
17524 # Using a here document instead of a string reduces the quoting nightmare.
17525 # Putting comments in sed scripts is not portable.
17527 # `end' is used to avoid that the second main sed command (meant for
17528 # 0-ary CPP macros) applies to n-ary macro definitions.
17529 # See the Autoconf documentation for `clear'.
17530 cat >confdef2sed.sed <<\_ACEOF
17531 s/[\\&,]/\\&/g
17532 s,[\\$`],\\&,g
17533 t clear
17534 : clear
17535 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17536 t end
17537 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17538 : end
17539 _ACEOF
17540 # If some macros were called several times there might be several times
17541 # the same #defines, which is useless. Nevertheless, we may not want to
17542 # sort them, since we want the *last* AC-DEFINE to be honored.
17543 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17544 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17545 rm -f confdef2sed.sed
17547 # This sed command replaces #undef with comments. This is necessary, for
17548 # example, in the case of _POSIX_SOURCE, which is predefined and required
17549 # on some systems where configure will not decide to define it.
17550 cat >>conftest.undefs <<\_ACEOF
17551 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17552 _ACEOF
17554 # Break up conftest.defines because some shells have a limit on the size
17555 # of here documents, and old seds have small limits too (100 cmds).
17556 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17557 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17558 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17559 echo ' :' >>$CONFIG_STATUS
17560 rm -f conftest.tail
17561 while grep . conftest.defines >/dev/null
17563 # Write a limited-size here document to $tmp/defines.sed.
17564 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17565 # Speed up: don't consider the non `#define' lines.
17566 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17567 # Work around the forget-to-reset-the-flag bug.
17568 echo 't clr' >>$CONFIG_STATUS
17569 echo ': clr' >>$CONFIG_STATUS
17570 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17571 echo 'CEOF
17572 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17573 rm -f $tmp/in
17574 mv $tmp/out $tmp/in
17575 ' >>$CONFIG_STATUS
17576 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17577 rm -f conftest.defines
17578 mv conftest.tail conftest.defines
17579 done
17580 rm -f conftest.defines
17581 echo ' fi # grep' >>$CONFIG_STATUS
17582 echo >>$CONFIG_STATUS
17584 # Break up conftest.undefs because some shells have a limit on the size
17585 # of here documents, and old seds have small limits too (100 cmds).
17586 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17587 rm -f conftest.tail
17588 while grep . conftest.undefs >/dev/null
17590 # Write a limited-size here document to $tmp/undefs.sed.
17591 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17592 # Speed up: don't consider the non `#undef'
17593 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17594 # Work around the forget-to-reset-the-flag bug.
17595 echo 't clr' >>$CONFIG_STATUS
17596 echo ': clr' >>$CONFIG_STATUS
17597 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17598 echo 'CEOF
17599 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17600 rm -f $tmp/in
17601 mv $tmp/out $tmp/in
17602 ' >>$CONFIG_STATUS
17603 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17604 rm -f conftest.undefs
17605 mv conftest.tail conftest.undefs
17606 done
17607 rm -f conftest.undefs
17609 cat >>$CONFIG_STATUS <<\_ACEOF
17610 # Let's still pretend it is `configure' which instantiates (i.e., don't
17611 # use $as_me), people would be surprised to read:
17612 # /* config.h. Generated by config.status. */
17613 if test x"$ac_file" = x-; then
17614 echo "/* Generated by configure. */" >$tmp/config.h
17615 else
17616 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17618 cat $tmp/in >>$tmp/config.h
17619 rm -f $tmp/in
17620 if test x"$ac_file" != x-; then
17621 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17622 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17623 echo "$as_me: $ac_file is unchanged" >&6;}
17624 else
17625 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17627 X"$ac_file" : 'X\(//\)[^/]' \| \
17628 X"$ac_file" : 'X\(//\)$' \| \
17629 X"$ac_file" : 'X\(/\)' \| \
17630 . : '\(.\)' 2>/dev/null ||
17631 echo X"$ac_file" |
17632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17634 /^X\(\/\/\)$/{ s//\1/; q; }
17635 /^X\(\/\).*/{ s//\1/; q; }
17636 s/.*/./; q'`
17637 { if $as_mkdir_p; then
17638 mkdir -p "$ac_dir"
17639 else
17640 as_dir="$ac_dir"
17641 as_dirs=
17642 while test ! -d "$as_dir"; do
17643 as_dirs="$as_dir $as_dirs"
17644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17646 X"$as_dir" : 'X\(//\)[^/]' \| \
17647 X"$as_dir" : 'X\(//\)$' \| \
17648 X"$as_dir" : 'X\(/\)' \| \
17649 . : '\(.\)' 2>/dev/null ||
17650 echo X"$as_dir" |
17651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17653 /^X\(\/\/\)$/{ s//\1/; q; }
17654 /^X\(\/\).*/{ s//\1/; q; }
17655 s/.*/./; q'`
17656 done
17657 test ! -n "$as_dirs" || mkdir $as_dirs
17658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17659 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17660 { (exit 1); exit 1; }; }; }
17662 rm -f $ac_file
17663 mv $tmp/config.h $ac_file
17665 else
17666 cat $tmp/config.h
17667 rm -f $tmp/config.h
17669 # Compute $ac_file's index in $config_headers.
17670 _am_stamp_count=1
17671 for _am_header in $config_headers :; do
17672 case $_am_header in
17673 $ac_file | $ac_file:* )
17674 break ;;
17676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17677 esac
17678 done
17679 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17680 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17681 X$ac_file : 'X\(//\)[^/]' \| \
17682 X$ac_file : 'X\(//\)$' \| \
17683 X$ac_file : 'X\(/\)' \| \
17684 . : '\(.\)' 2>/dev/null ||
17685 echo X$ac_file |
17686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17688 /^X\(\/\/\)$/{ s//\1/; q; }
17689 /^X\(\/\).*/{ s//\1/; q; }
17690 s/.*/./; q'`/stamp-h$_am_stamp_count
17691 done
17692 _ACEOF
17693 cat >>$CONFIG_STATUS <<\_ACEOF
17696 # CONFIG_COMMANDS section.
17698 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17699 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17700 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17701 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17702 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17703 X"$ac_dest" : 'X\(//\)[^/]' \| \
17704 X"$ac_dest" : 'X\(//\)$' \| \
17705 X"$ac_dest" : 'X\(/\)' \| \
17706 . : '\(.\)' 2>/dev/null ||
17707 echo X"$ac_dest" |
17708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17710 /^X\(\/\/\)$/{ s//\1/; q; }
17711 /^X\(\/\).*/{ s//\1/; q; }
17712 s/.*/./; q'`
17713 { if $as_mkdir_p; then
17714 mkdir -p "$ac_dir"
17715 else
17716 as_dir="$ac_dir"
17717 as_dirs=
17718 while test ! -d "$as_dir"; do
17719 as_dirs="$as_dir $as_dirs"
17720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17722 X"$as_dir" : 'X\(//\)[^/]' \| \
17723 X"$as_dir" : 'X\(//\)$' \| \
17724 X"$as_dir" : 'X\(/\)' \| \
17725 . : '\(.\)' 2>/dev/null ||
17726 echo X"$as_dir" |
17727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17729 /^X\(\/\/\)$/{ s//\1/; q; }
17730 /^X\(\/\).*/{ s//\1/; q; }
17731 s/.*/./; q'`
17732 done
17733 test ! -n "$as_dirs" || mkdir $as_dirs
17734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17736 { (exit 1); exit 1; }; }; }
17738 ac_builddir=.
17740 if test "$ac_dir" != .; then
17741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17742 # A "../" for each directory in $ac_dir_suffix.
17743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17744 else
17745 ac_dir_suffix= ac_top_builddir=
17748 case $srcdir in
17749 .) # No --srcdir option. We are building in place.
17750 ac_srcdir=.
17751 if test -z "$ac_top_builddir"; then
17752 ac_top_srcdir=.
17753 else
17754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17755 fi ;;
17756 [\\/]* | ?:[\\/]* ) # Absolute path.
17757 ac_srcdir=$srcdir$ac_dir_suffix;
17758 ac_top_srcdir=$srcdir ;;
17759 *) # Relative path.
17760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17762 esac
17764 # Do not use `cd foo && pwd` to compute absolute paths, because
17765 # the directories may not exist.
17766 case `pwd` in
17767 .) ac_abs_builddir="$ac_dir";;
17769 case "$ac_dir" in
17770 .) ac_abs_builddir=`pwd`;;
17771 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17772 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17773 esac;;
17774 esac
17775 case $ac_abs_builddir in
17776 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17778 case ${ac_top_builddir}. in
17779 .) ac_abs_top_builddir=$ac_abs_builddir;;
17780 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17781 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17782 esac;;
17783 esac
17784 case $ac_abs_builddir in
17785 .) ac_abs_srcdir=$ac_srcdir;;
17787 case $ac_srcdir in
17788 .) ac_abs_srcdir=$ac_abs_builddir;;
17789 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17790 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17791 esac;;
17792 esac
17793 case $ac_abs_builddir in
17794 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17796 case $ac_top_srcdir in
17797 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17798 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17799 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17800 esac;;
17801 esac
17804 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17805 echo "$as_me: executing $ac_dest commands" >&6;}
17806 case $ac_dest in
17807 default-1 )
17808 # Only add multilib support code if we just rebuilt the top-level
17809 # Makefile.
17810 case " $CONFIG_FILES " in
17811 *" Makefile "*)
17812 ac_file=Makefile . ${multi_basedir}/config-ml.in
17814 esac ;;
17815 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17816 # Strip MF so we end up with the name of the file.
17817 mf=`echo "$mf" | sed -e 's/:.*$//'`
17818 # Check whether this is an Automake generated Makefile or not.
17819 # We used to match only the files named `Makefile.in', but
17820 # some people rename them; so instead we look at the file content.
17821 # Grep'ing the first line is not enough: some people post-process
17822 # each Makefile.in and add a new line on top of each file to say so.
17823 # So let's grep whole file.
17824 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17825 dirpart=`(dirname "$mf") 2>/dev/null ||
17826 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17827 X"$mf" : 'X\(//\)[^/]' \| \
17828 X"$mf" : 'X\(//\)$' \| \
17829 X"$mf" : 'X\(/\)' \| \
17830 . : '\(.\)' 2>/dev/null ||
17831 echo X"$mf" |
17832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17834 /^X\(\/\/\)$/{ s//\1/; q; }
17835 /^X\(\/\).*/{ s//\1/; q; }
17836 s/.*/./; q'`
17837 else
17838 continue
17840 # Extract the definition of DEPDIR, am__include, and am__quote
17841 # from the Makefile without running `make'.
17842 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17843 test -z "$DEPDIR" && continue
17844 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17845 test -z "am__include" && continue
17846 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17847 # When using ansi2knr, U may be empty or an underscore; expand it
17848 U=`sed -n 's/^U = //p' < "$mf"`
17849 # Find all dependency output files, they are included files with
17850 # $(DEPDIR) in their names. We invoke sed twice because it is the
17851 # simplest approach to changing $(DEPDIR) to its actual value in the
17852 # expansion.
17853 for file in `sed -n "
17854 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17855 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17856 # Make sure the directory exists.
17857 test -f "$dirpart/$file" && continue
17858 fdir=`(dirname "$file") 2>/dev/null ||
17859 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17860 X"$file" : 'X\(//\)[^/]' \| \
17861 X"$file" : 'X\(//\)$' \| \
17862 X"$file" : 'X\(/\)' \| \
17863 . : '\(.\)' 2>/dev/null ||
17864 echo X"$file" |
17865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17867 /^X\(\/\/\)$/{ s//\1/; q; }
17868 /^X\(\/\).*/{ s//\1/; q; }
17869 s/.*/./; q'`
17870 { if $as_mkdir_p; then
17871 mkdir -p $dirpart/$fdir
17872 else
17873 as_dir=$dirpart/$fdir
17874 as_dirs=
17875 while test ! -d "$as_dir"; do
17876 as_dirs="$as_dir $as_dirs"
17877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17879 X"$as_dir" : 'X\(//\)[^/]' \| \
17880 X"$as_dir" : 'X\(//\)$' \| \
17881 X"$as_dir" : 'X\(/\)' \| \
17882 . : '\(.\)' 2>/dev/null ||
17883 echo X"$as_dir" |
17884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17886 /^X\(\/\/\)$/{ s//\1/; q; }
17887 /^X\(\/\).*/{ s//\1/; q; }
17888 s/.*/./; q'`
17889 done
17890 test ! -n "$as_dirs" || mkdir $as_dirs
17891 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17892 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17893 { (exit 1); exit 1; }; }; }
17895 # echo "creating $dirpart/$file"
17896 echo '# dummy' > "$dirpart/$file"
17897 done
17898 done
17900 libtool )
17902 # See if we are running on zsh, and set the options which allow our
17903 # commands through without removal of \ escapes.
17904 if test -n "${ZSH_VERSION+set}" ; then
17905 setopt NO_GLOB_SUBST
17908 cfgfile="${ofile}T"
17909 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17910 $RM "$cfgfile"
17912 cat <<_LT_EOF >> "$cfgfile"
17913 #! $SHELL
17915 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17916 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17918 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17920 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17921 # 2006, 2007 Free Software Foundation, Inc.
17923 # This file is part of GNU Libtool:
17924 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17926 # This program is free software; you can redistribute it and/or modify
17927 # it under the terms of the GNU General Public License as published by
17928 # the Free Software Foundation; either version 2 of the License, or
17929 # (at your option) any later version.
17931 # This program is distributed in the hope that it will be useful, but
17932 # WITHOUT ANY WARRANTY; without even the implied warranty of
17933 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17934 # General Public License for more details.
17936 # You should have received a copy of the GNU General Public License
17937 # along with this program; if not, a copy can be downloaded from
17938 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17939 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17940 # MA 02110-1301, USA.
17942 # As a special exception to the GNU General Public License, if you
17943 # distribute this file as part of a program that contains a
17944 # configuration script generated by Autoconf, you may include it under
17945 # the same distribution terms that you use for the rest of that program.
17948 # The names of the tagged configurations supported by this script.
17949 available_tags="CXX "
17951 # ### BEGIN LIBTOOL CONFIG
17953 # Which release of libtool.m4 was used?
17954 macro_version=$macro_version
17955 macro_revision=$macro_revision
17957 # Whether or not to build shared libraries.
17958 build_libtool_libs=$enable_shared
17960 # Whether or not to build static libraries.
17961 build_old_libs=$enable_static
17963 # What type of objects to build.
17964 pic_mode=$pic_mode
17966 # Whether or not to optimize for fast installation.
17967 fast_install=$enable_fast_install
17969 # The host system.
17970 host_alias=$host_alias
17971 host=$host
17972 host_os=$host_os
17974 # The build system.
17975 build_alias=$build_alias
17976 build=$build
17977 build_os=$build_os
17979 # A sed program that does not truncate output.
17980 SED=$lt_SED
17982 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17983 Xsed="\$SED -e 1s/^X//"
17985 # A grep program that handles long lines.
17986 GREP=$lt_GREP
17988 # An ERE matcher.
17989 EGREP=$lt_EGREP
17991 # A literal string matcher.
17992 FGREP=$lt_FGREP
17994 # A BSD- or MS-compatible name lister.
17995 NM=$lt_NM
17997 # Whether we need soft or hard links.
17998 LN_S=$lt_LN_S
18000 # What is the maximum length of a command?
18001 max_cmd_len=$max_cmd_len
18003 # Object file suffix (normally "o").
18004 objext=$ac_objext
18006 # Executable file suffix (normally "").
18007 exeext=$exeext
18009 # whether the shell understands "unset".
18010 lt_unset=$lt_unset
18012 # turn spaces into newlines.
18013 SP2NL=$lt_lt_SP2NL
18015 # turn newlines into spaces.
18016 NL2SP=$lt_lt_NL2SP
18018 # How to create reloadable object files.
18019 reload_flag=$lt_reload_flag
18020 reload_cmds=$lt_reload_cmds
18022 # Method to check whether dependent libraries are shared objects.
18023 deplibs_check_method=$lt_deplibs_check_method
18025 # Command to use when deplibs_check_method == "file_magic".
18026 file_magic_cmd=$lt_file_magic_cmd
18028 # The archiver.
18029 AR=$lt_AR
18030 AR_FLAGS=$lt_AR_FLAGS
18032 # A symbol stripping program.
18033 STRIP=$lt_STRIP
18035 # Commands used to install an old-style archive.
18036 RANLIB=$lt_RANLIB
18037 old_postinstall_cmds=$lt_old_postinstall_cmds
18038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18040 # A C compiler.
18041 LTCC=$lt_CC
18043 # LTCC compiler flags.
18044 LTCFLAGS=$lt_CFLAGS
18046 # Take the output of nm and produce a listing of raw symbols and C names.
18047 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18049 # Transform the output of nm in a proper C declaration.
18050 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18052 # Transform the output of nm in a C name address pair.
18053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18055 # The name of the directory that contains temporary libtool files.
18056 objdir=$objdir
18058 # Shell to use when invoking shell scripts.
18059 SHELL=$lt_SHELL
18061 # An echo program that does not interpret backslashes.
18062 ECHO=$lt_ECHO
18064 # Used to examine libraries when file_magic_cmd begins with "file".
18065 MAGIC_CMD=$MAGIC_CMD
18067 # Must we lock files when doing compilation?
18068 need_locks=$lt_need_locks
18070 # Old archive suffix (normally "a").
18071 libext=$libext
18073 # Shared library suffix (normally ".so").
18074 shrext_cmds=$lt_shrext_cmds
18076 # The commands to extract the exported symbol list from a shared archive.
18077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18079 # Variables whose values should be saved in libtool wrapper scripts and
18080 # restored at link time.
18081 variables_saved_for_relink=$lt_variables_saved_for_relink
18083 # Do we need the "lib" prefix for modules?
18084 need_lib_prefix=$need_lib_prefix
18086 # Do we need a version for libraries?
18087 need_version=$need_version
18089 # Library versioning type.
18090 version_type=$version_type
18092 # Shared library runtime path variable.
18093 runpath_var=$runpath_var
18095 # Shared library path variable.
18096 shlibpath_var=$shlibpath_var
18098 # Is shlibpath searched before the hard-coded library search path?
18099 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18101 # Format of library name prefix.
18102 libname_spec=$lt_libname_spec
18104 # List of archive names. First name is the real one, the rest are links.
18105 # The last name is the one that the linker finds with -lNAME
18106 library_names_spec=$lt_library_names_spec
18108 # The coded name of the library, if different from the real name.
18109 soname_spec=$lt_soname_spec
18111 # Command to use after installation of a shared archive.
18112 postinstall_cmds=$lt_postinstall_cmds
18114 # Command to use after uninstallation of a shared archive.
18115 postuninstall_cmds=$lt_postuninstall_cmds
18117 # Commands used to finish a libtool library installation in a directory.
18118 finish_cmds=$lt_finish_cmds
18120 # As "finish_cmds", except a single script fragment to be evaled but
18121 # not shown.
18122 finish_eval=$lt_finish_eval
18124 # Whether we should hardcode library paths into libraries.
18125 hardcode_into_libs=$hardcode_into_libs
18127 # Compile-time system search path for libraries.
18128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18130 # Run-time system search path for libraries.
18131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18133 # Whether dlopen is supported.
18134 dlopen_support=$enable_dlopen
18136 # Whether dlopen of programs is supported.
18137 dlopen_self=$enable_dlopen_self
18139 # Whether dlopen of statically linked programs is supported.
18140 dlopen_self_static=$enable_dlopen_self_static
18142 # Commands to strip libraries.
18143 old_striplib=$lt_old_striplib
18144 striplib=$lt_striplib
18147 # The linker used to build libraries.
18148 LD=$lt_LD
18150 # Commands used to build an old-style archive.
18151 old_archive_cmds=$lt_old_archive_cmds
18153 # A language specific compiler.
18154 CC=$lt_compiler
18156 # Is the compiler the GNU compiler?
18157 with_gcc=$GCC
18159 # Compiler flag to turn off builtin functions.
18160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18162 # How to pass a linker flag through the compiler.
18163 wl=$lt_lt_prog_compiler_wl
18165 # Additional compiler flags for building library objects.
18166 pic_flag=$lt_lt_prog_compiler_pic
18168 # Compiler flag to prevent dynamic linking.
18169 link_static_flag=$lt_lt_prog_compiler_static
18171 # Does compiler simultaneously support -c and -o options?
18172 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18174 # Whether or not to add -lc for building shared libraries.
18175 build_libtool_need_lc=$archive_cmds_need_lc
18177 # Whether or not to disallow shared libs when runtime libs are static.
18178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18180 # Compiler flag to allow reflexive dlopens.
18181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18183 # Compiler flag to generate shared objects directly from archives.
18184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18186 # Whether the compiler copes with passing no objects directly.
18187 compiler_needs_object=$lt_compiler_needs_object
18189 # Create an old-style archive from a shared archive.
18190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18192 # Create a temporary old-style archive to link instead of a shared archive.
18193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18195 # Commands used to build a shared archive.
18196 archive_cmds=$lt_archive_cmds
18197 archive_expsym_cmds=$lt_archive_expsym_cmds
18199 # Commands used to build a loadable module if different from building
18200 # a shared archive.
18201 module_cmds=$lt_module_cmds
18202 module_expsym_cmds=$lt_module_expsym_cmds
18204 # Whether we are building with GNU ld or not.
18205 with_gnu_ld=$lt_with_gnu_ld
18207 # Flag that allows shared libraries with undefined symbols to be built.
18208 allow_undefined_flag=$lt_allow_undefined_flag
18210 # Flag that enforces no undefined symbols.
18211 no_undefined_flag=$lt_no_undefined_flag
18213 # Flag to hardcode \$libdir into a binary during linking.
18214 # This must work even if \$libdir does not exist
18215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18217 # If ld is used when linking, flag to hardcode \$libdir into a binary
18218 # during linking. This must work even if \$libdir does not exist.
18219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18221 # Whether we need a single "-rpath" flag with a separated argument.
18222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18225 # DIR into the resulting binary.
18226 hardcode_direct=$hardcode_direct
18228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18229 # DIR into the resulting binary and the resulting library dependency is
18230 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18231 # library is relocated.
18232 hardcode_direct_absolute=$hardcode_direct_absolute
18234 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18235 # into the resulting binary.
18236 hardcode_minus_L=$hardcode_minus_L
18238 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18239 # into the resulting binary.
18240 hardcode_shlibpath_var=$hardcode_shlibpath_var
18242 # Set to "yes" if building a shared library automatically hardcodes DIR
18243 # into the library and all subsequent libraries and executables linked
18244 # against it.
18245 hardcode_automatic=$hardcode_automatic
18247 # Set to yes if linker adds runtime paths of dependent libraries
18248 # to runtime path list.
18249 inherit_rpath=$inherit_rpath
18251 # Whether libtool must link a program against all its dependency libraries.
18252 link_all_deplibs=$link_all_deplibs
18254 # Fix the shell variable \$srcfile for the compiler.
18255 fix_srcfile_path=$lt_fix_srcfile_path
18257 # Set to "yes" if exported symbols are required.
18258 always_export_symbols=$always_export_symbols
18260 # The commands to list exported symbols.
18261 export_symbols_cmds=$lt_export_symbols_cmds
18263 # Symbols that should not be listed in the preloaded symbols.
18264 exclude_expsyms=$lt_exclude_expsyms
18266 # Symbols that must always be exported.
18267 include_expsyms=$lt_include_expsyms
18269 # Commands necessary for linking programs (against libraries) with templates.
18270 prelink_cmds=$lt_prelink_cmds
18272 # Specify filename containing input files.
18273 file_list_spec=$lt_file_list_spec
18275 # How to hardcode a shared library path into an executable.
18276 hardcode_action=$hardcode_action
18278 # Dependencies to place before and after the objects being linked to
18279 # create a shared library.
18280 predep_objects=$lt_predep_objects
18281 postdep_objects=$lt_postdep_objects
18282 predeps=$lt_predeps
18283 postdeps=$lt_postdeps
18285 # The library search path used internally by the compiler when linking
18286 # a shared library.
18287 compiler_lib_search_path=$lt_compiler_lib_search_path
18289 # ### END LIBTOOL CONFIG
18291 _LT_EOF
18293 case $host_os in
18294 aix3*)
18295 cat <<\_LT_EOF >> "$cfgfile"
18296 # AIX sometimes has problems with the GCC collect2 program. For some
18297 # reason, if we set the COLLECT_NAMES environment variable, the problems
18298 # vanish in a puff of smoke.
18299 if test "X${COLLECT_NAMES+set}" != Xset; then
18300 COLLECT_NAMES=
18301 export COLLECT_NAMES
18303 _LT_EOF
18305 esac
18308 ltmain="$ac_aux_dir/ltmain.sh"
18311 # We use sed instead of cat because bash on DJGPP gets confused if
18312 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18313 # text mode, it properly converts lines to CR/LF. This bash problem
18314 # is reportedly fixed, but why not run on old versions too?
18315 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18316 || (rm -f "$cfgfile"; exit 1)
18318 case $xsi_shell in
18319 yes)
18320 cat << \_LT_EOF >> "$cfgfile"
18321 # func_dirname file append nondir_replacement
18322 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18323 # otherwise set result to NONDIR_REPLACEMENT.
18324 func_dirname ()
18326 case ${1} in
18327 */*) func_dirname_result="${1%/*}${2}" ;;
18328 * ) func_dirname_result="${3}" ;;
18329 esac
18332 # func_basename file
18333 func_basename ()
18335 func_basename_result="${1##*/}"
18338 # func_stripname prefix suffix name
18339 # strip PREFIX and SUFFIX off of NAME.
18340 # PREFIX and SUFFIX must not contain globbing or regex special
18341 # characters, hashes, percent signs, but SUFFIX may contain a leading
18342 # dot (in which case that matches only a dot).
18343 func_stripname ()
18345 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18346 # positional parameters, so assign one to ordinary parameter first.
18347 func_stripname_result=${3}
18348 func_stripname_result=${func_stripname_result#"${1}"}
18349 func_stripname_result=${func_stripname_result%"${2}"}
18352 # func_opt_split
18353 func_opt_split ()
18355 func_opt_split_opt=${1%%=*}
18356 func_opt_split_arg=${1#*=}
18359 # func_lo2o object
18360 func_lo2o ()
18362 case ${1} in
18363 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18364 *) func_lo2o_result=${1} ;;
18365 esac
18367 _LT_EOF
18369 *) # Bourne compatible functions.
18370 cat << \_LT_EOF >> "$cfgfile"
18371 # func_dirname file append nondir_replacement
18372 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18373 # otherwise set result to NONDIR_REPLACEMENT.
18374 func_dirname ()
18376 # Extract subdirectory from the argument.
18377 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18378 if test "X$func_dirname_result" = "X${1}"; then
18379 func_dirname_result="${3}"
18380 else
18381 func_dirname_result="$func_dirname_result${2}"
18385 # func_basename file
18386 func_basename ()
18388 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18391 # func_stripname prefix suffix name
18392 # strip PREFIX and SUFFIX off of NAME.
18393 # PREFIX and SUFFIX must not contain globbing or regex special
18394 # characters, hashes, percent signs, but SUFFIX may contain a leading
18395 # dot (in which case that matches only a dot).
18396 # func_strip_suffix prefix name
18397 func_stripname ()
18399 case ${2} in
18400 .*) func_stripname_result=`$ECHO "X${3}" \
18401 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18402 *) func_stripname_result=`$ECHO "X${3}" \
18403 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18404 esac
18407 # sed scripts:
18408 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18409 my_sed_long_arg='1s/^-[^=]*=//'
18411 # func_opt_split
18412 func_opt_split ()
18414 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18415 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18418 # func_lo2o object
18419 func_lo2o ()
18421 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18423 _LT_EOF
18424 esac
18426 case $lt_shell_append in
18427 yes)
18428 cat << \_LT_EOF >> "$cfgfile"
18430 # func_append var value
18431 # Append VALUE to the end of shell variable VAR.
18432 func_append ()
18434 eval "$1+=\$2"
18436 _LT_EOF
18439 cat << \_LT_EOF >> "$cfgfile"
18441 # func_append var value
18442 # Append VALUE to the end of shell variable VAR.
18443 func_append ()
18445 eval "$1=\$$1\$2"
18447 _LT_EOF
18449 esac
18452 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18453 || (rm -f "$cfgfile"; exit 1)
18455 mv -f "$cfgfile" "$ofile" ||
18456 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18457 chmod +x "$ofile"
18460 cat <<_LT_EOF >> "$ofile"
18462 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18464 # The linker used to build libraries.
18465 LD=$lt_LD_CXX
18467 # Commands used to build an old-style archive.
18468 old_archive_cmds=$lt_old_archive_cmds_CXX
18470 # A language specific compiler.
18471 CC=$lt_compiler_CXX
18473 # Is the compiler the GNU compiler?
18474 with_gcc=$GCC_CXX
18476 # Compiler flag to turn off builtin functions.
18477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18479 # How to pass a linker flag through the compiler.
18480 wl=$lt_lt_prog_compiler_wl_CXX
18482 # Additional compiler flags for building library objects.
18483 pic_flag=$lt_lt_prog_compiler_pic_CXX
18485 # Compiler flag to prevent dynamic linking.
18486 link_static_flag=$lt_lt_prog_compiler_static_CXX
18488 # Does compiler simultaneously support -c and -o options?
18489 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18491 # Whether or not to add -lc for building shared libraries.
18492 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18494 # Whether or not to disallow shared libs when runtime libs are static.
18495 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18497 # Compiler flag to allow reflexive dlopens.
18498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18500 # Compiler flag to generate shared objects directly from archives.
18501 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18503 # Whether the compiler copes with passing no objects directly.
18504 compiler_needs_object=$lt_compiler_needs_object_CXX
18506 # Create an old-style archive from a shared archive.
18507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18509 # Create a temporary old-style archive to link instead of a shared archive.
18510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18512 # Commands used to build a shared archive.
18513 archive_cmds=$lt_archive_cmds_CXX
18514 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18516 # Commands used to build a loadable module if different from building
18517 # a shared archive.
18518 module_cmds=$lt_module_cmds_CXX
18519 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18521 # Whether we are building with GNU ld or not.
18522 with_gnu_ld=$lt_with_gnu_ld_CXX
18524 # Flag that allows shared libraries with undefined symbols to be built.
18525 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18527 # Flag that enforces no undefined symbols.
18528 no_undefined_flag=$lt_no_undefined_flag_CXX
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18534 # If ld is used when linking, flag to hardcode \$libdir into a binary
18535 # during linking. This must work even if \$libdir does not exist.
18536 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18538 # Whether we need a single "-rpath" flag with a separated argument.
18539 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18541 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18542 # DIR into the resulting binary.
18543 hardcode_direct=$hardcode_direct_CXX
18545 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18546 # DIR into the resulting binary and the resulting library dependency is
18547 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18548 # library is relocated.
18549 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18551 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18552 # into the resulting binary.
18553 hardcode_minus_L=$hardcode_minus_L_CXX
18555 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18556 # into the resulting binary.
18557 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18559 # Set to "yes" if building a shared library automatically hardcodes DIR
18560 # into the library and all subsequent libraries and executables linked
18561 # against it.
18562 hardcode_automatic=$hardcode_automatic_CXX
18564 # Set to yes if linker adds runtime paths of dependent libraries
18565 # to runtime path list.
18566 inherit_rpath=$inherit_rpath_CXX
18568 # Whether libtool must link a program against all its dependency libraries.
18569 link_all_deplibs=$link_all_deplibs_CXX
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18574 # Set to "yes" if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_CXX
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18580 # Symbols that should not be listed in the preloaded symbols.
18581 exclude_expsyms=$lt_exclude_expsyms_CXX
18583 # Symbols that must always be exported.
18584 include_expsyms=$lt_include_expsyms_CXX
18586 # Commands necessary for linking programs (against libraries) with templates.
18587 prelink_cmds=$lt_prelink_cmds_CXX
18589 # Specify filename containing input files.
18590 file_list_spec=$lt_file_list_spec_CXX
18592 # How to hardcode a shared library path into an executable.
18593 hardcode_action=$hardcode_action_CXX
18595 # Dependencies to place before and after the objects being linked to
18596 # create a shared library.
18597 predep_objects=$lt_predep_objects_CXX
18598 postdep_objects=$lt_postdep_objects_CXX
18599 predeps=$lt_predeps_CXX
18600 postdeps=$lt_postdeps_CXX
18602 # The library search path used internally by the compiler when linking
18603 # a shared library.
18604 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18606 # ### END LIBTOOL TAG CONFIG: CXX
18607 _LT_EOF
18610 esac
18611 done
18612 _ACEOF
18614 cat >>$CONFIG_STATUS <<\_ACEOF
18616 { (exit 0); exit 0; }
18617 _ACEOF
18618 chmod +x $CONFIG_STATUS
18619 ac_clean_files=$ac_clean_files_save
18622 # configure is writing to config.log, and then calls config.status.
18623 # config.status does its own redirection, appending to config.log.
18624 # Unfortunately, on DOS this fails, as config.log is still kept open
18625 # by configure, so config.status won't be able to write to it; its
18626 # output is simply discarded. So we exec the FD to /dev/null,
18627 # effectively closing config.log, so it can be properly (re)opened and
18628 # appended to by config.status. When coming back to configure, we
18629 # need to make the FD available again.
18630 if test "$no_create" != yes; then
18631 ac_cs_success=:
18632 ac_config_status_args=
18633 test "$silent" = yes &&
18634 ac_config_status_args="$ac_config_status_args --quiet"
18635 exec 5>/dev/null
18636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18637 exec 5>>config.log
18638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18639 # would make configure fail if this is the last instruction.
18640 $ac_cs_success || { (exit 1); exit 1; }