gas/testsuite/gas/
[binutils.git] / gas / configure
blob10f4ac5410ed8861d58271d70453a4bb96e6dbc1
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="as.h"
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 WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_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 besides the primary
1012 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1013 --enable-checking enable run-time checks
1014 --enable-werror treat compile warnings as errors
1015 --enable-build-warnings enable build-time compiler warnings
1016 --disable-nls do not use Native Language Support
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1020 Optional Packages:
1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1023 --with-pic try to use only PIC/non-PIC objects [default=use
1024 both]
1025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
1032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
1034 CPP C preprocessor
1036 Use these variables to override the choices made by `configure' or to help
1037 it to find libraries and programs with nonstandard names/locations.
1039 _ACEOF
1042 if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
1044 ac_popdir=`pwd`
1045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046 test -d $ac_dir || continue
1047 ac_builddir=.
1049 if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053 else
1054 ac_dir_suffix= ac_top_builddir=
1057 case $srcdir in
1058 .) # No --srcdir option. We are building in place.
1059 ac_srcdir=.
1060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
1062 else
1063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064 fi ;;
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071 esac
1073 # Do not use `cd foo && pwd` to compute absolute paths, because
1074 # the directories may not exist.
1075 case `pwd` in
1076 .) ac_abs_builddir="$ac_dir";;
1078 case "$ac_dir" in
1079 .) ac_abs_builddir=`pwd`;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082 esac;;
1083 esac
1084 case $ac_abs_builddir in
1085 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 case ${ac_top_builddir}. in
1088 .) ac_abs_top_builddir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091 esac;;
1092 esac
1093 case $ac_abs_builddir in
1094 .) ac_abs_srcdir=$ac_srcdir;;
1096 case $ac_srcdir in
1097 .) ac_abs_srcdir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100 esac;;
1101 esac
1102 case $ac_abs_builddir in
1103 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 case $ac_top_srcdir in
1106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109 esac;;
1110 esac
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 cd $ac_popdir
1128 done
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133 cat <<\_ACEOF
1135 Copyright (C) 2003 Free Software Foundation, Inc.
1136 This configure script is free software; the Free Software Foundation
1137 gives unlimited permission to copy, distribute and modify it.
1138 _ACEOF
1139 exit 0
1141 exec 5>config.log
1142 cat >&5 <<_ACEOF
1143 This file contains any messages produced by compilers while
1144 running configure, to aid debugging if configure makes a mistake.
1146 It was created by $as_me, which was
1147 generated by GNU Autoconf 2.59. Invocation command line was
1149 $ $0 $@
1151 _ACEOF
1153 cat <<_ASUNAME
1154 ## --------- ##
1155 ## Platform. ##
1156 ## --------- ##
1158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1170 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175 _ASUNAME
1177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1178 for as_dir in $PATH
1180 IFS=$as_save_IFS
1181 test -z "$as_dir" && as_dir=.
1182 echo "PATH: $as_dir"
1183 done
1185 } >&5
1187 cat >&5 <<_ACEOF
1190 ## ----------- ##
1191 ## Core tests. ##
1192 ## ----------- ##
1194 _ACEOF
1197 # Keep a trace of the command line.
1198 # Strip out --no-create and --no-recursion so they do not pile up.
1199 # Strip out --silent because we don't want to record it for future runs.
1200 # Also quote any args containing shell meta-characters.
1201 # Make two passes to allow for proper duplicate-argument suppression.
1202 ac_configure_args=
1203 ac_configure_args0=
1204 ac_configure_args1=
1205 ac_sep=
1206 ac_must_keep_next=false
1207 for ac_pass in 1 2
1209 for ac_arg
1211 case $ac_arg in
1212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 continue ;;
1216 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1217 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218 esac
1219 case $ac_pass in
1220 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223 if test $ac_must_keep_next = true; then
1224 ac_must_keep_next=false # Got value, back to normal.
1225 else
1226 case $ac_arg in
1227 *=* | --config-cache | -C | -disable-* | --disable-* \
1228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230 | -with-* | --with-* | -without-* | --without-* | --x)
1231 case "$ac_configure_args0 " in
1232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233 esac
1235 -* ) ac_must_keep_next=true ;;
1236 esac
1238 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239 # Get rid of the leading space.
1240 ac_sep=" "
1242 esac
1243 done
1244 done
1245 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1246 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248 # When interrupted or exit'd, cleanup temporary files, and complete
1249 # config.log. We remove comments because anyway the quotes in there
1250 # would cause problems or look ugly.
1251 # WARNING: Be sure not to use single quotes in there, as some shells,
1252 # such as our DU 5.0 friend, will then `close' the trap.
1253 trap 'exit_status=$?
1254 # Save into config.log some information that might help in debugging.
1256 echo
1258 cat <<\_ASBOX
1259 ## ---------------- ##
1260 ## Cache variables. ##
1261 ## ---------------- ##
1262 _ASBOX
1263 echo
1264 # The following way of writing the cache mishandles newlines in values,
1266 (set) 2>&1 |
1267 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268 *ac_space=\ *)
1269 sed -n \
1270 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1274 sed -n \
1275 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 esac;
1279 echo
1281 cat <<\_ASBOX
1282 ## ----------------- ##
1283 ## Output variables. ##
1284 ## ----------------- ##
1285 _ASBOX
1286 echo
1287 for ac_var in $ac_subst_vars
1289 eval ac_val=$`echo $ac_var`
1290 echo "$ac_var='"'"'$ac_val'"'"'"
1291 done | sort
1292 echo
1294 if test -n "$ac_subst_files"; then
1295 cat <<\_ASBOX
1296 ## ------------- ##
1297 ## Output files. ##
1298 ## ------------- ##
1299 _ASBOX
1300 echo
1301 for ac_var in $ac_subst_files
1303 eval ac_val=$`echo $ac_var`
1304 echo "$ac_var='"'"'$ac_val'"'"'"
1305 done | sort
1306 echo
1309 if test -s confdefs.h; then
1310 cat <<\_ASBOX
1311 ## ----------- ##
1312 ## confdefs.h. ##
1313 ## ----------- ##
1314 _ASBOX
1315 echo
1316 sed "/^$/d" confdefs.h | sort
1317 echo
1319 test "$ac_signal" != 0 &&
1320 echo "$as_me: caught signal $ac_signal"
1321 echo "$as_me: exit $exit_status"
1322 } >&5
1323 rm -f core *.core &&
1324 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325 exit $exit_status
1327 for ac_signal in 1 2 13 15; do
1328 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1329 done
1330 ac_signal=0
1332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1333 rm -rf conftest* confdefs.h
1334 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335 echo >confdefs.h
1337 # Predefined preprocessor variables.
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_NAME "$PACKAGE_NAME"
1341 _ACEOF
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1351 _ACEOF
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_STRING "$PACKAGE_STRING"
1356 _ACEOF
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1361 _ACEOF
1364 # Let the site file select an alternate cache file if it wants to.
1365 # Prefer explicitly selected file to automatically selected ones.
1366 if test -z "$CONFIG_SITE"; then
1367 if test "x$prefix" != xNONE; then
1368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1369 else
1370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 for ac_site_file in $CONFIG_SITE; do
1374 if test -r "$ac_site_file"; then
1375 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1376 echo "$as_me: loading site script $ac_site_file" >&6;}
1377 sed 's/^/| /' "$ac_site_file" >&5
1378 . "$ac_site_file"
1380 done
1382 if test -r "$cache_file"; then
1383 # Some versions of bash will fail to source /dev/null (special
1384 # files actually), so we avoid doing that.
1385 if test -f "$cache_file"; then
1386 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1387 echo "$as_me: loading cache $cache_file" >&6;}
1388 case $cache_file in
1389 [\\/]* | ?:[\\/]* ) . $cache_file;;
1390 *) . ./$cache_file;;
1391 esac
1393 else
1394 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1395 echo "$as_me: creating cache $cache_file" >&6;}
1396 >$cache_file
1399 # Check that the precious variables saved in the cache have kept the same
1400 # value.
1401 ac_cache_corrupted=false
1402 for ac_var in `(set) 2>&1 |
1403 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405 eval ac_new_set=\$ac_env_${ac_var}_set
1406 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1407 eval ac_new_val="\$ac_env_${ac_var}_value"
1408 case $ac_old_set,$ac_new_set in
1409 set,)
1410 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1411 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1412 ac_cache_corrupted=: ;;
1413 ,set)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,);;
1419 if test "x$ac_old_val" != "x$ac_new_val"; then
1420 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1421 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1422 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1423 echo "$as_me: former value: $ac_old_val" >&2;}
1424 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1425 echo "$as_me: current value: $ac_new_val" >&2;}
1426 ac_cache_corrupted=:
1427 fi;;
1428 esac
1429 # Pass precious variables to config.status.
1430 if test "$ac_new_set" = set; then
1431 case $ac_new_val in
1432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1433 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1434 *) ac_arg=$ac_var=$ac_new_val ;;
1435 esac
1436 case " $ac_configure_args " in
1437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1438 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439 esac
1441 done
1442 if $ac_cache_corrupted; then
1443 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447 { (exit 1); exit 1; }; }
1450 ac_ext=c
1451 ac_cpp='$CPP $CPPFLAGS'
1452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475 ac_aux_dir=
1476 for ac_dir in .. $srcdir/..; do
1477 if test -f $ac_dir/install-sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 break
1481 elif test -f $ac_dir/install.sh; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 break
1485 elif test -f $ac_dir/shtool; then
1486 ac_aux_dir=$ac_dir
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1488 break
1490 done
1491 if test -z "$ac_aux_dir"; then
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1493 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1494 { (exit 1); exit 1; }; }
1496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500 # Make sure we can run config.sub.
1501 $ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: checking build system type" >&5
1507 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508 if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 ac_cv_build_alias=$build_alias
1512 test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514 test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525 echo "${ECHO_T}$ac_cv_build" >&6
1526 build=$ac_cv_build
1527 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532 echo "$as_me:$LINENO: checking host system type" >&5
1533 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1534 if test "${ac_cv_host+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 ac_cv_host_alias=$host_alias
1538 test -z "$ac_cv_host_alias" &&
1539 ac_cv_host_alias=$ac_cv_build_alias
1540 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1541 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1542 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1543 { (exit 1); exit 1; }; }
1546 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1547 echo "${ECHO_T}$ac_cv_host" >&6
1548 host=$ac_cv_host
1549 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554 echo "$as_me:$LINENO: checking target system type" >&5
1555 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1556 if test "${ac_cv_target+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 ac_cv_target_alias=$target_alias
1560 test "x$ac_cv_target_alias" = "x" &&
1561 ac_cv_target_alias=$ac_cv_host_alias
1562 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1569 echo "${ECHO_T}$ac_cv_target" >&6
1570 target=$ac_cv_target
1571 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 # The aliases save the names the user supplied, while $host etc.
1577 # will get canonicalized.
1578 test -n "$target_alias" &&
1579 test "$program_prefix$program_suffix$program_transform_name" = \
1580 NONENONEs,x,x, &&
1581 program_prefix=${target_alias}-
1582 ac_ext=c
1583 ac_cpp='$CPP $CPPFLAGS'
1584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1587 if test -n "$ac_tool_prefix"; then
1588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$CC"; then
1596 ac_cv_prog_CC="$CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1609 done
1610 done
1614 CC=$ac_cv_prog_CC
1615 if test -n "$CC"; then
1616 echo "$as_me:$LINENO: result: $CC" >&5
1617 echo "${ECHO_T}$CC" >&6
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1624 if test -z "$ac_cv_prog_CC"; then
1625 ac_ct_CC=$CC
1626 # Extract the first word of "gcc", so it can be a program name with args.
1627 set dummy gcc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633 if test -n "$ac_ct_CC"; then
1634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_ac_ct_CC="gcc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1647 done
1648 done
1652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653 if test -n "$ac_ct_CC"; then
1654 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655 echo "${ECHO_T}$ac_ct_CC" >&6
1656 else
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1661 CC=$ac_ct_CC
1662 else
1663 CC="$ac_cv_prog_CC"
1666 if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1669 set dummy ${ac_tool_prefix}cc; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 if test -n "$CC"; then
1676 ac_cv_prog_CC="$CC" # Let the user override the test.
1677 else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_CC="${ac_tool_prefix}cc"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1689 done
1690 done
1694 CC=$ac_cv_prog_CC
1695 if test -n "$CC"; then
1696 echo "$as_me:$LINENO: result: $CC" >&5
1697 echo "${ECHO_T}$CC" >&6
1698 else
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1704 if test -z "$ac_cv_prog_CC"; then
1705 ac_ct_CC=$CC
1706 # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 if test -n "$ac_ct_CC"; then
1714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 ac_cv_prog_ac_ct_CC="cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1727 done
1728 done
1732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733 if test -n "$ac_ct_CC"; then
1734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735 echo "${ECHO_T}$ac_ct_CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1741 CC=$ac_ct_CC
1742 else
1743 CC="$ac_cv_prog_CC"
1747 if test -z "$CC"; then
1748 # Extract the first word of "cc", so it can be a program name with args.
1749 set dummy cc; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
1757 else
1758 ac_prog_rejected=no
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1767 ac_prog_rejected=yes
1768 continue
1770 ac_cv_prog_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1774 done
1775 done
1777 if test $ac_prog_rejected = yes; then
1778 # We found a bogon in the path, so make sure we never use it.
1779 set dummy $ac_cv_prog_CC
1780 shift
1781 if test $# != 0; then
1782 # We chose a different compiler from the bogus one.
1783 # However, it has the same basename, so the bogon will be chosen
1784 # first if we set CC to just the basename; use the full file name.
1785 shift
1786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1791 CC=$ac_cv_prog_CC
1792 if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794 echo "${ECHO_T}$CC" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1801 if test -z "$CC"; then
1802 if test -n "$ac_tool_prefix"; then
1803 for ac_prog in cl
1805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1826 done
1827 done
1831 CC=$ac_cv_prog_CC
1832 if test -n "$CC"; then
1833 echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6
1835 else
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1840 test -n "$CC" && break
1841 done
1843 if test -z "$CC"; then
1844 ac_ct_CC=$CC
1845 for ac_prog in cl
1847 # Extract the first word of "$ac_prog", so it can be a program name with args.
1848 set dummy $ac_prog; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="$ac_prog"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1868 done
1869 done
1873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874 if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876 echo "${ECHO_T}$ac_ct_CC" >&6
1877 else
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1882 test -n "$ac_ct_CC" && break
1883 done
1885 CC=$ac_ct_CC
1891 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: no acceptable C compiler found in \$PATH
1894 See \`config.log' for more details." >&2;}
1895 { (exit 1); exit 1; }; }
1897 # Provide some information about the compiler.
1898 echo "$as_me:$LINENO:" \
1899 "checking for C compiler version" >&5
1900 ac_compiler=`set X $ac_compile; echo $2`
1901 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1902 (eval $ac_compiler --version </dev/null >&5) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }
1906 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1907 (eval $ac_compiler -v </dev/null >&5) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }
1911 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1912 (eval $ac_compiler -V </dev/null >&5) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }
1917 cat >conftest.$ac_ext <<_ACEOF
1918 /* confdefs.h. */
1919 _ACEOF
1920 cat confdefs.h >>conftest.$ac_ext
1921 cat >>conftest.$ac_ext <<_ACEOF
1922 /* end confdefs.h. */
1925 main ()
1929 return 0;
1931 _ACEOF
1932 ac_clean_files_save=$ac_clean_files
1933 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1934 # Try to create an executable without -o first, disregard a.out.
1935 # It will help us diagnose broken compilers, and finding out an intuition
1936 # of exeext.
1937 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1938 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1939 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1940 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1941 (eval $ac_link_default) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 # Find the output, starting from the most likely. This scheme is
1946 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1947 # resort.
1949 # Be careful to initialize this variable, since it used to be cached.
1950 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951 ac_cv_exeext=
1952 # b.out is created by i960 compilers.
1953 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1955 test -f "$ac_file" || continue
1956 case $ac_file in
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1959 conftest.$ac_ext )
1960 # This is the source file.
1962 [ab].out )
1963 # We found the default executable, but exeext='' is most
1964 # certainly right.
1965 break;;
1966 *.* )
1967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1968 # FIXME: I believe we export ac_cv_exeext for Libtool,
1969 # but it would be cool to find out if it's true. Does anybody
1970 # maintain Libtool? --akim.
1971 export ac_cv_exeext
1972 break;;
1974 break;;
1975 esac
1976 done
1977 else
1978 echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: C compiler cannot create executables
1984 See \`config.log' for more details." >&2;}
1985 { (exit 77); exit 77; }; }
1988 ac_exeext=$ac_cv_exeext
1989 echo "$as_me:$LINENO: result: $ac_file" >&5
1990 echo "${ECHO_T}$ac_file" >&6
1992 # Check the compiler produces executables we can run. If not, either
1993 # the compiler is broken, or we cross compile.
1994 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1995 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1996 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1997 # If not cross compiling, check that we can run a simple program.
1998 if test "$cross_compiling" != yes; then
1999 if { ac_try='./$ac_file'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 cross_compiling=no
2006 else
2007 if test "$cross_compiling" = maybe; then
2008 cross_compiling=yes
2009 else
2010 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2011 If you meant to cross compile, use \`--host'.
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: cannot run C compiled programs.
2014 If you meant to cross compile, use \`--host'.
2015 See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2020 echo "$as_me:$LINENO: result: yes" >&5
2021 echo "${ECHO_T}yes" >&6
2023 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2024 ac_clean_files=$ac_clean_files_save
2025 # Check the compiler produces executables we can run. If not, either
2026 # the compiler is broken, or we cross compile.
2027 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2028 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2029 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2030 echo "${ECHO_T}$cross_compiling" >&6
2032 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2033 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2035 (eval $ac_link) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; then
2039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2041 # work properly (i.e., refer to `conftest.exe'), while it won't with
2042 # `rm'.
2043 for ac_file in conftest.exe conftest conftest.*; do
2044 test -f "$ac_file" || continue
2045 case $ac_file in
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 export ac_cv_exeext
2049 break;;
2050 * ) break;;
2051 esac
2052 done
2053 else
2054 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2055 See \`config.log' for more details." >&5
2056 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2057 See \`config.log' for more details." >&2;}
2058 { (exit 1); exit 1; }; }
2061 rm -f conftest$ac_cv_exeext
2062 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2063 echo "${ECHO_T}$ac_cv_exeext" >&6
2065 rm -f conftest.$ac_ext
2066 EXEEXT=$ac_cv_exeext
2067 ac_exeext=$EXEEXT
2068 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2069 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2070 if test "${ac_cv_objext+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 cat >conftest.$ac_ext <<_ACEOF
2074 /* confdefs.h. */
2075 _ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h. */
2081 main ()
2085 return 0;
2087 _ACEOF
2088 rm -f conftest.o conftest.obj
2089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095 case $ac_file in
2096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098 break;;
2099 esac
2100 done
2101 else
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2105 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2115 echo "${ECHO_T}$ac_cv_objext" >&6
2116 OBJEXT=$ac_cv_objext
2117 ac_objext=$OBJEXT
2118 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2119 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2120 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h. */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2131 main ()
2133 #ifndef __GNUC__
2134 choke me
2135 #endif
2138 return 0;
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2144 ac_status=$?
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_compiler_gnu=yes
2164 else
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2168 ac_compiler_gnu=no
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2174 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2175 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2176 GCC=`test $ac_compiler_gnu = yes && echo yes`
2177 ac_test_CFLAGS=${CFLAGS+set}
2178 ac_save_CFLAGS=$CFLAGS
2179 CFLAGS="-g"
2180 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2181 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2182 if test "${ac_cv_prog_cc_g+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h. */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h. */
2193 main ()
2197 return 0;
2199 _ACEOF
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2203 ac_status=$?
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_g=yes
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2227 ac_cv_prog_cc_g=no
2229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2233 if test "$ac_test_CFLAGS" = set; then
2234 CFLAGS=$ac_save_CFLAGS
2235 elif test $ac_cv_prog_cc_g = yes; then
2236 if test "$GCC" = yes; then
2237 CFLAGS="-g -O2"
2238 else
2239 CFLAGS="-g"
2241 else
2242 if test "$GCC" = yes; then
2243 CFLAGS="-O2"
2244 else
2245 CFLAGS=
2248 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2249 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2250 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 ac_cv_prog_cc_stdc=no
2254 ac_save_CC=$CC
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261 #include <stdarg.h>
2262 #include <stdio.h>
2263 #include <sys/types.h>
2264 #include <sys/stat.h>
2265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2266 struct buf { int x; };
2267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2268 static char *e (p, i)
2269 char **p;
2270 int i;
2272 return p[i];
2274 static char *f (char * (*g) (char **, int), char **p, ...)
2276 char *s;
2277 va_list v;
2278 va_start (v,p);
2279 s = g (p, va_arg (v,int));
2280 va_end (v);
2281 return s;
2284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2285 function prototypes and stuff, but not '\xHH' hex character constants.
2286 These don't provoke an error unfortunately, instead are silently treated
2287 as 'x'. The following induces an error, until -std1 is added to get
2288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2289 array size at least. It's necessary to write '\x00'==0 to get something
2290 that's true only with -std1. */
2291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2293 int test (int i, double x);
2294 struct s1 {int (*f) (int a);};
2295 struct s2 {int (*f) (double a);};
2296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2297 int argc;
2298 char **argv;
2300 main ()
2302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2304 return 0;
2306 _ACEOF
2307 # Don't try gcc -ansi; that turns off useful extensions and
2308 # breaks some systems' header files.
2309 # AIX -qlanglvl=ansi
2310 # Ultrix and OSF/1 -std1
2311 # HP-UX 10.20 and later -Ae
2312 # HP-UX older versions -Aa -D_HPUX_SOURCE
2313 # SVR4 -Xc -D__EXTENSIONS__
2314 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2316 CC="$ac_save_CC $ac_arg"
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 ac_cv_prog_cc_stdc=$ac_arg
2340 break
2341 else
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext
2347 done
2348 rm -f conftest.$ac_ext conftest.$ac_objext
2349 CC=$ac_save_CC
2353 case "x$ac_cv_prog_cc_stdc" in
2354 x|xno)
2355 echo "$as_me:$LINENO: result: none needed" >&5
2356 echo "${ECHO_T}none needed" >&6 ;;
2358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2359 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2360 CC="$CC $ac_cv_prog_cc_stdc" ;;
2361 esac
2363 # Some people use a C++ compiler to compile C. Since we use `exit',
2364 # in C++ we need to declare it. In case someone uses the same compiler
2365 # for both compiling C and C++ we need to have the C++ compiler decide
2366 # the declaration of exit, since it's the most demanding environment.
2367 cat >conftest.$ac_ext <<_ACEOF
2368 #ifndef __cplusplus
2369 choke me
2370 #endif
2371 _ACEOF
2372 rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>conftest.er1
2375 ac_status=$?
2376 grep -v '^ *+' conftest.er1 >conftest.err
2377 rm -f conftest.er1
2378 cat conftest.err >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -z "$ac_c_werror_flag"
2382 || test ! -s conftest.err'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; }; then
2394 for ac_declaration in \
2395 '' \
2396 'extern "C" void std::exit (int) throw (); using std::exit;' \
2397 'extern "C" void std::exit (int); using std::exit;' \
2398 'extern "C" void exit (int) throw ();' \
2399 'extern "C" void exit (int);' \
2400 'void exit (int);'
2402 cat >conftest.$ac_ext <<_ACEOF
2403 /* confdefs.h. */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2408 $ac_declaration
2409 #include <stdlib.h>
2411 main ()
2413 exit (42);
2415 return 0;
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2441 else
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2445 continue
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h. */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2454 $ac_declaration
2456 main ()
2458 exit (42);
2460 return 0;
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 break
2486 else
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2492 done
2493 rm -f conftest*
2494 if test -n "$ac_declaration"; then
2495 echo '#ifdef __cplusplus' >>confdefs.h
2496 echo $ac_declaration >>confdefs.h
2497 echo '#endif' >>confdefs.h
2500 else
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2514 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2515 if test "${ac_cv_search_strerror+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 ac_func_search_save_LIBS=$LIBS
2519 ac_cv_search_strerror=no
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 #ifdef __cplusplus
2529 extern "C"
2530 #endif
2531 /* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2533 char strerror ();
2535 main ()
2537 strerror ();
2539 return 0;
2541 _ACEOF
2542 rm -f conftest.$ac_objext conftest$ac_exeext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544 (eval $ac_link) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest$ac_exeext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_search_strerror="none required"
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext \
2571 conftest$ac_exeext conftest.$ac_ext
2572 if test "$ac_cv_search_strerror" = no; then
2573 for ac_lib in cposix; do
2574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2582 /* Override any gcc2 internal prototype to avoid an error. */
2583 #ifdef __cplusplus
2584 extern "C"
2585 #endif
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2588 char strerror ();
2590 main ()
2592 strerror ();
2594 return 0;
2596 _ACEOF
2597 rm -f conftest.$ac_objext conftest$ac_exeext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag"
2607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest$ac_exeext'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 ac_cv_search_strerror="-l$ac_lib"
2620 break
2621 else
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2626 rm -f conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2628 done
2630 LIBS=$ac_func_search_save_LIBS
2632 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2633 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2634 if test "$ac_cv_search_strerror" != no; then
2635 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2640 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2641 am__api_version="1.9"
2642 # Find a good install program. We prefer a C program (faster),
2643 # so one script is as good as another. But avoid the broken or
2644 # incompatible versions:
2645 # SysV /etc/install, /usr/sbin/install
2646 # SunOS /usr/etc/install
2647 # IRIX /sbin/install
2648 # AIX /bin/install
2649 # AmigaOS /C/install, which installs bootblocks on floppy discs
2650 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2653 # OS/2's system install, which has a completely different semantic
2654 # ./install, which can be erroneously created by make from ./install.sh.
2655 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2656 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2657 if test -z "$INSTALL"; then
2658 if test "${ac_cv_path_install+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 # Account for people who put trailing slashes in PATH elements.
2667 case $as_dir/ in
2668 ./ | .// | /cC/* | \
2669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2671 /usr/ucb/* ) ;;
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2675 # by default.
2676 for ac_prog in ginstall scoinst install; do
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2683 elif test $ac_prog = install &&
2684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2687 else
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2692 done
2693 done
2695 esac
2696 done
2700 if test "${ac_cv_path_install+set}" = set; then
2701 INSTALL=$ac_cv_path_install
2702 else
2703 # As a last resort, use the slow shell script. We don't cache a
2704 # path for INSTALL within a source directory, because that will
2705 # break other packages using the cache if that directory is
2706 # removed, or if the path is relative.
2707 INSTALL=$ac_install_sh
2710 echo "$as_me:$LINENO: result: $INSTALL" >&5
2711 echo "${ECHO_T}$INSTALL" >&6
2713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714 # It thinks the first close brace ends the variable substitution.
2715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2721 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2722 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2723 # Just in case
2724 sleep 1
2725 echo timestamp > conftest.file
2726 # Do `set' in a subshell so we don't clobber the current shell's
2727 # arguments. Must try -L first in case configure is actually a
2728 # symlink; some systems play weird games with the mod time of symlinks
2729 # (eg FreeBSD returns the mod time of the symlink's containing
2730 # directory).
2731 if (
2732 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2733 if test "$*" = "X"; then
2734 # -L didn't work.
2735 set X `ls -t $srcdir/configure conftest.file`
2737 rm -f conftest.file
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
2745 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2746 alias in your environment" >&5
2747 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2748 alias in your environment" >&2;}
2749 { (exit 1); exit 1; }; }
2752 test "$2" = conftest.file
2754 then
2755 # Ok.
2757 else
2758 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2759 Check your system clock" >&5
2760 echo "$as_me: error: newly created file is older than distributed files!
2761 Check your system clock" >&2;}
2762 { (exit 1); exit 1; }; }
2764 echo "$as_me:$LINENO: result: yes" >&5
2765 echo "${ECHO_T}yes" >&6
2766 test "$program_prefix" != NONE &&
2767 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE &&
2770 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2771 # Double any \ or $. echo might interpret backslashes.
2772 # By default was `s,x,x', remove it if useless.
2773 cat <<\_ACEOF >conftest.sed
2774 s/[\\$]/&&/g;s/;s,x,x,$//
2775 _ACEOF
2776 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2777 rm conftest.sed
2779 # expand $ac_aux_dir to an absolute path
2780 am_aux_dir=`cd $ac_aux_dir && pwd`
2782 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2783 # Use eval to expand $SHELL
2784 if eval "$MISSING --run true"; then
2785 am_missing_run="$MISSING --run "
2786 else
2787 am_missing_run=
2788 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2789 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2792 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2793 # We used to keeping the `.' as first argument, in order to
2794 # allow $(mkdir_p) to be used without argument. As in
2795 # $(mkdir_p) $(somedir)
2796 # where $(somedir) is conditionally defined. However this is wrong
2797 # for two reasons:
2798 # 1. if the package is installed by a user who cannot write `.'
2799 # make install will fail,
2800 # 2. the above comment should most certainly read
2801 # $(mkdir_p) $(DESTDIR)$(somedir)
2802 # so it does not work when $(somedir) is undefined and
2803 # $(DESTDIR) is not.
2804 # To support the latter case, we have to write
2805 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2806 # so the `.' trick is pointless.
2807 mkdir_p='mkdir -p --'
2808 else
2809 # On NextStep and OpenStep, the `mkdir' command does not
2810 # recognize any option. It will interpret all options as
2811 # directories to create, and then abort because `.' already
2812 # exists.
2813 for d in ./-p ./--version;
2815 test -d $d && rmdir $d
2816 done
2817 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2818 if test -f "$ac_aux_dir/mkinstalldirs"; then
2819 mkdir_p='$(mkinstalldirs)'
2820 else
2821 mkdir_p='$(install_sh) -d'
2825 for ac_prog in gawk mawk nawk awk
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_AWK+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$AWK"; then
2835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_AWK="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 AWK=$ac_cv_prog_AWK
2854 if test -n "$AWK"; then
2855 echo "$as_me:$LINENO: result: $AWK" >&5
2856 echo "${ECHO_T}$AWK" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$AWK" && break
2863 done
2865 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2867 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2868 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 cat >conftest.make <<\_ACEOF
2872 all:
2873 @echo 'ac_maketemp="$(MAKE)"'
2874 _ACEOF
2875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2877 if test -n "$ac_maketemp"; then
2878 eval ac_cv_prog_make_${ac_make}_set=yes
2879 else
2880 eval ac_cv_prog_make_${ac_make}_set=no
2882 rm -f conftest.make
2884 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886 echo "${ECHO_T}yes" >&6
2887 SET_MAKE=
2888 else
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891 SET_MAKE="MAKE=${MAKE-make}"
2894 rm -rf .tst 2>/dev/null
2895 mkdir .tst 2>/dev/null
2896 if test -d .tst; then
2897 am__leading_dot=.
2898 else
2899 am__leading_dot=_
2901 rmdir .tst 2>/dev/null
2903 DEPDIR="${am__leading_dot}deps"
2905 ac_config_commands="$ac_config_commands depfiles"
2908 am_make=${MAKE-make}
2909 cat > confinc << 'END'
2910 am__doit:
2911 @echo done
2912 .PHONY: am__doit
2914 # If we don't find an include directive, just comment out the code.
2915 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2916 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2917 am__include="#"
2918 am__quote=
2919 _am_result=none
2920 # First try GNU make style include.
2921 echo "include confinc" > confmf
2922 # We grep out `Entering directory' and `Leaving directory'
2923 # messages which can occur if `w' ends up in MAKEFLAGS.
2924 # In particular we don't look at `^make:' because GNU make might
2925 # be invoked under some other name (usually "gmake"), in which
2926 # case it prints its new name instead of `make'.
2927 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2928 am__include=include
2929 am__quote=
2930 _am_result=GNU
2932 # Now try BSD make style include.
2933 if test "$am__include" = "#"; then
2934 echo '.include "confinc"' > confmf
2935 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2936 am__include=.include
2937 am__quote="\""
2938 _am_result=BSD
2943 echo "$as_me:$LINENO: result: $_am_result" >&5
2944 echo "${ECHO_T}$_am_result" >&6
2945 rm -f confinc confmf
2947 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2948 if test "${enable_dependency_tracking+set}" = set; then
2949 enableval="$enable_dependency_tracking"
2952 if test "x$enable_dependency_tracking" != xno; then
2953 am_depcomp="$ac_aux_dir/depcomp"
2954 AMDEPBACKSLASH='\'
2958 if test "x$enable_dependency_tracking" != xno; then
2959 AMDEP_TRUE=
2960 AMDEP_FALSE='#'
2961 else
2962 AMDEP_TRUE='#'
2963 AMDEP_FALSE=
2968 # test to see if srcdir already configured
2969 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2970 test -f $srcdir/config.status; then
2971 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2972 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2973 { (exit 1); exit 1; }; }
2976 # test whether we have cygpath
2977 if test -z "$CYGPATH_W"; then
2978 if (cygpath --version) >/dev/null 2>/dev/null; then
2979 CYGPATH_W='cygpath -w'
2980 else
2981 CYGPATH_W=echo
2986 # Define the identity of the package.
2987 PACKAGE=gas
2988 VERSION=${BFD_VERSION}
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE "$PACKAGE"
2993 _ACEOF
2996 cat >>confdefs.h <<_ACEOF
2997 #define VERSION "$VERSION"
2998 _ACEOF
3000 # Some tools Automake needs.
3002 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3005 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3008 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3011 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3014 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3016 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3018 # Installed binaries are usually stripped using `strip' when the user
3019 # run `make install-strip'. However `strip' might not be the right
3020 # tool to use in cross-compilation environments, therefore Automake
3021 # will honor the `STRIP' environment variable to overrule this program.
3022 if test "$cross_compiling" != no; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}strip; ac_word=$2
3026 echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028 if test "${ac_cv_prog_STRIP+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031 if test -n "$STRIP"; then
3032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3050 STRIP=$ac_cv_prog_STRIP
3051 if test -n "$STRIP"; then
3052 echo "$as_me:$LINENO: result: $STRIP" >&5
3053 echo "${ECHO_T}$STRIP" >&6
3054 else
3055 echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3060 if test -z "$ac_cv_prog_STRIP"; then
3061 ac_ct_STRIP=$STRIP
3062 # Extract the first word of "strip", so it can be a program name with args.
3063 set dummy strip; ac_word=$2
3064 echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 if test -n "$ac_ct_STRIP"; then
3070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_ac_ct_STRIP="strip"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3083 done
3084 done
3086 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3090 if test -n "$ac_ct_STRIP"; then
3091 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3092 echo "${ECHO_T}$ac_ct_STRIP" >&6
3093 else
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3098 STRIP=$ac_ct_STRIP
3099 else
3100 STRIP="$ac_cv_prog_STRIP"
3104 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3106 # We need awk for the "check" target. The system "awk" is bad on
3107 # some platforms.
3108 # Always define AMTAR for backward compatibility.
3110 AMTAR=${AMTAR-"${am_missing_run}tar"}
3112 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3117 depcc="$CC" am_compiler_list=
3119 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3121 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125 # We make a subdir and do the tests there. Otherwise we can end up
3126 # making bogus files that we don't know about and never remove. For
3127 # instance it was reported that on HP-UX the gcc test will end up
3128 # making a dummy file named `D' -- because `-MD' means `put the output
3129 # in D'.
3130 mkdir conftest.dir
3131 # Copy depcomp to subdir because otherwise we won't find it if we're
3132 # using a relative directory.
3133 cp "$am_depcomp" conftest.dir
3134 cd conftest.dir
3135 # We will build objects and dependencies in a subdirectory because
3136 # it helps to detect inapplicable dependency modes. For instance
3137 # both Tru64's cc and ICC support -MD to output dependencies as a
3138 # side effect of compilation, but ICC will put the dependencies in
3139 # the current directory while Tru64 will put them in the object
3140 # directory.
3141 mkdir sub
3143 am_cv_CC_dependencies_compiler_type=none
3144 if test "$am_compiler_list" = ""; then
3145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3147 for depmode in $am_compiler_list; do
3148 # Setup a source with many dependencies, because some compilers
3149 # like to wrap large dependency lists on column 80 (with \), and
3150 # we should not choose a depcomp mode which is confused by this.
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3155 : > sub/conftest.c
3156 for i in 1 2 3 4 5 6; do
3157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159 # Solaris 8's {/usr,}/bin/sh.
3160 touch sub/conftst$i.h
3161 done
3162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3164 case $depmode in
3165 nosideeffect)
3166 # after this tag, mechanisms are not by side-effect, so they'll
3167 # only be used when explicitly requested
3168 if test "x$enable_dependency_tracking" = xyes; then
3169 continue
3170 else
3171 break
3174 none) break ;;
3175 esac
3176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3177 # mode. It turns out that the SunPro C++ compiler does not properly
3178 # handle `-M -o', and we need to detect this.
3179 if depmode=$depmode \
3180 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3182 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3183 >/dev/null 2>conftest.err &&
3184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3185 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3187 # icc doesn't choke on unknown options, it will just issue warnings
3188 # or remarks (even with -Werror). So we grep stderr for any message
3189 # that says an option was ignored or not supported.
3190 # When given -MP, icc 7.0 and 7.1 complain thusly:
3191 # icc: Command line warning: ignoring option '-M'; no argument required
3192 # The diagnosis changed in icc 8.0:
3193 # icc: Command line remark: option '-MP' not supported
3194 if (grep 'ignoring option' conftest.err ||
3195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3196 am_cv_CC_dependencies_compiler_type=$depmode
3197 break
3200 done
3202 cd ..
3203 rm -rf conftest.dir
3204 else
3205 am_cv_CC_dependencies_compiler_type=none
3209 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3210 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3211 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3216 test "x$enable_dependency_tracking" != xno \
3217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3218 am__fastdepCC_TRUE=
3219 am__fastdepCC_FALSE='#'
3220 else
3221 am__fastdepCC_TRUE='#'
3222 am__fastdepCC_FALSE=
3230 macro_version='2.1a'
3231 macro_revision='1.2435'
3244 ltmain="$ac_aux_dir/ltmain.sh"
3246 # Set options
3248 enable_dlopen=no
3251 enable_win32_dll=no
3254 # Check whether --enable-shared or --disable-shared was given.
3255 if test "${enable_shared+set}" = set; then
3256 enableval="$enable_shared"
3257 p=${PACKAGE-default}
3258 case $enableval in
3259 yes) enable_shared=yes ;;
3260 no) enable_shared=no ;;
3262 enable_shared=no
3263 # Look at the argument we got. We use all the common list separators.
3264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3265 for pkg in $enableval; do
3266 IFS="$lt_save_ifs"
3267 if test "X$pkg" = "X$p"; then
3268 enable_shared=yes
3270 done
3271 IFS="$lt_save_ifs"
3273 esac
3274 else
3275 enable_shared=yes
3285 # Check whether --enable-static or --disable-static was given.
3286 if test "${enable_static+set}" = set; then
3287 enableval="$enable_static"
3288 p=${PACKAGE-default}
3289 case $enableval in
3290 yes) enable_static=yes ;;
3291 no) enable_static=no ;;
3293 enable_static=no
3294 # Look at the argument we got. We use all the common list separators.
3295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296 for pkg in $enableval; do
3297 IFS="$lt_save_ifs"
3298 if test "X$pkg" = "X$p"; then
3299 enable_static=yes
3301 done
3302 IFS="$lt_save_ifs"
3304 esac
3305 else
3306 enable_static=yes
3317 # Check whether --with-pic or --without-pic was given.
3318 if test "${with_pic+set}" = set; then
3319 withval="$with_pic"
3320 pic_mode="$withval"
3321 else
3322 pic_mode=default
3325 test -z "$pic_mode" && pic_mode=default
3333 # Check whether --enable-fast-install or --disable-fast-install was given.
3334 if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
3337 case $enableval in
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344 for pkg in $enableval; do
3345 IFS="$lt_save_ifs"
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3349 done
3350 IFS="$lt_save_ifs"
3352 esac
3353 else
3354 enable_fast_install=yes
3364 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3365 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3366 if test "${lt_cv_path_SED+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 # Loop through the user's path and test for sed and gsed.
3370 # Then use that list of sed's as ones to test for truncation.
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for lt_ac_prog in sed gsed; do
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3379 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3381 done
3382 done
3383 done
3384 IFS=$as_save_IFS
3385 lt_ac_max=0
3386 lt_ac_count=0
3387 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388 # along with /bin/sed that truncates output.
3389 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390 test ! -f $lt_ac_sed && continue
3391 cat /dev/null > conftest.in
3392 lt_ac_count=0
3393 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394 # Check for GNU sed and select it if it is found.
3395 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396 lt_cv_path_SED=$lt_ac_sed
3397 break
3399 while true; do
3400 cat conftest.in conftest.in >conftest.tmp
3401 mv conftest.tmp conftest.in
3402 cp conftest.in conftest.nl
3403 echo >>conftest.nl
3404 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405 cmp -s conftest.out conftest.nl || break
3406 # 10000 chars as input seems more than enough
3407 test $lt_ac_count -gt 10 && break
3408 lt_ac_count=`expr $lt_ac_count + 1`
3409 if test $lt_ac_count -gt $lt_ac_max; then
3410 lt_ac_max=$lt_ac_count
3411 lt_cv_path_SED=$lt_ac_sed
3413 done
3414 done
3418 SED=$lt_cv_path_SED
3420 echo "$as_me:$LINENO: result: $SED" >&5
3421 echo "${ECHO_T}$SED" >&6
3423 test -z "$SED" && SED=sed
3424 Xsed="$SED -e 1s/^X//"
3436 echo "$as_me:$LINENO: checking for egrep" >&5
3437 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3438 if test "${ac_cv_prog_egrep+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3442 then ac_cv_prog_egrep='grep -E'
3443 else ac_cv_prog_egrep='egrep'
3446 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3447 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3448 EGREP=$ac_cv_prog_egrep
3451 echo "$as_me:$LINENO: checking for fgrep" >&5
3452 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3453 if test "${ac_cv_prog_fgrep+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3457 then ac_cv_prog_fgrep='grep -F'
3458 else ac_cv_prog_fgrep='fgrep'
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3462 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3463 FGREP=$ac_cv_prog_fgrep
3466 test -z "$GREP" && GREP=grep
3486 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3487 if test "${with_gnu_ld+set}" = set; then
3488 withval="$with_gnu_ld"
3489 test "$withval" = no || with_gnu_ld=yes
3490 else
3491 with_gnu_ld=no
3493 ac_prog=ld
3494 if test "$GCC" = yes; then
3495 # Check if gcc -print-prog-name=ld gives a path.
3496 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3497 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3498 case $host in
3499 *-*-mingw*)
3500 # gcc leaves a trailing carriage return which upsets mingw
3501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3504 esac
3505 case $ac_prog in
3506 # Accept absolute paths.
3507 [\\/]* | ?:[\\/]*)
3508 re_direlt='/[^/][^/]*/\.\./'
3509 # Canonicalize the pathname of ld
3510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3513 done
3514 test -z "$LD" && LD="$ac_prog"
3517 # If it fails, then pretend we aren't using GCC.
3518 ac_prog=ld
3521 # If it is relative, then search for the first ld in PATH.
3522 with_gnu_ld=unknown
3524 esac
3525 elif test "$with_gnu_ld" = yes; then
3526 echo "$as_me:$LINENO: checking for GNU ld" >&5
3527 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3528 else
3529 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3530 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3532 if test "${lt_cv_path_LD+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 if test -z "$LD"; then
3536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3537 for ac_dir in $PATH; do
3538 IFS="$lt_save_ifs"
3539 test -z "$ac_dir" && ac_dir=.
3540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3541 lt_cv_path_LD="$ac_dir/$ac_prog"
3542 # Check to see if the program is GNU ld. I'd rather use --version,
3543 # but apparently some variants of GNU ld only accept -v.
3544 # Break only if it was the GNU/non-GNU ld that we prefer.
3545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3546 *GNU* | *'with BFD'*)
3547 test "$with_gnu_ld" != no && break
3550 test "$with_gnu_ld" != yes && break
3552 esac
3554 done
3555 IFS="$lt_save_ifs"
3556 else
3557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3561 LD="$lt_cv_path_LD"
3562 if test -n "$LD"; then
3563 echo "$as_me:$LINENO: result: $LD" >&5
3564 echo "${ECHO_T}$LD" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3569 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3570 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3571 { (exit 1); exit 1; }; }
3572 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3573 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3574 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3578 case `$LD -v 2>&1 </dev/null` in
3579 *GNU* | *'with BFD'*)
3580 lt_cv_prog_gnu_ld=yes
3583 lt_cv_prog_gnu_ld=no
3585 esac
3587 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3588 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3589 with_gnu_ld=$lt_cv_prog_gnu_ld
3600 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3601 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3602 if test "${lt_cv_path_NM+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 if test -n "$NM"; then
3606 # Let the user override the test.
3607 lt_cv_path_NM="$NM"
3608 else
3609 lt_nm_to_check="${ac_tool_prefix}nm"
3610 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3611 lt_nm_to_check="$lt_nm_to_check nm"
3613 for lt_tmp_nm in $lt_nm_to_check; do
3614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3615 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3616 IFS="$lt_save_ifs"
3617 test -z "$ac_dir" && ac_dir=.
3618 tmp_nm="$ac_dir/$lt_tmp_nm"
3619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3620 # Check to see if the nm accepts a BSD-compat flag.
3621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3622 # nm: unknown option "B" ignored
3623 # Tru64's nm complains that /dev/null is an invalid object file
3624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3625 */dev/null* | *'Invalid file or object type'*)
3626 lt_cv_path_NM="$tmp_nm -B"
3627 break
3630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3631 */dev/null*)
3632 lt_cv_path_NM="$tmp_nm -p"
3633 break
3636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637 continue # so that we can try to find one that supports BSD flags
3639 esac
3641 esac
3643 done
3644 IFS="$lt_save_ifs"
3645 done
3646 : ${lt_cv_path_NM=no}
3649 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3650 echo "${ECHO_T}$lt_cv_path_NM" >&6
3651 if test "$lt_cv_path_NM" != "no"; then
3652 NM="$lt_cv_path_NM"
3653 else
3654 # Didn't find any BSD compatible name lister, look for dumpbin.
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 if test -n "$DUMPBIN"; then
3666 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3684 DUMPBIN=$ac_cv_prog_DUMPBIN
3685 if test -n "$DUMPBIN"; then
3686 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3687 echo "${ECHO_T}$DUMPBIN" >&6
3688 else
3689 echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3693 test -n "$DUMPBIN" && break
3694 done
3696 if test -z "$DUMPBIN"; then
3697 ac_ct_DUMPBIN=$DUMPBIN
3698 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 if test -n "$ac_ct_DUMPBIN"; then
3708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3726 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3727 if test -n "$ac_ct_DUMPBIN"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3729 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3735 test -n "$ac_ct_DUMPBIN" && break
3736 done
3737 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3739 DUMPBIN=$ac_ct_DUMPBIN
3743 if test "$DUMPBIN" != ":"; then
3744 NM="$DUMPBIN"
3747 test -z "$NM" && NM=nm
3754 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3755 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3756 if test "${lt_cv_nm_interface+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 lt_cv_nm_interface="BSD nm"
3760 echo "int some_variable = 0;" > conftest.$ac_ext
3761 (eval echo "\"\$as_me:3761: $ac_compile\"" >&5)
3762 (eval "$ac_compile" 2>conftest.err)
3763 cat conftest.err >&5
3764 (eval echo "\"\$as_me:3764: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3765 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3766 cat conftest.err >&5
3767 (eval echo "\"\$as_me:3767: output\"" >&5)
3768 cat conftest.out >&5
3769 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3770 lt_cv_nm_interface="MS dumpbin"
3772 rm -f conftest*
3774 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3775 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3779 LN_S=$as_ln_s
3780 if test "$LN_S" = "ln -s"; then
3781 echo "$as_me:$LINENO: result: yes" >&5
3782 echo "${ECHO_T}yes" >&6
3783 else
3784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785 echo "${ECHO_T}no, using $LN_S" >&6
3788 # find the maximum length of command line arguments
3789 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3790 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3791 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3795 teststring="ABCD"
3797 case $build_os in
3798 msdosdjgpp*)
3799 # On DJGPP, this test can blow up pretty badly due to problems in libc
3800 # (any single argument exceeding 2000 bytes causes a buffer overrun
3801 # during glob expansion). Even if it were fixed, the result of this
3802 # check would be larger than it should be.
3803 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3806 gnu*)
3807 # Under GNU Hurd, this test is not required because there is
3808 # no limit to the length of command line arguments.
3809 # Libtool will interpret -1 as no limit whatsoever
3810 lt_cv_sys_max_cmd_len=-1;
3813 cygwin* | mingw*)
3814 # On Win9x/ME, this test blows up -- it succeeds, but takes
3815 # about 5 minutes as the teststring grows exponentially.
3816 # Worse, since 9x/ME are not pre-emptively multitasking,
3817 # you end up with a "frozen" computer, even though with patience
3818 # the test eventually succeeds (with a max line length of 256k).
3819 # Instead, let's just punt: use the minimum linelength reported by
3820 # all of the supported platforms: 8192 (on NT/2K/XP).
3821 lt_cv_sys_max_cmd_len=8192;
3824 amigaos*)
3825 # On AmigaOS with pdksh, this test takes hours, literally.
3826 # So we just punt and use a minimum line length of 8192.
3827 lt_cv_sys_max_cmd_len=8192;
3830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3831 # This has been around since 386BSD, at least. Likely further.
3832 if test -x /sbin/sysctl; then
3833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3834 elif test -x /usr/sbin/sysctl; then
3835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3836 else
3837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3839 # And add a safety zone
3840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3844 interix*)
3845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3846 lt_cv_sys_max_cmd_len=196608
3849 osf*)
3850 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3851 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3852 # nice to cause kernel panics so lets avoid the loop below.
3853 # First set a reasonable default.
3854 lt_cv_sys_max_cmd_len=16384
3856 if test -x /sbin/sysconfig; then
3857 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3858 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3859 esac
3862 sco3.2v5*)
3863 lt_cv_sys_max_cmd_len=102400
3865 sysv5* | sco5v6* | sysv4.2uw2*)
3866 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3867 if test -n "$kargmax"; then
3868 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3869 else
3870 lt_cv_sys_max_cmd_len=32768
3874 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3875 if test -n $lt_cv_sys_max_cmd_len; then
3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3878 else
3879 # Make teststring a little bigger before we do anything with it.
3880 # a 1K string should be a reasonable start.
3881 for i in 1 2 3 4 5 6 7 8 ; do
3882 teststring=$teststring$teststring
3883 done
3884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3885 # If test is not a shell built-in, we'll probably end up computing a
3886 # maximum length that is only half of the actual maximum length, but
3887 # we can't tell.
3888 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3889 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3890 test $i != 17 # 1/2 MB should be enough
3892 i=`expr $i + 1`
3893 teststring=$teststring$teststring
3894 done
3895 # Only check the string length outside the loop.
3896 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3897 teststring=
3898 # Add a significant safety factor because C++ compilers can tack on
3899 # massive amounts of additional arguments before passing them to the
3900 # linker. It appears as though 1/2 is a usable value.
3901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3904 esac
3908 if test -n $lt_cv_sys_max_cmd_len ; then
3909 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3910 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3911 else
3912 echo "$as_me:$LINENO: result: none" >&5
3913 echo "${ECHO_T}none" >&6
3915 max_cmd_len=$lt_cv_sys_max_cmd_len
3923 : ${CP="cp -f"}
3924 : ${MV="mv -f"}
3925 : ${RM="rm -f"}
3927 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3928 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3929 # Try some XSI features
3930 xsi_shell=no
3931 ( _lt_dummy="a/b/c"
3932 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3933 = c,a/b,, ) >/dev/null 2>&1 \
3934 && xsi_shell=yes
3935 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3936 echo "${ECHO_T}$xsi_shell" >&6
3939 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3940 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3941 lt_shell_append=no
3942 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3943 >/dev/null 2>&1 \
3944 && lt_shell_append=yes
3945 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3946 echo "${ECHO_T}$lt_shell_append" >&6
3949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3950 lt_unset=unset
3951 else
3952 lt_unset=false
3959 # test EBCDIC or ASCII
3960 case `echo X|tr X '\101'` in
3961 A) # ASCII based system
3962 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3963 lt_SP2NL='tr \040 \012'
3964 lt_NL2SP='tr \015\012 \040\040'
3966 *) # EBCDIC based system
3967 lt_SP2NL='tr \100 \n'
3968 lt_NL2SP='tr \r\n \100\100'
3970 esac
3980 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3981 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3982 if test "${lt_cv_ld_reload_flag+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 lt_cv_ld_reload_flag='-r'
3987 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3988 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3989 reload_flag=$lt_cv_ld_reload_flag
3990 case $reload_flag in
3991 "" | " "*) ;;
3992 *) reload_flag=" $reload_flag" ;;
3993 esac
3994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3995 case $host_os in
3996 darwin*)
3997 if test "$GCC" = yes; then
3998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3999 else
4000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4003 esac
4014 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4015 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4016 if test "${lt_cv_deplibs_check_method+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 lt_cv_file_magic_cmd='$MAGIC_CMD'
4020 lt_cv_file_magic_test_file=
4021 lt_cv_deplibs_check_method='unknown'
4022 # Need to set the preceding variable on all platforms that support
4023 # interlibrary dependencies.
4024 # 'none' -- dependencies not supported.
4025 # `unknown' -- same as none, but documents that we really don't know.
4026 # 'pass_all' -- all dependencies passed with no checks.
4027 # 'test_compile' -- check by making test program.
4028 # 'file_magic [[regex]]' -- check by looking for files in library path
4029 # which responds to the $file_magic_cmd with a given extended regex.
4030 # If you have `file' or equivalent on your system and you're not sure
4031 # whether `pass_all' will *always* work, you probably want this one.
4033 case $host_os in
4034 aix4* | aix5*)
4035 lt_cv_deplibs_check_method=pass_all
4038 beos*)
4039 lt_cv_deplibs_check_method=pass_all
4042 bsdi[45]*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4044 lt_cv_file_magic_cmd='/usr/bin/file -L'
4045 lt_cv_file_magic_test_file=/shlib/libc.so
4048 cygwin*)
4049 # func_win32_libid is a shell function defined in ltmain.sh
4050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4051 lt_cv_file_magic_cmd='func_win32_libid'
4054 mingw* | pw32*)
4055 # Base MSYS/MinGW do not provide the 'file' command needed by
4056 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4057 # unless we find 'file', for example because we are cross-compiling.
4058 if ( file / ) >/dev/null 2>&1; then
4059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4060 lt_cv_file_magic_cmd='func_win32_libid'
4061 else
4062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4063 lt_cv_file_magic_cmd='$OBJDUMP -f'
4067 darwin* | rhapsody*)
4068 lt_cv_deplibs_check_method=pass_all
4071 freebsd* | dragonfly*)
4072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4073 case $host_cpu in
4074 i*86 )
4075 # Not sure whether the presence of OpenBSD here was a mistake.
4076 # Let's accept both of them until this is cleared up.
4077 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4078 lt_cv_file_magic_cmd=/usr/bin/file
4079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4081 esac
4082 else
4083 lt_cv_deplibs_check_method=pass_all
4087 gnu*)
4088 lt_cv_deplibs_check_method=pass_all
4091 hpux10.20* | hpux11*)
4092 lt_cv_file_magic_cmd=/usr/bin/file
4093 case $host_cpu in
4094 ia64*)
4095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4098 hppa*64*)
4099 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]'
4100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4106 esac
4109 interix[3-9]*)
4110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4114 irix5* | irix6* | nonstopux*)
4115 case $LD in
4116 *-32|*"-32 ") libmagic=32-bit;;
4117 *-n32|*"-n32 ") libmagic=N32;;
4118 *-64|*"-64 ") libmagic=64-bit;;
4119 *) libmagic=never-match;;
4120 esac
4121 lt_cv_deplibs_check_method=pass_all
4124 # This must be Linux ELF.
4125 linux* | k*bsd*-gnu)
4126 lt_cv_deplibs_check_method=pass_all
4129 netbsd*)
4130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4132 else
4133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4137 newos6*)
4138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4143 *nto* | *qnx*)
4144 lt_cv_deplibs_check_method=pass_all
4147 openbsd*)
4148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4150 else
4151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4155 osf3* | osf4* | osf5*)
4156 lt_cv_deplibs_check_method=pass_all
4159 rdos*)
4160 lt_cv_deplibs_check_method=pass_all
4163 solaris*)
4164 lt_cv_deplibs_check_method=pass_all
4167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4168 lt_cv_deplibs_check_method=pass_all
4171 sysv4 | sysv4.3*)
4172 case $host_vendor in
4173 motorola)
4174 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]'
4175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4177 ncr)
4178 lt_cv_deplibs_check_method=pass_all
4180 sequent)
4181 lt_cv_file_magic_cmd='/bin/file'
4182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4184 sni)
4185 lt_cv_file_magic_cmd='/bin/file'
4186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4187 lt_cv_file_magic_test_file=/lib/libc.so
4189 siemens)
4190 lt_cv_deplibs_check_method=pass_all
4193 lt_cv_deplibs_check_method=pass_all
4195 esac
4198 tpf*)
4199 lt_cv_deplibs_check_method=pass_all
4201 esac
4204 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4205 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4206 file_magic_cmd=$lt_cv_file_magic_cmd
4207 deplibs_check_method=$lt_cv_deplibs_check_method
4208 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}ar; ac_word=$2
4224 echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_AR+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test -n "$AR"; then
4230 ac_cv_prog_AR="$AR" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_AR="${ac_tool_prefix}ar"
4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4243 done
4244 done
4248 AR=$ac_cv_prog_AR
4249 if test -n "$AR"; then
4250 echo "$as_me:$LINENO: result: $AR" >&5
4251 echo "${ECHO_T}$AR" >&6
4252 else
4253 echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4258 if test -z "$ac_cv_prog_AR"; then
4259 ac_ct_AR=$AR
4260 # Extract the first word of "ar", so it can be a program name with args.
4261 set dummy ar; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 if test -n "$ac_ct_AR"; then
4268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_ac_ct_AR="ar"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4284 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4288 if test -n "$ac_ct_AR"; then
4289 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4290 echo "${ECHO_T}$ac_ct_AR" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6
4296 AR=$ac_ct_AR
4297 else
4298 AR="$ac_cv_prog_AR"
4301 test -z "$AR" && AR=ar
4302 test -z "$AR_FLAGS" && AR_FLAGS=cru
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}strip; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_STRIP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 if test -n "$STRIP"; then
4323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4341 STRIP=$ac_cv_prog_STRIP
4342 if test -n "$STRIP"; then
4343 echo "$as_me:$LINENO: result: $STRIP" >&5
4344 echo "${ECHO_T}$STRIP" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4351 if test -z "$ac_cv_prog_STRIP"; then
4352 ac_ct_STRIP=$STRIP
4353 # Extract the first word of "strip", so it can be a program name with args.
4354 set dummy strip; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if test -n "$ac_ct_STRIP"; then
4361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_STRIP="strip"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4377 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381 if test -n "$ac_ct_STRIP"; then
4382 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383 echo "${ECHO_T}$ac_ct_STRIP" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 STRIP=$ac_ct_STRIP
4390 else
4391 STRIP="$ac_cv_prog_STRIP"
4394 test -z "$STRIP" && STRIP=:
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4404 echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4406 if test "${ac_cv_prog_RANLIB+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409 if test -n "$RANLIB"; then
4410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4428 RANLIB=$ac_cv_prog_RANLIB
4429 if test -n "$RANLIB"; then
4430 echo "$as_me:$LINENO: result: $RANLIB" >&5
4431 echo "${ECHO_T}$RANLIB" >&6
4432 else
4433 echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6
4438 if test -z "$ac_cv_prog_RANLIB"; then
4439 ac_ct_RANLIB=$RANLIB
4440 # Extract the first word of "ranlib", so it can be a program name with args.
4441 set dummy ranlib; ac_word=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 if test -n "$ac_ct_RANLIB"; then
4448 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_ac_ct_RANLIB="ranlib"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4464 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4467 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4468 if test -n "$ac_ct_RANLIB"; then
4469 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4470 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4471 else
4472 echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4476 RANLIB=$ac_ct_RANLIB
4477 else
4478 RANLIB="$ac_cv_prog_RANLIB"
4481 test -z "$RANLIB" && RANLIB=:
4488 # Determine commands to create old-style static archives.
4489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4490 old_postinstall_cmds='chmod 644 $oldlib'
4491 old_postuninstall_cmds=
4493 if test -n "$RANLIB"; then
4494 case $host_os in
4495 openbsd*)
4496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4501 esac
4502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4538 # If no C compiler was specified, use CC.
4539 LTCC=${LTCC-"$CC"}
4541 # If no C compiler flags were specified, use CFLAGS.
4542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4544 # Allow CC to be a program name with arguments.
4545 compiler=$CC
4548 # Check for command to grab the raw symbol name followed by C symbol from nm.
4549 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4555 # These are sane defaults that work on at least a few old systems.
4556 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4558 # Character class describing NM global symbol codes.
4559 symcode='[BCDEGRST]'
4561 # Regexp to match symbols that can be accessed directly from C.
4562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4564 # Define system-specific variables.
4565 case $host_os in
4566 aix*)
4567 symcode='[BCDT]'
4569 cygwin* | mingw* | pw32*)
4570 symcode='[ABCDGISTW]'
4572 hpux*)
4573 if test "$host_cpu" = ia64; then
4574 symcode='[ABCDEGRST]'
4577 irix* | nonstopux*)
4578 symcode='[BCDEGRST]'
4580 osf*)
4581 symcode='[BCDEGQRST]'
4583 solaris*)
4584 symcode='[BDRT]'
4586 sco3.2v5*)
4587 symcode='[DT]'
4589 sysv4.2uw2*)
4590 symcode='[DT]'
4592 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4593 symcode='[ABDT]'
4595 sysv4)
4596 symcode='[DFNSTU]'
4598 esac
4600 # If we're using GNU nm, then use its standard symbol codes.
4601 case `$NM -V 2>&1` in
4602 *GNU* | *'with BFD'*)
4603 symcode='[ABCDGIRSTW]' ;;
4604 esac
4606 # Transform an extracted symbol line into a proper C declaration.
4607 # Some systems (esp. on ia64) link data and code symbols differently,
4608 # so use this general approach.
4609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4611 # Transform an extracted symbol line into symbol name and symbol address
4612 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4614 # Handle CRLF in mingw tool chain
4615 opt_cr=
4616 case $build_os in
4617 mingw*)
4618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4620 esac
4622 # Try without a prefix underscore, then with it.
4623 for ac_symprfx in "" "_"; do
4625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4626 symxfrm="\\1 $ac_symprfx\\2 \\2"
4628 # Write the raw and C identifiers.
4629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4630 # Fake it for dumpbin and say T for any non-static function
4631 # and D for any global variable.
4632 # Also find C++ and __fastcall symbols from MSVC++,
4633 # which start with @ or ?.
4634 lt_cv_sys_global_symbol_pipe="$AWK '"\
4635 " {last_section=section; section=\$ 3};"\
4636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4637 " \$ 0!~/External *\|/{next};"\
4638 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4639 " {if(hide[section]) next};"\
4640 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4641 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4642 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4643 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4644 " ' prfx=^$ac_symprfx"
4645 else
4646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4649 # Check to see that the pipe works correctly.
4650 pipe_works=no
4652 rm -f conftest*
4653 cat > conftest.$ac_ext <<_LT_EOF
4654 #ifdef __cplusplus
4655 extern "C" {
4656 #endif
4657 char nm_test_var;
4658 void nm_test_func(void);
4659 void nm_test_func(void){}
4660 #ifdef __cplusplus
4662 #endif
4663 int main(){nm_test_var='a';nm_test_func();return(0);}
4664 _LT_EOF
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; then
4671 # Now try to grab the symbols.
4672 nlist=conftest.nm
4673 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4674 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && test -s "$nlist"; then
4678 # Try sorting and uniquifying the output.
4679 if sort "$nlist" | uniq > "$nlist"T; then
4680 mv -f "$nlist"T "$nlist"
4681 else
4682 rm -f "$nlist"T
4685 # Make sure that we snagged all the symbols we need.
4686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4688 cat <<_LT_EOF > conftest.$ac_ext
4689 #ifdef __cplusplus
4690 extern "C" {
4691 #endif
4693 _LT_EOF
4694 # Now generate the symbol file.
4695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4697 cat <<_LT_EOF >> conftest.$ac_ext
4699 /* The mapping between symbol names and symbols. */
4700 const struct {
4701 const char *name;
4702 void *address;
4704 lt__PROGRAM__LTX_preloaded_symbols[] =
4706 { "@PROGRAM@", (void *) 0 },
4707 _LT_EOF
4708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4709 cat <<\_LT_EOF >> conftest.$ac_ext
4710 {0, (void *) 0}
4713 /* This works around a problem in FreeBSD linker */
4714 #ifdef FREEBSD_WORKAROUND
4715 static const void *lt_preloaded_setup() {
4716 return lt__PROGRAM__LTX_preloaded_symbols;
4718 #endif
4720 #ifdef __cplusplus
4722 #endif
4723 _LT_EOF
4724 # Now try linking the two files.
4725 mv conftest.$ac_objext conftstm.$ac_objext
4726 lt_save_LIBS="$LIBS"
4727 lt_save_CFLAGS="$CFLAGS"
4728 LIBS="conftstm.$ac_objext"
4729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731 (eval $ac_link) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4735 pipe_works=yes
4737 LIBS="$lt_save_LIBS"
4738 CFLAGS="$lt_save_CFLAGS"
4739 else
4740 echo "cannot find nm_test_func in $nlist" >&5
4742 else
4743 echo "cannot find nm_test_var in $nlist" >&5
4745 else
4746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4748 else
4749 echo "$progname: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 rm -f conftest* conftst*
4754 # Do not use the global_symbol_pipe unless it works.
4755 if test "$pipe_works" = yes; then
4756 break
4757 else
4758 lt_cv_sys_global_symbol_pipe=
4760 done
4764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4765 lt_cv_sys_global_symbol_to_cdecl=
4767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4768 echo "$as_me:$LINENO: result: failed" >&5
4769 echo "${ECHO_T}failed" >&6
4770 else
4771 echo "$as_me:$LINENO: result: ok" >&5
4772 echo "${ECHO_T}ok" >&6
4791 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4792 if test "${enable_libtool_lock+set}" = set; then
4793 enableval="$enable_libtool_lock"
4796 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4798 # Some flags need to be propagated to the compiler or linker for good
4799 # libtool support.
4800 case $host in
4801 ia64-*-hpux*)
4802 # Find out which ABI we are using.
4803 echo 'int i;' > conftest.$ac_ext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
4809 case `/usr/bin/file conftest.$ac_objext` in
4810 *ELF-32*)
4811 HPUX_IA64_MODE="32"
4813 *ELF-64*)
4814 HPUX_IA64_MODE="64"
4816 esac
4818 rm -rf conftest*
4820 *-*-irix6*)
4821 # Find out which ABI we are using.
4822 echo '#line 4822 "configure"' > conftest.$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 if test "$lt_cv_prog_gnu_ld" = yes; then
4829 case `/usr/bin/file conftest.$ac_objext` in
4830 *32-bit*)
4831 LD="${LD-ld} -melf32bsmip"
4833 *N32*)
4834 LD="${LD-ld} -melf32bmipn32"
4836 *64-bit*)
4837 LD="${LD-ld} -melf64bmip"
4839 esac
4840 else
4841 case `/usr/bin/file conftest.$ac_objext` in
4842 *32-bit*)
4843 LD="${LD-ld} -32"
4845 *N32*)
4846 LD="${LD-ld} -n32"
4848 *64-bit*)
4849 LD="${LD-ld} -64"
4851 esac
4854 rm -rf conftest*
4857 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4858 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4859 # Find out which ABI we are using.
4860 echo 'int i;' > conftest.$ac_ext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; then
4866 case `/usr/bin/file conftest.o` in
4867 *32-bit*)
4868 case $host in
4869 x86_64-*kfreebsd*-gnu)
4870 LD="${LD-ld} -m elf_i386_fbsd"
4872 x86_64-*linux*)
4873 LD="${LD-ld} -m elf_i386"
4875 ppc64-*linux*|powerpc64-*linux*)
4876 LD="${LD-ld} -m elf32ppclinux"
4878 s390x-*linux*)
4879 LD="${LD-ld} -m elf_s390"
4881 sparc64-*linux*)
4882 LD="${LD-ld} -m elf32_sparc"
4884 esac
4886 *64-bit*)
4887 case $host in
4888 x86_64-*kfreebsd*-gnu)
4889 LD="${LD-ld} -m elf_x86_64_fbsd"
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_x86_64"
4894 ppc*-*linux*|powerpc*-*linux*)
4895 LD="${LD-ld} -m elf64ppc"
4897 s390*-*linux*|s390*-*tpf*)
4898 LD="${LD-ld} -m elf64_s390"
4900 sparc*-*linux*)
4901 LD="${LD-ld} -m elf64_sparc"
4903 esac
4905 esac
4907 rm -rf conftest*
4910 *-*-sco3.2v5*)
4911 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4912 SAVE_CFLAGS="$CFLAGS"
4913 CFLAGS="$CFLAGS -belf"
4914 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4915 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4916 if test "${lt_cv_cc_needs_belf+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4933 main ()
4937 return 0;
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942 (eval $ac_link) 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -z "$ac_c_werror_flag"
4950 || test ! -s conftest.err'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; } &&
4956 { ac_try='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 lt_cv_cc_needs_belf=yes
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 lt_cv_cc_needs_belf=no
4969 rm -f conftest.err conftest.$ac_objext \
4970 conftest$ac_exeext conftest.$ac_ext
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4979 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4982 CFLAGS="$SAVE_CFLAGS"
4985 sparc*-*solaris*)
4986 # Find out which ABI we are using.
4987 echo 'int i;' > conftest.$ac_ext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; then
4993 case `/usr/bin/file conftest.o` in
4994 *64-bit*)
4995 case $lt_cv_prog_gnu_ld in
4996 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4997 *) LD="${LD-ld} -64" ;;
4998 esac
5000 esac
5002 rm -rf conftest*
5004 esac
5006 need_locks="$enable_libtool_lock"
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5014 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5015 # On Suns, sometimes $CPP names a directory.
5016 if test -n "$CPP" && test -d "$CPP"; then
5017 CPP=
5019 if test -z "$CPP"; then
5020 if test "${ac_cv_prog_CPP+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023 # Double quotes because CPP needs to be expanded
5024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 ac_preproc_ok=false
5027 for ac_c_preproc_warn_flag in '' yes
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #ifdef __STDC__
5042 # include <limits.h>
5043 #else
5044 # include <assert.h>
5045 #endif
5046 Syntax error
5047 _ACEOF
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5059 else
5060 ac_cpp_err=
5062 else
5063 ac_cpp_err=yes
5065 if test -z "$ac_cpp_err"; then
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
5072 continue
5074 rm -f conftest.err conftest.$ac_ext
5076 # OK, works on sane cases. Now check whether non-existent headers
5077 # can be detected and how.
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #include <ac_nonexistent.h>
5085 _ACEOF
5086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null; then
5094 if test -s conftest.err; then
5095 ac_cpp_err=$ac_c_preproc_warn_flag
5096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5097 else
5098 ac_cpp_err=
5100 else
5101 ac_cpp_err=yes
5103 if test -z "$ac_cpp_err"; then
5104 # Broken: success on invalid input.
5105 continue
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 # Passes both tests.
5111 ac_preproc_ok=:
5112 break
5114 rm -f conftest.err conftest.$ac_ext
5116 done
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then
5120 break
5123 done
5124 ac_cv_prog_CPP=$CPP
5127 CPP=$ac_cv_prog_CPP
5128 else
5129 ac_cv_prog_CPP=$CPP
5131 echo "$as_me:$LINENO: result: $CPP" >&5
5132 echo "${ECHO_T}$CPP" >&6
5133 ac_preproc_ok=false
5134 for ac_c_preproc_warn_flag in '' yes
5136 # Use a header file that comes with gcc, so configuring glibc
5137 # with a fresh cross-compiler works.
5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139 # <limits.h> exists even on freestanding compilers.
5140 # On the NeXT, cc -E runs the code through the compiler's parser,
5141 # not just through cpp. "Syntax error" is here to catch this case.
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h. */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #ifdef __STDC__
5149 # include <limits.h>
5150 #else
5151 # include <assert.h>
5152 #endif
5153 Syntax error
5154 _ACEOF
5155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 else
5167 ac_cpp_err=
5169 else
5170 ac_cpp_err=yes
5172 if test -z "$ac_cpp_err"; then
5174 else
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 # Broken: fails on valid input.
5179 continue
5181 rm -f conftest.err conftest.$ac_ext
5183 # OK, works on sane cases. Now check whether non-existent headers
5184 # can be detected and how.
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #include <ac_nonexistent.h>
5192 _ACEOF
5193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev/null; then
5201 if test -s conftest.err; then
5202 ac_cpp_err=$ac_c_preproc_warn_flag
5203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5204 else
5205 ac_cpp_err=
5207 else
5208 ac_cpp_err=yes
5210 if test -z "$ac_cpp_err"; then
5211 # Broken: success on invalid input.
5212 continue
5213 else
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 # Passes both tests.
5218 ac_preproc_ok=:
5219 break
5221 rm -f conftest.err conftest.$ac_ext
5223 done
5224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225 rm -f conftest.err conftest.$ac_ext
5226 if $ac_preproc_ok; then
5228 else
5229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5230 See \`config.log' for more details." >&5
5231 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5232 See \`config.log' for more details." >&2;}
5233 { (exit 1); exit 1; }; }
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5245 if test "${ac_cv_header_stdc+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <stdlib.h>
5255 #include <stdarg.h>
5256 #include <string.h>
5257 #include <float.h>
5260 main ()
5264 return 0;
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -z "$ac_c_werror_flag"
5277 || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_header_stdc=yes
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 ac_cv_header_stdc=no
5296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <string.h>
5308 _ACEOF
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "memchr" >/dev/null 2>&1; then
5312 else
5313 ac_cv_header_stdc=no
5315 rm -f conftest*
5319 if test $ac_cv_header_stdc = yes; then
5320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <stdlib.h>
5329 _ACEOF
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then
5333 else
5334 ac_cv_header_stdc=no
5336 rm -f conftest*
5340 if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <ctype.h>
5352 #if ((' ' & 0x0FF) == 0x020)
5353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5355 #else
5356 # define ISLOWER(c) \
5357 (('a' <= (c) && (c) <= 'i') \
5358 || ('j' <= (c) && (c) <= 'r') \
5359 || ('s' <= (c) && (c) <= 'z'))
5360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361 #endif
5363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 main ()
5367 int i;
5368 for (i = 0; i < 256; i++)
5369 if (XOR (islower (i), ISLOWER (i))
5370 || toupper (i) != TOUPPER (i))
5371 exit(2);
5372 exit (0);
5374 _ACEOF
5375 rm -f conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377 (eval $ac_link) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5387 else
5388 echo "$as_me: program exited with status $ac_status" >&5
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ( exit $ac_status )
5393 ac_cv_header_stdc=no
5395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5400 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5401 if test $ac_cv_header_stdc = yes; then
5403 cat >>confdefs.h <<\_ACEOF
5404 #define STDC_HEADERS 1
5405 _ACEOF
5409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5419 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5420 inttypes.h stdint.h unistd.h
5422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5436 #include <$ac_header>
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 eval "$as_ac_Header=yes"
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 eval "$as_ac_Header=no"
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 _ACEOF
5478 done
5482 for ac_header in dlfcn.h
5484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for $ac_header" >&5
5486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5498 #include <$ac_header>
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 eval "$as_ac_Header=yes"
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 eval "$as_ac_Header=no"
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5540 done
5544 # This can be used to rebuild libtool when needed
5545 LIBTOOL_DEPS="$ltmain"
5547 # Always use our own libtool.
5548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5574 test -z "$LN_S" && LN_S="ln -s"
5589 if test -n "${ZSH_VERSION+set}" ; then
5590 setopt NO_GLOB_SUBST
5593 echo "$as_me:$LINENO: checking for objdir" >&5
5594 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5595 if test "${lt_cv_objdir+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 rm -f .libs 2>/dev/null
5599 mkdir .libs 2>/dev/null
5600 if test -d .libs; then
5601 lt_cv_objdir=.libs
5602 else
5603 # MS-DOS does not allow filenames that begin with a dot.
5604 lt_cv_objdir=_libs
5606 rmdir .libs 2>/dev/null
5608 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5609 echo "${ECHO_T}$lt_cv_objdir" >&6
5610 objdir=$lt_cv_objdir
5616 cat >>confdefs.h <<_ACEOF
5617 #define LT_OBJDIR "$lt_cv_objdir/"
5618 _ACEOF
5636 case $host_os in
5637 aix3*)
5638 # AIX sometimes has problems with the GCC collect2 program. For some
5639 # reason, if we set the COLLECT_NAMES environment variable, the problems
5640 # vanish in a puff of smoke.
5641 if test "X${COLLECT_NAMES+set}" != Xset; then
5642 COLLECT_NAMES=
5643 export COLLECT_NAMES
5646 esac
5648 # Sed substitution that helps us do robust quoting. It backslashifies
5649 # metacharacters that are still active within double-quoted strings.
5650 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5652 # Same as above, but do not quote variable references.
5653 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5655 # Sed substitution to delay expansion of an escaped shell variable in a
5656 # double_quote_subst'ed string.
5657 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5659 # Sed substitution to delay expansion of an escaped single quote.
5660 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5662 # Sed substitution to avoid accidental globbing in evaled expressions
5663 no_glob_subst='s/\*/\\\*/g'
5665 # Global variables:
5666 ofile=libtool
5667 can_build_shared=yes
5669 # All known linkers require a `.a' archive for static linking (except MSVC,
5670 # which needs '.lib').
5671 libext=a
5673 with_gnu_ld="$lt_cv_prog_gnu_ld"
5675 old_CC="$CC"
5676 old_CFLAGS="$CFLAGS"
5678 # Set sane defaults for various variables
5679 test -z "$CC" && CC=cc
5680 test -z "$LTCC" && LTCC=$CC
5681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5682 test -z "$LD" && LD=ld
5683 test -z "$ac_objext" && ac_objext=o
5685 for cc_temp in $compiler""; do
5686 case $cc_temp in
5687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5689 \-*) ;;
5690 *) break;;
5691 esac
5692 done
5693 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5696 # Only perform the check for file, if the check method requires it
5697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5698 case $deplibs_check_method in
5699 file_magic*)
5700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5701 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5702 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 case $MAGIC_CMD in
5707 [\\/*] | ?:[\\/]*)
5708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5711 lt_save_MAGIC_CMD="$MAGIC_CMD"
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5714 for ac_dir in $ac_dummy; do
5715 IFS="$lt_save_ifs"
5716 test -z "$ac_dir" && ac_dir=.
5717 if test -f $ac_dir/${ac_tool_prefix}file; then
5718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5719 if test -n "$file_magic_test_file"; then
5720 case $deplibs_check_method in
5721 "file_magic "*)
5722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5725 $EGREP "$file_magic_regex" > /dev/null; then
5727 else
5728 cat <<_LT_EOF 1>&2
5730 *** Warning: the command libtool uses to detect shared libraries,
5731 *** $file_magic_cmd, produces output that libtool cannot recognize.
5732 *** The result is that libtool may fail to recognize shared libraries
5733 *** as such. This will affect the creation of libtool libraries that
5734 *** depend on shared libraries, but programs linked with such libtool
5735 *** libraries will work regardless of this problem. Nevertheless, you
5736 *** may want to report the problem to your system manager and/or to
5737 *** bug-libtool@gnu.org
5739 _LT_EOF
5740 fi ;;
5741 esac
5743 break
5745 done
5746 IFS="$lt_save_ifs"
5747 MAGIC_CMD="$lt_save_MAGIC_CMD"
5749 esac
5752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5753 if test -n "$MAGIC_CMD"; then
5754 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5755 echo "${ECHO_T}$MAGIC_CMD" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5765 if test -z "$lt_cv_path_MAGIC_CMD"; then
5766 if test -n "$ac_tool_prefix"; then
5767 echo "$as_me:$LINENO: checking for file" >&5
5768 echo $ECHO_N "checking for file... $ECHO_C" >&6
5769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 case $MAGIC_CMD in
5773 [\\/*] | ?:[\\/]*)
5774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5777 lt_save_MAGIC_CMD="$MAGIC_CMD"
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5780 for ac_dir in $ac_dummy; do
5781 IFS="$lt_save_ifs"
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f $ac_dir/file; then
5784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5785 if test -n "$file_magic_test_file"; then
5786 case $deplibs_check_method in
5787 "file_magic "*)
5788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5791 $EGREP "$file_magic_regex" > /dev/null; then
5793 else
5794 cat <<_LT_EOF 1>&2
5796 *** Warning: the command libtool uses to detect shared libraries,
5797 *** $file_magic_cmd, produces output that libtool cannot recognize.
5798 *** The result is that libtool may fail to recognize shared libraries
5799 *** as such. This will affect the creation of libtool libraries that
5800 *** depend on shared libraries, but programs linked with such libtool
5801 *** libraries will work regardless of this problem. Nevertheless, you
5802 *** may want to report the problem to your system manager and/or to
5803 *** bug-libtool@gnu.org
5805 _LT_EOF
5806 fi ;;
5807 esac
5809 break
5811 done
5812 IFS="$lt_save_ifs"
5813 MAGIC_CMD="$lt_save_MAGIC_CMD"
5815 esac
5818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5819 if test -n "$MAGIC_CMD"; then
5820 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5821 echo "${ECHO_T}$MAGIC_CMD" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5828 else
5829 MAGIC_CMD=:
5835 esac
5837 # Use C for the default configuration in the libtool script
5839 lt_save_CC="$CC"
5840 ac_ext=c
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847 # Source file extension for C test sources.
5848 ac_ext=c
5850 # Object file extension for compiled C test sources.
5851 objext=o
5852 objext=$objext
5854 # Code to be used in simple compile tests
5855 lt_simple_compile_test_code="int some_variable = 0;"
5857 # Code to be used in simple link tests
5858 lt_simple_link_test_code='int main(){return(0);}'
5866 # If no C compiler was specified, use CC.
5867 LTCC=${LTCC-"$CC"}
5869 # If no C compiler flags were specified, use CFLAGS.
5870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5872 # Allow CC to be a program name with arguments.
5873 compiler=$CC
5875 # Save the default compiler, since it gets overwritten when the other
5876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5877 compiler_DEFAULT=$CC
5879 # save warnings/boilerplate of simple test code
5880 ac_outfile=conftest.$ac_objext
5881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5883 _lt_compiler_boilerplate=`cat conftest.err`
5884 $RM conftest*
5886 ac_outfile=conftest.$ac_objext
5887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5889 _lt_linker_boilerplate=`cat conftest.err`
5890 $RM conftest*
5893 ## CAVEAT EMPTOR:
5894 ## There is no encapsulation within the following macros, do not change
5895 ## the running order or otherwise move them around unless you know exactly
5896 ## what you are doing...
5897 if test -n "$compiler"; then
5899 lt_prog_compiler_no_builtin_flag=
5901 if test "$GCC" = yes; then
5902 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5904 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5905 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5906 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 lt_cv_prog_compiler_rtti_exceptions=no
5910 ac_outfile=conftest.$ac_objext
5911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5912 lt_compiler_flag="-fno-rtti -fno-exceptions"
5913 # Insert the option either (1) after the last *FLAGS variable, or
5914 # (2) before a word containing "conftest.", or (3) at the end.
5915 # Note that $ac_compile itself does not contain backslashes and begins
5916 # with a dollar sign (not a hyphen), so the echo should work correctly.
5917 # The option is referenced via a variable to avoid confusing sed.
5918 lt_compile=`echo "$ac_compile" | $SED \
5919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5921 -e 's:$: $lt_compiler_flag:'`
5922 (eval echo "\"\$as_me:5922: $lt_compile\"" >&5)
5923 (eval "$lt_compile" 2>conftest.err)
5924 ac_status=$?
5925 cat conftest.err >&5
5926 echo "$as_me:5926: \$? = $ac_status" >&5
5927 if (exit $ac_status) && test -s "$ac_outfile"; then
5928 # The compiler can only warn and ignore the option if not recognized
5929 # So say no if there are warnings other than the usual output.
5930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5933 lt_cv_prog_compiler_rtti_exceptions=yes
5936 $RM conftest*
5939 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5940 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5944 else
5955 lt_prog_compiler_wl=
5956 lt_prog_compiler_pic=
5957 lt_prog_compiler_static=
5959 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5960 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5962 if test "$GCC" = yes; then
5963 lt_prog_compiler_wl='-Wl,'
5964 lt_prog_compiler_static='-static'
5966 case $host_os in
5967 aix*)
5968 # All AIX code is PIC.
5969 if test "$host_cpu" = ia64; then
5970 # AIX 5 now supports IA64 processor
5971 lt_prog_compiler_static='-Bstatic'
5975 amigaos*)
5976 if test "$host_cpu" = m68k; then
5977 # FIXME: we need at least 68020 code to build shared libraries, but
5978 # adding the `-m68020' flag to GCC prevents building anything better,
5979 # like `-m68040'.
5980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5984 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5985 # PIC is the default for these OSes.
5988 mingw* | cygwin* | pw32* | os2*)
5989 # This hack is so that the source file can tell whether it is being
5990 # built for inclusion in a dll (and should export symbols for example).
5991 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5992 # (--disable-auto-import) libraries
5993 lt_prog_compiler_pic='-DDLL_EXPORT'
5996 darwin* | rhapsody*)
5997 # PIC is the default on this platform
5998 # Common symbols not allowed in MH_DYLIB files
5999 lt_prog_compiler_pic='-fno-common'
6002 hpux*)
6003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6004 # not for PA HP-UX.
6005 case $host_cpu in
6006 hppa*64*|ia64*)
6007 # +Z the default
6010 lt_prog_compiler_pic='-fPIC'
6012 esac
6015 interix[3-9]*)
6016 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6017 # Instead, we relocate shared libraries at runtime.
6020 msdosdjgpp*)
6021 # Just because we use GCC doesn't mean we suddenly get shared libraries
6022 # on systems that don't support them.
6023 lt_prog_compiler_can_build_shared=no
6024 enable_shared=no
6027 *nto* | *qnx*)
6028 # QNX uses GNU C++, but need to define -shared option too, otherwise
6029 # it will coredump.
6030 lt_prog_compiler_pic='-fPIC -shared'
6033 sysv4*MP*)
6034 if test -d /usr/nec; then
6035 lt_prog_compiler_pic=-Kconform_pic
6040 lt_prog_compiler_pic='-fPIC'
6042 esac
6043 else
6044 # PORTME Check for flag to pass linker flags through the system compiler.
6045 case $host_os in
6046 aix*)
6047 lt_prog_compiler_wl='-Wl,'
6048 if test "$host_cpu" = ia64; then
6049 # AIX 5 now supports IA64 processor
6050 lt_prog_compiler_static='-Bstatic'
6051 else
6052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6055 darwin*)
6056 # PIC is the default on this platform
6057 # Common symbols not allowed in MH_DYLIB files
6058 case $cc_basename in
6059 xlc*)
6060 lt_prog_compiler_pic='-qnocommon'
6061 lt_prog_compiler_wl='-Wl,'
6063 esac
6066 mingw* | cygwin* | pw32* | os2*)
6067 # This hack is so that the source file can tell whether it is being
6068 # built for inclusion in a dll (and should export symbols for example).
6069 lt_prog_compiler_pic='-DDLL_EXPORT'
6072 hpux9* | hpux10* | hpux11*)
6073 lt_prog_compiler_wl='-Wl,'
6074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6075 # not for PA HP-UX.
6076 case $host_cpu in
6077 hppa*64*|ia64*)
6078 # +Z the default
6081 lt_prog_compiler_pic='+Z'
6083 esac
6084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6085 lt_prog_compiler_static='${wl}-a ${wl}archive'
6088 irix5* | irix6* | nonstopux*)
6089 lt_prog_compiler_wl='-Wl,'
6090 # PIC (with -KPIC) is the default.
6091 lt_prog_compiler_static='-non_shared'
6094 linux* | k*bsd*-gnu)
6095 case $cc_basename in
6096 icc* | ecc*)
6097 lt_prog_compiler_wl='-Wl,'
6098 lt_prog_compiler_pic='-KPIC'
6099 lt_prog_compiler_static='-static'
6101 pgcc* | pgf77* | pgf90* | pgf95*)
6102 # Portland Group compilers (*not* the Pentium gcc compiler,
6103 # which looks to be a dead project)
6104 lt_prog_compiler_wl='-Wl,'
6105 lt_prog_compiler_pic='-fpic'
6106 lt_prog_compiler_static='-Bstatic'
6108 ccc*)
6109 lt_prog_compiler_wl='-Wl,'
6110 # All Alpha code is PIC.
6111 lt_prog_compiler_static='-non_shared'
6114 case `$CC -V 2>&1 | sed 5q` in
6115 *Sun\ C*)
6116 # Sun C 5.9
6117 lt_prog_compiler_pic='-KPIC'
6118 lt_prog_compiler_static='-Bstatic'
6119 lt_prog_compiler_wl='-Wl,'
6121 *Sun\ F*)
6122 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6123 lt_prog_compiler_pic='-KPIC'
6124 lt_prog_compiler_static='-Bstatic'
6125 lt_prog_compiler_wl=''
6127 esac
6129 esac
6132 newsos6)
6133 lt_prog_compiler_pic='-KPIC'
6134 lt_prog_compiler_static='-Bstatic'
6137 *nto* | *qnx*)
6138 # QNX uses GNU C++, but need to define -shared option too, otherwise
6139 # it will coredump.
6140 lt_prog_compiler_pic='-fPIC -shared'
6143 osf3* | osf4* | osf5*)
6144 lt_prog_compiler_wl='-Wl,'
6145 # All OSF/1 code is PIC.
6146 lt_prog_compiler_static='-non_shared'
6149 rdos*)
6150 lt_prog_compiler_static='-non_shared'
6153 solaris*)
6154 lt_prog_compiler_pic='-KPIC'
6155 lt_prog_compiler_static='-Bstatic'
6156 case $cc_basename in
6157 f77* | f90* | f95*)
6158 lt_prog_compiler_wl='-Qoption ld ';;
6160 lt_prog_compiler_wl='-Wl,';;
6161 esac
6164 sunos4*)
6165 lt_prog_compiler_wl='-Qoption ld '
6166 lt_prog_compiler_pic='-PIC'
6167 lt_prog_compiler_static='-Bstatic'
6170 sysv4 | sysv4.2uw2* | sysv4.3*)
6171 lt_prog_compiler_wl='-Wl,'
6172 lt_prog_compiler_pic='-KPIC'
6173 lt_prog_compiler_static='-Bstatic'
6176 sysv4*MP*)
6177 if test -d /usr/nec ;then
6178 lt_prog_compiler_pic='-Kconform_pic'
6179 lt_prog_compiler_static='-Bstatic'
6183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6184 lt_prog_compiler_wl='-Wl,'
6185 lt_prog_compiler_pic='-KPIC'
6186 lt_prog_compiler_static='-Bstatic'
6189 unicos*)
6190 lt_prog_compiler_wl='-Wl,'
6191 lt_prog_compiler_can_build_shared=no
6194 uts4*)
6195 lt_prog_compiler_pic='-pic'
6196 lt_prog_compiler_static='-Bstatic'
6200 lt_prog_compiler_can_build_shared=no
6202 esac
6205 case $host_os in
6206 # For platforms which do not support PIC, -DPIC is meaningless:
6207 *djgpp*)
6208 lt_prog_compiler_pic=
6211 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6213 esac
6214 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6215 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6223 # Check to make sure the PIC flag actually works.
6225 if test -n "$lt_prog_compiler_pic"; then
6226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6228 if test "${lt_prog_compiler_pic_works+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 lt_prog_compiler_pic_works=no
6232 ac_outfile=conftest.$ac_objext
6233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6235 # Insert the option either (1) after the last *FLAGS variable, or
6236 # (2) before a word containing "conftest.", or (3) at the end.
6237 # Note that $ac_compile itself does not contain backslashes and begins
6238 # with a dollar sign (not a hyphen), so the echo should work correctly.
6239 # The option is referenced via a variable to avoid confusing sed.
6240 lt_compile=`echo "$ac_compile" | $SED \
6241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243 -e 's:$: $lt_compiler_flag:'`
6244 (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
6245 (eval "$lt_compile" 2>conftest.err)
6246 ac_status=$?
6247 cat conftest.err >&5
6248 echo "$as_me:6248: \$? = $ac_status" >&5
6249 if (exit $ac_status) && test -s "$ac_outfile"; then
6250 # The compiler can only warn and ignore the option if not recognized
6251 # So say no if there are warnings other than the usual output.
6252 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6255 lt_prog_compiler_pic_works=yes
6258 $RM conftest*
6261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6262 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6264 if test x"$lt_prog_compiler_pic_works" = xyes; then
6265 case $lt_prog_compiler_pic in
6266 "" | " "*) ;;
6267 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6268 esac
6269 else
6270 lt_prog_compiler_pic=
6271 lt_prog_compiler_can_build_shared=no
6282 # Check to make sure the static flag actually works.
6284 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6285 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6286 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6287 if test "${lt_prog_compiler_static_works+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 lt_prog_compiler_static_works=no
6291 save_LDFLAGS="$LDFLAGS"
6292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6295 # The linker can only warn and ignore the option if not recognized
6296 # So say no if there are warnings
6297 if test -s conftest.err; then
6298 # Append any errors to the config.log.
6299 cat conftest.err 1>&5
6300 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6302 if diff conftest.exp conftest.er2 >/dev/null; then
6303 lt_prog_compiler_static_works=yes
6305 else
6306 lt_prog_compiler_static_works=yes
6309 $RM conftest*
6310 LDFLAGS="$save_LDFLAGS"
6313 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6314 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6316 if test x"$lt_prog_compiler_static_works" = xyes; then
6318 else
6319 lt_prog_compiler_static=
6328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333 lt_cv_prog_compiler_c_o=no
6334 $RM -r conftest 2>/dev/null
6335 mkdir conftest
6336 cd conftest
6337 mkdir out
6338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6340 lt_compiler_flag="-o out/conftest2.$ac_objext"
6341 # Insert the option either (1) after the last *FLAGS variable, or
6342 # (2) before a word containing "conftest.", or (3) at the end.
6343 # Note that $ac_compile itself does not contain backslashes and begins
6344 # with a dollar sign (not a hyphen), so the echo should work correctly.
6345 lt_compile=`echo "$ac_compile" | $SED \
6346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6348 -e 's:$: $lt_compiler_flag:'`
6349 (eval echo "\"\$as_me:6349: $lt_compile\"" >&5)
6350 (eval "$lt_compile" 2>out/conftest.err)
6351 ac_status=$?
6352 cat out/conftest.err >&5
6353 echo "$as_me:6353: \$? = $ac_status" >&5
6354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6355 then
6356 # The compiler can only warn and ignore the option if not recognized
6357 # So say no if there are warnings
6358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6361 lt_cv_prog_compiler_c_o=yes
6364 chmod u+w . 2>&5
6365 $RM conftest*
6366 # SGI C++ compiler will create directory out/ii_files/ for
6367 # template instantiation
6368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6369 $RM out/* && rmdir out
6370 cd ..
6371 $RM -r conftest
6372 $RM conftest*
6375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6383 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6385 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 lt_cv_prog_compiler_c_o=no
6389 $RM -r conftest 2>/dev/null
6390 mkdir conftest
6391 cd conftest
6392 mkdir out
6393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6395 lt_compiler_flag="-o out/conftest2.$ac_objext"
6396 # Insert the option either (1) after the last *FLAGS variable, or
6397 # (2) before a word containing "conftest.", or (3) at the end.
6398 # Note that $ac_compile itself does not contain backslashes and begins
6399 # with a dollar sign (not a hyphen), so the echo should work correctly.
6400 lt_compile=`echo "$ac_compile" | $SED \
6401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6403 -e 's:$: $lt_compiler_flag:'`
6404 (eval echo "\"\$as_me:6404: $lt_compile\"" >&5)
6405 (eval "$lt_compile" 2>out/conftest.err)
6406 ac_status=$?
6407 cat out/conftest.err >&5
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6410 then
6411 # The compiler can only warn and ignore the option if not recognized
6412 # So say no if there are warnings
6413 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6416 lt_cv_prog_compiler_c_o=yes
6419 chmod u+w . 2>&5
6420 $RM conftest*
6421 # SGI C++ compiler will create directory out/ii_files/ for
6422 # template instantiation
6423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6424 $RM out/* && rmdir out
6425 cd ..
6426 $RM -r conftest
6427 $RM conftest*
6430 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6436 hard_links="nottested"
6437 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6438 # do not overwrite the value of need_locks provided by the user
6439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6440 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6441 hard_links=yes
6442 $RM conftest*
6443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6444 touch conftest.a
6445 ln conftest.a conftest.b 2>&5 || hard_links=no
6446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6447 echo "$as_me:$LINENO: result: $hard_links" >&5
6448 echo "${ECHO_T}$hard_links" >&6
6449 if test "$hard_links" = no; then
6450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6451 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6452 need_locks=warn
6454 else
6455 need_locks=no
6463 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6464 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6466 runpath_var=
6467 allow_undefined_flag=
6468 always_export_symbols=no
6469 archive_cmds=
6470 archive_expsym_cmds=
6471 compiler_needs_object=no
6472 enable_shared_with_static_runtimes=no
6473 export_dynamic_flag_spec=
6474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6475 hardcode_automatic=no
6476 hardcode_direct=no
6477 hardcode_direct_absolute=no
6478 hardcode_libdir_flag_spec=
6479 hardcode_libdir_flag_spec_ld=
6480 hardcode_libdir_separator=
6481 hardcode_minus_L=no
6482 hardcode_shlibpath_var=unsupported
6483 inherit_rpath=no
6484 link_all_deplibs=unknown
6485 module_cmds=
6486 module_expsym_cmds=
6487 old_archive_from_new_cmds=
6488 old_archive_from_expsyms_cmds=
6489 thread_safe_flag_spec=
6490 whole_archive_flag_spec=
6491 # include_expsyms should be a list of space-separated symbols to be *always*
6492 # included in the symbol list
6493 include_expsyms=
6494 # exclude_expsyms can be an extended regexp of symbols to exclude
6495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6497 # as well as any symbol that contains `d'.
6498 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6500 # platforms (ab)use it in PIC code, but their linkers get confused if
6501 # the symbol is explicitly referenced. Since portable code cannot
6502 # rely on this symbol name, it's probably fine to never include it in
6503 # preloaded symbol tables.
6504 extract_expsyms_cmds=
6506 case $host_os in
6507 cygwin* | mingw* | pw32*)
6508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6509 # When not using gcc, we currently assume that we are using
6510 # Microsoft Visual C++.
6511 if test "$GCC" != yes; then
6512 with_gnu_ld=no
6515 interix*)
6516 # we just hope/assume this is gcc and not c89 (= MSVC++)
6517 with_gnu_ld=yes
6519 openbsd*)
6520 with_gnu_ld=no
6522 esac
6524 ld_shlibs=yes
6525 if test "$with_gnu_ld" = yes; then
6526 # If archive_cmds runs LD, not CC, wlarc should be empty
6527 wlarc='${wl}'
6529 # Set some defaults for GNU ld with shared library support. These
6530 # are reset later if shared libraries are not supported. Putting them
6531 # here allows them to be overridden if necessary.
6532 runpath_var=LD_RUN_PATH
6533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6534 export_dynamic_flag_spec='${wl}--export-dynamic'
6535 # ancient GNU ld didn't support --whole-archive et. al.
6536 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6537 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6538 else
6539 whole_archive_flag_spec=
6541 supports_anon_versioning=no
6542 case `$LD -v 2>&1` in
6543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6546 *\ 2.11.*) ;; # other 2.11 versions
6547 *) supports_anon_versioning=yes ;;
6548 esac
6550 # See if GNU ld supports shared libraries.
6551 case $host_os in
6552 aix3* | aix4* | aix5*)
6553 # On AIX/PPC, the GNU linker is very broken
6554 if test "$host_cpu" != ia64; then
6555 ld_shlibs=no
6556 cat <<_LT_EOF 1>&2
6558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6559 *** to be unable to reliably create shared libraries on AIX.
6560 *** Therefore, libtool is disabling shared libraries support. If you
6561 *** really care for shared libraries, you may want to modify your PATH
6562 *** so that a non-GNU linker is found, and then restart.
6564 _LT_EOF
6568 amigaos*)
6569 if test "$host_cpu" = m68k; then
6570 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)'
6571 hardcode_libdir_flag_spec='-L$libdir'
6572 hardcode_minus_L=yes
6575 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6576 # that the semantics of dynamic libraries on AmigaOS, at least up
6577 # to version 4, is to share data among multiple programs linked
6578 # with the same dynamic library. Since this doesn't match the
6579 # behavior of shared libraries on other platforms, we can't use
6580 # them.
6581 ld_shlibs=no
6584 beos*)
6585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6586 allow_undefined_flag=unsupported
6587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6588 # support --undefined. This deserves some investigation. FIXME
6589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6590 else
6591 ld_shlibs=no
6595 cygwin* | mingw* | pw32*)
6596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6597 # as there is no search path for DLLs.
6598 hardcode_libdir_flag_spec='-L$libdir'
6599 allow_undefined_flag=unsupported
6600 always_export_symbols=no
6601 enable_shared_with_static_runtimes=yes
6602 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6604 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6606 # If the export-symbols file already is a .def file (1st line
6607 # is EXPORTS), use it as is; otherwise, prepend...
6608 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6609 cp $export_symbols $output_objdir/$soname.def;
6610 else
6611 echo EXPORTS > $output_objdir/$soname.def;
6612 cat $export_symbols >> $output_objdir/$soname.def;
6614 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6615 else
6616 ld_shlibs=no
6620 interix[3-9]*)
6621 hardcode_direct=no
6622 hardcode_shlibpath_var=no
6623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6624 export_dynamic_flag_spec='${wl}-E'
6625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6626 # Instead, shared libraries are loaded at an image base (0x10000000 by
6627 # default) and relocated if they conflict, which is a slow very memory
6628 # consuming and fragmenting process. To avoid this, we pick a random,
6629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6632 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'
6635 gnu* | linux* | tpf* | k*bsd*-gnu)
6636 tmp_diet=no
6637 if test "$host_os" = linux-dietlibc; then
6638 case $cc_basename in
6639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6640 esac
6642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6643 && test "$tmp_diet" = no
6644 then
6645 tmp_addflag=
6646 case $cc_basename,$host_cpu in
6647 pgcc*) # Portland Group C compiler
6648 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'
6649 tmp_addflag=' $pic_flag'
6651 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6652 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'
6653 tmp_addflag=' $pic_flag -Mnomain' ;;
6654 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6655 tmp_addflag=' -i_dynamic' ;;
6656 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6657 tmp_addflag=' -i_dynamic -nofor_main' ;;
6658 ifc* | ifort*) # Intel Fortran compiler
6659 tmp_addflag=' -nofor_main' ;;
6660 esac
6661 case `$CC -V 2>&1 | sed 5q` in
6662 *Sun\ C*) # Sun C 5.9
6663 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'
6664 compiler_needs_object=yes
6665 tmp_sharedflag='-G' ;;
6666 *Sun\ F*) # Sun Fortran 8.3
6667 tmp_sharedflag='-G' ;;
6669 tmp_sharedflag='-shared' ;;
6670 esac
6671 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6673 if test "x$supports_anon_versioning" = xyes; then
6674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6676 echo "local: *; };" >> $output_objdir/$libname.ver~
6677 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6679 else
6680 ld_shlibs=no
6684 netbsd*)
6685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6686 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6687 wlarc=
6688 else
6689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6694 solaris*)
6695 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6696 ld_shlibs=no
6697 cat <<_LT_EOF 1>&2
6699 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6700 *** create shared libraries on Solaris systems. Therefore, libtool
6701 *** is disabling shared libraries support. We urge you to upgrade GNU
6702 *** binutils to release 2.9.1 or newer. Another option is to modify
6703 *** your PATH or compiler configuration so that the native linker is
6704 *** used, and then restart.
6706 _LT_EOF
6707 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6710 else
6711 ld_shlibs=no
6715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6716 case `$LD -v 2>&1` in
6717 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6718 ld_shlibs=no
6719 cat <<_LT_EOF 1>&2
6721 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6722 *** reliably create shared libraries on SCO systems. Therefore, libtool
6723 *** is disabling shared libraries support. We urge you to upgrade GNU
6724 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6725 *** your PATH or compiler configuration so that the native linker is
6726 *** used, and then restart.
6728 _LT_EOF
6731 # For security reasons, it is highly recommended that you always
6732 # use absolute paths for naming shared libraries, and exclude the
6733 # DT_RUNPATH tag from executables and libraries. But doing so
6734 # requires that you compile everything twice, which is a pain.
6735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6739 else
6740 ld_shlibs=no
6743 esac
6746 sunos4*)
6747 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6748 wlarc=
6749 hardcode_direct=yes
6750 hardcode_shlibpath_var=no
6754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6757 else
6758 ld_shlibs=no
6761 esac
6763 if test "$ld_shlibs" = no; then
6764 runpath_var=
6765 hardcode_libdir_flag_spec=
6766 export_dynamic_flag_spec=
6767 whole_archive_flag_spec=
6769 else
6770 # PORTME fill in a description of your system's linker (not GNU ld)
6771 case $host_os in
6772 aix3*)
6773 allow_undefined_flag=unsupported
6774 always_export_symbols=yes
6775 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'
6776 # Note: this linker hardcodes the directories in LIBPATH if there
6777 # are no directories specified by -L.
6778 hardcode_minus_L=yes
6779 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6780 # Neither direct hardcoding nor static linking is supported with a
6781 # broken collect2.
6782 hardcode_direct=unsupported
6786 aix4* | aix5*)
6787 if test "$host_cpu" = ia64; then
6788 # On IA64, the linker does run time linking by default, so we don't
6789 # have to do anything special.
6790 aix_use_runtimelinking=no
6791 exp_sym_flag='-Bexport'
6792 no_entry_flag=""
6793 else
6794 # If we're using GNU nm, then we don't want the "-C" option.
6795 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6797 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'
6798 else
6799 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'
6801 aix_use_runtimelinking=no
6803 # Test if we are trying to use run time linking or normal
6804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6805 # need to do runtime linking.
6806 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6807 for ld_flag in $LDFLAGS; do
6808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6809 aix_use_runtimelinking=yes
6810 break
6812 done
6814 esac
6816 exp_sym_flag='-bexport'
6817 no_entry_flag='-bnoentry'
6820 # When large executables or shared objects are built, AIX ld can
6821 # have problems creating the table of contents. If linking a library
6822 # or program results in "error TOC overflow" add -mminimal-toc to
6823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6826 archive_cmds=''
6827 hardcode_direct=yes
6828 hardcode_direct_absolute=yes
6829 hardcode_libdir_separator=':'
6830 link_all_deplibs=yes
6831 file_list_spec='${wl}-f,'
6833 if test "$GCC" = yes; then
6834 case $host_os in aix4.[012]|aix4.[012].*)
6835 # We only want to do this on AIX 4.2 and lower, the check
6836 # below for broken collect2 doesn't work under 4.3+
6837 collect2name=`${CC} -print-prog-name=collect2`
6838 if test -f "$collect2name" &&
6839 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6840 then
6841 # We have reworked collect2
6843 else
6844 # We have old collect2
6845 hardcode_direct=unsupported
6846 # It fails to find uninstalled libraries when the uninstalled
6847 # path is not listed in the libpath. Setting hardcode_minus_L
6848 # to unsupported forces relinking
6849 hardcode_minus_L=yes
6850 hardcode_libdir_flag_spec='-L$libdir'
6851 hardcode_libdir_separator=
6854 esac
6855 shared_flag='-shared'
6856 if test "$aix_use_runtimelinking" = yes; then
6857 shared_flag="$shared_flag "'${wl}-G'
6859 else
6860 # not using gcc
6861 if test "$host_cpu" = ia64; then
6862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6863 # chokes on -Wl,-G. The following line is correct:
6864 shared_flag='-G'
6865 else
6866 if test "$aix_use_runtimelinking" = yes; then
6867 shared_flag='${wl}-G'
6868 else
6869 shared_flag='${wl}-bM:SRE'
6874 # It seems that -bexpall does not export symbols beginning with
6875 # underscore (_), so it is better to generate a list of symbols to export.
6876 always_export_symbols=yes
6877 if test "$aix_use_runtimelinking" = yes; then
6878 # Warning - without using the other runtime loading flags (-brtl),
6879 # -berok will link without error, but may produce a broken library.
6880 allow_undefined_flag='-berok'
6881 # Determine the default libpath from the value encoded in an
6882 # empty executable.
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6891 main ()
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_c_werror_flag"
6908 || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try='test -s conftest$ac_exeext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6921 lt_aix_libpath_sed='
6922 /Import File Strings/,/^$/ {
6923 /^0/ {
6924 s/^0 *\(.*\)$/\1/
6928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6929 # Check for a 64-bit object if we didn't find anything.
6930 if test -z "$aix_libpath"; then
6931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6938 rm -f conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6943 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"
6944 else
6945 if test "$host_cpu" = ia64; then
6946 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6947 allow_undefined_flag="-z nodefs"
6948 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"
6949 else
6950 # Determine the default libpath from the value encoded in an
6951 # empty executable.
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6960 main ()
6964 return 0;
6966 _ACEOF
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6990 lt_aix_libpath_sed='
6991 /Import File Strings/,/^$/ {
6992 /^0/ {
6993 s/^0 *\(.*\)$/\1/
6997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6998 # Check for a 64-bit object if we didn't find anything.
6999 if test -z "$aix_libpath"; then
7000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7002 else
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7007 rm -f conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7011 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7012 # Warning - without using the other run time loading flags,
7013 # -berok will link without error, but may produce a broken library.
7014 no_undefined_flag=' ${wl}-bernotok'
7015 allow_undefined_flag=' ${wl}-berok'
7016 # Exported symbols can be pulled into shared objects from archives
7017 whole_archive_flag_spec='$convenience'
7018 archive_cmds_need_lc=yes
7019 # This is similar to how AIX traditionally builds its shared libraries.
7020 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'
7025 amigaos*)
7026 if test "$host_cpu" = m68k; then
7027 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)'
7028 hardcode_libdir_flag_spec='-L$libdir'
7029 hardcode_minus_L=yes
7031 # see comment about different semantics on the GNU ld section
7032 ld_shlibs=no
7035 bsdi[45]*)
7036 export_dynamic_flag_spec=-rdynamic
7039 cygwin* | mingw* | pw32*)
7040 # When not using gcc, we currently assume that we are using
7041 # Microsoft Visual C++.
7042 # hardcode_libdir_flag_spec is actually meaningless, as there is
7043 # no search path for DLLs.
7044 hardcode_libdir_flag_spec=' '
7045 allow_undefined_flag=unsupported
7046 # Tell ltmain to make .lib files, not .a files.
7047 libext=lib
7048 # Tell ltmain to make .dll files, not .so files.
7049 shrext_cmds=".dll"
7050 # FIXME: Setting linknames here is a bad hack.
7051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7052 # The linker will automatically build a .lib file if we build a DLL.
7053 old_archive_from_new_cmds='true'
7054 # FIXME: Should let the user specify the lib program.
7055 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7056 fix_srcfile_path='`cygpath -w "$srcfile"`'
7057 enable_shared_with_static_runtimes=yes
7060 darwin* | rhapsody*)
7061 case $host_os in
7062 rhapsody* | darwin1.[012])
7063 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7065 *) # Darwin 1.3 on
7066 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7067 10.[012])
7068 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7070 10.*)
7071 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7073 esac
7075 esac
7076 archive_cmds_need_lc=no
7077 hardcode_direct=no
7078 hardcode_automatic=yes
7079 hardcode_shlibpath_var=unsupported
7080 whole_archive_flag_spec=''
7081 link_all_deplibs=yes
7082 if test "$GCC" = yes ; then
7083 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 lt_cv_apple_cc_single_mod=no
7087 if test -z "${LT_MULTI_MODULE}"; then
7088 # By default we will add the -single_module flag. You can override
7089 # by either setting the environment variable LT_MULTI_MODULE
7090 # non-empty at configure time, or by adding -multi-module to the
7091 # link flags.
7092 echo "int foo(void){return 1;}" > conftest.c
7093 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7094 -dynamiclib ${wl}-single_module conftest.c
7095 if test -f libconftest.dylib; then
7096 lt_cv_apple_cc_single_mod=yes
7097 rm libconftest.dylib
7099 rm conftest.$ac_ext
7103 output_verbose_link_cmd=echo
7104 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7105 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7106 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}'
7107 else
7108 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7109 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}'
7111 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7112 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}'
7113 else
7114 case $cc_basename in
7115 xlc*)
7116 output_verbose_link_cmd=echo
7117 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7118 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7120 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}'
7121 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}'
7124 ld_shlibs=no
7126 esac
7130 dgux*)
7131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 hardcode_libdir_flag_spec='-L$libdir'
7133 hardcode_shlibpath_var=no
7136 freebsd1*)
7137 ld_shlibs=no
7140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7141 # support. Future versions do this automatically, but an explicit c++rt0.o
7142 # does not break anything, and helps significantly (at the cost of a little
7143 # extra space).
7144 freebsd2.2*)
7145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7146 hardcode_libdir_flag_spec='-R$libdir'
7147 hardcode_direct=yes
7148 hardcode_shlibpath_var=no
7151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7152 freebsd2*)
7153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154 hardcode_direct=yes
7155 hardcode_minus_L=yes
7156 hardcode_shlibpath_var=no
7159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7160 freebsd* | dragonfly*)
7161 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7162 hardcode_libdir_flag_spec='-R$libdir'
7163 hardcode_direct=yes
7164 hardcode_shlibpath_var=no
7167 hpux9*)
7168 if test "$GCC" = yes; then
7169 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'
7170 else
7171 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'
7173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174 hardcode_libdir_separator=:
7175 hardcode_direct=yes
7177 # hardcode_minus_L: Not really in the search PATH,
7178 # but as the default location of the library.
7179 hardcode_minus_L=yes
7180 export_dynamic_flag_spec='${wl}-E'
7183 hpux10*)
7184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7186 else
7187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7189 if test "$with_gnu_ld" = no; then
7190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7191 hardcode_libdir_flag_spec_ld='+b $libdir'
7192 hardcode_libdir_separator=:
7193 hardcode_direct=yes
7194 hardcode_direct_absolute=yes
7195 export_dynamic_flag_spec='${wl}-E'
7196 # hardcode_minus_L: Not really in the search PATH,
7197 # but as the default location of the library.
7198 hardcode_minus_L=yes
7202 hpux11*)
7203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7204 case $host_cpu in
7205 hppa*64*)
7206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7208 ia64*)
7209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7214 esac
7215 else
7216 case $host_cpu in
7217 hppa*64*)
7218 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7220 ia64*)
7221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7226 esac
7228 if test "$with_gnu_ld" = no; then
7229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7230 hardcode_libdir_separator=:
7232 case $host_cpu in
7233 hppa*64*|ia64*)
7234 hardcode_direct=no
7235 hardcode_shlibpath_var=no
7238 hardcode_direct=yes
7239 hardcode_direct_absolute=yes
7240 export_dynamic_flag_spec='${wl}-E'
7242 # hardcode_minus_L: Not really in the search PATH,
7243 # but as the default location of the library.
7244 hardcode_minus_L=yes
7246 esac
7250 irix5* | irix6* | nonstopux*)
7251 if test "$GCC" = yes; then
7252 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'
7253 # Try to use the -exported_symbol ld option, if it does not
7254 # work, assume that -exports_file does not work either and
7255 # implicitly export all symbols.
7256 save_LDFLAGS="$LDFLAGS"
7257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7258 cat >conftest.$ac_ext <<_ACEOF
7259 int foo(void) {}
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try='test -z "$ac_c_werror_flag"
7271 || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 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'
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7290 rm -f conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292 LDFLAGS="$save_LDFLAGS"
7293 else
7294 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'
7295 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'
7297 archive_cmds_need_lc='no'
7298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7299 hardcode_libdir_separator=:
7300 inherit_rpath=yes
7301 link_all_deplibs=yes
7304 netbsd*)
7305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7307 else
7308 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7310 hardcode_libdir_flag_spec='-R$libdir'
7311 hardcode_direct=yes
7312 hardcode_shlibpath_var=no
7315 newsos6)
7316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_direct=yes
7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319 hardcode_libdir_separator=:
7320 hardcode_shlibpath_var=no
7323 *nto* | *qnx*)
7326 openbsd*)
7327 hardcode_direct=yes
7328 hardcode_shlibpath_var=no
7329 hardcode_direct_absolute=yes
7330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7334 export_dynamic_flag_spec='${wl}-E'
7335 else
7336 case $host_os in
7337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7339 hardcode_libdir_flag_spec='-R$libdir'
7342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7345 esac
7349 os2*)
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_minus_L=yes
7352 allow_undefined_flag=unsupported
7353 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'
7354 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7357 osf3*)
7358 if test "$GCC" = yes; then
7359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7360 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'
7361 else
7362 allow_undefined_flag=' -expect_unresolved \*'
7363 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'
7365 archive_cmds_need_lc='no'
7366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7367 hardcode_libdir_separator=:
7370 osf4* | osf5*) # as osf3* with the addition of -msym flag
7371 if test "$GCC" = yes; then
7372 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7373 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'
7374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7375 else
7376 allow_undefined_flag=' -expect_unresolved \*'
7377 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'
7378 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~
7379 $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'
7381 # Both c and cxx compiler support -rpath directly
7382 hardcode_libdir_flag_spec='-rpath $libdir'
7384 archive_cmds_need_lc='no'
7385 hardcode_libdir_separator=:
7388 solaris*)
7389 no_undefined_flag=' -z defs'
7390 if test "$GCC" = yes; then
7391 wlarc='${wl}'
7392 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7394 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7395 else
7396 case `$CC -V 2>&1` in
7397 *"Compilers 5.0"*)
7398 wlarc=''
7399 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7401 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7404 wlarc='${wl}'
7405 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7406 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7407 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7409 esac
7411 hardcode_libdir_flag_spec='-R$libdir'
7412 hardcode_shlibpath_var=no
7413 case $host_os in
7414 solaris2.[0-5] | solaris2.[0-5].*) ;;
7416 # The compiler driver will combine and reorder linker options,
7417 # but understands `-z linker_flag'. GCC discards it without `$wl',
7418 # but is careful enough not to reorder.
7419 # Supported since Solaris 2.6 (maybe 2.5.1?)
7420 if test "$GCC" = yes; then
7421 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7422 else
7423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7426 esac
7427 link_all_deplibs=yes
7430 sunos4*)
7431 if test "x$host_vendor" = xsequent; then
7432 # Use $CC to link under sequent, because it throws in some extra .o
7433 # files that make .init and .fini sections work.
7434 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7435 else
7436 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_libdir_flag_spec='-L$libdir'
7439 hardcode_direct=yes
7440 hardcode_minus_L=yes
7441 hardcode_shlibpath_var=no
7444 sysv4)
7445 case $host_vendor in
7446 sni)
7447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_direct=yes # is this really true???
7450 siemens)
7451 ## LD is ld it makes a PLAMLIB
7452 ## CC just makes a GrossModule.
7453 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7454 reload_cmds='$CC -r -o $output$reload_objs'
7455 hardcode_direct=no
7457 motorola)
7458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7461 esac
7462 runpath_var='LD_RUN_PATH'
7463 hardcode_shlibpath_var=no
7466 sysv4.3*)
7467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_shlibpath_var=no
7469 export_dynamic_flag_spec='-Bexport'
7472 sysv4*MP*)
7473 if test -d /usr/nec; then
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_shlibpath_var=no
7476 runpath_var=LD_RUN_PATH
7477 hardcode_runpath_var=yes
7478 ld_shlibs=yes
7482 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7483 no_undefined_flag='${wl}-z,text'
7484 archive_cmds_need_lc=no
7485 hardcode_shlibpath_var=no
7486 runpath_var='LD_RUN_PATH'
7488 if test "$GCC" = yes; then
7489 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7490 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7491 else
7492 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7493 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7497 sysv5* | sco3.2v5* | sco5v6*)
7498 # Note: We can NOT use -z defs as we might desire, because we do not
7499 # link with -lc, and that would cause any symbols used from libc to
7500 # always be unresolved, which means just about no library would
7501 # ever link correctly. If we're not using GNU ld we use -z text
7502 # though, which does catch some bad symbols but isn't as heavy-handed
7503 # as -z defs.
7504 no_undefined_flag='${wl}-z,text'
7505 allow_undefined_flag='${wl}-z,nodefs'
7506 archive_cmds_need_lc=no
7507 hardcode_shlibpath_var=no
7508 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7509 hardcode_libdir_separator=':'
7510 link_all_deplibs=yes
7511 export_dynamic_flag_spec='${wl}-Bexport'
7512 runpath_var='LD_RUN_PATH'
7514 if test "$GCC" = yes; then
7515 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7516 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7517 else
7518 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7519 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7523 uts4*)
7524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 hardcode_shlibpath_var=no
7530 ld_shlibs=no
7532 esac
7534 if test x$host_vendor = xsni; then
7535 case $host in
7536 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7537 export_dynamic_flag_spec='${wl}-Blargedynsym'
7539 esac
7543 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7544 echo "${ECHO_T}$ld_shlibs" >&6
7545 test "$ld_shlibs" = no && can_build_shared=no
7547 with_gnu_ld=$with_gnu_ld
7564 # Do we need to explicitly link libc?
7566 case "x$archive_cmds_need_lc" in
7567 x|xyes)
7568 # Assume -lc should be added
7569 archive_cmds_need_lc=yes
7571 if test "$enable_shared" = yes && test "$GCC" = yes; then
7572 case $archive_cmds in
7573 *'~'*)
7574 # FIXME: we may have to deal with multi-command sequences.
7576 '$CC '*)
7577 # Test whether the compiler implicitly links with -lc since on some
7578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7579 # to ld, don't add -lc before -lgcc.
7580 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7581 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7582 $RM conftest*
7583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } 2>conftest.err; then
7590 soname=conftest
7591 lib=conftest
7592 libobjs=conftest.$ac_objext
7593 deplibs=
7594 wl=$lt_prog_compiler_wl
7595 pic_flag=$lt_prog_compiler_pic
7596 compiler_flags=-v
7597 linker_flags=-v
7598 verstring=
7599 output_objdir=.
7600 libname=conftest
7601 lt_save_allow_undefined_flag=$allow_undefined_flag
7602 allow_undefined_flag=
7603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7604 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }
7608 then
7609 archive_cmds_need_lc=no
7610 else
7611 archive_cmds_need_lc=yes
7613 allow_undefined_flag=$lt_save_allow_undefined_flag
7614 else
7615 cat conftest.err 1>&5
7617 $RM conftest*
7618 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7619 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7621 esac
7624 esac
7782 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7784 withGCC=$GCC
7785 if test "$withGCC" = yes; then
7786 case $host_os in
7787 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7788 *) lt_awk_arg="/^libraries:/" ;;
7789 esac
7790 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7791 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7792 # if the path contains ";" then we assume it to be the separator
7793 # otherwise default to the standard path separator (i.e. ":") - it is
7794 # assumed that no part of a normal pathname contains ";" but that should
7795 # okay in the real world where ";" in dirpaths is itself problematic.
7796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7797 else
7798 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7800 # Ok, now we have the path, separated by spaces, we can step through it
7801 # and add multilib dir if necessary.
7802 lt_tmp_lt_search_path_spec=
7803 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7804 for lt_sys_path in $lt_search_path_spec; do
7805 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7806 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7807 else
7808 test -d "$lt_sys_path" && \
7809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7811 done
7812 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7813 BEGIN {RS=" "; FS="/|\n";} {
7814 lt_foo="";
7815 lt_count=0;
7816 for (lt_i = NF; lt_i > 0; lt_i--) {
7817 if ($lt_i != "" && $lt_i != ".") {
7818 if ($lt_i == "..") {
7819 lt_count++;
7820 } else {
7821 if (lt_count == 0) {
7822 lt_foo="/" $lt_i lt_foo;
7823 } else {
7824 lt_count--;
7829 if (lt_foo != "") { lt_freq[lt_foo]++; }
7830 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7832 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7833 else
7834 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7836 library_names_spec=
7837 libname_spec='lib$name'
7838 soname_spec=
7839 shrext_cmds=".so"
7840 postinstall_cmds=
7841 postuninstall_cmds=
7842 finish_cmds=
7843 finish_eval=
7844 shlibpath_var=
7845 shlibpath_overrides_runpath=unknown
7846 version_type=none
7847 dynamic_linker="$host_os ld.so"
7848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7849 need_lib_prefix=unknown
7850 hardcode_into_libs=no
7852 # when you set need_version to no, make sure it does not cause -set_version
7853 # flags to be left without arguments
7854 need_version=unknown
7856 case $host_os in
7857 aix3*)
7858 version_type=linux
7859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7860 shlibpath_var=LIBPATH
7862 # AIX 3 has no versioning support, so we append a major version to the name.
7863 soname_spec='${libname}${release}${shared_ext}$major'
7866 aix4* | aix5*)
7867 version_type=linux
7868 need_lib_prefix=no
7869 need_version=no
7870 hardcode_into_libs=yes
7871 if test "$host_cpu" = ia64; then
7872 # AIX 5 supports IA64
7873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 else
7876 # With GCC up to 2.95.x, collect2 would create an import file
7877 # for dependence libraries. The import file would start with
7878 # the line `#! .'. This would cause the generated library to
7879 # depend on `.', always an invalid library. This was fixed in
7880 # development snapshots of GCC prior to 3.0.
7881 case $host_os in
7882 aix4 | aix4.[01] | aix4.[01].*)
7883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7884 echo ' yes '
7885 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7887 else
7888 can_build_shared=no
7891 esac
7892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7893 # soname into executable. Probably we can add versioning support to
7894 # collect2, so additional links can be useful in future.
7895 if test "$aix_use_runtimelinking" = yes; then
7896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7897 # instead of lib<name>.a to let people know that these are not
7898 # typical AIX shared libraries.
7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 else
7901 # We preserve .a as extension for shared libraries through AIX4.2
7902 # and later when we are not doing run time linking.
7903 library_names_spec='${libname}${release}.a $libname.a'
7904 soname_spec='${libname}${release}${shared_ext}$major'
7906 shlibpath_var=LIBPATH
7910 amigaos*)
7911 if test "$host_cpu" = m68k; then
7912 library_names_spec='$libname.ixlibrary $libname.a'
7913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7914 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'
7915 else
7916 dynamic_linker=no
7920 beos*)
7921 library_names_spec='${libname}${shared_ext}'
7922 dynamic_linker="$host_os ld.so"
7923 shlibpath_var=LIBRARY_PATH
7926 bsdi[45]*)
7927 version_type=linux
7928 need_version=no
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
7931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7932 shlibpath_var=LD_LIBRARY_PATH
7933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7935 # the default ld.so.conf also contains /usr/contrib/lib and
7936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7937 # libtool to hard-code these into programs
7940 cygwin* | mingw* | pw32*)
7941 version_type=windows
7942 shrext_cmds=".dll"
7943 need_version=no
7944 need_lib_prefix=no
7946 case $withGCC,$host_os in
7947 yes,cygwin* | yes,mingw* | yes,pw32*)
7948 library_names_spec='$libname.dll.a'
7949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7950 postinstall_cmds='base_file=`basename \${file}`~
7951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7952 dldir=$destdir/`dirname \$dlpath`~
7953 test -d \$dldir || mkdir -p \$dldir~
7954 $install_prog $dir/$dlname \$dldir/$dlname~
7955 chmod a+x \$dldir/$dlname~
7956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7960 dlpath=$dir/\$dldll~
7961 $RM \$dlpath'
7962 shlibpath_overrides_runpath=yes
7964 case $host_os in
7965 cygwin*)
7966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7970 mingw*)
7971 # MinGW DLLs use traditional 'lib' prefix
7972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7973 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7975 # It is most probably a Windows format PATH printed by
7976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7977 # path with ; separators, and with drive letters. We can handle the
7978 # drive letters (cygwin fileutils understands them), so leave them,
7979 # especially as we might pass files found there to a mingw objdump,
7980 # which wouldn't understand a cygwinified path. Ahh.
7981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7982 else
7983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7986 pw32*)
7987 # pw32 DLLs use 'pw' prefix rather than 'lib'
7988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7990 esac
7994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7996 esac
7997 dynamic_linker='Win32 ld.exe'
7998 # FIXME: first we should search . and the directory the executable is in
7999 shlibpath_var=PATH
8002 darwin* | rhapsody*)
8003 dynamic_linker="$host_os dyld"
8004 version_type=darwin
8005 need_lib_prefix=no
8006 need_version=no
8007 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8008 soname_spec='${libname}${release}${major}$shared_ext'
8009 shlibpath_overrides_runpath=yes
8010 shlibpath_var=DYLD_LIBRARY_PATH
8011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8017 dgux*)
8018 version_type=linux
8019 need_lib_prefix=no
8020 need_version=no
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8022 soname_spec='${libname}${release}${shared_ext}$major'
8023 shlibpath_var=LD_LIBRARY_PATH
8026 freebsd1*)
8027 dynamic_linker=no
8030 freebsd* | dragonfly*)
8031 # DragonFly does not have aout. When/if they implement a new
8032 # versioning mechanism, adjust this.
8033 if test -x /usr/bin/objformat; then
8034 objformat=`/usr/bin/objformat`
8035 else
8036 case $host_os in
8037 freebsd[123]*) objformat=aout ;;
8038 *) objformat=elf ;;
8039 esac
8041 version_type=freebsd-$objformat
8042 case $version_type in
8043 freebsd-elf*)
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8045 need_version=no
8046 need_lib_prefix=no
8048 freebsd-*)
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8050 need_version=yes
8052 esac
8053 shlibpath_var=LD_LIBRARY_PATH
8054 case $host_os in
8055 freebsd2*)
8056 shlibpath_overrides_runpath=yes
8058 freebsd3.[01]* | freebsdelf3.[01]*)
8059 shlibpath_overrides_runpath=yes
8060 hardcode_into_libs=yes
8062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8064 shlibpath_overrides_runpath=no
8065 hardcode_into_libs=yes
8067 *) # from 4.6 on, and DragonFly
8068 shlibpath_overrides_runpath=yes
8069 hardcode_into_libs=yes
8071 esac
8074 gnu*)
8075 version_type=linux
8076 need_lib_prefix=no
8077 need_version=no
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8079 soname_spec='${libname}${release}${shared_ext}$major'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 hardcode_into_libs=yes
8084 hpux9* | hpux10* | hpux11*)
8085 # Give a soname corresponding to the major version so that dld.sl refuses to
8086 # link against other versions.
8087 version_type=sunos
8088 need_lib_prefix=no
8089 need_version=no
8090 case $host_cpu in
8091 ia64*)
8092 shrext_cmds='.so'
8093 hardcode_into_libs=yes
8094 dynamic_linker="$host_os dld.so"
8095 shlibpath_var=LD_LIBRARY_PATH
8096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 if test "X$HPUX_IA64_MODE" = X32; then
8100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8101 else
8102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8106 hppa*64*)
8107 shrext_cmds='.sl'
8108 hardcode_into_libs=yes
8109 dynamic_linker="$host_os dld.sl"
8110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8118 shrext_cmds='.sl'
8119 dynamic_linker="$host_os dld.sl"
8120 shlibpath_var=SHLIB_PATH
8121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
8125 esac
8126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8127 postinstall_cmds='chmod 555 $lib'
8130 interix[3-9]*)
8131 version_type=linux
8132 need_lib_prefix=no
8133 need_version=no
8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8137 shlibpath_var=LD_LIBRARY_PATH
8138 shlibpath_overrides_runpath=no
8139 hardcode_into_libs=yes
8142 irix5* | irix6* | nonstopux*)
8143 case $host_os in
8144 nonstopux*) version_type=nonstopux ;;
8146 if test "$lt_cv_prog_gnu_ld" = yes; then
8147 version_type=linux
8148 else
8149 version_type=irix
8150 fi ;;
8151 esac
8152 need_lib_prefix=no
8153 need_version=no
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8156 case $host_os in
8157 irix5* | nonstopux*)
8158 libsuff= shlibsuff=
8161 case $LD in # libtool.m4 will add one of these switches to LD
8162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8163 libsuff= shlibsuff= libmagic=32-bit;;
8164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8165 libsuff=32 shlibsuff=N32 libmagic=N32;;
8166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8168 *) libsuff= shlibsuff= libmagic=never-match;;
8169 esac
8171 esac
8172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8173 shlibpath_overrides_runpath=no
8174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8176 hardcode_into_libs=yes
8179 # No shared lib support for Linux oldld, aout, or coff.
8180 linux*oldld* | linux*aout* | linux*coff*)
8181 dynamic_linker=no
8184 # This must be Linux ELF.
8185 linux* | k*bsd*-gnu)
8186 version_type=linux
8187 need_lib_prefix=no
8188 need_version=no
8189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8190 soname_spec='${libname}${release}${shared_ext}$major'
8191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8192 shlibpath_var=LD_LIBRARY_PATH
8193 shlibpath_overrides_runpath=no
8194 # Some binutils ld are patched to set DT_RUNPATH
8195 save_LDFLAGS=$LDFLAGS
8196 save_libdir=$libdir
8197 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8198 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8207 main ()
8211 return 0;
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8237 shlibpath_overrides_runpath=yes
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8245 rm -f conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 LDFLAGS=$save_LDFLAGS
8248 libdir=$save_libdir
8250 # This implies no fast_install, which is unacceptable.
8251 # Some rework will be needed to allow for fast_install
8252 # before this can be enabled.
8253 hardcode_into_libs=yes
8255 # Append ld.so.conf contents to the search path
8256 if test -f /etc/ld.so.conf; then
8257 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' ' '`
8258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8261 # We used to test for /lib/ld.so.1 and disable shared libraries on
8262 # powerpc, because MkLinux only supported shared libraries with the
8263 # GNU dynamic linker. Since this was broken with cross compilers,
8264 # most powerpc-linux boxes support dynamic linking these days and
8265 # people can always --disable-shared, the test was removed, and we
8266 # assume the GNU/Linux dynamic linker is in use.
8267 dynamic_linker='GNU/Linux ld.so'
8270 netbsd*)
8271 version_type=sunos
8272 need_lib_prefix=no
8273 need_version=no
8274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8277 dynamic_linker='NetBSD (a.out) ld.so'
8278 else
8279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8280 soname_spec='${libname}${release}${shared_ext}$major'
8281 dynamic_linker='NetBSD ld.elf_so'
8283 shlibpath_var=LD_LIBRARY_PATH
8284 shlibpath_overrides_runpath=yes
8285 hardcode_into_libs=yes
8288 newsos6)
8289 version_type=linux
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291 shlibpath_var=LD_LIBRARY_PATH
8292 shlibpath_overrides_runpath=yes
8295 *nto* | *qnx*)
8296 version_type=qnx
8297 need_lib_prefix=no
8298 need_version=no
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 shlibpath_overrides_runpath=no
8303 hardcode_into_libs=yes
8304 dynamic_linker='ldqnx.so'
8307 openbsd*)
8308 version_type=sunos
8309 sys_lib_dlsearch_path_spec="/usr/lib"
8310 need_lib_prefix=no
8311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8312 case $host_os in
8313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8314 *) need_version=no ;;
8315 esac
8316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8318 shlibpath_var=LD_LIBRARY_PATH
8319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8320 case $host_os in
8321 openbsd2.[89] | openbsd2.[89].*)
8322 shlibpath_overrides_runpath=no
8325 shlibpath_overrides_runpath=yes
8327 esac
8328 else
8329 shlibpath_overrides_runpath=yes
8333 os2*)
8334 libname_spec='$name'
8335 shrext_cmds=".dll"
8336 need_lib_prefix=no
8337 library_names_spec='$libname${shared_ext} $libname.a'
8338 dynamic_linker='OS/2 ld.exe'
8339 shlibpath_var=LIBPATH
8342 osf3* | osf4* | osf5*)
8343 version_type=osf
8344 need_lib_prefix=no
8345 need_version=no
8346 soname_spec='${libname}${release}${shared_ext}$major'
8347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8353 rdos*)
8354 dynamic_linker=no
8357 solaris*)
8358 version_type=linux
8359 need_lib_prefix=no
8360 need_version=no
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=yes
8365 hardcode_into_libs=yes
8366 # ldd complains unless libraries are executable
8367 postinstall_cmds='chmod +x $lib'
8370 sunos4*)
8371 version_type=sunos
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8374 shlibpath_var=LD_LIBRARY_PATH
8375 shlibpath_overrides_runpath=yes
8376 if test "$with_gnu_ld" = yes; then
8377 need_lib_prefix=no
8379 need_version=yes
8382 sysv4 | sysv4.3*)
8383 version_type=linux
8384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385 soname_spec='${libname}${release}${shared_ext}$major'
8386 shlibpath_var=LD_LIBRARY_PATH
8387 case $host_vendor in
8388 sni)
8389 shlibpath_overrides_runpath=no
8390 need_lib_prefix=no
8391 runpath_var=LD_RUN_PATH
8393 siemens)
8394 need_lib_prefix=no
8396 motorola)
8397 need_lib_prefix=no
8398 need_version=no
8399 shlibpath_overrides_runpath=no
8400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8402 esac
8405 sysv4*MP*)
8406 if test -d /usr/nec ;then
8407 version_type=linux
8408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8409 soname_spec='$libname${shared_ext}.$major'
8410 shlibpath_var=LD_LIBRARY_PATH
8414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8415 version_type=freebsd-elf
8416 need_lib_prefix=no
8417 need_version=no
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8419 soname_spec='${libname}${release}${shared_ext}$major'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 shlibpath_overrides_runpath=yes
8422 hardcode_into_libs=yes
8423 if test "$with_gnu_ld" = yes; then
8424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8425 else
8426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8427 case $host_os in
8428 sco3.2v5*)
8429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8431 esac
8433 sys_lib_dlsearch_path_spec='/usr/lib'
8436 tpf*)
8437 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8438 version_type=linux
8439 need_lib_prefix=no
8440 need_version=no
8441 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8442 shlibpath_var=LD_LIBRARY_PATH
8443 shlibpath_overrides_runpath=no
8444 hardcode_into_libs=yes
8447 uts4*)
8448 version_type=linux
8449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8450 soname_spec='${libname}${release}${shared_ext}$major'
8451 shlibpath_var=LD_LIBRARY_PATH
8455 dynamic_linker=no
8457 esac
8458 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8459 echo "${ECHO_T}$dynamic_linker" >&6
8460 test "$dynamic_linker" = no && can_build_shared=no
8462 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8463 if test "$GCC" = yes; then
8464 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8553 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8554 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8555 hardcode_action=
8556 if test -n "$hardcode_libdir_flag_spec" ||
8557 test -n "$runpath_var" ||
8558 test "X$hardcode_automatic" = "Xyes" ; then
8560 # We can hardcode non-existent directories.
8561 if test "$hardcode_direct" != no &&
8562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8563 # have to relink, otherwise we might link with an installed library
8564 # when we should be linking with a yet-to-be-installed one
8565 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8566 test "$hardcode_minus_L" != no; then
8567 # Linking always hardcodes the temporary library directory.
8568 hardcode_action=relink
8569 else
8570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8571 hardcode_action=immediate
8573 else
8574 # We cannot hardcode anything, or else we can only hardcode existing
8575 # directories.
8576 hardcode_action=unsupported
8578 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8579 echo "${ECHO_T}$hardcode_action" >&6
8581 if test "$hardcode_action" = relink ||
8582 test "$inherit_rpath" = yes; then
8583 # Fast installation is not supported
8584 enable_fast_install=no
8585 elif test "$shlibpath_overrides_runpath" = yes ||
8586 test "$enable_shared" = no; then
8587 # Fast installation is not necessary
8588 enable_fast_install=needless
8596 if test "x$enable_dlopen" != xyes; then
8597 enable_dlopen=unknown
8598 enable_dlopen_self=unknown
8599 enable_dlopen_self_static=unknown
8600 else
8601 lt_cv_dlopen=no
8602 lt_cv_dlopen_libs=
8604 case $host_os in
8605 beos*)
8606 lt_cv_dlopen="load_add_on"
8607 lt_cv_dlopen_libs=
8608 lt_cv_dlopen_self=yes
8611 mingw* | pw32*)
8612 lt_cv_dlopen="LoadLibrary"
8613 lt_cv_dlopen_libs=
8616 cygwin*)
8617 lt_cv_dlopen="dlopen"
8618 lt_cv_dlopen_libs=
8621 darwin*)
8622 # if libdl is installed we need to link against it
8623 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8624 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8625 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628 ac_check_lib_save_LIBS=$LIBS
8629 LIBS="-ldl $LIBS"
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8637 /* Override any gcc2 internal prototype to avoid an error. */
8638 #ifdef __cplusplus
8639 extern "C"
8640 #endif
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8643 char dlopen ();
8645 main ()
8647 dlopen ();
8649 return 0;
8651 _ACEOF
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>conftest.er1
8655 ac_status=$?
8656 grep -v '^ *+' conftest.er1 >conftest.err
8657 rm -f conftest.er1
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest$ac_exeext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_lib_dl_dlopen=yes
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_cv_lib_dl_dlopen=no
8681 rm -f conftest.err conftest.$ac_objext \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8687 if test $ac_cv_lib_dl_dlopen = yes; then
8688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8689 else
8691 lt_cv_dlopen="dyld"
8692 lt_cv_dlopen_libs=
8693 lt_cv_dlopen_self=yes
8700 echo "$as_me:$LINENO: checking for shl_load" >&5
8701 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8702 if test "${ac_cv_func_shl_load+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h. */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8713 #define shl_load innocuous_shl_load
8715 /* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char shl_load (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8720 #ifdef __STDC__
8721 # include <limits.h>
8722 #else
8723 # include <assert.h>
8724 #endif
8726 #undef shl_load
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 #ifdef __cplusplus
8730 extern "C"
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735 char shl_load ();
8736 /* The GNU C library defines this for functions which it implements
8737 to always fail with ENOSYS. Some functions are actually named
8738 something starting with __ and the normal name is an alias. */
8739 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8740 choke me
8741 #else
8742 char (*f) () = shl_load;
8743 #endif
8744 #ifdef __cplusplus
8746 #endif
8749 main ()
8751 return f != shl_load;
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_func_shl_load=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_func_shl_load=no
8785 rm -f conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8789 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8790 if test $ac_cv_func_shl_load = yes; then
8791 lt_cv_dlopen="shl_load"
8792 else
8793 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8794 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8795 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 ac_check_lib_save_LIBS=$LIBS
8799 LIBS="-ldld $LIBS"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char shl_load ();
8815 main ()
8817 shl_load ();
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_dld_shl_load=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_lib_dld_shl_load=no
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8856 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8857 if test $ac_cv_lib_dld_shl_load = yes; then
8858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8859 else
8860 echo "$as_me:$LINENO: checking for dlopen" >&5
8861 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8862 if test "${ac_cv_func_dlopen+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8873 #define dlopen innocuous_dlopen
8875 /* System header to define __stub macros and hopefully few prototypes,
8876 which can conflict with char dlopen (); below.
8877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8878 <limits.h> exists even on freestanding compilers. */
8880 #ifdef __STDC__
8881 # include <limits.h>
8882 #else
8883 # include <assert.h>
8884 #endif
8886 #undef dlopen
8888 /* Override any gcc2 internal prototype to avoid an error. */
8889 #ifdef __cplusplus
8890 extern "C"
8892 #endif
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8895 char dlopen ();
8896 /* The GNU C library defines this for functions which it implements
8897 to always fail with ENOSYS. Some functions are actually named
8898 something starting with __ and the normal name is an alias. */
8899 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8900 choke me
8901 #else
8902 char (*f) () = dlopen;
8903 #endif
8904 #ifdef __cplusplus
8906 #endif
8909 main ()
8911 return f != dlopen;
8913 return 0;
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918 (eval $ac_link) 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_func_dlopen=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_func_dlopen=no
8945 rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8948 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8949 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8950 if test $ac_cv_func_dlopen = yes; then
8951 lt_cv_dlopen="dlopen"
8952 else
8953 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 ac_check_lib_save_LIBS=$LIBS
8959 LIBS="-ldl $LIBS"
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8967 /* Override any gcc2 internal prototype to avoid an error. */
8968 #ifdef __cplusplus
8969 extern "C"
8970 #endif
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8973 char dlopen ();
8975 main ()
8977 dlopen ();
8979 return 0;
8981 _ACEOF
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984 (eval $ac_link) 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag"
8992 || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_cv_lib_dl_dlopen=yes
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_cv_lib_dl_dlopen=no
9011 rm -f conftest.err conftest.$ac_objext \
9012 conftest$ac_exeext conftest.$ac_ext
9013 LIBS=$ac_check_lib_save_LIBS
9015 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9017 if test $ac_cv_lib_dl_dlopen = yes; then
9018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9019 else
9020 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 ac_check_lib_save_LIBS=$LIBS
9026 LIBS="-lsvld $LIBS"
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9034 /* Override any gcc2 internal prototype to avoid an error. */
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038 /* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040 char dlopen ();
9042 main ()
9044 dlopen ();
9046 return 0;
9048 _ACEOF
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag"
9059 || test ! -s conftest.err'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_lib_svld_dlopen=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_lib_svld_dlopen=no
9078 rm -f conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080 LIBS=$ac_check_lib_save_LIBS
9082 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9083 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9084 if test $ac_cv_lib_svld_dlopen = yes; then
9085 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9086 else
9087 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9088 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9089 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 ac_check_lib_save_LIBS=$LIBS
9093 LIBS="-ldld $LIBS"
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9101 /* Override any gcc2 internal prototype to avoid an error. */
9102 #ifdef __cplusplus
9103 extern "C"
9104 #endif
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9107 char dld_link ();
9109 main ()
9111 dld_link ();
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118 (eval $ac_link) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_lib_dld_dld_link=yes
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_cv_lib_dld_dld_link=no
9145 rm -f conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9149 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9151 if test $ac_cv_lib_dld_dld_link = yes; then
9152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9171 esac
9173 if test "x$lt_cv_dlopen" != xno; then
9174 enable_dlopen=yes
9175 else
9176 enable_dlopen=no
9179 case $lt_cv_dlopen in
9180 dlopen)
9181 save_CPPFLAGS="$CPPFLAGS"
9182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9184 save_LDFLAGS="$LDFLAGS"
9185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9187 save_LIBS="$LIBS"
9188 LIBS="$lt_cv_dlopen_libs $LIBS"
9190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9192 if test "${lt_cv_dlopen_self+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 if test "$cross_compiling" = yes; then :
9196 lt_cv_dlopen_self=cross
9197 else
9198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9199 lt_status=$lt_dlunknown
9200 cat > conftest.$ac_ext <<_LT_EOF
9201 #line 9201 "configure"
9202 #include "confdefs.h"
9204 #if HAVE_DLFCN_H
9205 #include <dlfcn.h>
9206 #endif
9208 #include <stdio.h>
9210 #ifdef RTLD_GLOBAL
9211 # define LT_DLGLOBAL RTLD_GLOBAL
9212 #else
9213 # ifdef DL_GLOBAL
9214 # define LT_DLGLOBAL DL_GLOBAL
9215 # else
9216 # define LT_DLGLOBAL 0
9217 # endif
9218 #endif
9220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9221 find out it does not work in some platform. */
9222 #ifndef LT_DLLAZY_OR_NOW
9223 # ifdef RTLD_LAZY
9224 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9225 # else
9226 # ifdef DL_LAZY
9227 # define LT_DLLAZY_OR_NOW DL_LAZY
9228 # else
9229 # ifdef RTLD_NOW
9230 # define LT_DLLAZY_OR_NOW RTLD_NOW
9231 # else
9232 # ifdef DL_NOW
9233 # define LT_DLLAZY_OR_NOW DL_NOW
9234 # else
9235 # define LT_DLLAZY_OR_NOW 0
9236 # endif
9237 # endif
9238 # endif
9239 # endif
9240 #endif
9242 #ifdef __cplusplus
9243 extern "C" void exit (int);
9244 #endif
9246 void fnord() { int i=42;}
9247 int main ()
9249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9250 int status = $lt_dlunknown;
9252 if (self)
9254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9256 /* dlclose (self); */
9258 else
9259 puts (dlerror ());
9261 exit (status);
9263 _LT_EOF
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>&5
9266 ac_status=$?
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9269 (./conftest; exit; ) >&5 2>/dev/null
9270 lt_status=$?
9271 case x$lt_status in
9272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9275 esac
9276 else :
9277 # compilation failed
9278 lt_cv_dlopen_self=no
9281 rm -fr conftest*
9285 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9286 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9288 if test "x$lt_cv_dlopen_self" = xyes; then
9289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9291 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9292 if test "${lt_cv_dlopen_self_static+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295 if test "$cross_compiling" = yes; then :
9296 lt_cv_dlopen_self_static=cross
9297 else
9298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9299 lt_status=$lt_dlunknown
9300 cat > conftest.$ac_ext <<_LT_EOF
9301 #line 9301 "configure"
9302 #include "confdefs.h"
9304 #if HAVE_DLFCN_H
9305 #include <dlfcn.h>
9306 #endif
9308 #include <stdio.h>
9310 #ifdef RTLD_GLOBAL
9311 # define LT_DLGLOBAL RTLD_GLOBAL
9312 #else
9313 # ifdef DL_GLOBAL
9314 # define LT_DLGLOBAL DL_GLOBAL
9315 # else
9316 # define LT_DLGLOBAL 0
9317 # endif
9318 #endif
9320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9321 find out it does not work in some platform. */
9322 #ifndef LT_DLLAZY_OR_NOW
9323 # ifdef RTLD_LAZY
9324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9325 # else
9326 # ifdef DL_LAZY
9327 # define LT_DLLAZY_OR_NOW DL_LAZY
9328 # else
9329 # ifdef RTLD_NOW
9330 # define LT_DLLAZY_OR_NOW RTLD_NOW
9331 # else
9332 # ifdef DL_NOW
9333 # define LT_DLLAZY_OR_NOW DL_NOW
9334 # else
9335 # define LT_DLLAZY_OR_NOW 0
9336 # endif
9337 # endif
9338 # endif
9339 # endif
9340 #endif
9342 #ifdef __cplusplus
9343 extern "C" void exit (int);
9344 #endif
9346 void fnord() { int i=42;}
9347 int main ()
9349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9350 int status = $lt_dlunknown;
9352 if (self)
9354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9356 /* dlclose (self); */
9358 else
9359 puts (dlerror ());
9361 exit (status);
9363 _LT_EOF
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9369 (./conftest; exit; ) >&5 2>/dev/null
9370 lt_status=$?
9371 case x$lt_status in
9372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9375 esac
9376 else :
9377 # compilation failed
9378 lt_cv_dlopen_self_static=no
9381 rm -fr conftest*
9385 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9386 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9389 CPPFLAGS="$save_CPPFLAGS"
9390 LDFLAGS="$save_LDFLAGS"
9391 LIBS="$save_LIBS"
9393 esac
9395 case $lt_cv_dlopen_self in
9396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9397 *) enable_dlopen_self=unknown ;;
9398 esac
9400 case $lt_cv_dlopen_self_static in
9401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9402 *) enable_dlopen_self_static=unknown ;;
9403 esac
9422 striplib=
9423 old_striplib=
9424 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9425 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9426 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9429 echo "$as_me:$LINENO: result: yes" >&5
9430 echo "${ECHO_T}yes" >&6
9431 else
9432 # FIXME - insert some real tests, host_os isn't really good enough
9433 case $host_os in
9434 darwin*)
9435 if test -n "$STRIP" ; then
9436 striplib="$STRIP -x"
9437 old_striplib="$STRIP -S"
9438 echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6
9440 else
9441 echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6
9446 echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6
9449 esac
9463 # Report which library types will actually be built
9464 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9465 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9466 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9467 echo "${ECHO_T}$can_build_shared" >&6
9469 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9470 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9471 test "$can_build_shared" = "no" && enable_shared=no
9473 # On AIX, shared libraries and static libraries use the same namespace, and
9474 # are all built from PIC.
9475 case $host_os in
9476 aix3*)
9477 test "$enable_shared" = yes && enable_static=no
9478 if test -n "$RANLIB"; then
9479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9480 postinstall_cmds='$RANLIB $lib'
9484 aix4* | aix5*)
9485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9486 test "$enable_shared" = yes && enable_static=no
9489 esac
9490 echo "$as_me:$LINENO: result: $enable_shared" >&5
9491 echo "${ECHO_T}$enable_shared" >&6
9493 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9494 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9495 # Make sure either enable_shared or enable_static is yes.
9496 test "$enable_shared" = yes || enable_static=yes
9497 echo "$as_me:$LINENO: result: $enable_static" >&5
9498 echo "${ECHO_T}$enable_static" >&6
9504 ac_ext=c
9505 ac_cpp='$CPP $CPPFLAGS'
9506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9510 CC="$lt_save_CC"
9524 ac_config_commands="$ac_config_commands libtool"
9529 # Only expand once:
9533 # Check whether --enable-targets or --disable-targets was given.
9534 if test "${enable_targets+set}" = set; then
9535 enableval="$enable_targets"
9536 case "${enableval}" in
9537 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9538 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9539 { (exit 1); exit 1; }; }
9541 no) enable_targets= ;;
9542 *) enable_targets=$enableval ;;
9543 esac
9545 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9546 if test "${enable_commonbfdlib+set}" = set; then
9547 enableval="$enable_commonbfdlib"
9548 case "${enableval}" in
9549 yes) commonbfdlib=true ;;
9550 no) commonbfdlib=false ;;
9551 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
9552 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
9553 { (exit 1); exit 1; }; } ;;
9554 esac
9556 ac_checking=yes
9557 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
9558 ac_checking=
9560 # Check whether --enable-checking or --disable-checking was given.
9561 if test "${enable_checking+set}" = set; then
9562 enableval="$enable_checking"
9563 case "${enableval}" in
9564 no|none) ac_checking= ;;
9565 *) ac_checking=yes ;;
9566 esac
9567 fi; if test x$ac_checking != x ; then
9569 cat >>confdefs.h <<\_ACEOF
9570 #define ENABLE_CHECKING 1
9571 _ACEOF
9575 using_cgen=no
9578 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9580 # Check whether --enable-werror or --disable-werror was given.
9581 if test "${enable_werror+set}" = set; then
9582 enableval="$enable_werror"
9583 case "${enableval}" in
9584 yes | y) ERROR_ON_WARNING="yes" ;;
9585 no | n) ERROR_ON_WARNING="no" ;;
9586 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9587 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9588 { (exit 1); exit 1; }; } ;;
9589 esac
9592 # Enable -Werror by default when using gcc
9593 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9594 ERROR_ON_WARNING=yes
9597 NO_WERROR=
9598 if test "${ERROR_ON_WARNING}" = yes ; then
9599 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9600 NO_WERROR="-Wno-error"
9603 if test "${GCC}" = yes ; then
9604 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9607 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9608 if test "${enable_build_warnings+set}" = set; then
9609 enableval="$enable_build_warnings"
9610 case "${enableval}" in
9611 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9612 no) if test "${GCC}" = yes ; then
9613 WARN_CFLAGS="-w"
9614 fi;;
9615 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9616 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9617 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9618 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9619 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9620 esac
9623 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9624 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9631 # Generate a header file
9632 ac_config_headers="$ac_config_headers config.h:config.in"
9635 # If we are on a DOS filesystem, we must use gdb.ini rather than
9636 # .gdbinit.
9637 case "${host}" in
9638 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
9639 GDBINIT="gdb.ini"
9640 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
9644 GDBINIT=".gdbinit"
9645 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
9648 esac
9651 #We need this for the host. BOUT header is in host order.
9652 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9653 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9654 if test "${ac_cv_c_bigendian+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657 # See if sys/param.h defines the BYTE_ORDER macro.
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 #include <sys/types.h>
9665 #include <sys/param.h>
9668 main ()
9670 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9671 bogus endian macros
9672 #endif
9675 return 0;
9677 _ACEOF
9678 rm -f conftest.$ac_objext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag"
9688 || test ! -s conftest.err'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; } &&
9694 { ac_try='test -s conftest.$ac_objext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 # It does; now see whether it defined to BIG_ENDIAN or not.
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 #include <sys/types.h>
9708 #include <sys/param.h>
9711 main ()
9713 #if BYTE_ORDER != BIG_ENDIAN
9714 not big endian
9715 #endif
9718 return 0;
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest.$ac_objext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 ac_cv_c_bigendian=yes
9744 else
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_cv_c_bigendian=no
9750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9751 else
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 # It does not; compile a test program.
9756 if test "$cross_compiling" = yes; then
9757 # try to guess the endianness by grepping values into an object file
9758 ac_cv_c_bigendian=unknown
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9766 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9767 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9768 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9769 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9770 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9772 main ()
9774 _ascii (); _ebcdic ();
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781 (eval $ac_compile) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9802 ac_cv_c_bigendian=yes
9804 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9805 if test "$ac_cv_c_bigendian" = unknown; then
9806 ac_cv_c_bigendian=no
9807 else
9808 # finding both strings is unlikely to happen, but who knows?
9809 ac_cv_c_bigendian=unknown
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818 else
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 main ()
9828 /* Are we little or big endian? From Harbison&Steele. */
9829 union
9831 long l;
9832 char c[sizeof (long)];
9833 } u;
9834 u.l = 1;
9835 exit (u.c[sizeof (long) - 1] == 1);
9837 _ACEOF
9838 rm -f conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_c_bigendian=no
9850 else
9851 echo "$as_me: program exited with status $ac_status" >&5
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ( exit $ac_status )
9856 ac_cv_c_bigendian=yes
9858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9864 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9865 case $ac_cv_c_bigendian in
9866 yes)
9868 cat >>confdefs.h <<\_ACEOF
9869 #define WORDS_BIGENDIAN 1
9870 _ACEOF
9875 { { echo "$as_me:$LINENO: error: unknown endianness
9876 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9877 echo "$as_me: error: unknown endianness
9878 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9879 { (exit 1); exit 1; }; } ;;
9880 esac
9883 te_file=generic
9885 # Makefile target for installing gas in $(tooldir)/bin.
9886 install_tooldir=install-exec-tooldir
9888 canon_targets=""
9889 all_targets=no
9890 if test -n "$enable_targets" ; then
9891 for t in `echo $enable_targets | sed 's/,/ /g'`; do
9892 if test $t = "all"; then
9893 all_targets=yes
9894 continue
9896 result=`$ac_config_sub $t 2>/dev/null`
9897 if test -n "$result" ; then
9898 canon_targets="$canon_targets $result"
9899 # else
9900 # # Permit "all", etc. We don't support it yet though.
9901 # canon_targets="$canon_targets $t"
9903 done
9904 _gas_uniq_list="$canon_targets"
9905 _gas_uniq_newlist=""
9906 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
9907 case $_gas_uniq_i in
9908 _gas_uniq_dummy) ;;
9909 *) case " $_gas_uniq_newlist " in
9910 *" $_gas_uniq_i "*) ;;
9911 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
9912 esac ;;
9913 esac
9914 done
9915 canon_targets=$_gas_uniq_newlist
9919 emulations=""
9921 for this_target in $target $canon_targets ; do
9923 targ=${this_target}
9924 . ${srcdir}/configure.tgt
9926 case ${target_cpu} in
9927 crisv32)
9929 cat >>confdefs.h <<_ACEOF
9930 #define DEFAULT_CRIS_ARCH $arch
9931 _ACEOF
9934 esac
9936 if test ${this_target} = $target ; then
9937 target_cpu_type=${cpu_type}
9938 elif test ${target_cpu_type} != ${cpu_type} ; then
9939 continue
9942 generic_target=${cpu_type}-${target_vendor}-${target_os}
9943 case ${generic_target} in
9944 i386-*-sco3.2v5*)
9945 if test ${this_target} = $target; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define SCO_ELF 1
9949 _ACEOF
9954 i386-*-msdosdjgpp* \
9955 | i386-*-go32* \
9956 | i386-go32-rtems*)
9958 cat >>confdefs.h <<\_ACEOF
9959 #define STRICTCOFF 1
9960 _ACEOF
9964 i860-*-*)
9965 { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
9966 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
9969 mips-sony-bsd*)
9971 mips-*-bsd*)
9972 { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
9973 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
9974 { (exit 1); exit 1; }; }
9977 ppc-*-aix5.*)
9979 cat >>confdefs.h <<\_ACEOF
9980 #define AIX_WEAK_SUPPORT 1
9981 _ACEOF
9984 ppc-*-linux-*)
9985 case "$endian" in
9986 big) ;;
9987 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
9988 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
9989 { (exit 1); exit 1; }; } ;;
9990 esac
9992 ppc-*-solaris*)
9993 if test ${this_target} = $target; then
9995 cat >>confdefs.h <<\_ACEOF
9996 #define TARGET_SOLARIS_COMMENT 1
9997 _ACEOF
10000 if test x${endian} = xbig; then
10001 { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
10002 echo "$as_me: error: Solaris must be configured little endian" >&2;}
10003 { (exit 1); exit 1; }; }
10007 sh*-*-symbianelf*)
10009 cat >>confdefs.h <<\_ACEOF
10010 #define TARGET_SYMBIAN 1
10011 _ACEOF
10014 esac
10016 if test ${this_target} = $target ; then
10017 endian_def=
10018 if test x${endian} = xbig; then
10019 endian_def=1
10020 elif test x${endian} = xlittle; then
10021 endian_def=0
10023 if test x${endian_def} != x; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define TARGET_BYTES_BIG_ENDIAN $endian_def
10027 _ACEOF
10032 # Other random stuff.
10034 case ${cpu_type} in
10035 mips)
10036 # Set mips_cpu to the name of the default CPU.
10037 case ${target_cpu} in
10038 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
10039 mips_cpu=from-abi
10041 mipsisa32 | mipsisa32el)
10042 mips_cpu=mips32
10044 mipsisa32r2 | mipsisa32r2el)
10045 mips_cpu=mips32r2
10047 mipsisa64 | mipsisa64el)
10048 mips_cpu=mips64
10050 mipsisa64r2 | mipsisa64r2el)
10051 mips_cpu=mips64r2
10053 mipstx39 | mipstx39el)
10054 mips_cpu=r3900
10056 mips64vr | mips64vrel)
10057 mips_cpu=vr4100
10059 mipsisa32r2* | mipsisa64r2*)
10060 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
10062 mips64* | mipsisa64* | mipsisa32*)
10063 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
10066 { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
10067 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
10068 { (exit 1); exit 1; }; }
10070 esac
10071 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
10072 # binaries. It's a GNU extension that some OSes don't understand.
10073 # The value only matters on ELF targets.
10074 case ${target} in
10075 *-*-irix*)
10076 use_e_mips_abi_o32=0
10079 use_e_mips_abi_o32=1
10081 esac
10082 # Decide whether to generate 32-bit or 64-bit code by default.
10083 # Used to resolve -march=from-abi when an embedded ABI is selected.
10084 case ${target} in
10085 mips64*-*-* | mipsisa64*-*-*)
10086 mips_default_64bit=1
10089 mips_default_64bit=0
10091 esac
10092 # Decide which ABI to target by default.
10093 case ${target} in
10094 mips64*-linux* | mips-sgi-irix6*)
10095 mips_default_abi=N32_ABI
10097 mips*-linux*)
10098 mips_default_abi=O32_ABI
10100 mips64*-openbsd*)
10101 mips_default_abi=N64_ABI
10104 mips_default_abi=NO_ABI
10106 esac
10108 cat >>confdefs.h <<_ACEOF
10109 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
10110 _ACEOF
10113 cat >>confdefs.h <<_ACEOF
10114 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
10115 _ACEOF
10118 cat >>confdefs.h <<_ACEOF
10119 #define MIPS_DEFAULT_64BIT $mips_default_64bit
10120 _ACEOF
10123 cat >>confdefs.h <<_ACEOF
10124 #define MIPS_DEFAULT_ABI $mips_default_abi
10125 _ACEOF
10128 esac
10130 # Do we need the opcodes library?
10131 case ${cpu_type} in
10132 vax | tic30)
10136 need_opcodes=yes
10138 case "${enable_shared}" in
10139 yes) shared_opcodes=true ;;
10140 *opcodes*) shared_opcodes=true ;;
10141 *) shared_opcodes=false ;;
10142 esac
10144 esac
10146 # Any other special object files needed ?
10147 case ${cpu_type} in
10149 bfin)
10150 echo ${extra_objects} | grep -s "bfin-parse.o"
10151 if test $? -ne 0 ; then
10152 extra_objects="$extra_objects bfin-parse.o"
10155 echo ${extra_objects} | grep -s "bfin-lex.o"
10156 if test $? -ne 0 ; then
10157 extra_objects="$extra_objects bfin-lex.o"
10161 fr30 | ip2k | iq2000 | m32r | openrisc)
10162 using_cgen=yes
10165 m32c)
10166 using_cgen=yes
10168 frv)
10169 using_cgen=yes
10171 m68k)
10172 case ${extra_objects} in
10173 *m68k-parse.o*) ;;
10174 *) extra_objects="$extra_objects m68k-parse.o" ;;
10175 esac
10178 mep)
10179 using_cgen=yes
10182 mips)
10183 echo ${extra_objects} | grep -s "itbl-parse.o"
10184 if test $? -ne 0 ; then
10185 extra_objects="$extra_objects itbl-parse.o"
10188 echo ${extra_objects} | grep -s "itbl-lex.o"
10189 if test $? -ne 0 ; then
10190 extra_objects="$extra_objects itbl-lex.o"
10193 echo ${extra_objects} | grep -s "itbl-ops.o"
10194 if test $? -ne 0 ; then
10195 extra_objects="$extra_objects itbl-ops.o"
10200 using_cgen=yes
10203 i386 | s390 | sparc)
10204 if test $this_target = $target ; then
10206 cat >>confdefs.h <<_ACEOF
10207 #define DEFAULT_ARCH "${arch}"
10208 _ACEOF
10213 xstormy16)
10214 using_cgen=yes
10217 xc16x)
10218 using_cgen=yes
10221 xtensa)
10222 echo ${extra_objects} | grep -s "xtensa-relax.o"
10223 if test $? -ne 0 ; then
10224 extra_objects="$extra_objects xtensa-relax.o"
10230 esac
10232 if test $using_cgen = yes ; then
10233 case "x${extra_objects}" in
10234 *cgen.o*) ;;
10235 *) extra_objects="$extra_objects cgen.o" ;;
10236 esac
10239 # See if we really can support this configuration with the emulation code.
10241 if test $this_target = $target ; then
10242 obj_format=$fmt
10243 te_file=$em
10246 # From target name and format, produce a list of supported emulations.
10248 case ${generic_target}-${fmt} in
10249 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10250 mips*-*-linux*-*) case "$endian" in
10251 big) emulation="mipsbelf mipslelf mipself" ;;
10252 *) emulation="mipslelf mipsbelf mipself" ;;
10253 esac ;;
10254 mips-*-lnews*-ecoff) ;;
10255 mips-*-*-ecoff) case "$endian" in
10256 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
10257 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
10258 esac ;;
10259 mips-*-*-elf) case "$endian" in
10260 big) emulation="mipsbelf mipslelf mipself" ;;
10261 *) emulation="mipslelf mipsbelf mipself" ;;
10262 esac ;;
10263 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
10264 # i386-pc-pe-coff != i386-pc-coff.
10265 i386-*-pe-coff) ;;
10266 # Uncommenting the next line will turn on support for i386 AOUT
10267 # for the default linux configuration
10268 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
10270 i386-*-aout) emulation="i386aout" ;;
10271 i386-*-coff) emulation="i386coff" ;;
10272 i386-*-elf) emulation="i386elf" ;;
10274 # Always all formats. The first stated emulation becomes the default.
10275 cris-*-*aout*) emulation="crisaout criself" ;;
10276 cris-*-*) emulation="criself crisaout" ;;
10277 esac
10279 emulations="$emulations $emulation"
10281 done
10283 # Turn on all targets if possible
10284 if test ${all_targets} = "yes"; then
10285 case ${target_cpu_type} in
10286 i386)
10287 case ${obj_format} in
10288 aout)
10289 emulations="$emulations i386coff i386elf"
10291 coff)
10292 emulations="$emulations i386aout i386elf"
10294 elf)
10295 emulations="$emulations i386aout i386coff"
10297 esac
10299 x86_64)
10300 case ${obj_format} in
10301 aout)
10302 emulations="$emulations i386coff i386elf"
10304 coff)
10305 emulations="$emulations i386aout i386elf"
10307 elf)
10308 emulations="$emulations i386aout i386coff"
10310 esac
10312 esac
10315 # Assign floating point type. Most processors with FP support
10316 # IEEE FP. On those that don't support FP at all, usually IEEE
10317 # is emulated.
10318 case ${target_cpu} in
10319 vax | pdp11 ) atof=vax ;;
10320 *) atof=ieee ;;
10321 esac
10323 case "${obj_format}" in
10324 "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
10325 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
10326 { (exit 1); exit 1; }; } ;;
10327 esac
10329 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
10330 cgen_cpu_prefix=""
10331 if test $using_cgen = yes ; then
10332 case ${target_cpu} in
10333 *) cgen_cpu_prefix=${target_cpu} ;;
10334 esac
10337 cat >>confdefs.h <<\_ACEOF
10338 #define USING_CGEN 1
10339 _ACEOF
10344 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
10345 { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
10346 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
10347 { (exit 1); exit 1; }; }
10350 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
10351 { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
10352 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
10353 { (exit 1); exit 1; }; }
10356 # Some COFF configurations want these random other flags set.
10357 case ${obj_format} in
10358 coff)
10359 case ${target_cpu_type} in
10360 i386)
10361 cat >>confdefs.h <<\_ACEOF
10362 #define I386COFF 1
10363 _ACEOF
10365 m68k)
10366 cat >>confdefs.h <<\_ACEOF
10367 #define M68KCOFF 1
10368 _ACEOF
10370 m88k)
10371 cat >>confdefs.h <<\_ACEOF
10372 #define M88KCOFF 1
10373 _ACEOF
10375 x86_64)
10376 cat >>confdefs.h <<\_ACEOF
10377 #define I386COFF 1
10378 _ACEOF
10380 esac
10382 esac
10384 # Getting this done right is going to be a bitch. Each configuration specified
10385 # with --enable-targets=... should be checked for environment, format, cpu
10386 # setting.
10388 # For each configuration, the necessary object file support code must be linked
10389 # in. This might be only one, it might be up to four. The necessary emulation
10390 # code needs to be provided, too.
10392 # And then there's "--enable-targets=all"....
10394 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
10396 formats="${obj_format}"
10397 emfiles=""
10398 EMULATIONS=""
10399 _gas_uniq_list="$emulations"
10400 _gas_uniq_newlist=""
10401 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10402 case $_gas_uniq_i in
10403 _gas_uniq_dummy) ;;
10404 *) case " $_gas_uniq_newlist " in
10405 *" $_gas_uniq_i "*) ;;
10406 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10407 esac ;;
10408 esac
10409 done
10410 emulations=$_gas_uniq_newlist
10412 for em in . $emulations ; do
10413 case $em in
10414 .) continue ;;
10415 mipsbelf | mipslelf | mipself)
10416 fmt=elf file=mipself ;;
10417 mipsbecoff | mipslecoff | mipsecoff)
10418 fmt=ecoff file=mipsecoff ;;
10419 *coff)
10420 fmt=coff file=$em ;;
10421 *aout)
10422 fmt=aout file=$em ;;
10423 *elf)
10424 fmt=elf file=$em ;;
10425 esac
10426 formats="$formats $fmt"
10427 emfiles="$emfiles e-$file.o"
10428 EMULATIONS="$EMULATIONS &$em,"
10429 done
10430 _gas_uniq_list="$formats"
10431 _gas_uniq_newlist=""
10432 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10433 case $_gas_uniq_i in
10434 _gas_uniq_dummy) ;;
10435 *) case " $_gas_uniq_newlist " in
10436 *" $_gas_uniq_i "*) ;;
10437 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10438 esac ;;
10439 esac
10440 done
10441 formats=$_gas_uniq_newlist
10443 _gas_uniq_list="$emfiles"
10444 _gas_uniq_newlist=""
10445 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10446 case $_gas_uniq_i in
10447 _gas_uniq_dummy) ;;
10448 *) case " $_gas_uniq_newlist " in
10449 *" $_gas_uniq_i "*) ;;
10450 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10451 esac ;;
10452 esac
10453 done
10454 emfiles=$_gas_uniq_newlist
10456 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
10457 for fmt in $formats ; do
10458 case $fmt in
10459 aout)
10460 cat >>confdefs.h <<\_ACEOF
10461 #define OBJ_MAYBE_AOUT 1
10462 _ACEOF
10464 bout)
10465 cat >>confdefs.h <<\_ACEOF
10466 #define OBJ_MAYBE_BOUT 1
10467 _ACEOF
10469 coff)
10470 cat >>confdefs.h <<\_ACEOF
10471 #define OBJ_MAYBE_COFF 1
10472 _ACEOF
10474 ecoff)
10475 cat >>confdefs.h <<\_ACEOF
10476 #define OBJ_MAYBE_ECOFF 1
10477 _ACEOF
10479 elf)
10480 cat >>confdefs.h <<\_ACEOF
10481 #define OBJ_MAYBE_ELF 1
10482 _ACEOF
10484 generic)
10485 cat >>confdefs.h <<\_ACEOF
10486 #define OBJ_MAYBE_GENERIC 1
10487 _ACEOF
10489 som)
10490 cat >>confdefs.h <<\_ACEOF
10491 #define OBJ_MAYBE_SOM 1
10492 _ACEOF
10494 esac
10495 extra_objects="$extra_objects obj-$fmt.o"
10496 done
10497 obj_format=multi
10499 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
10500 DEFAULT_EMULATION=`set . $emulations ; echo $2`
10501 # e-mips* has more than one emulation per file, e-i386* has just one at the
10502 # moment. If only one emulation is specified, then don't define
10503 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
10504 case "${obj_format}${emfiles}" in
10505 multi* | *mips*)
10506 extra_objects="$extra_objects $emfiles"
10508 cat >>confdefs.h <<\_ACEOF
10509 #define USE_EMULATIONS 1
10510 _ACEOF
10512 esac
10516 cat >>confdefs.h <<_ACEOF
10517 #define EMULATIONS $EMULATIONS
10518 _ACEOF
10521 cat >>confdefs.h <<_ACEOF
10522 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
10523 _ACEOF
10526 reject_dev_configs=yes
10528 case ${reject_dev_configs}-${dev} in
10529 yes-yes) # Oops.
10530 { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
10531 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
10532 { (exit 1); exit 1; }; }
10534 esac
10542 # do we need the opcodes library?
10543 case "${need_opcodes}" in
10544 yes)
10545 OPCODES_LIB=../opcodes/libopcodes.la
10547 esac
10552 cat >>confdefs.h <<_ACEOF
10553 #define TARGET_ALIAS "${target_alias}"
10554 _ACEOF
10557 cat >>confdefs.h <<_ACEOF
10558 #define TARGET_CANONICAL "${target}"
10559 _ACEOF
10562 cat >>confdefs.h <<_ACEOF
10563 #define TARGET_CPU "${target_cpu}"
10564 _ACEOF
10567 cat >>confdefs.h <<_ACEOF
10568 #define TARGET_VENDOR "${target_vendor}"
10569 _ACEOF
10572 cat >>confdefs.h <<_ACEOF
10573 #define TARGET_OS "${target_os}"
10574 _ACEOF
10577 ac_ext=c
10578 ac_cpp='$CPP $CPPFLAGS'
10579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10582 if test -n "$ac_tool_prefix"; then
10583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10585 echo "$as_me:$LINENO: checking for $ac_word" >&5
10586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10587 if test "${ac_cv_prog_CC+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 if test -n "$CC"; then
10591 ac_cv_prog_CC="$CC" # Let the user override the test.
10592 else
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10604 done
10605 done
10609 CC=$ac_cv_prog_CC
10610 if test -n "$CC"; then
10611 echo "$as_me:$LINENO: result: $CC" >&5
10612 echo "${ECHO_T}$CC" >&6
10613 else
10614 echo "$as_me:$LINENO: result: no" >&5
10615 echo "${ECHO_T}no" >&6
10619 if test -z "$ac_cv_prog_CC"; then
10620 ac_ct_CC=$CC
10621 # Extract the first word of "gcc", so it can be a program name with args.
10622 set dummy gcc; ac_word=$2
10623 echo "$as_me:$LINENO: checking for $ac_word" >&5
10624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 if test -n "$ac_ct_CC"; then
10629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10630 else
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_prog_ac_ct_CC="gcc"
10639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10642 done
10643 done
10647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10648 if test -n "$ac_ct_CC"; then
10649 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10650 echo "${ECHO_T}$ac_ct_CC" >&6
10651 else
10652 echo "$as_me:$LINENO: result: no" >&5
10653 echo "${ECHO_T}no" >&6
10656 CC=$ac_ct_CC
10657 else
10658 CC="$ac_cv_prog_CC"
10661 if test -z "$CC"; then
10662 if test -n "$ac_tool_prefix"; then
10663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10664 set dummy ${ac_tool_prefix}cc; ac_word=$2
10665 echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10667 if test "${ac_cv_prog_CC+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 if test -n "$CC"; then
10671 ac_cv_prog_CC="$CC" # Let the user override the test.
10672 else
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680 ac_cv_prog_CC="${ac_tool_prefix}cc"
10681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10689 CC=$ac_cv_prog_CC
10690 if test -n "$CC"; then
10691 echo "$as_me:$LINENO: result: $CC" >&5
10692 echo "${ECHO_T}$CC" >&6
10693 else
10694 echo "$as_me:$LINENO: result: no" >&5
10695 echo "${ECHO_T}no" >&6
10699 if test -z "$ac_cv_prog_CC"; then
10700 ac_ct_CC=$CC
10701 # Extract the first word of "cc", so it can be a program name with args.
10702 set dummy cc; ac_word=$2
10703 echo "$as_me:$LINENO: checking for $ac_word" >&5
10704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708 if test -n "$ac_ct_CC"; then
10709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10710 else
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10718 ac_cv_prog_ac_ct_CC="cc"
10719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10722 done
10723 done
10727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10728 if test -n "$ac_ct_CC"; then
10729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10730 echo "${ECHO_T}$ac_ct_CC" >&6
10731 else
10732 echo "$as_me:$LINENO: result: no" >&5
10733 echo "${ECHO_T}no" >&6
10736 CC=$ac_ct_CC
10737 else
10738 CC="$ac_cv_prog_CC"
10742 if test -z "$CC"; then
10743 # Extract the first word of "cc", so it can be a program name with args.
10744 set dummy cc; ac_word=$2
10745 echo "$as_me:$LINENO: checking for $ac_word" >&5
10746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10747 if test "${ac_cv_prog_CC+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750 if test -n "$CC"; then
10751 ac_cv_prog_CC="$CC" # Let the user override the test.
10752 else
10753 ac_prog_rejected=no
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10762 ac_prog_rejected=yes
10763 continue
10765 ac_cv_prog_CC="cc"
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10772 if test $ac_prog_rejected = yes; then
10773 # We found a bogon in the path, so make sure we never use it.
10774 set dummy $ac_cv_prog_CC
10775 shift
10776 if test $# != 0; then
10777 # We chose a different compiler from the bogus one.
10778 # However, it has the same basename, so the bogon will be chosen
10779 # first if we set CC to just the basename; use the full file name.
10780 shift
10781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10786 CC=$ac_cv_prog_CC
10787 if test -n "$CC"; then
10788 echo "$as_me:$LINENO: result: $CC" >&5
10789 echo "${ECHO_T}$CC" >&6
10790 else
10791 echo "$as_me:$LINENO: result: no" >&5
10792 echo "${ECHO_T}no" >&6
10796 if test -z "$CC"; then
10797 if test -n "$ac_tool_prefix"; then
10798 for ac_prog in cl
10800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10802 echo "$as_me:$LINENO: checking for $ac_word" >&5
10803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10804 if test "${ac_cv_prog_CC+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 if test -n "$CC"; then
10808 ac_cv_prog_CC="$CC" # Let the user override the test.
10809 else
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10826 CC=$ac_cv_prog_CC
10827 if test -n "$CC"; then
10828 echo "$as_me:$LINENO: result: $CC" >&5
10829 echo "${ECHO_T}$CC" >&6
10830 else
10831 echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6
10835 test -n "$CC" && break
10836 done
10838 if test -z "$CC"; then
10839 ac_ct_CC=$CC
10840 for ac_prog in cl
10842 # Extract the first word of "$ac_prog", so it can be a program name with args.
10843 set dummy $ac_prog; ac_word=$2
10844 echo "$as_me:$LINENO: checking for $ac_word" >&5
10845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 if test -n "$ac_ct_CC"; then
10850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_prog_ac_ct_CC="$ac_prog"
10860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10863 done
10864 done
10868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10869 if test -n "$ac_ct_CC"; then
10870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10871 echo "${ECHO_T}$ac_ct_CC" >&6
10872 else
10873 echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6
10877 test -n "$ac_ct_CC" && break
10878 done
10880 CC=$ac_ct_CC
10886 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10887 See \`config.log' for more details." >&5
10888 echo "$as_me: error: no acceptable C compiler found in \$PATH
10889 See \`config.log' for more details." >&2;}
10890 { (exit 1); exit 1; }; }
10892 # Provide some information about the compiler.
10893 echo "$as_me:$LINENO:" \
10894 "checking for C compiler version" >&5
10895 ac_compiler=`set X $ac_compile; echo $2`
10896 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10897 (eval $ac_compiler --version </dev/null >&5) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }
10901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10902 (eval $ac_compiler -v </dev/null >&5) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }
10906 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10907 (eval $ac_compiler -V </dev/null >&5) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }
10912 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10913 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10914 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 else
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h. */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10925 main ()
10927 #ifndef __GNUC__
10928 choke me
10929 #endif
10932 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_compiler_gnu=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ac_compiler_gnu=no
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10968 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10970 GCC=`test $ac_compiler_gnu = yes && echo yes`
10971 ac_test_CFLAGS=${CFLAGS+set}
10972 ac_save_CFLAGS=$CFLAGS
10973 CFLAGS="-g"
10974 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10975 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10976 if test "${ac_cv_prog_cc_g+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10987 main ()
10991 return 0;
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996 (eval $ac_compile) 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_c_werror_flag"
11004 || test ! -s conftest.err'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest.$ac_objext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_prog_cc_g=yes
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_cv_prog_cc_g=no
11023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11025 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11027 if test "$ac_test_CFLAGS" = set; then
11028 CFLAGS=$ac_save_CFLAGS
11029 elif test $ac_cv_prog_cc_g = yes; then
11030 if test "$GCC" = yes; then
11031 CFLAGS="-g -O2"
11032 else
11033 CFLAGS="-g"
11035 else
11036 if test "$GCC" = yes; then
11037 CFLAGS="-O2"
11038 else
11039 CFLAGS=
11042 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11043 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11044 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 ac_cv_prog_cc_stdc=no
11048 ac_save_CC=$CC
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <stdarg.h>
11056 #include <stdio.h>
11057 #include <sys/types.h>
11058 #include <sys/stat.h>
11059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11060 struct buf { int x; };
11061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11062 static char *e (p, i)
11063 char **p;
11064 int i;
11066 return p[i];
11068 static char *f (char * (*g) (char **, int), char **p, ...)
11070 char *s;
11071 va_list v;
11072 va_start (v,p);
11073 s = g (p, va_arg (v,int));
11074 va_end (v);
11075 return s;
11078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11079 function prototypes and stuff, but not '\xHH' hex character constants.
11080 These don't provoke an error unfortunately, instead are silently treated
11081 as 'x'. The following induces an error, until -std1 is added to get
11082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11083 array size at least. It's necessary to write '\x00'==0 to get something
11084 that's true only with -std1. */
11085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11087 int test (int i, double x);
11088 struct s1 {int (*f) (int a);};
11089 struct s2 {int (*f) (double a);};
11090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11091 int argc;
11092 char **argv;
11094 main ()
11096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11098 return 0;
11100 _ACEOF
11101 # Don't try gcc -ansi; that turns off useful extensions and
11102 # breaks some systems' header files.
11103 # AIX -qlanglvl=ansi
11104 # Ultrix and OSF/1 -std1
11105 # HP-UX 10.20 and later -Ae
11106 # HP-UX older versions -Aa -D_HPUX_SOURCE
11107 # SVR4 -Xc -D__EXTENSIONS__
11108 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11110 CC="$ac_save_CC $ac_arg"
11111 rm -f conftest.$ac_objext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag"
11121 || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_prog_cc_stdc=$ac_arg
11134 break
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11140 rm -f conftest.err conftest.$ac_objext
11141 done
11142 rm -f conftest.$ac_ext conftest.$ac_objext
11143 CC=$ac_save_CC
11147 case "x$ac_cv_prog_cc_stdc" in
11148 x|xno)
11149 echo "$as_me:$LINENO: result: none needed" >&5
11150 echo "${ECHO_T}none needed" >&6 ;;
11152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11153 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11154 CC="$CC $ac_cv_prog_cc_stdc" ;;
11155 esac
11157 # Some people use a C++ compiler to compile C. Since we use `exit',
11158 # in C++ we need to declare it. In case someone uses the same compiler
11159 # for both compiling C and C++ we need to have the C++ compiler decide
11160 # the declaration of exit, since it's the most demanding environment.
11161 cat >conftest.$ac_ext <<_ACEOF
11162 #ifndef __cplusplus
11163 choke me
11164 #endif
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168 (eval $ac_compile) 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_c_werror_flag"
11176 || test ! -s conftest.err'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; } &&
11182 { ac_try='test -s conftest.$ac_objext'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 for ac_declaration in \
11189 '' \
11190 'extern "C" void std::exit (int) throw (); using std::exit;' \
11191 'extern "C" void std::exit (int); using std::exit;' \
11192 'extern "C" void exit (int) throw ();' \
11193 'extern "C" void exit (int);' \
11194 'void exit (int);'
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 $ac_declaration
11203 #include <stdlib.h>
11205 main ()
11207 exit (42);
11209 return 0;
11211 _ACEOF
11212 rm -f conftest.$ac_objext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214 (eval $ac_compile) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag"
11222 || test ! -s conftest.err'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; } &&
11228 { ac_try='test -s conftest.$ac_objext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 continue
11241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h. */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_declaration
11250 main ()
11252 exit (42);
11254 return 0;
11256 _ACEOF
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 break
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11286 done
11287 rm -f conftest*
11288 if test -n "$ac_declaration"; then
11289 echo '#ifdef __cplusplus' >>confdefs.h
11290 echo $ac_declaration >>confdefs.h
11291 echo '#endif' >>confdefs.h
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11300 ac_ext=c
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11307 for ac_prog in 'bison -y' byacc
11309 # Extract the first word of "$ac_prog", so it can be a program name with args.
11310 set dummy $ac_prog; ac_word=$2
11311 echo "$as_me:$LINENO: checking for $ac_word" >&5
11312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11313 if test "${ac_cv_prog_YACC+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316 if test -n "$YACC"; then
11317 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11318 else
11319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326 ac_cv_prog_YACC="$ac_prog"
11327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11330 done
11331 done
11335 YACC=$ac_cv_prog_YACC
11336 if test -n "$YACC"; then
11337 echo "$as_me:$LINENO: result: $YACC" >&5
11338 echo "${ECHO_T}$YACC" >&6
11339 else
11340 echo "$as_me:$LINENO: result: no" >&5
11341 echo "${ECHO_T}no" >&6
11344 test -n "$YACC" && break
11345 done
11346 test -n "$YACC" || YACC="yacc"
11348 for ac_prog in flex lex
11350 # Extract the first word of "$ac_prog", so it can be a program name with args.
11351 set dummy $ac_prog; ac_word=$2
11352 echo "$as_me:$LINENO: checking for $ac_word" >&5
11353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11354 if test "${ac_cv_prog_LEX+set}" = set; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else
11357 if test -n "$LEX"; then
11358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11367 ac_cv_prog_LEX="$ac_prog"
11368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11369 break 2
11371 done
11372 done
11376 LEX=$ac_cv_prog_LEX
11377 if test -n "$LEX"; then
11378 echo "$as_me:$LINENO: result: $LEX" >&5
11379 echo "${ECHO_T}$LEX" >&6
11380 else
11381 echo "$as_me:$LINENO: result: no" >&5
11382 echo "${ECHO_T}no" >&6
11385 test -n "$LEX" && break
11386 done
11387 test -n "$LEX" || LEX=":"
11389 if test -z "$LEXLIB"
11390 then
11391 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11392 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11393 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-lfl $LIBS"
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 /* Override any gcc2 internal prototype to avoid an error. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 /* We use char because int might match the return type of a gcc2
11410 builtin and then its argument prototype would still apply. */
11411 char yywrap ();
11413 main ()
11415 yywrap ();
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422 (eval $ac_link) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_lib_fl_yywrap=yes
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 ac_cv_lib_fl_yywrap=no
11449 rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11453 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11454 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11455 if test $ac_cv_lib_fl_yywrap = yes; then
11456 LEXLIB="-lfl"
11457 else
11458 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11459 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11460 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ll $LIBS"
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11472 /* Override any gcc2 internal prototype to avoid an error. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 /* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11478 char yywrap ();
11480 main ()
11482 yywrap ();
11484 return 0;
11486 _ACEOF
11487 rm -f conftest.$ac_objext conftest$ac_exeext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489 (eval $ac_link) 2>conftest.er1
11490 ac_status=$?
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_lib_l_yywrap=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_lib_l_yywrap=no
11516 rm -f conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_lib_save_LIBS
11520 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11521 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11522 if test $ac_cv_lib_l_yywrap = yes; then
11523 LEXLIB="-ll"
11530 if test "x$LEX" != "x:"; then
11531 echo "$as_me:$LINENO: checking lex output file root" >&5
11532 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11533 if test "${ac_cv_prog_lex_root+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 # The minimal lex program is just a single line: %%. But some broken lexes
11537 # (Solaris, I think it was) want two %% lines, so accommodate them.
11538 cat >conftest.l <<_ACEOF
11541 _ACEOF
11542 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11543 (eval $LEX conftest.l) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }
11547 if test -f lex.yy.c; then
11548 ac_cv_prog_lex_root=lex.yy
11549 elif test -f lexyy.c; then
11550 ac_cv_prog_lex_root=lexyy
11551 else
11552 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11553 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11554 { (exit 1); exit 1; }; }
11557 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11558 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11559 rm -f conftest.l
11560 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11562 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11563 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11564 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 # POSIX says lex can declare yytext either as a pointer or an array; the
11568 # default is implementation-dependent. Figure out which it is, since
11569 # not all implementations provide the %pointer and %array declarations.
11570 ac_cv_prog_lex_yytext_pointer=no
11571 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11572 ac_save_LIBS=$LIBS
11573 LIBS="$LIBS $LEXLIB"
11574 cat >conftest.$ac_ext <<_ACEOF
11575 `cat $LEX_OUTPUT_ROOT.c`
11576 _ACEOF
11577 rm -f conftest.$ac_objext conftest$ac_exeext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11579 (eval $ac_link) 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag"
11587 || test ! -s conftest.err'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_prog_lex_yytext_pointer=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11605 rm -f conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_save_LIBS
11608 rm -f "${LEX_OUTPUT_ROOT}.c"
11611 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11612 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11613 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11615 cat >>confdefs.h <<\_ACEOF
11616 #define YYTEXT_POINTER 1
11617 _ACEOF
11622 if test "$LEX" = :; then
11623 LEX=${am_missing_run}flex
11626 ALL_LINGUAS="fr tr es rw"
11627 # If we haven't got the data from the intl directory,
11628 # assume NLS is disabled.
11629 USE_NLS=no
11630 LIBINTL=
11631 LIBINTL_DEP=
11632 INCINTL=
11633 XGETTEXT=
11634 GMSGFMT=
11635 POSUB=
11637 if test -f ../intl/config.intl; then
11638 . ../intl/config.intl
11640 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11641 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11642 if test x"$USE_NLS" != xyes; then
11643 echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6
11645 else
11646 echo "$as_me:$LINENO: result: yes" >&5
11647 echo "${ECHO_T}yes" >&6
11649 cat >>confdefs.h <<\_ACEOF
11650 #define ENABLE_NLS 1
11651 _ACEOF
11654 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11655 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11656 # Look for .po and .gmo files in the source directory.
11657 CATALOGS=
11658 XLINGUAS=
11659 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11660 # If there aren't any .gmo files the shell will give us the
11661 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11662 # weeded out.
11663 case "$cat" in *\**)
11664 continue;;
11665 esac
11666 # The quadruple backslash is collapsed to a double backslash
11667 # by the backticks, then collapsed again by the double quotes,
11668 # leaving us with one backslash in the sed expression (right
11669 # before the dot that mustn't act as a wildcard).
11670 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11671 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11672 # The user is allowed to set LINGUAS to a list of languages to
11673 # install catalogs for. If it's empty that means "all of them."
11674 if test "x$LINGUAS" = x; then
11675 CATALOGS="$CATALOGS $cat"
11676 XLINGUAS="$XLINGUAS $lang"
11677 else
11678 case "$LINGUAS" in *$lang*)
11679 CATALOGS="$CATALOGS $cat"
11680 XLINGUAS="$XLINGUAS $lang"
11682 esac
11684 done
11685 LINGUAS="$XLINGUAS"
11686 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11687 echo "${ECHO_T}$LINGUAS" >&6
11690 DATADIRNAME=share
11692 INSTOBJEXT=.mo
11694 GENCAT=gencat
11696 CATOBJEXT=.gmo
11700 MKINSTALLDIRS=
11701 if test -n "$ac_aux_dir"; then
11702 case "$ac_aux_dir" in
11703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11705 esac
11707 if test -z "$MKINSTALLDIRS"; then
11708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11713 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11714 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11715 # Check whether --enable-nls or --disable-nls was given.
11716 if test "${enable_nls+set}" = set; then
11717 enableval="$enable_nls"
11718 USE_NLS=$enableval
11719 else
11720 USE_NLS=yes
11722 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11723 echo "${ECHO_T}$USE_NLS" >&6
11730 # Prepare PATH_SEPARATOR.
11731 # The user is always right.
11732 if test "${PATH_SEPARATOR+set}" != set; then
11733 echo "#! /bin/sh" >conf$$.sh
11734 echo "exit 0" >>conf$$.sh
11735 chmod +x conf$$.sh
11736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11737 PATH_SEPARATOR=';'
11738 else
11739 PATH_SEPARATOR=:
11741 rm -f conf$$.sh
11744 # Find out how to test for executable files. Don't use a zero-byte file,
11745 # as systems may use methods other than mode bits to determine executability.
11746 cat >conf$$.file <<_ASEOF
11747 #! /bin/sh
11748 exit 0
11749 _ASEOF
11750 chmod +x conf$$.file
11751 if test -x conf$$.file >/dev/null 2>&1; then
11752 ac_executable_p="test -x"
11753 else
11754 ac_executable_p="test -f"
11756 rm -f conf$$.file
11758 # Extract the first word of "msgfmt", so it can be a program name with args.
11759 set dummy msgfmt; ac_word=$2
11760 echo "$as_me:$LINENO: checking for $ac_word" >&5
11761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11762 if test "${ac_cv_path_MSGFMT+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 case "$MSGFMT" in
11766 [\\/]* | ?:[\\/]*)
11767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11771 for ac_dir in $PATH; do
11772 IFS="$ac_save_IFS"
11773 test -z "$ac_dir" && ac_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11779 break 2
11782 done
11783 done
11784 IFS="$ac_save_IFS"
11785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11787 esac
11789 MSGFMT="$ac_cv_path_MSGFMT"
11790 if test "$MSGFMT" != ":"; then
11791 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11792 echo "${ECHO_T}$MSGFMT" >&6
11793 else
11794 echo "$as_me:$LINENO: result: no" >&5
11795 echo "${ECHO_T}no" >&6
11798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11799 set dummy gmsgfmt; ac_word=$2
11800 echo "$as_me:$LINENO: checking for $ac_word" >&5
11801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11802 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805 case $GMSGFMT in
11806 [\\/]* | ?:[\\/]*)
11807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 break 2
11821 done
11822 done
11824 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11826 esac
11828 GMSGFMT=$ac_cv_path_GMSGFMT
11830 if test -n "$GMSGFMT"; then
11831 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11832 echo "${ECHO_T}$GMSGFMT" >&6
11833 else
11834 echo "$as_me:$LINENO: result: no" >&5
11835 echo "${ECHO_T}no" >&6
11840 # Prepare PATH_SEPARATOR.
11841 # The user is always right.
11842 if test "${PATH_SEPARATOR+set}" != set; then
11843 echo "#! /bin/sh" >conf$$.sh
11844 echo "exit 0" >>conf$$.sh
11845 chmod +x conf$$.sh
11846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11847 PATH_SEPARATOR=';'
11848 else
11849 PATH_SEPARATOR=:
11851 rm -f conf$$.sh
11854 # Find out how to test for executable files. Don't use a zero-byte file,
11855 # as systems may use methods other than mode bits to determine executability.
11856 cat >conf$$.file <<_ASEOF
11857 #! /bin/sh
11858 exit 0
11859 _ASEOF
11860 chmod +x conf$$.file
11861 if test -x conf$$.file >/dev/null 2>&1; then
11862 ac_executable_p="test -x"
11863 else
11864 ac_executable_p="test -f"
11866 rm -f conf$$.file
11868 # Extract the first word of "xgettext", so it can be a program name with args.
11869 set dummy xgettext; ac_word=$2
11870 echo "$as_me:$LINENO: checking for $ac_word" >&5
11871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11872 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875 case "$XGETTEXT" in
11876 [\\/]* | ?:[\\/]*)
11877 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11881 for ac_dir in $PATH; do
11882 IFS="$ac_save_IFS"
11883 test -z "$ac_dir" && ac_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11886 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11887 (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
11888 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11889 break 2
11892 done
11893 done
11894 IFS="$ac_save_IFS"
11895 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11897 esac
11899 XGETTEXT="$ac_cv_path_XGETTEXT"
11900 if test "$XGETTEXT" != ":"; then
11901 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11902 echo "${ECHO_T}$XGETTEXT" >&6
11903 else
11904 echo "$as_me:$LINENO: result: no" >&5
11905 echo "${ECHO_T}no" >&6
11908 rm -f messages.po
11911 # Prepare PATH_SEPARATOR.
11912 # The user is always right.
11913 if test "${PATH_SEPARATOR+set}" != set; then
11914 echo "#! /bin/sh" >conf$$.sh
11915 echo "exit 0" >>conf$$.sh
11916 chmod +x conf$$.sh
11917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11918 PATH_SEPARATOR=';'
11919 else
11920 PATH_SEPARATOR=:
11922 rm -f conf$$.sh
11925 # Find out how to test for executable files. Don't use a zero-byte file,
11926 # as systems may use methods other than mode bits to determine executability.
11927 cat >conf$$.file <<_ASEOF
11928 #! /bin/sh
11929 exit 0
11930 _ASEOF
11931 chmod +x conf$$.file
11932 if test -x conf$$.file >/dev/null 2>&1; then
11933 ac_executable_p="test -x"
11934 else
11935 ac_executable_p="test -f"
11937 rm -f conf$$.file
11939 # Extract the first word of "msgmerge", so it can be a program name with args.
11940 set dummy msgmerge; ac_word=$2
11941 echo "$as_me:$LINENO: checking for $ac_word" >&5
11942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11943 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946 case "$MSGMERGE" in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11951 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11952 for ac_dir in $PATH; do
11953 IFS="$ac_save_IFS"
11954 test -z "$ac_dir" && ac_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11957 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11958 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11959 break 2
11962 done
11963 done
11964 IFS="$ac_save_IFS"
11965 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11967 esac
11969 MSGMERGE="$ac_cv_path_MSGMERGE"
11970 if test "$MSGMERGE" != ":"; then
11971 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11972 echo "${ECHO_T}$MSGMERGE" >&6
11973 else
11974 echo "$as_me:$LINENO: result: no" >&5
11975 echo "${ECHO_T}no" >&6
11979 if test "$GMSGFMT" != ":"; then
11980 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11981 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11983 else
11984 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11985 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11986 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11987 GMSGFMT=":"
11991 if test "$XGETTEXT" != ":"; then
11992 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11993 (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
11995 else
11996 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11997 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11998 XGETTEXT=":"
12000 rm -f messages.po
12003 ac_config_commands="$ac_config_commands default-1"
12007 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12008 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12009 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12010 if test "${enable_maintainer_mode+set}" = set; then
12011 enableval="$enable_maintainer_mode"
12012 USE_MAINTAINER_MODE=$enableval
12013 else
12014 USE_MAINTAINER_MODE=no
12016 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12017 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12020 if test $USE_MAINTAINER_MODE = yes; then
12021 MAINTAINER_MODE_TRUE=
12022 MAINTAINER_MODE_FALSE='#'
12023 else
12024 MAINTAINER_MODE_TRUE='#'
12025 MAINTAINER_MODE_FALSE=
12028 MAINT=$MAINTAINER_MODE_TRUE
12033 if false; then
12034 GENINSRC_NEVER_TRUE=
12035 GENINSRC_NEVER_FALSE='#'
12036 else
12037 GENINSRC_NEVER_TRUE='#'
12038 GENINSRC_NEVER_FALSE=
12053 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
12055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12057 echo "$as_me:$LINENO: checking for $ac_header" >&5
12058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12064 else
12065 # Is the header compilable?
12066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12068 cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h. */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 $ac_includes_default
12075 #include <$ac_header>
12076 _ACEOF
12077 rm -f conftest.$ac_objext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079 (eval $ac_compile) 2>conftest.er1
12080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -z "$ac_c_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest.$ac_objext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_header_compiler=yes
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_header_compiler=no
12106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12108 echo "${ECHO_T}$ac_header_compiler" >&6
12110 # Is the header present?
12111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 #include <$ac_header>
12120 _ACEOF
12121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } >/dev/null; then
12129 if test -s conftest.err; then
12130 ac_cpp_err=$ac_c_preproc_warn_flag
12131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12132 else
12133 ac_cpp_err=
12135 else
12136 ac_cpp_err=yes
12138 if test -z "$ac_cpp_err"; then
12139 ac_header_preproc=yes
12140 else
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ac_header_preproc=no
12146 rm -f conftest.err conftest.$ac_ext
12147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12148 echo "${ECHO_T}$ac_header_preproc" >&6
12150 # So? What about this header?
12151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12152 yes:no: )
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12157 ac_header_preproc=yes
12159 no:yes:* )
12160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12173 cat <<\_ASBOX
12174 ## ------------------------------------------ ##
12175 ## Report this to the AC_PACKAGE_NAME lists. ##
12176 ## ------------------------------------------ ##
12177 _ASBOX
12179 sed "s/^/$as_me: WARNING: /" >&2
12181 esac
12182 echo "$as_me:$LINENO: checking for $ac_header" >&5
12183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187 eval "$as_ac_Header=\$ac_header_preproc"
12189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12194 cat >>confdefs.h <<_ACEOF
12195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12196 _ACEOF
12200 done
12203 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
12204 # people who are not cross-compiling but are compiling cross-assemblers.
12205 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12206 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12207 if test "${host}" = "${target}"; then
12208 cross_gas=no
12209 else
12210 cross_gas=yes
12212 cat >>confdefs.h <<\_ACEOF
12213 #define CROSS_COMPILE 1
12214 _ACEOF
12217 echo "$as_me:$LINENO: result: $cross_gas" >&5
12218 echo "${ECHO_T}$cross_gas" >&6
12220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12221 # for constant arguments. Useless!
12222 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12223 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12224 if test "${ac_cv_working_alloca_h+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 #include <alloca.h>
12235 main ()
12237 char *p = (char *) alloca (2 * sizeof (int));
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_working_alloca_h=yes
12265 else
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_cv_working_alloca_h=no
12271 rm -f conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12274 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12275 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12276 if test $ac_cv_working_alloca_h = yes; then
12278 cat >>confdefs.h <<\_ACEOF
12279 #define HAVE_ALLOCA_H 1
12280 _ACEOF
12284 echo "$as_me:$LINENO: checking for alloca" >&5
12285 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12286 if test "${ac_cv_func_alloca_works+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h. */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 #ifdef __GNUC__
12296 # define alloca __builtin_alloca
12297 #else
12298 # ifdef _MSC_VER
12299 # include <malloc.h>
12300 # define alloca _alloca
12301 # else
12302 # if HAVE_ALLOCA_H
12303 # include <alloca.h>
12304 # else
12305 # ifdef _AIX
12306 #pragma alloca
12307 # else
12308 # ifndef alloca /* predefined by HP cc +Olibcalls */
12309 char *alloca ();
12310 # endif
12311 # endif
12312 # endif
12313 # endif
12314 #endif
12317 main ()
12319 char *p = (char *) alloca (1);
12321 return 0;
12323 _ACEOF
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_func_alloca_works=yes
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_func_alloca_works=no
12353 rm -f conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12356 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12357 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12359 if test $ac_cv_func_alloca_works = yes; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_ALLOCA 1
12363 _ACEOF
12365 else
12366 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12367 # that cause trouble. Some versions do not even contain alloca or
12368 # contain a buggy version. If you still want to use their alloca,
12369 # use ar to extract alloca.o from them instead of compiling alloca.c.
12371 ALLOCA=alloca.$ac_objext
12373 cat >>confdefs.h <<\_ACEOF
12374 #define C_ALLOCA 1
12375 _ACEOF
12378 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12379 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12380 if test "${ac_cv_os_cray+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h. */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12389 #if defined(CRAY) && ! defined(CRAY2)
12390 webecray
12391 #else
12392 wenotbecray
12393 #endif
12395 _ACEOF
12396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12397 $EGREP "webecray" >/dev/null 2>&1; then
12398 ac_cv_os_cray=yes
12399 else
12400 ac_cv_os_cray=no
12402 rm -f conftest*
12405 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12406 echo "${ECHO_T}$ac_cv_os_cray" >&6
12407 if test $ac_cv_os_cray = yes; then
12408 for ac_func in _getb67 GETB67 getb67; do
12409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12410 echo "$as_me:$LINENO: checking for $ac_func" >&5
12411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12412 if eval "test \"\${$as_ac_var+set}\" = set"; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12423 #define $ac_func innocuous_$ac_func
12425 /* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char $ac_func (); below.
12427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 <limits.h> exists even on freestanding compilers. */
12430 #ifdef __STDC__
12431 # include <limits.h>
12432 #else
12433 # include <assert.h>
12434 #endif
12436 #undef $ac_func
12438 /* Override any gcc2 internal prototype to avoid an error. */
12439 #ifdef __cplusplus
12440 extern "C"
12442 #endif
12443 /* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12445 char $ac_func ();
12446 /* The GNU C library defines this for functions which it implements
12447 to always fail with ENOSYS. Some functions are actually named
12448 something starting with __ and the normal name is an alias. */
12449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12450 choke me
12451 #else
12452 char (*f) () = $ac_func;
12453 #endif
12454 #ifdef __cplusplus
12456 #endif
12459 main ()
12461 return f != $ac_func;
12463 return 0;
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 eval "$as_ac_var=yes"
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 eval "$as_ac_var=no"
12495 rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12500 if test `eval echo '${'$as_ac_var'}'` = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define CRAY_STACKSEG_END $ac_func
12504 _ACEOF
12506 break
12509 done
12512 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12514 if test "${ac_cv_c_stack_direction+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 if test "$cross_compiling" = yes; then
12518 ac_cv_c_stack_direction=0
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 find_stack_direction ()
12529 static char *addr = 0;
12530 auto char dummy;
12531 if (addr == 0)
12533 addr = &dummy;
12534 return find_stack_direction ();
12536 else
12537 return (&dummy > addr) ? 1 : -1;
12541 main ()
12543 exit (find_stack_direction () < 0);
12545 _ACEOF
12546 rm -f conftest$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_c_stack_direction=1
12558 else
12559 echo "$as_me: program exited with status $ac_status" >&5
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ( exit $ac_status )
12564 ac_cv_c_stack_direction=-1
12566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12570 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12572 cat >>confdefs.h <<_ACEOF
12573 #define STACK_DIRECTION $ac_cv_c_stack_direction
12574 _ACEOF
12579 echo "$as_me:$LINENO: checking for inline" >&5
12580 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12581 if test "${ac_cv_c_inline+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584 ac_cv_c_inline=no
12585 for ac_kw in inline __inline__ __inline; do
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 #ifndef __cplusplus
12593 typedef int foo_t;
12594 static $ac_kw foo_t static_foo () {return 0; }
12595 $ac_kw foo_t foo () {return 0; }
12596 #endif
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_c_inline=$ac_kw; break
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12628 done
12631 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12632 echo "${ECHO_T}$ac_cv_c_inline" >&6
12635 case $ac_cv_c_inline in
12636 inline | yes) ;;
12638 case $ac_cv_c_inline in
12639 no) ac_val=;;
12640 *) ac_val=$ac_cv_c_inline;;
12641 esac
12642 cat >>confdefs.h <<_ACEOF
12643 #ifndef __cplusplus
12644 #define inline $ac_val
12645 #endif
12646 _ACEOF
12648 esac
12651 # VMS doesn't have unlink.
12654 for ac_func in unlink remove
12656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 echo "$as_me:$LINENO: checking for $ac_func" >&5
12658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12659 if eval "test \"\${$as_ac_var+set}\" = set"; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h. */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12670 #define $ac_func innocuous_$ac_func
12672 /* System header to define __stub macros and hopefully few prototypes,
12673 which can conflict with char $ac_func (); below.
12674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12675 <limits.h> exists even on freestanding compilers. */
12677 #ifdef __STDC__
12678 # include <limits.h>
12679 #else
12680 # include <assert.h>
12681 #endif
12683 #undef $ac_func
12685 /* Override any gcc2 internal prototype to avoid an error. */
12686 #ifdef __cplusplus
12687 extern "C"
12689 #endif
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12692 char $ac_func ();
12693 /* The GNU C library defines this for functions which it implements
12694 to always fail with ENOSYS. Some functions are actually named
12695 something starting with __ and the normal name is an alias. */
12696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12697 choke me
12698 #else
12699 char (*f) () = $ac_func;
12700 #endif
12701 #ifdef __cplusplus
12703 #endif
12706 main ()
12708 return f != $ac_func;
12710 return 0;
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag"
12723 || test ! -s conftest.err'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest$ac_exeext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 eval "$as_ac_var=yes"
12736 else
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 eval "$as_ac_var=no"
12742 rm -f conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12747 if test `eval echo '${'$as_ac_var'}'` = yes; then
12748 cat >>confdefs.h <<_ACEOF
12749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12750 _ACEOF
12751 break
12753 done
12756 # Some systems don't have sbrk().
12758 for ac_func in sbrk
12760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12761 echo "$as_me:$LINENO: checking for $ac_func" >&5
12762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12763 if eval "test \"\${$as_ac_var+set}\" = set"; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12774 #define $ac_func innocuous_$ac_func
12776 /* System header to define __stub macros and hopefully few prototypes,
12777 which can conflict with char $ac_func (); below.
12778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12779 <limits.h> exists even on freestanding compilers. */
12781 #ifdef __STDC__
12782 # include <limits.h>
12783 #else
12784 # include <assert.h>
12785 #endif
12787 #undef $ac_func
12789 /* Override any gcc2 internal prototype to avoid an error. */
12790 #ifdef __cplusplus
12791 extern "C"
12793 #endif
12794 /* We use char because int might match the return type of a gcc2
12795 builtin and then its argument prototype would still apply. */
12796 char $ac_func ();
12797 /* The GNU C library defines this for functions which it implements
12798 to always fail with ENOSYS. Some functions are actually named
12799 something starting with __ and the normal name is an alias. */
12800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12801 choke me
12802 #else
12803 char (*f) () = $ac_func;
12804 #endif
12805 #ifdef __cplusplus
12807 #endif
12810 main ()
12812 return f != $ac_func;
12814 return 0;
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819 (eval $ac_link) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest$ac_exeext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 eval "$as_ac_var=yes"
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 eval "$as_ac_var=no"
12846 rm -f conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12851 if test `eval echo '${'$as_ac_var'}'` = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12854 _ACEOF
12857 done
12860 # do we need the math library?
12861 case "${need_libm}" in
12862 yes)
12863 LIBM=
12864 case $host in
12865 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12866 # These system don't have libm, or don't need it
12868 *-ncr-sysv4.3*)
12869 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12870 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12871 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 else
12874 ac_check_lib_save_LIBS=$LIBS
12875 LIBS="-lmw $LIBS"
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h. */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12883 /* Override any gcc2 internal prototype to avoid an error. */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 /* We use char because int might match the return type of a gcc2
12888 builtin and then its argument prototype would still apply. */
12889 char _mwvalidcheckl ();
12891 main ()
12893 _mwvalidcheckl ();
12895 return 0;
12897 _ACEOF
12898 rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_lib_mw__mwvalidcheckl=yes
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 ac_cv_lib_mw__mwvalidcheckl=no
12927 rm -f conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12931 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12932 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12933 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12934 LIBM="-lmw"
12937 echo "$as_me:$LINENO: checking for cos in -lm" >&5
12938 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12939 if test "${ac_cv_lib_m_cos+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-lm $LIBS"
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 /* Override any gcc2 internal prototype to avoid an error. */
12952 #ifdef __cplusplus
12953 extern "C"
12954 #endif
12955 /* We use char because int might match the return type of a gcc2
12956 builtin and then its argument prototype would still apply. */
12957 char cos ();
12959 main ()
12961 cos ();
12963 return 0;
12965 _ACEOF
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12968 (eval $ac_link) 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag"
12976 || test ! -s conftest.err'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } &&
12982 { ac_try='test -s conftest$ac_exeext'
12983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984 (eval $ac_try) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 ac_cv_lib_m_cos=yes
12989 else
12990 echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ac_cv_lib_m_cos=no
12995 rm -f conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12997 LIBS=$ac_check_lib_save_LIBS
12999 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13000 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13001 if test $ac_cv_lib_m_cos = yes; then
13002 LIBM="$LIBM -lm"
13007 echo "$as_me:$LINENO: checking for cos in -lm" >&5
13008 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13009 if test "${ac_cv_lib_m_cos+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012 ac_check_lib_save_LIBS=$LIBS
13013 LIBS="-lm $LIBS"
13014 cat >conftest.$ac_ext <<_ACEOF
13015 /* confdefs.h. */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13021 /* Override any gcc2 internal prototype to avoid an error. */
13022 #ifdef __cplusplus
13023 extern "C"
13024 #endif
13025 /* We use char because int might match the return type of a gcc2
13026 builtin and then its argument prototype would still apply. */
13027 char cos ();
13029 main ()
13031 cos ();
13033 return 0;
13035 _ACEOF
13036 rm -f conftest.$ac_objext conftest$ac_exeext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13038 (eval $ac_link) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_lib_m_cos=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_lib_m_cos=no
13065 rm -f conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13069 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13070 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13071 if test $ac_cv_lib_m_cos = yes; then
13072 LIBM="-lm"
13076 esac
13081 esac
13083 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13084 # enough, but on some of those systems, the assert macro relies on requoting
13085 # working properly!
13086 echo "$as_me:$LINENO: checking for working assert macro" >&5
13087 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13088 if test "${gas_cv_assert_ok+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h. */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <assert.h>
13098 #include <stdio.h>
13100 main ()
13103 /* check for requoting problems */
13104 static int a, b, c, d;
13105 static char *s;
13106 assert (!strcmp(s, "foo bar baz quux"));
13107 /* check for newline handling */
13108 assert (a == b
13109 || c == d);
13112 return 0;
13114 _ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -z "$ac_c_werror_flag"
13125 || test ! -s conftest.err'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 gas_cv_assert_ok=yes
13138 else
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13142 gas_cv_assert_ok=no
13144 rm -f conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13147 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13148 echo "${ECHO_T}$gas_cv_assert_ok" >&6
13149 test $gas_cv_assert_ok = yes ||
13150 cat >>confdefs.h <<\_ACEOF
13151 #define BROKEN_ASSERT 1
13152 _ACEOF
13156 # On some systems, the system header files may not declare malloc, realloc,
13157 # and free. There are places where gas needs these functions to have been
13158 # declared -- such as when taking their addresses.
13159 gas_test_headers="
13160 #ifdef HAVE_MEMORY_H
13161 #include <memory.h>
13162 #endif
13163 #ifdef HAVE_STRING_H
13164 #include <string.h>
13165 #else
13166 #ifdef HAVE_STRINGS_H
13167 #include <strings.h>
13168 #endif
13169 #endif
13170 #ifdef HAVE_STDLIB_H
13171 #include <stdlib.h>
13172 #endif
13173 #ifdef HAVE_UNISTD_H
13174 #include <unistd.h>
13175 #endif
13178 # Does errno.h declare errno, or do we have to add a separate declaration
13179 # for it?
13181 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13182 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13183 if test "${gas_cv_decl_needed_errno+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h. */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13193 #ifdef HAVE_ERRNO_H
13194 #include <errno.h>
13195 #endif
13198 main ()
13201 typedef int f;
13202 f x;
13203 x = (f) errno;
13206 return 0;
13208 _ACEOF
13209 rm -f conftest.$ac_objext conftest$ac_exeext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13211 (eval $ac_link) 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -z "$ac_c_werror_flag"
13219 || test ! -s conftest.err'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest$ac_exeext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 gas_cv_decl_needed_errno=no
13232 else
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 gas_cv_decl_needed_errno=yes
13238 rm -f conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13241 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13242 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13243 if test $gas_cv_decl_needed_errno = yes; then
13245 cat >>confdefs.h <<\_ACEOF
13246 #define NEED_DECLARATION_ERRNO 1
13247 _ACEOF
13252 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13253 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13254 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257 cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h. */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h. */
13263 #include <unistd.h>
13265 main ()
13267 extern int getopt (int, char *const*, const char *);
13269 return 0;
13271 _ACEOF
13272 rm -f conftest.$ac_objext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13274 (eval $ac_compile) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag"
13282 || test ! -s conftest.err'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest.$ac_objext'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13294 gas_cv_decl_getopt_unistd_h=yes
13295 else
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 gas_cv_decl_getopt_unistd_h=no
13301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13305 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13306 if test $gas_cv_decl_getopt_unistd_h = yes; then
13308 cat >>confdefs.h <<\_ACEOF
13309 #define HAVE_DECL_GETOPT 1
13310 _ACEOF
13315 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13316 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13317 if test "${gas_cv_decl_needed_environ+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h. */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 $gas_test_headers
13328 main ()
13331 typedef char **f;
13332 f x;
13333 x = (f) environ;
13336 return 0;
13338 _ACEOF
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>conftest.er1
13342 ac_status=$?
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_c_werror_flag"
13349 || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 gas_cv_decl_needed_environ=no
13362 else
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 gas_cv_decl_needed_environ=yes
13368 rm -f conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13371 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13372 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13373 if test $gas_cv_decl_needed_environ = yes; then
13375 cat >>confdefs.h <<\_ACEOF
13376 #define NEED_DECLARATION_ENVIRON 1
13377 _ACEOF
13382 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13383 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13384 if test "${gas_cv_decl_needed_ffs+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387 cat >conftest.$ac_ext <<_ACEOF
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $gas_test_headers
13395 main ()
13398 typedef int (*f)(int);
13399 f x;
13400 x = (f) ffs;
13403 return 0;
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>conftest.er1
13409 ac_status=$?
13410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -z "$ac_c_werror_flag"
13416 || test ! -s conftest.err'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest$ac_exeext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 gas_cv_decl_needed_ffs=no
13429 else
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 gas_cv_decl_needed_ffs=yes
13435 rm -f conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13439 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13440 if test $gas_cv_decl_needed_ffs = yes; then
13442 cat >>confdefs.h <<\_ACEOF
13443 #define NEED_DECLARATION_FFS 1
13444 _ACEOF
13449 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13450 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13451 if test "${gas_cv_decl_needed_free+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $gas_test_headers
13462 main ()
13465 typedef void (*f)();
13466 f x;
13467 x = (f) free;
13470 return 0;
13472 _ACEOF
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13475 (eval $ac_link) 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag"
13483 || test ! -s conftest.err'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 gas_cv_decl_needed_free=no
13496 else
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 gas_cv_decl_needed_free=yes
13502 rm -f conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13505 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13506 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13507 if test $gas_cv_decl_needed_free = yes; then
13509 cat >>confdefs.h <<\_ACEOF
13510 #define NEED_DECLARATION_FREE 1
13511 _ACEOF
13516 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13517 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13518 if test "${gas_cv_decl_needed_malloc+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $gas_test_headers
13529 main ()
13532 typedef char *(*f)();
13533 f x;
13534 x = (f) malloc;
13537 return 0;
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 gas_cv_decl_needed_malloc=no
13563 else
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 gas_cv_decl_needed_malloc=yes
13569 rm -f conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13572 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13573 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13574 if test $gas_cv_decl_needed_malloc = yes; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define NEED_DECLARATION_MALLOC 1
13578 _ACEOF
13583 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13584 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13585 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $gas_test_headers
13596 main ()
13599 typedef char *(*f)();
13600 f x;
13601 x = (f) sbrk;
13604 return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag"
13617 || test ! -s conftest.err'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest$ac_exeext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 gas_cv_decl_needed_sbrk=no
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 gas_cv_decl_needed_sbrk=yes
13636 rm -f conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13639 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13640 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13641 if test $gas_cv_decl_needed_sbrk = yes; then
13643 cat >>confdefs.h <<\_ACEOF
13644 #define NEED_DECLARATION_SBRK 1
13645 _ACEOF
13650 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13651 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13652 if test "${gas_cv_decl_needed_strstr+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h. */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 $gas_test_headers
13663 main ()
13666 typedef char *(*f)();
13667 f x;
13668 x = (f) strstr;
13671 return 0;
13673 _ACEOF
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13676 (eval $ac_link) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 gas_cv_decl_needed_strstr=no
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 gas_cv_decl_needed_strstr=yes
13703 rm -f conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
13707 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
13708 if test $gas_cv_decl_needed_strstr = yes; then
13710 cat >>confdefs.h <<\_ACEOF
13711 #define NEED_DECLARATION_STRSTR 1
13712 _ACEOF
13717 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13718 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13719 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h. */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13728 $ac_includes_default
13730 main ()
13732 #ifndef vsnprintf
13733 char *p = (char *) vsnprintf;
13734 #endif
13737 return 0;
13739 _ACEOF
13740 rm -f conftest.$ac_objext
13741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13742 (eval $ac_compile) 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag"
13750 || test ! -s conftest.err'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest.$ac_objext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_have_decl_vsnprintf=yes
13763 else
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_cv_have_decl_vsnprintf=no
13769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13772 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13773 if test $ac_cv_have_decl_vsnprintf = yes; then
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_DECL_VSNPRINTF 1
13777 _ACEOF
13780 else
13781 cat >>confdefs.h <<_ACEOF
13782 #define HAVE_DECL_VSNPRINTF 0
13783 _ACEOF
13791 case "${host}" in
13792 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13794 cat >>confdefs.h <<\_ACEOF
13795 #define USE_BINARY_FOPEN 1
13796 _ACEOF
13798 esac
13806 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13808 ac_config_commands="$ac_config_commands default"
13811 cat >confcache <<\_ACEOF
13812 # This file is a shell script that caches the results of configure
13813 # tests run on this system so they can be shared between configure
13814 # scripts and configure runs, see configure's option --config-cache.
13815 # It is not useful on other systems. If it contains results you don't
13816 # want to keep, you may remove or edit it.
13818 # config.status only pays attention to the cache file if you give it
13819 # the --recheck option to rerun configure.
13821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13823 # following values.
13825 _ACEOF
13827 # The following way of writing the cache mishandles newlines in values,
13828 # but we know of no workaround that is simple, portable, and efficient.
13829 # So, don't put newlines in cache variables' values.
13830 # Ultrix sh set writes to stderr and can't be redirected directly,
13831 # and sets the high bit in the cache file unless we assign to the vars.
13833 (set) 2>&1 |
13834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13835 *ac_space=\ *)
13836 # `set' does not quote correctly, so add quotes (double-quote
13837 # substitution turns \\\\ into \\, and sed turns \\ into \).
13838 sed -n \
13839 "s/'/'\\\\''/g;
13840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13843 # `set' quotes correctly as required by POSIX, so do not add quotes.
13844 sed -n \
13845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13847 esac;
13849 sed '
13850 t clear
13851 : clear
13852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13853 t end
13854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13855 : end' >>confcache
13856 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13857 if test -w $cache_file; then
13858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13859 cat confcache >$cache_file
13860 else
13861 echo "not updating unwritable cache $cache_file"
13864 rm -f confcache
13866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13867 # Let make expand exec_prefix.
13868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13872 # trailing colons and then remove the whole line if VPATH becomes empty
13873 # (actually we leave an empty line to preserve line numbers).
13874 if test "x$srcdir" = x.; then
13875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13876 s/:*\$(srcdir):*/:/;
13877 s/:*\${srcdir}:*/:/;
13878 s/:*@srcdir@:*/:/;
13879 s/^\([^=]*=[ ]*\):*/\1/;
13880 s/:*$//;
13881 s/^[^=]*=[ ]*$//;
13885 DEFS=-DHAVE_CONFIG_H
13887 ac_libobjs=
13888 ac_ltlibobjs=
13889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13890 # 1. Remove the extension, and $U if already installed.
13891 ac_i=`echo "$ac_i" |
13892 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13893 # 2. Add them.
13894 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13895 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13896 done
13897 LIBOBJS=$ac_libobjs
13899 LTLIBOBJS=$ac_ltlibobjs
13902 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13903 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13904 Usually this means the macro was only invoked conditionally." >&5
13905 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13906 Usually this means the macro was only invoked conditionally." >&2;}
13907 { (exit 1); exit 1; }; }
13909 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13910 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13911 Usually this means the macro was only invoked conditionally." >&5
13912 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13913 Usually this means the macro was only invoked conditionally." >&2;}
13914 { (exit 1); exit 1; }; }
13916 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13917 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13918 Usually this means the macro was only invoked conditionally." >&5
13919 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13920 Usually this means the macro was only invoked conditionally." >&2;}
13921 { (exit 1); exit 1; }; }
13923 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13924 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13925 Usually this means the macro was only invoked conditionally." >&5
13926 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13927 Usually this means the macro was only invoked conditionally." >&2;}
13928 { (exit 1); exit 1; }; }
13931 : ${CONFIG_STATUS=./config.status}
13932 ac_clean_files_save=$ac_clean_files
13933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13934 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13935 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13936 cat >$CONFIG_STATUS <<_ACEOF
13937 #! $SHELL
13938 # Generated by $as_me.
13939 # Run this file to recreate the current configuration.
13940 # Compiler output produced by configure, useful for debugging
13941 # configure, is in config.log if it exists.
13943 debug=false
13944 ac_cs_recheck=false
13945 ac_cs_silent=false
13946 SHELL=\${CONFIG_SHELL-$SHELL}
13947 _ACEOF
13949 cat >>$CONFIG_STATUS <<\_ACEOF
13950 ## --------------------- ##
13951 ## M4sh Initialization. ##
13952 ## --------------------- ##
13954 # Be Bourne compatible
13955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13956 emulate sh
13957 NULLCMD=:
13958 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13959 # is contrary to our usage. Disable this feature.
13960 alias -g '${1+"$@"}'='"$@"'
13961 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13962 set -o posix
13964 DUALCASE=1; export DUALCASE # for MKS sh
13966 # Support unset when possible.
13967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13968 as_unset=unset
13969 else
13970 as_unset=false
13974 # Work around bugs in pre-3.0 UWIN ksh.
13975 $as_unset ENV MAIL MAILPATH
13976 PS1='$ '
13977 PS2='> '
13978 PS4='+ '
13980 # NLS nuisances.
13981 for as_var in \
13982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13984 LC_TELEPHONE LC_TIME
13986 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13987 eval $as_var=C; export $as_var
13988 else
13989 $as_unset $as_var
13991 done
13993 # Required to use basename.
13994 if expr a : '\(a\)' >/dev/null 2>&1; then
13995 as_expr=expr
13996 else
13997 as_expr=false
14000 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14001 as_basename=basename
14002 else
14003 as_basename=false
14007 # Name of the executable.
14008 as_me=`$as_basename "$0" ||
14009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14010 X"$0" : 'X\(//\)$' \| \
14011 X"$0" : 'X\(/\)$' \| \
14012 . : '\(.\)' 2>/dev/null ||
14013 echo X/"$0" |
14014 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14015 /^X\/\(\/\/\)$/{ s//\1/; q; }
14016 /^X\/\(\/\).*/{ s//\1/; q; }
14017 s/.*/./; q'`
14020 # PATH needs CR, and LINENO needs CR and PATH.
14021 # Avoid depending upon Character Ranges.
14022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14025 as_cr_digits='0123456789'
14026 as_cr_alnum=$as_cr_Letters$as_cr_digits
14028 # The user is always right.
14029 if test "${PATH_SEPARATOR+set}" != set; then
14030 echo "#! /bin/sh" >conf$$.sh
14031 echo "exit 0" >>conf$$.sh
14032 chmod +x conf$$.sh
14033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14034 PATH_SEPARATOR=';'
14035 else
14036 PATH_SEPARATOR=:
14038 rm -f conf$$.sh
14042 as_lineno_1=$LINENO
14043 as_lineno_2=$LINENO
14044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14045 test "x$as_lineno_1" != "x$as_lineno_2" &&
14046 test "x$as_lineno_3" = "x$as_lineno_2" || {
14047 # Find who we are. Look in the path if we contain no path at all
14048 # relative or not.
14049 case $0 in
14050 *[\\/]* ) as_myself=$0 ;;
14051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14054 IFS=$as_save_IFS
14055 test -z "$as_dir" && as_dir=.
14056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14057 done
14060 esac
14061 # We did not find ourselves, most probably we were run as `sh COMMAND'
14062 # in which case we are not to be found in the path.
14063 if test "x$as_myself" = x; then
14064 as_myself=$0
14066 if test ! -f "$as_myself"; then
14067 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14068 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14069 { (exit 1); exit 1; }; }
14071 case $CONFIG_SHELL in
14073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14076 IFS=$as_save_IFS
14077 test -z "$as_dir" && as_dir=.
14078 for as_base in sh bash ksh sh5; do
14079 case $as_dir in
14081 if ("$as_dir/$as_base" -c '
14082 as_lineno_1=$LINENO
14083 as_lineno_2=$LINENO
14084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14085 test "x$as_lineno_1" != "x$as_lineno_2" &&
14086 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14087 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14088 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14089 CONFIG_SHELL=$as_dir/$as_base
14090 export CONFIG_SHELL
14091 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14092 fi;;
14093 esac
14094 done
14095 done
14097 esac
14099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14100 # uniformly replaced by the line number. The first 'sed' inserts a
14101 # line-number line before each line; the second 'sed' does the real
14102 # work. The second script uses 'N' to pair each line-number line
14103 # with the numbered line, and appends trailing '-' during
14104 # substitution so that $LINENO is not a special case at line end.
14105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14107 sed '=' <$as_myself |
14108 sed '
14110 s,$,-,
14111 : loop
14112 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14113 t loop
14114 s,-$,,
14115 s,^['$as_cr_digits']*\n,,
14116 ' >$as_me.lineno &&
14117 chmod +x $as_me.lineno ||
14118 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14119 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14120 { (exit 1); exit 1; }; }
14122 # Don't try to exec as it changes $[0], causing all sort of problems
14123 # (the dirname of $[0] is not the place where we might find the
14124 # original and so on. Autoconf is especially sensible to this).
14125 . ./$as_me.lineno
14126 # Exit status is that of the last command.
14127 exit
14131 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14132 *c*,-n*) ECHO_N= ECHO_C='
14133 ' ECHO_T=' ' ;;
14134 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14135 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14136 esac
14138 if expr a : '\(a\)' >/dev/null 2>&1; then
14139 as_expr=expr
14140 else
14141 as_expr=false
14144 rm -f conf$$ conf$$.exe conf$$.file
14145 echo >conf$$.file
14146 if ln -s conf$$.file conf$$ 2>/dev/null; then
14147 # We could just check for DJGPP; but this test a) works b) is more generic
14148 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14149 if test -f conf$$.exe; then
14150 # Don't use ln at all; we don't have any links
14151 as_ln_s='cp -p'
14152 else
14153 as_ln_s='ln -s'
14155 elif ln conf$$.file conf$$ 2>/dev/null; then
14156 as_ln_s=ln
14157 else
14158 as_ln_s='cp -p'
14160 rm -f conf$$ conf$$.exe conf$$.file
14162 if mkdir -p . 2>/dev/null; then
14163 as_mkdir_p=:
14164 else
14165 test -d ./-p && rmdir ./-p
14166 as_mkdir_p=false
14169 as_executable_p="test -f"
14171 # Sed expression to map a string onto a valid CPP name.
14172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14174 # Sed expression to map a string onto a valid variable name.
14175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14178 # IFS
14179 # We need space, tab and new line, in precisely that order.
14180 as_nl='
14182 IFS=" $as_nl"
14184 # CDPATH.
14185 $as_unset CDPATH
14187 exec 6>&1
14189 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14190 # report actual input values of CONFIG_FILES etc. instead of their
14191 # values after options handling. Logging --version etc. is OK.
14192 exec 5>>config.log
14194 echo
14195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14196 ## Running $as_me. ##
14197 _ASBOX
14198 } >&5
14199 cat >&5 <<_CSEOF
14201 This file was extended by $as_me, which was
14202 generated by GNU Autoconf 2.59. Invocation command line was
14204 CONFIG_FILES = $CONFIG_FILES
14205 CONFIG_HEADERS = $CONFIG_HEADERS
14206 CONFIG_LINKS = $CONFIG_LINKS
14207 CONFIG_COMMANDS = $CONFIG_COMMANDS
14208 $ $0 $@
14210 _CSEOF
14211 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14212 echo >&5
14213 _ACEOF
14215 # Files that config.status was made for.
14216 if test -n "$ac_config_files"; then
14217 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14220 if test -n "$ac_config_headers"; then
14221 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14224 if test -n "$ac_config_links"; then
14225 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14228 if test -n "$ac_config_commands"; then
14229 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14232 cat >>$CONFIG_STATUS <<\_ACEOF
14234 ac_cs_usage="\
14235 \`$as_me' instantiates files from templates according to the
14236 current configuration.
14238 Usage: $0 [OPTIONS] [FILE]...
14240 -h, --help print this help, then exit
14241 -V, --version print version number, then exit
14242 -q, --quiet do not print progress messages
14243 -d, --debug don't remove temporary files
14244 --recheck update $as_me by reconfiguring in the same conditions
14245 --file=FILE[:TEMPLATE]
14246 instantiate the configuration file FILE
14247 --header=FILE[:TEMPLATE]
14248 instantiate the configuration header FILE
14250 Configuration files:
14251 $config_files
14253 Configuration headers:
14254 $config_headers
14256 Configuration commands:
14257 $config_commands
14259 Report bugs to <bug-autoconf@gnu.org>."
14260 _ACEOF
14262 cat >>$CONFIG_STATUS <<_ACEOF
14263 ac_cs_version="\\
14264 config.status
14265 configured by $0, generated by GNU Autoconf 2.59,
14266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14268 Copyright (C) 2003 Free Software Foundation, Inc.
14269 This config.status script is free software; the Free Software Foundation
14270 gives unlimited permission to copy, distribute and modify it."
14271 srcdir=$srcdir
14272 INSTALL="$INSTALL"
14273 _ACEOF
14275 cat >>$CONFIG_STATUS <<\_ACEOF
14276 # If no file are specified by the user, then we need to provide default
14277 # value. By we need to know if files were specified by the user.
14278 ac_need_defaults=:
14279 while test $# != 0
14281 case $1 in
14282 --*=*)
14283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14285 ac_shift=:
14288 ac_option=$1
14289 ac_optarg=$2
14290 ac_shift=shift
14292 *) # This is not an option, so the user has probably given explicit
14293 # arguments.
14294 ac_option=$1
14295 ac_need_defaults=false;;
14296 esac
14298 case $ac_option in
14299 # Handling of the options.
14300 _ACEOF
14301 cat >>$CONFIG_STATUS <<\_ACEOF
14302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14303 ac_cs_recheck=: ;;
14304 --version | --vers* | -V )
14305 echo "$ac_cs_version"; exit 0 ;;
14306 --he | --h)
14307 # Conflict between --help and --header
14308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14309 Try \`$0 --help' for more information." >&5
14310 echo "$as_me: error: ambiguous option: $1
14311 Try \`$0 --help' for more information." >&2;}
14312 { (exit 1); exit 1; }; };;
14313 --help | --hel | -h )
14314 echo "$ac_cs_usage"; exit 0 ;;
14315 --debug | --d* | -d )
14316 debug=: ;;
14317 --file | --fil | --fi | --f )
14318 $ac_shift
14319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14320 ac_need_defaults=false;;
14321 --header | --heade | --head | --hea )
14322 $ac_shift
14323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14324 ac_need_defaults=false;;
14325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14327 ac_cs_silent=: ;;
14329 # This is an error.
14330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14331 Try \`$0 --help' for more information." >&5
14332 echo "$as_me: error: unrecognized option: $1
14333 Try \`$0 --help' for more information." >&2;}
14334 { (exit 1); exit 1; }; } ;;
14336 *) ac_config_targets="$ac_config_targets $1" ;;
14338 esac
14339 shift
14340 done
14342 ac_configure_extra_args=
14344 if $ac_cs_silent; then
14345 exec 6>/dev/null
14346 ac_configure_extra_args="$ac_configure_extra_args --silent"
14349 _ACEOF
14350 cat >>$CONFIG_STATUS <<_ACEOF
14351 if \$ac_cs_recheck; then
14352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14356 _ACEOF
14358 cat >>$CONFIG_STATUS <<_ACEOF
14360 # INIT-COMMANDS section.
14363 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14366 # The HP-UX ksh and POSIX shell print the target directory to stdout
14367 # if CDPATH is set.
14368 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14370 sed_quote_subst='$sed_quote_subst'
14371 double_quote_subst='$double_quote_subst'
14372 delay_variable_subst='$delay_variable_subst'
14373 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14374 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14375 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14376 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14377 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14378 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14379 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14380 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14381 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14382 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14383 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14384 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14385 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14386 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14387 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14388 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14389 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14390 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14391 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14392 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14393 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14394 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14395 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14396 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14397 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14398 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14399 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14400 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14401 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14402 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14403 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14404 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14405 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14406 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14407 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14408 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14409 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14410 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14411 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14412 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14413 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14414 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14415 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14416 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"`'
14417 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14418 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14419 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14420 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14421 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14422 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14423 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14424 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14425 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14426 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14427 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14428 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14429 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14430 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14431 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14432 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14433 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14434 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14435 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14436 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14437 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14438 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14439 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14440 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14441 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14442 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14443 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14444 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14445 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14446 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14447 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14448 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14449 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14450 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14451 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14452 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14453 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14454 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14455 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14456 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14457 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14458 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14459 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14460 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14461 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14462 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14463 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14464 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14465 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14466 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14467 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14468 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14469 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14470 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14471 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14472 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14473 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14474 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14475 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14476 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14477 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14478 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14479 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14480 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14481 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14482 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14483 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14485 LTCC='$LTCC'
14486 LTCFLAGS='$LTCFLAGS'
14487 compiler='$compiler_DEFAULT'
14489 # Quote evaled strings.
14490 for var in SED \
14491 GREP \
14492 EGREP \
14493 FGREP \
14494 LD \
14495 NM \
14496 LN_S \
14497 lt_SP2NL \
14498 lt_NL2SP \
14499 reload_flag \
14500 deplibs_check_method \
14501 file_magic_cmd \
14502 AR \
14503 AR_FLAGS \
14504 STRIP \
14505 RANLIB \
14506 CC \
14507 CFLAGS \
14508 compiler \
14509 lt_cv_sys_global_symbol_pipe \
14510 lt_cv_sys_global_symbol_to_cdecl \
14511 lt_cv_sys_global_symbol_to_c_name_address \
14512 SHELL \
14513 ECHO \
14514 lt_prog_compiler_no_builtin_flag \
14515 lt_prog_compiler_wl \
14516 lt_prog_compiler_pic \
14517 lt_prog_compiler_static \
14518 lt_cv_prog_compiler_c_o \
14519 need_locks \
14520 shrext_cmds \
14521 export_dynamic_flag_spec \
14522 whole_archive_flag_spec \
14523 compiler_needs_object \
14524 with_gnu_ld \
14525 allow_undefined_flag \
14526 no_undefined_flag \
14527 hardcode_libdir_flag_spec \
14528 hardcode_libdir_flag_spec_ld \
14529 hardcode_libdir_separator \
14530 fix_srcfile_path \
14531 exclude_expsyms \
14532 include_expsyms \
14533 file_list_spec \
14534 variables_saved_for_relink \
14535 libname_spec \
14536 library_names_spec \
14537 soname_spec \
14538 finish_eval \
14539 old_striplib \
14540 striplib; do
14541 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14542 *[\\\\\\\`\\"\\\$]*)
14543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14548 esac
14549 done
14551 # Double-quote double-evaled strings.
14552 for var in reload_cmds \
14553 old_postinstall_cmds \
14554 old_postuninstall_cmds \
14555 old_archive_cmds \
14556 extract_expsyms_cmds \
14557 old_archive_from_new_cmds \
14558 old_archive_from_expsyms_cmds \
14559 archive_cmds \
14560 archive_expsym_cmds \
14561 module_cmds \
14562 module_expsym_cmds \
14563 export_symbols_cmds \
14564 prelink_cmds \
14565 postinstall_cmds \
14566 postuninstall_cmds \
14567 finish_cmds \
14568 sys_lib_search_path_spec \
14569 sys_lib_dlsearch_path_spec; do
14570 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14571 *[\\\\\\\`\\"\\\$]*)
14572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14577 esac
14578 done
14580 # Fix-up fallback echo if it was mangled by the above quoting rules.
14581 case \$lt_ECHO in
14582 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14584 esac
14586 ac_aux_dir='$ac_aux_dir'
14587 xsi_shell='$xsi_shell'
14588 lt_shell_append='$lt_shell_append'
14590 # See if we are running on zsh, and set the options which allow our
14591 # commands through without removal of \ escapes INIT.
14592 if test -n "\${ZSH_VERSION+set}" ; then
14593 setopt NO_GLOB_SUBST
14597 PACKAGE='$PACKAGE'
14598 VERSION='$VERSION'
14599 TIMESTAMP='$TIMESTAMP'
14600 RM='$RM'
14601 ofile='$ofile'
14605 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14606 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14607 # from automake.
14608 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14609 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14610 LINGUAS="${LINGUAS-%UNSET%}"
14612 target_cpu_type=${target_cpu_type}
14613 cgen_cpu_prefix=${cgen_cpu_prefix}
14614 obj_format=${obj_format}
14615 te_file=${te_file}
14617 _ACEOF
14621 cat >>$CONFIG_STATUS <<\_ACEOF
14622 for ac_config_target in $ac_config_targets
14624 case "$ac_config_target" in
14625 # Handling of arguments.
14626 "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14627 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14628 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14629 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14630 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14631 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14632 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14633 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14634 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14635 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14637 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14638 { (exit 1); exit 1; }; };;
14639 esac
14640 done
14642 # If the user did not use the arguments to specify the items to instantiate,
14643 # then the envvar interface is used. Set only those that are not.
14644 # We use the long form for the default assignment because of an extremely
14645 # bizarre bug on SunOS 4.1.3.
14646 if $ac_need_defaults; then
14647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14652 # Have a temporary directory for convenience. Make it in the build tree
14653 # simply because there is no reason to put it here, and in addition,
14654 # creating and moving files from /tmp can sometimes cause problems.
14655 # Create a temporary directory, and hook for its removal unless debugging.
14656 $debug ||
14658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14659 trap '{ (exit 1); exit 1; }' 1 2 13 15
14662 # Create a (secure) tmp directory for tmp files.
14665 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14666 test -n "$tmp" && test -d "$tmp"
14667 } ||
14669 tmp=./confstat$$-$RANDOM
14670 (umask 077 && mkdir $tmp)
14671 } ||
14673 echo "$me: cannot create a temporary directory in ." >&2
14674 { (exit 1); exit 1; }
14677 _ACEOF
14679 cat >>$CONFIG_STATUS <<_ACEOF
14682 # CONFIG_FILES section.
14685 # No need to generate the scripts if there are no CONFIG_FILES.
14686 # This happens for instance when ./config.status config.h
14687 if test -n "\$CONFIG_FILES"; then
14688 # Protect against being on the right side of a sed subst in config.status.
14689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14691 s,@SHELL@,$SHELL,;t t
14692 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14693 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14694 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14695 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14696 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14697 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14698 s,@exec_prefix@,$exec_prefix,;t t
14699 s,@prefix@,$prefix,;t t
14700 s,@program_transform_name@,$program_transform_name,;t t
14701 s,@bindir@,$bindir,;t t
14702 s,@sbindir@,$sbindir,;t t
14703 s,@libexecdir@,$libexecdir,;t t
14704 s,@datadir@,$datadir,;t t
14705 s,@sysconfdir@,$sysconfdir,;t t
14706 s,@sharedstatedir@,$sharedstatedir,;t t
14707 s,@localstatedir@,$localstatedir,;t t
14708 s,@libdir@,$libdir,;t t
14709 s,@includedir@,$includedir,;t t
14710 s,@oldincludedir@,$oldincludedir,;t t
14711 s,@infodir@,$infodir,;t t
14712 s,@mandir@,$mandir,;t t
14713 s,@build_alias@,$build_alias,;t t
14714 s,@host_alias@,$host_alias,;t t
14715 s,@target_alias@,$target_alias,;t t
14716 s,@DEFS@,$DEFS,;t t
14717 s,@ECHO_C@,$ECHO_C,;t t
14718 s,@ECHO_N@,$ECHO_N,;t t
14719 s,@ECHO_T@,$ECHO_T,;t t
14720 s,@LIBS@,$LIBS,;t t
14721 s,@build@,$build,;t t
14722 s,@build_cpu@,$build_cpu,;t t
14723 s,@build_vendor@,$build_vendor,;t t
14724 s,@build_os@,$build_os,;t t
14725 s,@host@,$host,;t t
14726 s,@host_cpu@,$host_cpu,;t t
14727 s,@host_vendor@,$host_vendor,;t t
14728 s,@host_os@,$host_os,;t t
14729 s,@target@,$target,;t t
14730 s,@target_cpu@,$target_cpu,;t t
14731 s,@target_vendor@,$target_vendor,;t t
14732 s,@target_os@,$target_os,;t t
14733 s,@CC@,$CC,;t t
14734 s,@CFLAGS@,$CFLAGS,;t t
14735 s,@LDFLAGS@,$LDFLAGS,;t t
14736 s,@CPPFLAGS@,$CPPFLAGS,;t t
14737 s,@ac_ct_CC@,$ac_ct_CC,;t t
14738 s,@EXEEXT@,$EXEEXT,;t t
14739 s,@OBJEXT@,$OBJEXT,;t t
14740 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14741 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14742 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14743 s,@CYGPATH_W@,$CYGPATH_W,;t t
14744 s,@PACKAGE@,$PACKAGE,;t t
14745 s,@VERSION@,$VERSION,;t t
14746 s,@ACLOCAL@,$ACLOCAL,;t t
14747 s,@AUTOCONF@,$AUTOCONF,;t t
14748 s,@AUTOMAKE@,$AUTOMAKE,;t t
14749 s,@AUTOHEADER@,$AUTOHEADER,;t t
14750 s,@MAKEINFO@,$MAKEINFO,;t t
14751 s,@install_sh@,$install_sh,;t t
14752 s,@STRIP@,$STRIP,;t t
14753 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14754 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14755 s,@mkdir_p@,$mkdir_p,;t t
14756 s,@AWK@,$AWK,;t t
14757 s,@SET_MAKE@,$SET_MAKE,;t t
14758 s,@am__leading_dot@,$am__leading_dot,;t t
14759 s,@AMTAR@,$AMTAR,;t t
14760 s,@am__tar@,$am__tar,;t t
14761 s,@am__untar@,$am__untar,;t t
14762 s,@DEPDIR@,$DEPDIR,;t t
14763 s,@am__include@,$am__include,;t t
14764 s,@am__quote@,$am__quote,;t t
14765 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14766 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14767 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14768 s,@CCDEPMODE@,$CCDEPMODE,;t t
14769 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14770 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14771 s,@LIBTOOL@,$LIBTOOL,;t t
14772 s,@SED@,$SED,;t t
14773 s,@EGREP@,$EGREP,;t t
14774 s,@FGREP@,$FGREP,;t t
14775 s,@GREP@,$GREP,;t t
14776 s,@LD@,$LD,;t t
14777 s,@DUMPBIN@,$DUMPBIN,;t t
14778 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14779 s,@NM@,$NM,;t t
14780 s,@LN_S@,$LN_S,;t t
14781 s,@AR@,$AR,;t t
14782 s,@ac_ct_AR@,$ac_ct_AR,;t t
14783 s,@RANLIB@,$RANLIB,;t t
14784 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14785 s,@lt_ECHO@,$lt_ECHO,;t t
14786 s,@CPP@,$CPP,;t t
14787 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
14788 s,@NO_WERROR@,$NO_WERROR,;t t
14789 s,@GDBINIT@,$GDBINIT,;t t
14790 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
14791 s,@extra_objects@,$extra_objects,;t t
14792 s,@target_cpu_type@,$target_cpu_type,;t t
14793 s,@obj_format@,$obj_format,;t t
14794 s,@te_file@,$te_file,;t t
14795 s,@install_tooldir@,$install_tooldir,;t t
14796 s,@atof@,$atof,;t t
14797 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
14798 s,@YACC@,$YACC,;t t
14799 s,@LEX@,$LEX,;t t
14800 s,@LEXLIB@,$LEXLIB,;t t
14801 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14802 s,@USE_NLS@,$USE_NLS,;t t
14803 s,@LIBINTL@,$LIBINTL,;t t
14804 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
14805 s,@INCINTL@,$INCINTL,;t t
14806 s,@XGETTEXT@,$XGETTEXT,;t t
14807 s,@GMSGFMT@,$GMSGFMT,;t t
14808 s,@POSUB@,$POSUB,;t t
14809 s,@CATALOGS@,$CATALOGS,;t t
14810 s,@DATADIRNAME@,$DATADIRNAME,;t t
14811 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14812 s,@GENCAT@,$GENCAT,;t t
14813 s,@CATOBJEXT@,$CATOBJEXT,;t t
14814 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14815 s,@MSGFMT@,$MSGFMT,;t t
14816 s,@MSGMERGE@,$MSGMERGE,;t t
14817 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14818 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14819 s,@MAINT@,$MAINT,;t t
14820 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
14821 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
14822 s,@ALLOCA@,$ALLOCA,;t t
14823 s,@LIBM@,$LIBM,;t t
14824 s,@datarootdir@,$datarootdir,;t t
14825 s,@docdir@,$docdir,;t t
14826 s,@htmldir@,$htmldir,;t t
14827 s,@LIBOBJS@,$LIBOBJS,;t t
14828 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14829 CEOF
14831 _ACEOF
14833 cat >>$CONFIG_STATUS <<\_ACEOF
14834 # Split the substitutions into bite-sized pieces for seds with
14835 # small command number limits, like on Digital OSF/1 and HP-UX.
14836 ac_max_sed_lines=48
14837 ac_sed_frag=1 # Number of current file.
14838 ac_beg=1 # First line for current file.
14839 ac_end=$ac_max_sed_lines # Line after last line for current file.
14840 ac_more_lines=:
14841 ac_sed_cmds=
14842 while $ac_more_lines; do
14843 if test $ac_beg -gt 1; then
14844 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14845 else
14846 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14848 if test ! -s $tmp/subs.frag; then
14849 ac_more_lines=false
14850 else
14851 # The purpose of the label and of the branching condition is to
14852 # speed up the sed processing (if there are no `@' at all, there
14853 # is no need to browse any of the substitutions).
14854 # These are the two extra sed commands mentioned above.
14855 (echo ':t
14856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14857 if test -z "$ac_sed_cmds"; then
14858 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14859 else
14860 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14862 ac_sed_frag=`expr $ac_sed_frag + 1`
14863 ac_beg=$ac_end
14864 ac_end=`expr $ac_end + $ac_max_sed_lines`
14866 done
14867 if test -z "$ac_sed_cmds"; then
14868 ac_sed_cmds=cat
14870 fi # test -n "$CONFIG_FILES"
14872 _ACEOF
14873 cat >>$CONFIG_STATUS <<\_ACEOF
14874 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14876 case $ac_file in
14877 - | *:- | *:-:* ) # input from stdin
14878 cat >$tmp/stdin
14879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14883 * ) ac_file_in=$ac_file.in ;;
14884 esac
14886 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14887 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14889 X"$ac_file" : 'X\(//\)[^/]' \| \
14890 X"$ac_file" : 'X\(//\)$' \| \
14891 X"$ac_file" : 'X\(/\)' \| \
14892 . : '\(.\)' 2>/dev/null ||
14893 echo X"$ac_file" |
14894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14896 /^X\(\/\/\)$/{ s//\1/; q; }
14897 /^X\(\/\).*/{ s//\1/; q; }
14898 s/.*/./; q'`
14899 { if $as_mkdir_p; then
14900 mkdir -p "$ac_dir"
14901 else
14902 as_dir="$ac_dir"
14903 as_dirs=
14904 while test ! -d "$as_dir"; do
14905 as_dirs="$as_dir $as_dirs"
14906 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14908 X"$as_dir" : 'X\(//\)[^/]' \| \
14909 X"$as_dir" : 'X\(//\)$' \| \
14910 X"$as_dir" : 'X\(/\)' \| \
14911 . : '\(.\)' 2>/dev/null ||
14912 echo X"$as_dir" |
14913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14914 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14915 /^X\(\/\/\)$/{ s//\1/; q; }
14916 /^X\(\/\).*/{ s//\1/; q; }
14917 s/.*/./; q'`
14918 done
14919 test ! -n "$as_dirs" || mkdir $as_dirs
14920 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14922 { (exit 1); exit 1; }; }; }
14924 ac_builddir=.
14926 if test "$ac_dir" != .; then
14927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14928 # A "../" for each directory in $ac_dir_suffix.
14929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14930 else
14931 ac_dir_suffix= ac_top_builddir=
14934 case $srcdir in
14935 .) # No --srcdir option. We are building in place.
14936 ac_srcdir=.
14937 if test -z "$ac_top_builddir"; then
14938 ac_top_srcdir=.
14939 else
14940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14941 fi ;;
14942 [\\/]* | ?:[\\/]* ) # Absolute path.
14943 ac_srcdir=$srcdir$ac_dir_suffix;
14944 ac_top_srcdir=$srcdir ;;
14945 *) # Relative path.
14946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14948 esac
14950 # Do not use `cd foo && pwd` to compute absolute paths, because
14951 # the directories may not exist.
14952 case `pwd` in
14953 .) ac_abs_builddir="$ac_dir";;
14955 case "$ac_dir" in
14956 .) ac_abs_builddir=`pwd`;;
14957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14959 esac;;
14960 esac
14961 case $ac_abs_builddir in
14962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14964 case ${ac_top_builddir}. in
14965 .) ac_abs_top_builddir=$ac_abs_builddir;;
14966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14968 esac;;
14969 esac
14970 case $ac_abs_builddir in
14971 .) ac_abs_srcdir=$ac_srcdir;;
14973 case $ac_srcdir in
14974 .) ac_abs_srcdir=$ac_abs_builddir;;
14975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14977 esac;;
14978 esac
14979 case $ac_abs_builddir in
14980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14982 case $ac_top_srcdir in
14983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14986 esac;;
14987 esac
14990 case $INSTALL in
14991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14992 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14993 esac
14995 if test x"$ac_file" != x-; then
14996 { echo "$as_me:$LINENO: creating $ac_file" >&5
14997 echo "$as_me: creating $ac_file" >&6;}
14998 rm -f "$ac_file"
15000 # Let's still pretend it is `configure' which instantiates (i.e., don't
15001 # use $as_me), people would be surprised to read:
15002 # /* config.h. Generated by config.status. */
15003 if test x"$ac_file" = x-; then
15004 configure_input=
15005 else
15006 configure_input="$ac_file. "
15008 configure_input=$configure_input"Generated from `echo $ac_file_in |
15009 sed 's,.*/,,'` by configure."
15011 # First look for the input files in the build tree, otherwise in the
15012 # src tree.
15013 ac_file_inputs=`IFS=:
15014 for f in $ac_file_in; do
15015 case $f in
15016 -) echo $tmp/stdin ;;
15017 [\\/$]*)
15018 # Absolute (can't be DOS-style, as IFS=:)
15019 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15020 echo "$as_me: error: cannot find input file: $f" >&2;}
15021 { (exit 1); exit 1; }; }
15022 echo "$f";;
15023 *) # Relative
15024 if test -f "$f"; then
15025 # Build tree
15026 echo "$f"
15027 elif test -f "$srcdir/$f"; then
15028 # Source tree
15029 echo "$srcdir/$f"
15030 else
15031 # /dev/null tree
15032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15033 echo "$as_me: error: cannot find input file: $f" >&2;}
15034 { (exit 1); exit 1; }; }
15035 fi;;
15036 esac
15037 done` || { (exit 1); exit 1; }
15038 _ACEOF
15039 cat >>$CONFIG_STATUS <<_ACEOF
15040 sed "$ac_vpsub
15041 $extrasub
15042 _ACEOF
15043 cat >>$CONFIG_STATUS <<\_ACEOF
15045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15046 s,@configure_input@,$configure_input,;t t
15047 s,@srcdir@,$ac_srcdir,;t t
15048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15049 s,@top_srcdir@,$ac_top_srcdir,;t t
15050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15051 s,@builddir@,$ac_builddir,;t t
15052 s,@abs_builddir@,$ac_abs_builddir,;t t
15053 s,@top_builddir@,$ac_top_builddir,;t t
15054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15055 s,@INSTALL@,$ac_INSTALL,;t t
15056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15057 rm -f $tmp/stdin
15058 if test x"$ac_file" != x-; then
15059 mv $tmp/out $ac_file
15060 else
15061 cat $tmp/out
15062 rm -f $tmp/out
15065 done
15066 _ACEOF
15067 cat >>$CONFIG_STATUS <<\_ACEOF
15070 # CONFIG_HEADER section.
15073 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15074 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15076 # ac_d sets the value in "#define NAME VALUE" lines.
15077 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15078 ac_dB='[ ].*$,\1#\2'
15079 ac_dC=' '
15080 ac_dD=',;t'
15081 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15082 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15083 ac_uB='$,\1#\2define\3'
15084 ac_uC=' '
15085 ac_uD=',;t'
15087 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15089 case $ac_file in
15090 - | *:- | *:-:* ) # input from stdin
15091 cat >$tmp/stdin
15092 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15094 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15096 * ) ac_file_in=$ac_file.in ;;
15097 esac
15099 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15100 echo "$as_me: creating $ac_file" >&6;}
15102 # First look for the input files in the build tree, otherwise in the
15103 # src tree.
15104 ac_file_inputs=`IFS=:
15105 for f in $ac_file_in; do
15106 case $f in
15107 -) echo $tmp/stdin ;;
15108 [\\/$]*)
15109 # Absolute (can't be DOS-style, as IFS=:)
15110 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15111 echo "$as_me: error: cannot find input file: $f" >&2;}
15112 { (exit 1); exit 1; }; }
15113 # Do quote $f, to prevent DOS paths from being IFS'd.
15114 echo "$f";;
15115 *) # Relative
15116 if test -f "$f"; then
15117 # Build tree
15118 echo "$f"
15119 elif test -f "$srcdir/$f"; then
15120 # Source tree
15121 echo "$srcdir/$f"
15122 else
15123 # /dev/null tree
15124 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15125 echo "$as_me: error: cannot find input file: $f" >&2;}
15126 { (exit 1); exit 1; }; }
15127 fi;;
15128 esac
15129 done` || { (exit 1); exit 1; }
15130 # Remove the trailing spaces.
15131 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15133 _ACEOF
15135 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15136 # `conftest.undefs', that substitutes the proper values into
15137 # config.h.in to produce config.h. The first handles `#define'
15138 # templates, and the second `#undef' templates.
15139 # And first: Protect against being on the right side of a sed subst in
15140 # config.status. Protect against being in an unquoted here document
15141 # in config.status.
15142 rm -f conftest.defines conftest.undefs
15143 # Using a here document instead of a string reduces the quoting nightmare.
15144 # Putting comments in sed scripts is not portable.
15146 # `end' is used to avoid that the second main sed command (meant for
15147 # 0-ary CPP macros) applies to n-ary macro definitions.
15148 # See the Autoconf documentation for `clear'.
15149 cat >confdef2sed.sed <<\_ACEOF
15150 s/[\\&,]/\\&/g
15151 s,[\\$`],\\&,g
15152 t clear
15153 : clear
15154 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15155 t end
15156 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15157 : end
15158 _ACEOF
15159 # If some macros were called several times there might be several times
15160 # the same #defines, which is useless. Nevertheless, we may not want to
15161 # sort them, since we want the *last* AC-DEFINE to be honored.
15162 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15163 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15164 rm -f confdef2sed.sed
15166 # This sed command replaces #undef with comments. This is necessary, for
15167 # example, in the case of _POSIX_SOURCE, which is predefined and required
15168 # on some systems where configure will not decide to define it.
15169 cat >>conftest.undefs <<\_ACEOF
15170 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15171 _ACEOF
15173 # Break up conftest.defines because some shells have a limit on the size
15174 # of here documents, and old seds have small limits too (100 cmds).
15175 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15176 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15177 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15178 echo ' :' >>$CONFIG_STATUS
15179 rm -f conftest.tail
15180 while grep . conftest.defines >/dev/null
15182 # Write a limited-size here document to $tmp/defines.sed.
15183 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15184 # Speed up: don't consider the non `#define' lines.
15185 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15186 # Work around the forget-to-reset-the-flag bug.
15187 echo 't clr' >>$CONFIG_STATUS
15188 echo ': clr' >>$CONFIG_STATUS
15189 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15190 echo 'CEOF
15191 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15192 rm -f $tmp/in
15193 mv $tmp/out $tmp/in
15194 ' >>$CONFIG_STATUS
15195 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15196 rm -f conftest.defines
15197 mv conftest.tail conftest.defines
15198 done
15199 rm -f conftest.defines
15200 echo ' fi # grep' >>$CONFIG_STATUS
15201 echo >>$CONFIG_STATUS
15203 # Break up conftest.undefs because some shells have a limit on the size
15204 # of here documents, and old seds have small limits too (100 cmds).
15205 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15206 rm -f conftest.tail
15207 while grep . conftest.undefs >/dev/null
15209 # Write a limited-size here document to $tmp/undefs.sed.
15210 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15211 # Speed up: don't consider the non `#undef'
15212 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15213 # Work around the forget-to-reset-the-flag bug.
15214 echo 't clr' >>$CONFIG_STATUS
15215 echo ': clr' >>$CONFIG_STATUS
15216 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15217 echo 'CEOF
15218 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15219 rm -f $tmp/in
15220 mv $tmp/out $tmp/in
15221 ' >>$CONFIG_STATUS
15222 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15223 rm -f conftest.undefs
15224 mv conftest.tail conftest.undefs
15225 done
15226 rm -f conftest.undefs
15228 cat >>$CONFIG_STATUS <<\_ACEOF
15229 # Let's still pretend it is `configure' which instantiates (i.e., don't
15230 # use $as_me), people would be surprised to read:
15231 # /* config.h. Generated by config.status. */
15232 if test x"$ac_file" = x-; then
15233 echo "/* Generated by configure. */" >$tmp/config.h
15234 else
15235 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15237 cat $tmp/in >>$tmp/config.h
15238 rm -f $tmp/in
15239 if test x"$ac_file" != x-; then
15240 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15241 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15242 echo "$as_me: $ac_file is unchanged" >&6;}
15243 else
15244 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15246 X"$ac_file" : 'X\(//\)[^/]' \| \
15247 X"$ac_file" : 'X\(//\)$' \| \
15248 X"$ac_file" : 'X\(/\)' \| \
15249 . : '\(.\)' 2>/dev/null ||
15250 echo X"$ac_file" |
15251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15253 /^X\(\/\/\)$/{ s//\1/; q; }
15254 /^X\(\/\).*/{ s//\1/; q; }
15255 s/.*/./; q'`
15256 { if $as_mkdir_p; then
15257 mkdir -p "$ac_dir"
15258 else
15259 as_dir="$ac_dir"
15260 as_dirs=
15261 while test ! -d "$as_dir"; do
15262 as_dirs="$as_dir $as_dirs"
15263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15265 X"$as_dir" : 'X\(//\)[^/]' \| \
15266 X"$as_dir" : 'X\(//\)$' \| \
15267 X"$as_dir" : 'X\(/\)' \| \
15268 . : '\(.\)' 2>/dev/null ||
15269 echo X"$as_dir" |
15270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15272 /^X\(\/\/\)$/{ s//\1/; q; }
15273 /^X\(\/\).*/{ s//\1/; q; }
15274 s/.*/./; q'`
15275 done
15276 test ! -n "$as_dirs" || mkdir $as_dirs
15277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15279 { (exit 1); exit 1; }; }; }
15281 rm -f $ac_file
15282 mv $tmp/config.h $ac_file
15284 else
15285 cat $tmp/config.h
15286 rm -f $tmp/config.h
15288 # Compute $ac_file's index in $config_headers.
15289 _am_stamp_count=1
15290 for _am_header in $config_headers :; do
15291 case $_am_header in
15292 $ac_file | $ac_file:* )
15293 break ;;
15295 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15296 esac
15297 done
15298 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15299 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15300 X$ac_file : 'X\(//\)[^/]' \| \
15301 X$ac_file : 'X\(//\)$' \| \
15302 X$ac_file : 'X\(/\)' \| \
15303 . : '\(.\)' 2>/dev/null ||
15304 echo X$ac_file |
15305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15307 /^X\(\/\/\)$/{ s//\1/; q; }
15308 /^X\(\/\).*/{ s//\1/; q; }
15309 s/.*/./; q'`/stamp-h$_am_stamp_count
15310 done
15311 _ACEOF
15312 cat >>$CONFIG_STATUS <<\_ACEOF
15315 # CONFIG_COMMANDS section.
15317 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15318 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15319 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15320 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15321 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$ac_dest" : 'X\(//\)[^/]' \| \
15323 X"$ac_dest" : 'X\(//\)$' \| \
15324 X"$ac_dest" : 'X\(/\)' \| \
15325 . : '\(.\)' 2>/dev/null ||
15326 echo X"$ac_dest" |
15327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15329 /^X\(\/\/\)$/{ s//\1/; q; }
15330 /^X\(\/\).*/{ s//\1/; q; }
15331 s/.*/./; q'`
15332 { if $as_mkdir_p; then
15333 mkdir -p "$ac_dir"
15334 else
15335 as_dir="$ac_dir"
15336 as_dirs=
15337 while test ! -d "$as_dir"; do
15338 as_dirs="$as_dir $as_dirs"
15339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15341 X"$as_dir" : 'X\(//\)[^/]' \| \
15342 X"$as_dir" : 'X\(//\)$' \| \
15343 X"$as_dir" : 'X\(/\)' \| \
15344 . : '\(.\)' 2>/dev/null ||
15345 echo X"$as_dir" |
15346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15348 /^X\(\/\/\)$/{ s//\1/; q; }
15349 /^X\(\/\).*/{ s//\1/; q; }
15350 s/.*/./; q'`
15351 done
15352 test ! -n "$as_dirs" || mkdir $as_dirs
15353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15355 { (exit 1); exit 1; }; }; }
15357 ac_builddir=.
15359 if test "$ac_dir" != .; then
15360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15361 # A "../" for each directory in $ac_dir_suffix.
15362 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15363 else
15364 ac_dir_suffix= ac_top_builddir=
15367 case $srcdir in
15368 .) # No --srcdir option. We are building in place.
15369 ac_srcdir=.
15370 if test -z "$ac_top_builddir"; then
15371 ac_top_srcdir=.
15372 else
15373 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15374 fi ;;
15375 [\\/]* | ?:[\\/]* ) # Absolute path.
15376 ac_srcdir=$srcdir$ac_dir_suffix;
15377 ac_top_srcdir=$srcdir ;;
15378 *) # Relative path.
15379 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15380 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15381 esac
15383 # Do not use `cd foo && pwd` to compute absolute paths, because
15384 # the directories may not exist.
15385 case `pwd` in
15386 .) ac_abs_builddir="$ac_dir";;
15388 case "$ac_dir" in
15389 .) ac_abs_builddir=`pwd`;;
15390 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15391 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15392 esac;;
15393 esac
15394 case $ac_abs_builddir in
15395 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15397 case ${ac_top_builddir}. in
15398 .) ac_abs_top_builddir=$ac_abs_builddir;;
15399 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15400 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15401 esac;;
15402 esac
15403 case $ac_abs_builddir in
15404 .) ac_abs_srcdir=$ac_srcdir;;
15406 case $ac_srcdir in
15407 .) ac_abs_srcdir=$ac_abs_builddir;;
15408 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15409 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15410 esac;;
15411 esac
15412 case $ac_abs_builddir in
15413 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15415 case $ac_top_srcdir in
15416 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15417 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15418 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15419 esac;;
15420 esac
15423 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15424 echo "$as_me: executing $ac_dest commands" >&6;}
15425 case $ac_dest in
15426 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15427 # Strip MF so we end up with the name of the file.
15428 mf=`echo "$mf" | sed -e 's/:.*$//'`
15429 # Check whether this is an Automake generated Makefile or not.
15430 # We used to match only the files named `Makefile.in', but
15431 # some people rename them; so instead we look at the file content.
15432 # Grep'ing the first line is not enough: some people post-process
15433 # each Makefile.in and add a new line on top of each file to say so.
15434 # So let's grep whole file.
15435 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15436 dirpart=`(dirname "$mf") 2>/dev/null ||
15437 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15438 X"$mf" : 'X\(//\)[^/]' \| \
15439 X"$mf" : 'X\(//\)$' \| \
15440 X"$mf" : 'X\(/\)' \| \
15441 . : '\(.\)' 2>/dev/null ||
15442 echo X"$mf" |
15443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15444 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15445 /^X\(\/\/\)$/{ s//\1/; q; }
15446 /^X\(\/\).*/{ s//\1/; q; }
15447 s/.*/./; q'`
15448 else
15449 continue
15451 # Extract the definition of DEPDIR, am__include, and am__quote
15452 # from the Makefile without running `make'.
15453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15454 test -z "$DEPDIR" && continue
15455 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15456 test -z "am__include" && continue
15457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15458 # When using ansi2knr, U may be empty or an underscore; expand it
15459 U=`sed -n 's/^U = //p' < "$mf"`
15460 # Find all dependency output files, they are included files with
15461 # $(DEPDIR) in their names. We invoke sed twice because it is the
15462 # simplest approach to changing $(DEPDIR) to its actual value in the
15463 # expansion.
15464 for file in `sed -n "
15465 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15466 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15467 # Make sure the directory exists.
15468 test -f "$dirpart/$file" && continue
15469 fdir=`(dirname "$file") 2>/dev/null ||
15470 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15471 X"$file" : 'X\(//\)[^/]' \| \
15472 X"$file" : 'X\(//\)$' \| \
15473 X"$file" : 'X\(/\)' \| \
15474 . : '\(.\)' 2>/dev/null ||
15475 echo X"$file" |
15476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15478 /^X\(\/\/\)$/{ s//\1/; q; }
15479 /^X\(\/\).*/{ s//\1/; q; }
15480 s/.*/./; q'`
15481 { if $as_mkdir_p; then
15482 mkdir -p $dirpart/$fdir
15483 else
15484 as_dir=$dirpart/$fdir
15485 as_dirs=
15486 while test ! -d "$as_dir"; do
15487 as_dirs="$as_dir $as_dirs"
15488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490 X"$as_dir" : 'X\(//\)[^/]' \| \
15491 X"$as_dir" : 'X\(//\)$' \| \
15492 X"$as_dir" : 'X\(/\)' \| \
15493 . : '\(.\)' 2>/dev/null ||
15494 echo X"$as_dir" |
15495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15497 /^X\(\/\/\)$/{ s//\1/; q; }
15498 /^X\(\/\).*/{ s//\1/; q; }
15499 s/.*/./; q'`
15500 done
15501 test ! -n "$as_dirs" || mkdir $as_dirs
15502 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15503 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15504 { (exit 1); exit 1; }; }; }
15506 # echo "creating $dirpart/$file"
15507 echo '# dummy' > "$dirpart/$file"
15508 done
15509 done
15511 libtool )
15513 # See if we are running on zsh, and set the options which allow our
15514 # commands through without removal of \ escapes.
15515 if test -n "${ZSH_VERSION+set}" ; then
15516 setopt NO_GLOB_SUBST
15519 cfgfile="${ofile}T"
15520 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15521 $RM "$cfgfile"
15523 cat <<_LT_EOF >> "$cfgfile"
15524 #! $SHELL
15526 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15527 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15531 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15532 # 2006, 2007 Free Software Foundation, Inc.
15534 # This file is part of GNU Libtool:
15535 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15537 # This program is free software; you can redistribute it and/or modify
15538 # it under the terms of the GNU General Public License as published by
15539 # the Free Software Foundation; either version 2 of the License, or
15540 # (at your option) any later version.
15542 # This program is distributed in the hope that it will be useful, but
15543 # WITHOUT ANY WARRANTY; without even the implied warranty of
15544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15545 # General Public License for more details.
15547 # You should have received a copy of the GNU General Public License
15548 # along with this program; if not, a copy can be downloaded from
15549 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15550 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15551 # MA 02110-1301, USA.
15553 # As a special exception to the GNU General Public License, if you
15554 # distribute this file as part of a program that contains a
15555 # configuration script generated by Autoconf, you may include it under
15556 # the same distribution terms that you use for the rest of that program.
15559 # The names of the tagged configurations supported by this script.
15560 available_tags=""
15562 # ### BEGIN LIBTOOL CONFIG
15564 # Which release of libtool.m4 was used?
15565 macro_version=$macro_version
15566 macro_revision=$macro_revision
15568 # Whether or not to build shared libraries.
15569 build_libtool_libs=$enable_shared
15571 # Whether or not to build static libraries.
15572 build_old_libs=$enable_static
15574 # What type of objects to build.
15575 pic_mode=$pic_mode
15577 # Whether or not to optimize for fast installation.
15578 fast_install=$enable_fast_install
15580 # The host system.
15581 host_alias=$host_alias
15582 host=$host
15583 host_os=$host_os
15585 # The build system.
15586 build_alias=$build_alias
15587 build=$build
15588 build_os=$build_os
15590 # A sed program that does not truncate output.
15591 SED=$lt_SED
15593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15594 Xsed="\$SED -e 1s/^X//"
15596 # A grep program that handles long lines.
15597 GREP=$lt_GREP
15599 # An ERE matcher.
15600 EGREP=$lt_EGREP
15602 # A literal string matcher.
15603 FGREP=$lt_FGREP
15605 # A BSD- or MS-compatible name lister.
15606 NM=$lt_NM
15608 # Whether we need soft or hard links.
15609 LN_S=$lt_LN_S
15611 # What is the maximum length of a command?
15612 max_cmd_len=$max_cmd_len
15614 # Object file suffix (normally "o").
15615 objext=$ac_objext
15617 # Executable file suffix (normally "").
15618 exeext=$exeext
15620 # whether the shell understands "unset".
15621 lt_unset=$lt_unset
15623 # turn spaces into newlines.
15624 SP2NL=$lt_lt_SP2NL
15626 # turn newlines into spaces.
15627 NL2SP=$lt_lt_NL2SP
15629 # How to create reloadable object files.
15630 reload_flag=$lt_reload_flag
15631 reload_cmds=$lt_reload_cmds
15633 # Method to check whether dependent libraries are shared objects.
15634 deplibs_check_method=$lt_deplibs_check_method
15636 # Command to use when deplibs_check_method == "file_magic".
15637 file_magic_cmd=$lt_file_magic_cmd
15639 # The archiver.
15640 AR=$lt_AR
15641 AR_FLAGS=$lt_AR_FLAGS
15643 # A symbol stripping program.
15644 STRIP=$lt_STRIP
15646 # Commands used to install an old-style archive.
15647 RANLIB=$lt_RANLIB
15648 old_postinstall_cmds=$lt_old_postinstall_cmds
15649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15651 # A C compiler.
15652 LTCC=$lt_CC
15654 # LTCC compiler flags.
15655 LTCFLAGS=$lt_CFLAGS
15657 # Take the output of nm and produce a listing of raw symbols and C names.
15658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15660 # Transform the output of nm in a proper C declaration.
15661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15663 # Transform the output of nm in a C name address pair.
15664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15666 # The name of the directory that contains temporary libtool files.
15667 objdir=$objdir
15669 # Shell to use when invoking shell scripts.
15670 SHELL=$lt_SHELL
15672 # An echo program that does not interpret backslashes.
15673 ECHO=$lt_ECHO
15675 # Used to examine libraries when file_magic_cmd begins with "file".
15676 MAGIC_CMD=$MAGIC_CMD
15678 # Must we lock files when doing compilation?
15679 need_locks=$lt_need_locks
15681 # Old archive suffix (normally "a").
15682 libext=$libext
15684 # Shared library suffix (normally ".so").
15685 shrext_cmds=$lt_shrext_cmds
15687 # The commands to extract the exported symbol list from a shared archive.
15688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15690 # Variables whose values should be saved in libtool wrapper scripts and
15691 # restored at link time.
15692 variables_saved_for_relink=$lt_variables_saved_for_relink
15694 # Do we need the "lib" prefix for modules?
15695 need_lib_prefix=$need_lib_prefix
15697 # Do we need a version for libraries?
15698 need_version=$need_version
15700 # Library versioning type.
15701 version_type=$version_type
15703 # Shared library runtime path variable.
15704 runpath_var=$runpath_var
15706 # Shared library path variable.
15707 shlibpath_var=$shlibpath_var
15709 # Is shlibpath searched before the hard-coded library search path?
15710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15712 # Format of library name prefix.
15713 libname_spec=$lt_libname_spec
15715 # List of archive names. First name is the real one, the rest are links.
15716 # The last name is the one that the linker finds with -lNAME
15717 library_names_spec=$lt_library_names_spec
15719 # The coded name of the library, if different from the real name.
15720 soname_spec=$lt_soname_spec
15722 # Command to use after installation of a shared archive.
15723 postinstall_cmds=$lt_postinstall_cmds
15725 # Command to use after uninstallation of a shared archive.
15726 postuninstall_cmds=$lt_postuninstall_cmds
15728 # Commands used to finish a libtool library installation in a directory.
15729 finish_cmds=$lt_finish_cmds
15731 # As "finish_cmds", except a single script fragment to be evaled but
15732 # not shown.
15733 finish_eval=$lt_finish_eval
15735 # Whether we should hardcode library paths into libraries.
15736 hardcode_into_libs=$hardcode_into_libs
15738 # Compile-time system search path for libraries.
15739 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15741 # Run-time system search path for libraries.
15742 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15744 # Whether dlopen is supported.
15745 dlopen_support=$enable_dlopen
15747 # Whether dlopen of programs is supported.
15748 dlopen_self=$enable_dlopen_self
15750 # Whether dlopen of statically linked programs is supported.
15751 dlopen_self_static=$enable_dlopen_self_static
15753 # Commands to strip libraries.
15754 old_striplib=$lt_old_striplib
15755 striplib=$lt_striplib
15758 # The linker used to build libraries.
15759 LD=$lt_LD
15761 # Commands used to build an old-style archive.
15762 old_archive_cmds=$lt_old_archive_cmds
15764 # A language specific compiler.
15765 CC=$lt_compiler
15767 # Is the compiler the GNU compiler?
15768 with_gcc=$GCC
15770 # Compiler flag to turn off builtin functions.
15771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15773 # How to pass a linker flag through the compiler.
15774 wl=$lt_lt_prog_compiler_wl
15776 # Additional compiler flags for building library objects.
15777 pic_flag=$lt_lt_prog_compiler_pic
15779 # Compiler flag to prevent dynamic linking.
15780 link_static_flag=$lt_lt_prog_compiler_static
15782 # Does compiler simultaneously support -c and -o options?
15783 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15785 # Whether or not to add -lc for building shared libraries.
15786 build_libtool_need_lc=$archive_cmds_need_lc
15788 # Whether or not to disallow shared libs when runtime libs are static.
15789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15791 # Compiler flag to allow reflexive dlopens.
15792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15794 # Compiler flag to generate shared objects directly from archives.
15795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15797 # Whether the compiler copes with passing no objects directly.
15798 compiler_needs_object=$lt_compiler_needs_object
15800 # Create an old-style archive from a shared archive.
15801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15803 # Create a temporary old-style archive to link instead of a shared archive.
15804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15806 # Commands used to build a shared archive.
15807 archive_cmds=$lt_archive_cmds
15808 archive_expsym_cmds=$lt_archive_expsym_cmds
15810 # Commands used to build a loadable module if different from building
15811 # a shared archive.
15812 module_cmds=$lt_module_cmds
15813 module_expsym_cmds=$lt_module_expsym_cmds
15815 # Whether we are building with GNU ld or not.
15816 with_gnu_ld=$lt_with_gnu_ld
15818 # Flag that allows shared libraries with undefined symbols to be built.
15819 allow_undefined_flag=$lt_allow_undefined_flag
15821 # Flag that enforces no undefined symbols.
15822 no_undefined_flag=$lt_no_undefined_flag
15824 # Flag to hardcode \$libdir into a binary during linking.
15825 # This must work even if \$libdir does not exist
15826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15828 # If ld is used when linking, flag to hardcode \$libdir into a binary
15829 # during linking. This must work even if \$libdir does not exist.
15830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15832 # Whether we need a single "-rpath" flag with a separated argument.
15833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15835 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15836 # DIR into the resulting binary.
15837 hardcode_direct=$hardcode_direct
15839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15840 # DIR into the resulting binary and the resulting library dependency is
15841 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15842 # library is relocated.
15843 hardcode_direct_absolute=$hardcode_direct_absolute
15845 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15846 # into the resulting binary.
15847 hardcode_minus_L=$hardcode_minus_L
15849 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15850 # into the resulting binary.
15851 hardcode_shlibpath_var=$hardcode_shlibpath_var
15853 # Set to "yes" if building a shared library automatically hardcodes DIR
15854 # into the library and all subsequent libraries and executables linked
15855 # against it.
15856 hardcode_automatic=$hardcode_automatic
15858 # Set to yes if linker adds runtime paths of dependent libraries
15859 # to runtime path list.
15860 inherit_rpath=$inherit_rpath
15862 # Whether libtool must link a program against all its dependency libraries.
15863 link_all_deplibs=$link_all_deplibs
15865 # Fix the shell variable \$srcfile for the compiler.
15866 fix_srcfile_path=$lt_fix_srcfile_path
15868 # Set to "yes" if exported symbols are required.
15869 always_export_symbols=$always_export_symbols
15871 # The commands to list exported symbols.
15872 export_symbols_cmds=$lt_export_symbols_cmds
15874 # Symbols that should not be listed in the preloaded symbols.
15875 exclude_expsyms=$lt_exclude_expsyms
15877 # Symbols that must always be exported.
15878 include_expsyms=$lt_include_expsyms
15880 # Commands necessary for linking programs (against libraries) with templates.
15881 prelink_cmds=$lt_prelink_cmds
15883 # Specify filename containing input files.
15884 file_list_spec=$lt_file_list_spec
15886 # How to hardcode a shared library path into an executable.
15887 hardcode_action=$hardcode_action
15889 # ### END LIBTOOL CONFIG
15891 _LT_EOF
15893 case $host_os in
15894 aix3*)
15895 cat <<\_LT_EOF >> "$cfgfile"
15896 # AIX sometimes has problems with the GCC collect2 program. For some
15897 # reason, if we set the COLLECT_NAMES environment variable, the problems
15898 # vanish in a puff of smoke.
15899 if test "X${COLLECT_NAMES+set}" != Xset; then
15900 COLLECT_NAMES=
15901 export COLLECT_NAMES
15903 _LT_EOF
15905 esac
15908 ltmain="$ac_aux_dir/ltmain.sh"
15911 # We use sed instead of cat because bash on DJGPP gets confused if
15912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15913 # text mode, it properly converts lines to CR/LF. This bash problem
15914 # is reportedly fixed, but why not run on old versions too?
15915 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15916 || (rm -f "$cfgfile"; exit 1)
15918 case $xsi_shell in
15919 yes)
15920 cat << \_LT_EOF >> "$cfgfile"
15921 # func_dirname file append nondir_replacement
15922 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15923 # otherwise set result to NONDIR_REPLACEMENT.
15924 func_dirname ()
15926 case ${1} in
15927 */*) func_dirname_result="${1%/*}${2}" ;;
15928 * ) func_dirname_result="${3}" ;;
15929 esac
15932 # func_basename file
15933 func_basename ()
15935 func_basename_result="${1##*/}"
15938 # func_stripname prefix suffix name
15939 # strip PREFIX and SUFFIX off of NAME.
15940 # PREFIX and SUFFIX must not contain globbing or regex special
15941 # characters, hashes, percent signs, but SUFFIX may contain a leading
15942 # dot (in which case that matches only a dot).
15943 func_stripname ()
15945 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15946 # positional parameters, so assign one to ordinary parameter first.
15947 func_stripname_result=${3}
15948 func_stripname_result=${func_stripname_result#"${1}"}
15949 func_stripname_result=${func_stripname_result%"${2}"}
15952 # func_opt_split
15953 func_opt_split ()
15955 func_opt_split_opt=${1%%=*}
15956 func_opt_split_arg=${1#*=}
15959 # func_lo2o object
15960 func_lo2o ()
15962 case ${1} in
15963 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15964 *) func_lo2o_result=${1} ;;
15965 esac
15967 _LT_EOF
15969 *) # Bourne compatible functions.
15970 cat << \_LT_EOF >> "$cfgfile"
15971 # func_dirname file append nondir_replacement
15972 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15973 # otherwise set result to NONDIR_REPLACEMENT.
15974 func_dirname ()
15976 # Extract subdirectory from the argument.
15977 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15978 if test "X$func_dirname_result" = "X${1}"; then
15979 func_dirname_result="${3}"
15980 else
15981 func_dirname_result="$func_dirname_result${2}"
15985 # func_basename file
15986 func_basename ()
15988 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15991 # func_stripname prefix suffix name
15992 # strip PREFIX and SUFFIX off of NAME.
15993 # PREFIX and SUFFIX must not contain globbing or regex special
15994 # characters, hashes, percent signs, but SUFFIX may contain a leading
15995 # dot (in which case that matches only a dot).
15996 # func_strip_suffix prefix name
15997 func_stripname ()
15999 case ${2} in
16000 .*) func_stripname_result=`$ECHO "X${3}" \
16001 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16002 *) func_stripname_result=`$ECHO "X${3}" \
16003 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16004 esac
16007 # sed scripts:
16008 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16009 my_sed_long_arg='1s/^-[^=]*=//'
16011 # func_opt_split
16012 func_opt_split ()
16014 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16015 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16018 # func_lo2o object
16019 func_lo2o ()
16021 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16023 _LT_EOF
16024 esac
16026 case $lt_shell_append in
16027 yes)
16028 cat << \_LT_EOF >> "$cfgfile"
16030 # func_append var value
16031 # Append VALUE to the end of shell variable VAR.
16032 func_append ()
16034 eval "$1+=\$2"
16036 _LT_EOF
16039 cat << \_LT_EOF >> "$cfgfile"
16041 # func_append var value
16042 # Append VALUE to the end of shell variable VAR.
16043 func_append ()
16045 eval "$1=\$$1\$2"
16047 _LT_EOF
16049 esac
16052 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16053 || (rm -f "$cfgfile"; exit 1)
16055 mv -f "$cfgfile" "$ofile" ||
16056 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16057 chmod +x "$ofile"
16060 default-1 )
16061 for ac_file in $CONFIG_FILES; do
16062 # Support "outfile[:infile[:infile...]]"
16063 case "$ac_file" in
16064 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16065 esac
16066 # PO directories have a Makefile.in generated from Makefile.in.in.
16067 case "$ac_file" in */Makefile.in)
16068 # Adjust a relative srcdir.
16069 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16070 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16071 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16072 # In autoconf-2.13 it is called $ac_given_srcdir.
16073 # In autoconf-2.50 it is called $srcdir.
16074 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16075 case "$ac_given_srcdir" in
16076 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16077 /*) top_srcdir="$ac_given_srcdir" ;;
16078 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16079 esac
16080 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16081 rm -f "$ac_dir/POTFILES"
16082 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16083 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16084 POMAKEFILEDEPS="POTFILES.in"
16085 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16086 # on $ac_dir but don't depend on user-specified configuration
16087 # parameters.
16088 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16089 # The LINGUAS file contains the set of available languages.
16090 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16091 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16093 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16094 # Hide the ALL_LINGUAS assigment from automake.
16095 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16096 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16097 else
16098 # The set of available languages was given in configure.in.
16099 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16101 case "$ac_given_srcdir" in
16102 .) srcdirpre= ;;
16103 *) srcdirpre='$(srcdir)/' ;;
16104 esac
16105 POFILES=
16106 GMOFILES=
16107 UPDATEPOFILES=
16108 DUMMYPOFILES=
16109 for lang in $ALL_LINGUAS; do
16110 POFILES="$POFILES $srcdirpre$lang.po"
16111 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16112 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16113 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16114 done
16115 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16116 # environment variable.
16117 INST_LINGUAS=
16118 if test -n "$ALL_LINGUAS"; then
16119 for presentlang in $ALL_LINGUAS; do
16120 useit=no
16121 if test "%UNSET%" != "$LINGUAS"; then
16122 desiredlanguages="$LINGUAS"
16123 else
16124 desiredlanguages="$ALL_LINGUAS"
16126 for desiredlang in $desiredlanguages; do
16127 # Use the presentlang catalog if desiredlang is
16128 # a. equal to presentlang, or
16129 # b. a variant of presentlang (because in this case,
16130 # presentlang can be used as a fallback for messages
16131 # which are not translated in the desiredlang catalog).
16132 case "$desiredlang" in
16133 "$presentlang"*) useit=yes;;
16134 esac
16135 done
16136 if test $useit = yes; then
16137 INST_LINGUAS="$INST_LINGUAS $presentlang"
16139 done
16141 CATALOGS=
16142 if test -n "$INST_LINGUAS"; then
16143 for lang in $INST_LINGUAS; do
16144 CATALOGS="$CATALOGS $lang.gmo"
16145 done
16147 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16148 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"
16149 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16150 if test -f "$f"; then
16151 case "$f" in
16152 *.orig | *.bak | *~) ;;
16153 *) cat "$f" >> "$ac_dir/Makefile" ;;
16154 esac
16156 done
16159 esac
16160 done ;;
16161 default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16162 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16163 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16164 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16165 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16166 if test "x$cgen_cpu_prefix" != x ; then
16167 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16168 fi ;;
16169 esac
16170 done
16171 _ACEOF
16173 cat >>$CONFIG_STATUS <<\_ACEOF
16175 { (exit 0); exit 0; }
16176 _ACEOF
16177 chmod +x $CONFIG_STATUS
16178 ac_clean_files=$ac_clean_files_save
16181 # configure is writing to config.log, and then calls config.status.
16182 # config.status does its own redirection, appending to config.log.
16183 # Unfortunately, on DOS this fails, as config.log is still kept open
16184 # by configure, so config.status won't be able to write to it; its
16185 # output is simply discarded. So we exec the FD to /dev/null,
16186 # effectively closing config.log, so it can be properly (re)opened and
16187 # appended to by config.status. When coming back to configure, we
16188 # need to make the FD available again.
16189 if test "$no_create" != yes; then
16190 ac_cs_success=:
16191 ac_config_status_args=
16192 test "$silent" = yes &&
16193 ac_config_status_args="$ac_config_status_args --quiet"
16194 exec 5>/dev/null
16195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16196 exec 5>>config.log
16197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16198 # would make configure fail if this is the last instruction.
16199 $ac_cs_success || { (exit 1); exit 1; }