2007-06-14 Paolo Bonzini <bonzini@gnu.org>
[binutils.git] / ld / configure
blob3c405d28caecfc5a430ea252a7a7b49124087b45
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="ldmain.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files='TDIRS'
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_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
924 # Report the --help message.
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
932 Usage: $0 [OPTION]... [VAR=VALUE]...
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
937 Defaults for the options are specified in brackets.
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950 _ACEOF
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
964 For better control, use the options below.
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
981 cat <<\_ACEOF
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
995 if test -n "$ac_init_help"; then
997 cat <<\_ACEOF
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-targets alternative target configurations
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1013 --enable-werror treat compile warnings as errors
1014 --enable-build-warnings enable build-time compiler warnings
1015 --disable-nls do not use Native Language Support
1016 --enable-maintainer-mode enable make rules and dependencies not useful
1017 (and sometimes confusing) to the casual installer
1019 Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1022 --with-pic try to use only PIC/non-PIC objects [default=use
1023 both]
1024 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1025 --with-lib-path=dir1:dir2... set default LIB_PATH
1026 --with-sysroot=DIR Search for usr/lib et al within DIR.
1028 Some influential environment variables:
1029 CC C compiler command
1030 CFLAGS C compiler flags
1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1032 nonstandard directory <lib dir>
1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034 headers in a nonstandard directory <include dir>
1035 CPP C preprocessor
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1040 _ACEOF
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 cd $ac_popdir
1129 done
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140 exit 0
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59. Invocation command line was
1150 $ $0 $@
1152 _ACEOF
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176 _ASUNAME
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184 done
1186 } >&5
1188 cat >&5 <<_ACEOF
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1195 _ACEOF
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1210 for ac_arg
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1243 esac
1244 done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log. We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1257 echo
1259 cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 esac;
1280 echo
1282 cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1328 for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1338 # Predefined preprocessor variables.
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1381 done
1383 if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1394 else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424 echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426 echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1442 done
1443 if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1476 ac_aux_dir=
1477 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1478 if test -f $ac_dir/install-sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 break
1482 elif test -f $ac_dir/install.sh; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 break
1486 elif test -f $ac_dir/shtool; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/shtool install -c"
1489 break
1491 done
1492 if test -z "$ac_aux_dir"; then
1493 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1494 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1495 { (exit 1); exit 1; }; }
1497 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1498 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1499 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501 # Make sure we can run config.sub.
1502 $ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1507 echo "$as_me:$LINENO: checking build system type" >&5
1508 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509 if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512 ac_cv_build_alias=$build_alias
1513 test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515 test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526 echo "${ECHO_T}$ac_cv_build" >&6
1527 build=$ac_cv_build
1528 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533 echo "$as_me:$LINENO: checking host system type" >&5
1534 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535 if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 ac_cv_host_alias=$host_alias
1539 test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1547 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548 echo "${ECHO_T}$ac_cv_host" >&6
1549 host=$ac_cv_host
1550 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 echo "$as_me:$LINENO: checking target system type" >&5
1556 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557 if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 ac_cv_target_alias=$target_alias
1561 test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570 echo "${ECHO_T}$ac_cv_target" >&6
1571 target=$ac_cv_target
1572 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 # The aliases save the names the user supplied, while $host etc.
1578 # will get canonicalized.
1579 test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1581 NONENONEs,x,x, &&
1582 program_prefix=${target_alias}-
1583 ac_ext=c
1584 ac_cpp='$CPP $CPPFLAGS'
1585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588 if test -n "$ac_tool_prefix"; then
1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1610 done
1611 done
1615 CC=$ac_cv_prog_CC
1616 if test -n "$CC"; then
1617 echo "$as_me:$LINENO: result: $CC" >&5
1618 echo "${ECHO_T}$CC" >&6
1619 else
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1625 if test -z "$ac_cv_prog_CC"; then
1626 ac_ct_CC=$CC
1627 # Extract the first word of "gcc", so it can be a program name with args.
1628 set dummy gcc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634 if test -n "$ac_ct_CC"; then
1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_ac_ct_CC="gcc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 break 2
1648 done
1649 done
1653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1654 if test -n "$ac_ct_CC"; then
1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1656 echo "${ECHO_T}$ac_ct_CC" >&6
1657 else
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1662 CC=$ac_ct_CC
1663 else
1664 CC="$ac_cv_prog_CC"
1667 if test -z "$CC"; then
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}cc; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1690 done
1691 done
1695 CC=$ac_cv_prog_CC
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1699 else
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1705 if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="cc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1728 done
1729 done
1733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 CC=$ac_ct_CC
1743 else
1744 CC="$ac_cv_prog_CC"
1748 if test -z "$CC"; then
1749 # Extract the first word of "cc", so it can be a program name with args.
1750 set dummy cc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 else
1759 ac_prog_rejected=no
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1768 ac_prog_rejected=yes
1769 continue
1771 ac_cv_prog_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1775 done
1776 done
1778 if test $ac_prog_rejected = yes; then
1779 # We found a bogon in the path, so make sure we never use it.
1780 set dummy $ac_cv_prog_CC
1781 shift
1782 if test $# != 0; then
1783 # We chose a different compiler from the bogus one.
1784 # However, it has the same basename, so the bogon will be chosen
1785 # first if we set CC to just the basename; use the full file name.
1786 shift
1787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1792 CC=$ac_cv_prog_CC
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1802 if test -z "$CC"; then
1803 if test -n "$ac_tool_prefix"; then
1804 for ac_prog in cl
1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1827 done
1828 done
1832 CC=$ac_cv_prog_CC
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1836 else
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1841 test -n "$CC" && break
1842 done
1844 if test -z "$CC"; then
1845 ac_ct_CC=$CC
1846 for ac_prog in cl
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="$ac_prog"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1869 done
1870 done
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1878 else
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1883 test -n "$ac_ct_CC" && break
1884 done
1886 CC=$ac_ct_CC
1892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: no acceptable C compiler found in \$PATH
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1898 # Provide some information about the compiler.
1899 echo "$as_me:$LINENO:" \
1900 "checking for C compiler version" >&5
1901 ac_compiler=`set X $ac_compile; echo $2`
1902 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1903 (eval $ac_compiler --version </dev/null >&5) 2>&5
1904 ac_status=$?
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1908 (eval $ac_compiler -v </dev/null >&5) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }
1912 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1913 (eval $ac_compiler -V </dev/null >&5) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1918 cat >conftest.$ac_ext <<_ACEOF
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1926 main ()
1930 return 0;
1932 _ACEOF
1933 ac_clean_files_save=$ac_clean_files
1934 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1935 # Try to create an executable without -o first, disregard a.out.
1936 # It will help us diagnose broken compilers, and finding out an intuition
1937 # of exeext.
1938 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1939 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1940 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1941 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1942 (eval $ac_link_default) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 # Find the output, starting from the most likely. This scheme is
1947 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1948 # resort.
1950 # Be careful to initialize this variable, since it used to be cached.
1951 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1952 ac_cv_exeext=
1953 # b.out is created by i960 compilers.
1954 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956 test -f "$ac_file" || continue
1957 case $ac_file in
1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960 conftest.$ac_ext )
1961 # This is the source file.
1963 [ab].out )
1964 # We found the default executable, but exeext='' is most
1965 # certainly right.
1966 break;;
1967 *.* )
1968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 # FIXME: I believe we export ac_cv_exeext for Libtool,
1970 # but it would be cool to find out if it's true. Does anybody
1971 # maintain Libtool? --akim.
1972 export ac_cv_exeext
1973 break;;
1975 break;;
1976 esac
1977 done
1978 else
1979 echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1982 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: C compiler cannot create executables
1985 See \`config.log' for more details." >&2;}
1986 { (exit 77); exit 77; }; }
1989 ac_exeext=$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_file" >&5
1991 echo "${ECHO_T}$ac_file" >&6
1993 # Check the compiler produces executables we can run. If not, either
1994 # the compiler is broken, or we cross compile.
1995 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1998 # If not cross compiling, check that we can run a simple program.
1999 if test "$cross_compiling" != yes; then
2000 if { ac_try='./$ac_file'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2006 cross_compiling=no
2007 else
2008 if test "$cross_compiling" = maybe; then
2009 cross_compiling=yes
2010 else
2011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2012 If you meant to cross compile, use \`--host'.
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot run C compiled programs.
2015 If you meant to cross compile, use \`--host'.
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2021 echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6
2024 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2025 ac_clean_files=$ac_clean_files_save
2026 # Check the compiler produces executables we can run. If not, either
2027 # the compiler is broken, or we cross compile.
2028 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2029 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2030 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2031 echo "${ECHO_T}$cross_compiling" >&6
2033 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2034 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2036 (eval $ac_link) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2042 # work properly (i.e., refer to `conftest.exe'), while it won't with
2043 # `rm'.
2044 for ac_file in conftest.exe conftest conftest.*; do
2045 test -f "$ac_file" || continue
2046 case $ac_file in
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 export ac_cv_exeext
2050 break;;
2051 * ) break;;
2052 esac
2053 done
2054 else
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2062 rm -f conftest$ac_cv_exeext
2063 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2064 echo "${ECHO_T}$ac_cv_exeext" >&6
2066 rm -f conftest.$ac_ext
2067 EXEEXT=$ac_cv_exeext
2068 ac_exeext=$EXEEXT
2069 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2070 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2071 if test "${ac_cv_objext+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 cat >conftest.$ac_ext <<_ACEOF
2075 /* confdefs.h. */
2076 _ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2082 main ()
2086 return 0;
2088 _ACEOF
2089 rm -f conftest.o conftest.obj
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2096 case $ac_file in
2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2099 break;;
2100 esac
2101 done
2102 else
2103 echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2116 echo "${ECHO_T}$ac_cv_objext" >&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$OBJEXT
2119 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2120 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2121 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h. */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2132 main ()
2134 #ifndef __GNUC__
2135 choke me
2136 #endif
2139 return 0;
2141 _ACEOF
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_compiler_gnu=yes
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2169 ac_compiler_gnu=no
2171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2175 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2176 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2177 GCC=`test $ac_compiler_gnu = yes && echo yes`
2178 ac_test_CFLAGS=${CFLAGS+set}
2179 ac_save_CFLAGS=$CFLAGS
2180 CFLAGS="-g"
2181 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2182 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2183 if test "${ac_cv_prog_cc_g+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 cat >conftest.$ac_ext <<_ACEOF
2187 /* confdefs.h. */
2188 _ACEOF
2189 cat confdefs.h >>conftest.$ac_ext
2190 cat >>conftest.$ac_ext <<_ACEOF
2191 /* end confdefs.h. */
2194 main ()
2198 return 0;
2200 _ACEOF
2201 rm -f conftest.$ac_objext
2202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203 (eval $ac_compile) 2>conftest.er1
2204 ac_status=$?
2205 grep -v '^ *+' conftest.er1 >conftest.err
2206 rm -f conftest.er1
2207 cat conftest.err >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); } &&
2210 { ac_try='test -z "$ac_c_werror_flag"
2211 || test ! -s conftest.err'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 ac_cv_prog_cc_g=yes
2224 else
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2228 ac_cv_prog_cc_g=no
2230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2234 if test "$ac_test_CFLAGS" = set; then
2235 CFLAGS=$ac_save_CFLAGS
2236 elif test $ac_cv_prog_cc_g = yes; then
2237 if test "$GCC" = yes; then
2238 CFLAGS="-g -O2"
2239 else
2240 CFLAGS="-g"
2242 else
2243 if test "$GCC" = yes; then
2244 CFLAGS="-O2"
2245 else
2246 CFLAGS=
2249 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2250 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2251 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 ac_cv_prog_cc_stdc=no
2255 ac_save_CC=$CC
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 #include <stdarg.h>
2263 #include <stdio.h>
2264 #include <sys/types.h>
2265 #include <sys/stat.h>
2266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267 struct buf { int x; };
2268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269 static char *e (p, i)
2270 char **p;
2271 int i;
2273 return p[i];
2275 static char *f (char * (*g) (char **, int), char **p, ...)
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2286 function prototypes and stuff, but not '\xHH' hex character constants.
2287 These don't provoke an error unfortunately, instead are silently treated
2288 as 'x'. The following induces an error, until -std1 is added to get
2289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2290 array size at least. It's necessary to write '\x00'==0 to get something
2291 that's true only with -std1. */
2292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2294 int test (int i, double x);
2295 struct s1 {int (*f) (int a);};
2296 struct s2 {int (*f) (double a);};
2297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2298 int argc;
2299 char **argv;
2301 main ()
2303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2305 return 0;
2307 _ACEOF
2308 # Don't try gcc -ansi; that turns off useful extensions and
2309 # breaks some systems' header files.
2310 # AIX -qlanglvl=ansi
2311 # Ultrix and OSF/1 -std1
2312 # HP-UX 10.20 and later -Ae
2313 # HP-UX older versions -Aa -D_HPUX_SOURCE
2314 # SVR4 -Xc -D__EXTENSIONS__
2315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2317 CC="$ac_save_CC $ac_arg"
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2321 ac_status=$?
2322 grep -v '^ *+' conftest.er1 >conftest.err
2323 rm -f conftest.er1
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 ac_cv_prog_cc_stdc=$ac_arg
2341 break
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.err conftest.$ac_objext
2348 done
2349 rm -f conftest.$ac_ext conftest.$ac_objext
2350 CC=$ac_save_CC
2354 case "x$ac_cv_prog_cc_stdc" in
2355 x|xno)
2356 echo "$as_me:$LINENO: result: none needed" >&5
2357 echo "${ECHO_T}none needed" >&6 ;;
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2360 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2361 CC="$CC $ac_cv_prog_cc_stdc" ;;
2362 esac
2364 # Some people use a C++ compiler to compile C. Since we use `exit',
2365 # in C++ we need to declare it. In case someone uses the same compiler
2366 # for both compiling C and C++ we need to have the C++ compiler decide
2367 # the declaration of exit, since it's the most demanding environment.
2368 cat >conftest.$ac_ext <<_ACEOF
2369 #ifndef __cplusplus
2370 choke me
2371 #endif
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 for ac_declaration in \
2396 '' \
2397 'extern "C" void std::exit (int) throw (); using std::exit;' \
2398 'extern "C" void std::exit (int); using std::exit;' \
2399 'extern "C" void exit (int) throw ();' \
2400 'extern "C" void exit (int);' \
2401 'void exit (int);'
2403 cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2409 $ac_declaration
2410 #include <stdlib.h>
2412 main ()
2414 exit (42);
2416 return 0;
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 continue
2448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2455 $ac_declaration
2457 main ()
2459 exit (42);
2461 return 0;
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>conftest.er1
2467 ac_status=$?
2468 grep -v '^ *+' conftest.er1 >conftest.err
2469 rm -f conftest.er1
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -z "$ac_c_werror_flag"
2474 || test ! -s conftest.err'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 break
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 done
2494 rm -f conftest*
2495 if test -n "$ac_declaration"; then
2496 echo '#ifdef __cplusplus' >>confdefs.h
2497 echo $ac_declaration >>confdefs.h
2498 echo '#endif' >>confdefs.h
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2515 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2516 if test "${ac_cv_search_strerror+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 ac_func_search_save_LIBS=$LIBS
2520 ac_cv_search_strerror=no
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 #ifdef __cplusplus
2530 extern "C"
2531 #endif
2532 /* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534 char strerror ();
2536 main ()
2538 strerror ();
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.$ac_objext conftest$ac_exeext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest$ac_exeext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 ac_cv_search_strerror="none required"
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 rm -f conftest.err conftest.$ac_objext \
2572 conftest$ac_exeext conftest.$ac_ext
2573 if test "$ac_cv_search_strerror" = no; then
2574 for ac_lib in cposix; do
2575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 #ifdef __cplusplus
2585 extern "C"
2586 #endif
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589 char strerror ();
2591 main ()
2593 strerror ();
2595 return 0;
2597 _ACEOF
2598 rm -f conftest.$ac_objext conftest$ac_exeext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2600 (eval $ac_link) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest$ac_exeext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 ac_cv_search_strerror="-l$ac_lib"
2621 break
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext \
2628 conftest$ac_exeext conftest.$ac_ext
2629 done
2631 LIBS=$ac_func_search_save_LIBS
2633 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2634 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2635 if test "$ac_cv_search_strerror" != no; then
2636 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2641 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2642 am__api_version="1.9"
2643 # Find a good install program. We prefer a C program (faster),
2644 # so one script is as good as another. But avoid the broken or
2645 # incompatible versions:
2646 # SysV /etc/install, /usr/sbin/install
2647 # SunOS /usr/etc/install
2648 # IRIX /sbin/install
2649 # AIX /bin/install
2650 # AmigaOS /C/install, which installs bootblocks on floppy discs
2651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654 # OS/2's system install, which has a completely different semantic
2655 # ./install, which can be erroneously created by make from ./install.sh.
2656 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2657 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2658 if test -z "$INSTALL"; then
2659 if test "${ac_cv_path_install+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668 case $as_dir/ in
2669 ./ | .// | /cC/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2672 /usr/ucb/* ) ;;
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2688 else
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 break 3
2693 done
2694 done
2696 esac
2697 done
2701 if test "${ac_cv_path_install+set}" = set; then
2702 INSTALL=$ac_cv_path_install
2703 else
2704 # As a last resort, use the slow shell script. We don't cache a
2705 # path for INSTALL within a source directory, because that will
2706 # break other packages using the cache if that directory is
2707 # removed, or if the path is relative.
2708 INSTALL=$ac_install_sh
2711 echo "$as_me:$LINENO: result: $INSTALL" >&5
2712 echo "${ECHO_T}$INSTALL" >&6
2714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2715 # It thinks the first close brace ends the variable substitution.
2716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2722 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2723 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2724 # Just in case
2725 sleep 1
2726 echo timestamp > conftest.file
2727 # Do `set' in a subshell so we don't clobber the current shell's
2728 # arguments. Must try -L first in case configure is actually a
2729 # symlink; some systems play weird games with the mod time of symlinks
2730 # (eg FreeBSD returns the mod time of the symlink's containing
2731 # directory).
2732 if (
2733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2734 if test "$*" = "X"; then
2735 # -L didn't work.
2736 set X `ls -t $srcdir/configure conftest.file`
2738 rm -f conftest.file
2739 if test "$*" != "X $srcdir/configure conftest.file" \
2740 && test "$*" != "X conftest.file $srcdir/configure"; then
2742 # If neither matched, then we have a broken ls. This can happen
2743 # if, for instance, CONFIG_SHELL is bash and it inherits a
2744 # broken ls alias from the environment. This has actually
2745 # happened. Such a system could not be considered "sane".
2746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2747 alias in your environment" >&5
2748 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2749 alias in your environment" >&2;}
2750 { (exit 1); exit 1; }; }
2753 test "$2" = conftest.file
2755 then
2756 # Ok.
2758 else
2759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2760 Check your system clock" >&5
2761 echo "$as_me: error: newly created file is older than distributed files!
2762 Check your system clock" >&2;}
2763 { (exit 1); exit 1; }; }
2765 echo "$as_me:$LINENO: result: yes" >&5
2766 echo "${ECHO_T}yes" >&6
2767 test "$program_prefix" != NONE &&
2768 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2769 # Use a double $ so make ignores it.
2770 test "$program_suffix" != NONE &&
2771 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2772 # Double any \ or $. echo might interpret backslashes.
2773 # By default was `s,x,x', remove it if useless.
2774 cat <<\_ACEOF >conftest.sed
2775 s/[\\$]/&&/g;s/;s,x,x,$//
2776 _ACEOF
2777 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2778 rm conftest.sed
2780 # expand $ac_aux_dir to an absolute path
2781 am_aux_dir=`cd $ac_aux_dir && pwd`
2783 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2784 # Use eval to expand $SHELL
2785 if eval "$MISSING --run true"; then
2786 am_missing_run="$MISSING --run "
2787 else
2788 am_missing_run=
2789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2790 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2793 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2794 # We used to keeping the `.' as first argument, in order to
2795 # allow $(mkdir_p) to be used without argument. As in
2796 # $(mkdir_p) $(somedir)
2797 # where $(somedir) is conditionally defined. However this is wrong
2798 # for two reasons:
2799 # 1. if the package is installed by a user who cannot write `.'
2800 # make install will fail,
2801 # 2. the above comment should most certainly read
2802 # $(mkdir_p) $(DESTDIR)$(somedir)
2803 # so it does not work when $(somedir) is undefined and
2804 # $(DESTDIR) is not.
2805 # To support the latter case, we have to write
2806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2807 # so the `.' trick is pointless.
2808 mkdir_p='mkdir -p --'
2809 else
2810 # On NextStep and OpenStep, the `mkdir' command does not
2811 # recognize any option. It will interpret all options as
2812 # directories to create, and then abort because `.' already
2813 # exists.
2814 for d in ./-p ./--version;
2816 test -d $d && rmdir $d
2817 done
2818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2819 if test -f "$ac_aux_dir/mkinstalldirs"; then
2820 mkdir_p='$(mkinstalldirs)'
2821 else
2822 mkdir_p='$(install_sh) -d'
2826 for ac_prog in gawk mawk nawk awk
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_AWK+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2854 AWK=$ac_cv_prog_AWK
2855 if test -n "$AWK"; then
2856 echo "$as_me:$LINENO: result: $AWK" >&5
2857 echo "${ECHO_T}$AWK" >&6
2858 else
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2863 test -n "$AWK" && break
2864 done
2866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 cat >conftest.make <<\_ACEOF
2873 all:
2874 @echo 'ac_maketemp="$(MAKE)"'
2875 _ACEOF
2876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2878 if test -n "$ac_maketemp"; then
2879 eval ac_cv_prog_make_${ac_make}_set=yes
2880 else
2881 eval ac_cv_prog_make_${ac_make}_set=no
2883 rm -f conftest.make
2885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 SET_MAKE=
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2892 SET_MAKE="MAKE=${MAKE-make}"
2895 rm -rf .tst 2>/dev/null
2896 mkdir .tst 2>/dev/null
2897 if test -d .tst; then
2898 am__leading_dot=.
2899 else
2900 am__leading_dot=_
2902 rmdir .tst 2>/dev/null
2904 DEPDIR="${am__leading_dot}deps"
2906 ac_config_commands="$ac_config_commands depfiles"
2909 am_make=${MAKE-make}
2910 cat > confinc << 'END'
2911 am__doit:
2912 @echo done
2913 .PHONY: am__doit
2915 # If we don't find an include directive, just comment out the code.
2916 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2917 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2918 am__include="#"
2919 am__quote=
2920 _am_result=none
2921 # First try GNU make style include.
2922 echo "include confinc" > confmf
2923 # We grep out `Entering directory' and `Leaving directory'
2924 # messages which can occur if `w' ends up in MAKEFLAGS.
2925 # In particular we don't look at `^make:' because GNU make might
2926 # be invoked under some other name (usually "gmake"), in which
2927 # case it prints its new name instead of `make'.
2928 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2929 am__include=include
2930 am__quote=
2931 _am_result=GNU
2933 # Now try BSD make style include.
2934 if test "$am__include" = "#"; then
2935 echo '.include "confinc"' > confmf
2936 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2937 am__include=.include
2938 am__quote="\""
2939 _am_result=BSD
2944 echo "$as_me:$LINENO: result: $_am_result" >&5
2945 echo "${ECHO_T}$_am_result" >&6
2946 rm -f confinc confmf
2948 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2949 if test "${enable_dependency_tracking+set}" = set; then
2950 enableval="$enable_dependency_tracking"
2953 if test "x$enable_dependency_tracking" != xno; then
2954 am_depcomp="$ac_aux_dir/depcomp"
2955 AMDEPBACKSLASH='\'
2959 if test "x$enable_dependency_tracking" != xno; then
2960 AMDEP_TRUE=
2961 AMDEP_FALSE='#'
2962 else
2963 AMDEP_TRUE='#'
2964 AMDEP_FALSE=
2969 # test to see if srcdir already configured
2970 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2971 test -f $srcdir/config.status; then
2972 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2973 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2974 { (exit 1); exit 1; }; }
2977 # test whether we have cygpath
2978 if test -z "$CYGPATH_W"; then
2979 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 CYGPATH_W='cygpath -w'
2981 else
2982 CYGPATH_W=echo
2987 # Define the identity of the package.
2988 PACKAGE=ld
2989 VERSION=${BFD_VERSION}
2992 cat >>confdefs.h <<_ACEOF
2993 #define PACKAGE "$PACKAGE"
2994 _ACEOF
2997 cat >>confdefs.h <<_ACEOF
2998 #define VERSION "$VERSION"
2999 _ACEOF
3001 # Some tools Automake needs.
3003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3017 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3019 # Installed binaries are usually stripped using `strip' when the user
3020 # run `make install-strip'. However `strip' might not be the right
3021 # tool to use in cross-compilation environments, therefore Automake
3022 # will honor the `STRIP' environment variable to overrule this program.
3023 if test "$cross_compiling" != no; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}strip; ac_word=$2
3027 echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_prog_STRIP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 if test -n "$STRIP"; then
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3051 STRIP=$ac_cv_prog_STRIP
3052 if test -n "$STRIP"; then
3053 echo "$as_me:$LINENO: result: $STRIP" >&5
3054 echo "${ECHO_T}$STRIP" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3061 if test -z "$ac_cv_prog_STRIP"; then
3062 ac_ct_STRIP=$STRIP
3063 # Extract the first word of "strip", so it can be a program name with args.
3064 set dummy strip; ac_word=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$ac_ct_STRIP"; then
3071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_ac_ct_STRIP="strip"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3087 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3091 if test -n "$ac_ct_STRIP"; then
3092 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3093 echo "${ECHO_T}$ac_ct_STRIP" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3099 STRIP=$ac_ct_STRIP
3100 else
3101 STRIP="$ac_cv_prog_STRIP"
3105 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3107 # We need awk for the "check" target. The system "awk" is bad on
3108 # some platforms.
3109 # Always define AMTAR for backward compatibility.
3111 AMTAR=${AMTAR-"${am_missing_run}tar"}
3113 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3118 depcc="$CC" am_compiler_list=
3120 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3121 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3122 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3126 # We make a subdir and do the tests there. Otherwise we can end up
3127 # making bogus files that we don't know about and never remove. For
3128 # instance it was reported that on HP-UX the gcc test will end up
3129 # making a dummy file named `D' -- because `-MD' means `put the output
3130 # in D'.
3131 mkdir conftest.dir
3132 # Copy depcomp to subdir because otherwise we won't find it if we're
3133 # using a relative directory.
3134 cp "$am_depcomp" conftest.dir
3135 cd conftest.dir
3136 # We will build objects and dependencies in a subdirectory because
3137 # it helps to detect inapplicable dependency modes. For instance
3138 # both Tru64's cc and ICC support -MD to output dependencies as a
3139 # side effect of compilation, but ICC will put the dependencies in
3140 # the current directory while Tru64 will put them in the object
3141 # directory.
3142 mkdir sub
3144 am_cv_CC_dependencies_compiler_type=none
3145 if test "$am_compiler_list" = ""; then
3146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3148 for depmode in $am_compiler_list; do
3149 # Setup a source with many dependencies, because some compilers
3150 # like to wrap large dependency lists on column 80 (with \), and
3151 # we should not choose a depcomp mode which is confused by this.
3153 # We need to recreate these files for each test, as the compiler may
3154 # overwrite some of them when testing with obscure command lines.
3155 # This happens at least with the AIX C compiler.
3156 : > sub/conftest.c
3157 for i in 1 2 3 4 5 6; do
3158 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3160 # Solaris 8's {/usr,}/bin/sh.
3161 touch sub/conftst$i.h
3162 done
3163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3165 case $depmode in
3166 nosideeffect)
3167 # after this tag, mechanisms are not by side-effect, so they'll
3168 # only be used when explicitly requested
3169 if test "x$enable_dependency_tracking" = xyes; then
3170 continue
3171 else
3172 break
3175 none) break ;;
3176 esac
3177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3178 # mode. It turns out that the SunPro C++ compiler does not properly
3179 # handle `-M -o', and we need to detect this.
3180 if depmode=$depmode \
3181 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3183 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3184 >/dev/null 2>conftest.err &&
3185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3186 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3188 # icc doesn't choke on unknown options, it will just issue warnings
3189 # or remarks (even with -Werror). So we grep stderr for any message
3190 # that says an option was ignored or not supported.
3191 # When given -MP, icc 7.0 and 7.1 complain thusly:
3192 # icc: Command line warning: ignoring option '-M'; no argument required
3193 # The diagnosis changed in icc 8.0:
3194 # icc: Command line remark: option '-MP' not supported
3195 if (grep 'ignoring option' conftest.err ||
3196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3197 am_cv_CC_dependencies_compiler_type=$depmode
3198 break
3201 done
3203 cd ..
3204 rm -rf conftest.dir
3205 else
3206 am_cv_CC_dependencies_compiler_type=none
3210 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3211 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3217 test "x$enable_dependency_tracking" != xno \
3218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3219 am__fastdepCC_TRUE=
3220 am__fastdepCC_FALSE='#'
3221 else
3222 am__fastdepCC_TRUE='#'
3223 am__fastdepCC_FALSE=
3231 macro_version='2.1a'
3232 macro_revision='1.2435'
3245 ltmain="$ac_aux_dir/ltmain.sh"
3247 # Set options
3249 enable_dlopen=no
3252 enable_win32_dll=no
3255 # Check whether --enable-shared or --disable-shared was given.
3256 if test "${enable_shared+set}" = set; then
3257 enableval="$enable_shared"
3258 p=${PACKAGE-default}
3259 case $enableval in
3260 yes) enable_shared=yes ;;
3261 no) enable_shared=no ;;
3263 enable_shared=no
3264 # Look at the argument we got. We use all the common list separators.
3265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3266 for pkg in $enableval; do
3267 IFS="$lt_save_ifs"
3268 if test "X$pkg" = "X$p"; then
3269 enable_shared=yes
3271 done
3272 IFS="$lt_save_ifs"
3274 esac
3275 else
3276 enable_shared=yes
3286 # Check whether --enable-static or --disable-static was given.
3287 if test "${enable_static+set}" = set; then
3288 enableval="$enable_static"
3289 p=${PACKAGE-default}
3290 case $enableval in
3291 yes) enable_static=yes ;;
3292 no) enable_static=no ;;
3294 enable_static=no
3295 # Look at the argument we got. We use all the common list separators.
3296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3297 for pkg in $enableval; do
3298 IFS="$lt_save_ifs"
3299 if test "X$pkg" = "X$p"; then
3300 enable_static=yes
3302 done
3303 IFS="$lt_save_ifs"
3305 esac
3306 else
3307 enable_static=yes
3318 # Check whether --with-pic or --without-pic was given.
3319 if test "${with_pic+set}" = set; then
3320 withval="$with_pic"
3321 pic_mode="$withval"
3322 else
3323 pic_mode=default
3326 test -z "$pic_mode" && pic_mode=default
3334 # Check whether --enable-fast-install or --disable-fast-install was given.
3335 if test "${enable_fast_install+set}" = set; then
3336 enableval="$enable_fast_install"
3337 p=${PACKAGE-default}
3338 case $enableval in
3339 yes) enable_fast_install=yes ;;
3340 no) enable_fast_install=no ;;
3342 enable_fast_install=no
3343 # Look at the argument we got. We use all the common list separators.
3344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345 for pkg in $enableval; do
3346 IFS="$lt_save_ifs"
3347 if test "X$pkg" = "X$p"; then
3348 enable_fast_install=yes
3350 done
3351 IFS="$lt_save_ifs"
3353 esac
3354 else
3355 enable_fast_install=yes
3365 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3366 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3367 if test "${lt_cv_path_SED+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 # Loop through the user's path and test for sed and gsed.
3371 # Then use that list of sed's as ones to test for truncation.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for lt_ac_prog in sed gsed; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3382 done
3383 done
3384 done
3385 IFS=$as_save_IFS
3386 lt_ac_max=0
3387 lt_ac_count=0
3388 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3389 # along with /bin/sed that truncates output.
3390 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3391 test ! -f $lt_ac_sed && continue
3392 cat /dev/null > conftest.in
3393 lt_ac_count=0
3394 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3395 # Check for GNU sed and select it if it is found.
3396 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3397 lt_cv_path_SED=$lt_ac_sed
3398 break
3400 while true; do
3401 cat conftest.in conftest.in >conftest.tmp
3402 mv conftest.tmp conftest.in
3403 cp conftest.in conftest.nl
3404 echo >>conftest.nl
3405 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3406 cmp -s conftest.out conftest.nl || break
3407 # 10000 chars as input seems more than enough
3408 test $lt_ac_count -gt 10 && break
3409 lt_ac_count=`expr $lt_ac_count + 1`
3410 if test $lt_ac_count -gt $lt_ac_max; then
3411 lt_ac_max=$lt_ac_count
3412 lt_cv_path_SED=$lt_ac_sed
3414 done
3415 done
3419 SED=$lt_cv_path_SED
3421 echo "$as_me:$LINENO: result: $SED" >&5
3422 echo "${ECHO_T}$SED" >&6
3424 test -z "$SED" && SED=sed
3425 Xsed="$SED -e 1s/^X//"
3437 echo "$as_me:$LINENO: checking for egrep" >&5
3438 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3439 if test "${ac_cv_prog_egrep+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3443 then ac_cv_prog_egrep='grep -E'
3444 else ac_cv_prog_egrep='egrep'
3447 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3448 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3449 EGREP=$ac_cv_prog_egrep
3452 echo "$as_me:$LINENO: checking for fgrep" >&5
3453 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3454 if test "${ac_cv_prog_fgrep+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3458 then ac_cv_prog_fgrep='grep -F'
3459 else ac_cv_prog_fgrep='fgrep'
3462 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3463 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3464 FGREP=$ac_cv_prog_fgrep
3467 test -z "$GREP" && GREP=grep
3487 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3488 if test "${with_gnu_ld+set}" = set; then
3489 withval="$with_gnu_ld"
3490 test "$withval" = no || with_gnu_ld=yes
3491 else
3492 with_gnu_ld=no
3494 ac_prog=ld
3495 if test "$GCC" = yes; then
3496 # Check if gcc -print-prog-name=ld gives a path.
3497 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3498 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3499 case $host in
3500 *-*-mingw*)
3501 # gcc leaves a trailing carriage return which upsets mingw
3502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3505 esac
3506 case $ac_prog in
3507 # Accept absolute paths.
3508 [\\/]* | ?:[\\/]*)
3509 re_direlt='/[^/][^/]*/\.\./'
3510 # Canonicalize the pathname of ld
3511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3514 done
3515 test -z "$LD" && LD="$ac_prog"
3518 # If it fails, then pretend we aren't using GCC.
3519 ac_prog=ld
3522 # If it is relative, then search for the first ld in PATH.
3523 with_gnu_ld=unknown
3525 esac
3526 elif test "$with_gnu_ld" = yes; then
3527 echo "$as_me:$LINENO: checking for GNU ld" >&5
3528 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3529 else
3530 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3531 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3533 if test "${lt_cv_path_LD+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -z "$LD"; then
3537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3538 for ac_dir in $PATH; do
3539 IFS="$lt_save_ifs"
3540 test -z "$ac_dir" && ac_dir=.
3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3542 lt_cv_path_LD="$ac_dir/$ac_prog"
3543 # Check to see if the program is GNU ld. I'd rather use --version,
3544 # but apparently some variants of GNU ld only accept -v.
3545 # Break only if it was the GNU/non-GNU ld that we prefer.
3546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3547 *GNU* | *'with BFD'*)
3548 test "$with_gnu_ld" != no && break
3551 test "$with_gnu_ld" != yes && break
3553 esac
3555 done
3556 IFS="$lt_save_ifs"
3557 else
3558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3562 LD="$lt_cv_path_LD"
3563 if test -n "$LD"; then
3564 echo "$as_me:$LINENO: result: $LD" >&5
3565 echo "${ECHO_T}$LD" >&6
3566 else
3567 echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3570 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3571 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3572 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3574 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3575 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3579 case `$LD -v 2>&1 </dev/null` in
3580 *GNU* | *'with BFD'*)
3581 lt_cv_prog_gnu_ld=yes
3584 lt_cv_prog_gnu_ld=no
3586 esac
3588 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3589 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3590 with_gnu_ld=$lt_cv_prog_gnu_ld
3601 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3602 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3603 if test "${lt_cv_path_NM+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$NM"; then
3607 # Let the user override the test.
3608 lt_cv_path_NM="$NM"
3609 else
3610 lt_nm_to_check="${ac_tool_prefix}nm"
3611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3612 lt_nm_to_check="$lt_nm_to_check nm"
3614 for lt_tmp_nm in $lt_nm_to_check; do
3615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3617 IFS="$lt_save_ifs"
3618 test -z "$ac_dir" && ac_dir=.
3619 tmp_nm="$ac_dir/$lt_tmp_nm"
3620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3621 # Check to see if the nm accepts a BSD-compat flag.
3622 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3623 # nm: unknown option "B" ignored
3624 # Tru64's nm complains that /dev/null is an invalid object file
3625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3626 */dev/null* | *'Invalid file or object type'*)
3627 lt_cv_path_NM="$tmp_nm -B"
3628 break
3631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3632 */dev/null*)
3633 lt_cv_path_NM="$tmp_nm -p"
3634 break
3637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3638 continue # so that we can try to find one that supports BSD flags
3640 esac
3642 esac
3644 done
3645 IFS="$lt_save_ifs"
3646 done
3647 : ${lt_cv_path_NM=no}
3650 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3651 echo "${ECHO_T}$lt_cv_path_NM" >&6
3652 if test "$lt_cv_path_NM" != "no"; then
3653 NM="$lt_cv_path_NM"
3654 else
3655 # Didn't find any BSD compatible name lister, look for dumpbin.
3656 if test -n "$ac_tool_prefix"; then
3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if test -n "$DUMPBIN"; then
3667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3685 DUMPBIN=$ac_cv_prog_DUMPBIN
3686 if test -n "$DUMPBIN"; then
3687 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3688 echo "${ECHO_T}$DUMPBIN" >&6
3689 else
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 test -n "$DUMPBIN" && break
3695 done
3697 if test -z "$DUMPBIN"; then
3698 ac_ct_DUMPBIN=$DUMPBIN
3699 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$ac_ct_DUMPBIN"; then
3709 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3727 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3728 if test -n "$ac_ct_DUMPBIN"; then
3729 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3730 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3731 else
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3736 test -n "$ac_ct_DUMPBIN" && break
3737 done
3738 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3740 DUMPBIN=$ac_ct_DUMPBIN
3744 if test "$DUMPBIN" != ":"; then
3745 NM="$DUMPBIN"
3748 test -z "$NM" && NM=nm
3755 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3756 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3757 if test "${lt_cv_nm_interface+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 lt_cv_nm_interface="BSD nm"
3761 echo "int some_variable = 0;" > conftest.$ac_ext
3762 (eval echo "\"\$as_me:3762: $ac_compile\"" >&5)
3763 (eval "$ac_compile" 2>conftest.err)
3764 cat conftest.err >&5
3765 (eval echo "\"\$as_me:3765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3767 cat conftest.err >&5
3768 (eval echo "\"\$as_me:3768: output\"" >&5)
3769 cat conftest.out >&5
3770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3771 lt_cv_nm_interface="MS dumpbin"
3773 rm -f conftest*
3775 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3776 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3778 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3779 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3780 LN_S=$as_ln_s
3781 if test "$LN_S" = "ln -s"; then
3782 echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3784 else
3785 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3786 echo "${ECHO_T}no, using $LN_S" >&6
3789 # find the maximum length of command line arguments
3790 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3791 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3792 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3796 teststring="ABCD"
3798 case $build_os in
3799 msdosdjgpp*)
3800 # On DJGPP, this test can blow up pretty badly due to problems in libc
3801 # (any single argument exceeding 2000 bytes causes a buffer overrun
3802 # during glob expansion). Even if it were fixed, the result of this
3803 # check would be larger than it should be.
3804 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3807 gnu*)
3808 # Under GNU Hurd, this test is not required because there is
3809 # no limit to the length of command line arguments.
3810 # Libtool will interpret -1 as no limit whatsoever
3811 lt_cv_sys_max_cmd_len=-1;
3814 cygwin* | mingw*)
3815 # On Win9x/ME, this test blows up -- it succeeds, but takes
3816 # about 5 minutes as the teststring grows exponentially.
3817 # Worse, since 9x/ME are not pre-emptively multitasking,
3818 # you end up with a "frozen" computer, even though with patience
3819 # the test eventually succeeds (with a max line length of 256k).
3820 # Instead, let's just punt: use the minimum linelength reported by
3821 # all of the supported platforms: 8192 (on NT/2K/XP).
3822 lt_cv_sys_max_cmd_len=8192;
3825 amigaos*)
3826 # On AmigaOS with pdksh, this test takes hours, literally.
3827 # So we just punt and use a minimum line length of 8192.
3828 lt_cv_sys_max_cmd_len=8192;
3831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3832 # This has been around since 386BSD, at least. Likely further.
3833 if test -x /sbin/sysctl; then
3834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3835 elif test -x /usr/sbin/sysctl; then
3836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3837 else
3838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3840 # And add a safety zone
3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3845 interix*)
3846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3847 lt_cv_sys_max_cmd_len=196608
3850 osf*)
3851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3853 # nice to cause kernel panics so lets avoid the loop below.
3854 # First set a reasonable default.
3855 lt_cv_sys_max_cmd_len=16384
3857 if test -x /sbin/sysconfig; then
3858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3860 esac
3863 sco3.2v5*)
3864 lt_cv_sys_max_cmd_len=102400
3866 sysv5* | sco5v6* | sysv4.2uw2*)
3867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3868 if test -n "$kargmax"; then
3869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3870 else
3871 lt_cv_sys_max_cmd_len=32768
3875 # Make teststring a little bigger before we do anything with it.
3876 # a 1K string should be a reasonable start.
3877 for i in 1 2 3 4 5 6 7 8 ; do
3878 teststring=$teststring$teststring
3879 done
3880 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3881 # If test is not a shell built-in, we'll probably end up computing a
3882 # maximum length that is only half of the actual maximum length, but
3883 # we can't tell.
3884 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3885 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3886 test $i != 17 # 1/2 MB should be enough
3888 i=`expr $i + 1`
3889 teststring=$teststring$teststring
3890 done
3891 # Only check the string length outside the loop.
3892 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3893 teststring=
3894 # Add a significant safety factor because C++ compilers can tack on massive
3895 # amounts of additional arguments before passing them to the linker.
3896 # It appears as though 1/2 is a usable value.
3897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3899 esac
3903 if test -n $lt_cv_sys_max_cmd_len ; then
3904 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3905 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3906 else
3907 echo "$as_me:$LINENO: result: none" >&5
3908 echo "${ECHO_T}none" >&6
3910 max_cmd_len=$lt_cv_sys_max_cmd_len
3918 : ${CP="cp -f"}
3919 : ${MV="mv -f"}
3920 : ${RM="rm -f"}
3922 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3923 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3924 # Try some XSI features
3925 xsi_shell=no
3926 ( _lt_dummy="a/b/c"
3927 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3928 = c,a/b,, ) >/dev/null 2>&1 \
3929 && xsi_shell=yes
3930 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3931 echo "${ECHO_T}$xsi_shell" >&6
3934 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3935 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3936 lt_shell_append=no
3937 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3938 >/dev/null 2>&1 \
3939 && lt_shell_append=yes
3940 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3941 echo "${ECHO_T}$lt_shell_append" >&6
3944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3945 lt_unset=unset
3946 else
3947 lt_unset=false
3954 # test EBCDIC or ASCII
3955 case `echo X|tr X '\101'` in
3956 A) # ASCII based system
3957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3958 lt_SP2NL='tr \040 \012'
3959 lt_NL2SP='tr \015\012 \040\040'
3961 *) # EBCDIC based system
3962 lt_SP2NL='tr \100 \n'
3963 lt_NL2SP='tr \r\n \100\100'
3965 esac
3975 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3976 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3977 if test "${lt_cv_ld_reload_flag+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 lt_cv_ld_reload_flag='-r'
3982 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3983 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3984 reload_flag=$lt_cv_ld_reload_flag
3985 case $reload_flag in
3986 "" | " "*) ;;
3987 *) reload_flag=" $reload_flag" ;;
3988 esac
3989 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3990 case $host_os in
3991 darwin*)
3992 if test "$GCC" = yes; then
3993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3994 else
3995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3998 esac
4009 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4010 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4011 if test "${lt_cv_deplibs_check_method+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 lt_cv_file_magic_cmd='$MAGIC_CMD'
4015 lt_cv_file_magic_test_file=
4016 lt_cv_deplibs_check_method='unknown'
4017 # Need to set the preceding variable on all platforms that support
4018 # interlibrary dependencies.
4019 # 'none' -- dependencies not supported.
4020 # `unknown' -- same as none, but documents that we really don't know.
4021 # 'pass_all' -- all dependencies passed with no checks.
4022 # 'test_compile' -- check by making test program.
4023 # 'file_magic [[regex]]' -- check by looking for files in library path
4024 # which responds to the $file_magic_cmd with a given extended regex.
4025 # If you have `file' or equivalent on your system and you're not sure
4026 # whether `pass_all' will *always* work, you probably want this one.
4028 case $host_os in
4029 aix4* | aix5*)
4030 lt_cv_deplibs_check_method=pass_all
4033 beos*)
4034 lt_cv_deplibs_check_method=pass_all
4037 bsdi[45]*)
4038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4039 lt_cv_file_magic_cmd='/usr/bin/file -L'
4040 lt_cv_file_magic_test_file=/shlib/libc.so
4043 cygwin*)
4044 # func_win32_libid is a shell function defined in ltmain.sh
4045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4046 lt_cv_file_magic_cmd='func_win32_libid'
4049 mingw* | pw32*)
4050 # Base MSYS/MinGW do not provide the 'file' command needed by
4051 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4052 # unless we find 'file', for example because we are cross-compiling.
4053 if ( file / ) >/dev/null 2>&1; then
4054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4055 lt_cv_file_magic_cmd='func_win32_libid'
4056 else
4057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4058 lt_cv_file_magic_cmd='$OBJDUMP -f'
4062 darwin* | rhapsody*)
4063 lt_cv_deplibs_check_method=pass_all
4066 freebsd* | dragonfly*)
4067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4068 case $host_cpu in
4069 i*86 )
4070 # Not sure whether the presence of OpenBSD here was a mistake.
4071 # Let's accept both of them until this is cleared up.
4072 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4073 lt_cv_file_magic_cmd=/usr/bin/file
4074 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4076 esac
4077 else
4078 lt_cv_deplibs_check_method=pass_all
4082 gnu*)
4083 lt_cv_deplibs_check_method=pass_all
4086 hpux10.20* | hpux11*)
4087 lt_cv_file_magic_cmd=/usr/bin/file
4088 case $host_cpu in
4089 ia64*)
4090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4091 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4093 hppa*64*)
4094 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]'
4095 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4099 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4101 esac
4104 interix[3-9]*)
4105 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4109 irix5* | irix6* | nonstopux*)
4110 case $LD in
4111 *-32|*"-32 ") libmagic=32-bit;;
4112 *-n32|*"-n32 ") libmagic=N32;;
4113 *-64|*"-64 ") libmagic=64-bit;;
4114 *) libmagic=never-match;;
4115 esac
4116 lt_cv_deplibs_check_method=pass_all
4119 # This must be Linux ELF.
4120 linux* | k*bsd*-gnu)
4121 lt_cv_deplibs_check_method=pass_all
4124 netbsd*)
4125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4127 else
4128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4132 newos6*)
4133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4134 lt_cv_file_magic_cmd=/usr/bin/file
4135 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4138 *nto* | *qnx*)
4139 lt_cv_deplibs_check_method=pass_all
4142 openbsd*)
4143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4145 else
4146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4150 osf3* | osf4* | osf5*)
4151 lt_cv_deplibs_check_method=pass_all
4154 rdos*)
4155 lt_cv_deplibs_check_method=pass_all
4158 solaris*)
4159 lt_cv_deplibs_check_method=pass_all
4162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4163 lt_cv_deplibs_check_method=pass_all
4166 sysv4 | sysv4.3*)
4167 case $host_vendor in
4168 motorola)
4169 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]'
4170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4172 ncr)
4173 lt_cv_deplibs_check_method=pass_all
4175 sequent)
4176 lt_cv_file_magic_cmd='/bin/file'
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4179 sni)
4180 lt_cv_file_magic_cmd='/bin/file'
4181 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4182 lt_cv_file_magic_test_file=/lib/libc.so
4184 siemens)
4185 lt_cv_deplibs_check_method=pass_all
4188 lt_cv_deplibs_check_method=pass_all
4190 esac
4193 tpf*)
4194 lt_cv_deplibs_check_method=pass_all
4196 esac
4199 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4200 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4201 file_magic_cmd=$lt_cv_file_magic_cmd
4202 deplibs_check_method=$lt_cv_deplibs_check_method
4203 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4216 if test -n "$ac_tool_prefix"; then
4217 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4218 set dummy ${ac_tool_prefix}ar; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_AR+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test -n "$AR"; then
4225 ac_cv_prog_AR="$AR" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234 ac_cv_prog_AR="${ac_tool_prefix}ar"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4243 AR=$ac_cv_prog_AR
4244 if test -n "$AR"; then
4245 echo "$as_me:$LINENO: result: $AR" >&5
4246 echo "${ECHO_T}$AR" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4253 if test -z "$ac_cv_prog_AR"; then
4254 ac_ct_AR=$AR
4255 # Extract the first word of "ar", so it can be a program name with args.
4256 set dummy ar; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -n "$ac_ct_AR"; then
4263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_ac_ct_AR="ar"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4279 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4283 if test -n "$ac_ct_AR"; then
4284 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4285 echo "${ECHO_T}$ac_ct_AR" >&6
4286 else
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4291 AR=$ac_ct_AR
4292 else
4293 AR="$ac_cv_prog_AR"
4296 test -z "$AR" && AR=ar
4297 test -z "$AR_FLAGS" && AR_FLAGS=cru
4309 if test -n "$ac_tool_prefix"; then
4310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}strip; ac_word=$2
4312 echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314 if test "${ac_cv_prog_STRIP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 if test -n "$STRIP"; then
4318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4336 STRIP=$ac_cv_prog_STRIP
4337 if test -n "$STRIP"; then
4338 echo "$as_me:$LINENO: result: $STRIP" >&5
4339 echo "${ECHO_T}$STRIP" >&6
4340 else
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4346 if test -z "$ac_cv_prog_STRIP"; then
4347 ac_ct_STRIP=$STRIP
4348 # Extract the first word of "strip", so it can be a program name with args.
4349 set dummy strip; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$ac_ct_STRIP"; then
4356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_ac_ct_STRIP="strip"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4372 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4376 if test -n "$ac_ct_STRIP"; then
4377 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4378 echo "${ECHO_T}$ac_ct_STRIP" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4384 STRIP=$ac_ct_STRIP
4385 else
4386 STRIP="$ac_cv_prog_STRIP"
4389 test -z "$STRIP" && STRIP=:
4396 if test -n "$ac_tool_prefix"; then
4397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4398 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test -n "$RANLIB"; then
4405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4418 done
4419 done
4423 RANLIB=$ac_cv_prog_RANLIB
4424 if test -n "$RANLIB"; then
4425 echo "$as_me:$LINENO: result: $RANLIB" >&5
4426 echo "${ECHO_T}$RANLIB" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4433 if test -z "$ac_cv_prog_RANLIB"; then
4434 ac_ct_RANLIB=$RANLIB
4435 # Extract the first word of "ranlib", so it can be a program name with args.
4436 set dummy ranlib; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 if test -n "$ac_ct_RANLIB"; then
4443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_RANLIB="ranlib"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4459 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4463 if test -n "$ac_ct_RANLIB"; then
4464 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4465 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4466 else
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4471 RANLIB=$ac_ct_RANLIB
4472 else
4473 RANLIB="$ac_cv_prog_RANLIB"
4476 test -z "$RANLIB" && RANLIB=:
4483 # Determine commands to create old-style static archives.
4484 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4485 old_postinstall_cmds='chmod 644 $oldlib'
4486 old_postuninstall_cmds=
4488 if test -n "$RANLIB"; then
4489 case $host_os in
4490 openbsd*)
4491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4496 esac
4497 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4533 # If no C compiler was specified, use CC.
4534 LTCC=${LTCC-"$CC"}
4536 # If no C compiler flags were specified, use CFLAGS.
4537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4539 # Allow CC to be a program name with arguments.
4540 compiler=$CC
4543 # Check for command to grab the raw symbol name followed by C symbol from nm.
4544 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4545 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4550 # These are sane defaults that work on at least a few old systems.
4551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4553 # Character class describing NM global symbol codes.
4554 symcode='[BCDEGRST]'
4556 # Regexp to match symbols that can be accessed directly from C.
4557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4559 # Define system-specific variables.
4560 case $host_os in
4561 aix*)
4562 symcode='[BCDT]'
4564 cygwin* | mingw* | pw32*)
4565 symcode='[ABCDGISTW]'
4567 hpux*)
4568 if test "$host_cpu" = ia64; then
4569 symcode='[ABCDEGRST]'
4572 irix* | nonstopux*)
4573 symcode='[BCDEGRST]'
4575 osf*)
4576 symcode='[BCDEGQRST]'
4578 solaris*)
4579 symcode='[BDRT]'
4581 sco3.2v5*)
4582 symcode='[DT]'
4584 sysv4.2uw2*)
4585 symcode='[DT]'
4587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4588 symcode='[ABDT]'
4590 sysv4)
4591 symcode='[DFNSTU]'
4593 esac
4595 # If we're using GNU nm, then use its standard symbol codes.
4596 case `$NM -V 2>&1` in
4597 *GNU* | *'with BFD'*)
4598 symcode='[ABCDGIRSTW]' ;;
4599 esac
4601 # Transform an extracted symbol line into a proper C declaration.
4602 # Some systems (esp. on ia64) link data and code symbols differently,
4603 # so use this general approach.
4604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4606 # Transform an extracted symbol line into symbol name and symbol address
4607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4609 # Handle CRLF in mingw tool chain
4610 opt_cr=
4611 case $build_os in
4612 mingw*)
4613 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4615 esac
4617 # Try without a prefix underscore, then with it.
4618 for ac_symprfx in "" "_"; do
4620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4621 symxfrm="\\1 $ac_symprfx\\2 \\2"
4623 # Write the raw and C identifiers.
4624 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4625 # Fake it for dumpbin and say T for any non-static function
4626 # and D for any global variable.
4627 # Also find C++ and __fastcall symbols from MSVC++,
4628 # which start with @ or ?.
4629 lt_cv_sys_global_symbol_pipe="$AWK '"\
4630 " {last_section=section; section=\$ 3};"\
4631 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4632 " \$ 0!~/External *\|/{next};"\
4633 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4634 " {if(hide[section]) next};"\
4635 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4636 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4637 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4638 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4639 " ' prfx=^$ac_symprfx"
4640 else
4641 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4644 # Check to see that the pipe works correctly.
4645 pipe_works=no
4647 rm -f conftest*
4648 cat > conftest.$ac_ext <<_LT_EOF
4649 #ifdef __cplusplus
4650 extern "C" {
4651 #endif
4652 char nm_test_var;
4653 void nm_test_func(void);
4654 void nm_test_func(void){}
4655 #ifdef __cplusplus
4657 #endif
4658 int main(){nm_test_var='a';nm_test_func();return(0);}
4659 _LT_EOF
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4666 # Now try to grab the symbols.
4667 nlist=conftest.nm
4668 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4669 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && test -s "$nlist"; then
4673 # Try sorting and uniquifying the output.
4674 if sort "$nlist" | uniq > "$nlist"T; then
4675 mv -f "$nlist"T "$nlist"
4676 else
4677 rm -f "$nlist"T
4680 # Make sure that we snagged all the symbols we need.
4681 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4682 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4683 cat <<_LT_EOF > conftest.$ac_ext
4684 #ifdef __cplusplus
4685 extern "C" {
4686 #endif
4688 _LT_EOF
4689 # Now generate the symbol file.
4690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4692 cat <<_LT_EOF >> conftest.$ac_ext
4694 /* The mapping between symbol names and symbols. */
4695 const struct {
4696 const char *name;
4697 void *address;
4699 lt__PROGRAM__LTX_preloaded_symbols[] =
4701 { "@PROGRAM@", (void *) 0 },
4702 _LT_EOF
4703 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4704 cat <<\_LT_EOF >> conftest.$ac_ext
4705 {0, (void *) 0}
4708 /* This works around a problem in FreeBSD linker */
4709 #ifdef FREEBSD_WORKAROUND
4710 static const void *lt_preloaded_setup() {
4711 return lt__PROGRAM__LTX_preloaded_symbols;
4713 #endif
4715 #ifdef __cplusplus
4717 #endif
4718 _LT_EOF
4719 # Now try linking the two files.
4720 mv conftest.$ac_objext conftstm.$ac_objext
4721 lt_save_LIBS="$LIBS"
4722 lt_save_CFLAGS="$CFLAGS"
4723 LIBS="conftstm.$ac_objext"
4724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4730 pipe_works=yes
4732 LIBS="$lt_save_LIBS"
4733 CFLAGS="$lt_save_CFLAGS"
4734 else
4735 echo "cannot find nm_test_func in $nlist" >&5
4737 else
4738 echo "cannot find nm_test_var in $nlist" >&5
4740 else
4741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4743 else
4744 echo "$progname: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 rm -f conftest* conftst*
4749 # Do not use the global_symbol_pipe unless it works.
4750 if test "$pipe_works" = yes; then
4751 break
4752 else
4753 lt_cv_sys_global_symbol_pipe=
4755 done
4759 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4760 lt_cv_sys_global_symbol_to_cdecl=
4762 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4763 echo "$as_me:$LINENO: result: failed" >&5
4764 echo "${ECHO_T}failed" >&6
4765 else
4766 echo "$as_me:$LINENO: result: ok" >&5
4767 echo "${ECHO_T}ok" >&6
4786 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4787 if test "${enable_libtool_lock+set}" = set; then
4788 enableval="$enable_libtool_lock"
4791 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4793 # Some flags need to be propagated to the compiler or linker for good
4794 # libtool support.
4795 case $host in
4796 ia64-*-hpux*)
4797 # Find out which ABI we are using.
4798 echo 'int i;' > conftest.$ac_ext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; then
4804 case `/usr/bin/file conftest.$ac_objext` in
4805 *ELF-32*)
4806 HPUX_IA64_MODE="32"
4808 *ELF-64*)
4809 HPUX_IA64_MODE="64"
4811 esac
4813 rm -rf conftest*
4815 *-*-irix6*)
4816 # Find out which ABI we are using.
4817 echo '#line 4817 "configure"' > conftest.$ac_ext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; then
4823 if test "$lt_cv_prog_gnu_ld" = yes; then
4824 case `/usr/bin/file conftest.$ac_objext` in
4825 *32-bit*)
4826 LD="${LD-ld} -melf32bsmip"
4828 *N32*)
4829 LD="${LD-ld} -melf32bmipn32"
4831 *64-bit*)
4832 LD="${LD-ld} -melf64bmip"
4834 esac
4835 else
4836 case `/usr/bin/file conftest.$ac_objext` in
4837 *32-bit*)
4838 LD="${LD-ld} -32"
4840 *N32*)
4841 LD="${LD-ld} -n32"
4843 *64-bit*)
4844 LD="${LD-ld} -64"
4846 esac
4849 rm -rf conftest*
4852 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4853 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4854 # Find out which ABI we are using.
4855 echo 'int i;' > conftest.$ac_ext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; then
4861 case `/usr/bin/file conftest.o` in
4862 *32-bit*)
4863 case $host in
4864 x86_64-*kfreebsd*-gnu)
4865 LD="${LD-ld} -m elf_i386_fbsd"
4867 x86_64-*linux*)
4868 LD="${LD-ld} -m elf_i386"
4870 ppc64-*linux*|powerpc64-*linux*)
4871 LD="${LD-ld} -m elf32ppclinux"
4873 s390x-*linux*)
4874 LD="${LD-ld} -m elf_s390"
4876 sparc64-*linux*)
4877 LD="${LD-ld} -m elf32_sparc"
4879 esac
4881 *64-bit*)
4882 case $host in
4883 x86_64-*kfreebsd*-gnu)
4884 LD="${LD-ld} -m elf_x86_64_fbsd"
4886 x86_64-*linux*)
4887 LD="${LD-ld} -m elf_x86_64"
4889 ppc*-*linux*|powerpc*-*linux*)
4890 LD="${LD-ld} -m elf64ppc"
4892 s390*-*linux*|s390*-*tpf*)
4893 LD="${LD-ld} -m elf64_s390"
4895 sparc*-*linux*)
4896 LD="${LD-ld} -m elf64_sparc"
4898 esac
4900 esac
4902 rm -rf conftest*
4905 *-*-sco3.2v5*)
4906 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4907 SAVE_CFLAGS="$CFLAGS"
4908 CFLAGS="$CFLAGS -belf"
4909 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4910 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4911 if test "${lt_cv_cc_needs_belf+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914 ac_ext=c
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4928 main ()
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 lt_cv_cc_needs_belf=yes
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 lt_cv_cc_needs_belf=no
4964 rm -f conftest.err conftest.$ac_objext \
4965 conftest$ac_exeext conftest.$ac_ext
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4974 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4977 CFLAGS="$SAVE_CFLAGS"
4980 sparc*-*solaris*)
4981 # Find out which ABI we are using.
4982 echo 'int i;' > conftest.$ac_ext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; then
4988 case `/usr/bin/file conftest.o` in
4989 *64-bit*)
4990 case $lt_cv_prog_gnu_ld in
4991 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4992 *) LD="${LD-ld} -64" ;;
4993 esac
4995 esac
4997 rm -rf conftest*
4999 esac
5001 need_locks="$enable_libtool_lock"
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5009 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5010 # On Suns, sometimes $CPP names a directory.
5011 if test -n "$CPP" && test -d "$CPP"; then
5012 CPP=
5014 if test -z "$CPP"; then
5015 if test "${ac_cv_prog_CPP+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 # Double quotes because CPP needs to be expanded
5019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5021 ac_preproc_ok=false
5022 for ac_c_preproc_warn_flag in '' yes
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041 Syntax error
5042 _ACEOF
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null; then
5051 if test -s conftest.err; then
5052 ac_cpp_err=$ac_c_preproc_warn_flag
5053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5054 else
5055 ac_cpp_err=
5057 else
5058 ac_cpp_err=yes
5060 if test -z "$ac_cpp_err"; then
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 # Broken: fails on valid input.
5067 continue
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether non-existent headers
5072 # can be detected and how.
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5095 else
5096 ac_cpp_err=yes
5098 if test -z "$ac_cpp_err"; then
5099 # Broken: success on invalid input.
5100 continue
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5109 rm -f conftest.err conftest.$ac_ext
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5115 break
5118 done
5119 ac_cv_prog_CPP=$CPP
5122 CPP=$ac_cv_prog_CPP
5123 else
5124 ac_cv_prog_CPP=$CPP
5126 echo "$as_me:$LINENO: result: $CPP" >&5
5127 echo "${ECHO_T}$CPP" >&6
5128 ac_preproc_ok=false
5129 for ac_c_preproc_warn_flag in '' yes
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148 Syntax error
5149 _ACEOF
5150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_c_preproc_warn_flag
5160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5161 else
5162 ac_cpp_err=
5164 else
5165 ac_cpp_err=yes
5167 if test -z "$ac_cpp_err"; then
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 # Broken: fails on valid input.
5174 continue
5176 rm -f conftest.err conftest.$ac_ext
5178 # OK, works on sane cases. Now check whether non-existent headers
5179 # can be detected and how.
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_c_preproc_warn_flag
5198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5199 else
5200 ac_cpp_err=
5202 else
5203 ac_cpp_err=yes
5205 if test -z "$ac_cpp_err"; then
5206 # Broken: success on invalid input.
5207 continue
5208 else
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5212 # Passes both tests.
5213 ac_preproc_ok=:
5214 break
5216 rm -f conftest.err conftest.$ac_ext
5218 done
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.err conftest.$ac_ext
5221 if $ac_preproc_ok; then
5223 else
5224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5227 See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }
5231 ac_ext=c
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5240 if test "${ac_cv_header_stdc+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <stdlib.h>
5250 #include <stdarg.h>
5251 #include <string.h>
5252 #include <float.h>
5255 main ()
5259 return 0;
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest.$ac_objext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_header_stdc=yes
5285 else
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_cv_header_stdc=no
5291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5293 if test $ac_cv_header_stdc = yes; then
5294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <string.h>
5303 _ACEOF
5304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5305 $EGREP "memchr" >/dev/null 2>&1; then
5307 else
5308 ac_cv_header_stdc=no
5310 rm -f conftest*
5314 if test $ac_cv_header_stdc = yes; then
5315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <stdlib.h>
5324 _ACEOF
5325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 $EGREP "free" >/dev/null 2>&1; then
5328 else
5329 ac_cv_header_stdc=no
5331 rm -f conftest*
5335 if test $ac_cv_header_stdc = yes; then
5336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5337 if test "$cross_compiling" = yes; then
5339 else
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <ctype.h>
5347 #if ((' ' & 0x0FF) == 0x020)
5348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350 #else
5351 # define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356 #endif
5358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5360 main ()
5362 int i;
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5366 exit(2);
5367 exit (0);
5369 _ACEOF
5370 rm -f conftest$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5382 else
5383 echo "$as_me: program exited with status $ac_status" >&5
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5387 ( exit $ac_status )
5388 ac_cv_header_stdc=no
5390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5395 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5396 if test $ac_cv_header_stdc = yes; then
5398 cat >>confdefs.h <<\_ACEOF
5399 #define STDC_HEADERS 1
5400 _ACEOF
5404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5414 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5415 inttypes.h stdint.h unistd.h
5417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418 echo "$as_me:$LINENO: checking for $ac_header" >&5
5419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 $ac_includes_default
5431 #include <$ac_header>
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag"
5443 || test ! -s conftest.err'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 eval "$as_ac_Header=yes"
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 eval "$as_ac_Header=no"
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5469 _ACEOF
5473 done
5477 for ac_header in dlfcn.h
5479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480 echo "$as_me:$LINENO: checking for $ac_header" >&5
5481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5493 #include <$ac_header>
5494 _ACEOF
5495 rm -f conftest.$ac_objext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5497 (eval $ac_compile) 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 eval "$as_ac_Header=yes"
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 eval "$as_ac_Header=no"
5524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h <<_ACEOF
5530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531 _ACEOF
5535 done
5539 # This can be used to rebuild libtool when needed
5540 LIBTOOL_DEPS="$ltmain"
5542 # Always use our own libtool.
5543 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5569 test -z "$LN_S" && LN_S="ln -s"
5584 if test -n "${ZSH_VERSION+set}" ; then
5585 setopt NO_GLOB_SUBST
5588 echo "$as_me:$LINENO: checking for objdir" >&5
5589 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5590 if test "${lt_cv_objdir+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 rm -f .libs 2>/dev/null
5594 mkdir .libs 2>/dev/null
5595 if test -d .libs; then
5596 lt_cv_objdir=.libs
5597 else
5598 # MS-DOS does not allow filenames that begin with a dot.
5599 lt_cv_objdir=_libs
5601 rmdir .libs 2>/dev/null
5603 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5604 echo "${ECHO_T}$lt_cv_objdir" >&6
5605 objdir=$lt_cv_objdir
5611 cat >>confdefs.h <<_ACEOF
5612 #define LT_OBJDIR "$lt_cv_objdir/"
5613 _ACEOF
5631 case $host_os in
5632 aix3*)
5633 # AIX sometimes has problems with the GCC collect2 program. For some
5634 # reason, if we set the COLLECT_NAMES environment variable, the problems
5635 # vanish in a puff of smoke.
5636 if test "X${COLLECT_NAMES+set}" != Xset; then
5637 COLLECT_NAMES=
5638 export COLLECT_NAMES
5641 esac
5643 # Sed substitution that helps us do robust quoting. It backslashifies
5644 # metacharacters that are still active within double-quoted strings.
5645 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5647 # Same as above, but do not quote variable references.
5648 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5650 # Sed substitution to delay expansion of an escaped shell variable in a
5651 # double_quote_subst'ed string.
5652 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5654 # Sed substitution to delay expansion of an escaped single quote.
5655 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5657 # Sed substitution to avoid accidental globbing in evaled expressions
5658 no_glob_subst='s/\*/\\\*/g'
5660 # Global variables:
5661 ofile=libtool
5662 can_build_shared=yes
5664 # All known linkers require a `.a' archive for static linking (except MSVC,
5665 # which needs '.lib').
5666 libext=a
5668 with_gnu_ld="$lt_cv_prog_gnu_ld"
5670 old_CC="$CC"
5671 old_CFLAGS="$CFLAGS"
5673 # Set sane defaults for various variables
5674 test -z "$CC" && CC=cc
5675 test -z "$LTCC" && LTCC=$CC
5676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5677 test -z "$LD" && LD=ld
5678 test -z "$ac_objext" && ac_objext=o
5680 for cc_temp in $compiler""; do
5681 case $cc_temp in
5682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5684 \-*) ;;
5685 *) break;;
5686 esac
5687 done
5688 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5691 # Only perform the check for file, if the check method requires it
5692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5693 case $deplibs_check_method in
5694 file_magic*)
5695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5696 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5697 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5698 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 case $MAGIC_CMD in
5702 [\\/*] | ?:[\\/]*)
5703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5706 lt_save_MAGIC_CMD="$MAGIC_CMD"
5707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5709 for ac_dir in $ac_dummy; do
5710 IFS="$lt_save_ifs"
5711 test -z "$ac_dir" && ac_dir=.
5712 if test -f $ac_dir/${ac_tool_prefix}file; then
5713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5714 if test -n "$file_magic_test_file"; then
5715 case $deplibs_check_method in
5716 "file_magic "*)
5717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5720 $EGREP "$file_magic_regex" > /dev/null; then
5722 else
5723 cat <<_LT_EOF 1>&2
5725 *** Warning: the command libtool uses to detect shared libraries,
5726 *** $file_magic_cmd, produces output that libtool cannot recognize.
5727 *** The result is that libtool may fail to recognize shared libraries
5728 *** as such. This will affect the creation of libtool libraries that
5729 *** depend on shared libraries, but programs linked with such libtool
5730 *** libraries will work regardless of this problem. Nevertheless, you
5731 *** may want to report the problem to your system manager and/or to
5732 *** bug-libtool@gnu.org
5734 _LT_EOF
5735 fi ;;
5736 esac
5738 break
5740 done
5741 IFS="$lt_save_ifs"
5742 MAGIC_CMD="$lt_save_MAGIC_CMD"
5744 esac
5747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5748 if test -n "$MAGIC_CMD"; then
5749 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5750 echo "${ECHO_T}$MAGIC_CMD" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753 echo "${ECHO_T}no" >&6
5760 if test -z "$lt_cv_path_MAGIC_CMD"; then
5761 if test -n "$ac_tool_prefix"; then
5762 echo "$as_me:$LINENO: checking for file" >&5
5763 echo $ECHO_N "checking for file... $ECHO_C" >&6
5764 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 case $MAGIC_CMD in
5768 [\\/*] | ?:[\\/]*)
5769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5772 lt_save_MAGIC_CMD="$MAGIC_CMD"
5773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5775 for ac_dir in $ac_dummy; do
5776 IFS="$lt_save_ifs"
5777 test -z "$ac_dir" && ac_dir=.
5778 if test -f $ac_dir/file; then
5779 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5780 if test -n "$file_magic_test_file"; then
5781 case $deplibs_check_method in
5782 "file_magic "*)
5783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5786 $EGREP "$file_magic_regex" > /dev/null; then
5788 else
5789 cat <<_LT_EOF 1>&2
5791 *** Warning: the command libtool uses to detect shared libraries,
5792 *** $file_magic_cmd, produces output that libtool cannot recognize.
5793 *** The result is that libtool may fail to recognize shared libraries
5794 *** as such. This will affect the creation of libtool libraries that
5795 *** depend on shared libraries, but programs linked with such libtool
5796 *** libraries will work regardless of this problem. Nevertheless, you
5797 *** may want to report the problem to your system manager and/or to
5798 *** bug-libtool@gnu.org
5800 _LT_EOF
5801 fi ;;
5802 esac
5804 break
5806 done
5807 IFS="$lt_save_ifs"
5808 MAGIC_CMD="$lt_save_MAGIC_CMD"
5810 esac
5813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5814 if test -n "$MAGIC_CMD"; then
5815 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5816 echo "${ECHO_T}$MAGIC_CMD" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5823 else
5824 MAGIC_CMD=:
5830 esac
5832 # Use C for the default configuration in the libtool script
5834 lt_save_CC="$CC"
5835 ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842 # Source file extension for C test sources.
5843 ac_ext=c
5845 # Object file extension for compiled C test sources.
5846 objext=o
5847 objext=$objext
5849 # Code to be used in simple compile tests
5850 lt_simple_compile_test_code="int some_variable = 0;"
5852 # Code to be used in simple link tests
5853 lt_simple_link_test_code='int main(){return(0);}'
5861 # If no C compiler was specified, use CC.
5862 LTCC=${LTCC-"$CC"}
5864 # If no C compiler flags were specified, use CFLAGS.
5865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5867 # Allow CC to be a program name with arguments.
5868 compiler=$CC
5870 # Save the default compiler, since it gets overwritten when the other
5871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5872 compiler_DEFAULT=$CC
5874 # save warnings/boilerplate of simple test code
5875 ac_outfile=conftest.$ac_objext
5876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5878 _lt_compiler_boilerplate=`cat conftest.err`
5879 $RM conftest*
5881 ac_outfile=conftest.$ac_objext
5882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5884 _lt_linker_boilerplate=`cat conftest.err`
5885 $RM conftest*
5888 ## CAVEAT EMPTOR:
5889 ## There is no encapsulation within the following macros, do not change
5890 ## the running order or otherwise move them around unless you know exactly
5891 ## what you are doing...
5892 if test -n "$compiler"; then
5894 lt_prog_compiler_no_builtin_flag=
5896 if test "$GCC" = yes; then
5897 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5899 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5900 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 lt_cv_prog_compiler_rtti_exceptions=no
5905 ac_outfile=conftest.$ac_objext
5906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5907 lt_compiler_flag="-fno-rtti -fno-exceptions"
5908 # Insert the option either (1) after the last *FLAGS variable, or
5909 # (2) before a word containing "conftest.", or (3) at the end.
5910 # Note that $ac_compile itself does not contain backslashes and begins
5911 # with a dollar sign (not a hyphen), so the echo should work correctly.
5912 # The option is referenced via a variable to avoid confusing sed.
5913 lt_compile=`echo "$ac_compile" | $SED \
5914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5916 -e 's:$: $lt_compiler_flag:'`
5917 (eval echo "\"\$as_me:5917: $lt_compile\"" >&5)
5918 (eval "$lt_compile" 2>conftest.err)
5919 ac_status=$?
5920 cat conftest.err >&5
5921 echo "$as_me:5921: \$? = $ac_status" >&5
5922 if (exit $ac_status) && test -s "$ac_outfile"; then
5923 # The compiler can only warn and ignore the option if not recognized
5924 # So say no if there are warnings other than the usual output.
5925 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5928 lt_cv_prog_compiler_rtti_exceptions=yes
5931 $RM conftest*
5934 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5935 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5939 else
5950 lt_prog_compiler_wl=
5951 lt_prog_compiler_pic=
5952 lt_prog_compiler_static=
5954 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5955 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5957 if test "$GCC" = yes; then
5958 lt_prog_compiler_wl='-Wl,'
5959 lt_prog_compiler_static='-static'
5961 case $host_os in
5962 aix*)
5963 # All AIX code is PIC.
5964 if test "$host_cpu" = ia64; then
5965 # AIX 5 now supports IA64 processor
5966 lt_prog_compiler_static='-Bstatic'
5970 amigaos*)
5971 if test "$host_cpu" = m68k; then
5972 # FIXME: we need at least 68020 code to build shared libraries, but
5973 # adding the `-m68020' flag to GCC prevents building anything better,
5974 # like `-m68040'.
5975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5979 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5980 # PIC is the default for these OSes.
5983 mingw* | cygwin* | pw32* | os2*)
5984 # This hack is so that the source file can tell whether it is being
5985 # built for inclusion in a dll (and should export symbols for example).
5986 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5987 # (--disable-auto-import) libraries
5988 lt_prog_compiler_pic='-DDLL_EXPORT'
5991 darwin* | rhapsody*)
5992 # PIC is the default on this platform
5993 # Common symbols not allowed in MH_DYLIB files
5994 lt_prog_compiler_pic='-fno-common'
5997 hpux*)
5998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5999 # not for PA HP-UX.
6000 case $host_cpu in
6001 hppa*64*|ia64*)
6002 # +Z the default
6005 lt_prog_compiler_pic='-fPIC'
6007 esac
6010 interix[3-9]*)
6011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6012 # Instead, we relocate shared libraries at runtime.
6015 msdosdjgpp*)
6016 # Just because we use GCC doesn't mean we suddenly get shared libraries
6017 # on systems that don't support them.
6018 lt_prog_compiler_can_build_shared=no
6019 enable_shared=no
6022 *nto* | *qnx*)
6023 # QNX uses GNU C++, but need to define -shared option too, otherwise
6024 # it will coredump.
6025 lt_prog_compiler_pic='-fPIC -shared'
6028 sysv4*MP*)
6029 if test -d /usr/nec; then
6030 lt_prog_compiler_pic=-Kconform_pic
6035 lt_prog_compiler_pic='-fPIC'
6037 esac
6038 else
6039 # PORTME Check for flag to pass linker flags through the system compiler.
6040 case $host_os in
6041 aix*)
6042 lt_prog_compiler_wl='-Wl,'
6043 if test "$host_cpu" = ia64; then
6044 # AIX 5 now supports IA64 processor
6045 lt_prog_compiler_static='-Bstatic'
6046 else
6047 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6050 darwin*)
6051 # PIC is the default on this platform
6052 # Common symbols not allowed in MH_DYLIB files
6053 case $cc_basename in
6054 xlc*)
6055 lt_prog_compiler_pic='-qnocommon'
6056 lt_prog_compiler_wl='-Wl,'
6058 esac
6061 mingw* | cygwin* | pw32* | os2*)
6062 # This hack is so that the source file can tell whether it is being
6063 # built for inclusion in a dll (and should export symbols for example).
6064 lt_prog_compiler_pic='-DDLL_EXPORT'
6067 hpux9* | hpux10* | hpux11*)
6068 lt_prog_compiler_wl='-Wl,'
6069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6070 # not for PA HP-UX.
6071 case $host_cpu in
6072 hppa*64*|ia64*)
6073 # +Z the default
6076 lt_prog_compiler_pic='+Z'
6078 esac
6079 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6080 lt_prog_compiler_static='${wl}-a ${wl}archive'
6083 irix5* | irix6* | nonstopux*)
6084 lt_prog_compiler_wl='-Wl,'
6085 # PIC (with -KPIC) is the default.
6086 lt_prog_compiler_static='-non_shared'
6089 linux* | k*bsd*-gnu)
6090 case $cc_basename in
6091 icc* | ecc*)
6092 lt_prog_compiler_wl='-Wl,'
6093 lt_prog_compiler_pic='-KPIC'
6094 lt_prog_compiler_static='-static'
6096 pgcc* | pgf77* | pgf90* | pgf95*)
6097 # Portland Group compilers (*not* the Pentium gcc compiler,
6098 # which looks to be a dead project)
6099 lt_prog_compiler_wl='-Wl,'
6100 lt_prog_compiler_pic='-fpic'
6101 lt_prog_compiler_static='-Bstatic'
6103 ccc*)
6104 lt_prog_compiler_wl='-Wl,'
6105 # All Alpha code is PIC.
6106 lt_prog_compiler_static='-non_shared'
6109 case `$CC -V 2>&1 | sed 5q` in
6110 *Sun\ C*)
6111 # Sun C 5.9
6112 lt_prog_compiler_pic='-KPIC'
6113 lt_prog_compiler_static='-Bstatic'
6114 lt_prog_compiler_wl='-Wl,'
6116 *Sun\ F*)
6117 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6118 lt_prog_compiler_pic='-KPIC'
6119 lt_prog_compiler_static='-Bstatic'
6120 lt_prog_compiler_wl=''
6122 esac
6124 esac
6127 newsos6)
6128 lt_prog_compiler_pic='-KPIC'
6129 lt_prog_compiler_static='-Bstatic'
6132 *nto* | *qnx*)
6133 # QNX uses GNU C++, but need to define -shared option too, otherwise
6134 # it will coredump.
6135 lt_prog_compiler_pic='-fPIC -shared'
6138 osf3* | osf4* | osf5*)
6139 lt_prog_compiler_wl='-Wl,'
6140 # All OSF/1 code is PIC.
6141 lt_prog_compiler_static='-non_shared'
6144 rdos*)
6145 lt_prog_compiler_static='-non_shared'
6148 solaris*)
6149 lt_prog_compiler_pic='-KPIC'
6150 lt_prog_compiler_static='-Bstatic'
6151 case $cc_basename in
6152 f77* | f90* | f95*)
6153 lt_prog_compiler_wl='-Qoption ld ';;
6155 lt_prog_compiler_wl='-Wl,';;
6156 esac
6159 sunos4*)
6160 lt_prog_compiler_wl='-Qoption ld '
6161 lt_prog_compiler_pic='-PIC'
6162 lt_prog_compiler_static='-Bstatic'
6165 sysv4 | sysv4.2uw2* | sysv4.3*)
6166 lt_prog_compiler_wl='-Wl,'
6167 lt_prog_compiler_pic='-KPIC'
6168 lt_prog_compiler_static='-Bstatic'
6171 sysv4*MP*)
6172 if test -d /usr/nec ;then
6173 lt_prog_compiler_pic='-Kconform_pic'
6174 lt_prog_compiler_static='-Bstatic'
6178 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6179 lt_prog_compiler_wl='-Wl,'
6180 lt_prog_compiler_pic='-KPIC'
6181 lt_prog_compiler_static='-Bstatic'
6184 unicos*)
6185 lt_prog_compiler_wl='-Wl,'
6186 lt_prog_compiler_can_build_shared=no
6189 uts4*)
6190 lt_prog_compiler_pic='-pic'
6191 lt_prog_compiler_static='-Bstatic'
6195 lt_prog_compiler_can_build_shared=no
6197 esac
6200 case $host_os in
6201 # For platforms which do not support PIC, -DPIC is meaningless:
6202 *djgpp*)
6203 lt_prog_compiler_pic=
6206 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6208 esac
6209 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6210 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6218 # Check to make sure the PIC flag actually works.
6220 if test -n "$lt_prog_compiler_pic"; then
6221 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6223 if test "${lt_prog_compiler_pic_works+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 lt_prog_compiler_pic_works=no
6227 ac_outfile=conftest.$ac_objext
6228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6229 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6230 # Insert the option either (1) after the last *FLAGS variable, or
6231 # (2) before a word containing "conftest.", or (3) at the end.
6232 # Note that $ac_compile itself does not contain backslashes and begins
6233 # with a dollar sign (not a hyphen), so the echo should work correctly.
6234 # The option is referenced via a variable to avoid confusing sed.
6235 lt_compile=`echo "$ac_compile" | $SED \
6236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6238 -e 's:$: $lt_compiler_flag:'`
6239 (eval echo "\"\$as_me:6239: $lt_compile\"" >&5)
6240 (eval "$lt_compile" 2>conftest.err)
6241 ac_status=$?
6242 cat conftest.err >&5
6243 echo "$as_me:6243: \$? = $ac_status" >&5
6244 if (exit $ac_status) && test -s "$ac_outfile"; then
6245 # The compiler can only warn and ignore the option if not recognized
6246 # So say no if there are warnings other than the usual output.
6247 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6250 lt_prog_compiler_pic_works=yes
6253 $RM conftest*
6256 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6257 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6259 if test x"$lt_prog_compiler_pic_works" = xyes; then
6260 case $lt_prog_compiler_pic in
6261 "" | " "*) ;;
6262 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6263 esac
6264 else
6265 lt_prog_compiler_pic=
6266 lt_prog_compiler_can_build_shared=no
6277 # Check to make sure the static flag actually works.
6279 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6280 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6281 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6282 if test "${lt_prog_compiler_static_works+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 lt_prog_compiler_static_works=no
6286 save_LDFLAGS="$LDFLAGS"
6287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6290 # The linker can only warn and ignore the option if not recognized
6291 # So say no if there are warnings
6292 if test -s conftest.err; then
6293 # Append any errors to the config.log.
6294 cat conftest.err 1>&5
6295 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6297 if diff conftest.exp conftest.er2 >/dev/null; then
6298 lt_prog_compiler_static_works=yes
6300 else
6301 lt_prog_compiler_static_works=yes
6304 $RM conftest*
6305 LDFLAGS="$save_LDFLAGS"
6308 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6309 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6311 if test x"$lt_prog_compiler_static_works" = xyes; then
6313 else
6314 lt_prog_compiler_static=
6323 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6324 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6325 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 lt_cv_prog_compiler_c_o=no
6329 $RM -r conftest 2>/dev/null
6330 mkdir conftest
6331 cd conftest
6332 mkdir out
6333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6335 lt_compiler_flag="-o out/conftest2.$ac_objext"
6336 # Insert the option either (1) after the last *FLAGS variable, or
6337 # (2) before a word containing "conftest.", or (3) at the end.
6338 # Note that $ac_compile itself does not contain backslashes and begins
6339 # with a dollar sign (not a hyphen), so the echo should work correctly.
6340 lt_compile=`echo "$ac_compile" | $SED \
6341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6343 -e 's:$: $lt_compiler_flag:'`
6344 (eval echo "\"\$as_me:6344: $lt_compile\"" >&5)
6345 (eval "$lt_compile" 2>out/conftest.err)
6346 ac_status=$?
6347 cat out/conftest.err >&5
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6350 then
6351 # The compiler can only warn and ignore the option if not recognized
6352 # So say no if there are warnings
6353 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6356 lt_cv_prog_compiler_c_o=yes
6359 chmod u+w . 2>&5
6360 $RM conftest*
6361 # SGI C++ compiler will create directory out/ii_files/ for
6362 # template instantiation
6363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6364 $RM out/* && rmdir out
6365 cd ..
6366 $RM -r conftest
6367 $RM conftest*
6370 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6371 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6378 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6379 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6380 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 lt_cv_prog_compiler_c_o=no
6384 $RM -r conftest 2>/dev/null
6385 mkdir conftest
6386 cd conftest
6387 mkdir out
6388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6390 lt_compiler_flag="-o out/conftest2.$ac_objext"
6391 # Insert the option either (1) after the last *FLAGS variable, or
6392 # (2) before a word containing "conftest.", or (3) at the end.
6393 # Note that $ac_compile itself does not contain backslashes and begins
6394 # with a dollar sign (not a hyphen), so the echo should work correctly.
6395 lt_compile=`echo "$ac_compile" | $SED \
6396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6398 -e 's:$: $lt_compiler_flag:'`
6399 (eval echo "\"\$as_me:6399: $lt_compile\"" >&5)
6400 (eval "$lt_compile" 2>out/conftest.err)
6401 ac_status=$?
6402 cat out/conftest.err >&5
6403 echo "$as_me:6403: \$? = $ac_status" >&5
6404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6405 then
6406 # The compiler can only warn and ignore the option if not recognized
6407 # So say no if there are warnings
6408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6411 lt_cv_prog_compiler_c_o=yes
6414 chmod u+w . 2>&5
6415 $RM conftest*
6416 # SGI C++ compiler will create directory out/ii_files/ for
6417 # template instantiation
6418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6419 $RM out/* && rmdir out
6420 cd ..
6421 $RM -r conftest
6422 $RM conftest*
6425 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6426 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6431 hard_links="nottested"
6432 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6433 # do not overwrite the value of need_locks provided by the user
6434 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6435 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6436 hard_links=yes
6437 $RM conftest*
6438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6439 touch conftest.a
6440 ln conftest.a conftest.b 2>&5 || hard_links=no
6441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6442 echo "$as_me:$LINENO: result: $hard_links" >&5
6443 echo "${ECHO_T}$hard_links" >&6
6444 if test "$hard_links" = no; then
6445 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6446 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6447 need_locks=warn
6449 else
6450 need_locks=no
6458 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6459 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6461 runpath_var=
6462 allow_undefined_flag=
6463 always_export_symbols=no
6464 archive_cmds=
6465 archive_expsym_cmds=
6466 compiler_needs_object=no
6467 enable_shared_with_static_runtimes=no
6468 export_dynamic_flag_spec=
6469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6470 hardcode_automatic=no
6471 hardcode_direct=no
6472 hardcode_direct_absolute=no
6473 hardcode_libdir_flag_spec=
6474 hardcode_libdir_flag_spec_ld=
6475 hardcode_libdir_separator=
6476 hardcode_minus_L=no
6477 hardcode_shlibpath_var=unsupported
6478 inherit_rpath=no
6479 link_all_deplibs=unknown
6480 module_cmds=
6481 module_expsym_cmds=
6482 old_archive_from_new_cmds=
6483 old_archive_from_expsyms_cmds=
6484 thread_safe_flag_spec=
6485 whole_archive_flag_spec=
6486 # include_expsyms should be a list of space-separated symbols to be *always*
6487 # included in the symbol list
6488 include_expsyms=
6489 # exclude_expsyms can be an extended regexp of symbols to exclude
6490 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6491 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6492 # as well as any symbol that contains `d'.
6493 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6494 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6495 # platforms (ab)use it in PIC code, but their linkers get confused if
6496 # the symbol is explicitly referenced. Since portable code cannot
6497 # rely on this symbol name, it's probably fine to never include it in
6498 # preloaded symbol tables.
6499 extract_expsyms_cmds=
6501 case $host_os in
6502 cygwin* | mingw* | pw32*)
6503 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6504 # When not using gcc, we currently assume that we are using
6505 # Microsoft Visual C++.
6506 if test "$GCC" != yes; then
6507 with_gnu_ld=no
6510 interix*)
6511 # we just hope/assume this is gcc and not c89 (= MSVC++)
6512 with_gnu_ld=yes
6514 openbsd*)
6515 with_gnu_ld=no
6517 esac
6519 ld_shlibs=yes
6520 if test "$with_gnu_ld" = yes; then
6521 # If archive_cmds runs LD, not CC, wlarc should be empty
6522 wlarc='${wl}'
6524 # Set some defaults for GNU ld with shared library support. These
6525 # are reset later if shared libraries are not supported. Putting them
6526 # here allows them to be overridden if necessary.
6527 runpath_var=LD_RUN_PATH
6528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6529 export_dynamic_flag_spec='${wl}--export-dynamic'
6530 # ancient GNU ld didn't support --whole-archive et. al.
6531 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6532 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6533 else
6534 whole_archive_flag_spec=
6536 supports_anon_versioning=no
6537 case `$LD -v 2>&1` in
6538 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6541 *\ 2.11.*) ;; # other 2.11 versions
6542 *) supports_anon_versioning=yes ;;
6543 esac
6545 # See if GNU ld supports shared libraries.
6546 case $host_os in
6547 aix3* | aix4* | aix5*)
6548 # On AIX/PPC, the GNU linker is very broken
6549 if test "$host_cpu" != ia64; then
6550 ld_shlibs=no
6551 cat <<_LT_EOF 1>&2
6553 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6554 *** to be unable to reliably create shared libraries on AIX.
6555 *** Therefore, libtool is disabling shared libraries support. If you
6556 *** really care for shared libraries, you may want to modify your PATH
6557 *** so that a non-GNU linker is found, and then restart.
6559 _LT_EOF
6563 amigaos*)
6564 if test "$host_cpu" = m68k; then
6565 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)'
6566 hardcode_libdir_flag_spec='-L$libdir'
6567 hardcode_minus_L=yes
6570 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6571 # that the semantics of dynamic libraries on AmigaOS, at least up
6572 # to version 4, is to share data among multiple programs linked
6573 # with the same dynamic library. Since this doesn't match the
6574 # behavior of shared libraries on other platforms, we can't use
6575 # them.
6576 ld_shlibs=no
6579 beos*)
6580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6581 allow_undefined_flag=unsupported
6582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6583 # support --undefined. This deserves some investigation. FIXME
6584 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6585 else
6586 ld_shlibs=no
6590 cygwin* | mingw* | pw32*)
6591 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6592 # as there is no search path for DLLs.
6593 hardcode_libdir_flag_spec='-L$libdir'
6594 allow_undefined_flag=unsupported
6595 always_export_symbols=no
6596 enable_shared_with_static_runtimes=yes
6597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6601 # If the export-symbols file already is a .def file (1st line
6602 # is EXPORTS), use it as is; otherwise, prepend...
6603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6604 cp $export_symbols $output_objdir/$soname.def;
6605 else
6606 echo EXPORTS > $output_objdir/$soname.def;
6607 cat $export_symbols >> $output_objdir/$soname.def;
6609 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6610 else
6611 ld_shlibs=no
6615 interix[3-9]*)
6616 hardcode_direct=no
6617 hardcode_shlibpath_var=no
6618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6619 export_dynamic_flag_spec='${wl}-E'
6620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6621 # Instead, shared libraries are loaded at an image base (0x10000000 by
6622 # default) and relocated if they conflict, which is a slow very memory
6623 # consuming and fragmenting process. To avoid this, we pick a random,
6624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6627 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'
6630 gnu* | linux* | tpf* | k*bsd*-gnu)
6631 tmp_diet=no
6632 if test "$host_os" = linux-dietlibc; then
6633 case $cc_basename in
6634 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6635 esac
6637 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6638 && test "$tmp_diet" = no
6639 then
6640 tmp_addflag=
6641 case $cc_basename,$host_cpu in
6642 pgcc*) # Portland Group C compiler
6643 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'
6644 tmp_addflag=' $pic_flag'
6646 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6647 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'
6648 tmp_addflag=' $pic_flag -Mnomain' ;;
6649 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6650 tmp_addflag=' -i_dynamic' ;;
6651 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6652 tmp_addflag=' -i_dynamic -nofor_main' ;;
6653 ifc* | ifort*) # Intel Fortran compiler
6654 tmp_addflag=' -nofor_main' ;;
6655 esac
6656 case `$CC -V 2>&1 | sed 5q` in
6657 *Sun\ C*) # Sun C 5.9
6658 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'
6659 compiler_needs_object=yes
6660 tmp_sharedflag='-G' ;;
6661 *Sun\ F*) # Sun Fortran 8.3
6662 tmp_sharedflag='-G' ;;
6664 tmp_sharedflag='-shared' ;;
6665 esac
6666 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668 if test "x$supports_anon_versioning" = xyes; then
6669 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6670 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6671 echo "local: *; };" >> $output_objdir/$libname.ver~
6672 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6674 else
6675 ld_shlibs=no
6679 netbsd*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6682 wlarc=
6683 else
6684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6689 solaris*)
6690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6691 ld_shlibs=no
6692 cat <<_LT_EOF 1>&2
6694 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6695 *** create shared libraries on Solaris systems. Therefore, libtool
6696 *** is disabling shared libraries support. We urge you to upgrade GNU
6697 *** binutils to release 2.9.1 or newer. Another option is to modify
6698 *** your PATH or compiler configuration so that the native linker is
6699 *** used, and then restart.
6701 _LT_EOF
6702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6705 else
6706 ld_shlibs=no
6710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6711 case `$LD -v 2>&1` in
6712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6713 ld_shlibs=no
6714 cat <<_LT_EOF 1>&2
6716 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6717 *** reliably create shared libraries on SCO systems. Therefore, libtool
6718 *** is disabling shared libraries support. We urge you to upgrade GNU
6719 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6720 *** your PATH or compiler configuration so that the native linker is
6721 *** used, and then restart.
6723 _LT_EOF
6726 # For security reasons, it is highly recommended that you always
6727 # use absolute paths for naming shared libraries, and exclude the
6728 # DT_RUNPATH tag from executables and libraries. But doing so
6729 # requires that you compile everything twice, which is a pain.
6730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6734 else
6735 ld_shlibs=no
6738 esac
6741 sunos4*)
6742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743 wlarc=
6744 hardcode_direct=yes
6745 hardcode_shlibpath_var=no
6749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6752 else
6753 ld_shlibs=no
6756 esac
6758 if test "$ld_shlibs" = no; then
6759 runpath_var=
6760 hardcode_libdir_flag_spec=
6761 export_dynamic_flag_spec=
6762 whole_archive_flag_spec=
6764 else
6765 # PORTME fill in a description of your system's linker (not GNU ld)
6766 case $host_os in
6767 aix3*)
6768 allow_undefined_flag=unsupported
6769 always_export_symbols=yes
6770 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'
6771 # Note: this linker hardcodes the directories in LIBPATH if there
6772 # are no directories specified by -L.
6773 hardcode_minus_L=yes
6774 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6775 # Neither direct hardcoding nor static linking is supported with a
6776 # broken collect2.
6777 hardcode_direct=unsupported
6781 aix4* | aix5*)
6782 if test "$host_cpu" = ia64; then
6783 # On IA64, the linker does run time linking by default, so we don't
6784 # have to do anything special.
6785 aix_use_runtimelinking=no
6786 exp_sym_flag='-Bexport'
6787 no_entry_flag=""
6788 else
6789 # If we're using GNU nm, then we don't want the "-C" option.
6790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6791 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6792 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'
6793 else
6794 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'
6796 aix_use_runtimelinking=no
6798 # Test if we are trying to use run time linking or normal
6799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6800 # need to do runtime linking.
6801 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6802 for ld_flag in $LDFLAGS; do
6803 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6804 aix_use_runtimelinking=yes
6805 break
6807 done
6809 esac
6811 exp_sym_flag='-bexport'
6812 no_entry_flag='-bnoentry'
6815 # When large executables or shared objects are built, AIX ld can
6816 # have problems creating the table of contents. If linking a library
6817 # or program results in "error TOC overflow" add -mminimal-toc to
6818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6821 archive_cmds=''
6822 hardcode_direct=yes
6823 hardcode_direct_absolute=yes
6824 hardcode_libdir_separator=':'
6825 link_all_deplibs=yes
6826 file_list_spec='${wl}-f,'
6828 if test "$GCC" = yes; then
6829 case $host_os in aix4.[012]|aix4.[012].*)
6830 # We only want to do this on AIX 4.2 and lower, the check
6831 # below for broken collect2 doesn't work under 4.3+
6832 collect2name=`${CC} -print-prog-name=collect2`
6833 if test -f "$collect2name" &&
6834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6835 then
6836 # We have reworked collect2
6838 else
6839 # We have old collect2
6840 hardcode_direct=unsupported
6841 # It fails to find uninstalled libraries when the uninstalled
6842 # path is not listed in the libpath. Setting hardcode_minus_L
6843 # to unsupported forces relinking
6844 hardcode_minus_L=yes
6845 hardcode_libdir_flag_spec='-L$libdir'
6846 hardcode_libdir_separator=
6849 esac
6850 shared_flag='-shared'
6851 if test "$aix_use_runtimelinking" = yes; then
6852 shared_flag="$shared_flag "'${wl}-G'
6854 else
6855 # not using gcc
6856 if test "$host_cpu" = ia64; then
6857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6858 # chokes on -Wl,-G. The following line is correct:
6859 shared_flag='-G'
6860 else
6861 if test "$aix_use_runtimelinking" = yes; then
6862 shared_flag='${wl}-G'
6863 else
6864 shared_flag='${wl}-bM:SRE'
6869 # It seems that -bexpall does not export symbols beginning with
6870 # underscore (_), so it is better to generate a list of symbols to export.
6871 always_export_symbols=yes
6872 if test "$aix_use_runtimelinking" = yes; then
6873 # Warning - without using the other runtime loading flags (-brtl),
6874 # -berok will link without error, but may produce a broken library.
6875 allow_undefined_flag='-berok'
6876 # Determine the default libpath from the value encoded in an
6877 # empty executable.
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6886 main ()
6890 return 0;
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6916 lt_aix_libpath_sed='
6917 /Import File Strings/,/^$/ {
6918 /^0/ {
6919 s/^0 *\(.*\)$/\1/
6923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6924 # Check for a 64-bit object if we didn't find anything.
6925 if test -z "$aix_libpath"; then
6926 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -f conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
6935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6937 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6938 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"
6939 else
6940 if test "$host_cpu" = ia64; then
6941 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6942 allow_undefined_flag="-z nodefs"
6943 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"
6944 else
6945 # Determine the default libpath from the value encoded in an
6946 # empty executable.
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6955 main ()
6959 return 0;
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -z "$ac_c_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6985 lt_aix_libpath_sed='
6986 /Import File Strings/,/^$/ {
6987 /^0/ {
6988 s/^0 *\(.*\)$/\1/
6992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6993 # Check for a 64-bit object if we didn't find anything.
6994 if test -z "$aix_libpath"; then
6995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7002 rm -f conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
7004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7007 # Warning - without using the other run time loading flags,
7008 # -berok will link without error, but may produce a broken library.
7009 no_undefined_flag=' ${wl}-bernotok'
7010 allow_undefined_flag=' ${wl}-berok'
7011 # Exported symbols can be pulled into shared objects from archives
7012 whole_archive_flag_spec='$convenience'
7013 archive_cmds_need_lc=yes
7014 # This is similar to how AIX traditionally builds its shared libraries.
7015 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'
7020 amigaos*)
7021 if test "$host_cpu" = m68k; then
7022 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)'
7023 hardcode_libdir_flag_spec='-L$libdir'
7024 hardcode_minus_L=yes
7026 # see comment about different semantics on the GNU ld section
7027 ld_shlibs=no
7030 bsdi[45]*)
7031 export_dynamic_flag_spec=-rdynamic
7034 cygwin* | mingw* | pw32*)
7035 # When not using gcc, we currently assume that we are using
7036 # Microsoft Visual C++.
7037 # hardcode_libdir_flag_spec is actually meaningless, as there is
7038 # no search path for DLLs.
7039 hardcode_libdir_flag_spec=' '
7040 allow_undefined_flag=unsupported
7041 # Tell ltmain to make .lib files, not .a files.
7042 libext=lib
7043 # Tell ltmain to make .dll files, not .so files.
7044 shrext_cmds=".dll"
7045 # FIXME: Setting linknames here is a bad hack.
7046 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7047 # The linker will automatically build a .lib file if we build a DLL.
7048 old_archive_from_new_cmds='true'
7049 # FIXME: Should let the user specify the lib program.
7050 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7051 fix_srcfile_path='`cygpath -w "$srcfile"`'
7052 enable_shared_with_static_runtimes=yes
7055 darwin* | rhapsody*)
7056 case $host_os in
7057 rhapsody* | darwin1.[012])
7058 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7060 *) # Darwin 1.3 on
7061 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7062 10.[012])
7063 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7065 10.*)
7066 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7068 esac
7070 esac
7071 archive_cmds_need_lc=no
7072 hardcode_direct=no
7073 hardcode_automatic=yes
7074 hardcode_shlibpath_var=unsupported
7075 whole_archive_flag_spec=''
7076 link_all_deplibs=yes
7077 if test "$GCC" = yes ; then
7078 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 lt_cv_apple_cc_single_mod=no
7082 if test -z "${LT_MULTI_MODULE}"; then
7083 # By default we will add the -single_module flag. You can override
7084 # by either setting the environment variable LT_MULTI_MODULE
7085 # non-empty at configure time, or by adding -multi-module to the
7086 # link flags.
7087 echo "int foo(void){return 1;}" > conftest.c
7088 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7089 -dynamiclib ${wl}-single_module conftest.c
7090 if test -f libconftest.dylib; then
7091 lt_cv_apple_cc_single_mod=yes
7092 rm libconftest.dylib
7094 rm conftest.$ac_ext
7098 output_verbose_link_cmd=echo
7099 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7100 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7101 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}'
7102 else
7103 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7104 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}'
7106 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7107 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}'
7108 else
7109 case $cc_basename in
7110 xlc*)
7111 output_verbose_link_cmd=echo
7112 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7113 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7115 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}'
7116 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}'
7119 ld_shlibs=no
7121 esac
7125 dgux*)
7126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7127 hardcode_libdir_flag_spec='-L$libdir'
7128 hardcode_shlibpath_var=no
7131 freebsd1*)
7132 ld_shlibs=no
7135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7136 # support. Future versions do this automatically, but an explicit c++rt0.o
7137 # does not break anything, and helps significantly (at the cost of a little
7138 # extra space).
7139 freebsd2.2*)
7140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7141 hardcode_libdir_flag_spec='-R$libdir'
7142 hardcode_direct=yes
7143 hardcode_shlibpath_var=no
7146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7147 freebsd2*)
7148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7149 hardcode_direct=yes
7150 hardcode_minus_L=yes
7151 hardcode_shlibpath_var=no
7154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7155 freebsd* | dragonfly*)
7156 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7157 hardcode_libdir_flag_spec='-R$libdir'
7158 hardcode_direct=yes
7159 hardcode_shlibpath_var=no
7162 hpux9*)
7163 if test "$GCC" = yes; then
7164 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'
7165 else
7166 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'
7168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7169 hardcode_libdir_separator=:
7170 hardcode_direct=yes
7172 # hardcode_minus_L: Not really in the search PATH,
7173 # but as the default location of the library.
7174 hardcode_minus_L=yes
7175 export_dynamic_flag_spec='${wl}-E'
7178 hpux10*)
7179 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7181 else
7182 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7184 if test "$with_gnu_ld" = no; then
7185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7186 hardcode_libdir_flag_spec_ld='+b $libdir'
7187 hardcode_libdir_separator=:
7188 hardcode_direct=yes
7189 hardcode_direct_absolute=yes
7190 export_dynamic_flag_spec='${wl}-E'
7191 # hardcode_minus_L: Not really in the search PATH,
7192 # but as the default location of the library.
7193 hardcode_minus_L=yes
7197 hpux11*)
7198 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7199 case $host_cpu in
7200 hppa*64*)
7201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203 ia64*)
7204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7207 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7209 esac
7210 else
7211 case $host_cpu in
7212 hppa*64*)
7213 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7215 ia64*)
7216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7221 esac
7223 if test "$with_gnu_ld" = no; then
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_separator=:
7227 case $host_cpu in
7228 hppa*64*|ia64*)
7229 hardcode_direct=no
7230 hardcode_shlibpath_var=no
7233 hardcode_direct=yes
7234 hardcode_direct_absolute=yes
7235 export_dynamic_flag_spec='${wl}-E'
7237 # hardcode_minus_L: Not really in the search PATH,
7238 # but as the default location of the library.
7239 hardcode_minus_L=yes
7241 esac
7245 irix5* | irix6* | nonstopux*)
7246 if test "$GCC" = yes; then
7247 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'
7248 # Try to use the -exported_symbol ld option, if it does not
7249 # work, assume that -exports_file does not work either and
7250 # implicitly export all symbols.
7251 save_LDFLAGS="$LDFLAGS"
7252 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7253 cat >conftest.$ac_ext <<_ACEOF
7254 int foo(void) {}
7255 _ACEOF
7256 rm -f conftest.$ac_objext conftest$ac_exeext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258 (eval $ac_link) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest$ac_exeext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 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'
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7285 rm -f conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LDFLAGS="$save_LDFLAGS"
7288 else
7289 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'
7290 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'
7292 archive_cmds_need_lc='no'
7293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7294 hardcode_libdir_separator=:
7295 inherit_rpath=yes
7296 link_all_deplibs=yes
7299 netbsd*)
7300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7302 else
7303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7305 hardcode_libdir_flag_spec='-R$libdir'
7306 hardcode_direct=yes
7307 hardcode_shlibpath_var=no
7310 newsos6)
7311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312 hardcode_direct=yes
7313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314 hardcode_libdir_separator=:
7315 hardcode_shlibpath_var=no
7318 *nto* | *qnx*)
7321 openbsd*)
7322 hardcode_direct=yes
7323 hardcode_shlibpath_var=no
7324 hardcode_direct_absolute=yes
7325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7329 export_dynamic_flag_spec='${wl}-E'
7330 else
7331 case $host_os in
7332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_libdir_flag_spec='-R$libdir'
7337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7340 esac
7344 os2*)
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_minus_L=yes
7347 allow_undefined_flag=unsupported
7348 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'
7349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7352 osf3*)
7353 if test "$GCC" = yes; then
7354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7355 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'
7356 else
7357 allow_undefined_flag=' -expect_unresolved \*'
7358 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'
7360 archive_cmds_need_lc='no'
7361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7362 hardcode_libdir_separator=:
7365 osf4* | osf5*) # as osf3* with the addition of -msym flag
7366 if test "$GCC" = yes; then
7367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7368 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'
7369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7370 else
7371 allow_undefined_flag=' -expect_unresolved \*'
7372 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'
7373 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~
7374 $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'
7376 # Both c and cxx compiler support -rpath directly
7377 hardcode_libdir_flag_spec='-rpath $libdir'
7379 archive_cmds_need_lc='no'
7380 hardcode_libdir_separator=:
7383 solaris*)
7384 no_undefined_flag=' -z defs'
7385 if test "$GCC" = yes; then
7386 wlarc='${wl}'
7387 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7389 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7390 else
7391 case `$CC -V 2>&1` in
7392 *"Compilers 5.0"*)
7393 wlarc=''
7394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7399 wlarc='${wl}'
7400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7404 esac
7406 hardcode_libdir_flag_spec='-R$libdir'
7407 hardcode_shlibpath_var=no
7408 case $host_os in
7409 solaris2.[0-5] | solaris2.[0-5].*) ;;
7411 # The compiler driver will combine and reorder linker options,
7412 # but understands `-z linker_flag'. GCC discards it without `$wl',
7413 # but is careful enough not to reorder.
7414 # Supported since Solaris 2.6 (maybe 2.5.1?)
7415 if test "$GCC" = yes; then
7416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7417 else
7418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7421 esac
7422 link_all_deplibs=yes
7425 sunos4*)
7426 if test "x$host_vendor" = xsequent; then
7427 # Use $CC to link under sequent, because it throws in some extra .o
7428 # files that make .init and .fini sections work.
7429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7430 else
7431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7433 hardcode_libdir_flag_spec='-L$libdir'
7434 hardcode_direct=yes
7435 hardcode_minus_L=yes
7436 hardcode_shlibpath_var=no
7439 sysv4)
7440 case $host_vendor in
7441 sni)
7442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_direct=yes # is this really true???
7445 siemens)
7446 ## LD is ld it makes a PLAMLIB
7447 ## CC just makes a GrossModule.
7448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7449 reload_cmds='$CC -r -o $output$reload_objs'
7450 hardcode_direct=no
7452 motorola)
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7456 esac
7457 runpath_var='LD_RUN_PATH'
7458 hardcode_shlibpath_var=no
7461 sysv4.3*)
7462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7463 hardcode_shlibpath_var=no
7464 export_dynamic_flag_spec='-Bexport'
7467 sysv4*MP*)
7468 if test -d /usr/nec; then
7469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470 hardcode_shlibpath_var=no
7471 runpath_var=LD_RUN_PATH
7472 hardcode_runpath_var=yes
7473 ld_shlibs=yes
7477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7478 no_undefined_flag='${wl}-z,text'
7479 archive_cmds_need_lc=no
7480 hardcode_shlibpath_var=no
7481 runpath_var='LD_RUN_PATH'
7483 if test "$GCC" = yes; then
7484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 else
7487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7492 sysv5* | sco3.2v5* | sco5v6*)
7493 # Note: We can NOT use -z defs as we might desire, because we do not
7494 # link with -lc, and that would cause any symbols used from libc to
7495 # always be unresolved, which means just about no library would
7496 # ever link correctly. If we're not using GNU ld we use -z text
7497 # though, which does catch some bad symbols but isn't as heavy-handed
7498 # as -z defs.
7499 no_undefined_flag='${wl}-z,text'
7500 allow_undefined_flag='${wl}-z,nodefs'
7501 archive_cmds_need_lc=no
7502 hardcode_shlibpath_var=no
7503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7504 hardcode_libdir_separator=':'
7505 link_all_deplibs=yes
7506 export_dynamic_flag_spec='${wl}-Bexport'
7507 runpath_var='LD_RUN_PATH'
7509 if test "$GCC" = yes; then
7510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 else
7513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7518 uts4*)
7519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7520 hardcode_libdir_flag_spec='-L$libdir'
7521 hardcode_shlibpath_var=no
7525 ld_shlibs=no
7527 esac
7529 if test x$host_vendor = xsni; then
7530 case $host in
7531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7532 export_dynamic_flag_spec='${wl}-Blargedynsym'
7534 esac
7538 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7539 echo "${ECHO_T}$ld_shlibs" >&6
7540 test "$ld_shlibs" = no && can_build_shared=no
7542 with_gnu_ld=$with_gnu_ld
7559 # Do we need to explicitly link libc?
7561 case "x$archive_cmds_need_lc" in
7562 x|xyes)
7563 # Assume -lc should be added
7564 archive_cmds_need_lc=yes
7566 if test "$enable_shared" = yes && test "$GCC" = yes; then
7567 case $archive_cmds in
7568 *'~'*)
7569 # FIXME: we may have to deal with multi-command sequences.
7571 '$CC '*)
7572 # Test whether the compiler implicitly links with -lc since on some
7573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7574 # to ld, don't add -lc before -lgcc.
7575 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7576 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7577 $RM conftest*
7578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7581 (eval $ac_compile) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } 2>conftest.err; then
7585 soname=conftest
7586 lib=conftest
7587 libobjs=conftest.$ac_objext
7588 deplibs=
7589 wl=$lt_prog_compiler_wl
7590 pic_flag=$lt_prog_compiler_pic
7591 compiler_flags=-v
7592 linker_flags=-v
7593 verstring=
7594 output_objdir=.
7595 libname=conftest
7596 lt_save_allow_undefined_flag=$allow_undefined_flag
7597 allow_undefined_flag=
7598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }
7603 then
7604 archive_cmds_need_lc=no
7605 else
7606 archive_cmds_need_lc=yes
7608 allow_undefined_flag=$lt_save_allow_undefined_flag
7609 else
7610 cat conftest.err 1>&5
7612 $RM conftest*
7613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7614 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7616 esac
7619 esac
7777 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7778 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7779 withGCC=$GCC
7780 if test "$withGCC" = yes; then
7781 case $host_os in
7782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7783 *) lt_awk_arg="/^libraries:/" ;;
7784 esac
7785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7786 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7787 # if the path contains ";" then we assume it to be the separator
7788 # otherwise default to the standard path separator (i.e. ":") - it is
7789 # assumed that no part of a normal pathname contains ";" but that should
7790 # okay in the real world where ";" in dirpaths is itself problematic.
7791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7792 else
7793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7795 # Ok, now we have the path, separated by spaces, we can step through it
7796 # and add multilib dir if necessary.
7797 lt_tmp_lt_search_path_spec=
7798 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7799 for lt_sys_path in $lt_search_path_spec; do
7800 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7802 else
7803 test -d "$lt_sys_path" && \
7804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7806 done
7807 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7808 BEGIN {RS=" "; FS="/|\n";} {
7809 lt_foo="";
7810 lt_count=0;
7811 for (lt_i = NF; lt_i > 0; lt_i--) {
7812 if ($lt_i != "" && $lt_i != ".") {
7813 if ($lt_i == "..") {
7814 lt_count++;
7815 } else {
7816 if (lt_count == 0) {
7817 lt_foo="/" $lt_i lt_foo;
7818 } else {
7819 lt_count--;
7824 if (lt_foo != "") { lt_freq[lt_foo]++; }
7825 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7827 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7828 else
7829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7831 library_names_spec=
7832 libname_spec='lib$name'
7833 soname_spec=
7834 shrext_cmds=".so"
7835 postinstall_cmds=
7836 postuninstall_cmds=
7837 finish_cmds=
7838 finish_eval=
7839 shlibpath_var=
7840 shlibpath_overrides_runpath=unknown
7841 version_type=none
7842 dynamic_linker="$host_os ld.so"
7843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7844 need_lib_prefix=unknown
7845 hardcode_into_libs=no
7847 # when you set need_version to no, make sure it does not cause -set_version
7848 # flags to be left without arguments
7849 need_version=unknown
7851 case $host_os in
7852 aix3*)
7853 version_type=linux
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7855 shlibpath_var=LIBPATH
7857 # AIX 3 has no versioning support, so we append a major version to the name.
7858 soname_spec='${libname}${release}${shared_ext}$major'
7861 aix4* | aix5*)
7862 version_type=linux
7863 need_lib_prefix=no
7864 need_version=no
7865 hardcode_into_libs=yes
7866 if test "$host_cpu" = ia64; then
7867 # AIX 5 supports IA64
7868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7869 shlibpath_var=LD_LIBRARY_PATH
7870 else
7871 # With GCC up to 2.95.x, collect2 would create an import file
7872 # for dependence libraries. The import file would start with
7873 # the line `#! .'. This would cause the generated library to
7874 # depend on `.', always an invalid library. This was fixed in
7875 # development snapshots of GCC prior to 3.0.
7876 case $host_os in
7877 aix4 | aix4.[01] | aix4.[01].*)
7878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7879 echo ' yes '
7880 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7882 else
7883 can_build_shared=no
7886 esac
7887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7888 # soname into executable. Probably we can add versioning support to
7889 # collect2, so additional links can be useful in future.
7890 if test "$aix_use_runtimelinking" = yes; then
7891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7892 # instead of lib<name>.a to let people know that these are not
7893 # typical AIX shared libraries.
7894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895 else
7896 # We preserve .a as extension for shared libraries through AIX4.2
7897 # and later when we are not doing run time linking.
7898 library_names_spec='${libname}${release}.a $libname.a'
7899 soname_spec='${libname}${release}${shared_ext}$major'
7901 shlibpath_var=LIBPATH
7905 amigaos*)
7906 if test "$host_cpu" = m68k; then
7907 library_names_spec='$libname.ixlibrary $libname.a'
7908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7909 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'
7910 else
7911 dynamic_linker=no
7915 beos*)
7916 library_names_spec='${libname}${shared_ext}'
7917 dynamic_linker="$host_os ld.so"
7918 shlibpath_var=LIBRARY_PATH
7921 bsdi[45]*)
7922 version_type=linux
7923 need_version=no
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7927 shlibpath_var=LD_LIBRARY_PATH
7928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7930 # the default ld.so.conf also contains /usr/contrib/lib and
7931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7932 # libtool to hard-code these into programs
7935 cygwin* | mingw* | pw32*)
7936 version_type=windows
7937 shrext_cmds=".dll"
7938 need_version=no
7939 need_lib_prefix=no
7941 case $withGCC,$host_os in
7942 yes,cygwin* | yes,mingw* | yes,pw32*)
7943 library_names_spec='$libname.dll.a'
7944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7945 postinstall_cmds='base_file=`basename \${file}`~
7946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7947 dldir=$destdir/`dirname \$dlpath`~
7948 test -d \$dldir || mkdir -p \$dldir~
7949 $install_prog $dir/$dlname \$dldir/$dlname~
7950 chmod a+x \$dldir/$dlname~
7951 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7952 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7955 dlpath=$dir/\$dldll~
7956 $RM \$dlpath'
7957 shlibpath_overrides_runpath=yes
7959 case $host_os in
7960 cygwin*)
7961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7965 mingw*)
7966 # MinGW DLLs use traditional 'lib' prefix
7967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7968 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7969 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7970 # It is most probably a Windows format PATH printed by
7971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7972 # path with ; separators, and with drive letters. We can handle the
7973 # drive letters (cygwin fileutils understands them), so leave them,
7974 # especially as we might pass files found there to a mingw objdump,
7975 # which wouldn't understand a cygwinified path. Ahh.
7976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7977 else
7978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7981 pw32*)
7982 # pw32 DLLs use 'pw' prefix rather than 'lib'
7983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985 esac
7989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7991 esac
7992 dynamic_linker='Win32 ld.exe'
7993 # FIXME: first we should search . and the directory the executable is in
7994 shlibpath_var=PATH
7997 darwin* | rhapsody*)
7998 dynamic_linker="$host_os dyld"
7999 version_type=darwin
8000 need_lib_prefix=no
8001 need_version=no
8002 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8003 soname_spec='${libname}${release}${major}$shared_ext'
8004 shlibpath_overrides_runpath=yes
8005 shlibpath_var=DYLD_LIBRARY_PATH
8006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8008 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8012 dgux*)
8013 version_type=linux
8014 need_lib_prefix=no
8015 need_version=no
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8017 soname_spec='${libname}${release}${shared_ext}$major'
8018 shlibpath_var=LD_LIBRARY_PATH
8021 freebsd1*)
8022 dynamic_linker=no
8025 freebsd* | dragonfly*)
8026 # DragonFly does not have aout. When/if they implement a new
8027 # versioning mechanism, adjust this.
8028 if test -x /usr/bin/objformat; then
8029 objformat=`/usr/bin/objformat`
8030 else
8031 case $host_os in
8032 freebsd[123]*) objformat=aout ;;
8033 *) objformat=elf ;;
8034 esac
8036 version_type=freebsd-$objformat
8037 case $version_type in
8038 freebsd-elf*)
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8040 need_version=no
8041 need_lib_prefix=no
8043 freebsd-*)
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8045 need_version=yes
8047 esac
8048 shlibpath_var=LD_LIBRARY_PATH
8049 case $host_os in
8050 freebsd2*)
8051 shlibpath_overrides_runpath=yes
8053 freebsd3.[01]* | freebsdelf3.[01]*)
8054 shlibpath_overrides_runpath=yes
8055 hardcode_into_libs=yes
8057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8059 shlibpath_overrides_runpath=no
8060 hardcode_into_libs=yes
8062 *) # from 4.6 on, and DragonFly
8063 shlibpath_overrides_runpath=yes
8064 hardcode_into_libs=yes
8066 esac
8069 gnu*)
8070 version_type=linux
8071 need_lib_prefix=no
8072 need_version=no
8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8074 soname_spec='${libname}${release}${shared_ext}$major'
8075 shlibpath_var=LD_LIBRARY_PATH
8076 hardcode_into_libs=yes
8079 hpux9* | hpux10* | hpux11*)
8080 # Give a soname corresponding to the major version so that dld.sl refuses to
8081 # link against other versions.
8082 version_type=sunos
8083 need_lib_prefix=no
8084 need_version=no
8085 case $host_cpu in
8086 ia64*)
8087 shrext_cmds='.so'
8088 hardcode_into_libs=yes
8089 dynamic_linker="$host_os dld.so"
8090 shlibpath_var=LD_LIBRARY_PATH
8091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8093 soname_spec='${libname}${release}${shared_ext}$major'
8094 if test "X$HPUX_IA64_MODE" = X32; then
8095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8096 else
8097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8101 hppa*64*)
8102 shrext_cmds='.sl'
8103 hardcode_into_libs=yes
8104 dynamic_linker="$host_os dld.sl"
8105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8108 soname_spec='${libname}${release}${shared_ext}$major'
8109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8113 shrext_cmds='.sl'
8114 dynamic_linker="$host_os dld.sl"
8115 shlibpath_var=SHLIB_PATH
8116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8120 esac
8121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8122 postinstall_cmds='chmod 555 $lib'
8125 interix[3-9]*)
8126 version_type=linux
8127 need_lib_prefix=no
8128 need_version=no
8129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8130 soname_spec='${libname}${release}${shared_ext}$major'
8131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8132 shlibpath_var=LD_LIBRARY_PATH
8133 shlibpath_overrides_runpath=no
8134 hardcode_into_libs=yes
8137 irix5* | irix6* | nonstopux*)
8138 case $host_os in
8139 nonstopux*) version_type=nonstopux ;;
8141 if test "$lt_cv_prog_gnu_ld" = yes; then
8142 version_type=linux
8143 else
8144 version_type=irix
8145 fi ;;
8146 esac
8147 need_lib_prefix=no
8148 need_version=no
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8151 case $host_os in
8152 irix5* | nonstopux*)
8153 libsuff= shlibsuff=
8156 case $LD in # libtool.m4 will add one of these switches to LD
8157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8158 libsuff= shlibsuff= libmagic=32-bit;;
8159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8160 libsuff=32 shlibsuff=N32 libmagic=N32;;
8161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8163 *) libsuff= shlibsuff= libmagic=never-match;;
8164 esac
8166 esac
8167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8168 shlibpath_overrides_runpath=no
8169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8171 hardcode_into_libs=yes
8174 # No shared lib support for Linux oldld, aout, or coff.
8175 linux*oldld* | linux*aout* | linux*coff*)
8176 dynamic_linker=no
8179 # This must be Linux ELF.
8180 linux* | k*bsd*-gnu)
8181 version_type=linux
8182 need_lib_prefix=no
8183 need_version=no
8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185 soname_spec='${libname}${release}${shared_ext}$major'
8186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=no
8189 # Some binutils ld are patched to set DT_RUNPATH
8190 save_LDFLAGS=$LDFLAGS
8191 save_libdir=$libdir
8192 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8193 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8202 main ()
8206 return 0;
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8232 shlibpath_overrides_runpath=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8240 rm -f conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LDFLAGS=$save_LDFLAGS
8243 libdir=$save_libdir
8245 # This implies no fast_install, which is unacceptable.
8246 # Some rework will be needed to allow for fast_install
8247 # before this can be enabled.
8248 hardcode_into_libs=yes
8250 # Append ld.so.conf contents to the search path
8251 if test -f /etc/ld.so.conf; then
8252 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' ' '`
8253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8256 # We used to test for /lib/ld.so.1 and disable shared libraries on
8257 # powerpc, because MkLinux only supported shared libraries with the
8258 # GNU dynamic linker. Since this was broken with cross compilers,
8259 # most powerpc-linux boxes support dynamic linking these days and
8260 # people can always --disable-shared, the test was removed, and we
8261 # assume the GNU/Linux dynamic linker is in use.
8262 dynamic_linker='GNU/Linux ld.so'
8265 netbsd*)
8266 version_type=sunos
8267 need_lib_prefix=no
8268 need_version=no
8269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8272 dynamic_linker='NetBSD (a.out) ld.so'
8273 else
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 dynamic_linker='NetBSD ld.elf_so'
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=yes
8280 hardcode_into_libs=yes
8283 newsos6)
8284 version_type=linux
8285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8286 shlibpath_var=LD_LIBRARY_PATH
8287 shlibpath_overrides_runpath=yes
8290 *nto* | *qnx*)
8291 version_type=qnx
8292 need_lib_prefix=no
8293 need_version=no
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 soname_spec='${libname}${release}${shared_ext}$major'
8296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=no
8298 hardcode_into_libs=yes
8299 dynamic_linker='ldqnx.so'
8302 openbsd*)
8303 version_type=sunos
8304 sys_lib_dlsearch_path_spec="/usr/lib"
8305 need_lib_prefix=no
8306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8307 case $host_os in
8308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8309 *) need_version=no ;;
8310 esac
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8315 case $host_os in
8316 openbsd2.[89] | openbsd2.[89].*)
8317 shlibpath_overrides_runpath=no
8320 shlibpath_overrides_runpath=yes
8322 esac
8323 else
8324 shlibpath_overrides_runpath=yes
8328 os2*)
8329 libname_spec='$name'
8330 shrext_cmds=".dll"
8331 need_lib_prefix=no
8332 library_names_spec='$libname${shared_ext} $libname.a'
8333 dynamic_linker='OS/2 ld.exe'
8334 shlibpath_var=LIBPATH
8337 osf3* | osf4* | osf5*)
8338 version_type=osf
8339 need_lib_prefix=no
8340 need_version=no
8341 soname_spec='${libname}${release}${shared_ext}$major'
8342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8343 shlibpath_var=LD_LIBRARY_PATH
8344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8348 rdos*)
8349 dynamic_linker=no
8352 solaris*)
8353 version_type=linux
8354 need_lib_prefix=no
8355 need_version=no
8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8357 soname_spec='${libname}${release}${shared_ext}$major'
8358 shlibpath_var=LD_LIBRARY_PATH
8359 shlibpath_overrides_runpath=yes
8360 hardcode_into_libs=yes
8361 # ldd complains unless libraries are executable
8362 postinstall_cmds='chmod +x $lib'
8365 sunos4*)
8366 version_type=sunos
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 shlibpath_overrides_runpath=yes
8371 if test "$with_gnu_ld" = yes; then
8372 need_lib_prefix=no
8374 need_version=yes
8377 sysv4 | sysv4.3*)
8378 version_type=linux
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 soname_spec='${libname}${release}${shared_ext}$major'
8381 shlibpath_var=LD_LIBRARY_PATH
8382 case $host_vendor in
8383 sni)
8384 shlibpath_overrides_runpath=no
8385 need_lib_prefix=no
8386 runpath_var=LD_RUN_PATH
8388 siemens)
8389 need_lib_prefix=no
8391 motorola)
8392 need_lib_prefix=no
8393 need_version=no
8394 shlibpath_overrides_runpath=no
8395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8397 esac
8400 sysv4*MP*)
8401 if test -d /usr/nec ;then
8402 version_type=linux
8403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8404 soname_spec='$libname${shared_ext}.$major'
8405 shlibpath_var=LD_LIBRARY_PATH
8409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8410 version_type=freebsd-elf
8411 need_lib_prefix=no
8412 need_version=no
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8415 shlibpath_var=LD_LIBRARY_PATH
8416 shlibpath_overrides_runpath=yes
8417 hardcode_into_libs=yes
8418 if test "$with_gnu_ld" = yes; then
8419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8420 else
8421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8422 case $host_os in
8423 sco3.2v5*)
8424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8426 esac
8428 sys_lib_dlsearch_path_spec='/usr/lib'
8431 tpf*)
8432 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8433 version_type=linux
8434 need_lib_prefix=no
8435 need_version=no
8436 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437 shlibpath_var=LD_LIBRARY_PATH
8438 shlibpath_overrides_runpath=no
8439 hardcode_into_libs=yes
8442 uts4*)
8443 version_type=linux
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 shlibpath_var=LD_LIBRARY_PATH
8450 dynamic_linker=no
8452 esac
8453 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8454 echo "${ECHO_T}$dynamic_linker" >&6
8455 test "$dynamic_linker" = no && can_build_shared=no
8457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8458 if test "$GCC" = yes; then
8459 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8548 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8549 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8550 hardcode_action=
8551 if test -n "$hardcode_libdir_flag_spec" ||
8552 test -n "$runpath_var" ||
8553 test "X$hardcode_automatic" = "Xyes" ; then
8555 # We can hardcode non-existent directories.
8556 if test "$hardcode_direct" != no &&
8557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8558 # have to relink, otherwise we might link with an installed library
8559 # when we should be linking with a yet-to-be-installed one
8560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8561 test "$hardcode_minus_L" != no; then
8562 # Linking always hardcodes the temporary library directory.
8563 hardcode_action=relink
8564 else
8565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8566 hardcode_action=immediate
8568 else
8569 # We cannot hardcode anything, or else we can only hardcode existing
8570 # directories.
8571 hardcode_action=unsupported
8573 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8574 echo "${ECHO_T}$hardcode_action" >&6
8576 if test "$hardcode_action" = relink ||
8577 test "$inherit_rpath" = yes; then
8578 # Fast installation is not supported
8579 enable_fast_install=no
8580 elif test "$shlibpath_overrides_runpath" = yes ||
8581 test "$enable_shared" = no; then
8582 # Fast installation is not necessary
8583 enable_fast_install=needless
8591 if test "x$enable_dlopen" != xyes; then
8592 enable_dlopen=unknown
8593 enable_dlopen_self=unknown
8594 enable_dlopen_self_static=unknown
8595 else
8596 lt_cv_dlopen=no
8597 lt_cv_dlopen_libs=
8599 case $host_os in
8600 beos*)
8601 lt_cv_dlopen="load_add_on"
8602 lt_cv_dlopen_libs=
8603 lt_cv_dlopen_self=yes
8606 mingw* | pw32*)
8607 lt_cv_dlopen="LoadLibrary"
8608 lt_cv_dlopen_libs=
8611 cygwin*)
8612 lt_cv_dlopen="dlopen"
8613 lt_cv_dlopen_libs=
8616 darwin*)
8617 # if libdl is installed we need to link against it
8618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 ac_check_lib_save_LIBS=$LIBS
8624 LIBS="-ldl $LIBS"
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char dlopen ();
8640 main ()
8642 dlopen ();
8644 return 0;
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
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); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_dl_dlopen=yes
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_dl_dlopen=no
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8681 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8682 if test $ac_cv_lib_dl_dlopen = yes; then
8683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8684 else
8686 lt_cv_dlopen="dyld"
8687 lt_cv_dlopen_libs=
8688 lt_cv_dlopen_self=yes
8695 echo "$as_me:$LINENO: checking for shl_load" >&5
8696 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8697 if test "${ac_cv_func_shl_load+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700 cat >conftest.$ac_ext <<_ACEOF
8701 /* confdefs.h. */
8702 _ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708 #define shl_load innocuous_shl_load
8710 /* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char shl_load (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8715 #ifdef __STDC__
8716 # include <limits.h>
8717 #else
8718 # include <assert.h>
8719 #endif
8721 #undef shl_load
8723 /* Override any gcc2 internal prototype to avoid an error. */
8724 #ifdef __cplusplus
8725 extern "C"
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730 char shl_load ();
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8735 choke me
8736 #else
8737 char (*f) () = shl_load;
8738 #endif
8739 #ifdef __cplusplus
8741 #endif
8744 main ()
8746 return f != shl_load;
8748 return 0;
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_func_shl_load=yes
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_cv_func_shl_load=no
8780 rm -f conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8784 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8785 if test $ac_cv_func_shl_load = yes; then
8786 lt_cv_dlopen="shl_load"
8787 else
8788 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8789 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8790 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-ldld $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808 char shl_load ();
8810 main ()
8812 shl_load ();
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_lib_dld_shl_load=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_lib_dld_shl_load=no
8846 rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8851 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8852 if test $ac_cv_lib_dld_shl_load = yes; then
8853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8854 else
8855 echo "$as_me:$LINENO: checking for dlopen" >&5
8856 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8857 if test "${ac_cv_func_dlopen+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h. */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8866 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8868 #define dlopen innocuous_dlopen
8870 /* System header to define __stub macros and hopefully few prototypes,
8871 which can conflict with char dlopen (); below.
8872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8873 <limits.h> exists even on freestanding compilers. */
8875 #ifdef __STDC__
8876 # include <limits.h>
8877 #else
8878 # include <assert.h>
8879 #endif
8881 #undef dlopen
8883 /* Override any gcc2 internal prototype to avoid an error. */
8884 #ifdef __cplusplus
8885 extern "C"
8887 #endif
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8890 char dlopen ();
8891 /* The GNU C library defines this for functions which it implements
8892 to always fail with ENOSYS. Some functions are actually named
8893 something starting with __ and the normal name is an alias. */
8894 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8895 choke me
8896 #else
8897 char (*f) () = dlopen;
8898 #endif
8899 #ifdef __cplusplus
8901 #endif
8904 main ()
8906 return f != dlopen;
8908 return 0;
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_func_dlopen=yes
8934 else
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_cv_func_dlopen=no
8940 rm -f conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8943 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8944 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8945 if test $ac_cv_func_dlopen = yes; then
8946 lt_cv_dlopen="dlopen"
8947 else
8948 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 else
8953 ac_check_lib_save_LIBS=$LIBS
8954 LIBS="-ldl $LIBS"
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8962 /* Override any gcc2 internal prototype to avoid an error. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char dlopen ();
8970 main ()
8972 dlopen ();
8974 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_lib_dl_dlopen=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_cv_lib_dl_dlopen=no
9006 rm -f conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS
9010 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9012 if test $ac_cv_lib_dl_dlopen = yes; then
9013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9014 else
9015 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9016 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 ac_check_lib_save_LIBS=$LIBS
9021 LIBS="-lsvld $LIBS"
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9029 /* Override any gcc2 internal prototype to avoid an error. */
9030 #ifdef __cplusplus
9031 extern "C"
9032 #endif
9033 /* We use char because int might match the return type of a gcc2
9034 builtin and then its argument prototype would still apply. */
9035 char dlopen ();
9037 main ()
9039 dlopen ();
9041 return 0;
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_svld_dlopen=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_svld_dlopen=no
9073 rm -f conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075 LIBS=$ac_check_lib_save_LIBS
9077 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9078 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9079 if test $ac_cv_lib_svld_dlopen = yes; then
9080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9081 else
9082 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9083 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9084 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-ldld $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any gcc2 internal prototype to avoid an error. */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102 char dld_link ();
9104 main ()
9106 dld_link ();
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_lib_dld_dld_link=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_lib_dld_dld_link=no
9140 rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9144 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9145 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9146 if test $ac_cv_lib_dld_dld_link = yes; then
9147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9166 esac
9168 if test "x$lt_cv_dlopen" != xno; then
9169 enable_dlopen=yes
9170 else
9171 enable_dlopen=no
9174 case $lt_cv_dlopen in
9175 dlopen)
9176 save_CPPFLAGS="$CPPFLAGS"
9177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9179 save_LDFLAGS="$LDFLAGS"
9180 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9182 save_LIBS="$LIBS"
9183 LIBS="$lt_cv_dlopen_libs $LIBS"
9185 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9186 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9187 if test "${lt_cv_dlopen_self+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 if test "$cross_compiling" = yes; then :
9191 lt_cv_dlopen_self=cross
9192 else
9193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9194 lt_status=$lt_dlunknown
9195 cat > conftest.$ac_ext <<_LT_EOF
9196 #line 9196 "configure"
9197 #include "confdefs.h"
9199 #if HAVE_DLFCN_H
9200 #include <dlfcn.h>
9201 #endif
9203 #include <stdio.h>
9205 #ifdef RTLD_GLOBAL
9206 # define LT_DLGLOBAL RTLD_GLOBAL
9207 #else
9208 # ifdef DL_GLOBAL
9209 # define LT_DLGLOBAL DL_GLOBAL
9210 # else
9211 # define LT_DLGLOBAL 0
9212 # endif
9213 #endif
9215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9216 find out it does not work in some platform. */
9217 #ifndef LT_DLLAZY_OR_NOW
9218 # ifdef RTLD_LAZY
9219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9220 # else
9221 # ifdef DL_LAZY
9222 # define LT_DLLAZY_OR_NOW DL_LAZY
9223 # else
9224 # ifdef RTLD_NOW
9225 # define LT_DLLAZY_OR_NOW RTLD_NOW
9226 # else
9227 # ifdef DL_NOW
9228 # define LT_DLLAZY_OR_NOW DL_NOW
9229 # else
9230 # define LT_DLLAZY_OR_NOW 0
9231 # endif
9232 # endif
9233 # endif
9234 # endif
9235 #endif
9237 #ifdef __cplusplus
9238 extern "C" void exit (int);
9239 #endif
9241 void fnord() { int i=42;}
9242 int main ()
9244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9245 int status = $lt_dlunknown;
9247 if (self)
9249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9251 /* dlclose (self); */
9253 else
9254 puts (dlerror ());
9256 exit (status);
9258 _LT_EOF
9259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260 (eval $ac_link) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9264 (./conftest; exit; ) >&5 2>/dev/null
9265 lt_status=$?
9266 case x$lt_status in
9267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9270 esac
9271 else :
9272 # compilation failed
9273 lt_cv_dlopen_self=no
9276 rm -fr conftest*
9280 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9281 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9283 if test "x$lt_cv_dlopen_self" = xyes; then
9284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9285 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9286 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9287 if test "${lt_cv_dlopen_self_static+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290 if test "$cross_compiling" = yes; then :
9291 lt_cv_dlopen_self_static=cross
9292 else
9293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9294 lt_status=$lt_dlunknown
9295 cat > conftest.$ac_ext <<_LT_EOF
9296 #line 9296 "configure"
9297 #include "confdefs.h"
9299 #if HAVE_DLFCN_H
9300 #include <dlfcn.h>
9301 #endif
9303 #include <stdio.h>
9305 #ifdef RTLD_GLOBAL
9306 # define LT_DLGLOBAL RTLD_GLOBAL
9307 #else
9308 # ifdef DL_GLOBAL
9309 # define LT_DLGLOBAL DL_GLOBAL
9310 # else
9311 # define LT_DLGLOBAL 0
9312 # endif
9313 #endif
9315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9316 find out it does not work in some platform. */
9317 #ifndef LT_DLLAZY_OR_NOW
9318 # ifdef RTLD_LAZY
9319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9320 # else
9321 # ifdef DL_LAZY
9322 # define LT_DLLAZY_OR_NOW DL_LAZY
9323 # else
9324 # ifdef RTLD_NOW
9325 # define LT_DLLAZY_OR_NOW RTLD_NOW
9326 # else
9327 # ifdef DL_NOW
9328 # define LT_DLLAZY_OR_NOW DL_NOW
9329 # else
9330 # define LT_DLLAZY_OR_NOW 0
9331 # endif
9332 # endif
9333 # endif
9334 # endif
9335 #endif
9337 #ifdef __cplusplus
9338 extern "C" void exit (int);
9339 #endif
9341 void fnord() { int i=42;}
9342 int main ()
9344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9345 int status = $lt_dlunknown;
9347 if (self)
9349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9351 /* dlclose (self); */
9353 else
9354 puts (dlerror ());
9356 exit (status);
9358 _LT_EOF
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9364 (./conftest; exit; ) >&5 2>/dev/null
9365 lt_status=$?
9366 case x$lt_status in
9367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9369 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9370 esac
9371 else :
9372 # compilation failed
9373 lt_cv_dlopen_self_static=no
9376 rm -fr conftest*
9380 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9381 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9384 CPPFLAGS="$save_CPPFLAGS"
9385 LDFLAGS="$save_LDFLAGS"
9386 LIBS="$save_LIBS"
9388 esac
9390 case $lt_cv_dlopen_self in
9391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9392 *) enable_dlopen_self=unknown ;;
9393 esac
9395 case $lt_cv_dlopen_self_static in
9396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9397 *) enable_dlopen_self_static=unknown ;;
9398 esac
9417 striplib=
9418 old_striplib=
9419 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9420 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9421 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9423 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9424 echo "$as_me:$LINENO: result: yes" >&5
9425 echo "${ECHO_T}yes" >&6
9426 else
9427 # FIXME - insert some real tests, host_os isn't really good enough
9428 case $host_os in
9429 darwin*)
9430 if test -n "$STRIP" ; then
9431 striplib="$STRIP -x"
9432 old_striplib="$STRIP -S"
9433 echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6
9435 else
9436 echo "$as_me:$LINENO: result: no" >&5
9437 echo "${ECHO_T}no" >&6
9441 echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6
9444 esac
9458 # Report which library types will actually be built
9459 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9461 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9462 echo "${ECHO_T}$can_build_shared" >&6
9464 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9466 test "$can_build_shared" = "no" && enable_shared=no
9468 # On AIX, shared libraries and static libraries use the same namespace, and
9469 # are all built from PIC.
9470 case $host_os in
9471 aix3*)
9472 test "$enable_shared" = yes && enable_static=no
9473 if test -n "$RANLIB"; then
9474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9475 postinstall_cmds='$RANLIB $lib'
9479 aix4* | aix5*)
9480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9481 test "$enable_shared" = yes && enable_static=no
9484 esac
9485 echo "$as_me:$LINENO: result: $enable_shared" >&5
9486 echo "${ECHO_T}$enable_shared" >&6
9488 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9489 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9490 # Make sure either enable_shared or enable_static is yes.
9491 test "$enable_shared" = yes || enable_static=yes
9492 echo "$as_me:$LINENO: result: $enable_static" >&5
9493 echo "${ECHO_T}$enable_static" >&6
9499 ac_ext=c
9500 ac_cpp='$CPP $CPPFLAGS'
9501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9505 CC="$lt_save_CC"
9519 ac_config_commands="$ac_config_commands libtool"
9524 # Only expand once:
9529 # Check whether --with-lib-path or --without-lib-path was given.
9530 if test "${with_lib_path+set}" = set; then
9531 withval="$with_lib_path"
9532 LIB_PATH=$withval
9534 # Check whether --enable-targets or --disable-targets was given.
9535 if test "${enable_targets+set}" = set; then
9536 enableval="$enable_targets"
9537 case "${enableval}" in
9538 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9539 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9540 { (exit 1); exit 1; }; }
9542 no) enable_targets= ;;
9543 *) enable_targets=$enableval ;;
9544 esac
9545 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
9546 if test "${enable_64_bit_bfd+set}" = set; then
9547 enableval="$enable_64_bit_bfd"
9548 case "${enableval}" in
9549 yes) want64=true ;;
9550 no) want64=false ;;
9551 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
9552 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
9553 { (exit 1); exit 1; }; } ;;
9554 esac
9555 else
9556 want64=false
9559 # Check whether --with-sysroot or --without-sysroot was given.
9560 if test "${with_sysroot+set}" = set; then
9561 withval="$with_sysroot"
9563 case ${with_sysroot} in
9564 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9565 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
9566 esac
9568 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9569 use_sysroot=yes
9571 if test "x$prefix" = xNONE; then
9572 test_prefix=/usr/local
9573 else
9574 test_prefix=$prefix
9576 if test "x$exec_prefix" = xNONE; then
9577 test_exec_prefix=$test_prefix
9578 else
9579 test_exec_prefix=$exec_prefix
9581 case ${TARGET_SYSTEM_ROOT} in
9582 "${test_prefix}"|"${test_prefix}/"*|\
9583 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
9584 '${prefix}'|'${prefix}/'*|\
9585 '${exec_prefix}'|'${exec_prefix}/'*)
9586 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9587 TARGET_SYSTEM_ROOT_DEFINE="$t"
9589 esac
9591 else
9593 use_sysroot=no
9594 TARGET_SYSTEM_ROOT=
9595 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
9603 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9605 # Check whether --enable-werror or --disable-werror was given.
9606 if test "${enable_werror+set}" = set; then
9607 enableval="$enable_werror"
9608 case "${enableval}" in
9609 yes | y) ERROR_ON_WARNING="yes" ;;
9610 no | n) ERROR_ON_WARNING="no" ;;
9611 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9612 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9613 { (exit 1); exit 1; }; } ;;
9614 esac
9617 # Enable -Werror by default when using gcc
9618 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9619 ERROR_ON_WARNING=yes
9622 NO_WERROR=
9623 if test "${ERROR_ON_WARNING}" = yes ; then
9624 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9625 NO_WERROR="-Wno-error"
9628 if test "${GCC}" = yes ; then
9629 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9632 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9633 if test "${enable_build_warnings+set}" = set; then
9634 enableval="$enable_build_warnings"
9635 case "${enableval}" in
9636 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9637 no) if test "${GCC}" = yes ; then
9638 WARN_CFLAGS="-w"
9639 fi;;
9640 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9641 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9642 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9643 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9644 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9645 esac
9648 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9649 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9656 ac_config_headers="$ac_config_headers config.h:config.in"
9659 if test -z "$target" ; then
9660 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9661 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9662 { (exit 1); exit 1; }; }
9664 if test -z "$host" ; then
9665 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
9666 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
9667 { (exit 1); exit 1; }; }
9670 # host-specific stuff:
9672 ac_ext=c
9673 ac_cpp='$CPP $CPPFLAGS'
9674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9677 if test -n "$ac_tool_prefix"; then
9678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9680 echo "$as_me:$LINENO: checking for $ac_word" >&5
9681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9682 if test "${ac_cv_prog_CC+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 if test -n "$CC"; then
9686 ac_cv_prog_CC="$CC" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9699 done
9700 done
9704 CC=$ac_cv_prog_CC
9705 if test -n "$CC"; then
9706 echo "$as_me:$LINENO: result: $CC" >&5
9707 echo "${ECHO_T}$CC" >&6
9708 else
9709 echo "$as_me:$LINENO: result: no" >&5
9710 echo "${ECHO_T}no" >&6
9714 if test -z "$ac_cv_prog_CC"; then
9715 ac_ct_CC=$CC
9716 # Extract the first word of "gcc", so it can be a program name with args.
9717 set dummy gcc; ac_word=$2
9718 echo "$as_me:$LINENO: checking for $ac_word" >&5
9719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 if test -n "$ac_ct_CC"; then
9724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9725 else
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_prog_ac_ct_CC="gcc"
9734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9737 done
9738 done
9742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9743 if test -n "$ac_ct_CC"; then
9744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9745 echo "${ECHO_T}$ac_ct_CC" >&6
9746 else
9747 echo "$as_me:$LINENO: result: no" >&5
9748 echo "${ECHO_T}no" >&6
9751 CC=$ac_ct_CC
9752 else
9753 CC="$ac_cv_prog_CC"
9756 if test -z "$CC"; then
9757 if test -n "$ac_tool_prefix"; then
9758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9759 set dummy ${ac_tool_prefix}cc; ac_word=$2
9760 echo "$as_me:$LINENO: checking for $ac_word" >&5
9761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9762 if test "${ac_cv_prog_CC+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 if test -n "$CC"; then
9766 ac_cv_prog_CC="$CC" # Let the user override the test.
9767 else
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9775 ac_cv_prog_CC="${ac_tool_prefix}cc"
9776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9784 CC=$ac_cv_prog_CC
9785 if test -n "$CC"; then
9786 echo "$as_me:$LINENO: result: $CC" >&5
9787 echo "${ECHO_T}$CC" >&6
9788 else
9789 echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6
9794 if test -z "$ac_cv_prog_CC"; then
9795 ac_ct_CC=$CC
9796 # Extract the first word of "cc", so it can be a program name with args.
9797 set dummy cc; ac_word=$2
9798 echo "$as_me:$LINENO: checking for $ac_word" >&5
9799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 if test -n "$ac_ct_CC"; then
9804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9805 else
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 for as_dir in $PATH
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_prog_ac_ct_CC="cc"
9814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9817 done
9818 done
9822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9823 if test -n "$ac_ct_CC"; then
9824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9825 echo "${ECHO_T}$ac_ct_CC" >&6
9826 else
9827 echo "$as_me:$LINENO: result: no" >&5
9828 echo "${ECHO_T}no" >&6
9831 CC=$ac_ct_CC
9832 else
9833 CC="$ac_cv_prog_CC"
9837 if test -z "$CC"; then
9838 # Extract the first word of "cc", so it can be a program name with args.
9839 set dummy cc; ac_word=$2
9840 echo "$as_me:$LINENO: checking for $ac_word" >&5
9841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9842 if test "${ac_cv_prog_CC+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 if test -n "$CC"; then
9846 ac_cv_prog_CC="$CC" # Let the user override the test.
9847 else
9848 ac_prog_rejected=no
9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in $PATH
9852 IFS=$as_save_IFS
9853 test -z "$as_dir" && as_dir=.
9854 for ac_exec_ext in '' $ac_executable_extensions; do
9855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9857 ac_prog_rejected=yes
9858 continue
9860 ac_cv_prog_CC="cc"
9861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9867 if test $ac_prog_rejected = yes; then
9868 # We found a bogon in the path, so make sure we never use it.
9869 set dummy $ac_cv_prog_CC
9870 shift
9871 if test $# != 0; then
9872 # We chose a different compiler from the bogus one.
9873 # However, it has the same basename, so the bogon will be chosen
9874 # first if we set CC to just the basename; use the full file name.
9875 shift
9876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9881 CC=$ac_cv_prog_CC
9882 if test -n "$CC"; then
9883 echo "$as_me:$LINENO: result: $CC" >&5
9884 echo "${ECHO_T}$CC" >&6
9885 else
9886 echo "$as_me:$LINENO: result: no" >&5
9887 echo "${ECHO_T}no" >&6
9891 if test -z "$CC"; then
9892 if test -n "$ac_tool_prefix"; then
9893 for ac_prog in cl
9895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9897 echo "$as_me:$LINENO: checking for $ac_word" >&5
9898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9899 if test "${ac_cv_prog_CC+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902 if test -n "$CC"; then
9903 ac_cv_prog_CC="$CC" # Let the user override the test.
9904 else
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9916 done
9917 done
9921 CC=$ac_cv_prog_CC
9922 if test -n "$CC"; then
9923 echo "$as_me:$LINENO: result: $CC" >&5
9924 echo "${ECHO_T}$CC" >&6
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6
9930 test -n "$CC" && break
9931 done
9933 if test -z "$CC"; then
9934 ac_ct_CC=$CC
9935 for ac_prog in cl
9937 # Extract the first word of "$ac_prog", so it can be a program name with args.
9938 set dummy $ac_prog; ac_word=$2
9939 echo "$as_me:$LINENO: checking for $ac_word" >&5
9940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944 if test -n "$ac_ct_CC"; then
9945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9946 else
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_ac_ct_CC="$ac_prog"
9955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9958 done
9959 done
9963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9964 if test -n "$ac_ct_CC"; then
9965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9966 echo "${ECHO_T}$ac_ct_CC" >&6
9967 else
9968 echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6
9972 test -n "$ac_ct_CC" && break
9973 done
9975 CC=$ac_ct_CC
9981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9982 See \`config.log' for more details." >&5
9983 echo "$as_me: error: no acceptable C compiler found in \$PATH
9984 See \`config.log' for more details." >&2;}
9985 { (exit 1); exit 1; }; }
9987 # Provide some information about the compiler.
9988 echo "$as_me:$LINENO:" \
9989 "checking for C compiler version" >&5
9990 ac_compiler=`set X $ac_compile; echo $2`
9991 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9992 (eval $ac_compiler --version </dev/null >&5) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }
9996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9997 (eval $ac_compiler -v </dev/null >&5) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }
10001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10002 (eval $ac_compiler -V </dev/null >&5) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }
10007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10020 main ()
10022 #ifndef __GNUC__
10023 choke me
10024 #endif
10027 return 0;
10029 _ACEOF
10030 rm -f conftest.$ac_objext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032 (eval $ac_compile) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag"
10040 || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest.$ac_objext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_compiler_gnu=yes
10053 else
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10057 ac_compiler_gnu=no
10059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10063 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10065 GCC=`test $ac_compiler_gnu = yes && echo yes`
10066 ac_test_CFLAGS=${CFLAGS+set}
10067 ac_save_CFLAGS=$CFLAGS
10068 CFLAGS="-g"
10069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10071 if test "${ac_cv_prog_cc_g+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10082 main ()
10086 return 0;
10088 _ACEOF
10089 rm -f conftest.$ac_objext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10091 (eval $ac_compile) 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag"
10099 || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest.$ac_objext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_prog_cc_g=yes
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_prog_cc_g=no
10118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10122 if test "$ac_test_CFLAGS" = set; then
10123 CFLAGS=$ac_save_CFLAGS
10124 elif test $ac_cv_prog_cc_g = yes; then
10125 if test "$GCC" = yes; then
10126 CFLAGS="-g -O2"
10127 else
10128 CFLAGS="-g"
10130 else
10131 if test "$GCC" = yes; then
10132 CFLAGS="-O2"
10133 else
10134 CFLAGS=
10137 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10138 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10139 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_cv_prog_cc_stdc=no
10143 ac_save_CC=$CC
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <stdarg.h>
10151 #include <stdio.h>
10152 #include <sys/types.h>
10153 #include <sys/stat.h>
10154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10155 struct buf { int x; };
10156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10157 static char *e (p, i)
10158 char **p;
10159 int i;
10161 return p[i];
10163 static char *f (char * (*g) (char **, int), char **p, ...)
10165 char *s;
10166 va_list v;
10167 va_start (v,p);
10168 s = g (p, va_arg (v,int));
10169 va_end (v);
10170 return s;
10173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10174 function prototypes and stuff, but not '\xHH' hex character constants.
10175 These don't provoke an error unfortunately, instead are silently treated
10176 as 'x'. The following induces an error, until -std1 is added to get
10177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10178 array size at least. It's necessary to write '\x00'==0 to get something
10179 that's true only with -std1. */
10180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10182 int test (int i, double x);
10183 struct s1 {int (*f) (int a);};
10184 struct s2 {int (*f) (double a);};
10185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10186 int argc;
10187 char **argv;
10189 main ()
10191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10193 return 0;
10195 _ACEOF
10196 # Don't try gcc -ansi; that turns off useful extensions and
10197 # breaks some systems' header files.
10198 # AIX -qlanglvl=ansi
10199 # Ultrix and OSF/1 -std1
10200 # HP-UX 10.20 and later -Ae
10201 # HP-UX older versions -Aa -D_HPUX_SOURCE
10202 # SVR4 -Xc -D__EXTENSIONS__
10203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10205 CC="$ac_save_CC $ac_arg"
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_prog_cc_stdc=$ac_arg
10229 break
10230 else
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10235 rm -f conftest.err conftest.$ac_objext
10236 done
10237 rm -f conftest.$ac_ext conftest.$ac_objext
10238 CC=$ac_save_CC
10242 case "x$ac_cv_prog_cc_stdc" in
10243 x|xno)
10244 echo "$as_me:$LINENO: result: none needed" >&5
10245 echo "${ECHO_T}none needed" >&6 ;;
10247 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10248 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10249 CC="$CC $ac_cv_prog_cc_stdc" ;;
10250 esac
10252 # Some people use a C++ compiler to compile C. Since we use `exit',
10253 # in C++ we need to declare it. In case someone uses the same compiler
10254 # for both compiling C and C++ we need to have the C++ compiler decide
10255 # the declaration of exit, since it's the most demanding environment.
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #ifndef __cplusplus
10258 choke me
10259 #endif
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 for ac_declaration in \
10284 '' \
10285 'extern "C" void std::exit (int) throw (); using std::exit;' \
10286 'extern "C" void std::exit (int); using std::exit;' \
10287 'extern "C" void exit (int) throw ();' \
10288 'extern "C" void exit (int);' \
10289 'void exit (int);'
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_declaration
10298 #include <stdlib.h>
10300 main ()
10302 exit (42);
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 continue
10336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 $ac_declaration
10345 main ()
10347 exit (42);
10349 return 0;
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 break
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381 done
10382 rm -f conftest*
10383 if test -n "$ac_declaration"; then
10384 echo '#ifdef __cplusplus' >>confdefs.h
10385 echo $ac_declaration >>confdefs.h
10386 echo '#endif' >>confdefs.h
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395 ac_ext=c
10396 ac_cpp='$CPP $CPPFLAGS'
10397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10401 # Find a good install program. We prefer a C program (faster),
10402 # so one script is as good as another. But avoid the broken or
10403 # incompatible versions:
10404 # SysV /etc/install, /usr/sbin/install
10405 # SunOS /usr/etc/install
10406 # IRIX /sbin/install
10407 # AIX /bin/install
10408 # AmigaOS /C/install, which installs bootblocks on floppy discs
10409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10412 # OS/2's system install, which has a completely different semantic
10413 # ./install, which can be erroneously created by make from ./install.sh.
10414 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10415 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10416 if test -z "$INSTALL"; then
10417 if test "${ac_cv_path_install+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 # Account for people who put trailing slashes in PATH elements.
10426 case $as_dir/ in
10427 ./ | .// | /cC/* | \
10428 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10429 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10430 /usr/ucb/* ) ;;
10432 # OSF1 and SCO ODT 3.0 have their own names for install.
10433 # Don't use installbsd from OSF since it installs stuff as root
10434 # by default.
10435 for ac_prog in ginstall scoinst install; do
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10438 if test $ac_prog = install &&
10439 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10440 # AIX install. It has an incompatible calling convention.
10442 elif test $ac_prog = install &&
10443 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10444 # program-specific install script used by HP pwplus--don't use.
10446 else
10447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10448 break 3
10451 done
10452 done
10454 esac
10455 done
10459 if test "${ac_cv_path_install+set}" = set; then
10460 INSTALL=$ac_cv_path_install
10461 else
10462 # As a last resort, use the slow shell script. We don't cache a
10463 # path for INSTALL within a source directory, because that will
10464 # break other packages using the cache if that directory is
10465 # removed, or if the path is relative.
10466 INSTALL=$ac_install_sh
10469 echo "$as_me:$LINENO: result: $INSTALL" >&5
10470 echo "${ECHO_T}$INSTALL" >&6
10472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10473 # It thinks the first close brace ends the variable substitution.
10474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10481 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga"
10482 # If we haven't got the data from the intl directory,
10483 # assume NLS is disabled.
10484 USE_NLS=no
10485 LIBINTL=
10486 LIBINTL_DEP=
10487 INCINTL=
10488 XGETTEXT=
10489 GMSGFMT=
10490 POSUB=
10492 if test -f ../intl/config.intl; then
10493 . ../intl/config.intl
10495 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10496 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10497 if test x"$USE_NLS" != xyes; then
10498 echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6
10500 else
10501 echo "$as_me:$LINENO: result: yes" >&5
10502 echo "${ECHO_T}yes" >&6
10504 cat >>confdefs.h <<\_ACEOF
10505 #define ENABLE_NLS 1
10506 _ACEOF
10509 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10510 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10511 # Look for .po and .gmo files in the source directory.
10512 CATALOGS=
10513 XLINGUAS=
10514 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10515 # If there aren't any .gmo files the shell will give us the
10516 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10517 # weeded out.
10518 case "$cat" in *\**)
10519 continue;;
10520 esac
10521 # The quadruple backslash is collapsed to a double backslash
10522 # by the backticks, then collapsed again by the double quotes,
10523 # leaving us with one backslash in the sed expression (right
10524 # before the dot that mustn't act as a wildcard).
10525 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10526 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10527 # The user is allowed to set LINGUAS to a list of languages to
10528 # install catalogs for. If it's empty that means "all of them."
10529 if test "x$LINGUAS" = x; then
10530 CATALOGS="$CATALOGS $cat"
10531 XLINGUAS="$XLINGUAS $lang"
10532 else
10533 case "$LINGUAS" in *$lang*)
10534 CATALOGS="$CATALOGS $cat"
10535 XLINGUAS="$XLINGUAS $lang"
10537 esac
10539 done
10540 LINGUAS="$XLINGUAS"
10541 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10542 echo "${ECHO_T}$LINGUAS" >&6
10545 DATADIRNAME=share
10547 INSTOBJEXT=.mo
10549 GENCAT=gencat
10551 CATOBJEXT=.gmo
10555 MKINSTALLDIRS=
10556 if test -n "$ac_aux_dir"; then
10557 case "$ac_aux_dir" in
10558 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10559 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10560 esac
10562 if test -z "$MKINSTALLDIRS"; then
10563 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10568 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10569 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10570 # Check whether --enable-nls or --disable-nls was given.
10571 if test "${enable_nls+set}" = set; then
10572 enableval="$enable_nls"
10573 USE_NLS=$enableval
10574 else
10575 USE_NLS=yes
10577 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10578 echo "${ECHO_T}$USE_NLS" >&6
10585 # Prepare PATH_SEPARATOR.
10586 # The user is always right.
10587 if test "${PATH_SEPARATOR+set}" != set; then
10588 echo "#! /bin/sh" >conf$$.sh
10589 echo "exit 0" >>conf$$.sh
10590 chmod +x conf$$.sh
10591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10592 PATH_SEPARATOR=';'
10593 else
10594 PATH_SEPARATOR=:
10596 rm -f conf$$.sh
10599 # Find out how to test for executable files. Don't use a zero-byte file,
10600 # as systems may use methods other than mode bits to determine executability.
10601 cat >conf$$.file <<_ASEOF
10602 #! /bin/sh
10603 exit 0
10604 _ASEOF
10605 chmod +x conf$$.file
10606 if test -x conf$$.file >/dev/null 2>&1; then
10607 ac_executable_p="test -x"
10608 else
10609 ac_executable_p="test -f"
10611 rm -f conf$$.file
10613 # Extract the first word of "msgfmt", so it can be a program name with args.
10614 set dummy msgfmt; ac_word=$2
10615 echo "$as_me:$LINENO: checking for $ac_word" >&5
10616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10617 if test "${ac_cv_path_MSGFMT+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620 case "$MSGFMT" in
10621 [\\/]* | ?:[\\/]*)
10622 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10625 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10626 for ac_dir in $PATH; do
10627 IFS="$ac_save_IFS"
10628 test -z "$ac_dir" && ac_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10631 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10632 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10633 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10634 break 2
10637 done
10638 done
10639 IFS="$ac_save_IFS"
10640 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10642 esac
10644 MSGFMT="$ac_cv_path_MSGFMT"
10645 if test "$MSGFMT" != ":"; then
10646 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10647 echo "${ECHO_T}$MSGFMT" >&6
10648 else
10649 echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6
10653 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10654 set dummy gmsgfmt; ac_word=$2
10655 echo "$as_me:$LINENO: checking for $ac_word" >&5
10656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660 case $GMSGFMT in
10661 [\\/]* | ?:[\\/]*)
10662 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 break 2
10676 done
10677 done
10679 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10681 esac
10683 GMSGFMT=$ac_cv_path_GMSGFMT
10685 if test -n "$GMSGFMT"; then
10686 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10687 echo "${ECHO_T}$GMSGFMT" >&6
10688 else
10689 echo "$as_me:$LINENO: result: no" >&5
10690 echo "${ECHO_T}no" >&6
10695 # Prepare PATH_SEPARATOR.
10696 # The user is always right.
10697 if test "${PATH_SEPARATOR+set}" != set; then
10698 echo "#! /bin/sh" >conf$$.sh
10699 echo "exit 0" >>conf$$.sh
10700 chmod +x conf$$.sh
10701 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10702 PATH_SEPARATOR=';'
10703 else
10704 PATH_SEPARATOR=:
10706 rm -f conf$$.sh
10709 # Find out how to test for executable files. Don't use a zero-byte file,
10710 # as systems may use methods other than mode bits to determine executability.
10711 cat >conf$$.file <<_ASEOF
10712 #! /bin/sh
10713 exit 0
10714 _ASEOF
10715 chmod +x conf$$.file
10716 if test -x conf$$.file >/dev/null 2>&1; then
10717 ac_executable_p="test -x"
10718 else
10719 ac_executable_p="test -f"
10721 rm -f conf$$.file
10723 # Extract the first word of "xgettext", so it can be a program name with args.
10724 set dummy xgettext; ac_word=$2
10725 echo "$as_me:$LINENO: checking for $ac_word" >&5
10726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10727 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 case "$XGETTEXT" in
10731 [\\/]* | ?:[\\/]*)
10732 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10735 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10736 for ac_dir in $PATH; do
10737 IFS="$ac_save_IFS"
10738 test -z "$ac_dir" && ac_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
10740 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10741 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10742 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10743 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10744 break 2
10747 done
10748 done
10749 IFS="$ac_save_IFS"
10750 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10752 esac
10754 XGETTEXT="$ac_cv_path_XGETTEXT"
10755 if test "$XGETTEXT" != ":"; then
10756 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10757 echo "${ECHO_T}$XGETTEXT" >&6
10758 else
10759 echo "$as_me:$LINENO: result: no" >&5
10760 echo "${ECHO_T}no" >&6
10763 rm -f messages.po
10766 # Prepare PATH_SEPARATOR.
10767 # The user is always right.
10768 if test "${PATH_SEPARATOR+set}" != set; then
10769 echo "#! /bin/sh" >conf$$.sh
10770 echo "exit 0" >>conf$$.sh
10771 chmod +x conf$$.sh
10772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10773 PATH_SEPARATOR=';'
10774 else
10775 PATH_SEPARATOR=:
10777 rm -f conf$$.sh
10780 # Find out how to test for executable files. Don't use a zero-byte file,
10781 # as systems may use methods other than mode bits to determine executability.
10782 cat >conf$$.file <<_ASEOF
10783 #! /bin/sh
10784 exit 0
10785 _ASEOF
10786 chmod +x conf$$.file
10787 if test -x conf$$.file >/dev/null 2>&1; then
10788 ac_executable_p="test -x"
10789 else
10790 ac_executable_p="test -f"
10792 rm -f conf$$.file
10794 # Extract the first word of "msgmerge", so it can be a program name with args.
10795 set dummy msgmerge; ac_word=$2
10796 echo "$as_me:$LINENO: checking for $ac_word" >&5
10797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10798 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 case "$MSGMERGE" in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10807 for ac_dir in $PATH; do
10808 IFS="$ac_save_IFS"
10809 test -z "$ac_dir" && ac_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10812 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10813 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10814 break 2
10817 done
10818 done
10819 IFS="$ac_save_IFS"
10820 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10822 esac
10824 MSGMERGE="$ac_cv_path_MSGMERGE"
10825 if test "$MSGMERGE" != ":"; then
10826 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10827 echo "${ECHO_T}$MSGMERGE" >&6
10828 else
10829 echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6
10834 if test "$GMSGFMT" != ":"; then
10835 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10836 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10838 else
10839 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10840 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10841 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10842 GMSGFMT=":"
10846 if test "$XGETTEXT" != ":"; then
10847 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10848 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10850 else
10851 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10852 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10853 XGETTEXT=":"
10855 rm -f messages.po
10858 ac_config_commands="$ac_config_commands default-1"
10864 for ac_prog in 'bison -y' byacc
10866 # Extract the first word of "$ac_prog", so it can be a program name with args.
10867 set dummy $ac_prog; ac_word=$2
10868 echo "$as_me:$LINENO: checking for $ac_word" >&5
10869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870 if test "${ac_cv_prog_YACC+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 if test -n "$YACC"; then
10874 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10875 else
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883 ac_cv_prog_YACC="$ac_prog"
10884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10887 done
10888 done
10892 YACC=$ac_cv_prog_YACC
10893 if test -n "$YACC"; then
10894 echo "$as_me:$LINENO: result: $YACC" >&5
10895 echo "${ECHO_T}$YACC" >&6
10896 else
10897 echo "$as_me:$LINENO: result: no" >&5
10898 echo "${ECHO_T}no" >&6
10901 test -n "$YACC" && break
10902 done
10903 test -n "$YACC" || YACC="yacc"
10905 for ac_prog in flex lex
10907 # Extract the first word of "$ac_prog", so it can be a program name with args.
10908 set dummy $ac_prog; ac_word=$2
10909 echo "$as_me:$LINENO: checking for $ac_word" >&5
10910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10911 if test "${ac_cv_prog_LEX+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 if test -n "$LEX"; then
10915 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10916 else
10917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918 for as_dir in $PATH
10920 IFS=$as_save_IFS
10921 test -z "$as_dir" && as_dir=.
10922 for ac_exec_ext in '' $ac_executable_extensions; do
10923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10924 ac_cv_prog_LEX="$ac_prog"
10925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 break 2
10928 done
10929 done
10933 LEX=$ac_cv_prog_LEX
10934 if test -n "$LEX"; then
10935 echo "$as_me:$LINENO: result: $LEX" >&5
10936 echo "${ECHO_T}$LEX" >&6
10937 else
10938 echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6
10942 test -n "$LEX" && break
10943 done
10944 test -n "$LEX" || LEX=":"
10946 if test -z "$LEXLIB"
10947 then
10948 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10949 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10950 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lfl $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968 char yywrap ();
10970 main ()
10972 yywrap ();
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_lib_fl_yywrap=yes
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_cv_lib_fl_yywrap=no
11006 rm -f conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11011 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11012 if test $ac_cv_lib_fl_yywrap = yes; then
11013 LEXLIB="-lfl"
11014 else
11015 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11016 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11017 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-ll $LIBS"
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11029 /* Override any gcc2 internal prototype to avoid an error. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char yywrap ();
11037 main ()
11039 yywrap ();
11041 return 0;
11043 _ACEOF
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11046 (eval $ac_link) 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag"
11054 || test ! -s conftest.err'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }; then
11066 ac_cv_lib_l_yywrap=yes
11067 else
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_lib_l_yywrap=no
11073 rm -f conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11077 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11078 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11079 if test $ac_cv_lib_l_yywrap = yes; then
11080 LEXLIB="-ll"
11087 if test "x$LEX" != "x:"; then
11088 echo "$as_me:$LINENO: checking lex output file root" >&5
11089 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11090 if test "${ac_cv_prog_lex_root+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 # The minimal lex program is just a single line: %%. But some broken lexes
11094 # (Solaris, I think it was) want two %% lines, so accommodate them.
11095 cat >conftest.l <<_ACEOF
11098 _ACEOF
11099 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11100 (eval $LEX conftest.l) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }
11104 if test -f lex.yy.c; then
11105 ac_cv_prog_lex_root=lex.yy
11106 elif test -f lexyy.c; then
11107 ac_cv_prog_lex_root=lexyy
11108 else
11109 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11110 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11111 { (exit 1); exit 1; }; }
11114 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11115 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11116 rm -f conftest.l
11117 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11119 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11120 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11121 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 # POSIX says lex can declare yytext either as a pointer or an array; the
11125 # default is implementation-dependent. Figure out which it is, since
11126 # not all implementations provide the %pointer and %array declarations.
11127 ac_cv_prog_lex_yytext_pointer=no
11128 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11129 ac_save_LIBS=$LIBS
11130 LIBS="$LIBS $LEXLIB"
11131 cat >conftest.$ac_ext <<_ACEOF
11132 `cat $LEX_OUTPUT_ROOT.c`
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag"
11144 || test ! -s conftest.err'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; } &&
11150 { ac_try='test -s conftest$ac_exeext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 ac_cv_prog_lex_yytext_pointer=yes
11157 else
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_save_LIBS
11165 rm -f "${LEX_OUTPUT_ROOT}.c"
11168 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11169 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11170 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11172 cat >>confdefs.h <<\_ACEOF
11173 #define YYTEXT_POINTER 1
11174 _ACEOF
11179 if test "$LEX" = :; then
11180 LEX=${am_missing_run}flex
11183 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11184 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11185 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11186 if test "${enable_maintainer_mode+set}" = set; then
11187 enableval="$enable_maintainer_mode"
11188 USE_MAINTAINER_MODE=$enableval
11189 else
11190 USE_MAINTAINER_MODE=no
11192 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11193 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11196 if test $USE_MAINTAINER_MODE = yes; then
11197 MAINTAINER_MODE_TRUE=
11198 MAINTAINER_MODE_FALSE='#'
11199 else
11200 MAINTAINER_MODE_TRUE='#'
11201 MAINTAINER_MODE_FALSE=
11204 MAINT=$MAINTAINER_MODE_TRUE
11209 if false; then
11210 GENINSRC_NEVER_TRUE=
11211 GENINSRC_NEVER_FALSE='#'
11212 else
11213 GENINSRC_NEVER_TRUE='#'
11214 GENINSRC_NEVER_FALSE=
11218 . ${srcdir}/configure.host
11232 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11236 echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11243 else
11244 # Is the header compilable?
11245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 $ac_includes_default
11254 #include <$ac_header>
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258 (eval $ac_compile) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag"
11266 || test ! -s conftest.err'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_header_compiler=yes
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 ac_header_compiler=no
11285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11287 echo "${ECHO_T}$ac_header_compiler" >&6
11289 # Is the header present?
11290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 #include <$ac_header>
11299 _ACEOF
11300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } >/dev/null; then
11308 if test -s conftest.err; then
11309 ac_cpp_err=$ac_c_preproc_warn_flag
11310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11311 else
11312 ac_cpp_err=
11314 else
11315 ac_cpp_err=yes
11317 if test -z "$ac_cpp_err"; then
11318 ac_header_preproc=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_header_preproc=no
11325 rm -f conftest.err conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327 echo "${ECHO_T}$ac_header_preproc" >&6
11329 # So? What about this header?
11330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11331 yes:no: )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11336 ac_header_preproc=yes
11338 no:yes:* )
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11352 cat <<\_ASBOX
11353 ## ------------------------------------------ ##
11354 ## Report this to the AC_PACKAGE_NAME lists. ##
11355 ## ------------------------------------------ ##
11356 _ASBOX
11358 sed "s/^/$as_me: WARNING: /" >&2
11360 esac
11361 echo "$as_me:$LINENO: checking for $ac_header" >&5
11362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 eval "$as_ac_Header=\$ac_header_preproc"
11368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375 _ACEOF
11379 done
11386 for ac_func in glob mkstemp realpath sbrk waitpid
11388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 echo "$as_me:$LINENO: checking for $ac_func" >&5
11390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11391 if eval "test \"\${$as_ac_var+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11402 #define $ac_func innocuous_$ac_func
11404 /* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char $ac_func (); below.
11406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 <limits.h> exists even on freestanding compilers. */
11409 #ifdef __STDC__
11410 # include <limits.h>
11411 #else
11412 # include <assert.h>
11413 #endif
11415 #undef $ac_func
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 #ifdef __cplusplus
11419 extern "C"
11421 #endif
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424 char $ac_func ();
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11429 choke me
11430 #else
11431 char (*f) () = $ac_func;
11432 #endif
11433 #ifdef __cplusplus
11435 #endif
11438 main ()
11440 return f != $ac_func;
11442 return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 eval "$as_ac_var=yes"
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 eval "$as_ac_var=no"
11474 rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11479 if test `eval echo '${'$as_ac_var'}'` = yes; then
11480 cat >>confdefs.h <<_ACEOF
11481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11482 _ACEOF
11485 done
11492 ac_header_dirent=no
11493 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11494 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11495 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11496 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include <sys/types.h>
11507 #include <$ac_hdr>
11510 main ()
11512 if ((DIR *) 0)
11513 return 0;
11515 return 0;
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 eval "$as_ac_Header=yes"
11541 else
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 eval "$as_ac_Header=no"
11547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11554 _ACEOF
11556 ac_header_dirent=$ac_hdr; break
11559 done
11560 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11561 if test $ac_header_dirent = dirent.h; then
11562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11563 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11564 if test "${ac_cv_search_opendir+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 ac_func_search_save_LIBS=$LIBS
11568 ac_cv_search_opendir=no
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11582 char opendir ();
11584 main ()
11586 opendir ();
11588 return 0;
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_search_opendir="none required"
11614 else
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 if test "$ac_cv_search_opendir" = no; then
11622 for ac_lib in dir; do
11623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11631 /* Override any gcc2 internal prototype to avoid an error. */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 /* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11637 char opendir ();
11639 main ()
11641 opendir ();
11643 return 0;
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_search_opendir="-l$ac_lib"
11669 break
11670 else
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11675 rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 done
11679 LIBS=$ac_func_search_save_LIBS
11681 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11682 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11683 if test "$ac_cv_search_opendir" != no; then
11684 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11688 else
11689 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11691 if test "${ac_cv_search_opendir+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 ac_func_search_save_LIBS=$LIBS
11695 ac_cv_search_opendir=no
11696 cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h. */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11703 /* Override any gcc2 internal prototype to avoid an error. */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 /* We use char because int might match the return type of a gcc2
11708 builtin and then its argument prototype would still apply. */
11709 char opendir ();
11711 main ()
11713 opendir ();
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_search_opendir="none required"
11741 else
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11746 rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748 if test "$ac_cv_search_opendir" = no; then
11749 for ac_lib in x; do
11750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h. */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11758 /* Override any gcc2 internal prototype to avoid an error. */
11759 #ifdef __cplusplus
11760 extern "C"
11761 #endif
11762 /* We use char because int might match the return type of a gcc2
11763 builtin and then its argument prototype would still apply. */
11764 char opendir ();
11766 main ()
11768 opendir ();
11770 return 0;
11772 _ACEOF
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775 (eval $ac_link) 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_search_opendir="-l$ac_lib"
11796 break
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11802 rm -f conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 done
11806 LIBS=$ac_func_search_save_LIBS
11808 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11809 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11810 if test "$ac_cv_search_opendir" != no; then
11811 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11818 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11819 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11820 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <unistd.h>
11831 main ()
11833 extern int getopt (int, char *const*, const char *);
11835 return 0;
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11840 (eval $ac_compile) 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag"
11848 || test ! -s conftest.err'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest.$ac_objext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ld_cv_decl_getopt_unistd_h=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ld_cv_decl_getopt_unistd_h=no
11867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11870 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11871 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11872 if test $ld_cv_decl_getopt_unistd_h = yes; then
11874 cat >>confdefs.h <<\_ACEOF
11875 #define HAVE_DECL_GETOPT 1
11876 _ACEOF
11881 case "${host}" in
11882 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11884 cat >>confdefs.h <<\_ACEOF
11885 #define USE_BINARY_FOPEN 1
11886 _ACEOF
11888 esac
11890 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11891 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11892 if test "${ac_cv_have_decl_strstr+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 $ac_includes_default
11903 main ()
11905 #ifndef strstr
11906 char *p = (char *) strstr;
11907 #endif
11910 return 0;
11912 _ACEOF
11913 rm -f conftest.$ac_objext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_cv_have_decl_strstr=yes
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_cv_have_decl_strstr=no
11942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11945 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11946 if test $ac_cv_have_decl_strstr = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949 #define HAVE_DECL_STRSTR 1
11950 _ACEOF
11953 else
11954 cat >>confdefs.h <<_ACEOF
11955 #define HAVE_DECL_STRSTR 0
11956 _ACEOF
11960 echo "$as_me:$LINENO: checking whether free is declared" >&5
11961 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11962 if test "${ac_cv_have_decl_free+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 $ac_includes_default
11973 main ()
11975 #ifndef free
11976 char *p = (char *) free;
11977 #endif
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_have_decl_free=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_have_decl_free=no
12012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12015 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12016 if test $ac_cv_have_decl_free = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_DECL_FREE 1
12020 _ACEOF
12023 else
12024 cat >>confdefs.h <<_ACEOF
12025 #define HAVE_DECL_FREE 0
12026 _ACEOF
12030 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12031 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12032 if test "${ac_cv_have_decl_sbrk+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 $ac_includes_default
12043 main ()
12045 #ifndef sbrk
12046 char *p = (char *) sbrk;
12047 #endif
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag"
12063 || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest.$ac_objext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_have_decl_sbrk=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_have_decl_sbrk=no
12082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12085 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12086 if test $ac_cv_have_decl_sbrk = yes; then
12088 cat >>confdefs.h <<_ACEOF
12089 #define HAVE_DECL_SBRK 1
12090 _ACEOF
12093 else
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_DECL_SBRK 0
12096 _ACEOF
12100 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12101 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12102 if test "${ac_cv_have_decl_getenv+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 $ac_includes_default
12113 main ()
12115 #ifndef getenv
12116 char *p = (char *) getenv;
12117 #endif
12120 return 0;
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_have_decl_getenv=yes
12146 else
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_have_decl_getenv=no
12152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12154 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12155 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12156 if test $ac_cv_have_decl_getenv = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define HAVE_DECL_GETENV 1
12160 _ACEOF
12163 else
12164 cat >>confdefs.h <<_ACEOF
12165 #define HAVE_DECL_GETENV 0
12166 _ACEOF
12170 echo "$as_me:$LINENO: checking whether environ is declared" >&5
12171 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12172 if test "${ac_cv_have_decl_environ+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 $ac_includes_default
12183 main ()
12185 #ifndef environ
12186 char *p = (char *) environ;
12187 #endif
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_c_werror_flag"
12203 || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_have_decl_environ=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_have_decl_environ=no
12222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12224 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12225 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12226 if test $ac_cv_have_decl_environ = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_DECL_ENVIRON 1
12230 _ACEOF
12233 else
12234 cat >>confdefs.h <<_ACEOF
12235 #define HAVE_DECL_ENVIRON 0
12236 _ACEOF
12243 # When converting linker scripts into strings for use in emulation
12244 # files, use astring.sed if the compiler supports ANSI string
12245 # concatenation, or ostring.sed otherwise. This is to support the
12246 # broken Microsoft MSVC compiler, which limits the length of string
12247 # constants, while still supporting pre-ANSI compilers which do not
12248 # support string concatenation.
12249 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12250 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12251 if test "${ld_cv_string_concatenation+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12262 main ()
12264 char *a = "a" "a";
12266 return 0;
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_c_werror_flag"
12279 || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ld_cv_string_concatenation=yes
12292 else
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ld_cv_string_concatenation=no
12298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12302 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12303 if test "$ld_cv_string_concatenation" = "yes"; then
12304 STRINGIFY=astring.sed
12305 else
12306 STRINGIFY=ostring.sed
12310 # target-specific stuff:
12312 all_targets=
12313 EMUL=
12314 all_emuls=
12315 all_emul_extras=
12316 all_libpath=
12318 rm -f tdirs
12320 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12322 if test "$targ_alias" = "all"; then
12323 all_targets=true
12324 else
12325 # Canonicalize the secondary target names.
12326 result=`$ac_config_sub $targ_alias 2>/dev/null`
12327 if test -n "$result"; then
12328 targ=$result
12329 else
12330 targ=$targ_alias
12333 . ${srcdir}/configure.tgt
12335 if test "$targ" = "$target"; then
12336 EMUL=$targ_emul
12339 if test x${want64} = xfalse; then
12340 . ${srcdir}/../bfd/config.bfd
12343 if test x${want64} = xtrue; then
12344 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12345 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12348 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12349 case " $all_emuls " in
12350 *" e${i}.o "*) ;;
12352 all_emuls="$all_emuls e${i}.o"
12353 eval result=\$tdir_$i
12354 test -z "$result" && result=$targ_alias
12355 echo tdir_$i=$result >> tdirs
12357 esac
12358 done
12360 for i in $targ_emul $targ_extra_libpath; do
12361 case " $all_libpath " in
12362 *" ${i} "*) ;;
12364 if test -z "$all_libpath"; then
12365 all_libpath=${i}
12366 else
12367 all_libpath="$all_libpath ${i}"
12370 esac
12371 done
12373 for i in $targ_extra_ofiles; do
12374 case " $all_emul_extras " in
12375 *" ${i} "*) ;;
12377 all_emul_extras="$all_emul_extras ${i}"
12379 esac
12380 done
12382 done
12386 TDIRS=tdirs
12389 if test x${all_targets} = xtrue; then
12390 if test x${want64} = xfalse; then
12391 echo "$as_me:$LINENO: checking for long" >&5
12392 echo $ECHO_N "checking for long... $ECHO_C" >&6
12393 if test "${ac_cv_type_long+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12404 main ()
12406 if ((long *) 0)
12407 return 0;
12408 if (sizeof (long))
12409 return 0;
12411 return 0;
12413 _ACEOF
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416 (eval $ac_compile) 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_cv_type_long=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_type_long=no
12443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12446 echo "${ECHO_T}$ac_cv_type_long" >&6
12448 echo "$as_me:$LINENO: checking size of long" >&5
12449 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12450 if test "${ac_cv_sizeof_long+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453 if test "$ac_cv_type_long" = yes; then
12454 # The cast to unsigned long works around a bug in the HP C Compiler
12455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12457 # This bug is HP SR number 8606223364.
12458 if test "$cross_compiling" = yes; then
12459 # Depending upon the size, compute the lo and hi bounds.
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 $ac_includes_default
12468 main ()
12470 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12471 test_array [0] = 0
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_lo=0 ac_mid=0
12500 while :; do
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 $ac_includes_default
12509 main ()
12511 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12512 test_array [0] = 0
12515 return 0;
12517 _ACEOF
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag"
12528 || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_hi=$ac_mid; break
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_lo=`expr $ac_mid + 1`
12546 if test $ac_lo -le $ac_mid; then
12547 ac_lo= ac_hi=
12548 break
12550 ac_mid=`expr 2 '*' $ac_mid + 1`
12552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12553 done
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h. */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 $ac_includes_default
12566 main ()
12568 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12569 test_array [0] = 0
12572 return 0;
12574 _ACEOF
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag"
12585 || test ! -s conftest.err'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest.$ac_objext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_hi=-1 ac_mid=-1
12598 while :; do
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 $ac_includes_default
12607 main ()
12609 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12610 test_array [0] = 0
12613 return 0;
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_lo=$ac_mid; break
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_hi=`expr '(' $ac_mid ')' - 1`
12644 if test $ac_mid -le $ac_hi; then
12645 ac_lo= ac_hi=
12646 break
12648 ac_mid=`expr 2 '*' $ac_mid`
12650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12651 done
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_lo= ac_hi=
12658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661 # Binary search between lo and hi bounds.
12662 while test "x$ac_lo" != "x$ac_hi"; do
12663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12672 main ()
12674 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12675 test_array [0] = 0
12678 return 0;
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_c_werror_flag"
12691 || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_hi=$ac_mid
12704 else
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ac_lo=`expr '(' $ac_mid ')' + 1`
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 done
12712 case $ac_lo in
12713 ?*) ac_cv_sizeof_long=$ac_lo;;
12714 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12715 See \`config.log' for more details." >&5
12716 echo "$as_me: error: cannot compute sizeof (long), 77
12717 See \`config.log' for more details." >&2;}
12718 { (exit 1); exit 1; }; } ;;
12719 esac
12720 else
12721 if test "$cross_compiling" = yes; then
12722 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12723 See \`config.log' for more details." >&5
12724 echo "$as_me: error: cannot run test program while cross compiling
12725 See \`config.log' for more details." >&2;}
12726 { (exit 1); exit 1; }; }
12727 else
12728 cat >conftest.$ac_ext <<_ACEOF
12729 /* confdefs.h. */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12734 $ac_includes_default
12735 long longval () { return (long) (sizeof (long)); }
12736 unsigned long ulongval () { return (long) (sizeof (long)); }
12737 #include <stdio.h>
12738 #include <stdlib.h>
12740 main ()
12743 FILE *f = fopen ("conftest.val", "w");
12744 if (! f)
12745 exit (1);
12746 if (((long) (sizeof (long))) < 0)
12748 long i = longval ();
12749 if (i != ((long) (sizeof (long))))
12750 exit (1);
12751 fprintf (f, "%ld\n", i);
12753 else
12755 unsigned long i = ulongval ();
12756 if (i != ((long) (sizeof (long))))
12757 exit (1);
12758 fprintf (f, "%lu\n", i);
12760 exit (ferror (f) || fclose (f) != 0);
12763 return 0;
12765 _ACEOF
12766 rm -f conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12774 ac_status=$?
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_sizeof_long=`cat conftest.val`
12778 else
12779 echo "$as_me: program exited with status $ac_status" >&5
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 ( exit $ac_status )
12784 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12785 See \`config.log' for more details." >&5
12786 echo "$as_me: error: cannot compute sizeof (long), 77
12787 See \`config.log' for more details." >&2;}
12788 { (exit 1); exit 1; }; }
12790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12793 rm -f conftest.val
12794 else
12795 ac_cv_sizeof_long=0
12798 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12799 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12800 cat >>confdefs.h <<_ACEOF
12801 #define SIZEOF_LONG $ac_cv_sizeof_long
12802 _ACEOF
12805 if test "x${ac_cv_sizeof_long}" = "x8"; then
12806 want64=true
12809 if test x${want64} = xtrue; then
12810 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12811 else
12812 EMULATION_OFILES='$(ALL_EMULATIONS)'
12814 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12815 else
12816 EMULATION_OFILES=$all_emuls
12817 EMUL_EXTRA_OFILES=$all_emul_extras
12823 EMULATION_LIBPATH=$all_libpath
12826 if test x${enable_static} = xno; then
12827 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12828 else
12829 TESTBFDLIB="../bfd/.libs/libbfd.a"
12833 target_vendor=${target_vendor=$host_vendor}
12834 case "$target_vendor" in
12835 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12836 *) EXTRA_SHLIB_EXTENSION= ;;
12837 esac
12839 case "$target_os" in
12840 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12841 esac
12843 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12845 cat >>confdefs.h <<_ACEOF
12846 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12847 _ACEOF
12855 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12856 cat >confcache <<\_ACEOF
12857 # This file is a shell script that caches the results of configure
12858 # tests run on this system so they can be shared between configure
12859 # scripts and configure runs, see configure's option --config-cache.
12860 # It is not useful on other systems. If it contains results you don't
12861 # want to keep, you may remove or edit it.
12863 # config.status only pays attention to the cache file if you give it
12864 # the --recheck option to rerun configure.
12866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12868 # following values.
12870 _ACEOF
12872 # The following way of writing the cache mishandles newlines in values,
12873 # but we know of no workaround that is simple, portable, and efficient.
12874 # So, don't put newlines in cache variables' values.
12875 # Ultrix sh set writes to stderr and can't be redirected directly,
12876 # and sets the high bit in the cache file unless we assign to the vars.
12878 (set) 2>&1 |
12879 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12880 *ac_space=\ *)
12881 # `set' does not quote correctly, so add quotes (double-quote
12882 # substitution turns \\\\ into \\, and sed turns \\ into \).
12883 sed -n \
12884 "s/'/'\\\\''/g;
12885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12888 # `set' quotes correctly as required by POSIX, so do not add quotes.
12889 sed -n \
12890 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12892 esac;
12894 sed '
12895 t clear
12896 : clear
12897 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12898 t end
12899 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12900 : end' >>confcache
12901 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12902 if test -w $cache_file; then
12903 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12904 cat confcache >$cache_file
12905 else
12906 echo "not updating unwritable cache $cache_file"
12909 rm -f confcache
12911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12912 # Let make expand exec_prefix.
12913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12917 # trailing colons and then remove the whole line if VPATH becomes empty
12918 # (actually we leave an empty line to preserve line numbers).
12919 if test "x$srcdir" = x.; then
12920 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12921 s/:*\$(srcdir):*/:/;
12922 s/:*\${srcdir}:*/:/;
12923 s/:*@srcdir@:*/:/;
12924 s/^\([^=]*=[ ]*\):*/\1/;
12925 s/:*$//;
12926 s/^[^=]*=[ ]*$//;
12930 DEFS=-DHAVE_CONFIG_H
12932 ac_libobjs=
12933 ac_ltlibobjs=
12934 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12935 # 1. Remove the extension, and $U if already installed.
12936 ac_i=`echo "$ac_i" |
12937 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12938 # 2. Add them.
12939 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12940 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12941 done
12942 LIBOBJS=$ac_libobjs
12944 LTLIBOBJS=$ac_ltlibobjs
12947 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12948 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12949 Usually this means the macro was only invoked conditionally." >&5
12950 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12951 Usually this means the macro was only invoked conditionally." >&2;}
12952 { (exit 1); exit 1; }; }
12954 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12955 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12956 Usually this means the macro was only invoked conditionally." >&5
12957 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12958 Usually this means the macro was only invoked conditionally." >&2;}
12959 { (exit 1); exit 1; }; }
12961 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12962 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12963 Usually this means the macro was only invoked conditionally." >&5
12964 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12965 Usually this means the macro was only invoked conditionally." >&2;}
12966 { (exit 1); exit 1; }; }
12968 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12969 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12970 Usually this means the macro was only invoked conditionally." >&5
12971 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12972 Usually this means the macro was only invoked conditionally." >&2;}
12973 { (exit 1); exit 1; }; }
12976 : ${CONFIG_STATUS=./config.status}
12977 ac_clean_files_save=$ac_clean_files
12978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12979 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12980 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12981 cat >$CONFIG_STATUS <<_ACEOF
12982 #! $SHELL
12983 # Generated by $as_me.
12984 # Run this file to recreate the current configuration.
12985 # Compiler output produced by configure, useful for debugging
12986 # configure, is in config.log if it exists.
12988 debug=false
12989 ac_cs_recheck=false
12990 ac_cs_silent=false
12991 SHELL=\${CONFIG_SHELL-$SHELL}
12992 _ACEOF
12994 cat >>$CONFIG_STATUS <<\_ACEOF
12995 ## --------------------- ##
12996 ## M4sh Initialization. ##
12997 ## --------------------- ##
12999 # Be Bourne compatible
13000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13001 emulate sh
13002 NULLCMD=:
13003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13004 # is contrary to our usage. Disable this feature.
13005 alias -g '${1+"$@"}'='"$@"'
13006 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13007 set -o posix
13009 DUALCASE=1; export DUALCASE # for MKS sh
13011 # Support unset when possible.
13012 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13013 as_unset=unset
13014 else
13015 as_unset=false
13019 # Work around bugs in pre-3.0 UWIN ksh.
13020 $as_unset ENV MAIL MAILPATH
13021 PS1='$ '
13022 PS2='> '
13023 PS4='+ '
13025 # NLS nuisances.
13026 for as_var in \
13027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13029 LC_TELEPHONE LC_TIME
13031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13032 eval $as_var=C; export $as_var
13033 else
13034 $as_unset $as_var
13036 done
13038 # Required to use basename.
13039 if expr a : '\(a\)' >/dev/null 2>&1; then
13040 as_expr=expr
13041 else
13042 as_expr=false
13045 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13046 as_basename=basename
13047 else
13048 as_basename=false
13052 # Name of the executable.
13053 as_me=`$as_basename "$0" ||
13054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13055 X"$0" : 'X\(//\)$' \| \
13056 X"$0" : 'X\(/\)$' \| \
13057 . : '\(.\)' 2>/dev/null ||
13058 echo X/"$0" |
13059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13060 /^X\/\(\/\/\)$/{ s//\1/; q; }
13061 /^X\/\(\/\).*/{ s//\1/; q; }
13062 s/.*/./; q'`
13065 # PATH needs CR, and LINENO needs CR and PATH.
13066 # Avoid depending upon Character Ranges.
13067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13070 as_cr_digits='0123456789'
13071 as_cr_alnum=$as_cr_Letters$as_cr_digits
13073 # The user is always right.
13074 if test "${PATH_SEPARATOR+set}" != set; then
13075 echo "#! /bin/sh" >conf$$.sh
13076 echo "exit 0" >>conf$$.sh
13077 chmod +x conf$$.sh
13078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13079 PATH_SEPARATOR=';'
13080 else
13081 PATH_SEPARATOR=:
13083 rm -f conf$$.sh
13087 as_lineno_1=$LINENO
13088 as_lineno_2=$LINENO
13089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13090 test "x$as_lineno_1" != "x$as_lineno_2" &&
13091 test "x$as_lineno_3" = "x$as_lineno_2" || {
13092 # Find who we are. Look in the path if we contain no path at all
13093 # relative or not.
13094 case $0 in
13095 *[\\/]* ) as_myself=$0 ;;
13096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $PATH
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13102 done
13105 esac
13106 # We did not find ourselves, most probably we were run as `sh COMMAND'
13107 # in which case we are not to be found in the path.
13108 if test "x$as_myself" = x; then
13109 as_myself=$0
13111 if test ! -f "$as_myself"; then
13112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13113 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13114 { (exit 1); exit 1; }; }
13116 case $CONFIG_SHELL in
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for as_base in sh bash ksh sh5; do
13124 case $as_dir in
13126 if ("$as_dir/$as_base" -c '
13127 as_lineno_1=$LINENO
13128 as_lineno_2=$LINENO
13129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13130 test "x$as_lineno_1" != "x$as_lineno_2" &&
13131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13134 CONFIG_SHELL=$as_dir/$as_base
13135 export CONFIG_SHELL
13136 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13137 fi;;
13138 esac
13139 done
13140 done
13142 esac
13144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13145 # uniformly replaced by the line number. The first 'sed' inserts a
13146 # line-number line before each line; the second 'sed' does the real
13147 # work. The second script uses 'N' to pair each line-number line
13148 # with the numbered line, and appends trailing '-' during
13149 # substitution so that $LINENO is not a special case at line end.
13150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13152 sed '=' <$as_myself |
13153 sed '
13155 s,$,-,
13156 : loop
13157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13158 t loop
13159 s,-$,,
13160 s,^['$as_cr_digits']*\n,,
13161 ' >$as_me.lineno &&
13162 chmod +x $as_me.lineno ||
13163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13164 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13165 { (exit 1); exit 1; }; }
13167 # Don't try to exec as it changes $[0], causing all sort of problems
13168 # (the dirname of $[0] is not the place where we might find the
13169 # original and so on. Autoconf is especially sensible to this).
13170 . ./$as_me.lineno
13171 # Exit status is that of the last command.
13172 exit
13176 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13177 *c*,-n*) ECHO_N= ECHO_C='
13178 ' ECHO_T=' ' ;;
13179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13181 esac
13183 if expr a : '\(a\)' >/dev/null 2>&1; then
13184 as_expr=expr
13185 else
13186 as_expr=false
13189 rm -f conf$$ conf$$.exe conf$$.file
13190 echo >conf$$.file
13191 if ln -s conf$$.file conf$$ 2>/dev/null; then
13192 # We could just check for DJGPP; but this test a) works b) is more generic
13193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13194 if test -f conf$$.exe; then
13195 # Don't use ln at all; we don't have any links
13196 as_ln_s='cp -p'
13197 else
13198 as_ln_s='ln -s'
13200 elif ln conf$$.file conf$$ 2>/dev/null; then
13201 as_ln_s=ln
13202 else
13203 as_ln_s='cp -p'
13205 rm -f conf$$ conf$$.exe conf$$.file
13207 if mkdir -p . 2>/dev/null; then
13208 as_mkdir_p=:
13209 else
13210 test -d ./-p && rmdir ./-p
13211 as_mkdir_p=false
13214 as_executable_p="test -f"
13216 # Sed expression to map a string onto a valid CPP name.
13217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13219 # Sed expression to map a string onto a valid variable name.
13220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13223 # IFS
13224 # We need space, tab and new line, in precisely that order.
13225 as_nl='
13227 IFS=" $as_nl"
13229 # CDPATH.
13230 $as_unset CDPATH
13232 exec 6>&1
13234 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13235 # report actual input values of CONFIG_FILES etc. instead of their
13236 # values after options handling. Logging --version etc. is OK.
13237 exec 5>>config.log
13239 echo
13240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13241 ## Running $as_me. ##
13242 _ASBOX
13243 } >&5
13244 cat >&5 <<_CSEOF
13246 This file was extended by $as_me, which was
13247 generated by GNU Autoconf 2.59. Invocation command line was
13249 CONFIG_FILES = $CONFIG_FILES
13250 CONFIG_HEADERS = $CONFIG_HEADERS
13251 CONFIG_LINKS = $CONFIG_LINKS
13252 CONFIG_COMMANDS = $CONFIG_COMMANDS
13253 $ $0 $@
13255 _CSEOF
13256 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13257 echo >&5
13258 _ACEOF
13260 # Files that config.status was made for.
13261 if test -n "$ac_config_files"; then
13262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13265 if test -n "$ac_config_headers"; then
13266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13269 if test -n "$ac_config_links"; then
13270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13273 if test -n "$ac_config_commands"; then
13274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13277 cat >>$CONFIG_STATUS <<\_ACEOF
13279 ac_cs_usage="\
13280 \`$as_me' instantiates files from templates according to the
13281 current configuration.
13283 Usage: $0 [OPTIONS] [FILE]...
13285 -h, --help print this help, then exit
13286 -V, --version print version number, then exit
13287 -q, --quiet do not print progress messages
13288 -d, --debug don't remove temporary files
13289 --recheck update $as_me by reconfiguring in the same conditions
13290 --file=FILE[:TEMPLATE]
13291 instantiate the configuration file FILE
13292 --header=FILE[:TEMPLATE]
13293 instantiate the configuration header FILE
13295 Configuration files:
13296 $config_files
13298 Configuration headers:
13299 $config_headers
13301 Configuration commands:
13302 $config_commands
13304 Report bugs to <bug-autoconf@gnu.org>."
13305 _ACEOF
13307 cat >>$CONFIG_STATUS <<_ACEOF
13308 ac_cs_version="\\
13309 config.status
13310 configured by $0, generated by GNU Autoconf 2.59,
13311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13313 Copyright (C) 2003 Free Software Foundation, Inc.
13314 This config.status script is free software; the Free Software Foundation
13315 gives unlimited permission to copy, distribute and modify it."
13316 srcdir=$srcdir
13317 INSTALL="$INSTALL"
13318 _ACEOF
13320 cat >>$CONFIG_STATUS <<\_ACEOF
13321 # If no file are specified by the user, then we need to provide default
13322 # value. By we need to know if files were specified by the user.
13323 ac_need_defaults=:
13324 while test $# != 0
13326 case $1 in
13327 --*=*)
13328 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13329 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13330 ac_shift=:
13333 ac_option=$1
13334 ac_optarg=$2
13335 ac_shift=shift
13337 *) # This is not an option, so the user has probably given explicit
13338 # arguments.
13339 ac_option=$1
13340 ac_need_defaults=false;;
13341 esac
13343 case $ac_option in
13344 # Handling of the options.
13345 _ACEOF
13346 cat >>$CONFIG_STATUS <<\_ACEOF
13347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13348 ac_cs_recheck=: ;;
13349 --version | --vers* | -V )
13350 echo "$ac_cs_version"; exit 0 ;;
13351 --he | --h)
13352 # Conflict between --help and --header
13353 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13354 Try \`$0 --help' for more information." >&5
13355 echo "$as_me: error: ambiguous option: $1
13356 Try \`$0 --help' for more information." >&2;}
13357 { (exit 1); exit 1; }; };;
13358 --help | --hel | -h )
13359 echo "$ac_cs_usage"; exit 0 ;;
13360 --debug | --d* | -d )
13361 debug=: ;;
13362 --file | --fil | --fi | --f )
13363 $ac_shift
13364 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13365 ac_need_defaults=false;;
13366 --header | --heade | --head | --hea )
13367 $ac_shift
13368 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13369 ac_need_defaults=false;;
13370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13372 ac_cs_silent=: ;;
13374 # This is an error.
13375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13376 Try \`$0 --help' for more information." >&5
13377 echo "$as_me: error: unrecognized option: $1
13378 Try \`$0 --help' for more information." >&2;}
13379 { (exit 1); exit 1; }; } ;;
13381 *) ac_config_targets="$ac_config_targets $1" ;;
13383 esac
13384 shift
13385 done
13387 ac_configure_extra_args=
13389 if $ac_cs_silent; then
13390 exec 6>/dev/null
13391 ac_configure_extra_args="$ac_configure_extra_args --silent"
13394 _ACEOF
13395 cat >>$CONFIG_STATUS <<_ACEOF
13396 if \$ac_cs_recheck; then
13397 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13398 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13401 _ACEOF
13403 cat >>$CONFIG_STATUS <<_ACEOF
13405 # INIT-COMMANDS section.
13408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13411 # The HP-UX ksh and POSIX shell print the target directory to stdout
13412 # if CDPATH is set.
13413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13415 sed_quote_subst='$sed_quote_subst'
13416 double_quote_subst='$double_quote_subst'
13417 delay_variable_subst='$delay_variable_subst'
13418 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13419 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13420 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13421 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13422 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13423 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13424 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13425 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13426 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13427 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13428 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13429 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13430 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13431 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13432 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13433 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13434 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13435 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13436 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13437 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13438 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13439 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13440 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13441 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13442 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13443 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13444 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13445 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13447 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13448 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13449 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13450 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13451 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13452 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13453 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13455 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13456 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13457 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13458 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13459 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13460 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13461 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"`'
13462 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13463 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13464 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13465 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13466 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13467 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13468 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13469 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13470 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13471 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13472 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13473 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13476 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13477 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13478 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13480 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13482 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13483 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13484 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13485 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13487 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13488 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13489 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13490 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13491 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13492 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13493 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13494 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13495 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13496 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13497 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13498 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13499 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13500 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13501 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13502 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13503 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13504 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13505 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13506 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13507 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13508 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13509 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13510 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13511 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13512 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13513 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13514 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13515 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13516 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13519 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13520 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13521 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13523 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13524 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13525 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13526 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13527 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13528 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13530 LTCC='$LTCC'
13531 LTCFLAGS='$LTCFLAGS'
13532 compiler='$compiler_DEFAULT'
13534 # Quote evaled strings.
13535 for var in SED \
13536 GREP \
13537 EGREP \
13538 FGREP \
13539 LD \
13540 NM \
13541 LN_S \
13542 lt_SP2NL \
13543 lt_NL2SP \
13544 reload_flag \
13545 deplibs_check_method \
13546 file_magic_cmd \
13547 AR \
13548 AR_FLAGS \
13549 STRIP \
13550 RANLIB \
13551 CC \
13552 CFLAGS \
13553 compiler \
13554 lt_cv_sys_global_symbol_pipe \
13555 lt_cv_sys_global_symbol_to_cdecl \
13556 lt_cv_sys_global_symbol_to_c_name_address \
13557 SHELL \
13558 ECHO \
13559 lt_prog_compiler_no_builtin_flag \
13560 lt_prog_compiler_wl \
13561 lt_prog_compiler_pic \
13562 lt_prog_compiler_static \
13563 lt_cv_prog_compiler_c_o \
13564 need_locks \
13565 shrext_cmds \
13566 export_dynamic_flag_spec \
13567 whole_archive_flag_spec \
13568 compiler_needs_object \
13569 with_gnu_ld \
13570 allow_undefined_flag \
13571 no_undefined_flag \
13572 hardcode_libdir_flag_spec \
13573 hardcode_libdir_flag_spec_ld \
13574 hardcode_libdir_separator \
13575 fix_srcfile_path \
13576 exclude_expsyms \
13577 include_expsyms \
13578 file_list_spec \
13579 variables_saved_for_relink \
13580 libname_spec \
13581 library_names_spec \
13582 soname_spec \
13583 finish_eval \
13584 old_striplib \
13585 striplib; do
13586 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13587 *[\\\\\\\`\\"\\\$]*)
13588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13593 esac
13594 done
13596 # Double-quote double-evaled strings.
13597 for var in reload_cmds \
13598 old_postinstall_cmds \
13599 old_postuninstall_cmds \
13600 old_archive_cmds \
13601 extract_expsyms_cmds \
13602 old_archive_from_new_cmds \
13603 old_archive_from_expsyms_cmds \
13604 archive_cmds \
13605 archive_expsym_cmds \
13606 module_cmds \
13607 module_expsym_cmds \
13608 export_symbols_cmds \
13609 prelink_cmds \
13610 postinstall_cmds \
13611 postuninstall_cmds \
13612 finish_cmds \
13613 sys_lib_search_path_spec \
13614 sys_lib_dlsearch_path_spec; do
13615 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13616 *[\\\\\\\`\\"\\\$]*)
13617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13622 esac
13623 done
13625 # Fix-up fallback echo if it was mangled by the above quoting rules.
13626 case \$lt_ECHO in
13627 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13629 esac
13631 ac_aux_dir='$ac_aux_dir'
13632 xsi_shell='$xsi_shell'
13633 lt_shell_append='$lt_shell_append'
13635 # See if we are running on zsh, and set the options which allow our
13636 # commands through without removal of \ escapes INIT.
13637 if test -n "\${ZSH_VERSION+set}" ; then
13638 setopt NO_GLOB_SUBST
13642 PACKAGE='$PACKAGE'
13643 VERSION='$VERSION'
13644 TIMESTAMP='$TIMESTAMP'
13645 RM='$RM'
13646 ofile='$ofile'
13650 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13651 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13652 # from automake.
13653 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13654 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13655 LINGUAS="${LINGUAS-%UNSET%}"
13658 _ACEOF
13662 cat >>$CONFIG_STATUS <<\_ACEOF
13663 for ac_config_target in $ac_config_targets
13665 case "$ac_config_target" in
13666 # Handling of arguments.
13667 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13668 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13669 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13670 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13671 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13672 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13673 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13674 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13675 { (exit 1); exit 1; }; };;
13676 esac
13677 done
13679 # If the user did not use the arguments to specify the items to instantiate,
13680 # then the envvar interface is used. Set only those that are not.
13681 # We use the long form for the default assignment because of an extremely
13682 # bizarre bug on SunOS 4.1.3.
13683 if $ac_need_defaults; then
13684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13689 # Have a temporary directory for convenience. Make it in the build tree
13690 # simply because there is no reason to put it here, and in addition,
13691 # creating and moving files from /tmp can sometimes cause problems.
13692 # Create a temporary directory, and hook for its removal unless debugging.
13693 $debug ||
13695 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13696 trap '{ (exit 1); exit 1; }' 1 2 13 15
13699 # Create a (secure) tmp directory for tmp files.
13702 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13703 test -n "$tmp" && test -d "$tmp"
13704 } ||
13706 tmp=./confstat$$-$RANDOM
13707 (umask 077 && mkdir $tmp)
13708 } ||
13710 echo "$me: cannot create a temporary directory in ." >&2
13711 { (exit 1); exit 1; }
13714 _ACEOF
13716 cat >>$CONFIG_STATUS <<_ACEOF
13719 # CONFIG_FILES section.
13722 # No need to generate the scripts if there are no CONFIG_FILES.
13723 # This happens for instance when ./config.status config.h
13724 if test -n "\$CONFIG_FILES"; then
13725 # Protect against being on the right side of a sed subst in config.status.
13726 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13727 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13728 s,@SHELL@,$SHELL,;t t
13729 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13730 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13731 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13732 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13733 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13734 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13735 s,@exec_prefix@,$exec_prefix,;t t
13736 s,@prefix@,$prefix,;t t
13737 s,@program_transform_name@,$program_transform_name,;t t
13738 s,@bindir@,$bindir,;t t
13739 s,@sbindir@,$sbindir,;t t
13740 s,@libexecdir@,$libexecdir,;t t
13741 s,@datadir@,$datadir,;t t
13742 s,@sysconfdir@,$sysconfdir,;t t
13743 s,@sharedstatedir@,$sharedstatedir,;t t
13744 s,@localstatedir@,$localstatedir,;t t
13745 s,@libdir@,$libdir,;t t
13746 s,@includedir@,$includedir,;t t
13747 s,@oldincludedir@,$oldincludedir,;t t
13748 s,@infodir@,$infodir,;t t
13749 s,@mandir@,$mandir,;t t
13750 s,@build_alias@,$build_alias,;t t
13751 s,@host_alias@,$host_alias,;t t
13752 s,@target_alias@,$target_alias,;t t
13753 s,@DEFS@,$DEFS,;t t
13754 s,@ECHO_C@,$ECHO_C,;t t
13755 s,@ECHO_N@,$ECHO_N,;t t
13756 s,@ECHO_T@,$ECHO_T,;t t
13757 s,@LIBS@,$LIBS,;t t
13758 s,@build@,$build,;t t
13759 s,@build_cpu@,$build_cpu,;t t
13760 s,@build_vendor@,$build_vendor,;t t
13761 s,@build_os@,$build_os,;t t
13762 s,@host@,$host,;t t
13763 s,@host_cpu@,$host_cpu,;t t
13764 s,@host_vendor@,$host_vendor,;t t
13765 s,@host_os@,$host_os,;t t
13766 s,@target@,$target,;t t
13767 s,@target_cpu@,$target_cpu,;t t
13768 s,@target_vendor@,$target_vendor,;t t
13769 s,@target_os@,$target_os,;t t
13770 s,@CC@,$CC,;t t
13771 s,@CFLAGS@,$CFLAGS,;t t
13772 s,@LDFLAGS@,$LDFLAGS,;t t
13773 s,@CPPFLAGS@,$CPPFLAGS,;t t
13774 s,@ac_ct_CC@,$ac_ct_CC,;t t
13775 s,@EXEEXT@,$EXEEXT,;t t
13776 s,@OBJEXT@,$OBJEXT,;t t
13777 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13778 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13779 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13780 s,@CYGPATH_W@,$CYGPATH_W,;t t
13781 s,@PACKAGE@,$PACKAGE,;t t
13782 s,@VERSION@,$VERSION,;t t
13783 s,@ACLOCAL@,$ACLOCAL,;t t
13784 s,@AUTOCONF@,$AUTOCONF,;t t
13785 s,@AUTOMAKE@,$AUTOMAKE,;t t
13786 s,@AUTOHEADER@,$AUTOHEADER,;t t
13787 s,@MAKEINFO@,$MAKEINFO,;t t
13788 s,@install_sh@,$install_sh,;t t
13789 s,@STRIP@,$STRIP,;t t
13790 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13791 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13792 s,@mkdir_p@,$mkdir_p,;t t
13793 s,@AWK@,$AWK,;t t
13794 s,@SET_MAKE@,$SET_MAKE,;t t
13795 s,@am__leading_dot@,$am__leading_dot,;t t
13796 s,@AMTAR@,$AMTAR,;t t
13797 s,@am__tar@,$am__tar,;t t
13798 s,@am__untar@,$am__untar,;t t
13799 s,@DEPDIR@,$DEPDIR,;t t
13800 s,@am__include@,$am__include,;t t
13801 s,@am__quote@,$am__quote,;t t
13802 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13803 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13804 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13805 s,@CCDEPMODE@,$CCDEPMODE,;t t
13806 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13807 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13808 s,@LIBTOOL@,$LIBTOOL,;t t
13809 s,@SED@,$SED,;t t
13810 s,@EGREP@,$EGREP,;t t
13811 s,@FGREP@,$FGREP,;t t
13812 s,@GREP@,$GREP,;t t
13813 s,@LD@,$LD,;t t
13814 s,@DUMPBIN@,$DUMPBIN,;t t
13815 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13816 s,@NM@,$NM,;t t
13817 s,@LN_S@,$LN_S,;t t
13818 s,@AR@,$AR,;t t
13819 s,@ac_ct_AR@,$ac_ct_AR,;t t
13820 s,@RANLIB@,$RANLIB,;t t
13821 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13822 s,@lt_ECHO@,$lt_ECHO,;t t
13823 s,@CPP@,$CPP,;t t
13824 s,@use_sysroot@,$use_sysroot,;t t
13825 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13826 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13827 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13828 s,@NO_WERROR@,$NO_WERROR,;t t
13829 s,@USE_NLS@,$USE_NLS,;t t
13830 s,@LIBINTL@,$LIBINTL,;t t
13831 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13832 s,@INCINTL@,$INCINTL,;t t
13833 s,@XGETTEXT@,$XGETTEXT,;t t
13834 s,@GMSGFMT@,$GMSGFMT,;t t
13835 s,@POSUB@,$POSUB,;t t
13836 s,@CATALOGS@,$CATALOGS,;t t
13837 s,@DATADIRNAME@,$DATADIRNAME,;t t
13838 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13839 s,@GENCAT@,$GENCAT,;t t
13840 s,@CATOBJEXT@,$CATOBJEXT,;t t
13841 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13842 s,@MSGFMT@,$MSGFMT,;t t
13843 s,@MSGMERGE@,$MSGMERGE,;t t
13844 s,@YACC@,$YACC,;t t
13845 s,@LEX@,$LEX,;t t
13846 s,@LEXLIB@,$LEXLIB,;t t
13847 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13848 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13849 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13850 s,@MAINT@,$MAINT,;t t
13851 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13852 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13853 s,@HDEFINES@,$HDEFINES,;t t
13854 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13855 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13856 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13857 s,@STRINGIFY@,$STRINGIFY,;t t
13858 s,@EMUL@,$EMUL,;t t
13859 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13860 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13861 s,@LIB_PATH@,$LIB_PATH,;t t
13862 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13863 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
13864 s,@datarootdir@,$datarootdir,;t t
13865 s,@docdir@,$docdir,;t t
13866 s,@htmldir@,$htmldir,;t t
13867 s,@LIBOBJS@,$LIBOBJS,;t t
13868 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13869 /@TDIRS@/r $TDIRS
13870 s,@TDIRS@,,;t t
13871 CEOF
13873 _ACEOF
13875 cat >>$CONFIG_STATUS <<\_ACEOF
13876 # Split the substitutions into bite-sized pieces for seds with
13877 # small command number limits, like on Digital OSF/1 and HP-UX.
13878 ac_max_sed_lines=48
13879 ac_sed_frag=1 # Number of current file.
13880 ac_beg=1 # First line for current file.
13881 ac_end=$ac_max_sed_lines # Line after last line for current file.
13882 ac_more_lines=:
13883 ac_sed_cmds=
13884 while $ac_more_lines; do
13885 if test $ac_beg -gt 1; then
13886 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13887 else
13888 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13890 if test ! -s $tmp/subs.frag; then
13891 ac_more_lines=false
13892 else
13893 # The purpose of the label and of the branching condition is to
13894 # speed up the sed processing (if there are no `@' at all, there
13895 # is no need to browse any of the substitutions).
13896 # These are the two extra sed commands mentioned above.
13897 (echo ':t
13898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13899 if test -z "$ac_sed_cmds"; then
13900 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13901 else
13902 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13904 ac_sed_frag=`expr $ac_sed_frag + 1`
13905 ac_beg=$ac_end
13906 ac_end=`expr $ac_end + $ac_max_sed_lines`
13908 done
13909 if test -z "$ac_sed_cmds"; then
13910 ac_sed_cmds=cat
13912 fi # test -n "$CONFIG_FILES"
13914 _ACEOF
13915 cat >>$CONFIG_STATUS <<\_ACEOF
13916 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13918 case $ac_file in
13919 - | *:- | *:-:* ) # input from stdin
13920 cat >$tmp/stdin
13921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13925 * ) ac_file_in=$ac_file.in ;;
13926 esac
13928 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13929 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13931 X"$ac_file" : 'X\(//\)[^/]' \| \
13932 X"$ac_file" : 'X\(//\)$' \| \
13933 X"$ac_file" : 'X\(/\)' \| \
13934 . : '\(.\)' 2>/dev/null ||
13935 echo X"$ac_file" |
13936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13938 /^X\(\/\/\)$/{ s//\1/; q; }
13939 /^X\(\/\).*/{ s//\1/; q; }
13940 s/.*/./; q'`
13941 { if $as_mkdir_p; then
13942 mkdir -p "$ac_dir"
13943 else
13944 as_dir="$ac_dir"
13945 as_dirs=
13946 while test ! -d "$as_dir"; do
13947 as_dirs="$as_dir $as_dirs"
13948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13950 X"$as_dir" : 'X\(//\)[^/]' \| \
13951 X"$as_dir" : 'X\(//\)$' \| \
13952 X"$as_dir" : 'X\(/\)' \| \
13953 . : '\(.\)' 2>/dev/null ||
13954 echo X"$as_dir" |
13955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13957 /^X\(\/\/\)$/{ s//\1/; q; }
13958 /^X\(\/\).*/{ s//\1/; q; }
13959 s/.*/./; q'`
13960 done
13961 test ! -n "$as_dirs" || mkdir $as_dirs
13962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13964 { (exit 1); exit 1; }; }; }
13966 ac_builddir=.
13968 if test "$ac_dir" != .; then
13969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13970 # A "../" for each directory in $ac_dir_suffix.
13971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13972 else
13973 ac_dir_suffix= ac_top_builddir=
13976 case $srcdir in
13977 .) # No --srcdir option. We are building in place.
13978 ac_srcdir=.
13979 if test -z "$ac_top_builddir"; then
13980 ac_top_srcdir=.
13981 else
13982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13983 fi ;;
13984 [\\/]* | ?:[\\/]* ) # Absolute path.
13985 ac_srcdir=$srcdir$ac_dir_suffix;
13986 ac_top_srcdir=$srcdir ;;
13987 *) # Relative path.
13988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13990 esac
13992 # Do not use `cd foo && pwd` to compute absolute paths, because
13993 # the directories may not exist.
13994 case `pwd` in
13995 .) ac_abs_builddir="$ac_dir";;
13997 case "$ac_dir" in
13998 .) ac_abs_builddir=`pwd`;;
13999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14001 esac;;
14002 esac
14003 case $ac_abs_builddir in
14004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14006 case ${ac_top_builddir}. in
14007 .) ac_abs_top_builddir=$ac_abs_builddir;;
14008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14010 esac;;
14011 esac
14012 case $ac_abs_builddir in
14013 .) ac_abs_srcdir=$ac_srcdir;;
14015 case $ac_srcdir in
14016 .) ac_abs_srcdir=$ac_abs_builddir;;
14017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14019 esac;;
14020 esac
14021 case $ac_abs_builddir in
14022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14024 case $ac_top_srcdir in
14025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14028 esac;;
14029 esac
14032 case $INSTALL in
14033 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14034 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14035 esac
14037 if test x"$ac_file" != x-; then
14038 { echo "$as_me:$LINENO: creating $ac_file" >&5
14039 echo "$as_me: creating $ac_file" >&6;}
14040 rm -f "$ac_file"
14042 # Let's still pretend it is `configure' which instantiates (i.e., don't
14043 # use $as_me), people would be surprised to read:
14044 # /* config.h. Generated by config.status. */
14045 if test x"$ac_file" = x-; then
14046 configure_input=
14047 else
14048 configure_input="$ac_file. "
14050 configure_input=$configure_input"Generated from `echo $ac_file_in |
14051 sed 's,.*/,,'` by configure."
14053 # First look for the input files in the build tree, otherwise in the
14054 # src tree.
14055 ac_file_inputs=`IFS=:
14056 for f in $ac_file_in; do
14057 case $f in
14058 -) echo $tmp/stdin ;;
14059 [\\/$]*)
14060 # Absolute (can't be DOS-style, as IFS=:)
14061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14062 echo "$as_me: error: cannot find input file: $f" >&2;}
14063 { (exit 1); exit 1; }; }
14064 echo "$f";;
14065 *) # Relative
14066 if test -f "$f"; then
14067 # Build tree
14068 echo "$f"
14069 elif test -f "$srcdir/$f"; then
14070 # Source tree
14071 echo "$srcdir/$f"
14072 else
14073 # /dev/null tree
14074 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14075 echo "$as_me: error: cannot find input file: $f" >&2;}
14076 { (exit 1); exit 1; }; }
14077 fi;;
14078 esac
14079 done` || { (exit 1); exit 1; }
14080 _ACEOF
14081 cat >>$CONFIG_STATUS <<_ACEOF
14082 sed "$ac_vpsub
14083 $extrasub
14084 _ACEOF
14085 cat >>$CONFIG_STATUS <<\_ACEOF
14087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14088 s,@configure_input@,$configure_input,;t t
14089 s,@srcdir@,$ac_srcdir,;t t
14090 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14091 s,@top_srcdir@,$ac_top_srcdir,;t t
14092 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14093 s,@builddir@,$ac_builddir,;t t
14094 s,@abs_builddir@,$ac_abs_builddir,;t t
14095 s,@top_builddir@,$ac_top_builddir,;t t
14096 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14097 s,@INSTALL@,$ac_INSTALL,;t t
14098 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14099 rm -f $tmp/stdin
14100 if test x"$ac_file" != x-; then
14101 mv $tmp/out $ac_file
14102 else
14103 cat $tmp/out
14104 rm -f $tmp/out
14107 done
14108 _ACEOF
14109 cat >>$CONFIG_STATUS <<\_ACEOF
14112 # CONFIG_HEADER section.
14115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14118 # ac_d sets the value in "#define NAME VALUE" lines.
14119 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14120 ac_dB='[ ].*$,\1#\2'
14121 ac_dC=' '
14122 ac_dD=',;t'
14123 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14124 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14125 ac_uB='$,\1#\2define\3'
14126 ac_uC=' '
14127 ac_uD=',;t'
14129 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14131 case $ac_file in
14132 - | *:- | *:-:* ) # input from stdin
14133 cat >$tmp/stdin
14134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14138 * ) ac_file_in=$ac_file.in ;;
14139 esac
14141 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14142 echo "$as_me: creating $ac_file" >&6;}
14144 # First look for the input files in the build tree, otherwise in the
14145 # src tree.
14146 ac_file_inputs=`IFS=:
14147 for f in $ac_file_in; do
14148 case $f in
14149 -) echo $tmp/stdin ;;
14150 [\\/$]*)
14151 # Absolute (can't be DOS-style, as IFS=:)
14152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14153 echo "$as_me: error: cannot find input file: $f" >&2;}
14154 { (exit 1); exit 1; }; }
14155 # Do quote $f, to prevent DOS paths from being IFS'd.
14156 echo "$f";;
14157 *) # Relative
14158 if test -f "$f"; then
14159 # Build tree
14160 echo "$f"
14161 elif test -f "$srcdir/$f"; then
14162 # Source tree
14163 echo "$srcdir/$f"
14164 else
14165 # /dev/null tree
14166 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14167 echo "$as_me: error: cannot find input file: $f" >&2;}
14168 { (exit 1); exit 1; }; }
14169 fi;;
14170 esac
14171 done` || { (exit 1); exit 1; }
14172 # Remove the trailing spaces.
14173 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14175 _ACEOF
14177 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14178 # `conftest.undefs', that substitutes the proper values into
14179 # config.h.in to produce config.h. The first handles `#define'
14180 # templates, and the second `#undef' templates.
14181 # And first: Protect against being on the right side of a sed subst in
14182 # config.status. Protect against being in an unquoted here document
14183 # in config.status.
14184 rm -f conftest.defines conftest.undefs
14185 # Using a here document instead of a string reduces the quoting nightmare.
14186 # Putting comments in sed scripts is not portable.
14188 # `end' is used to avoid that the second main sed command (meant for
14189 # 0-ary CPP macros) applies to n-ary macro definitions.
14190 # See the Autoconf documentation for `clear'.
14191 cat >confdef2sed.sed <<\_ACEOF
14192 s/[\\&,]/\\&/g
14193 s,[\\$`],\\&,g
14194 t clear
14195 : clear
14196 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14197 t end
14198 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14199 : end
14200 _ACEOF
14201 # If some macros were called several times there might be several times
14202 # the same #defines, which is useless. Nevertheless, we may not want to
14203 # sort them, since we want the *last* AC-DEFINE to be honored.
14204 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14205 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14206 rm -f confdef2sed.sed
14208 # This sed command replaces #undef with comments. This is necessary, for
14209 # example, in the case of _POSIX_SOURCE, which is predefined and required
14210 # on some systems where configure will not decide to define it.
14211 cat >>conftest.undefs <<\_ACEOF
14212 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14213 _ACEOF
14215 # Break up conftest.defines because some shells have a limit on the size
14216 # of here documents, and old seds have small limits too (100 cmds).
14217 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14218 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14219 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14220 echo ' :' >>$CONFIG_STATUS
14221 rm -f conftest.tail
14222 while grep . conftest.defines >/dev/null
14224 # Write a limited-size here document to $tmp/defines.sed.
14225 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14226 # Speed up: don't consider the non `#define' lines.
14227 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14228 # Work around the forget-to-reset-the-flag bug.
14229 echo 't clr' >>$CONFIG_STATUS
14230 echo ': clr' >>$CONFIG_STATUS
14231 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14232 echo 'CEOF
14233 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14234 rm -f $tmp/in
14235 mv $tmp/out $tmp/in
14236 ' >>$CONFIG_STATUS
14237 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14238 rm -f conftest.defines
14239 mv conftest.tail conftest.defines
14240 done
14241 rm -f conftest.defines
14242 echo ' fi # grep' >>$CONFIG_STATUS
14243 echo >>$CONFIG_STATUS
14245 # Break up conftest.undefs because some shells have a limit on the size
14246 # of here documents, and old seds have small limits too (100 cmds).
14247 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14248 rm -f conftest.tail
14249 while grep . conftest.undefs >/dev/null
14251 # Write a limited-size here document to $tmp/undefs.sed.
14252 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14253 # Speed up: don't consider the non `#undef'
14254 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14255 # Work around the forget-to-reset-the-flag bug.
14256 echo 't clr' >>$CONFIG_STATUS
14257 echo ': clr' >>$CONFIG_STATUS
14258 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14259 echo 'CEOF
14260 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14261 rm -f $tmp/in
14262 mv $tmp/out $tmp/in
14263 ' >>$CONFIG_STATUS
14264 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14265 rm -f conftest.undefs
14266 mv conftest.tail conftest.undefs
14267 done
14268 rm -f conftest.undefs
14270 cat >>$CONFIG_STATUS <<\_ACEOF
14271 # Let's still pretend it is `configure' which instantiates (i.e., don't
14272 # use $as_me), people would be surprised to read:
14273 # /* config.h. Generated by config.status. */
14274 if test x"$ac_file" = x-; then
14275 echo "/* Generated by configure. */" >$tmp/config.h
14276 else
14277 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14279 cat $tmp/in >>$tmp/config.h
14280 rm -f $tmp/in
14281 if test x"$ac_file" != x-; then
14282 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14283 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14284 echo "$as_me: $ac_file is unchanged" >&6;}
14285 else
14286 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14288 X"$ac_file" : 'X\(//\)[^/]' \| \
14289 X"$ac_file" : 'X\(//\)$' \| \
14290 X"$ac_file" : 'X\(/\)' \| \
14291 . : '\(.\)' 2>/dev/null ||
14292 echo X"$ac_file" |
14293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14295 /^X\(\/\/\)$/{ s//\1/; q; }
14296 /^X\(\/\).*/{ s//\1/; q; }
14297 s/.*/./; q'`
14298 { if $as_mkdir_p; then
14299 mkdir -p "$ac_dir"
14300 else
14301 as_dir="$ac_dir"
14302 as_dirs=
14303 while test ! -d "$as_dir"; do
14304 as_dirs="$as_dir $as_dirs"
14305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14307 X"$as_dir" : 'X\(//\)[^/]' \| \
14308 X"$as_dir" : 'X\(//\)$' \| \
14309 X"$as_dir" : 'X\(/\)' \| \
14310 . : '\(.\)' 2>/dev/null ||
14311 echo X"$as_dir" |
14312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14314 /^X\(\/\/\)$/{ s//\1/; q; }
14315 /^X\(\/\).*/{ s//\1/; q; }
14316 s/.*/./; q'`
14317 done
14318 test ! -n "$as_dirs" || mkdir $as_dirs
14319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14321 { (exit 1); exit 1; }; }; }
14323 rm -f $ac_file
14324 mv $tmp/config.h $ac_file
14326 else
14327 cat $tmp/config.h
14328 rm -f $tmp/config.h
14330 # Compute $ac_file's index in $config_headers.
14331 _am_stamp_count=1
14332 for _am_header in $config_headers :; do
14333 case $_am_header in
14334 $ac_file | $ac_file:* )
14335 break ;;
14337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14338 esac
14339 done
14340 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14341 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14342 X$ac_file : 'X\(//\)[^/]' \| \
14343 X$ac_file : 'X\(//\)$' \| \
14344 X$ac_file : 'X\(/\)' \| \
14345 . : '\(.\)' 2>/dev/null ||
14346 echo X$ac_file |
14347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14349 /^X\(\/\/\)$/{ s//\1/; q; }
14350 /^X\(\/\).*/{ s//\1/; q; }
14351 s/.*/./; q'`/stamp-h$_am_stamp_count
14352 done
14353 _ACEOF
14354 cat >>$CONFIG_STATUS <<\_ACEOF
14357 # CONFIG_COMMANDS section.
14359 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14360 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14361 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14362 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14363 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364 X"$ac_dest" : 'X\(//\)[^/]' \| \
14365 X"$ac_dest" : 'X\(//\)$' \| \
14366 X"$ac_dest" : 'X\(/\)' \| \
14367 . : '\(.\)' 2>/dev/null ||
14368 echo X"$ac_dest" |
14369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14371 /^X\(\/\/\)$/{ s//\1/; q; }
14372 /^X\(\/\).*/{ s//\1/; q; }
14373 s/.*/./; q'`
14374 { if $as_mkdir_p; then
14375 mkdir -p "$ac_dir"
14376 else
14377 as_dir="$ac_dir"
14378 as_dirs=
14379 while test ! -d "$as_dir"; do
14380 as_dirs="$as_dir $as_dirs"
14381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$as_dir" : 'X\(//\)[^/]' \| \
14384 X"$as_dir" : 'X\(//\)$' \| \
14385 X"$as_dir" : 'X\(/\)' \| \
14386 . : '\(.\)' 2>/dev/null ||
14387 echo X"$as_dir" |
14388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14390 /^X\(\/\/\)$/{ s//\1/; q; }
14391 /^X\(\/\).*/{ s//\1/; q; }
14392 s/.*/./; q'`
14393 done
14394 test ! -n "$as_dirs" || mkdir $as_dirs
14395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14397 { (exit 1); exit 1; }; }; }
14399 ac_builddir=.
14401 if test "$ac_dir" != .; then
14402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14403 # A "../" for each directory in $ac_dir_suffix.
14404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14405 else
14406 ac_dir_suffix= ac_top_builddir=
14409 case $srcdir in
14410 .) # No --srcdir option. We are building in place.
14411 ac_srcdir=.
14412 if test -z "$ac_top_builddir"; then
14413 ac_top_srcdir=.
14414 else
14415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14416 fi ;;
14417 [\\/]* | ?:[\\/]* ) # Absolute path.
14418 ac_srcdir=$srcdir$ac_dir_suffix;
14419 ac_top_srcdir=$srcdir ;;
14420 *) # Relative path.
14421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14422 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14423 esac
14425 # Do not use `cd foo && pwd` to compute absolute paths, because
14426 # the directories may not exist.
14427 case `pwd` in
14428 .) ac_abs_builddir="$ac_dir";;
14430 case "$ac_dir" in
14431 .) ac_abs_builddir=`pwd`;;
14432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14433 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14434 esac;;
14435 esac
14436 case $ac_abs_builddir in
14437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14439 case ${ac_top_builddir}. in
14440 .) ac_abs_top_builddir=$ac_abs_builddir;;
14441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14443 esac;;
14444 esac
14445 case $ac_abs_builddir in
14446 .) ac_abs_srcdir=$ac_srcdir;;
14448 case $ac_srcdir in
14449 .) ac_abs_srcdir=$ac_abs_builddir;;
14450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14452 esac;;
14453 esac
14454 case $ac_abs_builddir in
14455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14457 case $ac_top_srcdir in
14458 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14461 esac;;
14462 esac
14465 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14466 echo "$as_me: executing $ac_dest commands" >&6;}
14467 case $ac_dest in
14468 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14469 # Strip MF so we end up with the name of the file.
14470 mf=`echo "$mf" | sed -e 's/:.*$//'`
14471 # Check whether this is an Automake generated Makefile or not.
14472 # We used to match only the files named `Makefile.in', but
14473 # some people rename them; so instead we look at the file content.
14474 # Grep'ing the first line is not enough: some people post-process
14475 # each Makefile.in and add a new line on top of each file to say so.
14476 # So let's grep whole file.
14477 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14478 dirpart=`(dirname "$mf") 2>/dev/null ||
14479 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14480 X"$mf" : 'X\(//\)[^/]' \| \
14481 X"$mf" : 'X\(//\)$' \| \
14482 X"$mf" : 'X\(/\)' \| \
14483 . : '\(.\)' 2>/dev/null ||
14484 echo X"$mf" |
14485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14487 /^X\(\/\/\)$/{ s//\1/; q; }
14488 /^X\(\/\).*/{ s//\1/; q; }
14489 s/.*/./; q'`
14490 else
14491 continue
14493 # Extract the definition of DEPDIR, am__include, and am__quote
14494 # from the Makefile without running `make'.
14495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14496 test -z "$DEPDIR" && continue
14497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14498 test -z "am__include" && continue
14499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14500 # When using ansi2knr, U may be empty or an underscore; expand it
14501 U=`sed -n 's/^U = //p' < "$mf"`
14502 # Find all dependency output files, they are included files with
14503 # $(DEPDIR) in their names. We invoke sed twice because it is the
14504 # simplest approach to changing $(DEPDIR) to its actual value in the
14505 # expansion.
14506 for file in `sed -n "
14507 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14508 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14509 # Make sure the directory exists.
14510 test -f "$dirpart/$file" && continue
14511 fdir=`(dirname "$file") 2>/dev/null ||
14512 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14513 X"$file" : 'X\(//\)[^/]' \| \
14514 X"$file" : 'X\(//\)$' \| \
14515 X"$file" : 'X\(/\)' \| \
14516 . : '\(.\)' 2>/dev/null ||
14517 echo X"$file" |
14518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14520 /^X\(\/\/\)$/{ s//\1/; q; }
14521 /^X\(\/\).*/{ s//\1/; q; }
14522 s/.*/./; q'`
14523 { if $as_mkdir_p; then
14524 mkdir -p $dirpart/$fdir
14525 else
14526 as_dir=$dirpart/$fdir
14527 as_dirs=
14528 while test ! -d "$as_dir"; do
14529 as_dirs="$as_dir $as_dirs"
14530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$as_dir" : 'X\(//\)[^/]' \| \
14533 X"$as_dir" : 'X\(//\)$' \| \
14534 X"$as_dir" : 'X\(/\)' \| \
14535 . : '\(.\)' 2>/dev/null ||
14536 echo X"$as_dir" |
14537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14539 /^X\(\/\/\)$/{ s//\1/; q; }
14540 /^X\(\/\).*/{ s//\1/; q; }
14541 s/.*/./; q'`
14542 done
14543 test ! -n "$as_dirs" || mkdir $as_dirs
14544 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14545 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14546 { (exit 1); exit 1; }; }; }
14548 # echo "creating $dirpart/$file"
14549 echo '# dummy' > "$dirpart/$file"
14550 done
14551 done
14553 libtool )
14555 # See if we are running on zsh, and set the options which allow our
14556 # commands through without removal of \ escapes.
14557 if test -n "${ZSH_VERSION+set}" ; then
14558 setopt NO_GLOB_SUBST
14561 cfgfile="${ofile}T"
14562 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14563 $RM "$cfgfile"
14565 cat <<_LT_EOF >> "$cfgfile"
14566 #! $SHELL
14568 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14569 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14571 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14573 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14574 # 2006, 2007 Free Software Foundation, Inc.
14576 # This file is part of GNU Libtool:
14577 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14579 # This program is free software; you can redistribute it and/or modify
14580 # it under the terms of the GNU General Public License as published by
14581 # the Free Software Foundation; either version 2 of the License, or
14582 # (at your option) any later version.
14584 # This program is distributed in the hope that it will be useful, but
14585 # WITHOUT ANY WARRANTY; without even the implied warranty of
14586 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14587 # General Public License for more details.
14589 # You should have received a copy of the GNU General Public License
14590 # along with this program; if not, a copy can be downloaded from
14591 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14592 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14593 # MA 02110-1301, USA.
14595 # As a special exception to the GNU General Public License, if you
14596 # distribute this file as part of a program that contains a
14597 # configuration script generated by Autoconf, you may include it under
14598 # the same distribution terms that you use for the rest of that program.
14601 # The names of the tagged configurations supported by this script.
14602 available_tags=""
14604 # ### BEGIN LIBTOOL CONFIG
14606 # Which release of libtool.m4 was used?
14607 macro_version=$macro_version
14608 macro_revision=$macro_revision
14610 # Whether or not to build shared libraries.
14611 build_libtool_libs=$enable_shared
14613 # Whether or not to build static libraries.
14614 build_old_libs=$enable_static
14616 # What type of objects to build.
14617 pic_mode=$pic_mode
14619 # Whether or not to optimize for fast installation.
14620 fast_install=$enable_fast_install
14622 # The host system.
14623 host_alias=$host_alias
14624 host=$host
14625 host_os=$host_os
14627 # The build system.
14628 build_alias=$build_alias
14629 build=$build
14630 build_os=$build_os
14632 # A sed program that does not truncate output.
14633 SED=$lt_SED
14635 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14636 Xsed="\$SED -e 1s/^X//"
14638 # A grep program that handles long lines.
14639 GREP=$lt_GREP
14641 # An ERE matcher.
14642 EGREP=$lt_EGREP
14644 # A literal string matcher.
14645 FGREP=$lt_FGREP
14647 # A BSD- or MS-compatible name lister.
14648 NM=$lt_NM
14650 # Whether we need soft or hard links.
14651 LN_S=$lt_LN_S
14653 # What is the maximum length of a command?
14654 max_cmd_len=$max_cmd_len
14656 # Object file suffix (normally "o").
14657 objext=$ac_objext
14659 # Executable file suffix (normally "").
14660 exeext=$exeext
14662 # whether the shell understands "unset".
14663 lt_unset=$lt_unset
14665 # turn spaces into newlines.
14666 SP2NL=$lt_lt_SP2NL
14668 # turn newlines into spaces.
14669 NL2SP=$lt_lt_NL2SP
14671 # How to create reloadable object files.
14672 reload_flag=$lt_reload_flag
14673 reload_cmds=$lt_reload_cmds
14675 # Method to check whether dependent libraries are shared objects.
14676 deplibs_check_method=$lt_deplibs_check_method
14678 # Command to use when deplibs_check_method == "file_magic".
14679 file_magic_cmd=$lt_file_magic_cmd
14681 # The archiver.
14682 AR=$lt_AR
14683 AR_FLAGS=$lt_AR_FLAGS
14685 # A symbol stripping program.
14686 STRIP=$lt_STRIP
14688 # Commands used to install an old-style archive.
14689 RANLIB=$lt_RANLIB
14690 old_postinstall_cmds=$lt_old_postinstall_cmds
14691 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14693 # A C compiler.
14694 LTCC=$lt_CC
14696 # LTCC compiler flags.
14697 LTCFLAGS=$lt_CFLAGS
14699 # Take the output of nm and produce a listing of raw symbols and C names.
14700 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14702 # Transform the output of nm in a proper C declaration.
14703 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14705 # Transform the output of nm in a C name address pair.
14706 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14708 # The name of the directory that contains temporary libtool files.
14709 objdir=$objdir
14711 # Shell to use when invoking shell scripts.
14712 SHELL=$lt_SHELL
14714 # An echo program that does not interpret backslashes.
14715 ECHO=$lt_ECHO
14717 # Used to examine libraries when file_magic_cmd begins with "file".
14718 MAGIC_CMD=$MAGIC_CMD
14720 # Must we lock files when doing compilation?
14721 need_locks=$lt_need_locks
14723 # Old archive suffix (normally "a").
14724 libext=$libext
14726 # Shared library suffix (normally ".so").
14727 shrext_cmds=$lt_shrext_cmds
14729 # The commands to extract the exported symbol list from a shared archive.
14730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14732 # Variables whose values should be saved in libtool wrapper scripts and
14733 # restored at link time.
14734 variables_saved_for_relink=$lt_variables_saved_for_relink
14736 # Do we need the "lib" prefix for modules?
14737 need_lib_prefix=$need_lib_prefix
14739 # Do we need a version for libraries?
14740 need_version=$need_version
14742 # Library versioning type.
14743 version_type=$version_type
14745 # Shared library runtime path variable.
14746 runpath_var=$runpath_var
14748 # Shared library path variable.
14749 shlibpath_var=$shlibpath_var
14751 # Is shlibpath searched before the hard-coded library search path?
14752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14754 # Format of library name prefix.
14755 libname_spec=$lt_libname_spec
14757 # List of archive names. First name is the real one, the rest are links.
14758 # The last name is the one that the linker finds with -lNAME
14759 library_names_spec=$lt_library_names_spec
14761 # The coded name of the library, if different from the real name.
14762 soname_spec=$lt_soname_spec
14764 # Command to use after installation of a shared archive.
14765 postinstall_cmds=$lt_postinstall_cmds
14767 # Command to use after uninstallation of a shared archive.
14768 postuninstall_cmds=$lt_postuninstall_cmds
14770 # Commands used to finish a libtool library installation in a directory.
14771 finish_cmds=$lt_finish_cmds
14773 # As "finish_cmds", except a single script fragment to be evaled but
14774 # not shown.
14775 finish_eval=$lt_finish_eval
14777 # Whether we should hardcode library paths into libraries.
14778 hardcode_into_libs=$hardcode_into_libs
14780 # Compile-time system search path for libraries.
14781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14783 # Run-time system search path for libraries.
14784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14786 # Whether dlopen is supported.
14787 dlopen_support=$enable_dlopen
14789 # Whether dlopen of programs is supported.
14790 dlopen_self=$enable_dlopen_self
14792 # Whether dlopen of statically linked programs is supported.
14793 dlopen_self_static=$enable_dlopen_self_static
14795 # Commands to strip libraries.
14796 old_striplib=$lt_old_striplib
14797 striplib=$lt_striplib
14800 # The linker used to build libraries.
14801 LD=$lt_LD
14803 # Commands used to build an old-style archive.
14804 old_archive_cmds=$lt_old_archive_cmds
14806 # A language specific compiler.
14807 CC=$lt_compiler
14809 # Is the compiler the GNU compiler?
14810 with_gcc=$GCC
14812 # Compiler flag to turn off builtin functions.
14813 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14815 # How to pass a linker flag through the compiler.
14816 wl=$lt_lt_prog_compiler_wl
14818 # Additional compiler flags for building library objects.
14819 pic_flag=$lt_lt_prog_compiler_pic
14821 # Compiler flag to prevent dynamic linking.
14822 link_static_flag=$lt_lt_prog_compiler_static
14824 # Does compiler simultaneously support -c and -o options?
14825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14827 # Whether or not to add -lc for building shared libraries.
14828 build_libtool_need_lc=$archive_cmds_need_lc
14830 # Whether or not to disallow shared libs when runtime libs are static.
14831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14833 # Compiler flag to allow reflexive dlopens.
14834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14836 # Compiler flag to generate shared objects directly from archives.
14837 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14839 # Whether the compiler copes with passing no objects directly.
14840 compiler_needs_object=$lt_compiler_needs_object
14842 # Create an old-style archive from a shared archive.
14843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14845 # Create a temporary old-style archive to link instead of a shared archive.
14846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14848 # Commands used to build a shared archive.
14849 archive_cmds=$lt_archive_cmds
14850 archive_expsym_cmds=$lt_archive_expsym_cmds
14852 # Commands used to build a loadable module if different from building
14853 # a shared archive.
14854 module_cmds=$lt_module_cmds
14855 module_expsym_cmds=$lt_module_expsym_cmds
14857 # Whether we are building with GNU ld or not.
14858 with_gnu_ld=$lt_with_gnu_ld
14860 # Flag that allows shared libraries with undefined symbols to be built.
14861 allow_undefined_flag=$lt_allow_undefined_flag
14863 # Flag that enforces no undefined symbols.
14864 no_undefined_flag=$lt_no_undefined_flag
14866 # Flag to hardcode \$libdir into a binary during linking.
14867 # This must work even if \$libdir does not exist
14868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14870 # If ld is used when linking, flag to hardcode \$libdir into a binary
14871 # during linking. This must work even if \$libdir does not exist.
14872 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14874 # Whether we need a single "-rpath" flag with a separated argument.
14875 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14878 # DIR into the resulting binary.
14879 hardcode_direct=$hardcode_direct
14881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14882 # DIR into the resulting binary and the resulting library dependency is
14883 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14884 # library is relocated.
14885 hardcode_direct_absolute=$hardcode_direct_absolute
14887 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14888 # into the resulting binary.
14889 hardcode_minus_L=$hardcode_minus_L
14891 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14892 # into the resulting binary.
14893 hardcode_shlibpath_var=$hardcode_shlibpath_var
14895 # Set to "yes" if building a shared library automatically hardcodes DIR
14896 # into the library and all subsequent libraries and executables linked
14897 # against it.
14898 hardcode_automatic=$hardcode_automatic
14900 # Set to yes if linker adds runtime paths of dependent libraries
14901 # to runtime path list.
14902 inherit_rpath=$inherit_rpath
14904 # Whether libtool must link a program against all its dependency libraries.
14905 link_all_deplibs=$link_all_deplibs
14907 # Fix the shell variable \$srcfile for the compiler.
14908 fix_srcfile_path=$lt_fix_srcfile_path
14910 # Set to "yes" if exported symbols are required.
14911 always_export_symbols=$always_export_symbols
14913 # The commands to list exported symbols.
14914 export_symbols_cmds=$lt_export_symbols_cmds
14916 # Symbols that should not be listed in the preloaded symbols.
14917 exclude_expsyms=$lt_exclude_expsyms
14919 # Symbols that must always be exported.
14920 include_expsyms=$lt_include_expsyms
14922 # Commands necessary for linking programs (against libraries) with templates.
14923 prelink_cmds=$lt_prelink_cmds
14925 # Specify filename containing input files.
14926 file_list_spec=$lt_file_list_spec
14928 # How to hardcode a shared library path into an executable.
14929 hardcode_action=$hardcode_action
14931 # ### END LIBTOOL CONFIG
14933 _LT_EOF
14935 case $host_os in
14936 aix3*)
14937 cat <<\_LT_EOF >> "$cfgfile"
14938 # AIX sometimes has problems with the GCC collect2 program. For some
14939 # reason, if we set the COLLECT_NAMES environment variable, the problems
14940 # vanish in a puff of smoke.
14941 if test "X${COLLECT_NAMES+set}" != Xset; then
14942 COLLECT_NAMES=
14943 export COLLECT_NAMES
14945 _LT_EOF
14947 esac
14950 ltmain="$ac_aux_dir/ltmain.sh"
14953 # We use sed instead of cat because bash on DJGPP gets confused if
14954 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14955 # text mode, it properly converts lines to CR/LF. This bash problem
14956 # is reportedly fixed, but why not run on old versions too?
14957 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14958 || (rm -f "$cfgfile"; exit 1)
14960 case $xsi_shell in
14961 yes)
14962 cat << \_LT_EOF >> "$cfgfile"
14963 # func_dirname file append nondir_replacement
14964 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14965 # otherwise set result to NONDIR_REPLACEMENT.
14966 func_dirname ()
14968 case ${1} in
14969 */*) func_dirname_result="${1%/*}${2}" ;;
14970 * ) func_dirname_result="${3}" ;;
14971 esac
14974 # func_basename file
14975 func_basename ()
14977 func_basename_result="${1##*/}"
14980 # func_stripname prefix suffix name
14981 # strip PREFIX and SUFFIX off of NAME.
14982 # PREFIX and SUFFIX must not contain globbing or regex special
14983 # characters, hashes, percent signs, but SUFFIX may contain a leading
14984 # dot (in which case that matches only a dot).
14985 func_stripname ()
14987 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14988 # positional parameters, so assign one to ordinary parameter first.
14989 func_stripname_result=${3}
14990 func_stripname_result=${func_stripname_result#"${1}"}
14991 func_stripname_result=${func_stripname_result%"${2}"}
14994 # func_opt_split
14995 func_opt_split ()
14997 func_opt_split_opt=${1%%=*}
14998 func_opt_split_arg=${1#*=}
15001 # func_lo2o object
15002 func_lo2o ()
15004 case ${1} in
15005 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15006 *) func_lo2o_result=${1} ;;
15007 esac
15009 _LT_EOF
15011 *) # Bourne compatible functions.
15012 cat << \_LT_EOF >> "$cfgfile"
15013 # func_dirname file append nondir_replacement
15014 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15015 # otherwise set result to NONDIR_REPLACEMENT.
15016 func_dirname ()
15018 # Extract subdirectory from the argument.
15019 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15020 if test "X$func_dirname_result" = "X${1}"; then
15021 func_dirname_result="${3}"
15022 else
15023 func_dirname_result="$func_dirname_result${2}"
15027 # func_basename file
15028 func_basename ()
15030 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15033 # func_stripname prefix suffix name
15034 # strip PREFIX and SUFFIX off of NAME.
15035 # PREFIX and SUFFIX must not contain globbing or regex special
15036 # characters, hashes, percent signs, but SUFFIX may contain a leading
15037 # dot (in which case that matches only a dot).
15038 # func_strip_suffix prefix name
15039 func_stripname ()
15041 case ${2} in
15042 .*) func_stripname_result=`$ECHO "X${3}" \
15043 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15044 *) func_stripname_result=`$ECHO "X${3}" \
15045 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15046 esac
15049 # sed scripts:
15050 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15051 my_sed_long_arg='1s/^-[^=]*=//'
15053 # func_opt_split
15054 func_opt_split ()
15056 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15057 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15060 # func_lo2o object
15061 func_lo2o ()
15063 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15065 _LT_EOF
15066 esac
15068 case $lt_shell_append in
15069 yes)
15070 cat << \_LT_EOF >> "$cfgfile"
15072 # func_append var value
15073 # Append VALUE to the end of shell variable VAR.
15074 func_append ()
15076 eval "$1+=\$2"
15078 _LT_EOF
15081 cat << \_LT_EOF >> "$cfgfile"
15083 # func_append var value
15084 # Append VALUE to the end of shell variable VAR.
15085 func_append ()
15087 eval "$1=\$$1\$2"
15089 _LT_EOF
15091 esac
15094 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15095 || (rm -f "$cfgfile"; exit 1)
15097 mv -f "$cfgfile" "$ofile" ||
15098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15099 chmod +x "$ofile"
15102 default-1 )
15103 for ac_file in $CONFIG_FILES; do
15104 # Support "outfile[:infile[:infile...]]"
15105 case "$ac_file" in
15106 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15107 esac
15108 # PO directories have a Makefile.in generated from Makefile.in.in.
15109 case "$ac_file" in */Makefile.in)
15110 # Adjust a relative srcdir.
15111 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15112 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15113 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15114 # In autoconf-2.13 it is called $ac_given_srcdir.
15115 # In autoconf-2.50 it is called $srcdir.
15116 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15117 case "$ac_given_srcdir" in
15118 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15119 /*) top_srcdir="$ac_given_srcdir" ;;
15120 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15121 esac
15122 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15123 rm -f "$ac_dir/POTFILES"
15124 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15125 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15126 POMAKEFILEDEPS="POTFILES.in"
15127 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15128 # on $ac_dir but don't depend on user-specified configuration
15129 # parameters.
15130 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15131 # The LINGUAS file contains the set of available languages.
15132 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15133 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15135 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15136 # Hide the ALL_LINGUAS assigment from automake.
15137 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15138 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15139 else
15140 # The set of available languages was given in configure.in.
15141 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15143 case "$ac_given_srcdir" in
15144 .) srcdirpre= ;;
15145 *) srcdirpre='$(srcdir)/' ;;
15146 esac
15147 POFILES=
15148 GMOFILES=
15149 UPDATEPOFILES=
15150 DUMMYPOFILES=
15151 for lang in $ALL_LINGUAS; do
15152 POFILES="$POFILES $srcdirpre$lang.po"
15153 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15154 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15155 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15156 done
15157 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15158 # environment variable.
15159 INST_LINGUAS=
15160 if test -n "$ALL_LINGUAS"; then
15161 for presentlang in $ALL_LINGUAS; do
15162 useit=no
15163 if test "%UNSET%" != "$LINGUAS"; then
15164 desiredlanguages="$LINGUAS"
15165 else
15166 desiredlanguages="$ALL_LINGUAS"
15168 for desiredlang in $desiredlanguages; do
15169 # Use the presentlang catalog if desiredlang is
15170 # a. equal to presentlang, or
15171 # b. a variant of presentlang (because in this case,
15172 # presentlang can be used as a fallback for messages
15173 # which are not translated in the desiredlang catalog).
15174 case "$desiredlang" in
15175 "$presentlang"*) useit=yes;;
15176 esac
15177 done
15178 if test $useit = yes; then
15179 INST_LINGUAS="$INST_LINGUAS $presentlang"
15181 done
15183 CATALOGS=
15184 if test -n "$INST_LINGUAS"; then
15185 for lang in $INST_LINGUAS; do
15186 CATALOGS="$CATALOGS $lang.gmo"
15187 done
15189 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15190 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15191 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15192 if test -f "$f"; then
15193 case "$f" in
15194 *.orig | *.bak | *~) ;;
15195 *) cat "$f" >> "$ac_dir/Makefile" ;;
15196 esac
15198 done
15201 esac
15202 done ;;
15203 esac
15204 done
15205 _ACEOF
15207 cat >>$CONFIG_STATUS <<\_ACEOF
15209 { (exit 0); exit 0; }
15210 _ACEOF
15211 chmod +x $CONFIG_STATUS
15212 ac_clean_files=$ac_clean_files_save
15215 # configure is writing to config.log, and then calls config.status.
15216 # config.status does its own redirection, appending to config.log.
15217 # Unfortunately, on DOS this fails, as config.log is still kept open
15218 # by configure, so config.status won't be able to write to it; its
15219 # output is simply discarded. So we exec the FD to /dev/null,
15220 # effectively closing config.log, so it can be properly (re)opened and
15221 # appended to by config.status. When coming back to configure, we
15222 # need to make the FD available again.
15223 if test "$no_create" != yes; then
15224 ac_cs_success=:
15225 ac_config_status_args=
15226 test "$silent" = yes &&
15227 ac_config_status_args="$ac_config_status_args --quiet"
15228 exec 5>/dev/null
15229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15230 exec 5>>config.log
15231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15232 # would make configure fail if this is the last instruction.
15233 $ac_cs_success || { (exit 1); exit 1; }